856a88f5314258f4f0e840f00bb4d8f605d74966
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-12-10  Richard Biener  <rguenther@suse.de>
2
3         * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
4         dependences.
5         (if_convertible_loop_p): Adjust.
6
7 2015-12-10  Tom de Vries  <tom@codesourcery.com>
8
9         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
10         invalid assert.
11
12 2015-12-10  Martin Liska  <mliska@suse.cz>
13
14         * tree-vect-data-refs.c: Free an overwritten dataref.
15
16 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
17
18         PR target/68729
19         * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
20         consistent with modes of the input and output operands when doing
21         reloads to and from floating point registers.  Do reload for all
22         address forms.
23
24 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
25
26         PR ipa/61886
27         PR middle-end/25140
28         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
29         (nonoverlapping_component_refs_of_decl_p): Update sanity check.
30         (decl_refs_may_alias_p): Use compare_base_decls.
31         * alias.c: Include cgraph.h
32         (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
33         (compare_base_decls): New function.
34         (base_alias_check): Likewise.
35         (memrefs_conflict_p): Likewise.
36         (nonoverlapping_memrefs_p): Likewise.
37         * alias.h (compare_base_decls): Declare.
38
39 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
40
41         PR ipa/61886
42         * ipa-visibility.c (function_and_variable_visibility): Fix vtable
43         rewritting guard.
44
45 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
46
47         PR ipa/61886
48         PR middle-end/25140
49         * ipa-reference.c (ipa_reference_get_not_read_global,
50         ipa_reference_get_not_read_global): Fix WRT aliases.
51         (is_improper): Break out from ...
52         (is_proper_for_analysis): ... here; fix WRT aliases.
53         (analyze_function, generate_summary,
54         ipa_reference_write_optimization_summary,
55         ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
56         * ipa-refrence.h (ipa_reference_var_uid): New inline.
57         * tree-ssa-alias.c: Revert my accidental previous commit.
58         (ref_maybe_used_by_call_p_1,
59         call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
60
61 2015-12-09  Andreas Tobler  <andreast@gcc.gnu.org>
62
63         * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
64
65 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
66             Sebastian Pop  <s.pop@samsung.com>
67
68         * graphite-optimize-isl.c: Include isl/ast_build.h
69         (optimize_isl): Set several isl_options_set_* options.
70
71 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
72             Sebastian Pop  <s.pop@samsung.com>
73
74         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
75         the same order as adding data reference access functions.
76
77 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
78             Sebastian Pop  <s.pop@samsung.com>
79
80         * graphite-optimize-isl.c (optimize_isl): Improve dump message.
81
82 2015-12-09  Marek Polacek  <polacek@redhat.com>
83
84         PR tree-optimization/66949
85         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
86         single_non_singleton_phi_for_edges to get the PHI from
87         factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
88         (factor_out_conditional_conversion): Adjust declaration.  Make it
89         return the newly-created PHI.
90
91 2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>
92
93         * config/aarch64/aarch64-protos.h
94         (aarch64_cannot_change_mode_class): Bring back.
95         * config/aarch64/aarch64.c
96         (aarch64_cannot_change_mode_class): Likewise.
97         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
98         * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
99         zero_extract rather than truncate.
100         (aarch64_movdi_<mode>high): Likewise.
101
102 2015-12-09  Jakub Jelinek  <jakub@redhat.com>
103
104         PR tree-optimization/68786
105         * tree-if-conv.c: Include builtins.h.
106         (predicate_mem_writes): Put result of get_object_alignment (ref)
107         into second argument's value.
108         * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
109         pointer alignment into second argument's value.
110         * tree-data-ref.c (get_references_in_stmt): Use value of second
111         argument for build_aligned_type, and only the type to build
112         a zero second argument for MEM_REF.
113         * internal-fn.c (expand_mask_load_optab_fn,
114         expand_mask_store_optab_fn): Likewise.
115
116 2015-12-09  Richard Biener  <rguenther@suse.de>
117
118         PR tree-optimization/68583
119         * tree-if-conv.c (if_convertible_phi_p): Drop
120         flag_tree_loop_if_convert_stores check in favor of the
121         existing any_mask_load_store check.
122         (insert_gimplified_predicates): Likewise.
123         (combine_blocks): Likewise.
124         (tree_if_conversion): Likewise.
125         (ifcvt_memrefs_wont_trap): Properly check
126         flag_tree_loop_if_convert_stores in all places that can end
127         up introducing store-data-races.
128         (if_convertible_gimple_assign_stmt_p): Remove restriction
129         on flag_tree_loop_if_convert_stores for stores we can if-convert
130         without introducing store-data-races.  Force versioning for
131         all if-converted stores.
132
133 2015-12-09  Tom de Vries  <tom@codesourcery.com>
134
135         PR tree-optimization/68716
136         * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
137         BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
138
139 2015-12-09  Martin Liska  <mliska@suse.cz>
140
141         * hash-traits.h (struct typed_delete_remove): New function.
142         (typed_delete_remove ::remove): Likewise.
143         * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
144         auto_vec with vec.
145         (record_common_cand): Replace XNEW with operator new.
146
147 2015-12-09  Martin Liska  <mliska@suse.cz>
148
149         * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
150
151 2015-12-09  Martin Liska  <mliska@suse.cz>
152
153         PR ipa/68790
154         * ipa-icf.c (sem_function::param_used_p): Return true
155         if ipa_node_params_sum equals to NULL.
156
157 2015-12-09  Richard Biener  <rguenther@suse.de>
158
159         PR tree-optimization/68583
160         * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
161         flag and rename predicates to w_predicate, rw_predicate and
162         base_w_predicate.
163         (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
164         (DR_BASE_W_UNCONDITIONALLY): ... this.
165         (DR_W_UNCONDITIONALLY): Add.
166         (hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
167         unconditionally written separately from read or written.
168         (ifcvt_memrefs_wont_trap): Properly treat reads.
169         (ifcvt_could_trap_p): Inline ...
170         (if_convertible_gimple_assign_stmt_p): ... here.  Refactor
171         to avoid code duplication.
172         (if_convertible_loop_p_1): Adjust and properly initialize
173         predicates.
174
175 2015-12-09  Richard Biener  <rguenther@suse.de>
176
177         * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
178         if it was not yet set.
179         * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
180         overwrite an existing entry.
181
182 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
183
184         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
185         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
186         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
187
188 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
189
190         PR ipa/61886
191         * symtab.c (symtab_node::equal_address_to): New parameter
192         MEMORY_ACCESSED.
193         * cgraph.h (symtab_node::equal_address_to): Update prototype.
194
195 2015-12-08  DJ Delorie  <dj@redhat.com>
196
197         * config/rx/rx.opt (-mjsr): Add.
198         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
199         calls when -mjsr.
200         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
201         overflowing jumps.
202         * doc/invoke.texi (-mjsr): Document it.
203
204 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
205
206         PR ipa/61886
207         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
208         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
209         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
210         DECL_ABSTRACT_ORIGIN is not error_mark_node.
211
212 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
213
214         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
215
216 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
217
218         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
219         indentation.
220
221 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
222
223         PR ipa/61886
224         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
225         into the boundary.
226
227 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
228
229         PR ipa/61886
230         * varpool.c (varpool_node::get_availability): Recurse only on
231         weakrefs with definition in the target.
232         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
233
234 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
235
236         PR ipa/61886
237         * ipa-visibility.c (can_replace_by_local_alias): Look through
238         transparent aliases; refuse weakrefs.
239         (update_visibility_by_resolution_info): Skip transparent aliases in the
240         analysis part
241
242 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
243
244         PR ipa/61886
245         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
246         (symtab_node::noninterposable_alias): Do not accept transparent
247         aliases.
248
249 2015-12-08  Nathan Sidwell  <nathan@acm.org>
250
251         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
252         decl_offset, init_part, object_size, object_finished): Replace
253         with ...
254         (struct init_frag): ... this new struct variable.
255         (begin_decl_field, output_decl_chunk): Replace with ...
256         (output_init_frag): ... this new function.
257         (nvptx_assemble_value): Reimplement.
258         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
259         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
260         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
261
262 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
263
264         PR middle-end/68291
265         PR middle-end/68292
266         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
267         with BLKmode promoted mode based on RESULT_DECLs.
268
269 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
270
271         PR target/68701
272         * config/i386/i386.c (ix86_option_override_internal): Enable
273         -maccumulate-outgoing-args when %ebp is fixed due to stack
274         realignment requirements.
275
276 2015-12-08  Tom de Vries  <tom@codesourcery.com>
277
278         PR tree-optimization/68640
279         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
280         type.
281
282 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
283
284         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
285         assembler to make source always 128bit.
286
287 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
288
289         PR c/48088
290         PR c/68657
291         * common.opt (Wframe-larger-than=): Add Warning.
292         * opts.h (control_warning_option): Add ARG argument.
293         * opts-common.c (cmdline_handle_error): New function.
294         (read_cmdline_option): Use it.
295         (control_warning_option): Likewise.  Add ARG argument.
296         If non-NULL, decode it if needed and pass through
297         to handle_generated_option.  Handle CLVC_ENUM like
298         CLVC_BOOLEAN.
299         * opts.c (common_handle_option): Adjust control_warning_option
300         caller.
301         (enable_warning_as_error): Likewise.
302
303 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
304
305         * config/aarch64/aarch64-options-extensions.def: Remove
306         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
307         "rdma".
308         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
309         (AARCH64_FL_LOR): Remove.
310         (AARCH64_FL_RDMA): Remove.
311         (AARCH64_FL_V8_1): New.
312         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
313         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
314         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
315         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
316         section on -march=native.  Group descriptions of permitted
317         architecture names together.  Expand description of
318         -march=armv8.1-a.
319         (AArch64 -mtune): Slightly rework section on -march=native.
320         (AArch64 -mcpu): Slightly rework section on -march=native.
321         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
322         State that -march=armv8.1-a enables "crc" and "lse".
323
324 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
325
326         * doc/invoke.texi (SPARC options): Fix typo.
327
328 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
329
330         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
331         (output_probe_stack_range): Rotate the loop and simplify.
332
333 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
334
335         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
336         infinity filterning code.
337
338 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
339
340         PR tree-optimization/68766
341         * tree-vectorizer.c (vectorize_loops): Check for
342         if-converted loops when debug counters are used.
343
344 2015-12-07  DJ Delorie  <dj@redhat.com>
345
346         * config/rl78/constraints.md (Wfr): Change to be a non-memory
347         constraint.
348         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
349         * config/rl78/rl78.c (rl78_one_far_p): Define.
350         * config/rl78/rl78-virt (movqi_virt): Fix far memory
351         alternatives.
352         (movhi_virt): Likewise.
353         (zero_extendqihi2_virt): Likewise.
354         (extendqihi2_virt): Likewise.
355         (add<mode>3_virt): Likewise.
356         (sub<mode>3_virt): Likewise.
357         (andqi3_virt): Likewise.
358         (iorqi3_virt): Likewise.
359         (xorqi3_virt): Likewise.
360         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
361         overflow in large files.
362
363 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
364
365         PR target/63668
366         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
367         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
368         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
369         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
370
371 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
372
373         * reorg.c (optimize_skip): Do not put frame related instructions
374         in annulled delay slots.
375         (steal_delay_list_from_target): Ditto.
376         (fill_slots_from_thread): Ditto.
377
378 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
379
380         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
381         * config/aarch64/aarch64.md: Include "exynos-m1.md".
382         * config/arm/arm.md: Likewise.
383         * config/arm/exynos-m1.md: New file.
384
385 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
386
387         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
388
389 2015-12-07  Nathan Sidwell  <nathan@acm.org>
390
391         * config//nvptx/nvptx.c (write_return): New.
392         (write_fn_proto, nvptx_declare_function_name): Call it.
393
394 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
395
396         PR ipa/61886
397         * symtab.c (ultimate_transparent_alias_target): New inline function.
398         (symbol_table::assembler_names_equal_p): New method; break out from ...
399         (symbol_table::decl_assembler_name_equal): ... here.
400         (symbol_table::change_decl_assembler_name): Also update names and
401         translation links of transparent aliases.
402         (symtab_node::dump_base): Dump transparent_alias.
403         (symtab_node::verify_base): Implement basic transparent alias
404         verification.
405         (symtab_node::make_decl_local): Support localization of weakrefs;
406         recurse to transparent aliases; set TREE_STATIC.
407         (symtab_node::ultimate_alias_target_1): Handle visibility of
408         transparent aliases.
409         (symtab_node::resolve_alias): New parmaeter transparent; handle
410         transparent aliases; recurse to aliases of aliases to fix comdat
411         groups.
412         (symtab_node::get_partitioning_class): Handle transparent aliases.
413         * ipa-visibility.c (cgraph_externally_visible_p,
414         varpool_node::externally_visible_p): Visibility of transparent alias
415         depends on its target.
416         (function_and_variable_visibility): Do not tweak visibility of
417         transparent laiases.
418         (function_and_variable_visibility): Likewise.
419         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
420         transparent_alias flag.
421         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
422         Support transparent aliases.
423         * cgraph.h (symtab_node): Update prototype of resolve_alias;
424         add transparent_alias flag.
425         (symbol_table: Add assembler_names_equal_p.
426         (symtab_node::real_symbol_p): Skip transparent aliases.
427         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
428         (handle_alias_pairs): Set transparent_alias for weakref.
429         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
430         aliases.
431         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
432         skip symbols not put into boundary; stream transparent_alias.
433         (lto_output_varpool_node): Likewise.
434         (input_overwrite_node, input_varpool_node): Stream transparent alias.
435         * varpool.c (ctor_for_folding, varpool_node::get_availability,
436         varpool_node::assemble_aliases,
437         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
438         (varpool_node::create_alias): Set transparent_alias.
439
440 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
441
442         PR middle-end/68291
443         PR middle-end/68292
444         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
445         SSA names based on RESULT_DECLs.
446         * function.c (expand_function_start): Do not create BLKmode REGs
447         for GIMPLE registers when coalescing is enabled.
448
449 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
450
451         * final.c (shorten_branches): Fix check for basic asm.
452         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
453         basic asm.
454
455 2015-12-07  Nathan Sidwell  <nathan@acm.org>
456
457         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
458         return call.
459
460 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
461
462         * pretty-print.c (text_info::set_range): Rename to...
463         (text_info::set_location): ...this, converting 2nd param
464         from source_range to a location_t.
465         * pretty-print.h (text_info::set_location): Convert
466         from inline function to external definition.
467         (text_info::set_range): Delete.
468
469 2015-12-07  Nathan Sidwell  <nathan@acm.org>
470
471         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
472         complex and vector types.  Cope with packed structs.
473
474 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
475
476         PR target/68627
477         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
478         Force destination to 512 bits register.
479
480 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
481
482         PR target/68633
483         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
484         (define_insn "kunpcksi"): Ditto.
485         (define_insn "kunpckdi"): Ditto.
486
487 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
488
489         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
490
491 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
492
493         * common/config/i386/i386-common.c
494         (OPTION_MASK_ISA_CLZERO_SET): New.
495         (ix86_handle_option): Handle clzero.
496         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
497         (x86_64-*-*): Likewise.
498         * config/i386/clzerointrin.h: New header.
499         * config/i386/cpuid.h (bit_CLZERO):  Define.
500         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
501         CLZERO support.
502         * config/i386/i386.opt (clzero): New.
503         * config/i386/i386-c.c: Define __CLZERO__ if needed.
504         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
505         (PTA_CLZERO): New.
506         (ix86_option_override_internal): Handle new option.
507         (processor_alias_table): Added PTA_CLZERO.
508         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
509         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
510         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
511         IX86_BUILTIN_CLZERO  built-ins.
512         * config/i386/i386.h (TARGET_CLZERO):  New.
513         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
514         (clzero):  New pattern.
515         (clzero_<mode>): New pattern.
516         * config/i386/x86intrin.h: Include clzerointrin.h.
517         * doc/extend.texi: Document clzero builtins.
518         * doc/invoke.texi: Document -mclzero option.
519
520 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
521
522         * ipa-icf.c (sem_function::merge): Check that local_original exists.
523
524 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
525
526         PR target/68609
527         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
528         bool arguement.
529         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
530         non-reciporcal path.
531         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
532         (sqrt<mode>2): Replace define_insn with define_expand that may call
533         rs6000_emit_swsqrt.
534
535 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
536             Sebastian Pop  <s.pop@samsung.com>
537
538         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
539         Improve debug.
540         (get_rename_from_scev): Check that all the ops in an expression
541         have their uses dominated by corresponding defs.
542
543 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
544             Sebastian Pop  <s.pop@samsung.com>
545
546         PR tree-optimization/68693
547         * graphite-scop-detection.c (dot_all_sese): New
548         (dot_all_scops_1): Renamed to dot_all_sese.
549         (dot_all_scops): Removed.
550         (dot_sese): New.
551         (dot_cfg): New.
552         (scop_detection::get_nearest_dom_with_single_entry): Check that
553         preds are from different loop levels.
554         (scop_detection::get_nearest_pdom_with_single_exit): Check that
555         succs are from different loop levels.
556         (scop_detection::print_sese): Inlined.
557         (scop_detection::print_edge): New.
558         (scop_detection::merge_sese): Added dumps.
559         * graphite.h: Add declarations.
560
561 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
562
563         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
564         constraints.
565
566 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
567
568         PR rtl-optimization/68349
569         * lra-eliminations.c (move_plus_up): New function.
570         (lra_eliminate_regs_1): Use the function.
571
572 2015-12-04  Nathan Sidwell  <nathan@acm.org>
573
574         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
575         (init_output_initializer): ... this.
576         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
577         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
578         nvptx_assemble_decl_begin.
579
580 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
581
582         * sancov.c: New file.
583         * Makefile.in (OBJS): Add sancov.o.
584         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
585         * passes.def (sancov_pass): Add.
586         * tree-pass.h  (sancov_pass): Add.
587         * common.opt (-fsanitize-coverage=trace-pc): Add.
588         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
589         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
590         flag_sanitize_coverage.
591
592 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
593
594         PR middle-end/65958
595         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
596         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
597         * config/arm/arm.md (probe_stack_range): Adjust.
598         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
599         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
600         (probe_stack_range_<PTR:mode>): Adjust.
601
602 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
603
604         * convert.c (convert_to_real_1): When converting from a
605         REAL_TYPE, preserve the location of EXPR in the result.
606         * tree.c (get_pure_location): Make non-static.
607         (set_source_range): Return the resulting location_t.
608         (make_location): New function.
609         * tree.h (get_pure_location): New decl.
610         (get_finish): New inline function.
611         (set_source_range): Convert return type from void to location_t.
612         (make_location): New decl.
613
614 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
615
616         PR c/68656
617         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
618         input_location to inform.
619         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
620         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
621         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
622
623 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
624
625         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
626         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
627         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
628         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
629         comdat and non-comdat.
630         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
631         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
632         and icf_merged.
633
634 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
635
636         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
637         instead of register_operand.  Remove empty constraints.  Use std::swap.
638         (cstore_si_as_di, cstore<mode>4_signed_imm,
639         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
640         gpc_reg_operand instead of register_operand.
641         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
642         register_operand.  Remove empty constraints.
643
644 2015-12-04  Nick Clifton  <nickc@redhat.com>
645
646         * config.gcc (extra_gcc_objs): Define for MSP430.
647         * common/config/msp430/msp430-common.c (msp430_handle_option):
648         Pass both -mmcu and -mcpu on to the back end if they are both defined.
649         * config/msp430/msp430.c (hwmult_name): New function.
650         (msp430_option_override): If an unrecognised MCU name is
651         detected only warn if the user has not provided suitable
652         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
653         warning messages.  Generate warnings about conflicts between
654         -mmcu and -mcpu and -mhwmult options.
655         If neither -mcpu nor -mmcu have been specified but -mhwmult=
656         f5series has the select the 430X isa.
657         (msp430_no_hwmult): If -mmcu has not been specified and
658         msp430_hwmult_type is AUTO then return true.
659         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
660         (LIB_SPEC): Add hardware multiply library selection.
661         * config/msp430/t-msp430: Delete hardware multiply multilibs.
662         Add rule to build driver-msp430.o
663         * config/msp430/driver-msp430.c: New file.
664         * config/msp430/msp430.opt (warn-mcu): New option.
665         * doc/invoke.texi: Update description of -mhwmult=auto.
666         Document -mwarn-mcu option.
667
668 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
669
670         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
671         (cstore<mode>4): Call it.
672
673 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
674
675         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
676
677         PR tree-optimization/68680
678         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
679         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
680         by name.
681
682         PR tree-optimization/68671
683         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
684         blocks starting with the successor of first bb we've modified
685         and ending with last_bb call reset_flow_sensitive_info_in_bb.
686
687 2015-12-04  Jeff Law  <law@redhat.com>
688
689         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
690         indicating if a gimple conditional was optimized to true/false.
691         (reassociate_bb): Bubble up return value from
692         maybe_optimize_range_tests.
693         (do_reassoc): Similarly, but for reassociate_bb.
694         (execute_reassoc): Return TODO_cleanup_cfg as needed.
695
696 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
697
698         * config/aarch64/aarch64.c (aarch64_override_options_internal):
699         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
700         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
701         does not affect the assembler directives.
702
703 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
704
705         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
706         emit .machine and .machinemode to the top of the assembler file.
707         (TARGET_ASM_FILE_START): Provide target hook.
708         (s390_asm_output_machine_for_arch): Protect with
709         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
710
711 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
712
713         * config/s390/s390.opt (s390_arch_string): Remove.
714         (s390_tune_string): Likewise.
715         (s390_cost_pointer): Add Variable.
716         (s390_tune_flags): Add TargetVariable.
717         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
718         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
719         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
720         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
721         (mwarn-framesize=): Save option.
722         (mno-stack-guard, mno-stack-guard): New option.
723         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
724         (mwarn-framesize=): Convert to UInteger (negative values are rejected
725         now).
726         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
727         macros changeable through the GCC target pragma into a separate
728         function.
729         (s390_cpu_cpp_builtins): Likewise.
730         (s390_pragma_target_parse): New function, implement GCC target pragma
731         if enabled.
732         (s390_register_target_pragmas): Register s390_pragma_target_parse if
733         available.
734         * common/config/s390/s390-common.c (s390_handle_option):
735         Export.
736         Move setting s390_arch_flags to s390.c.
737         Remove s390_tune_flags.
738         Allow 0 as argument to -mstack-size (switch to default value).
739         Allow 0 as argument to -mstack-guard (switch off).
740         Remove now unnecessary explicit parsing code for -mwarn-framesize.
741         * config/s390/s390-protos.h (s390_handle_option): Export.
742         (s390_valid_target_attribute_tree): Export.
743         (s390_reset_previous_fndecl): Export.
744         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
745         and end of HTM and VX builtins.
746         (s390_asm_output_function_prefix): Declare hook.
747         (s390_asm_declare_function_size): Likewise.
748         * config/s390/s390-builtins.h (B_GROUP): Use macro.
749         * config/s390/s390-opts.h: Add comment about processor_type usage.
750         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
751         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
752         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
753         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
754         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
755         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
756         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
757         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
758         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
759         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
760         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
761         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
762         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
763         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
764         undefined.
765         (vec_all_nan): Rewrite as macro using statement expressions to avoid
766         that the vector keyword needs to be defined when including the file.
767         (vec_all_numeric): Likewise.
768         (vec_any_nan): Likewise.
769         (vec_any_numeric):  Likewise.
770         * config/s390/s390.c (s390_previous_fndecl): New static variable.
771         (s390_set_current_function): New function.
772         (s390_cost): Wrapper macro to allow defining the cost table pointer in
773         the options file.
774         (processor_table): Table for march= and mtune= parsing.
775         (s390_init_builtins): Enable all builtins and types unconditionally.
776         (s390_expand_builtin): Generate an error message if builtin is not
777         supported by current options.
778         Correct an error message.
779         (s390_function_specific_restore): New function to set s390_cost.
780         (s390_asm_output_machine_for_arch): New function for emitting .machine
781         and .machinmode directives to the assembler file.
782         (s390_asm_output_function_prefix): Likewise.
783         (s390_asm_declare_function_size):  Likewise.
784         (s390_asm_output_function_label): Add mdebug output for feature testing.
785         (s390_option_override): Move implementation into internal function.
786         (s390_option_override_internal): Likewise.
787         Implement option overriding based on current options.
788         (s390_valid_target_attribute_inner_p): New function implementing target
789         attribute logic.
790         (s390_valid_target_attribute_tree): Likewise.
791         (s390_valid_target_attribute_p): Likewise.
792         (s390_reset_previous_fndecl): Likewise.
793         (s390_set_current_function): Likewise.
794         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
795         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
796         (TARGET_OPTION_RESTORE): Likewise.
797         * doc/extend.texi: S390: Document target attribute and pragma.
798         * config.in: Regenerated.
799         * configure: Regenerated.
800         * configure.ac: S390: Check for .machinemode and .machine in gas.
801         S390: Check for architecture modifiers support in gas.
802
803 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
804
805         * doc/extend.texi ("simd"): Describe new flags.
806
807 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
808
809         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
810         operand checked for alignment.
811
812 2015-12-04  Nathan Sidwell  <nathan@acm.org>
813
814         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
815         emission too. Change 'no_arg_types' to 'prototyped'.
816         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
817         main.
818         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
819
820 2015-12-04  Richard Biener  <rguenther@suse.de>
821
822         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
823         member and initialize it.
824         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
825         if necessary.
826         (sccvn_dom_walker::before_dom_children): If unreachable_dom
827         is set BB is not reachable either.  Set unreachable_dom
828         if not set and BB is unreachable.
829
830 2015-12-04  Richard Biener  <rguenther@suse.de>
831
832         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
833         query with GATHER_STATISTICS.
834
835 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
836
837         PR middle-end/65958
838         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
839         fields, add keep_stack and reorder them.
840         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
841         set it to false.  Do not insert a stack save/restore pair if it has
842         been set to true by the gimplification of the statements.
843         Restore it to the saved value on exit if it is still false.
844         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
845         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
846         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
847         * doc/extend.texi (Variable Length): Document new behavior.
848         * doc/generic.texi (Blocks): Document new handling of VLAs.
849
850 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
851             Tristan Gingold  <gingold@adacore.com>
852
853         PR middle-end/65958
854         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
855         Declare.
856         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
857         UNSPEC_PROBE_STACK_RANGE.
858         (blockage): New instruction.
859         (probe_stack_range_<PTR:mode>): Likewise.
860         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
861         function.
862         (aarch64_output_probe_stack_range): Likewise.
863         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
864         static builtin stack checking is enabled.
865         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
866         Define to 1.
867
868 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
869
870         PR target/68214
871         * config/arm/arm.md (*call_mem): Delete pattern.
872         (*call_value_mem): Likewise.
873         * config/arm/arm.c (output_call_mem): Delete.
874         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
875
876 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
877
878         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
879         aarch64_sync_memory_operand.
880
881 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
882
883         PR target/68655
884         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
885         (expand_vec_perm_1): Use it and recurse if everything else
886         failed.  Use nd.perm instead of perm2.
887         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
888         instead of gen_lowpart for the target.
889         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
890         and recurse if everything else failed.
891
892 2015-12-04  Richard Biener  <rguenther@suse.de>
893
894         PR middle-end/68636
895         * builtins.c (get_pointer_alignment_1): Take care of byte to
896         bit alignment computation overflow.
897
898 2015-12-04  Richard Biener  <rguenther@suse.de>
899
900         PR middle-end/67438
901         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
902         a constant with single_use.
903
904 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
905             Jiong Wang  <jiong.wang@arm.com>
906
907         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
908         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
909
910 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
911
912         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
913         Add short circuit for !flag_strict_aliasing
914         (get_alias_set): Remove flag_strict_aliasing check.
915         (new_alias_set): Likewise.
916
917 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
918
919         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
920         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
921         (exynosm1_regmove_cost): Likewise.
922         (exynosm1_vector_cost): Likewise.
923         (exynosm1_tunings): Likewise.
924         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
925         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
926
927 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
928             Richard Biener  <richard.guenther@gmail.com>
929
930         * cfgexpand.c (pass_expand::execute): Replace call to
931         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
932         * tree-ssa.c (delete_tree_ssa): Likewise.
933         * function.c (set_cfun): Call redirect_edge_var_map_empty.
934         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
935         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
936         (redirect_edge_var_map_empty): New.
937         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
938         (redirect_edge_var_map_empty): New.
939
940 2015-12-03  Jeff Law  <law@redhat.com>
941
942         PR tree-optimization/68599
943         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
944         in call to loop_optimizer_init.
945         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
946         optimization to drop the assumptions/infinite notations if
947         the loop has a single exit.
948
949 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
950
951         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
952         the pattern cannot FAIL.
953         (vec_store_lanes@var{m}@var{n}): Likewise.
954         (maskload@var{m}@var{n}): Likewise.
955         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
956         in the name of the pattern.
957         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
958         floating-point mode and that all operands have that mode.
959         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
960         pattern cannot FAIL.
961         (sqrt@var{m}2): Document that mode m must be a scalar or vector
962         floating-point mode, that all operands have that mode, and that
963         the patterns cannot FAIL.  Remove previous documentation referring
964         to @code{double} and @code{float}.
965         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
966         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
967         (copysign@var{m}3): Likewise.
968         (exp@var{m}2): Likewise.  Explicitly state the base.
969         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
970         (btrunc@var{m}2, rint@var{m}2): Likewise.
971         (round@var{m}2): Likewise.  Fix incorrect description of rounding
972         effect.
973         (ceil@var{m}2): As for round@var{m}2.
974         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
975         the instruction must not raise an inexact condition.
976         (scalb@var{m}3): Document previously-undocumented pattern
977         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
978         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
979         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
980         (significand@var{m}2): Likewise.
981         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
982         mode m and operand 0 is defined more freely.  Document that @var{m}
983         can be a scalar or vector integer mode and that the pattern is not
984         allowed to FAIL.
985         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
986         (clrsb@var{m}2): Likewise, except that the description of the
987         mode was missing in this case.
988
989 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
990
991         * internal-fn.def (RSQRT): New function.
992         * optabs.def (rsqrt_optab): New optab.
993         * doc/md.texi (rsqrtM2): Document.
994         * target.def (builtin_reciprocal): Replace gcall argument with
995         a function decl.  Restrict hook to machine functions.
996         * doc/tm.texi: Regenerate.
997         * targhooks.h (default_builtin_reciprocal): Update prototype.
998         * targhooks.c (default_builtin_reciprocal): Likewise.
999         * tree-ssa-math-opts.c: Include internal-fn.h.
1000         (internal_fn_reciprocal): New function.
1001         (pass_cse_reciprocals::execute): Call it, and build a call to an
1002         internal function on success.  Only call targetm.builtin_reciprocal
1003         for machine functions.
1004         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1005         second argument.
1006         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1007         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1008         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1009         machine functions.
1010         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1011         (aarch64_builtin_reciprocal): Replace gcall argument with a
1012         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
1013         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
1014         (aarch64_optab_supported_p): New function.
1015         (TARGET_OPTAB_SUPPORTED_P): Define.
1016         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1017         (rsqrt<mode>2): ...this.
1018         * config/i386/i386.c (use_rsqrt_p): New function.
1019         (ix86_builtin_reciprocal): Replace gcall argument with a
1020         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
1021         check.  Only handle machine functions.
1022         (ix86_optab_supported_p): Handle rsqrt_optab.
1023         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1024         (rs6000_builtin_reciprocal): Replace gcall argument with a
1025         function decl.  Remove optimize_insn_for_size_p check.
1026         Only handle machine functions.
1027         (rs6000_optab_supported_p): New function.
1028
1029 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
1030
1031         PR target/68471
1032         PR target/68472
1033         * config/i386/i386.c (ix86_mitigate_rop): Don't call
1034         compute_bb_for_insn again.  Call df_insn_rescan_all.
1035         * config/i386/i386.md (set_got_rex64): Override modrm_class.
1036
1037         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1038
1039 2015-12-03  Nathan Sidwell  <nathan@acm.org>
1040
1041         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1042         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1043         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1044         (nvptx_option_override): Set data ares for worker vars.
1045         (nvptx_addr_space_from_sym): Delete.
1046         (nvptx_encode_section_info): New.
1047         (section_for_sym, section_for_decl): New.
1048         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1049         (nvptx_section_from_addr_space): Delete.
1050         (nvptx_section_for_decl): Delete.
1051         (nvptx_output_aligned, nvptx_declare_object_name,
1052         nvptx_assemble_undefined_decl): Use section_for_decl, remove
1053         unnecessary checks.
1054         (nvptx_print_operand): Add 'D', adjust 'A'.
1055         (nvptx_expand_worker_addr): Adjust unspec generation.
1056         (TARGET_ENCODE_SECTION_INFO): Override.
1057         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1058         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1059         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1060         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1061         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1062         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1063         (UNSPEC_TO_GENERIC): New.
1064         (nvptx_register_or_symbolic_operand): Delete.
1065         (cvt_code, cvt_name, cvt_str): Delete.
1066         (convaddr_<cvt_name><mode> [P]): Delete.
1067         (convaddr_<mode> [P]): New.
1068
1069 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1070
1071         PR rtl-optimization/68624
1072         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1073         blocks if they exist and simplify the logic choosing the order to emit
1074         them in.
1075
1076 2015-12-03  Richard Biener  <rguenther@suse.de>
1077
1078         PR tree-optimization/66051
1079         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1080         on load group size.  Do not pass in vectorization_factor.
1081         (vect_transform_slp_perm_load): Do not require any permute support.
1082         (vect_build_slp_tree): Do not pass in vectorization factor.
1083         (vect_analyze_slp_instance): Do not compute vectorization
1084         factor estimate.  Use vector size instead of vectorization factor
1085         estimate to split store groups for BB vectorization.
1086
1087 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
1088
1089         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1090         DECL as return value is allowed to have NULL bounds.
1091
1092 2015-12-03  Tom de Vries  <tom@codesourcery.com>
1093
1094         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1095         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1096         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1097
1098 2015-12-03  Richard Biener  <rguenther@suse.de>
1099
1100         PR tree-optimization/67800
1101         PR tree-optimization/68333
1102         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1103         restriction to reduction contexts but allow SLP reductions as well.
1104         (vect_recog_sad_pattern): Likewise.
1105         (vect_recog_widen_sum_pattern): Likewise.
1106
1107 2015-12-03  Richard Biener  <rguenther@suse.de>
1108
1109         PR tree-optimization/68639
1110         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1111         belonging to different loops.
1112         (vect_analyze_data_ref_accesses): Likewise.
1113
1114 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1115
1116         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1117         Remove "prefix_extra".
1118         (define_insn "vec_extract_hi_<mode>_mask"): New.
1119         (define_insn "vec_extract_hi_<mode>"): Remove masking.
1120
1121 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1122
1123         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1124         (propagate_pure_const): Use it; fix comments and optimize loops.
1125
1126 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1127
1128         * ipa-pure-const.c (ignore_edge): Rename to ...
1129         (ignore_edge_for_nothrow) ... this one; also ignore eges to
1130         interposable functions or ones that can not throw.
1131         (propagate_nothrow): Fix handling of availability.
1132
1133 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1134
1135         PR ipa/68184
1136         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1137
1138 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1139             Sebastian Pop  <s.pop@samsung.com>
1140
1141         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1142         isl_ast_op_zdiv_r.
1143         (gcc_expression_from_isl_expr_op): Same.
1144
1145 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1146             Sebastian Pop  <s.pop@samsung.com>
1147
1148         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1149         that insertion point is still in the region.
1150
1151 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1152             Sebastian Pop  <s.pop@samsung.com>
1153
1154         PR tree-optimization/68550
1155         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1156         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1157         statements.
1158
1159 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1160
1161         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1162         * configure: Regenerate.
1163         * config.in: Regenerate.
1164         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1165         function.
1166         (rs6000_output_function_prologue): Use it instead of checking
1167         cfun->machine->r2_setup_needed.  Use internal labels instead of
1168         GNU as local label extension.  Handle ELFv2 large code model.
1169         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1170         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1171
1172 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1173
1174         PR target/68647
1175         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1176         New functions.
1177         (expand_unop): Use them.
1178
1179 2015-12-02  Marek Polacek  <polacek@redhat.com>
1180
1181         PR c++/68653
1182         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1183
1184 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1185
1186         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
1187         SHUFFLE defines.
1188         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1189
1190 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1191             Sebastian Pop  <s.pop@samsung.com>
1192
1193         * graphite-dependences.c (scop_get_reads): Add extra dumps.
1194         (scop_get_must_writes): Same.
1195         (scop_get_may_writes): Same.
1196         (compute_deps): Same.
1197         * graphite-sese-to-poly.c (bounds_are_valid): New.
1198         (pdr_add_data_dimensions): Call bounds_are_valid.
1199
1200 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1201             Sebastian Pop  <s.pop@samsung.com>
1202
1203         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1204         * graphite-poly.c (apply_poly_transforms): Same.
1205         * graphite.c (gate_graphite_transforms): Same.
1206         * toplev.c (process_options): Same.
1207
1208 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1209
1210         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1211         (mips_output_probe_stack_range): Rotate the loop and simplify.
1212
1213 2015-12-02  David Sherwood  <david.sherwood@arm.com>
1214
1215         * config/aarch64/aarch64.md: New pattern.
1216         * config/aarch64/aarch64-simd.md: Likewise.
1217         * config/aarch64/iterators.md: New unspecs, iterators.
1218
1219 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1220
1221         * dwarf2out.c (dwar2out_var_location): In addition to notes,
1222         process indirect calls whose target is compile-time known.
1223         Enhance pattern matching to get the SYMBOL_REF they embed.
1224         (gen_subprogram_die): Handle such calls.
1225         * final.c (final_scan_insn): For call instructions, invoke the
1226         var_location debug hook only after the call has been emitted.
1227
1228 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1229
1230         * gimplify.c (enum gimplify_omp_var_data): Add enum value
1231         GOVD_MAP_FORCE.
1232         (oacc_default_clause): Fix default for scalars in oacc kernels.
1233         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1234
1235 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1236
1237         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1238         parameter base_pointers_restrict.
1239         (omp_target_base_pointers_restrict_p): New function.
1240         (scan_omp_target): Call scan_sharing_clauses with
1241         base_pointers_restrict arg.
1242
1243 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1244
1245         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1246         (nvptx_underlying_object_mode): Delete.
1247         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1248         (output_reg): New.
1249         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
1250         (nvptx_output_mov_insn): New.
1251         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1252         Use output_reg. Merge 't' and 'u' handling.
1253         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1254         (struct machine_function): Remvoe punning_buffer_size.
1255         (REGISTER_NAMES): Remove %punbuffer.
1256         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1257         UNSPEC_CPLX_HIGHPART): Delete.
1258         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1259         nvptx_output_mov_insn.
1260         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1261         Use nvptx_output_mov_insn.
1262         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1263         Delete.
1264         (mov<mode> [SDCM]): Delete.
1265
1266 2015-12-02  Richard Biener  <rguenther@suse.de>
1267
1268         * tree.h (tree_invariant_p): Declare.
1269         * tree.c (tree_invariant_p): Export.
1270         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1271         create SAVE_EXPRs but reject patterns if we would need to.
1272
1273 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1274
1275         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1276         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1277
1278 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
1279
1280         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1281         (cstore<mode>4): Use it.
1282
1283 2015-12-02  Richard Biener  <rguenther@suse.de>
1284
1285         PR tree-optimization/68625
1286         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1287         cleanup_control_flow_bb.
1288         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1289         on all BBs, then cleanup_tree_cfg_bb and finally iterate
1290         over the worklist doing both.
1291
1292 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1293
1294         PR tree-optimization/68432
1295         * coretypes.h (optimization_type): New enum.
1296         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1297         * doc/tm.texi: Regenerate.
1298         * target.def (optab_supported_p): New hook.
1299         * targhooks.h (default_optab_supported_p): Declare.
1300         * targhooks.c (default_optab_supported_p): New function.
1301         * predict.h (function_optimization_type): Declare.
1302         (bb_optimization_type): Likewise.
1303         * predict.c (function_optimization_type): New function.
1304         (bb_optimization_type): Likewise.
1305         * optabs-query.h (convert_optab_handler): Define an overload
1306         that takes an optimization type.
1307         (direct_optab_handler): Likewise.
1308         * optabs-query.c (convert_optab_handler): Likewise.
1309         (direct_optab_handler): Likewise.
1310         * internal-fn.h (direct_internal_fn_supported_p): Take an
1311         optimization_type argument.
1312         * internal-fn.c (direct_optab_supported_p): Likewise.
1313         (multi_vector_optab_supported_p): Likewise.
1314         (direct_internal_fn_supported_p): Likewise.
1315         * builtins.c (replacement_internal_fn): Update call to
1316         direct_internal_fn_supported_p.
1317         * gimple-match-head.c (build_call_internal): Likewise.
1318         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1319         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1320         * tree.c (maybe_build_call_expr_loc): Likewise.
1321         * config/i386/i386.c (ix86_optab_supported_p): New function.
1322         (TARGET_OPTAB_SUPPORTED_P): Define.
1323         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1324         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1325         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1326         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1327         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1328         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1329
1330 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1331
1332         * Makefile.in (GENSUPPORT_H): New macro.
1333         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1334         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1335         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1336         (build/genconstants.o, build/genextract.o, build/genflags.o)
1337         (build/gentarget-def.o): Use it.
1338         (build/genemit.o): Likewise.  Depend on internal-fn.def.
1339         * genopinit.c: Move block comment to optabs.def.
1340         (optab_tag, optab_def): Move to gensupport.h
1341         (pattern): Likewise, renaming to optab_pattern.
1342         (match_pattern): Move to gensupport.c
1343         (gen_insn): Use find_optab.
1344         (patterns, pattern_cmp): Replace pattern with optab_pattern.
1345         (main): Likewise.  Use num_optabs.
1346         * optabs.def: Add comment that was previously in genopinit.c.
1347         * gensupport.h (optab_tag): Moved from genopinit.c
1348         (optab_def): Likewise, expanding commentary.
1349         (optab_pattern): Likewise, after renaming from pattern.
1350         (optabs, num_optabs, find_optab): Declare.
1351         * gensupport.c (optabs): Moved from genopinit.c.
1352         (num_optabs): New variable.
1353         (match_pattern): Moved from genopinit.c.
1354         (find_optab): New function, extracted from genopinit.c:gen_insn.
1355         * genemit.c (nofail_optabs): New variable.
1356         (emit_c_code): New function.
1357         (gen_expand): Check whether the instruction is an optab that isn't
1358         allowed to fail.  Call emit_c_code.
1359         (gen_split): Call emit_c_code here too.
1360         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
1361
1362 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1363
1364         * config/s390/predicates.md (const_mask_operand): New predicate.
1365         * config/s390/s390-builtins.def: Set a smaller bitmask
1366         for a few builtins.
1367         * config/s390/vector.md: Change predicate from immediate_operand
1368         to either const_int_operand or const_mask_operand.  Add special
1369         insn conditions on patterns which have to exclude certain values.
1370         * config/s390/vx-builtins.md: Likewise.
1371
1372 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1373
1374         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1375         mode from DI to SI.
1376
1377 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1378
1379         * config/s390/s390-builtin-types.def: New builtin types added.
1380         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1381         * config/s390/s390.c (s390_expand_builtin): Always truncate
1382         constants to the mode in the pattern.
1383         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1384         respective builtin __builtin_s390_vec_splat_*.
1385
1386 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1387
1388         * config/s390/s390-builtin-types.def: Sort builtin types.
1389
1390 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1391
1392         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1393         condition for the RT flag.
1394
1395 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1396
1397         * config/s390/constraints.md ("jKK"): New constraint.
1398         * config/s390/s390.c (tm-constrs.h): Include for
1399         satisfies_constraint_*.
1400         (s390_legitimate_constant_p): Allow jKK constants.  Use
1401         satisfies_constraint_* also for the others.
1402         (legitimate_reload_vector_constant_p): Likewise.
1403         (print_operand): Allow h output modifier on vectors.
1404         * config/s390/vector.md ("mov<mode>"): Add vrepi.
1405
1406 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1407
1408         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1409         letter I->K.
1410
1411 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1412
1413         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1414         ("bswaphi2"): New pattern.
1415         New splitter for HI reg-reg bswap.
1416
1417 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
1418
1419         PR driver/68029
1420         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1421         if it is the first parameter.
1422
1423 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1424
1425         PR tree-optimization/68577
1426         * tree-vect-stmts.c (simple_integer_narrowing): New function.
1427         (vectorizable_call): Restrict internal function handling
1428         to NONE and NARROW cases, using simple_integer_narrowing
1429         to test for the latter.  Add cost of narrowing operation
1430         and insert it where necessary.
1431
1432 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
1433
1434         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1435         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1436         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1437
1438 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1439
1440         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1441         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1442         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1443         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1444         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1445         (init_output_initializer): Call write_var_marker.
1446         (nvptx_output_aligned_decl): New.
1447         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1448
1449 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1450
1451         * c-common.c (parse_optimize_options): Do not silently ignore
1452         -fstrict-aliasing changes.
1453
1454 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1455
1456         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1457         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1458         stream TYPE_ALIAS_SET.
1459         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1460         stream TYPE_ALIAS_SET.
1461
1462 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1463
1464         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1465         consider mode.
1466
1467 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1468
1469         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1470         indirection for large and small code models.
1471         (adjust_vperm): Likewise.
1472
1473 2015-12-01  Julian Brown  <julian@codesourcery.com>
1474             Cesar Philippidis  <cesar@codesourcery.com>
1475             James Norris  <James_Norris@mentor.com>
1476
1477         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1478         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1479         (is_gimple_omp_oacc): Add support for above.
1480         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1481         (omp_notice_variable): Diagnose undefined implicit uses of
1482         use_device variables in offloaded regions.
1483         (gimplify_scan_omp_clauses): Add host_data, use_device
1484         support. Diagnose undefined mapping of use_device variables in
1485         OpenACC clauses.
1486         (gimplify_omp_workshare): Add host_data support.
1487         (gimplify_expr): Likewise.
1488         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1489         * omp-low.c (lookup_decl_in_outer_ctx)
1490         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1491         host_data regions.
1492         (scan_sharing_clauses): Support use_device.
1493         (check_omp_nesting_restrictions): Support host_data.
1494         (expand_omp_target): Support host_data.
1495         (lower_omp_target): Skip over outer host_data regions when looking
1496         up decls. Support use_device.
1497         (make_gimple_omp_edges): Support host_data.
1498         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1499
1500 2015-12-01  Marek Polacek  <polacek@redhat.com>
1501
1502         PR middle-end/68582
1503         * cgraphunit.c (check_global_declaration): Only depend
1504         on TREE_THIS_VOLATILE for VAR_DECLs.
1505
1506 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1507
1508         PR tree-optimization/68474
1509         * tree-call-cdce.c (use_internal_fn): Protect call to
1510         gen_shrink_wrap_conditions.
1511
1512 2015-12-01  Christian Bruel  <christian.bruel@st.com>
1513
1514         PR target/68617
1515         * config/arm/arm.opt (unaligned_access): Save.
1516         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1517         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1518         (arm_option_override_internal): ... here.
1519         * config/arm/arm.h (TARGET_32BIT_P): New macro.
1520
1521 2015-12-01  Richard Biener  <rguenther@suse.de>
1522
1523         PR tree-optimization/68379
1524         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1525         always base loads on the first used DR of a group.
1526         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1527         Compute alignment of the first scalar element unconditionally.
1528
1529 2015-12-01  Richard Biener  <rguenther@suse.de>
1530
1531         PR middle-end/68590
1532         * genmatch.c (struct capture_info): Add match_use_count.
1533         (capture_info::walk_match): Increment match_use_count.
1534         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1535         replacements in a save_expr if they occur more often than
1536         in the original expression.
1537
1538 2015-12-01  Richard Biener  <rguenther@suse.de>
1539
1540         PR ipa/68470
1541         * ipa-split.c (split_function): Handle main part not returning.
1542
1543 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1544
1545         PR middle-end/68595
1546         * tree-vect-stmts.c (vect_init_vector): Cast boolean
1547         scalars to a proper value before building a vector.
1548
1549 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1550
1551         * genattrtab.c (check_attr_test): Take an attr_desc instead of
1552         an is_const flag.  Put the file_location argument first.
1553         Update recursive calls.  Improve error messages.
1554         (check_attr_value): Take a file location and use it instead
1555         of attr->loc.  Improve error messages.  Update calls to
1556         check_attr_test.
1557         (check_defs): Update call to check_attr_value.
1558         (make_canonical): Likewise.
1559         (gen_attr): Likewise.
1560         (main): Likewise.
1561         (gen_insn_reserv): Update call to check_attr_test.
1562
1563 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1564
1565         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1566
1567 2015-12-01  Richard Biener  <rguenther@suse.de>
1568
1569         PR middle-end/68590
1570         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1571
1572 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1573
1574         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1575         odr_type_p): Move to ...
1576         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1577         odr_type_p): here; miscro-optimize.
1578
1579 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
1580
1581         PR tree-optimization/68529
1582         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1583         Compute no-overflow information for control iv.
1584         (number_of_iterations_lt, number_of_iterations_le): Add new param.
1585         (number_of_iterations_cond): Pass new argument to above functions.
1586
1587 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
1588
1589         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1590         inlining -fno-strict-aliasing into -fstrict-aliasing body.
1591
1592 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1593             Sebastian Pop  <s.pop@samsung.com>
1594
1595         PR tree-optimization/68565
1596         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1597         codegen_error.  Fail when rhs of division operations is integer_zerop.
1598         (ternary_op_to_tree): Early return on codegen_error.
1599         (unary_op_to_tree): Same.
1600         (nary_op_to_tree): Same.
1601         (gcc_expression_from_isl_expr_op): Same.
1602         (gcc_expression_from_isl_expression): Same.
1603         (graphite_create_new_loop): On codegen_error continue generating
1604         wrong code.
1605         (graphite_create_new_loop_guard): Same.
1606         (build_iv_mapping): Same.
1607         (graphite_create_new_guard): Same.
1608
1609 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1610             Sebastian Pop  <s.pop@samsung.com>
1611
1612         * graphite-isl-ast-to-gimple.c: Fix dump messages.
1613         * graphite-scop-detection.c: Same.
1614         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1615
1616 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
1617
1618         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1619         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1620         (convert_local_omp_clauses): Likewise.
1621
1622 2015-11-30  Tom de Vries  <tom@codesourcery.com>
1623
1624         PR tree-optimization/46032
1625         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1626         factored out of ...
1627         (find_func_aliases_for_call): ... here.
1628         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1629         BUILT_IN_GOMP_PARALLEL.
1630         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
1631         function.
1632
1633 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
1634
1635         PR tree-optimization/68501
1636         * target.def (builtin_reciprocal): Replace the 3 arguments with
1637         a gcall * one, adjust description.
1638         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1639         with a gcall * one.
1640         * targhooks.c (default_builtin_reciprocal): Likewise.
1641         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1642         targetm.builtin_reciprocal even on internal functions, adjust
1643         the arguments and allow replacing an internal function with normal
1644         built-in.
1645         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1646         with a gcall * one.  Handle internal fns too.
1647         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1648         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1649         * doc/tm.texi (builtin_reciprocal): Document.
1650
1651 2015-11-30  Richard Biener  <rguenther@suse.de>
1652
1653         PR tree-optimization/68592
1654         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1655         on the pattern def sequence.
1656
1657 2015-11-30  Nathan Sidwell  <nathan@acm.org>
1658
1659         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1660         (write_one_arg): Reorder parms, add 'sep' param.
1661         (nvptx_write_function_decl): Rename to ...
1662         (write_fn_proto): ... here.  Do name replacement. Emit linaer
1663         comment marker. Deal with both decls and defns. Simplify argument
1664         formatting.
1665         (write_function_decl_and_comment): Delete.
1666         (write_func_decl_from_insn): Rename to ...
1667         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
1668         (nvptx_record_fndecl): Call write_fn_proto.
1669         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1670         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1671         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1672
1673 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
1674
1675         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1676         (define_insn "*k<logic><mode>"): Use new iterator.
1677
1678 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
1679
1680         PR target/28115
1681         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1682         (sparc_adjust_cost): Add missing space.
1683
1684 2015-11-30  Richard Biener  <rguenther@suse.de>
1685
1686         PR c/68162
1687         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1688
1689 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1690
1691         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1692         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1693         base ref, DR pairs and store base_predicate for write type DRs.
1694         (ifcvt_memrefs_wont_trap): Guard checks with
1695         -ftree-loop-if-convert-stores flag.
1696
1697 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1698
1699         * cgraph.c (cgraph_node::make_local): No name is unique during
1700         incremental linking.
1701         * cgraph.h (can_be_discarded_p): Update comment; also common and
1702         WEAK in named sections can be discarded; when doing incremental
1703         link do not rely on resolution being the final one.
1704         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1705         When symbol can be discarded, do not rely on resolution info.
1706         * symtab.c (symtab_node::nonzero_address): Take into account that
1707         symbol can be discarded.
1708         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1709         definition correctly.
1710         (function_and_variable_visibility): Do not set unique_name when
1711         incrementally linking.
1712
1713 2015-11-29  Nathan Sidwell  <nathan@acm.org>
1714
1715         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1716         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1717         (ctrap<mode>): Use const0_operand.
1718
1719 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1720
1721         * ipa-devirt.c (add_type_duplicate): Remove redundant
1722         ODR violation dump.
1723
1724 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
1725
1726         PR target/28115
1727         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1728         recog_memoized test for insn and check recog_memoized for dep_insn.
1729
1730 2015-11-28  Nathan Sidwell  <nathan@acm.org>
1731
1732         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1733         (FRAME_POINTER_CFA_OFFSET): Define.
1734         (struct nvptx_args): Use 'tree' type.
1735         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1736
1737 2015-11-28  Tom de Vries  <tom@codesourcery.com>
1738
1739         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1740
1741 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
1742
1743         * doc/invoke.texi (Option Summary): Use negative form of
1744         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1745         sort alphabetically and re-justify.
1746
1747 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
1748
1749         PR rtl-optimization/68536
1750         * lra.c (lra_emit_add): Add code for null base.
1751         * lra-constraints.c (curr_insn_transform): Skip operators for
1752         subreg reloads.
1753
1754 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1755
1756         Revert
1757         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1758
1759         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1760         multiple_sets.
1761         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1762         are not modified by the final modified insns in the basic blocks.
1763
1764 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1765
1766         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1767         Don't declare.
1768         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1769         (nvptx_maybe_convert_symbolic_operand): Simplify.
1770         (nvptx_addr_space_from_address): Delete.
1771         (nvptx_print_operand): Adjust 'A' case.
1772
1773 2015-11-27  Richard Biener  <rguenther@suse.de>
1774
1775         PR tree-optimization/68559
1776         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1777         peeling for gap checks ...
1778         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
1779         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1780         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1781
1782 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1783
1784         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
1785         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1786         (nvptx_record_fndecl): Don't return value, remove force
1787         argument. Require fndecl.
1788         (nvptx_record_libfunc): New.
1789         (nvptx_record_needed_decl): Deteermine how to record decl here.
1790         (nvptx_maybe_record_fnsym): New.
1791         (nvptx_expand_call): Don't record libfuncs here,
1792         (nvptx_maybe_convert_symbolic_operand): Use
1793         nvptx_maye_record_fnsym.
1794         (nvptx_assemble_integer): Reimplement with single switch.
1795         (nvptx_output_call_insn): Register libfuncs here.
1796         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
1797         * config/nvptx/nvptx.md (expand_movdi): Don't call
1798         nvptx_record_needed_decl.
1799
1800 2015-11-27  Richard Biener  <rguenther@suse.de>
1801
1802         PR tree-optimization/68553
1803         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1804         generation for 1:1 permutations.
1805         (vect_transform_slp_perm_load): Detect 1:1 permutations.
1806
1807 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
1808
1809         * gimple.h (nonbarrier_call_p): Declare.
1810         * gimple.c (nonbarrier_call_p): New function.
1811         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1812         Also increment call phase for ASMs with vdef and potential barrier
1813         calls.
1814
1815 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1816
1817         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1818         multiple_sets.
1819         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1820         are not modified by the final modified insns in the basic blocks.
1821
1822 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1823
1824         PR rtl-optimization/68506
1825         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1826         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
1827         blocks.
1828
1829 2015-11-27  Martin Liska  <mliska@suse.cz>
1830
1831         PR c++/68312
1832         * vec.h (release_vec_vec): New function.
1833
1834 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1835
1836         PR tree-optimization/68552
1837         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1838         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
1839         or whether v0 == v1.
1840
1841 2015-11-27  Martin Liska  <mliska@suse.cz>
1842
1843         * tree-ssa-uninit.c: Fix whitespaces in the source file.
1844         The change is just automatical.
1845
1846 2015-11-27  Martin Liska  <mliska@suse.cz>
1847
1848         * tree-chkp.c (chkp_make_static_bounds): Release buffer
1849         used for string.
1850
1851 2015-11-27  Martin Liska  <mliska@suse.cz>
1852
1853         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1854         Do not release memory for comp_alias_ddrs.
1855         * tree-vect-loop.c (destroy_loop_vec_info): Release
1856         the memory for all loop_vec_info.
1857
1858 2015-11-27  Martin Liska  <mliska@suse.cz>
1859
1860         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1861         of a local-scope vec.
1862         (struct final_warning_record): Use auto_vec instead of vec.
1863
1864 2015-11-27  Richard Biener  <rguenther@suse.de>
1865
1866         PR tree-optimization/68553
1867         * tree-vect-slp.c (vect_get_mask_element): Remove.
1868         (vect_transform_slp_perm_load): Implement in a simpler way.
1869
1870 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
1871
1872         PR rtl-optimization/67753
1873         PR rtl-optimization/64164
1874         * function.c (assign_parm_setup_block): Right-shift
1875         upward-padded big-endian args when bypassing the stack slot.
1876
1877 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
1878
1879         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1880         `-mcompact-branches='.
1881         (MIPS Options): Likewise.
1882
1883 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1886
1887 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
1888
1889         * doc/install.texi (Prerequisites): Increase ISL requirement to
1890         0.14 or 0.15.
1891
1892 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1893
1894         * config/aarch64/arm_neon.h
1895         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1896         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1897         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1898         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1899         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1900         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1901         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1902         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1903         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1904         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1905         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1906         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1907
1908 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1909
1910         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1911         (vqrdmlahq_s16, vqrdmlahq_s32): New.
1912         (vqrdmlsh_s16, vqrdmlsh_s32): New.
1913         (vqrdmlshq_s16, vqrdmlshq_s32): New.
1914
1915 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1916
1917         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1918         ARM_FEATURE_QRDMX.
1919
1920 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
1921
1922         PR debug/53927
1923         * tree-nested.c (finalize_nesting_tree_1): Append a field to
1924         hold the frame base address.
1925         * dwarf2out.c (gen_subprogram_die): Generate for
1926         DW_AT_static_link a location description that computes the value
1927         of this field.
1928
1929 2015-11-26  Tom de Vries  <tom@codesourcery.com>
1930
1931         revert:
1932         2015-11-25  Tom de Vries  <tom@codesourcery.com>
1933
1934         * cfgloop.c (find_single_latch): New function, factored out of ...
1935         (flow_loops_find): ... here.
1936         (verify_loop_structure): Improve verification of loop->latch.
1937         * cfgloop.h (find_single_latch): Declare.
1938         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1939
1940 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1941
1942         * config/aarch64/aarch64-simd-builtins.def:
1943         Add missing changes from r230962.
1944
1945 2015-11-26  Nathan Sidwell  <nathan@acm.org>
1946
1947         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1948         arg with name.  Don't deal with split regs.  Tweak formatting.
1949         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1950         (nvptx_output_call_insn): Don't deal with split regs here.
1951
1952 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1953
1954         * config/aarch64/aarch64-simd-builtins.def
1955         (sqrdmlah, sqrdmlsh): New.
1956         (sqrdmlah_lane, sqrdmlsh_lane): New.
1957         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1958
1959 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1960
1961         * config/aarch64/aarch64-simd.md
1962         (aarch64_sqmovun<mode>): Fix some white-space.
1963         (aarch64_<sur>qmovun<mode>): Likewise.
1964         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1965         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1966         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1967         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1968         (UNSPEC_SQRDMLSH): New.
1969         (SQRDMLH_AS): New.
1970         (rdma_as): New.
1971
1972 2015-11-26  Richard Biener  <rguenther@suse.de>
1973
1974         PR tree-optimization/66721
1975         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1976         iteration cost earlier.  Re-do analysis without SLP when
1977         vectorization using SLP fails and without has a chance to succeed.
1978
1979 2015-11-26  Richard Biener  <rguenther@suse.de>
1980
1981         * genmatch.c (dt_simplify::gen_1): For generic wrap all
1982         multi-result-use captures in a SAVE_EXPR.
1983
1984 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1985
1986         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1987         (TARGET_SIMD_RDMA): New.
1988
1989 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1990
1991         * combine.c (subst): Do not return clobber of zero in widening mult
1992         case.  Just return x unchanged if it is a no-op substitution.
1993
1994 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
1995
1996         PR target/68416
1997         * config/i386/i386.h (enum reg_class): Add
1998         bounds registers to ALL_REGS.
1999
2000 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2001
2002         PR tree-optimization/68128
2003         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2004         * gimplify.c: Include gimple-walk.h.
2005         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2006         (omp_notice_variable): Set flags to n->value if n already
2007         exists in target region, but we need to jump to do_outer.
2008         (omp_shared_to_firstprivate_optimizable_decl_p,
2009         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2010         functions.
2011         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2012         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2013         not modified in the body.  Call omp_mark_stores for outer
2014         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2015         in the body or on OMP_CLAUSE_LASTPRIVATE.
2016         (gimplify_adjust_omp_clauses): Add body argument, call
2017         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2018         Set OMP_CLAUSE_SHARED_READONLY
2019         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2020         not modified in the body.  Call omp_mark_stores for outer
2021         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2022         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2023         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2024         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2025         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2026         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2027         * tree-nested.c (convert_nonlocal_omp_clauses,
2028         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2029         non-local vars or local vars referenced from nested routines.
2030         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2031         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
2032         TREE_READONLY, don't call use_pointer_for_field with non-NULL
2033         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2034
2035 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
2036
2037         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2038         about signed left shift stronger and clarify the cases when they're
2039         broken.
2040
2041 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2042             Bernd Schmidt  <bschmidt@redhat.com>
2043
2044         PR rtl-optimization/67226
2045         * calls.c (store_one_arg): Take into account
2046         crtl->args.pretend_args_size when checking for overlap between
2047         arg->value and argblock + arg->locate.offset during sibcall
2048         optimization.
2049
2050 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
2051
2052         * config/aarch64/aarch64.md (cbranch<mode>4): Use
2053         aarch64_fp_compare_operand.
2054         (store_pairsf): Use aarch64_reg_or_fp_zero.
2055         (store_pairdf): Likewise.
2056         (cstore<mode>4): Use aarch64_fp_compare_operand.
2057         (cmov<mode>6): Likewise.
2058         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2059
2060 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
2061             Sebastian Pop  <s.pop@samsung.com>
2062
2063         PR tree-optimization/68453
2064         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2065         not redirect edges already pointing to their destination.
2066         (translate_isl_ast_node_for): Split edges after loops to create
2067         basic blocks for close phi nodes.  Save merge points at the end of
2068         a loop guard.
2069         (translate_isl_ast_node_if): Save merge points at the end of the
2070         if region.
2071         (add_close_phis_to_outer_loops): New.
2072         (add_close_phis_to_merge_points): New.
2073         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2074         (copy_bb_and_scalar_dependences): Do not split basic blocks on
2075         loop close phi locations.
2076
2077 2015-11-25  Jan Hubicka  <jh@suse.cz>
2078
2079         * ipa-visibility.c (cgraph_externally_visible_p,
2080         varpool_node::externally_visible_p): When doing incremental linking,
2081         hidden symbols may be still used later.
2082         (update_visibility_by_resolution_info): Do not drop weak during
2083         incremental link.
2084         (function_and_variable_visibility): Fix formating.
2085         * flag-types.h (lto_linker_output): Declare.
2086         * common.opt 9flag_incremental_link): New flag.
2087
2088 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2089
2090         * config/rs6000/constraints.md (wb constraint): New constraint for
2091         ISA 3.0 d-form scalar addressing.
2092
2093         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2094         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2095         Altivec registers.  Add wb constraint for Altivec registers with
2096         D-form addressing.  If we have ISA 3.0 d-form support, undo
2097         secondary reload support for using FPR registers if we want to do
2098         D-form addressing.
2099         (rs6000_debug_reg_global): Likewise.
2100         (rs6000_setup_reg_addr_masks): Likewise.
2101         (rs6000_init_hard_regno_mode_ok): Likewise.
2102         (rs6000_secondary_reload): Likewise.
2103         (rs6000_preferred_reload_class): Likewise.
2104         (rs6000_secondary_reload_class): Likewise.
2105
2106         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2107         constraint.
2108
2109         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2110         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2111         (f32_lm2): Likewise.
2112         (f32_li2): Likewise.
2113         (f32_sr2): Likewise.
2114         (f32_sm2): Likewise.
2115         (f32_si2): Likewise.
2116         (f64_p9): Likewise.
2117         (extendsfdf2_fpr): Likewise.
2118         (mov<mode>_hardfloat): Likewise.
2119         (mov<mode>_hardfloat32): Likewise.
2120         (mov<mode>_hardfloat64): Likewise.
2121
2122         * doc/md.texi (RS/6000 constraints): Document wb constraint.
2123         Fixup we constraint documentation.
2124
2125 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2126
2127         * omp-low.c (pass_expand_omp_ssa::clone): New function.
2128         * passes.def: Add pass_oacc_kernels pass group.
2129         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2130
2131 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2132
2133         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2134         Declare.
2135         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2136         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2137         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2138         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2139
2140 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2141
2142         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2143         TV_IPA_LTO_OUTPUT): New.
2144         * lto-compress.c: Include timevar.h
2145         (lto_end_compression, lto_end_uncompression): Add timers.
2146         * langhooks.c: Include timevar.h.
2147         (lhd_append_data): Add timer.
2148
2149 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2150
2151         * varasm.c (default_elf_asm_output_limited_string,
2152         default_elf_asm_output_ascii): Replace fprintf by putc.
2153
2154 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
2155
2156         PR rtl-optimization/67954
2157         * lra-constraints.c (curr_insn_transform): Add check on scratch
2158         pseudo when change class to NO_REGS.  Add an assert.
2159
2160 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2161
2162         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2163         constraint is 'n'.
2164         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2165         (nvptx_write_function_decl): Number args from 0.
2166         (nvptx_declare_function_name): Likewise.
2167         (nvptx_function_incoming_arg): Likewise.
2168         (nvptx_output_call_insn): Correct formatting.
2169
2170 2015-11-25  David Sherwood  <david.sherwood@arm.com>
2171
2172         * optabs.def: Add new optabs fmax_optab/fmin_optab.
2173         * internal-fn.def: Add new fmax/fmin internal functions.
2174         * doc/md.texi: Add fmin and fmax patterns.
2175
2176 2015-11-25  Jason Merrill  <jason@redhat.com>
2177
2178         PR c++/68385
2179         * tree.c (integer_zerop, integer_onep, integer_each_onep)
2180         (integer_all_onesp, integer_minus_onep, integer_pow2p)
2181         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2182         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2183
2184 2015-11-25  Richard Biener  <rguenther@suse.de>
2185
2186         PR middle-end/68528
2187         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2188         on stripped operands.
2189
2190 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2191
2192         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2193         (nvptx_declare_function_name): Move assignments next to register
2194         declarations, and process params here.
2195
2196 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
2197
2198         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2199         both the symbol and the "dot" symbol for function descriptors. Fix
2200         inversion for rename of symbols with dollar sign.
2201
2202 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2203
2204         * cfgloop.c (find_single_latch): New function, factored out of ...
2205         (flow_loops_find): ... here.
2206         (verify_loop_structure): Improve verification of loop->latch.
2207         * cfgloop.h (find_single_latch): Declare.
2208         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2209
2210 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2211
2212         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2213         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2214         (STARTFILE_SPEC): Use %(startfile_vtv).
2215         (ENDFILE_SPEC): Use %(endfile_vtv).
2216         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2217         ENDFILE_VTV_SPEC.
2218
2219         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2220
2221 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
2222
2223         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2224         noce_can_store_speculate): Delete.
2225         (noce_process_if_block): Don't try to handle single MEM stores.
2226         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2227         * alias.c (memory_must_be_modified_in_insn_p): Delete.
2228
2229 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2230
2231         PR rtl-optimization/68435
2232         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2233         for conflicts between a, b and the set destinations.
2234
2235 2015-11-25  Richard Biener  <rguenther@suse.de>
2236
2237         PR tree-optimization/68517
2238         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2239         Properly handle zero-sized types.
2240
2241 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2242
2243         * ipa-inline-analysis.c: Include gimplify.h
2244         (set_cond_stmt_execution_predicate,
2245         set_switch_stmt_execution_predicate): Be sure to not leak locations
2246         to function body.
2247
2248 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
2249
2250         PR target/67089
2251         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2252         match_uaddsub_overflow): New functions.
2253         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2254
2255 2015-11-25  Richard Biener  <rguenther@suse.de>
2256
2257         PR tree-optimization/68492
2258         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2259         op from scalars after operand swapping.
2260
2261 2015-11-25  Richard Biener  <rguenther@suse.de>
2262
2263         PR tree-optimization/68502
2264         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2265         check that the step is a multiple of the type size.
2266
2267 2015-11-24  Michael Collison  <michael.collison@linaro.org>
2268
2269         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2270         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2271         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2272
2273 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
2274
2275         * frame-header-opt.c (gate): Check for optimize > 0.
2276         (has_inlined_assembly): New function.
2277         (needs_frame_header_p): Remove is_leaf_function check,
2278         add argument type check.
2279         (callees_functions_use_frame_header): Add is_leaf_function
2280         and has_inlined_assembly calls..
2281         (set_callers_may_not_allocate_frame): New function.
2282         (frame_header_opt): Add is_leaf_function call, add
2283         set_callers_may_not_allocate_frame call.
2284         * config/mips/mips.c (mips_compute_frame_info): Add check
2285         to see if callee saved regs can be put in frame header.
2286         (mips_expand_prologue): Add check to see if step1 is zero,
2287         fix cfa restores when using frame header to store regs.
2288         (mips_can_use_return_insn): Check to see if registers are
2289         stored in frame header.
2290         * config/mips/mips.h (machine_function): Add
2291         callers_may_not_allocate_frame and
2292         use_frame_header_for_callee_saved_regs fields.
2293
2294 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2295
2296         PR rtl-optimization/68520
2297         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2298         its bit was already set in BB_WITH.
2299
2300 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2301
2302         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2303         double check that type is main variant.
2304         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2305         variant.
2306         (verify_type_variant): Verify that variants have no
2307         TYPE_ALIAS_SET_KNOWN_P set
2308         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2309         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2310         only for main variants; stream TYPE_ALIAS_SET as a bit.
2311         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2312         accordingly.
2313
2314 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2315
2316         * tree.c (make_vector_type): Properly compute canonical type of the
2317         main variant.
2318         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2319         a main variant.
2320
2321 2015-11-24  Nathan Sidwell  <nathan@acm.org>
2322
2323         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2324         VOIDmode, don't alter incoming mode.
2325         (nvptx_split_reg_p): Delete.
2326         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2327         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2328         maybe_split_mode calls.
2329         (nvptx_print_operand): Use maybe_split_mode.
2330
2331 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2332
2333         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2334         only for types where LTO sets them.
2335         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2336         (make_vector_type): Likewise.
2337         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2338         * tree.h (canonical_type_used_p): New inline.
2339         * alias.c (get_alias_set): Handle structural equality for all
2340         types that pass canonical_type_used_p.
2341         (record_component_aliases): Look through all types with
2342         record_component_aliases for possible pointers; sanity check that
2343         the alias sets match.
2344
2345 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2346
2347         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2348
2349 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2350
2351         * tree.c (free_node): New function.
2352         (type_hash_canon): Use it.
2353         * tree.h (free_node): Declare.
2354
2355 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
2356             Michael Meissner  <meissner@linux.vnet.ibm.com>
2357
2358         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2359         (Fv2): New mode attribute to be used when ISA 2.07 instructions
2360         are used on SF values, and ISA 2.06 instructions on DF values.
2361         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2362         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2363         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2364         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2365         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2366         (fre<Fs>): Use <Fv2> instead of <Fv>.
2367         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2368         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2369         (xsrdpi<mode>): Add support for the lround function.
2370         (lround<mode>di2): Likewise.
2371         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2372         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2373         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2374         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2375
2376 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2377             Sebastian Pop  <s.pop@samsung.com>
2378
2379         PR tree-optimization/67984
2380         * graphite-isl-ast-to-gimple.c (is_constant): New.
2381         (get_rename): Call is_constant.
2382         (get_new_name): Same.
2383
2384 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2385             Sebastian Pop  <s.pop@samsung.com>
2386
2387         * graphite-dependences.c: Only include graphite.h.
2388         * graphite-isl-ast-to-gimple.c: Same.
2389         * graphite-optimize-isl.c: Same.
2390         * graphite-poly.c: Same.
2391         * graphite-scop-detection.c: Same.
2392         * graphite-sese-to-poly.c: Same.
2393         * graphite.c: Same.
2394         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2395         * graphite-poly.h: Same.
2396         * graphite-scop-detection.h: Same.
2397         * graphite.h: New.
2398
2399 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
2400
2401         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2402         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
2403         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2404         function already takes care of checking what it can emit.
2405
2406 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2407
2408         * doc/invoke.texi (-fpic): Add the AArch64 limit.
2409         (-fPIC): Add AArch64.
2410
2411 2015-11-24  Tom de Vries  <tom@codesourcery.com>
2412
2413         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2414         (pass_lim::execute): Allow to run outside pass_tree_loop.
2415
2416 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
2417
2418         * config/aarch64/aarch64.md (add<mode>3):
2419         Block early expansion into 2 add instructions.
2420         (add<mode>3_pluslong): New pattern to combine complex
2421         immediates into 2 additions.
2422
2423 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2424
2425         PR target/66217
2426         PR target/67677
2427         PR target/68332
2428         * config/rs6000/predicates.md (and_operand): Check that the operand
2429         is a const_int before calling rs6000_is_valid_and_mask.
2430
2431 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2432
2433         * config/aarch64/aarch64.md (*condjump): Rename to...
2434         (condjump): ... This.
2435         (*compare_condjump<mode>): New define_insn_and_split.
2436         (*compare_cstore<mode>_insn): Likewise.
2437         (*cstore<mode>_insn): Rename to...
2438         (cstore<mode>_insn): ... This.
2439         * config/aarch64/iterators.md (CMP): Handle ne code.
2440         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2441
2442 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
2443
2444         PR target/68497
2445         * config/i386/i386.c (output_387_binary_op): Fix assertion for
2446         -fno-checking case.
2447
2448 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2449
2450         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2451         (val_ssa_equiv_hash_traits::remove): Likewise.
2452         (pass_uncprop::execute): Adjust.
2453
2454 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2455
2456         * hash-map-traits.h (simple_hashmap_traits ::remove): call
2457         destructors on values that are being removed.
2458         * mem-stats.h (hash_map): Pass type of values to
2459         simple_hashmap_traits.
2460         * tree-sra.c (sra_deinitialize): Remove work around for hash
2461         maps not destructing values.
2462         * genmatch.c (sinfo_hashmap_traits): Adjust.
2463         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2464
2465 2015-11-24  Richard Biener  <rguenther@suse.de>
2466             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2467
2468         PR middle-end/68375
2469         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2470         bogus assertion.
2471
2472 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
2473
2474         PR target/68483
2475         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2476         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2477         returns false.
2478         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2479         whenever first is nelt or above.  Don't mask expected with
2480         2 * nelt - 1.
2481
2482 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2483
2484         PR c/68337
2485         * gimple-fold.c: Include ipa-chkp.h.
2486         (gimple_fold_builtin_memory_op): Don't fold call if we
2487         are going to instrument it and it may copy pointers.
2488
2489 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
2490             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2491
2492         PR rtl-optimization/68194
2493         PR rtl-optimization/68328
2494         PR rtl-optimization/68185
2495         * ree.c (combine_reaching_defs): Reject copy_needed case if
2496         copies_list is not empty.
2497
2498 2015-11-24  Richard Biener  <rguenther@suse.de>
2499
2500         PR middle-end/68221
2501         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2502         use mem_ref_offset.
2503
2504 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2505
2506         PR rtl-optimization/68381
2507         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2508         is poisoned.
2509
2510 2015-11-23  Nick Clifton  <nickc@redhat.com>
2511             Jeff Law  <law@redhat.com>
2512
2513         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2514         the source/dest of the target extension require a different number of
2515         hard registers.
2516         (combine_set_extension): Remove #if 0 code.
2517
2518 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2519             Sebastian Pop  <s.pop@samsung.com>
2520
2521         PR tree-optimization/68314
2522         * graphite-optimize-isl.c (optimize_isl): Do not call
2523         isl_union_map_is_equal.
2524         * graphite-poly.c (new_scop): Remove original_schedule.
2525         (free_scop): Same.
2526         * graphite-poly.h (struct scop): Same.
2527         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2528         Remove.
2529         (build_pbb_scattering_polyhedrons): Add back.
2530         (build_scop_minimal_scattering): Remove.
2531         (build_scop_scattering): Add back.
2532         (build_scop_original_schedule): Remove.
2533         (build_poly_scop): Revert to only call build_scop_scattering.
2534
2535 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2536             Sebastian Pop  <s.pop@samsung.com>
2537
2538         PR tree-optimization/68493
2539         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2540         missing early return when codegen_error is set.
2541
2542 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2543             Sebastian Pop  <s.pop@samsung.com>
2544
2545         PR tree-optimization/68279
2546         * graphite-poly.c (new_scop): Remove poly_scop_p.
2547         * graphite-poly.h (struct scop): Same.
2548         (build_poly_scop): Declare.
2549         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2550         (cleanup_loop_iter_dom): New.
2551         (build_loop_iteration_domains): Early return when scev analysis fails.
2552         (create_pw_aff_from_tree): Same.
2553         (add_condition_to_pbb): Same.
2554         (add_conditions_to_domain): Same.
2555         (add_conditions_to_constraints): Same.
2556         (build_scop_iteration_domain): Same.
2557         (build_poly_scop): Same.  Do not initialize poly_scop_p.
2558         * graphite-sese-to-poly.h: Remove.
2559         * graphite.c: Do not include graphite-sese-to-poly.h.
2560         (graphite_transform_loops): Stop before code generation when
2561         build_poly_scop fails.
2562         * sese.c (scalar_evolution_in_region): Add fixme note about scev
2563         analysis.
2564
2565 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2566             Sebastian Pop  <s.pop@samsung.com>
2567
2568         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2569         Remove call to update_ssa.
2570         * sese.c (sese_insert_phis_for_liveouts): Same.
2571
2572 2015-11-23  Marek Polacek  <polacek@redhat.com>
2573
2574         PR tree-optimization/68455
2575         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2576         extract_range_from_multiplicative_op_1 on symbolic ranges.
2577
2578 2015-11-23  Richard Henderson  <rth@redhat.com>
2579
2580         * optabs.def (uaddv4_optab, usubv4_optab): New.
2581         * internal-fn.c (expand_addsub_overflow): Use them.
2582         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2583
2584         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2585         to reversed operands.
2586         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2587         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2588         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2589         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2590         (*add<SWI>3_cconly_overflow_2): New.
2591         (*add<SWI>3_cc_overflow_2): New.
2592         (*addsi3_zext_cc_overflow_2): New.
2593
2594 2015-11-23  Richard Biener  <rguenther@suse.de>
2595
2596         PR tree-optimization/68465
2597         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2598         Also record equalities from multiple predecessor blocks if
2599         only one non-backedge exists.
2600
2601 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2602
2603         PR target/68363
2604         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2605         that are not INSN_P.
2606
2607 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
2608
2609         * config/aarch64/aarch64-builtins.c
2610         (aarch64_gimple_fold_builtin): Fold FMULX.
2611
2612 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
2613
2614         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2615         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
2616         after GCC header files and before graphite header files.
2617         * graphite-dependences.c: Same.
2618         * graphite-isl-ast-to-gimple.c: Same.
2619         * graphite-optimize-isl.c: Same.
2620         * graphite-poly.c: Same.
2621         * graphite-scop-detection.c: Same.
2622         * graphite-sese-to-poly.c: Same.
2623         * graphite.c: Same.
2624
2625 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
2626             Jiong Wang  <jiong.wang@arm.com>
2627
2628         PR tree-optimization/68317
2629         PR tree-optimization/68326
2630         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2631         final min and max are not infinity.
2632
2633 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2634             Richard Biener  <rguenther@suse.de>
2635
2636         PR tree-optimization/68327
2637         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2638         compute vectype for non-relevant mask producers.
2639         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2640         relevance earlier.
2641
2642 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2643
2644         PR tree-optimization/68460
2645         * tree-parloops.c (gather_scalar_reductions): Also call
2646         free_stmt_vec_info_vec if simple_loop_info == NULL.
2647
2648 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
2649
2650         * opts.c (finish_options): Allow -fsanitize-recover=address for
2651         userspace sanitization.
2652         * asan.c (asan_expand_check_ifn): Redefine recover_p.
2653         * doc/invoke.texi (fsanitize-recover): Update documentation.
2654
2655 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2656
2657         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2658
2659 2015-11-23  Richard Biener  <rguenther@suse.de>
2660
2661         PR tree-optimization/68445
2662         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2663         two different strides.
2664
2665 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2666
2667         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2668         * config/s390/s390.c (s390_check_symref_alignment): Use new
2669         symref flags, early abort on wrong alignment
2670         (s390_secondary_reload): Use new symref flags.
2671         (s390_encode_section_info): Likewise.
2672         * config/s390/predicates.md: Likewise.
2673
2674 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2675
2676         PR target/68390
2677         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2678         for indirect function call.
2679
2680 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
2681
2682         * config/aarch64/aarch64-simd.md
2683         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2684         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2685         (*aarch64_mulx_elt_to_64v2df): Likewise.
2686         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2687         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2688         (vmulx_lane_f64): Likewise.
2689         (vmulxq_lane_f32): Refactored & moved.
2690         (vmulxq_lane_f64): Likewise.
2691         (vmulx_laneq_f32): New.
2692         (vmulx_laneq_f64): Likewise.
2693         (vmulxq_laneq_f32): Likewise.
2694         (vmulxq_laneq_f64): Likewise.
2695         (vmulxs_lane_f32): Likewise.
2696         (vmulxs_laneq_f32): Likewise.
2697         (vmulxd_lane_f64): Likewise.
2698         (vmulxd_laneq_f64): Likewise.
2699
2700 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
2701
2702         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2703         In LTO we do not compute TYPE_CANONICAL of pointers.
2704         (gimple_canonical_types_compatible_p): Improve coments; sanity check
2705         that pointers do not have canonical type that would make us believe
2706         they are different.
2707         * alias.c (get_alias_set): Do structural type equality on pointers;
2708         enable pointer path for LTO; also glob pointer to vector with pointer
2709         to vector element; glob pointers and references for LTO; do more strict
2710         sanity checking about build_pointer_type returning the canonical type
2711         which is also the main variant.
2712         (record_component_aliases): When component type is pointer and we
2713         do LTO; record void_type_node alias set.
2714
2715 2015-11-21  Nathan Sidwell  <nathan@acm.org>
2716
2717         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2718
2719         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2720         leading blank line.
2721         (write_func_decl_from_insn): Likewise.
2722         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2723         (nvptx_file_end): Likewise.
2724         (nvptx_function_end): Undent output.
2725         (nvptx_expand_call): Fix formatting.
2726         (nvptx_output_call_insn): Indent output.
2727         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2728         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2729
2730 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
2731
2732         PR debug/66432
2733         * tree-inline.c (copy_debug_stmt): If
2734         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2735         in decl_debug_args, don't call remap_gimple_op_r on it.
2736
2737 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2738
2739         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2740         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2741         Check that all record types are complete.
2742         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2743         compare alias sets for types w/o alias sets.
2744
2745 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2746
2747         * config/sparc/sparc.md (umulxhi_vis): Move around.
2748         (*umulxhi_sp64): Likewise.
2749         (umulxhi_v8plus): Likewise.
2750         (xmulx_vis): Likewise.
2751         (*xmulx_sp64): Likewise.
2752         (xmulx_v8plus): Likewise.
2753         (xmulxhi_vis): Likewise.
2754         (*xmulxhi_sp64): Likewise.
2755         (xmulxhi_v8plus): Likewise.
2756
2757 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
2758
2759         PR 62314
2760         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2761         (class layout): Update comment
2762         (layout::print_any_fixits): New method.
2763         (layout::move_to_column): New method.
2764         (diagnostic_show_locus): Add call to layout.print_any_fixits.
2765
2766 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
2767
2768         PR middle-end/68221
2769         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2770         has non-zero bias, subtract it in integer type instead of
2771         pointer plus of negated bias.
2772
2773         PR middle-end/68339
2774         * omp-low.c (expand_simd_clones): Call node->get_body () before
2775         allocating stuff in GC.
2776
2777 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
2778
2779         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2780
2781 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
2782
2783         * config/aarch64/aarch64.md (predicated): Copy attribute from
2784         "arm.md".
2785         * config/arm/arm.md (predicated): Added description.
2786
2787 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2788
2789         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2790         for unaligned_access.
2791         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2792         from matching condition.
2793         (unaligned_loadhis): Likewise.
2794         (unaligned_loadhiu): Likewise.
2795         (unaligned_storesi): Likewise.
2796         (unaligned_storehi): Likewise.
2797
2798 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2799
2800         PR target/68149
2801         * config/arm/arm.md (unaligned_loaddi): Delete.
2802         (unaligned_storedi): Likewise.
2803         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2804         unaligned DImode memory ops.  Instead perform two back-to-back
2805         unaligned SImode ops.
2806
2807 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
2808             James Norris  <jnorris@codesourcery.com>
2809
2810         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2811         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2812
2813 2015-11-20  Alan Hayward <alan.hayward@arm.com>
2814
2815         PR tree-optimization/68413
2816         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2817         evolution base
2818         (vectorizable_reduction): Use cached base
2819
2820 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2821
2822         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2823         dump-file string.
2824         (try_create_reduction_list): Same.  Fix typo in dump-file string.
2825
2826 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2827
2828         * doc/md.texi (Standard Names): Move entry for addptr3 around,
2829         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2830         glitch in entries for cbranch4 and jump.
2831
2832 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2833
2834         PR tree-optimization/68373
2835         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2836         of ...
2837         (scev_const_prop): ... here.
2838         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2839         * tree-parloops.c (try_create_reduction_list): Call
2840         final_value_replacement_loop.
2841
2842 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
2843
2844         PR tree-optimization/52272
2845         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2846         (struct iv_common_cand_hasher): New struct.
2847         (iv_common_cand_hasher::hash): New function.
2848         (iv_common_cand_hasher::equal): New function.
2849         (struct ivopts_data): New fields, iv_common_cand_tab and
2850         iv_common_cands.
2851         (tree_ssa_iv_optimize_init): Initialize above fields.
2852         (record_common_cand, common_cand_cmp): New functions.
2853         (add_iv_candidate_derived_from_uses): New function.
2854         (add_iv_candidate_for_use): Record iv_common_cands derived from
2855         iv use in hash table, instead of adding candidates directly.
2856         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2857         (record_important_candidates): Add important candidates to iv uses'
2858         related_cands.  Always keep related_cands for future use.
2859         (try_add_cand_for): Use iv uses' related_cands.
2860         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2861         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2862
2863 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2864
2865         * config/s390/s390.md ("bswaphi2"): New pattern.
2866
2867 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2868
2869         * config/s390/s390.md (GPR1_REGNUM): New constant.
2870         ("*trunc<BFP:mode><DFP_ALL:mode>2")
2871         ("*trunc<DFP_ALL:mode><BFP:mode>2")
2872         ("trunc<BFP:mode><DFP_ALL:mode>2")
2873         ("trunc<DFP_ALL:mode><BFP:mode>2")
2874         ("*extend<BFP:mode><DFP_ALL:mode>2")
2875         ("*extend<DFP_ALL:mode><BFP:mode>2")
2876         ("extend<BFP:mode><DFP_ALL:mode>2")
2877         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2878
2879 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2880             Sebastian Pop  <s.pop@samsung.com>
2881
2882         PR tree-optimization/68428
2883         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2884         over basic blocks outside the scop.
2885
2886 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2887             Sebastian Pop  <s.pop@samsung.com>
2888
2889         PR tree-optimization/68341
2890         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2891         gcc_unreachable and safely fail codegen.
2892         (copy_loop_close_phi_args): Do not insert merge phis in a basic
2893         block with loop phi nodes.
2894         (edge_for_new_close_phis): New.
2895         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2896
2897 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2898
2899         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2900         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2901         (nvptx_declare_objec_name): Likewise.
2902
2903 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2904
2905         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2906         (get_false_edge_from_guard_bb): Move...
2907         * sese.c (get_false_edge_from_guard_bb)
2908         (get_true_edge_from_guard_bb): ... here.
2909
2910 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
2911
2912         Revert
2913         2015-11-18  Alan Modra  <amodra@gmail.com>
2914
2915         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2916         type-limits warning.
2917
2918
2919 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2920
2921         * tree.h (desired_pro_or_demotion_p): New function.
2922         * tree-vrp.c (simplify_cond_using_ranges): Call it.
2923
2924 2015-11-19  Michael Matz  <matz@suse.de>
2925
2926         * fwprop.c (update_uses): Use flag_checking instead of
2927         gcc_checking_assert.
2928
2929 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
2930
2931         * doc/gty.texi (Support for inheritance): Fix missing
2932         parentheses in example.
2933
2934 2015-11-19  Marek Polacek  <polacek@redhat.com>
2935
2936         PR tree-optimization/68431
2937         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2938
2939 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2940
2941         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2942         atomic_exchange<mode>): Input values can be immediates.
2943
2944 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2945
2946         PR lto/61313
2947         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2948         by the user.
2949         * configure: Regenerate.
2950
2951 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2952
2953         PR target/68408
2954         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2955         (DTORS_SECTION_ASM_OP): Likewise.
2956
2957 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2958
2959         PR rtl-optimization/68376
2960         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2961         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2962
2963 2015-11-19  Richard Biener  <rguenther@suse.de>
2964
2965         PR middle-end/68117
2966         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2967         redirect_edge_var_map_destroy.
2968
2969 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2970
2971         PR target/67770
2972         * config/i386/i386.md (simple_return): Disable if
2973         ix86_static_chain_on_stack is true.
2974
2975 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2976
2977         PR bootstrap/68393
2978         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2979         destinations.
2980
2981 2015-11-18  Jeff Law  <law@redhat.com>
2982
2983         PR tree-optimization/68198
2984         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2985         between threading a multi-way branch and a thread path that contains
2986         a multi-way branch.  Disallow the case where a path contains a
2987         multi-way branch and does not thread a multi-way branch.
2988         (thread_through_all_blocks): Update comment.
2989
2990 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
2991
2992         PR c/65083
2993         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2994         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2995         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2996         functions before defining as macros.
2997
2998 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2999
3000         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3001         (nvptx_record_offload_symbol): Remove code compensating for lack
3002         of default dimension handling.
3003         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3004
3005 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3006
3007         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3008         type to bool for early exit.
3009         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3010         in case of error.
3011         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3012         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3013         predecessor dominates the other.
3014         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3015         element is not found it returns -1.
3016         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3017         out early when codegen fails.
3018         (graphite_regenerate_ast_isl): Remove codegen region when pending
3019         phis could not be generated.
3020
3021 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3022
3023         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3024         semicolon.
3025         (class translate_isl_ast_to_gimple): Indentation.
3026         (translate_pending_phi_nodes): Comment.
3027         (add_parameters_to_ivs_params): Moved from sese.c inside class
3028         translate_isl_ast_to_gimple.
3029         (get_max_schedule_dimensions): Same.
3030         (generate_isl_context): Same.
3031         (extend_schedule): Same.
3032         (generate_isl_schedule): Same.
3033         (set_options): Same.
3034         (scop_to_isl_ast): Same.
3035         (is_valid_rename): Same.
3036         (get_rename): Same.
3037         (get_rename_from_scev): Same.
3038         (get_def_bb_for_const): Same.
3039         (get_new_name): Same.
3040         (collect_all_ssa_names): Same.
3041         (copy_loop_phi_args): Same.
3042         (copy_loop_phi_nodes): Same.
3043         (copy_loop_close_phi_args): Same.
3044         (copy_loop_close_phi_nodes): Same.
3045         (copy_cond_phi_args): Same.
3046         (copy_cond_phi_nodes): Same.
3047         (graphite_copy_stmts_from_block): Same.
3048         (copy_bb_and_scalar_dependences): Same.
3049         (add_phi_arg_for_new_expr): Same.
3050         (rename_uses): Same.
3051         (set_rename): Same.
3052         (set_rename_for_each_def): Same.
3053         (gsi_insert_earliest): Same.
3054         (rename_all_uses): Same.
3055         (codegen_error_p): Same.
3056         (print_isl_ast_node): Same.
3057         (translate_isl_ast_for_loop): Call function codegen_error_p.
3058         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3059         (translate_isl_ast_node_user): Make nb_loops const and release
3060         iv_map before exit.
3061         (get_true_edge_from_guard_bb): Move all free-functions early.
3062         (get_false_edge_from_guard_bb): Same.
3063         (bb_contains_loop_close_phi_nodes): Same.
3064         (bb_contains_loop_phi_nodes): Same.
3065         (is_loop_closed_ssa_use):  Same.
3066         (number_of_phi_nodes): Same.
3067         (phi_uses_name): Same.
3068         (later_of_the_two): Same.
3069         (substitute_ssa_name):
3070         (get_edges): Same.
3071         (get_loc): Same.
3072         (get_loop_init_value): Same.
3073         (find_init_value): Same.
3074         (find_init_value_close_phi): Same.
3075         (ast_build_before_for): Same.
3076         (graphite_regenerate_ast_isl): Formatting changes.
3077         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3078         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3079         (set_rename): Same.
3080         (gsi_insert_earliest): Same.
3081         (collect_all_ssa_names): Same.
3082         (rename_all_uses): Same.
3083         (rename_uses): Same.
3084         (get_def_bb_for_const): Same.
3085         (copy_loop_phi_nodes): Same.
3086         (copy_loop_close_phi_args): Same.
3087         (copy_loop_close_phi_nodes): Same.
3088         (copy_cond_phi_args): Same.
3089         (copy_cond_phi_nodes): Same.
3090         (set_rename_for_each_def): Same.
3091         (graphite_copy_stmts_from_block): Same.
3092         (copy_bb_and_scalar_dependences): Same.
3093         (if_region_set_false_region): Same.
3094         (scev_analyzable_p): Same.
3095         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3096
3097 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
3098
3099         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3100         commit from r125920 for FreeBSD.
3101
3102 2015-11-18  Jason Merrill  <jason@redhat.com>
3103
3104         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3105         to be vecs of vecs.
3106         (add_finalizer): Split out from ggc_internal_alloc.
3107         (ggc_handle_finalizers): Run finalizers for the current depth.
3108         (init_ggc, ggc_pch_read): Reserve space for finalizers.
3109
3110 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
3111
3112         PR target/68410
3113         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3114         from || expression.
3115
3116 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3117
3118         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3119         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3120         and atmega328pb.
3121         * doc/avr-mmcu.texi: Regenerate.
3122
3123 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3124
3125         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3126         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3127         (struct bb_sese): New struct.
3128         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3129         (BB_GET_SESE, BB_SET_SESE): Define.
3130         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3131         (nvptx_find_sese): New.
3132         (nvptx_neuter_pars): Find SESE regions when optimizing.
3133
3134 2015-11-18  Alan Modra  <amodra@gmail.com>
3135
3136         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3137         type-limits warning.
3138
3139 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3140
3141         PR bootstrap/68406
3142         * hash-set.h (hash_set::traverse): Expand Key typedef.
3143
3144 2015-11-18  Martin Liska  <mliska@suse.cz>
3145
3146         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3147         options struct.
3148
3149 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3150
3151         * config/nvptx/nvptx.c (global_lock_var): New.
3152         (nvptx_global_lock_addr): New.
3153         (nvptx_lockless_update): Recomment and adjust for clarity.
3154         (nvptx_lockfull_update): New.
3155         (nvptx_reduction_update): New.
3156         (nvptx_goacc_reduction_fini): Call it.
3157
3158 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
3159
3160         * regrename.h (struct du_head): Add target_data_1 and target_data_2
3161         fields.
3162         * regrename.c (create_new_chain): Clear entire struct after allocating.
3163
3164         * config/i386/i386.opt (mmitigate-rop): New option.
3165         * doc/invoke.texi (mmitigate-rop): Document.
3166         * config/i386/i386.c: Include "regrename.h".
3167         (ix86_rop_should_change_byte_p, reg_encoded_number,
3168         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3169         static functions.
3170         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3171         * config/i386/i386.md (attr "modrm_class"): New.
3172         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3173         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3174         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3175
3176 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3177
3178         PR target/68405
3179         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3180
3181 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
3182
3183         PR tree-optimization/68157
3184         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3185         pow_stmt or mul_stmt from stmt's uid.
3186         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3187
3188 2015-11-18  Martin Liska  <mliska@suse.cz>
3189
3190         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3191
3192 2015-11-18  Martin Liska  <mliska@suse.cz>
3193
3194         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3195         Fix GNU coding style.
3196         (find_def_preds): Use auto_vec.
3197         (destroy_predicate_vecs): Change signature of the function.
3198         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3199         new signature.
3200         (simplify_preds_4): Use destroy_predicate_vecs instread of
3201         just releasing preds vector.
3202         (normalize_preds): Likewise.
3203         (is_use_properly_guarded): Use new signature of
3204         destroy_predicate_vecs.
3205         (find_uninit_use): Likewise.
3206
3207 2015-11-18  Richard Biener  <rguenther@suse.de>
3208
3209         PR tree-optimization/67790
3210         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3211         IL rewrite for MINUS_EXPR reductions, rename back to ...
3212         (vect_is_simple_reduction): ... this, removing the wrapper.
3213         (vect_force_simple_reduction): Adjust.
3214         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3215         reductions and make use if reduc_index in all places.  For
3216         the final reduction of MINUS_EXPR use PLUS_EXPR.
3217
3218 2015-11-18  Alan Modra  <amodra@gmail.com>
3219
3220         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3221         to ld.
3222         * configure: Regenerate.
3223
3224 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3225
3226         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3227
3228 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3229
3230         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3231         uses of ssa_name with constant.
3232
3233 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3234
3235         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3236         something changed.
3237
3238 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3239
3240         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3241         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3242         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3243
3244 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
3245
3246         * regrename.c (regrename_find_superclass): New function, code moved
3247         from ...
3248         (rename_chains): ... here.  Call it.
3249         * regrename.h (regrename_find_superclass): Declare.
3250
3251         * regrename.c (record_out_operands): Terminate earlyclobbered
3252         operands here.
3253
3254         PR target/66785
3255         * regrename.c (record_operand_use): Keep track of failed operands
3256         and stop appending if we see any.
3257         * regrename.h (struct operand_rr_info): Add a failed field and shrink
3258         n_chains to short.
3259
3260 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3261
3262         PR 48568
3263         * doc/extend.texi (Common Function Attributes) [visibility]:
3264         Add cross-references to matching variable and type attributes.
3265         (Common Variable Attributes) [visibility]: Add missing entry.
3266
3267 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3268
3269         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3270         entries that map directly to optabs.
3271
3272 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3273
3274         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3275         entries that map directly to optabs.
3276
3277 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3278
3279         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3280         * internal-fn.c (direct_internal_fn_array): Update accordingly.
3281         * tree-vectorizer.h (vectorizable_function): Delete.
3282         * tree-vect-stmts.c: Include internal-fn.h.
3283         (vectorizable_internal_function): New function.
3284         (vectorizable_function): Inline into...
3285         (vectorizable_call): ...here.  Explicitly reject calls that read
3286         from or write to memory.  Try using an internal function before
3287         falling back on the old vectorizable_function behavior.
3288
3289 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3290
3291         * target.def (builtin_vectorized_function): Take a combined_fn (in
3292         the form of an unsigned int) rather than a function decl.
3293         (builtin_md_vectorized_function): New.
3294         * targhooks.h (default_builtin_vectorized_function): Replace the
3295         fndecl argument with an unsigned int.
3296         (default_builtin_md_vectorized_function): Declare.
3297         * targhooks.c (default_builtin_vectorized_function): Replace the
3298         fndecl argument with an unsigned int.
3299         (default_builtin_md_vectorized_function): New function.
3300         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3301         New hook.
3302         * doc/tm.texi: Regenerate.
3303         * tree-vect-stmts.c (vectorizable_function): Update call to
3304         builtin_vectorized_function, also passing internal functions.
3305         Call builtin_md_vectorized_function for target-specific builtins.
3306         * config/aarch64/aarch64-protos.h
3307         (aarch64_builtin_vectorized_function): Replace fndecl argument
3308         with an unsigned int.
3309         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3310         (aarch64_builtin_vectorized_function): Update after above changes.
3311         Use CASE_CFN_*.
3312         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3313         fndecl argument with an unsigned int.
3314         * config/arm/arm-builtins.c: Include case-cfn-macros.h
3315         (arm_builtin_vectorized_function): Update after above changes.
3316         Use CASE_CFN_*.
3317         * config/i386/i386.c: Include case-cfn-macros.h
3318         (ix86_veclib_handler): Take a combined_fn rather than a
3319         built_in_function.
3320         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
3321         mathfn_built_in rather than calling builtin_decl_implicit directly.
3322         (ix86_builtin_vectorized_function) Update after above changes.
3323         Use CASE_CFN_*.
3324         * config/rs6000/rs6000.c: Include case-cfn-macros.h
3325         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3326         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
3327         than calling builtin_decl_implicit directly.
3328         (rs6000_builtin_vectorized_function): Update after above changes.
3329         Use CASE_CFN_*.  Move BUILT_IN_MD to...
3330         (rs6000_builtin_md_vectorized_function): ...this new function.
3331         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3332
3333 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3334
3335         * tree-vect-patterns.c: Include internal-fn.h.
3336         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3337
3338 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3339
3340         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3341         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3342
3343 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3344
3345         * builtins.c (expand_errno_check, expand_builtin_mathfn)
3346         (expand_builtin_mathfn_2): Delete.
3347         (expand_builtin): Remove handling of functions with
3348         internal function equivalents.
3349         * internal-fn.def (SET_EDOM): New internal function.
3350         * internal-fn.h (set_edom_supported_p): Declare.
3351         * internal-fn.c (expand_SET_EDOM): New function.
3352         (set_edom_supported_p): Likewise.
3353         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3354         Rewrite comment at head of file.
3355         (is_call_dce_candidate): Rename to...
3356         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
3357         or gimple_call_builtin_p here.
3358         (edom_only_function): New function.
3359         (shrink_wrap_one_built_in_call_with_conds): New function, split out
3360         from...
3361         (shrink_wrap_one_built_in_call): ...here.
3362         (can_use_internal_fn, use_internal_fn): New functions.
3363         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3364         for calls that have an lhs.
3365         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3366         (pass_call_cdce::execute): Skip blocks that are optimized for size.
3367         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
3368         calls with an lhs.
3369         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3370         at -O and above.
3371
3372 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3373
3374         * builtins.h (called_as_built_in): Declare.
3375         * builtins.c (called_as_built_in): Make external.
3376         * internal-fn.h (expand_internal_call): Define a variant that
3377         specifies the internal function explicitly.
3378         * internal-fn.c (expand_load_lanes_optab_fn)
3379         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3380         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3381         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3382         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3383         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3384         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3385         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3386         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3387         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3388         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3389         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3390         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3391         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3392         argument.
3393         (internal_fn_expanders): Update prototype.
3394         (expand_internal_call): Define a variant that specifies the
3395         internal function explicitly. Use it to implement the previous
3396         interface.
3397         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3398         functions as calls to internal functions.
3399
3400 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3401
3402         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3403         (generated_files): Likewise.
3404         (s-cfn-operators, cfn-operators.pd): New rules.
3405         (s-match): Depend on cfn-operators.pd.
3406         * gencfn-macros.c: Expand comment to describe -o behavior.
3407         (print_define_operator_list): New function.
3408         (main): Accept -o.  Call print_define_operator_list.
3409         * genmatch.c (main): Add the current directory to the include path.
3410         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
3411         instead.
3412
3413 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3414
3415         * doc/match-and-simplify.texi: Document the "null" identifier.
3416         * genmatch.c (id_base::NULL_ID): New kind.
3417         (null_id): New variable.
3418         (get_operator): Add a parameter that says whether null identifiers
3419         are allowed.
3420         (contains_id): New function.
3421         (lower_for): Skip substitutions that would have a null_id in
3422         either the match or the result.
3423         (parser::parse_for): Allow the null identifier to be used.
3424         (parser::parse_operator_list): Likewise.
3425         (main): Initialize null_id.
3426
3427 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3428
3429         * match.pd: Use HYPOT and COS rather than hypot and cos.
3430         Use CASE_CFN_* macros.  Guard log/exp folds with
3431         SCALAR_FLOAT_TYPE_P.
3432         * genmatch.c (internal_fn): New enum.
3433         (fn_id::fn): Change to an unsigned int.
3434         (fn_id::fn_id): Accept internal_fn too.
3435         (add_builtin): Rename to...
3436         (add_function): ...this and turn into a template.
3437         (get_operator): Only try one variation if the original name fails.
3438         Only add _EXPR if the original name was all lower case.
3439         Try converting internal and built-in function names to their
3440         CFN equivalents.
3441         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3442         (dt_simplify::gen_1): Likewise.
3443         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3444         and get_call_combined_fn for generic.
3445         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3446         (decision_tree::gen): Likewise.
3447         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3448         Use add_function rather than add_builtin.  Register internal
3449         functions too.
3450         * generic-match-head.c: Include case-cfn-macros.h.
3451         * gimple-fold.c (replace_stmt_with_simplification): Use
3452         gimple_call_combined_fn to test whether we can keep an
3453         existing call.
3454         * gimple-match.h (code_helper): Replace built_in_function
3455         with combined_fn.
3456         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3457         and case-fn-macros.h.
3458         (gimple_resimplify1): Use fold_const_call.
3459         (gimple_resimplify2, gimple_resimplify3): Likewise.
3460         (build_call_internal, build_call): New functions.
3461         (maybe_push_res_to_seq): Use them.
3462         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
3463         rather than a built-in function.
3464         * tree.h (build_call_expr_internal_loc): Declare.
3465         (maybe_build_call_expr_loc): Likewise.
3466         * tree.c (build_call_expr_internal_loc_array): New function.
3467         (maybe_build_call_expr_loc): Likewise.
3468
3469 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3470
3471         * builtins.h (mathfn_built_in): Add a variant that takes
3472         a combined_fn.
3473         * builtins.c: Include case-cfn-macros.h.
3474         (CASE_MATHFN): Use CASE_CFN_*.
3475         (CASE_MATHFN_REENT): Use CFN_ codes.
3476         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3477         argument with a combined_fn.
3478         (mathfn_built_in): Add a variant that takes a combined_fn.
3479         (expand_builtin_int_roundingfn_2): Update callers accordingly.
3480         (fold_builtin_sincos, fold_builtin_classify): Likewise.
3481
3482 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3483
3484         * tree-vect-patterns.c: Include case-cfn-macros.h.
3485         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3486
3487 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3488
3489         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3490         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3491         (pass_cse_sincos::execute): Likewise.
3492
3493 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3494
3495         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3496         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3497         (decrement_power, acceptable_pow_call): Likewise.
3498         (attempt_builtin_copysign): Likewise.
3499
3500 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3501
3502         * tree-vrp.c: Include case-cfn-macros.h.
3503         (extract_range_basic): Switch on combined_fn rather than handling
3504         built-in functions and internal functions separately.
3505
3506 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3507
3508         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3509         than a built_in_function.
3510         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3511         a function decl.
3512         (integer_valued_real_call_p): Likewise.
3513         * fold-const.c: Include case-cfn-macros.h
3514         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3515         (negate_expr_p): Update accordingly.
3516         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3517         a function decl.
3518         (integer_valued_real_call_p): Likewise.
3519         (tree_invalid_nonnegative_warnv_p): Update accordingly.
3520         (integer_valued_real_p): Likewise.
3521         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3522         to tree_call_nonnegative_warnv_p.
3523         (gimple_call_integer_valued_real_p): Likewise
3524         integer_valued_real_call_p.
3525         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3526         (backprop::process_builtin_call_use): Extend to combined_fn.
3527         (strip_sign_op_1): Likewise.
3528         (backprop::process_use): Don't check for built-in calls here.
3529         (backprop::execute): Likewise.
3530         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3531
3532 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3533
3534         * fold-const-call.h (fold_const_call): Replace built_in_function
3535         arguments with combined_fn arguments.
3536         * fold-const-call.c: Include case-cfn-macros.h.
3537         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3538         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3539         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3540         built_in_function arguments with combined_fn arguments.
3541         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3542         (fold_builtin_3): Update calls to fold_const_call.
3543
3544 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3545
3546         * Makefile.in (HASH_TABLE_H): Add GGC_H.
3547         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3548         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3549         (build/gencfn-macros$(build_exeext): New rules.
3550         (genprogerr): Add cfn-macros.
3551         * hash-set.h (hash_set): Use the traits value_type as the key.
3552         * gencfn-macros.c: New file.
3553
3554 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3555
3556         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3557         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3558         * builtins.c (associated_internal_fn): Handle them.
3559
3560 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3561
3562         * builtins.h (associated_internal_fn): Declare.
3563         (replacement_internal_fn): Likewise.
3564         * builtins.c: Include internal-fn.h
3565         (associated_internal_fn, replacement_internal_fn): New functions.
3566         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3567         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3568         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3569         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3570         (LDEXP): New functions.
3571         * internal-fn.c: Include recog.h.
3572         (unary_direct, binary_direct): New macros.
3573         (expand_direct_optab_fn): New function.
3574         (expand_unary_optab_fn): New macro.
3575         (expand_binary_optab_fn): Likewise.
3576         (direct_unary_optab_supported_p): Likewise.
3577         (direct_binary_optab_supported_p): Likewise.
3578
3579 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3580
3581         * coretypes.h (tree_pair): New type.
3582         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
3583         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3584         * internal-fn.h (direct_internal_fn_info): New structure.
3585         (direct_internal_fn_array): Declare.
3586         (direct_internal_fn_p, direct_internal_fn): New functions.
3587         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3588         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3589         (mask_store_direct, store_lanes_direct): New macros.
3590         (direct_internal_fn_array) New array.
3591         (get_multi_vector_move): Return the optab handler without asserting
3592         that it is available.
3593         (expand_LOAD_LANES): Rename to...
3594         (expand_load_lanes_optab_fn): ...this and add an optab argument.
3595         (expand_STORE_LANES): Rename to...
3596         (expand_store_lanes_optab_fn): ...this and add an optab argument.
3597         (expand_MASK_LOAD): Rename to...
3598         (expand_mask_load_optab_fn): ...this and add an optab argument.
3599         (expand_MASK_STORE): Rename to...
3600         (expand_mask_store_optab_fn): ...this and add an optab argument.
3601         (direct_internal_fn_types, direct_optab_supported_p)
3602         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3603         (direct_internal_fn_supported_p): New functions.
3604         (direct_mask_load_optab_supported_p): New macro.
3605         (direct_load_lanes_optab_supported_p): Likewise.
3606         (direct_mask_store_optab_supported_p): Likewise.
3607         (direct_store_lanes_optab_supported_p): Likewise.
3608
3609 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3610
3611         * tree-core.h (internal_fn): Move immediately after the definition
3612         of built_in_function.
3613         (combined_fn): New enum.
3614         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3615         (internal_fn_p, as_internal_fn): New functions.
3616         (get_call_combined_fn, combined_fn_name): Declare.
3617         * tree.c (get_call_combined_fn): New function.
3618         (combined_fn_name): Likewise.
3619         * gimple.h (gimple_call_combined_fn): Declare.
3620         * gimple.c (gimple_call_combined_fn): New function.
3621
3622 2015-11-17  Martin Sebor  <msebor@redhat.com>
3623
3624         PR c++/68308
3625         * cp/init.c (build_new_1): Check for expression constness
3626         the right way.
3627
3628 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3629
3630         PR target/53587
3631         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3632         option list.
3633         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
3634         discussion of the Microsoft structure layout details here from
3635         its former home in extend.texi.
3636         * doc/extend.texi (x86 Variable Attributes): Replace detailed
3637         discussion with pointer to its new location.  Add cross-reference
3638         to corresponding type attributes.
3639         (x86 Type Attributes): Add cross-references to command-line options
3640         and variable attributes.
3641
3642 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3643
3644         PR middle-end/68134
3645         * targhooks.c (default_get_mask_mode): Filter out
3646         scalar modes returned by mode_for_vector.
3647
3648 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3649
3650         PR target/68143
3651         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3652         offset from dstbase and use it appropriately in
3653         adjust_automodify_address.
3654         (arm_block_set_aligned_vect): Likewise.
3655
3656 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3657
3658         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3659         (MULTILIB_DIRNAMES): Adjust accordingly.
3660
3661 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
3662
3663         * config/aarch64/aarch64-cores.def (cortex-a35): New.
3664         * config/aarch64/aarch64.c (cortexa35_tunings): New.
3665         * config/aarch64/aarch64-tune.md: Regenerate.
3666         * doc/invoke.texi (-mcpu): Add Cortex-A35
3667
3668 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
3669
3670         PR target/68263
3671         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3672         to 32 for IAMCU.
3673         * config/i386/sse.md (*mov<mode>_internal): Always enable
3674         AVX and SSE unaligned moves for IAMCU.
3675
3676 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
3677
3678         * tree-if-conv.c: Include varasm.h
3679         (ref_DR_map): Define.
3680         (baseref_DR_map): Like wise
3681         (struct ifc_dr): Add new tree predicate field.
3682         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3683         (memrefs_read_or_written_unconditionally): Remove.
3684         (write_memrefs_written_at_least_once): Remove.
3685         (ifcvt_memrefs_wont_trap): Use hash maps to query
3686         unconditional read/written information.
3687         (if_convertible_loop_p_1):  Initialize hash maps and predicates
3688         before hashing data references and delete hashmaps at the end.
3689
3690 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
3691
3692         PR 56036
3693         * doc/invoke.texi (Optimize Options): Move @end table to the right
3694         place.
3695
3696 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
3697
3698         PR 65129
3699         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3700         return value.
3701
3702 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
3703
3704         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3705         128-bit types, just types that fit in a single vector.
3706         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3707
3708 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
3709
3710         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3711         in the user documentation.
3712         (define_peephole2, define_split): Similarly.
3713
3714 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3715
3716         * lto-streamer-out.c (write_global_references): Adjust integer type.
3717         (lto_output_decl_state_refs): Likewise.
3718
3719 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3720
3721         * config/arm/arm-cores.def (cortex-a35): New.
3722         * config/arm/arm.c (arm_cortex_a35_tune): New.
3723         * config/arm/arm-tables.opt: Regenerate.
3724         * config/arm/arm-tune.md: Regenerate.
3725         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3726         * config/arm/t-aprofile: Likewise.
3727         * doc/invoke.texi (-mcpu): Likewise.
3728
3729 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
3730
3731         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3732         and qdf24xx and xgene1 to match -march=armv8-a.
3733
3734 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3735
3736         PR rtl-optimization/68330
3737         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3738         of LSHIFTRT by a non-zero constant integer.
3739
3740 2015-11-16  Richard Biener  <rguenther@suse.de>
3741
3742         PR tree-optimization/68306
3743         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3744         bogus copying from verify_data_ref_alignment and use continue
3745         instead of return.
3746
3747 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
3748             Kaz Kojima  <kkojima@gcc.gnu.org>
3749
3750         PR target/68277
3751         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3752         operands[2].
3753         (*addsi3): Add another insn_and_split variant for reload.
3754
3755 2015-11-16  Richard Biener  <rguenther@suse.de>
3756
3757         PR middle-end/68117
3758         * cfgexpand.c (pass_expand::execute): Destroy the edge
3759         redirection var map before setting RTL CFG hooks.
3760
3761 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
3762
3763         * config/i386/sse.md (reduc_splus_v8df): Rename to...
3764         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3765
3766         (reduc_splus_v4df): Rename to...
3767         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3768
3769         (reduc_splus_v2df): Rename to...
3770         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3771
3772         (reduc_splus_v16sf): Rename to...
3773         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3774
3775         (reduc_splus_v8sf): Rename to...
3776         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3777
3778         (reduc_splus_v4sf): Rename to...
3779         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3780
3781         (reduc_<code>_<mode>, all 3 variants): Rename each to...
3782         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3783
3784         (reduc_umin_v8hf): Rename to...
3785         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3786
3787 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
3788
3789         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3790         without additional conditions.
3791         * doc/extend.texi (@item simd): New.
3792
3793 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3794
3795         * passes.c (first_pass_instance): Remove variable.
3796         (execute_todo): Remove setting of first_pass_instance.
3797         * tree-pass.h (first_pass_instance): Remove declaration.
3798
3799 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3800
3801         * passes.def: Add arg to pass_ccp pass instantiation.
3802         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
3803         instead of first_pass_instance.
3804         (do_ssa_ccp): Add and handle param nonzero_p.
3805         (pass_ccp::pass_ccp): Initialize nonzero_p.
3806         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
3807         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3808         (pass_ccp::nonzero_p): New private member.
3809
3810 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3811
3812         * passes.def: Add arg to pass_object_sizes pass instantiation.
3813         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3814         insert_min_max_p.
3815         (pass_object_sizes::set_pass_param): New member function.  Set
3816         insert_min_max_p.
3817         (pass_object_sizes::insert_min_max_p): New private member.
3818         (pass_object_sizes::execute): Use insert_min_max_p instead of
3819         first_pass_instance.
3820
3821 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3822
3823         * passes.def: Add arg to pass_dominator pass instantiation.
3824         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3825         of comment.
3826         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3827         may_peel_loop_headers_p.
3828         (pass_dominator::set_pass_param): New member function.  Set
3829         may_peel_loop_headers_p.
3830         (pass_dominator::may_peel_loop_headers_p): New private member.
3831         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3832         first_pass_instance.
3833
3834 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3835
3836         * passes.def: Add arg to pass_reassoc pass instantiation.
3837         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3838         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3839         of first_pass_instance.
3840         (execute_reassoc): Add and handle insert_powi_p parameter.
3841         (pass_reassoc::insert_powi_p): New private member.
3842         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3843         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
3844         (pass_reassoc::execute): Call execute_reassoc with extra arg.
3845
3846 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3847
3848         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3849         * gen-pass-instances.awk (handle_line): Same.
3850         * pass_manager.h (class pass_manager): Define and undefine
3851         NEXT_PASS_WITH_ARG.
3852         * passes.c (opt_pass::set_pass_param): New function.
3853         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3854         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3855         * tree-pass.h (gimple_opt::set_pass_param): Declare.
3856         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3857         warn_array_bounds_p parameter.
3858         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3859         (pass_vrp::set_pass_param): New function.
3860         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3861         (pass_vrp::warn_array_bounds_p): New private member.
3862
3863 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3864
3865         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3866         (output_probe_stack_range): Rotate the loop and simplify.
3867
3868 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3869
3870         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3871         (output_probe_stack_range): Rotate the loop and simplify.
3872
3873 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3874
3875         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3876         an lea instruction when possible.
3877         (output_adjust_stack_and_probe): Rotate the loop and simplify.
3878         (ix86_emit_probe_stack_range): Adjust.
3879         (output_probe_stack_range): Rotate the loop and simplify.
3880
3881 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3882
3883         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3884         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3885         with appropriate pragma GCC target.
3886
3887 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3888
3889         PR target/65837
3890         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3891         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3892
3893 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3894
3895         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3896         (cortexa57_tunings): Use it.
3897
3898 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3899
3900         PR target/65837
3901         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3902         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3903         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3904         undefine __ARM_FP.
3905         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3906         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3907         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3908         * doc/extend.texi (-mfpu=): Describe attribute.
3909
3910 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3911
3912         PR target/65837
3913         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3914         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3915         arm_init_neon_builtins.
3916         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3917         (arm_init_neon_builtins_internal)
3918         (arm_init_crypto_builtins_internal):
3919         Test and set neon_set_p, neon_crypto_set_p.
3920         (neon_set_p, neon_crypto_set_p): New static booleans.
3921
3922 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3923
3924         PR target/65837
3925         * config/arm/arm.c (arm_fpu_desc): Remove.
3926         (all_fpus): Make global.
3927         (arm_option_override): Use FPU TARGET accessors.
3928         (arm_declare_function_name): Likewise.
3929         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3930         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3931         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3932         (TARGET_NEON): Likewise.
3933         (all_fpus): Declare extern.
3934         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3935         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3936
3937 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3938
3939         PR middle-end/68366
3940         * sdbout.c: Include emit-rtl.h and function.h.
3941
3942 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
3943
3944         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3945         Remove support for FreeBSD 5 and earlier.
3946
3947 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3948
3949         * configure: Regenerate.
3950         * configure.ac: Always define ENABLE_OFFLOADING.
3951         * cgraph.c (cgraph_node::create): Adjust.
3952         * gcc.c (process_command): Likewise.
3953         * omp-low.c (create_omp_child_function): Likewise.
3954         (expand_omp_target): Likewise.
3955         * varpool.c (varpool_node::get_create): Likewise.
3956
3957 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3958
3959         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3960         * df-scan.c (df_get_exit_block_use_set): Adjust.
3961         * except.c (expand_eh_return): Likewise.
3962
3963 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3964
3965         * config/i386/i386.h (TARGET_PECOFF): Remove define.
3966         * defaults.h (TARGET_PECOFF): New default definition.
3967         * varasm.c (handle_vtv_comdat_section): Adjust.
3968
3969 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3970
3971         * defaults.h: New definition of SDB_DEBUGGING_INFO.
3972         * doc/tm.texi: Regenerate.
3973         * doc/tm.texi.in: Adjust.
3974         * final.c (rest_of_clean_state): Remove check if
3975         SDB_DEBUGGING_INFO is defined.
3976         * function.c (number_blocks): Likewise.
3977         * output.h: Likewise.
3978         * sdbout.c: Likewise.
3979         * toplev.c (process_options): Likewise.
3980
3981 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3982
3983         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3984         (enum sdb_masks): Likewise.
3985         * sdbout.c (plain_type_1): Likewise.
3986         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3987
3988 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
3989
3990         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3991         internal calls - 0 if ordered simd and 1 for ordered threads simd.
3992         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3993         argument is 1, replace it with GOMP_ordered_* call instead of removing
3994         it.
3995
3996 2015-11-13  Rich Felker <dalias@libc.org>
3997
3998         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3999         address loading hack for FDPIC targets.
4000
4001 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
4002             Jeff Law  <law@redhat.com>
4003
4004         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4005         * common.opt (-fsplit-paths): New flag controlling path splitting.
4006         * doc/invoke.texi (fsplit-paths): Document.
4007         * opts.c (default_options_table): Add -fsplit-paths to -O2.
4008         * passes.def: Add split_paths pass.
4009         * timevar.def (TV_SPLIT_PATHS): New timevar.
4010         * tracer.c: Include "tracer.h"
4011         (ignore_bb_p): No longer static.
4012         (transform_duplicate): New function, broken out of tail_duplicate.
4013         (tail_duplicate): Use transform_duplicate.
4014         * tracer.h (ignore_bb_p): Declare
4015         (transform_duplicate): Likewise.
4016         * tree-pass.h (make_pass_split_paths): Declare.
4017         * gimple-ssa-split-paths.c: New file.
4018
4019 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
4020             Marek Polacek  <polacek@redhat.com>
4021             Jason Merrill  <jason@redhat.com>
4022
4023         * convert.c (maybe_fold_build1_loc): New.
4024         (maybe_fold_build2_loc): New.
4025         (convert_to_pointer_1): Split out from convert_to_pointer.
4026         (convert_to_pointer_nofold): New.
4027         (convert_to_real_1): Split out from convert_to_real.
4028         (convert_to_real_nofold): New.
4029         (convert_to_integer_1): Split out from convert_to_integer.
4030         (convert_to_integer_nofold): New.
4031         (convert_to_complex_1): Split out from convert_to_complex.
4032         (convert_to_complex_nofold): New.
4033         * convert.h: Declare new functions.
4034         * tree-complex.c (create_one_component_var): Break up line to
4035         avoid sequence point issues.
4036
4037 2015-11-13  Jason Merrill  <jason@redhat.com>
4038
4039         * fold-const.c (fold_convert_const): Fold changing cv-quals on
4040         VECTOR_CST.
4041
4042         * hash-map.h (hash_map::empty): New.
4043
4044 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4045
4046         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4047         (oacc_loop_fixed_partitions): Correct return type to bool.
4048         (oacc_loop_auto_partitions): New.
4049         (oacc_loop_partition): Take mask argument, call
4050         oacc_loop_auto_partitions.
4051         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4052
4053 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4054
4055         * config/rs6000/constraints.md (we constraint): New constraint for
4056         64-bit power9 vector support.
4057         (wL constraint): New constraint for the element in a vector that
4058         can be addressed by the MFVSRLD instruction.
4059
4060         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4061         declaration.
4062         (convert_int_to_float128): Likewise.
4063         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4064         hardware support for IEEE 128-bit floating point.
4065         (rs6000_expand_float128_convert): Likewise.
4066         (convert_float128_to_int): Likewise.
4067         (convert_int_to_float128): Likewise.
4068
4069         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4070         ISA 3.0 hardware IEEE 128-bit floating point.
4071         (UNSPEC_IEEE128_MOVE): Likewise.
4072         (UNSPEC_IEEE128_CONVERT): Likewise.
4073         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4074         (Ff): Add support for DImode.
4075         (Fv): Likewise.
4076         (any_fix code iterator): New and updated iterators for IEEE
4077         128-bit floating point hardware support.
4078         (any_float code iterator): Likewise.
4079         (s code attribute): Likewise.
4080         (su code attribute): Likewise.
4081         (az code attribute): Likewise.
4082         (uns code attribute): Likewise.
4083         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4084         floating point hardware support.
4085         (abs<mode>2, FLOAT128 iterator): Likewise.
4086         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4087         floating point hardware.
4088         (sub<mode>3, IEEE128 iterator): Likewise.
4089         (mul<mode>3, IEEE128 iterator): Likewise.
4090         (div<mode>3, IEEE128 iterator): Likewise.
4091         (copysign<mode>3, IEEE128 iterator): Likewise.
4092         (sqrt<mode>2, IEEE128 iterator): Likewise.
4093         (neg<mode>2, IEEE128 iterator): Likewise.
4094         (abs<mode>2, IEEE128 iterator): Likewise.
4095         (nabs<mode>2, IEEE128 iterator): Likewise.
4096         (fma<mode>4_hw, IEEE128 iterator): Likewise.
4097         (fms<mode>4_hw, IEEE128 iterator): Likewise.
4098         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4099         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4100         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4101         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4102         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4103         (fix_fixuns code attribute): Likewise.
4104         (float_floatuns code attribute): Likewise.
4105         (fix<uns>_<mode>si2_hw): Likewise.
4106         (fix<uns>_<mode>di2_hw): Likewise.
4107         (float<uns>_<mode>si2_hw): Likewise.
4108         (float<uns>_<mode>di2_hw): Likewise.
4109         (xscvqp<su>wz_<mode>): Likewise.
4110         (xscvqp<su>dz_<mode>): Likewise.
4111         (xscv<su>dqp_<mode): Likewise.
4112         (ieee128_mfvsrd): Likewise.
4113         (ieee128_mfvsrwz): Likewise.
4114         (ieee128_mtvsrw): Likewise.
4115         (ieee128_mtvsrd): Likewise.
4116         (trunc<mode>df2_odd): Likewise.
4117         (cmp<mode>_h): Likewise.
4118         (128-bit GPR splitters): Don't split a 128-bit move that is a
4119         direct move between GPR and vector registers using ISA 3.0 direct
4120         move instructions.
4121         (maddld4): Add support for the ISA 3.0 integer multiply-add
4122         instruction.
4123
4124         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4125         debugging.
4126         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4127         constraint.  Disable the VSX<->GPR direct move helpers if we have
4128         the MFVSRLD and MTVSRDD instructions.
4129         (rs6000_secondary_reload_simple_move): Add support for doing
4130         vector direct moves directly without additional scratch registers
4131         if we have ISA 3.0 instructions.
4132         (rs6000_secondary_reload_direct_move): Update comments.
4133         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4134         instructions.
4135
4136         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4137         direct move instructions.
4138         (vsx_movti_64bit): Likewise.
4139         (vsx_extract_<mode>): Likewise.
4140
4141         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4142         macros for ISA 3.0 direct move instructions.
4143         (TARGET_DIRECT_MOVE_128): Likewise.
4144         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4145         instruction.
4146
4147         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4148         constraints.  Update wa documentation to say not to use %x<n> on
4149         instructions that only take Altivec registers.
4150
4151 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4152
4153         * Makefile.in (OBJS): Add gcc-rich-location.o.
4154         * diagnostic.c (diagnostic_append_note): Pass line_table to
4155         rich_location ctor.
4156         (emit_diagnostic): Likewise.
4157         (inform): Likewise.
4158         (inform_n): Likewise.
4159         (warning): Likewise.
4160         (warning_at): Likewise.
4161         (warning_n): Likewise.
4162         (pedwarn): Likewise.
4163         (permerror): Likewise.
4164         (error): Likewise.
4165         (error_n): Likewise.
4166         (error_at): Likewise.
4167         (sorry): Likewise.
4168         (fatal_error): Likewise.
4169         (internal_error): Likewise.
4170         (internal_error_no_backtrace): Likewise.
4171         (source_range::debug): Likewise.
4172         * gcc-rich-location.c: New file.
4173         * gcc-rich-location.h: New file.
4174         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4175         (warning_at): Likewise.
4176         * gimple.h (gimple_set_block): Use set_block function.
4177         * input.c (dump_line_table_statistics): Dump stats on how many
4178         ranges were optimized vs how many needed ad-hoc table.
4179         (write_digit_row): Add "map" param; use its range_bits
4180         to calculate the per-character offset.
4181         (dump_location_info): Print the range and column bits for each
4182         ordinary map.  Use the range bits to calculate the per-character
4183         offset.  Pass the map as a new param to the various calls to
4184         write_digit_row.  Eliminate uses of
4185         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4186         * print-tree.c (print_node): Print any source range information.
4187         * rtl-error.c (diagnostic_for_asm): Likewise.
4188         * toplev.c (general_init): Initialize line_table's
4189         default_range_bits.
4190         * tree-cfg.c (move_block_to_fn): Likewise.
4191         (move_block_to_fn): Likewise.
4192         * tree-inline.c (copy_phis_for_bb): Likewise.
4193         * tree.c (tree_set_block): Likewise.
4194         (get_pure_location): New function.
4195         (set_source_range): New functions.
4196         (set_block): New function.
4197         (set_source_range): New functions.
4198         * tree.h (CAN_HAVE_RANGE_P): New.
4199         (EXPR_LOCATION_RANGE): New.
4200         (EXPR_HAS_RANGE): New.
4201         (get_expr_source_range): New inline function.
4202         (DECL_LOCATION_RANGE): New.
4203         (set_source_range): New decls.
4204         (get_decl_source_range): New inline function.
4205
4206 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4207
4208         PR tree-optimization/67682
4209         * tree-vect-slp.c (vect_split_slp_store_group): New.
4210         (vect_analyze_slp_instance): During basic block SLP, recurse on
4211         subgroups if vect_build_slp_tree fails after 1st vector.
4212
4213 2015-11-13  Christian Bruel  <christian.bruel@st.com>
4214
4215         PR target/65837
4216         * config/arm/arm.c (arm_option_override): Move NEON check...
4217         (arm_option_check_internal): here
4218         (arm_file_start): Move .fpu print...
4219         (arm_declare_function_name): here
4220         (arm_option_print): Dump current fpu name.
4221         * config/arm/arm.opt (arm_fpu_index): Mark Save.
4222
4223 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
4224             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4225
4226         * combine.c (subst): Don't substitute or simplify when
4227         handling register-wise widening multiply.
4228         (force_to_mode): Likewise.
4229
4230 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4231
4232         PR tree-optimization/68264
4233         * tree-call-cdce.c (gen_one_condition): Update commentary.
4234         (gen_conditions_for_pow_int_base): Invert the sense of the tests
4235         passed to gen_one_condition.
4236         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
4237         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4238         using EDGE_FALSE_VALUE for edges to the call block and
4239         EDGE_TRUE_VALUE for the others.
4240
4241 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4242
4243         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4244         complex types.
4245
4246 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4247
4248         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4249
4250 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4251
4252         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4253         len_of_prefix.
4254
4255 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4256
4257         * gen-pass-instances.awk (handle_line): Add args_str variable.
4258
4259 2015-11-13  Martin Liska  <mliska@suse.cz>
4260
4261         * graphite-poly.c (free_scop): Release scop->drs vector.
4262         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4263         Release dom vector.
4264         (try_generate_gimple_bb): Use vNULL as a default initialization
4265         for vectors.
4266
4267 2015-11-13  Martin Liska  <mliska@suse.cz>
4268
4269         PR ipa/68311
4270         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4271         Replace array initialization (using a variable post-increment)
4272         that possible triggers multiple unsequenced modifications
4273         with a pair of pushes to a vector.
4274
4275 2015-11-13  Richard Biener  <rguenther@suse.de>
4276
4277         PR tree-optimization/68306
4278         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4279         loop related checks ...
4280         (vect_verify_datarefs_alignment): ... here.
4281         (vect_slp_analyze_and_verify_node_alignment): Compute and
4282         verify alignment of the single DR that it matters.
4283         * tree-vect-stmts.c (vectorizable_store): Add an assert.
4284         (vectorizable_load): Add a comment.
4285         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4286         for determining load cost.
4287
4288 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4289
4290         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4291         mix of boolean and integer vectors in a single statement.
4292         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4293         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4294         determine constant type.
4295         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4296         for loop invariants.
4297
4298 2015-11-13  Alan Hayward <alan.hayward@arm.com>
4299
4300         PR tree-optimization/66558
4301         * tree-vect-loop.c (is_integer_induction):Add.
4302         (vectorizable_reduction): Add integer induction checks.
4303
4304 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4305
4306         Revert [ARM] Remove neon-testgen.ml and generated tests.
4307
4308         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4309
4310         [ARM] Remove neon-testgen.ml and generated tests.
4311
4312         * config/arm/neon-testgen.ml: Remove.
4313
4314 2015-11-13  Richard Biener  <rguenther@suse.de>
4315
4316         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4317         Signal fatal failure if early checks fail.
4318         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4319         do not bother testing further vector sizes.
4320
4321 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
4322
4323         * config/i386/predicates.md (misaligned_operand): Return true if
4324         operand is aligned to less than its natural alignmnet.
4325
4326 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4327
4328         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4329         (vec_cmpu@var{m}@var{n}): New item.
4330         (vcond@var{m}@var{n}): Specify comparison is signed.
4331         (vcondu@var{m}@var{n}): New item.
4332         (vcond_mask_@var{m}@var{n}): New item.
4333         (maskload@var{m}@var{n}): New item.
4334         (maskstore@var{m}@var{n}): New item.
4335
4336 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4337
4338         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4339         types of stored value and storage are compatible.
4340
4341 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
4342
4343         * gcc.c (POST_LINK_SPEC): Define if not already defined.
4344         (LINK_COMMAND_SPEC): Use post_link.
4345         (post_link_spec): New, initialize to POST_LINK_SPEC.
4346         (post_link): Initialize new static spec.
4347         * doc/tm.texi.in (POST_LINK_SPEC): Document.
4348         * doc/tm.texi: Regenerated.
4349
4350 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4351
4352         PR driver/67613
4353         * Makefile.in (GCC_OBJS): Add spellcheck.o.
4354         (OBJS): Add spellcheck-tree.o.
4355         * gcc.c: Include "spellcheck.h".
4356         (suggest_option): New function.
4357         (driver::handle_unrecognized_options): Call suggest_option to
4358         provide a hint about misspelled options.
4359         * spellcheck.c: Update file comment.
4360         (levenshtein_distance): Convert 4-param implementation from static
4361         to extern scope.  Remove note about unit tests from leading
4362         comment for const char * implementation.  Move tree
4363         implementation to...
4364         * spellcheck-tree.c: New file.
4365         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
4366
4367 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4368
4369         * Makefile.in (OBJS): Add spellcheck.o.
4370         * spellcheck.c: New file.
4371         * spellcheck.h: New file.
4372
4373 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
4374
4375         * config/ft32/ft32.md (*sne): New insn pattern.
4376
4377 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
4378
4379         * cprop.c (is_too_expensive): Remove.
4380         (gcse.h): Include.
4381         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4382         is_too_expensive.
4383         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4384         * gcse.c (is_too_expensive): Rename to ...
4385         (gcse_or_cprop_is_too_expensive): ... this.
4386         Expand warning to add required size of max-gcse-memory.
4387         (one_pre_gcse_pass): Use it.
4388         (one_code_hoisting_pass): Use it.
4389         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4390
4391 2015-11-12  James Norris  <jnorris@codesourcery.com>
4392             Joseph Myers  <joseph@codesourcery.com>
4393
4394         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4395         GF_OMP_TARGET_KIND_OACC_DECLARE.
4396         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4397         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4398         * gimplify.c (oacc_declare_returns): New.
4399         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4400         (device_resident_p): New function.
4401         (oacc_default_clause): Handle device_resident clause.
4402         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4403         (gimplify_expr): Handle OACC_DECLARE.
4404         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4405         * omp-low.c (expand_omp_target): Handle
4406         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4407         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4408         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4409         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4410         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4411         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4412         GOMP_MAP_DEVICE_RESIDENT.
4413
4414 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4415
4416         [ARM] Remove neon-testgen.ml and generated tests.
4417
4418         * config/arm/neon-testgen.ml: Remove.
4419
4420 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
4421
4422         * config/aarch64/aarch64-cores.def (qdf24xx): New.
4423         * config/aarch64/aarch64-tune.md: Regenerated.
4424         * config/arm/arm-cores.def (qdf24xx): New.
4425         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4426         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4427         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4428         (ARM Options/-mtune): Likewise.
4429
4430 2015-11-12  Martin Liska  <mliska@suse.cz>
4431
4432         * config/i386/i386.c (ix86_valid_target_attribute_p):
4433         Finalize options at the of the function.
4434         * gcc.c (driver_get_configure_time_options): Call newly
4435         introduced init_opts_obstack.
4436         * lto-wrapper.c (main): Likewise.
4437         * opts.c (init_opts_obstack): New function.
4438         (init_options_struct): Call newly introduced init_opts_obstack.
4439         * opts.h (init_options_struct): Declare.
4440
4441 2015-11-12  Martin Liska  <mliska@suse.cz>
4442
4443         PR ipa/68035
4444         * ipa-icf.c (void sem_item::set_hash): New function.
4445         (sem_function::get_hash): Use renamed m_hash member variable.
4446         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4447         (sem_item::update_hash_by_local_refs): Likewise.
4448         (sem_variable::get_hash): Use renamed m_hash member variable.
4449         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4450         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4451         (sem_item_optimizer::build_graph): As the hash value of an item
4452         is lazy initialized, force the calculation.
4453         * ipa-icf.h (set_hash): Declare new function and rename hash member
4454         variable to m_hash.
4455
4456 2015-11-12  Richard Biener  <rguenther@suse.de>
4457
4458         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4459         Rename to vect_slp_analyze_instance_dependence.
4460         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4461         Remove WAR special-case.
4462         (vect_slp_analyze_node_dependences): Instead add more specific
4463         code here, not relying on other instances being vectorized.
4464         (vect_slp_analyze_instance_dependence): Adjust accordingly.
4465         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4466         vertical space in dump files.
4467         (vect_print_slp_tree): Likewise.
4468         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4469         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4470         not vectorized stmts until after dependence analysis removed
4471         instances.  Merge alignment and dependence checks.
4472         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4473         flag on all stmts.
4474
4475 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
4476
4477         * config/aarch64/aarch64-protos.h (tune_params): Add new members
4478         "max_case_values" and "cache_line_size".
4479         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4480         function.
4481         (aarch64_override_options_internal): Tune heuristics based on new
4482         members in "tune_params".
4483         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4484
4485 2015-11-12  Richard Biener  <rguenther@suse.de>
4486
4487         PR tree-optimization/68306
4488         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4489         relevant and vectorizable checks here.
4490         (vect_verify_datarefs_alignment): Add relevant check here.
4491
4492 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
4493
4494         * gimplify.c (oacc_default_clause): New.
4495         (omp_notice_variable): Call it.
4496
4497 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4498
4499         PR tree-optimization/68305
4500         * tree-vect-slp.c (vect_get_constant_vectors): Support
4501         COND_EXPR with SSA_NAME as a condition.
4502
4503 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4504
4505         * config/visium/visium-protos.h (notice_update_cc): Delete.
4506         (print_operand): Likewise.
4507         (print_operand_address): Likewise.
4508
4509 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4510
4511         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4512         FUNCTION_VALUE_REGNO_P): Remove.
4513         * config/alpha/alpha-protos.h (function_value): Remove.
4514         * config/alpha/alpha.c (function_value): Rename to...
4515         (alpha_function_value_1): ... this.  Make static.
4516         (alpha_function_value, alpha_libcall_value,
4517         alpha_function_value_regno_p): New functions.
4518         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4519         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4520
4521 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4522
4523         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4524         * config/alpha/alpha.c (alpha_memory_latency): Make static.
4525         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4526         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4527
4528 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4529
4530         PR target/67265
4531         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4532         assertion on the CFA register.
4533
4534 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4535
4536         * expr.c (do_store_flag): Expand vector comparison as
4537         VEC_COND_EXPR if vector comparison is not supported by target.
4538
4539 2015-11-12  Renlin Li  <renlin.li@arm.com>
4540
4541         * config/arm/arm.md (addsi3_compare_op2): Make the order of
4542         assembly pattern consistent with constraint order.
4543
4544 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4545
4546         * gen-pass-instances.awk (handle_line): Simplify match regexp.
4547
4548 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4549
4550         * gen-pass-instances.awk (handle_line): Simplify init of
4551         postfix_starts_at.
4552
4553 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4554
4555         * gen-pass-instances.awk (handle_line): Rename var where to
4556         call_starts_at.
4557
4558 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
4559
4560         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4561         do not expand to rtl.
4562
4563 2015-11-12  Richard Biener  <rguenther@suse.de>
4564
4565         PR tree-optimization/58497
4566         * tree-vect-generic.c: Include gimplify.h.
4567         (tree_vec_extract): Lookup constant/constructor DEFs.
4568         (do_cond): Unshare cond.
4569
4570 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4571
4572         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4573         combined insn if the alignment of vector mode memory operand
4574         is less than ssememalign.
4575
4576 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4577
4578         * gen-pass-instances.awk (handle_line): Print parentheses and
4579         pass_name explicitly.
4580
4581 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4582
4583         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4584         and postfix vars.
4585
4586 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4587
4588         * gen-pass-instances.awk (handle_line): Add comments.
4589
4590 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4591
4592         * gen-pass-instances.awk (handle_line): Rename len_of_end to
4593         len_of_close.
4594
4595 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4596
4597         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4598
4599 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4600
4601         * gen-pass-instances.awk (handle_line): Restructure using early-out.
4602
4603 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4604
4605         * gen-pass-instances.awk (handle_line): Unify semicolon use.
4606
4607 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4608
4609         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4610
4611 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4612
4613         * gen-pass-instances.awk: Add emacs indent setting.
4614
4615 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4616
4617         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4618         to match.pd.
4619         Move Convert A/(B/C) to (A/B)*C to match.pd.
4620         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4621         Move Optimize (X & (-A)) / A where A is a power of 2, to
4622         X >> log2(A) to match.pd.
4623
4624         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4625         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4626         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4627         New simplifier.
4628         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4629
4630 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
4631
4632         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4633         variable.
4634         (neon_vst2_lane<mode>): Likewise.
4635         (neon_vld3_lane<mode>): Likewise.
4636         (neon_vst3_lane<mode>): Likewise.
4637         (neon_vld4_lane<mode>): Likewise.
4638         (neon_vst4_lane<mode>): Likewise.
4639
4640 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
4641             Sebastian Pop  <s.pop@samsung.com>
4642
4643         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4644         New member codegen_error
4645         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4646         early return.
4647         (translate_isl_ast_node_user): Early return in case of error.
4648         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4649         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4650         (add_parameters_to_ivs_params): Remove macro.
4651         (graphite_regenerate_ast_isl): Add if_region pointer to region.
4652         * graphite-poly.c (new_poly_dr): Remove macro.
4653         (print_pdr): Same.
4654         (new_gimple_poly_bb): Same.
4655         (free_gimple_poly_bb): Same.
4656         (print_scop_params): Same.
4657         * graphite-poly.h (struct poly_dr): Same.
4658         (struct poly_bb): Add new_bb.
4659         (gbb_from_bb): Remove dead code.
4660         (pbb_from_bb): Same.
4661         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4662         (parameter_index_in_region): Same.
4663         (find_scop_parameters): Same.
4664         (build_cross_bb_scalars_def): New.
4665         (build_cross_bb_scalars_use): New.
4666         (graphite_find_cross_bb_scalar_vars): New
4667         (try_generate_gimple_bb): Reads and Writes.
4668         (build_alias_set): Move.
4669         (gather_bbs::before_dom_children): Gather bbs visited.
4670         (build_scops): call build_alias_set.
4671         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4672         (remove_simple_copy_phi): Delete.
4673         (remove_invariant_phi): Delete.
4674         (simple_copy_phi_p): Delete.
4675         (reduction_phi_p): Delete.
4676         (isl_id_for_dr): Remove unused param.
4677         (parameter_index_in_region_1): Remove macro usage.
4678         (set_scop_parameter_dim): Same.
4679         (add_param_constraints): Same.
4680         (add_conditions_to_constraints): Same
4681         (build_scop_iteration_domain): Same.
4682         (pdr_add_alias_set): Comment.
4683         (add_scalar_version_numbers): New.
4684         (build_poly_dr): ISL id.
4685         (build_scop_drs): Move.
4686         (build_poly_sr_1): Same.
4687         (insert_stmts): Remove.
4688         (build_poly_sr): New.
4689         (new_pbb_from_pbb): Delete.
4690         (insert_out_of_ssa_copy_on_edge): Delete.
4691         (create_zero_dim_array): Delete.
4692         (scalar_close_phi_node_p): Delete.
4693         (propagate_expr_outside_region): Delete.
4694         (rewrite_close_phi_out_of_ssa): Delete.
4695         (rewrite_phi_out_of_ssa): Delete.
4696         (rewrite_degenerate_phi): Delete.
4697         (rewrite_reductions_out_of_ssa): Delete.
4698         (rewrite_cross_bb_scalar_dependence): Delete.
4699         (handle_scalar_deps_crossing_scop_limits):
4700         (rewrite_cross_bb_scalar_deps): Delete.
4701         (build_poly_scop): Remove calls to out-of-ssa functions.
4702         * graphite.c (graphite_transform_loops): Early return in case of
4703         codegen error.
4704         * sese.c (debug_rename_map_1): Delete.
4705         (debug_rename_map): Delete.
4706         (sese_record_loop): Remove macro.
4707         (build_sese_loop_nests): Same.
4708         (new_sese_info): Same.
4709         (free_sese_info): Same.
4710         (sese_insert_phis_for_liveouts):
4711         (is_loop_closed_ssa_use): New.
4712         (number_of_phi_nodes): New.
4713         (bb_contains_loop_close_phi_nodes): New.
4714         (bb_contains_loop_phi_nodes): New.
4715         (phi_uses_name): New.
4716         (is_valid_rename):
4717         (get_rename): Add old_bb and loop_phi for more precise matching of
4718         exprs.
4719         (set_rename): Pass region.
4720         (later_of_the_two): New.
4721         (gsi_insert_earliest): New.
4722         (collect_all_ssa_names): New.
4723         (substitute_ssa_name): New.
4724         (rename_all_uses): New.
4725         (get_rename_from_scev): New.
4726         (rename_uses): Pass old_bb for more precise matching of exprs.
4727         (get_def_bb_for_const): New.
4728         (get_new_name): New.
4729         (get_loc): New.
4730         (get_edges): New.
4731         (copy_loop_phi_args): New.
4732         (copy_loop_phi_nodes): New.
4733         (get_loop_init_value): New.
4734         (find_init_value): New.
4735         (find_init_value_close_phi): New.
4736         (copy_loop_close_phi_args): New.
4737         (copy_loop_close_phi_nodes): New.
4738         (add_phi_arg_for_new_expr): New.
4739         (copy_cond_phi_args): New.
4740         (copy_cond_phi_nodes): New.
4741         (copy_phi_nodes): New.
4742         (should_copy_to_new_region): New.
4743         (set_rename_for_each_def): New.
4744         (graphite_copy_stmts_from_block): Early return in case of error.
4745         (copy_bb_and_scalar_dependences): Same.
4746         * sese.h (vec_find): New.
4747         (SESE_PARAMS): Delete.
4748         (SESE_LOOPS): Delete.
4749         (SESE_LOOP_NEST): Delete.
4750         (sese_contains_loop): Remove macro usage.
4751         (sese_nb_params): Same.
4752         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4753
4754 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4755
4756         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4757         isl_union_map_add_map on every pbb->schedule.
4758
4759 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4760
4761         * tree-parloops.c (create_parallel_loop): Return void.
4762
4763 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4764
4765         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4766         block only when needed.
4767
4768 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
4769
4770         * config/alpha/alpha-protos.h (print_operand): Remove.
4771         (print_operand_address): Remove.
4772         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4773         (PRINT_OPERAND_ADDRESS): Remove.
4774         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4775         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4776         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4777         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4778         (print_operand_address): Rename to...
4779         (alpha_print_operand_address): ...this and make static.
4780         (print_operand): Rename to...
4781         (alpha_print_operand): ...this and make static.
4782         (alpha_print_operand_punct_valid_p): New static function.
4783
4784 2015-11-11  Richard Biener  <rguenther@suse.de>
4785
4786         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4787         Declare.
4788         (vect_analyze_data_refs_alignment): Make loop vect specific.
4789         (vect_verify_datarefs_alignment): Likewise.
4790         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4791         Add missing continue.
4792         (vect_compute_data_ref_alignment): Export.
4793         (vect_compute_data_refs_alignment): Merge into...
4794         (vect_analyze_data_refs_alignment): ... this.
4795         (verify_data_ref_alignment): Split out from ...
4796         (vect_verify_datarefs_alignment): ... here.
4797         (vect_slp_analyze_and_verify_node_alignment): New function.
4798         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4799         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4800         misplaced checks on alignment.
4801         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
4802         alignment analysis after SLP discovery and do it per instance.
4803         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4804         bother to re-try using different vector sizes.
4805
4806 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4807             Cesar Philippidis  <cesar@codesourcery.com>
4808
4809         * gimplify.c (enum omp_region_type): Add ORT_ACC,
4810         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
4811         (gimple_add_tmp_var): Add ORT_ACC checks.
4812         (gimplify_var_or_parm_decl): Likewise.
4813         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4814         (omp_add_variable): Look in outer contexts for openacc and allow
4815         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4816         (omp_notice_variable, omp_is_private, omp_check_private): Add
4817         ORT_ACC checks.
4818         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4819         Permit private openacc reductions.
4820         (gimplify_oacc_cache): Specify ORT_ACC.
4821         (gimplify_omp_workshare): Adjust OpenACC region types.
4822         (gimplify_omp_target_update): Likewise.
4823         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4824         (lower-rec_input_clauses): Don't handle openacc firstprivate
4825         references here.
4826         (lower_omp_target): Emit initializers for openacc firstprivate vars.
4827
4828 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
4829
4830         PR target/67265
4831         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4832         frame pointer for stack checking if non-call exceptions aren't used.
4833         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4834
4835 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
4836
4837         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4838         [LA]SHIFTRT.
4839
4840 2015-11-11  Martin Liska  <mliska@suse.cz>
4841             Richard Biener  <rguenther@suse.de>
4842
4843         PR rtl-optimization/68287
4844         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4845         number of elements.
4846
4847 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
4848
4849         * config/mips/mips.c (mips_breakable_sequence_p): New function.
4850         (mips_break_sequence): New function.
4851         (mips_reorg_process_insns): Use them. Use compact branches in selected
4852         situations.
4853
4854 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
4855
4856         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4857
4858 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
4859             Jim Wilson  <wilson@gcc.gnu.org>
4860
4861         PR target/67305
4862         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4863         be true and eliminable registers mentioned.
4864
4865 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
4866
4867         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4868         options.
4869         * config/arc/arc-opts.h: Add ARCv2 CPUs.
4870         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4871         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4872         situation, and store instructions with large offsets.
4873         (arc_secondary_reload_conv): New function.
4874         (arc_init): Add ARCv2 options.
4875         (arc_conditional_register_usage): Select the proper register usage
4876         for ARCv2 processors.
4877         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4878         architecture.
4879         (arc_compute_function_type): Likewise.
4880         (arc_print_operand): Handle new ARCv2 punctuation characters.
4881         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4882         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4883         function.
4884         (arc_reorg, arc_hazard): Use it.
4885         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4886         (ASM_SPEC): Add ARCv2 options.
4887         (TARGET_NORM): ARC HS has norm instructions by default.
4888         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4889         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4890         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4891         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4892         Likewise.
4893         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4894         (TARGET_LP_WR_INTERLOCK): Likewise.
4895         * config/arc/arc.md
4896         (commutative_binary_mult_comparison_result_used, movsicc_insn)
4897         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4898         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4899         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4900         Use it for ARCv2.
4901         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4902         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4903         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4904         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4905         (extzvsi): New pattern.
4906         * config/arc/arc.opt: New ARCv2 options.
4907         * config/arc/arcEM.md: New file.
4908         * config/arc/arcHS.md: Likewise.
4909         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4910         values.
4911         (Cm2): A signed 9-bit integer constant constraint.
4912         (C62): An unsigned 6-bit integer constant constraint.
4913         (C16): A signed 16-bit integer constant constraint.
4914         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4915         (short_const_int_operand): New predicate.
4916         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4917         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4918         -mcode-density and -mdiv-rem.
4919
4920 2015-11-11  Julia Koval  <julia.koval@intel.com>
4921
4922         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4923
4924 2015-11-11  Julia Koval  <julia.koval@intel.com>
4925
4926         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4927
4928 2015-11-11  Martin Liska  <mliska@suse.cz>
4929
4930         * gimple-ssa-strength-reduction.c (create_phi_basis):
4931         Use auto_vec.
4932         * passes.c (release_dump_file_name): New function.
4933         (pass_init_dump_file): Used from this function.
4934         (pass_fini_dump_file): Likewise.
4935         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4936         * var-tracking.c (vt_initialize): Use pool_allocator.
4937
4938 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
4939             Jiong Wang      <jiong.wang@arm.com>
4940
4941         PR tree-optimization/68234
4942         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4943         node which estimiated to be VR_VARYING initially.
4944
4945 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
4946
4947         * regname.c (scan_rtx_reg): Check the matching number of consecutive
4948         registers when tying chains.
4949         (build_def_use): Move terminated_this_insn earlier in the function.
4950
4951 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
4952
4953         * configure.ac: Use = with test and not ==.
4954         * configure: Regenerated.
4955
4956 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
4957
4958         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4959         machine asserts.  Update defines for 64 bit.
4960
4961 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4962
4963         PR target/63870
4964         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4965         lane number.
4966         (neon_vst1_lane<mode>): Likewise.
4967         (neon_vld2_lane<mode>): Likewise.
4968         (neon_vst2_lane<mode>): Likewise.
4969         (neon_vld3_lane<mode>): Likewise.
4970         (neon_vst3_lane<mode>): Likewise.
4971         (neon_vld4_lane<mode>): Likewise.
4972         (neon_vst4_lane<mode>): Likewise.
4973
4974 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4975
4976         PR target/63870
4977         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4978         qualifier_struct_load_store_lane_index.
4979         (arm_storestruct_lane_qualifiers) Likewise.
4980         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4981         big-endian.
4982         (neon_vst1_lane<mode>) Likewise.
4983         (neon_vld2_lane<mode>) Likewise.
4984         (neon_vst2_lane<mode>) Likewise.
4985         (neon_vld3_lane<mode>) Likewise.
4986         (neon_vst3_lane<mode>) Likewise.
4987         (neon_vld4_lane<mode>) Likewise.
4988         (neon_vst4_lane<mode>) Likewise.
4989
4990 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4991
4992         PR target/63870
4993         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4994         qualifier_struct_load_store_lane_index.
4995         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4996         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4997         argument qualifiers.
4998         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4999         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5000
5001 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
5002
5003         * config/nvptx/nvptx.opt (moptimize): New flag.
5004         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5005         default.
5006         (nvptx_optimize_inner): New.
5007         (nvptx_process_pars): Call it when optimizing.
5008         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5009
5010 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5011
5012         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5013         Remove redundant code.
5014
5015 2015-11-10  Jeff Law  <law@redhat.com>
5016
5017         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5018         call to output_address.
5019         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5020         Add unnamed machine_mode argument.
5021
5022 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5023
5024         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5025         default to 64-bit.
5026
5027 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5028
5029         * config/i386/i386.md (*movabs<mode>_1): Add explicit
5030         size directives for -masm=intel.
5031         (*movabs<mode>_2): Ditto.
5032
5033 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5034
5035         * config/i386/i386.c (ix86_print_operand): Remove dead code that
5036         tried to avoid (%rip) for call operands.
5037
5038 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5039
5040         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5041         argument.  Do not use RIP relative addressing when no_rip is set.
5042         (ix86_print_operand): Update call to ix86_print_operand_address_as.
5043         (ix86_print_operand_address): Ditto.
5044         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5045         absolute movabs operand 0.  Add square braces for -masm=intel.
5046         (*movabs<mode>_2): Ditto for operand 1.
5047
5048 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5049
5050         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5051         combine_vcvtf2i pattern.
5052
5053 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5054
5055         * config/arm/arm.c (neon_valid_immediate): Remove integer
5056         CONST_DOUBLE handling.  It should never occur.
5057
5058 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
5059
5060         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5061         (ATOMIC_LDOP): Likewise.
5062         (atomic_ldop): Likewise.
5063         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5064         (ATOMIC_LDOP): Likewise.
5065         (atomic_ldop): Likewise.
5066
5067 2015-11-10  Martin Liska  <mliska@suse.cz>
5068
5069         * alloc-pool.h (allocate_raw): New function.
5070         (operator new (size_t, object_allocator<T> &a)): Use the
5071         function instead of object_allocator::allocate).
5072
5073 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5074
5075         * config/i386/sse.md (HALFMASKMODE): New attribute.
5076         (DOUBLEMASKMODE): New attribute.
5077         (vec_pack_trunc_qi): New.
5078         (vec_pack_trunc_<mode>): New.
5079         (vec_unpacks_lo_hi): New.
5080         (vec_unpacks_lo_si): New.
5081         (vec_unpacks_lo_di): New.
5082         (vec_unpacks_hi_hi): New.
5083         (vec_unpacks_hi_<mode>): New.
5084
5085 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5086
5087         * optabs.c (expand_binop_directly): Allow scalar mode for
5088         vec_pack_trunc_optab.
5089         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5090         boolean vector producers from pattern sequence when computing VF.
5091         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5092         vect_recog_mask_conversion_pattern.
5093         (search_type_for_mask): Choose the smallest
5094         type if different size types are mixed.
5095         (build_mask_conversion): New.
5096         (vect_recog_mask_conversion_pattern): New.
5097         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5098         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5099         load with pattern.
5100         (vectorizable_conversion): Support boolean vectors.
5101         (free_stmt_vec_info): Allow patterns for statements with no lhs.
5102         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5103
5104 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5105
5106         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5107         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5108         Cast mask to FP mode if required.
5109         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5110         (vcond_mask_<mode><avx512fmaskmodelower>): New.
5111         (vcond_mask_<mode><sseintvecmodelower>): New.
5112         (vcond_mask_<mode><sseintvecmodelower>): New.
5113         (vcond_mask_v2div2di): New.
5114         (vcond_mask_<mode><sseintvecmodelower>): New.
5115         (vcond_mask_<mode><sseintvecmodelower>): New.
5116
5117 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5118
5119         * optabs-query.h (get_vcond_mask_icode): New.
5120         * optabs-tree.c (expand_vec_cond_expr_p): Use
5121         get_vcond_mask_icode for VEC_COND_EXPR with mask.
5122         * optabs.c (expand_vec_cond_mask_expr): New.
5123         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5124         * optabs.def (vcond_mask_optab): New.
5125         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5126         generate redundant comparison for COND_EXPR.
5127         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5128         as a condition.
5129         (vectorizable_condition): Likewise.
5130         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5131         cond_exp with no embedded comparison.
5132         (vect_build_slp_tree_1): Likewise.
5133
5134 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5135
5136         * config/i386/sse.md (maskload<mode>): Rename to ...
5137         (maskload<mode><sseintvecmodelower>): ... this.
5138         (maskstore<mode>): Rename to ...
5139         (maskstore<mode><sseintvecmodelower>): ... this.
5140         (maskload<mode><avx512fmaskmodelower>): New.
5141         (maskstore<mode><avx512fmaskmodelower>): New.
5142
5143 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5144
5145         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5146         (expand_MASK_STORE): Adjust to maskstore optab changes.
5147         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5148          Adjust to maskload, maskstore optab changes.
5149         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5150         * optabs.def (maskload_optab): Transform into convert optab.
5151         (maskstore_optab): Likewise.
5152         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5153         can_vec_mask_load_store_p signature change.
5154         (predicate_mem_writes): Use boolean mask.
5155         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5156         can_vec_mask_load_store_p signature change.  Allow invariant masks.
5157         (vectorizable_operation): Ignore type precision for boolean vectors.
5158
5159 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5160
5161         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5162         (const_vector_mask_from_tree): New.
5163         (const_vector_from_tree): Use const_vector_mask_from_tree
5164         for boolean vectors.
5165         * optabs-query.h (get_vec_cmp_icode): New.
5166         * optabs-tree.c (expand_vec_cmp_expr_p): New.
5167         * optabs-tree.h (expand_vec_cmp_expr_p): New.
5168         * optabs.c (vector_compare_rtx): Add OPNO arg.
5169         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5170         (expand_vec_cmp_expr): New.
5171         * optabs.def (vec_cmp_optab): New.
5172         (vec_cmpu_optab): New.
5173         * optabs.h (expand_vec_cmp_expr): New.
5174         * tree-vect-generic.c (expand_vector_comparison): Add vector
5175         comparison optabs check.
5176         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
5177         operations for VF.  Add mask type computation.
5178         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5179         (vectorizable_comparison): New.
5180         (vect_analyze_stmt): Add vectorizable_comparison.
5181         (vect_transform_stmt): Likewise.
5182         (vect_init_vector): Support boolean vector invariants.
5183         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5184         (vectorizable_condition): Directly provide vectype for invariants
5185         used in comparison.
5186         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5187         (enum vect_var_kind): Add vect_mask_var.
5188         (enum stmt_vec_info_type): Add comparison_vec_info_type.
5189         (vectorizable_comparison): New.
5190         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5191         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5192         (vect_create_destination_var): Likewise.
5193         * tree-vect-patterns.c (check_bool_pattern): Check fails
5194         if we can vectorize comparison directly.
5195         (search_type_for_mask): New.
5196         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5197         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5198         comparison statements.
5199         (vect_get_constant_vectors): Support boolean vector constants.
5200         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5201         (ix86_expand_int_vec_cmp): New.
5202         (ix86_expand_fp_vec_cmp): New.
5203         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5204         op_true and op_false.
5205         (ix86_int_cmp_code_to_pcmp_immediate): New.
5206         (ix86_fp_cmp_code_to_pcmp_immediate): New.
5207         (ix86_cmp_code_to_pcmp_immediate): New.
5208         (ix86_expand_mask_vec_cmp): New.
5209         (ix86_expand_fp_vec_cmp): New.
5210         (ix86_expand_int_sse_cmp): New.
5211         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5212         (ix86_expand_int_vec_cmp): New.
5213         (ix86_get_mask_mode): New.
5214         (TARGET_VECTORIZE_GET_MASK_MODE): New.
5215         * config/i386/sse.md (avx512fmaskmodelower): New.
5216         (vec_cmp<mode><avx512fmaskmodelower>): New.
5217         (vec_cmp<mode><sseintvecmodelower>): New.
5218         (vec_cmpv2div2di): New.
5219         (vec_cmpu<mode><avx512fmaskmodelower>): New.
5220         (vec_cmpu<mode><sseintvecmodelower>): New.
5221         (vec_cmpuv2div2di): New.
5222
5223 2015-11-10  Richard Biener  <rguenther@suse.de>
5224
5225         PR tree-optimization/68240
5226         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5227         properly.
5228         (visit_phi): For PHIs with just a single executable edge
5229         take its value directly.
5230         (expressions_equal_p): Handle VN_TOP properly.
5231
5232 2015-11-10  Richard Biener  <rguenther@suse.de>
5233
5234         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5235         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5236         conservatively.
5237
5238 2015-11-10  Richard Biener  <rguenther@suse.de>
5239
5240         PR tree-optimization/56118
5241         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5242         cost favor vectorized version.
5243
5244 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5245
5246         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5247         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5248         (neg_not_op): New code attribute.
5249
5250 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5251
5252         * ifcvt.c (noce_try_inverse_constants): New function.
5253         (noce_process_if_block): Call it.
5254         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5255         * optabs.def (negcc_optab, notcc_optab): Declare.
5256         * optabs.c (emit_conditional_neg_or_complement): New function.
5257         * doc/tm.texi (Standard Names): Document negcc, notcc names.
5258
5259 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5260
5261         PR rtl-optimization/68236
5262         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5263         if insn_queue doesn't exist.
5264         (haifa_sched_finish): Reset insn_queue to NULL.
5265
5266 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
5267
5268         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5269         (build_def_use): Initialize terminated_this_insn.
5270         (find_best_rename_reg): Pick and check register from the tied chain.
5271         (regrename_do_replace): Mark head as renamed.
5272         (struct du_head *terminated_this_insn). New static variable.
5273         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
5274         * regrename.h (struct du_head): Add tied_chain, renamed members.
5275
5276 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5277
5278         PR bootstrap/68256
5279         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5280         Return false.
5281
5282 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5283
5284         PR target/57845
5285         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5286         not promote the mode for aggregate types.
5287
5288 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5289
5290         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5291         * omp-low.c (build_oacc_routine_dims): New.
5292
5293 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5294
5295         * config/rs6000/constraints.md (wF constraint): New constraints
5296         for power9/toc fusion.
5297         (wG constraint): Likewise.
5298
5299         * config/rs6000/predicates.md (u6bit_cint_operand): New
5300         predicate, recognize 0..63.
5301         (upper16_cint_operand): New predicate for power9 and toc fusion.
5302         (fpr_reg_operand): Likewise.
5303         (toc_fusion_or_p9_reg_operand): Likewise.
5304         (toc_fusion_mem_raw): Likewise.
5305         (toc_fusion_mem_wrapped): Likewise.
5306         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5307         address range.
5308         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5309         instead.
5310         (fusion_addis_mem_combo_load): Add support for power9 fusion of
5311         floating point loads, floating point stores, and gpr stores.
5312         (fusion_addis_mem_combo_store): Likewise.
5313         (fusion_offsettable_mem_operand): Likewise.
5314
5315         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5316         (emit_fusion_load_store): Likewise.
5317         (fusion_p9_p): Likewise.
5318         (expand_fusion_p9_load): Likewise.
5319         (expand_fusion_p9_store): Likewise.
5320         (emit_fusion_p9_load): Likewise.
5321         (emit_fusion_p9_store): Likewise.
5322         (fusion_wrap_memory_address): Likewise.
5323
5324         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5325         elements for power9 fusion.
5326         (rs6000_debug_print_mode): Rework debug information to print more
5327         information about fusion.
5328         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5329         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5330         offsettable memory address.
5331         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5332         (emit_fusion_gpr_load): Move most of the code from
5333         emit_fusion_gpr_load into emit_fusion-addis that handles both
5334         power8 and power9 fusion.
5335         (emit_fusion_addis): Likewise.
5336         (emit_fusion_load_store): Likewise.
5337         (fusion_wrap_memory_address): Add support for TOC fusion.
5338         (fusion_split_address): Likewise.
5339         (fusion_p9_p): Add support for power9 fusion.
5340         (expand_fusion_p9_load): Likewise.
5341         (expand_fusion_p9_store): Likewise.
5342         (emit_fusion_p9_load): Likewise.
5343         (emit_fusion_p9_store): Likewise.
5344
5345         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5346         new instructions in ISA 3.0.
5347         (TARGET_CTZ): Likewise.
5348         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5349         (TARGET_TOC_FUSION_FP): Likewise.
5350
5351         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5352         fusion unspecs.
5353         (UNSPEC_FUSION_ADDIS): Likewise.
5354         (QHSI mode iterator): New iterator for power9 fusion.
5355         (GPR_FUSION): Likewise.
5356         (FPR_FUSION): Likewise.
5357         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5358         (umod<mode>3): Likewise.
5359         (divmod peephole): Likewise.
5360         (udivmod peephole): Likewise.
5361         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5362         instructions.
5363         (ctz<mode>2_h): Likewise.
5364         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5365         (ashdi3_extswsli_dot): Likewise.
5366         (ashdi3_extswsli_dot2): Likewise.
5367         (power9 fusion splitter): New power9/toc fusion support.
5368         (toc_fusionload_<mode>): Likewise.
5369         (toc_fusionload_di): Likewise.
5370         (fusion_gpr_load_<mode>): Update predicate function.
5371         (power9 fusion peephole2s): New power9/toc fusion support.
5372         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5373         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5374         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5375         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5376         (fusion_p9_<mode>_constant): Likewise.
5377
5378 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
5379
5380         * optabs.c (prepare_libcall_arg): New function.
5381         (expand_fixed_convert): Add call to prepare_libcall_arg.
5382
5383 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5384
5385         * sched-int.h (dump_rgn_dependencies_dot): Declare
5386         * sched-rgn.c (dump_rgn_dependencies_dot): New function
5387         * print-rtl.h (print_insn): Add prototype
5388
5389         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5390         * common.opt (-fsched-verbose): Set default value to 1.
5391         * invoke.texi (-fsched-verbose): Update the option's description.
5392
5393 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5394
5395         * config/visium/visium.h (PRINT_OPERAND): Delete.
5396         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5397         (PRINT_OPERAND_ADDRESS): Likewise.
5398         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5399         to...
5400         (visium_print_operand_punct_valid_p): ...this.  New function.
5401         (TARGET_PRINT_OPERAND): Define to...
5402         (print_operand): Rename to...
5403         (visium_print_operand): ...this.
5404         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5405         (visium_output_address): Rename to...
5406         (visium_print_operand_address): ...this.
5407         (print_operand_address): Delete.
5408
5409 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5410
5411         PR middle-end/68259
5412         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5413         Check that the type of the first operand is an aggregate type.
5414
5415 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5416
5417         * omp-low.c: Fix some OpenACC comment typos.
5418         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5419         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5420         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5421
5422 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
5423
5424         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5425
5426 2015-11-09  Jeff Law  <law@redhat.com>
5427
5428         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5429         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
5430         Fix comment typo.
5431
5432 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5433             Peter Bergner  <bergner@vnet.ibm.com>
5434
5435         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5436         ISA 3.0 (power9).
5437         (-mpower9-vector): Likewise.
5438         (-mpower9-dform): Likewise.
5439         (-mpower9-minmax): Likewise.
5440         (-mtoc-fusion): Likewise.
5441         (-mmodulo): Likewise.
5442         (-mfloat128-hardware): Likewise.
5443
5444         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5445         mask for ISA 3.0 (power9).
5446         (POWERPC_MASKS): Add new ISA 3.0 switches.
5447         (power9 cpu): Add power9 cpu.
5448
5449         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5450         (ASM_CPU_SPEC): Likewise.
5451         (EXTRA_SPECS): Likewise.
5452
5453         * config/rs6000/rs6000-opts.h (enum processor_type): Add
5454         PROCESSOR_POWER9.
5455
5456         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5457         (rs6000_debug_reg_global): Add support for power9 fusion.
5458         (rs6000_setup_reg_addr_masks): Cache mode size.
5459         (rs6000_option_override_internal): Until real power9 tuning is
5460         added, use -mtune=power8 for -mcpu=power9.
5461         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5462         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5463         of Altivec registers.
5464         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5465         (rs6000_loop_align): Add support for power9 cpu.
5466         (rs6000_file_start): Likewise.
5467         (rs6000_adjust_cost): Likewise.
5468         (rs6000_issue_rate): Likewise.
5469         (insn_must_be_first_in_group): Likewise.
5470         (insn_must_be_last_in_group): Likewise.
5471         (force_new_group): Likewise.
5472         (rs6000_register_move_cost): Likewise.
5473         (rs6000_opt_masks): Likewise.
5474
5475         * config/rs6000/rs6000.md (cpu attribute): Add power9.
5476         * config/rs6000/rs6000-tables.opt: Regenerate.
5477
5478         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5479         _ARCH_PWR9 if power9 support is available.
5480
5481         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5482         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5483
5484         * configure.ac: Determine if the assembler supports the ISA 3.0
5485         instructions.
5486         * config.in (HAVE_AS_POWER9): Likewise.
5487         * configure: Regenerate.
5488
5489         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5490         switches.
5491
5492 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5493
5494         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5495         Remove integer CONST_DOUBLE handling.  It should never occur.
5496
5497 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5498
5499         PR target/68129
5500         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5501         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5502         Delete VOIDmode case.  Assert that mode is not VOIDmode.
5503         * config/aarch64/predicates.md (const0_operand): Remove const_double
5504         match.
5505
5506 2015-11-09  Martin Liska  <mliska@suse.cz>
5507
5508         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5509         body_info release function.
5510         * ipa-prop.c (ipa_release_body_info): New function.
5511         (ipa_analyze_node): Call the function.
5512         (ipa_node_params::~ipa_node_params): Release known_csts.
5513         * ipa-prop.h (ipa_release_body_info): Declare.
5514
5515 2015-11-09  Martin Liska  <mliska@suse.cz>
5516
5517         * gcc.c (record_temp_file): Release name string.
5518         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5519         * lra-lives.c (free_live_range_list): Utilize
5520         lra_live_range_pool for allocation and deallocation.
5521         (create_live_range): Likewise.
5522         (copy_live_range): Likewise.
5523         (lra_merge_live_ranges): Likewise.
5524         (remove_some_program_points_and_update_live_ranges): Likewise.
5525         (lra_create_live_ranges_1): Release point_freq_vec that can
5526         be not freed from previous iteration of the function.
5527         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5528         * tree-sra.c (sra_deinitialize): Release all vectors in
5529         base_access_vec.
5530         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5531         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5532         Release edge_info for a removed edge.
5533         (thread_through_all_blocks): Free region vector.
5534         * tree-ssa.h (free_dom_edge_info): Declare function extern.
5535
5536 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
5537
5538         * optabs.c (expand_vec_cond_expr): Always get sign from type.
5539         * tree.c (wide_int_to_tree): Support negative values for boolean.
5540         (build_nonstandard_boolean_type): Use signed type for booleans.
5541
5542 2015-11-09  Richard Biener  <rguenther@suse.de>
5543
5544         PR tree-optimization/68248
5545         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5546
5547 2015-11-09  Richard Biener  <rguenther@suse.de>
5548
5549         PR tree-optimization/56118
5550         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5551         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5552         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5553         function.
5554         (vect_slp_analyze_data_ref_dependences): Instead of computing
5555         all dependences of the region DRs just analyze the code motions
5556         SLP vectorization will perform.  Remove SLP instances that
5557         cannot have their store/load motions applied.
5558         (vect_analyze_data_refs): Allow DRs without a vectype
5559         in BB vectorization.
5560
5561 2015-11-09  Julian Brown  <julian@codesourcery.com>
5562
5563         * final.c (output_asm_insn): Pass VOIDmode to output_address.
5564         (output_address): Add MODE argument. Pass to print_operand_address
5565         hook.
5566         * targhooks.c (default_print_operand_address): Add MODE argument.
5567         * targhooks.h (default_print_operand_address): Update prototype.
5568         * output.h (output_address): Update prototype.
5569         * target.def (print_operand_address): Add MODE argument.
5570         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5571         output_address.
5572         (print_operand): Pass access mode to output_address.
5573         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5574         argument.
5575         (mcore_print_operand): Update calls to mcore_print_operand_address.
5576         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5577         output_address.
5578         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5579         output_address.
5580         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5581         global.
5582         (tilegx_print_operand): Don't set above global. Update calls to
5583         output_address.
5584         (tilegx_print_operand_address): Add MODE argument. Use instead of
5585         output_memory_reference_mode global.
5586         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5587         (frv_print_operand): Pass mode to frv_print_operand_address calls.
5588         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5589         output_address.
5590         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5591         (cris_print_operand): Pass mode to output_address calls.
5592         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5593         * config/aarch64/aarch64.h (aarch64_print_operand)
5594         (aarch64_print_operand_address): Remove prototypes.
5595         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5596         global.
5597         (aarch64_print_operand): Make static. Update calls to output_address.
5598         (aarch64_print_operand_address): Add MODE argument. Use instead of
5599         aarch64_memory_reference_mode global.
5600         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5601         hooks.
5602         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5603         Delete macro definitions.
5604         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5605         * config/xtensa/xtensa.c (print_operand): Pass mode in
5606         output_address calls.
5607         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5608         argument.
5609         (h83000_print_operand): Update calls to h8300_print_operand_address
5610         and output_address.
5611         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5612         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5613         global.
5614         (tilepro_print_operand): Pass mode to output_address.
5615         (tilepro_print_operand_address): Add MODE argument. Use instead of
5616         output_memory_reference_mode.
5617         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5618         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5619         to output_address calls.
5620         (nvptx_print_operand_address): Add MODE argument.
5621         * config/alpha/alpha.c (print_operand): Pass mode argument in
5622         output_address calls.
5623         * config/m68k/m68k.c (print_operand): Pass mode argument in
5624         output_address call.
5625         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5626         (avr_print_operand): Update calls to avr_print_operand_address.
5627         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5628         argument. Update calls to output_address.
5629         (sparc_print_operand): Pass mode to output_address.
5630         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5631         argument.
5632         (iq2000_print_operand): Pass mode in output_address calls.
5633         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5634         MODE argument.
5635         (xstormy16_print_operand): Pass mode to
5636         xstormy16_print_operand_address calls.
5637         * config/mips/mips.c (mips_print_operand): Update calls to
5638         output_address.
5639         (mips_print_operand_address): Add MODE argument.
5640         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5641         to output_address.
5642         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5643         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5644         output_address.
5645         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5646         (rx_print_operand): Update calls to output_address,
5647         rx_print_operand_address.
5648         * config/nds32/nds32.c (nds32_print_operand): Update calls to
5649         output_address.
5650         (nds32_print_operand_address): Add MODE argument.
5651         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5652         output_address calls.
5653         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5654         output_address call.
5655         (c6x_print_address_operand): Update calls to output_address.
5656         (c6x_print_operand_address): Pass mode to above.
5657         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5658         (v850_print_operand): Pass mode to v850_print_operand_address,
5659         output_address.
5660         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5661         (mmix_print_operand): Pass mode in output_address calls.
5662         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5663         (sh_print_operand): Pass mem mode to output_address,
5664         sh_print_operand_address.
5665         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5666         (cr16_print_operand): Pass mode to output_address,
5667         cr16_print_operand_address.
5668         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5669         output_address.
5670         * config/microblaze/microblaze.c (print_operand): Pass mode to
5671         output_address.
5672         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5673         output_address.
5674         (nios2_print_operand_address): Add MODE argument. Update call to
5675         nios2_print_operand_address.
5676         * config/s390/s390.c (print_operand): Pass mode to output_address.
5677         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5678         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5679         output_address.
5680         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5681         Use instead of output_memory_reference_mode.
5682         (output_memory_reference_mode): Delete global.
5683         (arm_print_operand): Pass mem mode to output_address.
5684         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5685         (m32r_print_operand): Pass mode to output_address.
5686         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5687         argument.
5688         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5689         * config/i386/i386.c (ix86_print_operand): Pass mode to
5690         output_address calls.
5691         (ix86_print_operand_address): Add MODE argument.
5692
5693 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5694
5695         PR middle-end/68251
5696         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5697         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5698         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5699         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5700
5701 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5702
5703         PR rtl-optimization/67749
5704         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5705         case before emitting the two blocks.  Instead modify the register
5706         in the corresponding final insn of the basic block.
5707
5708 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5711         assembler syntax.
5712         Support Solaris ld.
5713         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5714
5715         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5716         HAVE_INITFINI_ARRAY_SUPPORT.
5717         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5718
5719         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5720         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5721         Don't check HAVE_AS_SPARC_NOBITS.
5722         Heed SECTION_NOTYPE.
5723
5724         * configure: Regenerate.
5725         * config.in: Regenerate.
5726
5727 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5728
5729         PR middle-end/68253
5730         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5731
5732 2015-11-09  Richard Henderson  <rth@redhat.com>
5733
5734         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5735         __SEG_GS, __SEG_TLS.
5736         (ix86_register_pragmas): Register address spaces __seg_fs,
5737         __seg_gs, __seg_tls.
5738         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5739         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5740         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5741         * config/i386/i386.c (ix86_decompose_address): Likewise.
5742         (ix86_legitimate_address_p): Likewise.
5743         (memory_address_length): Likewise.  Check mem address space too.
5744         (ix86_print_operand): Use ix86_print_operand_address_as.
5745         (ix86_print_operand_address_as): Rename from
5746         ix86_print_operand_address, add new addr_space_t parameter.
5747         Validate that either the parameter or the ix86_address segment
5748         is default address space.  Handle ADDR_SPACE_SEG_TLS.
5749         (ix86_print_operand_address): New.
5750         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5751         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5752         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5753         (ix86_addr_space_zero_address_valid): New.
5754         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5755         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5756         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5757         * config/i386/predicates.md (address_no_seg_operand): Likewise.
5758         (vsib_address_operand): Likewise.
5759         (address_mpx_no_base_operand): Likewise.
5760         (address_mpx_no_index_operand): Likewise.
5761         * doc/extend.texi (x86 Named Address Spaces): New section.
5762
5763         * config/i386/i386.c (ix86_check_no_addr_space): New.
5764         (decide_alg): Add have_as parameter.
5765         (alg_usable_p): Likewise; disable rep algorithms if set.
5766         (ix86_expand_set_or_movmem): Notice if either MEM has a
5767         non-default address space.
5768         (ix86_expand_strlen): Likewise.
5769         * config/i386/i386.md (strmov, strset): Likewise.
5770         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5771         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5772         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5773         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5774         *cmpstrnqi_1, *strlenqi_1): Likewise.
5775
5776         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5777         (*movabs<mode>_2): Likewise.
5778
5779         * dwarf2out.c (modified_type_die): Pass the address space number
5780         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5781         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5782         * targhooks.c (default_addr_space_debug): New.
5783         * targhooks.h (default_addr_space_debug): Declare.
5784         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5785         * doc/tm.texi: Rebuild.
5786
5787         * gimple.c (check_loadstore): Return false when 0 is a valid address.
5788         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5789         null when 0 is valid in the source address space.
5790         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5791         * targhooks.c (default_addr_space_zero_address_valid): New.
5792         * targhooks.h (default_addr_space_zero_address_valid): Declare.
5793         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5794         * doc/tm.texi: Rebuild.
5795
5796         * cselib.c (add_mem_for_addr): Compare address spaces when
5797         matching memories.
5798         (cselib_lookup_mem): Likewise.
5799         * fold-const.c (operand_equal_p): Check address spaces of
5800         pointer types before checking integer constants.
5801
5802         PR tree-opt/66768
5803         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5804         the correct type for the base.
5805
5806 2015-11-09  Jeff Law  <law@redhat.com>
5807
5808         * tree-into-ssa.c (names_to_release): No longer static.
5809         * tree-into-ssa.h (names_to_release): Declare.
5810         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5811         (release_free_names_and_compact_live_names): New function extracted
5812         from pass_release_ssa_names::execute.
5813         (pass_release_ssa_names::execute): Use it.
5814
5815 2015-11-09  Alan Modra  <amodra@gmail.com>
5816
5817         * gensupport.c (add_mnemonic_string): Make len param a size_t.
5818         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
5819         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
5820         return value.
5821
5822 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
5823
5824         PR rtl-optimization/68182
5825         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5826         branch with only one successor just like unconditional branches.
5827
5828 2015-11-08  Jeff Law  <law@redhat.com>
5829
5830         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5831         non-FSM path has no edges marked with EDGE_DFS_BACK.
5832         (ssa_redirect_edges): No longer call mark_loop_for_removal.
5833         (thread_single_edge, def_split_header_continue_p): Remove.
5834         (bb_ends_with_multiway_branch): Likewise.
5835         (thread_through_loop_header): Remove cases of threading from
5836         latch through the header.  Simplify knowing we won't thread
5837         the latch.
5838         (thread_through_all_blocks): Simplify knowing that only the FSM
5839         threader needs to handle backedges.
5840
5841 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5842
5843         * doc/extend.texi (type attributes): Document scalar_storage_order.
5844         (Structure-Packing Pragmas): Rename into...
5845         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
5846         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5847         (Warnings): Document -Wno-scalar-storage-order.
5848         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5849         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5850         extract_bit_field and store_bit_field.
5851         (initialize_argument_information): Adjust call to store_expr.
5852         (load_register_parameters): Adjust call to extract_bit_field.
5853         * expmed.c (check_reverse_storage_order_support): New function.
5854         (check_reverse_float_storage_order_support): Likewise.
5855         (flip_storage_order): Likewise.
5856         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
5857         of the value if it is true.  Pass REVERSE to recursive call after
5858         adjusting the target offset.
5859         Do not use extraction or movstrict instruction if REVERSE is true.
5860         Pass REVERSE to store_fixed_bit_field.
5861         (store_bit_field): Add REVERSE parameter and pass to it to above.
5862         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5863         store_split_bit_field and store_fixed_bit_field_1.
5864         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
5865         order of the value if it is true and adjust the target offset.
5866         (store_split_bit_field): Add REVERSE parameter and pass it to
5867         store_fixed_bit_field.  Adjust the target offset if it is true.
5868         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
5869         of the value if it is true.  Pass REVERSE to recursive call after
5870         adjusting the target offset.
5871         Do not use extraction or subreg instruction if REVERSE is true.
5872         Pass REVERSE to extract_fixed_bit_field.
5873         (extract_bit_field): Add REVERSE parameter and pass to it to above.
5874         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5875         extract_split_bit_field and extract_fixed_bit_field_1.
5876         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
5877         order of the value if it is true and adjust the target offset.
5878         (extract_split_bit_field): Add REVERSE parameter and pass it to
5879         extract_fixed_bit_field.  Adjust the target offset if it is true.
5880         * expmed.h (flip_storage_order): Declare.
5881         (store_bit_field): Adjust prototype.
5882         (extract_bit_field): Likewise.
5883         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5884         (emit_group_store): Adjust call to store_bit_field.
5885         (copy_blkmode_from_reg): Likewise.
5886         (copy_blkmode_to_reg): Likewise.
5887         (write_complex_part): Likewise.
5888         (read_complex_part): Likewise.
5889         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
5890         that it isn't true if the target is a register.
5891         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5892         and flip the storage order of the value.
5893         <BIT_IOR_EXPR>: Flip the storage order of the value.
5894         (get_bit_range): Adjust call to get_inner_reference.
5895         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5896         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
5897         with reverse storage order.
5898         (store_expr_with_bounds): Add REVERSE parameter and pass it to
5899         recursive calls and call to store_bit_field.  Force the value into a
5900         register if it is true and then flip the storage order of the value.
5901         (store_expr): Add REVERSE parameter and pass it to above.
5902         (categorize_ctor_elements_1): Adjust call to
5903         initializer_constant_valid_p.
5904         (store_constructor_field): Add REVERSE parameter and pass it to
5905         recursive calls and call to store_field.
5906         (store_constructor): Add REVERSE parameter and pass it to calls to
5907         store_constructor_field and store_expr.  Set it to true for an
5908         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5909         (store_field): Add REVERSE parameter and pass it to recursive calls
5910         and calls to store_expr and store_bit_field.  Temporarily flip the
5911         storage order of the value with record type and integral mode and
5912         adjust the shift if it is true.
5913         (get_inner_reference): Add PREVERSEP parameter and set it to true
5914         upon encoutering a reference with reverse storage order.
5915         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5916         (expand_constructor): Adjust call to store_constructor.
5917         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5918         of the union type to store_expr in the MEM case and assert that it
5919         isn't set in the REG case.  Adjust call to store_field.
5920         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5921         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5922         get_inner_reference and extract_bit_field. Temporarily flip the
5923         storage order of the value with record type and integral mode and
5924         adjust the shift if it is true.  Flip the storage order of the value
5925         at the end if it is true.
5926         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5927         get_inner_reference.  Do not fetch an inner reference if it is true.
5928         * expr.h (store_expr_with_bounds): Ajust prototype.
5929         (store_expr): Likewise.
5930         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5931         REF_REVERSE_STORAGE_ORDER on the reference according to it.
5932         (optimize_bit_field_compare): Deal with reverse storage order.
5933         Adjust calls to get_inner_reference and make_bit_field_ref.
5934         (decode_field_reference): Add PREVERSEP parameter and adjust call to
5935         get_inner_reference.
5936         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
5937         to decode_field_reference and make_bit_field_ref.
5938         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5939         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5940         (fold_comparison): Adjust call to get_inner_reference.
5941         (split_address_to_core_and_offset): Adjust call to
5942         get_inner_reference.
5943         * gimple-expr.c (useless_type_conversion_p): Return false for array
5944         types with different TYPE_REVERSE_STORAGE_ORDER flag.
5945         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5946         REF_REVERSE_STORAGE_ORDER flag.
5947         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5948         * output.h (assemble_real): Adjust prototype.
5949         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5950         * stor-layout.c (finish_record_layout): Propagate the
5951         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5952         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5953         (TYPE_SATURATING): Adjust.
5954         (REF_REVERSE_STORAGE_ORDER): Document.
5955         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5956         set it to true upon encoutering a reference with reverse storage order.
5957         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5958         * tree-inline.c (remap_gimple_op_r): Propagate the
5959         REF_REVERSE_STORAGE_ORDER flag.
5960         (copy_tree_body_r): Likewise.
5961         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5962         store_expr.
5963         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5964         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5965         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5966         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5967         REF_REVERSE_STORAGE_ORDER flag.
5968         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5969         (gimple_canonical_types_compatible_p): Likewise.
5970         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5971         (TYPE_SATURATING): Adjust.
5972         (REF_REVERSE_STORAGE_ORDER): New flag.
5973         (reverse_storage_order_for_component_p): New inline predicate.
5974         (storage_order_barrier_p): Likewise.
5975         (get_inner_reference): Adjust prototype.
5976         * varasm.c: Include expmed.h.
5977         (assemble_variable_contents): Adjust call to output_constant.
5978         (assemble_real): Add REVERSE parameter.  Flip the storage
5979         order of the value if REVERSE is true.
5980         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5981         (assemble_constant_contents): Adjust call to output_constant.
5982         (output_constant_pool_2): Adjust call to assemble_real.
5983         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5984         TYPE_REVERSE_STORAGE_ORDER.
5985         (initializer_constant_valid_p): Add REVERSE parameter.
5986         (output_constant): Add REVERSE parameter.
5987         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5988         <REAL_TYPE>: Adjust call to assemble_real.
5989         <COMPLEX_TYPE>: Pass it to recursive calls.
5990         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
5991         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
5992         (struct oc_local_state): Add REVERSE field.
5993         (output_constructor_array_range): Adjust calls to output_constant.
5994         (output_constructor_regular_field): Likewise.
5995         (output_constructor_bitfield): Adjust call to output_constructor.
5996         Flip the storage order of the value if REVERSE is true.
5997         (output_constructor): Add REVERSE parameter.  Set it to true for an
5998         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
5999         output_constructor_bitfield.
6000         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6001         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6002         * builtins.c (get_object_alignment_2): Likewise.
6003         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6004         and get_ref_base_and_extent.
6005         * dbxout.c (dbxout_expand_expr): Likewise.
6006         * dwarf2out.c (add_var_loc_to_decl): Likewise.
6007         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6008         (loc_list_from_tree): Likewise.
6009         (fortran_common): Likewise.
6010         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6011         get_ref_base_and_extent.
6012         (get_base_constructor): Likewise.
6013         (fold_const_aggregate_ref_1): Likewise.
6014         * gimple-laddress.c (pass_laddress::execute): Adjust call to
6015         get_inner_reference.
6016         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6017         get_inner_reference and bail out on reverse storage order.
6018         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6019         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6020         build_ref_for_offset.
6021         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6022         get_ref_base_and_extent.
6023         (ipa_polymorphic_call_context): Likewise.
6024         (extr_type_from_vtbl_ptr_store): Likewise.
6025         (check_stmt_for_type_change): Likewise.
6026         (get_dynamic_type): Likewise.
6027         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6028         get_ref_base_and_extent.
6029         (compute_complex_assign_jump_func): Likewise.
6030         (get_ancestor_addr_info): Likewise.
6031         (compute_known_type_jump_func): Likewise.
6032         (determine_known_aggregate_parts): Likewise.
6033         (ipa_get_adjustment_candidate): Likewise.
6034         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6035         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6036         (build_ref_for_offset): Adjust prototype.
6037         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6038         get_inner_reference.
6039         * tree-affine.c (tree_to_aff_combination): Adjust call to
6040         get_inner_reference.
6041         (get_inner_reference_aff): Likewise.
6042         * tree-data-ref.c (split_constant_offset_1): Likewise.
6043         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
6044         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6045         get_inner_reference.
6046         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6047         (dump_access): Print new fields.
6048         (create_access): Adjust call to get_ref_base_and_extent and set the
6049         REVERSE flag according to the result.
6050         (completely_scalarize_record): Set the REVERSE flag.
6051         (scalarize_elem): Add REVERSE parameter.
6052         (build_access_from_expr_1): Preserve storage order barriers.
6053         (build_accesses_from_assign): Likewise.
6054         (build_ref_for_offset): Add REVERSE parameter and set the
6055         REF_REVERSE_STORAGE_ORDER flag accordingly.
6056         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6057         the REF_REVERSE_STORAGE_ORDER flag if there are components.
6058         (analyze_access_subtree): Likewise.
6059         (create_artificial_child_access): Set the REVERSE flag.
6060         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6061         (turn_representatives_into_adjustments): Propagate REVERSE flag.
6062         (ipa_sra_check_caller): Adjust call to get_inner_reference.
6063         * tree-ssa-alias.c (ao_ref_base): Adjust call to
6064         get_ref_base_and_extent.
6065         (aliasing_component_refs_p): Likewise.
6066         (stmt_kills_ref_p_1): Likewise.
6067         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6068         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6069         Return true if reverse storage order.
6070         <BIT_FIELD_REF>: Likewise.
6071         <COMPONENT_REF>: Likewise.
6072         <ARRAY_REF>: Likewise.
6073         <ARRAY_RANGE_REF>: Likewise.
6074         (split_address_cost): Likewise.  Bail out if reverse storage order.
6075         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6076         get_inner_reference.  Bail out if reverse storage order.
6077         (bswap_replace): Adjust call to get_inner_reference.
6078         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6079         the REF_REVERSE_STORAGE_ORDER flag.
6080         <BIT_FIELD_REF>: Likewise.
6081         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6082         barriers.
6083         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6084         to the REF_REVERSE_STORAGE_ORDER flag.
6085         <BIT_FIELD_REF>: Likewise.
6086         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6087         (contains_storage_order_barrier_p): New predicate.
6088         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6089         Punt on storage order barriers if necessary.
6090         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6091         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6092         call to get_ref_base_and_extent.
6093         (do_structure_copy): Likewise.
6094         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6095         get_inner_reference.
6096         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
6097         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6098         * ubsan.c (instrument_bool_enum_load): Likewise.
6099         (instrument_object_size): Likewise.
6100         * var-tracking.c (track_expr_p): Adjust call to
6101         get_ref_base_and_extent.
6102         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6103         get_inner_reference.
6104         * config/s390/s390.c (s390_expand_atomic): Adjust call to
6105         store_bit_field.
6106         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6107         extract_bit_field.
6108         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6109
6110 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
6111
6112         * config/sparc/sparc.opt (mfix-at697f): Add final period.
6113
6114 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6115
6116         PR rtl-optimization/67864
6117         * common/config/i386/i386-common.c (ix86_option_optimization_table)
6118         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6119         at -Os and up.
6120
6121 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6122
6123         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6124         internal functions.
6125
6126 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6127
6128         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6129         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6130
6131 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6132
6133         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6134         * internal-fn.c: Don't undef it here.
6135         * tree-core.h: Likewise.
6136
6137 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6138
6139         * builtins.c (fold_builtin_nan): Delete.
6140         (fold_builtin_memcmp): Remove case where both arguments are constant.
6141         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6142         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6143         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6144         * fold-const-call.c: Include fold-const.h.
6145         (host_size_t_cst_p): New function.
6146         (build_cmp_result, fold_const_builtin_nan): Likewise.
6147         (fold_const_call_1): New function, split out from...
6148         (fold_const_call): ...here (for all three interfaces).  Handle
6149         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6150
6151 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6152
6153         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6154         (fold_builtin_1): Don't call them.
6155         * fold-const-call.c: Include tm.h.
6156         (fold_const_call_ss): New variant for integer-to-integer folds.
6157         (fold_const_call): Call it.
6158
6159 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6160
6161         * builtins.c (fold_builtin_classify): Move constant cases to...
6162         * fold-const-call.c (fold_const_call_ss): ...here.
6163
6164 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6165
6166         * builtins.h (c_getstr): Move to...
6167         * fold-const.h (c_getstr): ...here.
6168         * builtins.c (c_getstr): Move to...
6169         * fold-const.c (c_getstr): ...here.
6170
6171 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6172
6173         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6174         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6175
6176 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6177
6178         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6179         the dominance info; free it if we can't.
6180         (pass_call_cdce::execute): Don't free the dominance info here.
6181
6182 2015-11-06  Jeff Law <law@redhat.com>
6183
6184         * tree-ssa-threadedge.c (dummy_simplify): Remove.
6185         (thread_around_empty_blocks): Remove backedge_seen_p argument.
6186         If we thread to a backedge, then return false.  Update recursive
6187         call to eliminate backedge_seen_p argument.
6188         (thread_through_normal_block): Remove backedge_seen_p argument.
6189         Remove backedge_seen_p argument from calls to
6190         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
6191         If we thread to a backedge, then return 0.
6192         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
6193         pass it to thread_through_normal_block or thread_through_empty_blocks.
6194         For joiner handling, if we see a backedge, do not try normal
6195         threading.
6196
6197 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6198
6199         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6200         * graphite-poly.c (new_scop): Initialize original_schedule.
6201         (free_scop): Free original_schedule.
6202         * graphite-poly.h (struct scop): Add field original_schedule.
6203         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6204         (build_poly_scop): Call build_scop_original_schedule.
6205
6206 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6207
6208         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6209         (build_pbb_minimal_scattering_polyhedrons): New.
6210         (build_scop_scattering): Remove.
6211         (build_scop_minimal_scattering): New.
6212         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6213         (build_poly_scop): Call build_scop_minimal_scattering.
6214
6215 2015-11-06  Jeff Law <law@redhat.com>
6216
6217         * cfg-flags.def (IGNORE): New edge flag.
6218         * tree-vrp.c (identify_jump_threads): Mark and clear edges
6219         scheduled for removal with EDGE_IGNORE around call into
6220         jump threader.  Do no thread across edges with EDGE_IGNORE,
6221         but do allow threading across those with EDGE_DFS_BACK.
6222
6223 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
6224
6225         * doc/md.texi (multi-alternative constraints): Don't document
6226         alternatives inherently tied to reload for the user documentation.
6227
6228 2015-11-06  Michael Collison  <michael.collison@linaro.org>
6229             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6230
6231         Revert:
6232         2015-08-01  Michael Collison  <michael.collison@linaro.org
6233                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6234
6235         * config/arm/arm.md (*arm_smin_cmp): New pattern.
6236         (*arm_umin_cmp): Likewise.
6237
6238 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
6239
6240         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6241         * omp-low.c (check_omp_nesting_restrictions): Update for the
6242         various new OpenMP 4.5 nesting restrictions, clarified
6243         nesting glossary, closely nested region relationship clarified
6244         to mean explicit or implicit parallel regions (target/teams),
6245         use %</%> or %qs where appropriate.
6246
6247 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6248             Sebastian Pop  <s.pop@samsung.com>
6249
6250         * graphite-scop-detection.c (loop_is_valid_scop): Call
6251         optimize_loop_nest_for_speed_p.
6252
6253 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6254             Sebastian Pop  <s.pop@samsung.com>
6255
6256         * graphite-optimize-isl.c (optimize_isl): Call
6257         isl_options_set_schedule_maximize_band_depth.
6258
6259 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6260             Sebastian Pop  <s.pop@samsung.com>
6261
6262         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6263         and exit edges should not be a part of irreducible loop.
6264         (scop_detection::can_represent_loop_1): Loops should not be
6265         irreducible.
6266         (scop_detection::harmful_stmt_in_region): All the basic block
6267         should belong to reducible loops.
6268
6269 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
6270
6271         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6272         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6273         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6274         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6275         (aarch64_tbx4v8qi): Rename to...
6276         aarch64_tbx4<mode>): ... this.
6277         (aarch64_qtbl3<mode>): New pattern.
6278         (aarch64_qtbx3<mode>): New pattern.
6279         (aarch64_qtbl4<mode>): New pattern.
6280         (aarch64_qtbx4<mode>): New pattern.
6281         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6282         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6283         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6284         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6285         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6286         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6287         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6288         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6289         functions.
6290
6291 2015-11-06  Mike Stump  <mikestump@comcast.net>
6292
6293         PR debug/66728
6294         * dwarf2out.c (get_full_len): Return a value based upon the actual
6295         precision needed for the value.
6296         (add_const_value_attribute): Use a maximal wide-int for
6297         CONST_WIDE_INTs, not VOIDmode.
6298         (output_die): Don't ever output NULL with printf.
6299
6300         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6301         BLKmode nor VOIDmode values.
6302
6303 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6304
6305         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6306         and "range2".
6307         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6308         * diagnostic-core.h (warning_at_rich_loc): New declaration.
6309         (error_at_rich_loc): New declaration.
6310         (permerror_at_rich_loc): New declaration.
6311         (inform_at_rich_loc): New declaration.
6312         * diagnostic-show-locus.c (adjust_line): Delete.
6313         (struct point_state): New struct.
6314         (class colorizer): New class.
6315         (class layout_point): New class.
6316         (class layout_range): New class.
6317         (struct line_bounds): New.
6318         (class layout): New class.
6319         (colorizer::colorizer): New ctor.
6320         (colorizer::~colorizer): New dtor.
6321         (layout::layout): New ctor.
6322         (layout::print_source_line): New method.
6323         (layout::print_annotation_line): New method.
6324         (layout::get_state_at_point): New method.
6325         (layout::get_x_bound_for_row): New method.
6326         (diagnostic_show_locus): Reimplement in terms of class layout.
6327         (diagnostic_print_caret_line): Delete.
6328         * diagnostic.c (diagnostic_initialize): Replace
6329         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6330         (diagnostic_set_info_translated): Convert param from location_t
6331         to rich_location *.  Eliminate calls to set_location on the
6332         message in favor of storing the rich_location ptr there.
6333         (diagnostic_set_info): Convert param from location_t to
6334         rich_location *.
6335         (diagnostic_build_prefix): Break out array into...
6336         (diagnostic_kind_color): New variable.
6337         (diagnostic_get_color_for_kind): New function.
6338         (diagnostic_report_diagnostic): Colorize the option_text
6339         using the color for the severity.
6340         (diagnostic_append_note): Update for change in signature of
6341         diagnostic_set_info.
6342         (diagnostic_append_note_at_rich_loc): New function.
6343         (emit_diagnostic): Update for change in signature of
6344         diagnostic_set_info.
6345         (inform): Likewise.
6346         (inform_at_rich_loc): New function.
6347         (inform_n): Update for change in signature of diagnostic_set_info.
6348         (warning): Likewise.
6349         (warning_at): Likewise.
6350         (warning_at_rich_loc): New function.
6351         (warning_n): Update for change in signature of diagnostic_set_info.
6352         (pedwarn): Likewise.
6353         (permerror): Likewise.
6354         (permerror_at_rich_loc): New function.
6355         (error): Update for change in signature of diagnostic_set_info.
6356         (error_n): Likewise.
6357         (error_at): Likewise.
6358         (error_at_rich_loc): New function.
6359         (sorry): Update for change in signature of diagnostic_set_info.
6360         (fatal_error): Likewise.
6361         (internal_error): Likewise.
6362         (internal_error_no_backtrace): Likewise.
6363         (source_range::debug): New function.
6364         * diagnostic.h (struct diagnostic_info): Eliminate field
6365         "override_column".  Add field "richloc".
6366         (struct diagnostic_context): Add field "colorize_source_p".
6367         (diagnostic_override_column): Delete.
6368         (diagnostic_set_info): Convert param from location_t to
6369         rich_location *.
6370         (diagnostic_set_info_translated): Likewise.
6371         (diagnostic_append_note_at_rich_loc): New function.
6372         (diagnostic_num_locations): New function.
6373         (diagnostic_expand_location): Get the location from the
6374         rich_location.
6375         (diagnostic_print_caret_line): Delete.
6376         (diagnostic_get_color_for_kind): New declaration.
6377         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6378         (error_cb): Update for change in signature of "error" callback.
6379         (fatal_at): Likewise.
6380         (warning_at): Likewise.
6381         * input.c (linemap_client_expand_location_to_spelling_point): New.
6382         * pretty-print.c (text_info::set_range): New method.
6383         (text_info::get_location): New method.
6384         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6385         (struct text_info): Eliminate "locations" array in favor of
6386         "m_richloc", a rich_location *.
6387         (textinfo::set_location): Add a "caret_p" param, and reimplement
6388         in terms of a call to set_range.
6389         (textinfo::get_location): Eliminate inline implementation in favor of
6390         an out-of-line reimplementation.
6391         (textinfo::set_range): New method.
6392         * rtl-error.c (diagnostic_for_asm): Update for change in signature
6393         of diagnostic_set_info.
6394         * tree-diagnostic.c (default_tree_printer): Update for new
6395         "caret_p" param for textinfo::set_location.
6396         * tree-pretty-print.c (percent_K_format): Likewise.
6397
6398 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6399
6400         Properly apply.
6401         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6402         * config/aarch64/aarch64.c
6403         (aarch64_can_use_per_function_literal_pools_p): New.
6404         (aarch64_use_blocks_for_constant_p): Adjust declaration
6405         and use aarch64_can_use_function_literal_pools_p.
6406         (aarch64_select_rtx_section): Update.
6407
6408 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6409
6410         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6411         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6412         (arm_output_multireg_pop): Likewise.
6413         (output_move_double):  Likewise.
6414         (output_move_quad):  Likewise.
6415         (output_return_instruction): Likewise.
6416         (arm_print_operand): Remove support for %( and %. print modifiers.
6417         (arm_output_shift): Make unified asm.
6418         (arm_declare_function_name): Likewise.
6419         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6420         (ASM_APP_OFF): Adjust.
6421         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6422         (ASM_OUTPUT_REG_POP): Likewise.
6423         * config/arm/arm.md: Adjust uses of %., %(, %)
6424         * config/arm/sync.md: Likewise.
6425         * config/arm/thumb2.md: Likewise.
6426         * config/arm/ldmstm.md: Regenerate.
6427         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6428         * doc/invoke.texi (masm-unified-syntax): Update documentation.
6429
6430 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6431
6432         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6433
6434 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6435
6436         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6437         add OEP_MATCH_SIDE_EFFECTS.
6438         * fold-const.c (operand_equal_p): Update documentation; handle
6439         OEP_MATCH_SIDE_EFFECTS.
6440         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6441         OEP_MATCH_SIDE_EFFECTS.
6442
6443 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
6444             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6445
6446         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6447         * config/aarch64/aarch64-protos.h: Declare.
6448         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6449         frsqrts.
6450         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6451         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6452         code when applicable.
6453         * config/aarch64/aarch64.md: Added enum entries.
6454         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6455
6456 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6457
6458         PR ipa/68057
6459         PR ipa/68220
6460         * ipa-polymorphic-call.c
6461         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6462         issue when offset is out of range.
6463         (contains_type_p): Fix out of range check, clear dynamic flag.
6464
6465 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
6466
6467         * config.gcc (e6500): Fix cpu_is_64bit typo.
6468
6469 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
6470
6471         * tree-sra.c (completely_scalarize): Properly handle negative array
6472         indices using offset_int.
6473
6474 2015-11-06  Richard Biener  <rguenther@suse.de>
6475
6476         * alloc-pool.h (object_allocator::allocate): Default-initialize
6477         object.
6478
6479 2015-11-06  Richard Biener  <rguenther@suse.de>
6480
6481         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6482         * lra.c (init_reg_info): Truncate copy_vec instead of
6483         re-allocating a new one and leaking the old.
6484         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6485         bb_infos vec.
6486         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6487         * postreload-gcse.c (free_mem): Free modify_mem_list and
6488         canon_modify_mem_list.
6489
6490 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
6491
6492         PR tree-optimization/68145
6493         * tree-vect-stmts.c (vectorizable_operation): Fix
6494         determination for booleans.
6495
6496 2015-11-06  Tom de Vries  <tom@codesourcery.com>
6497
6498         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6499         cond_jump, instead of split after last nondebug insn before cond_jump.
6500         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6501         returning.
6502
6503 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6504
6505         PR target/68088
6506         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6507         subregs from accumulator and make sure it's a register.
6508
6509 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
6510
6511         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6512         low part to scalar.
6513         (reduc_uplus_<mode>): Remove.
6514         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6515         loongson_extract_lo_<mode>.
6516         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6517         reduc_smax_<mode>, reduc_smax_<mode>, use vec
6518         loongson_extract_lo_<mode>.
6519         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6520
6521 2015-11-06  Richard Biener  <rguenther@suse.de>
6522
6523         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6524         members.
6525         (vect_stmt_in_region_p): Declare.
6526         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6527         (destroy_bb_vec_info): Likewise.
6528         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6529         (vect_get_and_check_slp_defs): Likewise.
6530         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6531         (vect_slp_bb): Likewise.
6532         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6533         in terms of vect_stmt_in_region_p.
6534         (vect_pattern_recog): Iterate over the BB region.
6535         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6536         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6537         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6538         * config/i386/i386.c: Include gimple-iterator.h.
6539         * config/aarch64/aarch64.c: Likewise.
6540
6541 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
6542
6543         PR rtl-optimization/67753
6544         PR rtl-optimization/64164
6545         * function.c (assign_parm_setup_block): Avoid allocating a
6546         stack slot if we don't have an ABI-reserved one.  Emit the
6547         copy to target_reg in the conversion seq if the copy from
6548         entry_parm is in it too.  Don't use the conversion seq to copy
6549         a PARALLEL to a REG or a CONCAT.
6550
6551 2015-11-06  Richard Biener  <rguenther@suse.de>
6552
6553         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6554         equal_keys.
6555
6556 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
6557             Thomas Schwinge  <thomas@codesourcery.com>
6558             James Norris  <jnorris@codesourcery.com>
6559
6560
6561         * gimplify.c (gimplify_scan_omp_clauses): Add support for
6562         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
6563         (gimplify_adjust_omp_clauses): Likewise.
6564         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6565         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6566         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6567         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6568         (omp_clause_code_name): Likewise.
6569         (walk_tree_1): Handle OMP_CLAUSE_TILE.
6570         * tree.h (OMP_TILE_LIST): New macro.
6571
6572 2015-11-05  Martin Sebor  <msebor@redhat.com>
6573
6574         PR c++/67942
6575         * doc/invoke.texi (-Wplacement-new): Document new option.
6576
6577 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
6578
6579         PR tree-optimization/65963
6580         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6581         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6582
6583 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
6584
6585         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6586         (noce_convert_multiple_sets): Likewise.
6587         (noce_process_if_block): Call them.
6588
6589 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6590
6591         * gimple-fold.c: Include omp-low.h.
6592         (fold_internal_goacc_dim): New.
6593         (gimple_fold_call): Call it.
6594
6595 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6596             Ilya Verbin  <ilya.verbin@intel.com>
6597
6598         * builtin-types.def
6599         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6600         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6601         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6602         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6603         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6604         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6605         (struct cgraph_simd_clone_arg): Adjust comment.
6606         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6607         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
6608         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6609         to GOMP_target_data_ext.
6610         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6611         to GOMP_target_update_ext.
6612         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6613         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6614         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6615         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6616         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6617         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6618         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6619         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6620         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6621         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6622         * tree-core.h (enum omp_clause_schedule_kind): Add
6623         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6624         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6625         OMP_CLAUSE_SCHEDULE_LAST value.
6626         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6627         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6628         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6629         OMP_FOR_CHECK.  Remove comment.
6630         * tree-pretty-print.c (dump_omp_clause): Handle
6631         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6632         Simplify.  Print schedule clause modifiers.
6633         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6634         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6635         cases.
6636         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6637         (omp_default_clause): Tweak for
6638         private/firstprivate/is_device_ptr variables on target
6639         construct and use_device_ptr on target data.
6640         (omp_check_private): Likewise.
6641         (omp_notice_variable): For references check whether what it refers
6642         to has mappable type, rather than the reference itself.
6643         (omp_is_private): Diagnose linear iteration variables on non-simd
6644         constructs.
6645         (omp_no_lastprivate): Return true only for Fortran.
6646         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6647         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6648         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6649         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6650         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
6651         lastprivate and linear when combined with distribute.  Gimplify
6652         variable low-bound for array reduction.  Look through
6653         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6654         reductions.
6655         (gimplify_adjust_omp_clauses_1): For implicit references to
6656         variables with reference type and when not ref to scalar or
6657         ref to pointer, map what they refer to using tofrom and
6658         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6659         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6660         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6661         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
6662         Diagnose the same var on both firstprivate and lastprivate on
6663         distribute construct.
6664         (gimplify_omp_for): Fix up handling of predetermined
6665         lastprivate or linear iter vars when combined with distribute.
6666         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6667         functions.
6668         (gimplify_omp_workshare): Call optimize_target_teams.
6669         * omp-low.c (struct omp_region): Add sched_modifiers field.
6670         (struct omp_for_data): Likewise.
6671         (omp_any_child_fn_dumped): New variable.
6672         (extract_omp_for_data): Fill in sched_modifiers, and mask out
6673         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6674         from sched_kind.
6675         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6676         bits of OMP_CLAUSE_SCHED_KIND.
6677         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6678         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
6679         for array section reductions.
6680         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6681         for distribute parallel for, if there are lastprivate clauses on the
6682         for.
6683         (lower_rec_input_clauses): Handle non-zero low-bound on array
6684         section reductions.
6685         (lower_reduction_clauses): Likewise.
6686         (lower_send_clauses): Look through POINTER_PLUS_EXPR
6687         for array section reductions.
6688         (expand_parallel_call): Use nonmonotonic entrypoints for
6689         nonmonotonic: dynamic/guided.
6690         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6691         child_fn if current_function_decl has assembler name set, but child_fn
6692         does not.  Dump the header and IL of the child function when not in SSA
6693         form.
6694         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
6695         arguments to BUILT_IN_GOMP_TARGET.
6696         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6697         Initialize the extra _looptemp_ clause to fd->loop.n2.
6698         (expand_omp_for): Use nonmonotonic entrypoints for
6699         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
6700         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
6701         again if we have dumped any child functions.
6702         (lower_omp_for_lastprivate): Determine the right count variable
6703         for distribute simd, or distribute parallel for{, simd}.
6704         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6705         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
6706         support.
6707         (simd_clone_clauses_extract): Handle variable step
6708         for references and arguments passed by reference.
6709         (simd_clone_mangle): Mangle ref/uval/val variable steps.
6710         (simd_clone_adjust_argument_types): Handle
6711         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6712         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6713         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6714         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6715         (simd_clone_linear_addend): New function.
6716         (simd_clone_adjust): Handle variable step like similarly
6717         to constant step, use simd_clone_linear_addend to determine
6718         the actual step at runtime.
6719
6720 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6721
6722         * target.def (goacc.dim_limit): New hook.
6723         * targhooks.h (default_goacc_dim_limit): Declare.
6724         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6725         * doc/tm.texi: Rebuilt.
6726         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6727         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6728         (default_goacc_dim_limit): New.
6729         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6730         (nvptx_goacc_dim_limit) New.
6731         (TARGET_GOACC_DIM_LIMIT): Override.
6732         * tree-vrp.c: Include omp-low.h, target.h.
6733         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6734         IFN_GOACC_DIM_POS.
6735
6736 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6737
6738         * tree-vect-generic.c (do_compare): Use -1 for true
6739         result instead of 1.
6740
6741 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6742
6743         * config/aarch64/aarch64.c
6744         (aarch64_can_use_per_function_literal_pools_p): New.
6745         (aarch64_use_blocks_for_constant_p): Adjust declaration
6746         and use aarch64_can_use_function_literal_pools_p.
6747         (aarch64_select_rtx_section): Update.
6748
6749 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6750
6751         * targhooks.c (default_get_mask_mode): Use BLKmode in
6752         case target doesn't support required vector mode.
6753         * stor-layout.c (layout_type); Check for BLKmode.
6754
6755 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6756             Sebastian Pop  <s.pop@samsung.com>
6757
6758         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6759         Remove use of parameter_rename_map.
6760         (copy_def): Remove.
6761         (copy_internal_parameters): Remove.
6762         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6763         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6764         (free_sese_info): Do not free parameter_rename_map.
6765         (set_rename): Do not use parameter_rename_map.
6766         (rename_uses): Update call to set_rename.
6767         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6768         * sese.h (parameter_rename_map_t): Remove.
6769         (struct sese_info_t): Remove field parameter_rename_map.
6770
6771 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6772             Sebastian Pop  <s.pop@samsung.com>
6773
6774         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6775         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6776         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6777         anonymous namespace.
6778         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6779         (isl_id_for_pbb): Use a buffer of size 10.
6780         (isl_id_for_ssa_name): Same.
6781         * sese.c (set_rename): Add more dumps.
6782
6783 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6784
6785         * omp-low.c (struct omp_context): Remove reduction_map field.
6786         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6787         (new_omp_context, delete_omp_context, scan_omp_target): Remove
6788         reduction_map handling.
6789         (lower_omp_target): Remove obsolete openacc reduction handling.
6790
6791 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6792
6793         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6794
6795 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6796             Cesar Philippidis  <cesar@codesourcery.com>
6797
6798         * config/nvptx/nvptx.c: Include gimple headers.
6799         (worker_red_size, worker_red_align, worker_red_name,
6800         worker_red_sym): New.
6801         (nvptx_option_override): Initialize worker reduction buffer.
6802         (nvptx_file_end): Write out worker reduction buffer var.
6803         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6804         nvptx_expand_cmp_swap): New builtin expanders.
6805         (enum nvptx_builtins): New.
6806         (nvptx_builtin_decls): New.
6807         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6808         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6809         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6810         nvptx_lockless_update): New helpers.
6811         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6812         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6813         (nvptx_goacc_reduction): New.
6814         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6815         TARGET_BUILTIN_DECL): Override.
6816         (TARGET_GOACC_REDUCTION): Override.
6817
6818 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6819             Cesar Philippidis  <cesar@codesourcery.com>
6820
6821         * internal-fn.def (GOACC_REDUCTION): New.
6822         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6823         * internal-fn.c (expand_GOACC_REDUCTION): New.
6824         * target.def (goacc.reduction): New OpenACC hook.
6825         * targhooks.h (default_goacc_reduction): Declare.
6826         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6827         * doc/tm.texi: Rebuilt.
6828         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6829         scan_sharing_clauses): Remove oacc reduction handling here.
6830         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6831         (oacc_lower_reduction_var_helper): Delete.
6832         (lower_oacc_reductions): New.
6833         (lower_reduction_clauses): Don't handle OpenACC reductions here.
6834         (lower_oacc_head_tail): Call lower_oacc_reductions.
6835         (oacc_gimple_assign, oacc_init_reduction_array,
6836         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6837         oacc_process_reduction_data): Delete.
6838         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
6839         dummy OpenACC gang reduction for reductions at outer level.
6840         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6841         (default_goacc_reduction): New.
6842         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6843
6844 2015-11-04  Martin Liska  <mliska@suse.cz>
6845
6846         * cgraphunit.c (cgraph_node::expand_thunk): Call
6847         allocate_struct_function before init_function_start.
6848         (cgraph_node::expand): Use push_cfun and pop_cfun.
6849         * config/i386/i386.c (ix86_code_end): Call
6850         allocate_struct_function before init_function_start.
6851         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6852         * function.c (init_function_start): Move preamble to all
6853         callers.
6854         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6855         (execute_one_pass): Handle newly added TODO_discard_function.
6856         (execute_pass_list_1): Terminate if cfun equals to NULL.
6857         (execute_pass_list): Do not push and pop cfun, expect that
6858         cfun is set.
6859         * tree-pass.h (TODO_discard_function): Define.
6860
6861 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
6862
6863         * cfganal.c (inverted_post_order_compute): Remove conditional
6864         compilation, use flag_checking.
6865         * config.in: Regenerate.
6866         * configure: Regenerate.
6867         * configure.ac: Remove ENABLE_CHECKING.
6868         * genconditions.c: Do not #undef ENABLE_CHECKING.
6869         * sese.h (bb_in_region): Comment out broken check.
6870         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6871         conditional compilation, use flag_checking.
6872
6873 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6874
6875         PR tree-optimization/67742
6876         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6877         field.
6878         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6879         (create_variable_info_for_1): Add and handle handle_param parameter.
6880         Add restrict handling.
6881         (create_variable_info_for): Call create_variable_info_for_1 with extra
6882         arg.
6883         (make_param_constraints): Drop restrict_name parameter.  Ignore
6884         vi->only_restrict_pointers.
6885         (intra_create_variable_infos): Call create_variable_info_for_1 with
6886         extra arg.  Remove restrict handling.  Call make_param_constraints with
6887         one fewer arg.
6888
6889 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6890
6891         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6892         variable.
6893
6894 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6895
6896         * config/arm/coff.h: Remove.
6897
6898 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6899
6900         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6901         check for aggregate types and beef up comment for mode check.
6902
6903 2015-11-03  Richard Biener  <rguenther@suse.de>
6904
6905         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6906         data references here.
6907         * tree-vect-loop.c: Include cgraph.h.
6908         (vect_analyze_loop_2): Collect data references here.
6909         * tree-vect-slp.c (find_bb_location): Inline ...
6910         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
6911         Factor in vect_slp_transform_bb.
6912         (vect_slp_transform_bb): Removed.
6913         (vect_slp_analyze_bb_1): Collect data references here.
6914         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6915         vect_slp_bb.
6916         * tree-vectorizer.h (vect_slp_bb): Declare.
6917         (vect_slp_analyze_bb): Remove.
6918         (vect_slp_transform_bb): Remove.
6919         (find_bb_location): Remove.
6920         (vect_analyze_data_refs): Remove stmt count reference parameter.
6921
6922 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
6923
6924         * multiple_target.c (create_dispatcher_calls): Add target check
6925         on ifunc.
6926         (create_target_clone): Change assembler name for versioned declarations.
6927
6928 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
6929             Chung-Lin Tang  <cltang@codesourcery.com>
6930
6931         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6932         * omp-low.c (check_omp_nesting_restrictions): Allow
6933         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6934         contexts.
6935
6936 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
6937
6938         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6939         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6940         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6941         builtin.
6942         (vmulxq_f32): Likewise.
6943         (vmulx_f64): New.
6944         (vmulxq_f64): Rewrite to call fmulx builtin.
6945         (vmulxs_f32): Likewise.
6946         (vmulxd_f64): Likewise.
6947         (vmulx_lane_f32): Remove.
6948         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6949
6950 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
6951
6952         * config/aarch64/aarch64.md (*movhf_aarch64): Use
6953         aarch64_reg_or_fp_zero for second operand.
6954
6955 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
6956
6957         * gimple-expr.c: Include hash-set.h and rtl.h.
6958         (mark_addressable_queue): New var.
6959         (mark_addressable): Factor actual marking into...
6960         (mark_addressable_1): ... this.  Queue it up during expand.
6961         (mark_addressable_2): New.
6962         (flush_mark_addressable_queue): New.
6963         * gimple-expr.h (flush_mark_addressable_queue): Declare.
6964         * cfgexpand.c: Include gimple-expr.h.
6965         (pass_expand::execute): Flush mark_addressable queue.
6966
6967 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
6968
6969         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6970         bb_no_side_effects_p tests...
6971         (tree_ssa_ifcombine_bb): ... here.
6972
6973         PR tree-optimization/68083
6974         * tree-ssa-ifcombine.c: Include tree-ssa.h.
6975         (bb_no_side_effects_p): Test for undefined uses too.
6976         * tree-ssa.c (gimple_uses_undefined_value_p): New.
6977         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6978
6979 2015-11-02  Jeff Law <law@redhat.com>
6980
6981         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6982         cases where the loop latch edge is in the middle of an FSM path.
6983
6984 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6985
6986         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6987         (make_param_constraints): ... this.  Add and handle restrict_name
6988         parameter.  Handle is_full_var case.
6989         (intra_create_variable_infos): Use make_param_constraints.
6990
6991 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6992
6993         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6994         make_copy_constraint call with make_constraint_from call.
6995
6996 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
6997
6998         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6999         PIE executables.
7000
7001 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7002
7003         * builtins.h (fold_fma): Move to fold-const-call.h.
7004         * builtins.c: Include fold-const-call.h.
7005         (mathfn_built_in_2): New function, split out from...
7006         (mathfn_built_in_1): ...here.
7007         (do_real_to_int_conversion, fold_const_builtin_pow)
7008         (fold_const_builtin_logb, fold_const_builtin_significand)
7009         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7010         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7011         (fold_builtin_sincos): Use fold_const_call to handle constants.
7012         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7013         checks for ERROR_MARK.  Use fold_const_call to handle constant
7014         folds for math functions.
7015         (fold_fma): Move to fold-const-call.c.
7016         * fold-const.c: Include fold-const-call.h.
7017         * Makefile.in (OBJS): Add fold-const-call.o.
7018         (PLUGIN_HEADERS): Add fold-const-call.h.
7019         * realmpfr.h (real_from_mpfr): Allow the format to be specified
7020         directly.
7021         * realmpfr.c (real_from_mpfr): Likewise.
7022         * fold-const-call.h, fold-const-call.c: New files.
7023
7024 2015-11-02  Julian Brown  <julian@codesourcery.com>
7025
7026         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7027         brackets and semicolon.
7028
7029 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
7030
7031         Revert:
7032         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7033
7034         PR tree-optimization/65963
7035         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7036         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7037
7038 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7039
7040         PR middle-end/68166
7041         * fold-const.c: Include "md5.h".
7042
7043 2015-11-01  Jeff Law <law@redhat.com>
7044
7045         * vmsdbgout.c: Revert unused header file reduction patch.
7046
7047         * config/mcore/mcore.c: Include regs.h.
7048
7049 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7050
7051         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7052
7053 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7054
7055         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7056         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7057         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7058
7059 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7060
7061         * ggc-common.c: Restore needed header for checking=release.
7062
7063 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7064
7065         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7066
7067 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7068
7069         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7070         existing varinfo for arguments.
7071
7072 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7073
7074         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7075         create_function_info_for.  Dump constraints generated during
7076         create_function_info_for. Move intra_create_variable_infos call and
7077         function-return-values-escape bit to ...
7078         (create_function_info_for): ... here, and merge
7079         intra_create_variable_infos call with argument loop.  Add and handle
7080         nonlocal_p parameter.
7081
7082 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7083
7084         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7085         updating is alap, and seperated from preceding code.  Make sure
7086         insert_vi_for_tree is seperated from surrounding code.
7087
7088 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7089
7090         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7091
7092 2015-10-30  Jeff Law <law@redhat.com>
7093             Nathan Sidwell  <nathan@acm.org>
7094
7095         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7096         args.
7097         (MOVE_MAX): Set to 8.
7098
7099 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
7100
7101         * cgraph.c: Include context.h for offloading.
7102         * varpool.c: Include context.h and omp-low.h.
7103
7104 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
7105
7106         * rtl.h (contains_symbol_ref_p): Declare.
7107         (SYMBOL_REF_P): Define.
7108         * rtlanal.c (contains_symbol_ref_p: New function.
7109         * lra-constraints.c (contains_symbol_ref_p): Remove.
7110         * var-tracking.c (contains_symbol_ref): Remove.
7111         (track_expr_p): Use contains_symbol_ref_p instead of
7112         contains_symbol_ref.
7113
7114 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7115
7116         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7117         * fold-const.c (get_array_ctor_element_at_index): New.
7118         (fold): Remove binary-search through CONSTRUCTOR, call previous.
7119
7120         * fold-const.h (get_array_ctor_element_at_index): New.
7121
7122 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
7123
7124         * Makefile.in (OBJS): Add multiple_target.o.
7125         * attrib.c (make_attribute): Moved from config/i386/i386.c
7126         * config/i386/i386.c (make_attribute): Deleted.
7127         * multiple_target.c (create_dispatcher_calls): New.
7128         (get_attr_len): Ditto.
7129         (get_attr_str): Ditto.
7130         (separate_attrs): Ditto.
7131         (is_valid_asm_symbol): Ditto.
7132         (create_new_asm_name): Ditto.
7133         (create_target_clone): Ditto.
7134         (expand_target_clones): Ditto.
7135         (ipa_target_clone): Ditto.
7136         (ipa_dispatcher_calls): Ditto.
7137         * passes.def (pass_target_clone): Two new ipa passes.
7138         * tree-pass.h (make_pass_target_clone): Ditto.
7139         * doc/extend.texi (target_clones): New attribute description.
7140
7141 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7142
7143         PR rtl-optimization/68106
7144         * lra-remat.c (input_regno_present_p): Process hard regs
7145         explicitly present in machine description insns.
7146         (call_used_input_regno_present_p): Ditto.
7147         (calculate_gen_cands): Ditto.
7148         (do_remat): Ditto.
7149
7150 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
7151
7152         * config/arm/neon-testgen.ml: Fix comment typo.
7153
7154 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7155
7156         * rtlanal.c (reg_set_p): Expand function comment.
7157
7158 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
7159
7160         * alias.c: Remove unused headers.
7161         * asan.c: Likewise.
7162         * attribs.c: Likewise.
7163         * auto-inc-dec.c: Likewise.
7164         * auto-profile.c: Likewise.
7165         * bb-reorder.c: Likewise.
7166         * bitmap.c: Likewise.
7167         * bt-load.c: Likewise.
7168         * builtins.c: Likewise.
7169         * caller-save.c: Likewise.
7170         * calls.c: Likewise.
7171         * ccmp.c: Likewise.
7172         * cfg.c: Likewise.
7173         * cfganal.c: Likewise.
7174         * cfgbuild.c: Likewise.
7175         * cfgcleanup.c: Likewise.
7176         * cfgexpand.c: Likewise.
7177         * cfghooks.c: Likewise.
7178         * cfgloop.c: Likewise.
7179         * cfgloopanal.c: Likewise.
7180         * cfgloopmanip.c: Likewise.
7181         * cfgrtl.c: Likewise.
7182         * cgraph.c: Likewise.
7183         * cgraphbuild.c: Likewise.
7184         * cgraphclones.c: Likewise.
7185         * cgraphunit.c: Likewise.
7186         * cilk-common.c: Likewise.
7187         * combine-stack-adj.c: Likewise.
7188         * combine.c: Likewise.
7189         * compare-elim.c: Likewise.
7190         * convert.c: Likewise.
7191         * coverage.c: Likewise.
7192         * cppbuiltin.c: Likewise.
7193         * cprop.c: Likewise.
7194         * cse.c: Likewise.
7195         * cselib.c: Likewise.
7196         * data-streamer-in.c: Likewise.
7197         * data-streamer-out.c: Likewise.
7198         * data-streamer.c: Likewise.
7199         * dbxout.c: Likewise.
7200         * dce.c: Likewise.
7201         * ddg.c: Likewise.
7202         * debug.c: Likewise.
7203         * df-core.c: Likewise.
7204         * df-problems.c: Likewise.
7205         * df-scan.c: Likewise.
7206         * dfp.c: Likewise.
7207         * dojump.c: Likewise.
7208         * dominance.c: Likewise.
7209         * domwalk.c: Likewise.
7210         * double-int.c: Likewise.
7211         * dse.c: Likewise.
7212         * dumpfile.c: Likewise.
7213         * dwarf2asm.c: Likewise.
7214         * dwarf2cfi.c: Likewise.
7215         * dwarf2out.c: Likewise.
7216         * emit-rtl.c: Likewise.
7217         * except.c: Likewise.
7218         * explow.c: Likewise.
7219         * expmed.c: Likewise.
7220         * expr.c: Likewise.
7221         * final.c: Likewise.
7222         * fixed-value.c: Likewise.
7223         * fold-const.c: Likewise.
7224         * function.c: Likewise.
7225         * fwprop.c: Likewise.
7226         * gcse.c: Likewise.
7227         * generic-match-head.c: Likewise.
7228         * ggc-common.c: Likewise.
7229         * gimple-builder.c: Likewise.
7230         * gimple-expr.c: Likewise.
7231         * gimple-fold.c: Likewise.
7232         * gimple-iterator.c: Likewise.
7233         * gimple-low.c: Likewise.
7234         * gimple-match-head.c: Likewise.
7235         * gimple-pretty-print.c: Likewise.
7236         * gimple-ssa-isolate-paths.c: Likewise.
7237         * gimple-ssa-strength-reduction.c: Likewise.
7238         * gimple-streamer-in.c: Likewise.
7239         * gimple-streamer-out.c: Likewise.
7240         * gimple-walk.c: Likewise.
7241         * gimple.c: Likewise.
7242         * gimplify-me.c: Likewise.
7243         * gimplify.c: Likewise.
7244         * godump.c: Likewise.
7245         * graph.c: Likewise.
7246         * graphds.c: Likewise.
7247         * haifa-sched.c: Likewise.
7248         * hw-doloop.c: Likewise.
7249         * ifcvt.c: Likewise.
7250         * init-regs.c: Likewise.
7251         * internal-fn.c: Likewise.
7252         * ipa-chkp.c: Likewise.
7253         * ipa-comdats.c: Likewise.
7254         * ipa-cp.c: Likewise.
7255         * ipa-devirt.c: Likewise.
7256         * ipa-icf-gimple.c: Likewise.
7257         * ipa-icf.c: Likewise.
7258         * ipa-inline-analysis.c: Likewise.
7259         * ipa-inline-transform.c: Likewise.
7260         * ipa-inline.c: Likewise.
7261         * ipa-polymorphic-call.c: Likewise.
7262         * ipa-profile.c: Likewise.
7263         * ipa-prop.c: Likewise.
7264         * ipa-pure-const.c: Likewise.
7265         * ipa-ref.c: Likewise.
7266         * ipa-reference.c: Likewise.
7267         * ipa-split.c: Likewise.
7268         * ipa-utils.c: Likewise.
7269         * ipa-visibility.c: Likewise.
7270         * ipa.c: Likewise.
7271         * ira-build.c: Likewise.
7272         * ira-color.c: Likewise.
7273         * ira-conflicts.c: Likewise.
7274         * ira-costs.c: Likewise.
7275         * ira-emit.c: Likewise.
7276         * ira-lives.c: Likewise.
7277         * ira.c: Likewise.
7278         * jump.c: Likewise.
7279         * langhooks.c: Likewise.
7280         * lcm.c: Likewise.
7281         * lists.c: Likewise.
7282         * loop-doloop.c: Likewise.
7283         * loop-init.c: Likewise.
7284         * loop-invariant.c: Likewise.
7285         * loop-iv.c: Likewise.
7286         * loop-unroll.c: Likewise.
7287         * lower-subreg.c: Likewise.
7288         * lra-assigns.c: Likewise.
7289         * lra-coalesce.c: Likewise.
7290         * lra-constraints.c: Likewise.
7291         * lra-eliminations.c: Likewise.
7292         * lra-lives.c: Likewise.
7293         * lra-remat.c: Likewise.
7294         * lra-spills.c: Likewise.
7295         * lra.c: Likewise.
7296         * lto-cgraph.c: Likewise.
7297         * lto-compress.c: Likewise.
7298         * lto-opts.c: Likewise.
7299         * lto-section-in.c: Likewise.
7300         * lto-section-out.c: Likewise.
7301         * lto-streamer-in.c: Likewise.
7302         * lto-streamer-out.c: Likewise.
7303         * lto-streamer.c: Likewise.
7304         * mcf.c: Likewise.
7305         * mode-switching.c: Likewise.
7306         * modulo-sched.c: Likewise.
7307         * optabs.c: Likewise.
7308         * opts-global.c: Likewise.
7309         * passes.c: Likewise.
7310         * plugin.c: Likewise.
7311         * postreload-gcse.c: Likewise.
7312         * postreload.c: Likewise.
7313         * predict.c: Likewise.
7314         * print-tree.c: Likewise.
7315         * profile.c: Likewise.
7316         * real.c: Likewise.
7317         * realmpfr.c: Likewise.
7318         * recog.c: Likewise.
7319         * ree.c: Likewise.
7320         * reg-stack.c: Likewise.
7321         * regcprop.c: Likewise.
7322         * reginfo.c: Likewise.
7323         * regrename.c: Likewise.
7324         * regstat.c: Likewise.
7325         * reload.c: Likewise.
7326         * reload1.c: Likewise.
7327         * reorg.c: Likewise.
7328         * resource.c: Likewise.
7329         * rtl-chkp.c: Likewise.
7330         * rtl-error.c: Likewise.
7331         * rtlanal.c: Likewise.
7332         * rtlhooks.c: Likewise.
7333         * sanopt.c: Likewise.
7334         * sched-deps.c: Likewise.
7335         * sched-ebb.c: Likewise.
7336         * sched-rgn.c: Likewise.
7337         * sdbout.c: Likewise.
7338         * sel-sched-dump.c: Likewise.
7339         * sel-sched-ir.c: Likewise.
7340         * sel-sched.c: Likewise.
7341         * sese.c: Likewise.
7342         * shrink-wrap.c: Likewise.
7343         * simplify-rtx.c: Likewise.
7344         * stack-ptr-mod.c: Likewise.
7345         * statistics.c: Likewise.
7346         * stmt.c: Likewise.
7347         * stor-layout.c: Likewise.
7348         * store-motion.c: Likewise.
7349         * stringpool.c: Likewise.
7350         * symtab.c: Likewise.
7351         * target-globals.c: Likewise.
7352         * targhooks.c: Likewise.
7353         * toplev.c: Likewise.
7354         * tracer.c: Likewise.
7355         * trans-mem.c: Likewise.
7356         * tree-affine.c: Likewise.
7357         * tree-call-cdce.c: Likewise.
7358         * tree-cfg.c: Likewise.
7359         * tree-cfgcleanup.c: Likewise.
7360         * tree-chkp-opt.c: Likewise.
7361         * tree-chkp.c: Likewise.
7362         * tree-chrec.c: Likewise.
7363         * tree-complex.c: Likewise.
7364         * tree-data-ref.c: Likewise.
7365         * tree-dfa.c: Likewise.
7366         * tree-diagnostic.c: Likewise.
7367         * tree-dump.c: Likewise.
7368         * tree-eh.c: Likewise.
7369         * tree-emutls.c: Likewise.
7370         * tree-if-conv.c: Likewise.
7371         * tree-inline.c: Likewise.
7372         * tree-into-ssa.c: Likewise.
7373         * tree-iterator.c: Likewise.
7374         * tree-loop-distribution.c: Likewise.
7375         * tree-nested.c: Likewise.
7376         * tree-nrv.c: Likewise.
7377         * tree-object-size.c: Likewise.
7378         * tree-outof-ssa.c: Likewise.
7379         * tree-parloops.c: Likewise.
7380         * tree-phinodes.c: Likewise.
7381         * tree-predcom.c: Likewise.
7382         * tree-pretty-print.c: Likewise.
7383         * tree-profile.c: Likewise.
7384         * tree-scalar-evolution.c: Likewise.
7385         * tree-sra.c: Likewise.
7386         * tree-ssa-address.c: Likewise.
7387         * tree-ssa-alias.c: Likewise.
7388         * tree-ssa-ccp.c: Likewise.
7389         * tree-ssa-coalesce.c: Likewise.
7390         * tree-ssa-copy.c: Likewise.
7391         * tree-ssa-dce.c: Likewise.
7392         * tree-ssa-dse.c: Likewise.
7393         * tree-ssa-forwprop.c: Likewise.
7394         * tree-ssa-ifcombine.c: Likewise.
7395         * tree-ssa-live.c: Likewise.
7396         * tree-ssa-loop-ch.c: Likewise.
7397         * tree-ssa-loop-im.c: Likewise.
7398         * tree-ssa-loop-ivcanon.c: Likewise.
7399         * tree-ssa-loop-ivopts.c: Likewise.
7400         * tree-ssa-loop-manip.c: Likewise.
7401         * tree-ssa-loop-niter.c: Likewise.
7402         * tree-ssa-loop-prefetch.c: Likewise.
7403         * tree-ssa-loop-unswitch.c: Likewise.
7404         * tree-ssa-loop.c: Likewise.
7405         * tree-ssa-math-opts.c: Likewise.
7406         * tree-ssa-operands.c: Likewise.
7407         * tree-ssa-phiopt.c: Likewise.
7408         * tree-ssa-phiprop.c: Likewise.
7409         * tree-ssa-pre.c: Likewise.
7410         * tree-ssa-propagate.c: Likewise.
7411         * tree-ssa-reassoc.c: Likewise.
7412         * tree-ssa-scopedtables.c: Likewise.
7413         * tree-ssa-sink.c: Likewise.
7414         * tree-ssa-strlen.c: Likewise.
7415         * tree-ssa-structalias.c: Likewise.
7416         * tree-ssa-tail-merge.c: Likewise.
7417         * tree-ssa-ter.c: Likewise.
7418         * tree-ssa-threadupdate.c: Likewise.
7419         * tree-ssa-uncprop.c: Likewise.
7420         * tree-ssa-uninit.c: Likewise.
7421         * tree-ssa.c: Likewise.
7422         * tree-ssanames.c: Likewise.
7423         * tree-stdarg.c: Likewise.
7424         * tree-streamer-in.c: Likewise.
7425         * tree-streamer-out.c: Likewise.
7426         * tree-streamer.c: Likewise.
7427         * tree-switch-conversion.c: Likewise.
7428         * tree-tailcall.c: Likewise.
7429         * tree-vect-data-refs.c: Likewise.
7430         * tree-vect-generic.c: Likewise.
7431         * tree-vect-loop-manip.c: Likewise.
7432         * tree-vect-loop.c: Likewise.
7433         * tree-vect-patterns.c: Likewise.
7434         * tree-vect-slp.c: Likewise.
7435         * tree-vect-stmts.c: Likewise.
7436         * tree-vectorizer.c: Likewise.
7437         * tree-vrp.c: Likewise.
7438         * tree.c: Likewise.
7439         * tsan.c: Likewise.
7440         * ubsan.c: Likewise.
7441         * value-prof.c: Likewise.
7442         * var-tracking.c: Likewise.
7443         * varasm.c: Likewise.
7444         * varpool.c: Likewise.
7445         * vmsdbgout.c: Likewise.
7446         * vtable-verify.c: Likewise.
7447         * web.c: Likewise.
7448         * wide-int-print.cc: Likewise.
7449         * wide-int.cc: Likewise.
7450         * xcoffout.c: Likewise.
7451
7452 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
7453
7454         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7455         between pass numbering and execution order.
7456
7457 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7458
7459         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7460         check for dependencies.
7461
7462 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7463
7464         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7465         CDI_DOMINATORS.
7466
7467 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7468
7469         * real.h (format_helper): New.
7470         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7471         (real_from_target, real_nan, real_2expN, real_value_truncate)
7472         (significand_size, real_from_string2, exact_real_inverse)
7473         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7474         (real_round, real_isinteger, real_from_integer): Replace
7475         machine_mode arguments with format_helper arguments.
7476         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7477         (real_from_integer, real_nan, real_2expN, real_convert)
7478         (real_value_truncate, exact_real_truncate, real_to_target)
7479         (real_from_target, significand_size, real_powi, real_trunc)
7480         (real_floor, real_ceil, real_round, real_isinteger): Replace
7481         machine_mode arguments with format_helper arguments.
7482         (real_to_target_fmt, real_from_target_fmt): Delete.
7483         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7484         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7485         argument with real_format.
7486         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7487
7488 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7489
7490         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7491         (fixed_to_decimal, fixed_convert_from_real)
7492         (real_convert_from_fixed): Fix mode arguments to real_2expN.
7493
7494 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7495
7496         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7497         SCALAR_FLOAT_MODE_P.
7498
7499 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7500
7501         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7502         (completely_scalarize): Comment zero-length arrays.
7503         (get_access_replacement): Correct comment re. precondition.
7504
7505 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7506
7507         * config/i386/i386.c (get_builtin_code_for_version): Set priority
7508         for PROCESSOR_ZNVER1.
7509         (enum processor_model): Add M_AMDFAM17H_znver1.
7510         (struct arch_names_table): Likewise.
7511         * doc/extend.texi: ADD znver1.
7512
7513 2015-10-30  Richard Biener  <rguenther@suse.de>
7514
7515         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7516         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
7517         zeros to be folded to VECTOR_CSTs.
7518         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7519         * fold-const.c (fold): Use build_vector_from_ctor.
7520
7521 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
7522
7523         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7524         "mov %0.h[0], %1.h[0] to "neon_move".
7525         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7526         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7527         "mov_imm".
7528         (*cmovsi_insn_uxtw): Likewise.
7529
7530 2015-10-30  Tom de Vries  <tom@codesourcery.com>
7531
7532         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7533         unsigned, and initialize, and use initial value instead of hardcoded
7534         constant.  Add generic constraints dumping section.  Don't dump global
7535         initializers constraints dumping section if empty.  Don't update
7536         variable from if unused.
7537
7538 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7539
7540         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7541         flag_checking and/or CHECKING_P to eliminate conditional compilation
7542         on ENABLE_CHECKING.
7543         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7544         * config/bfin/bfin.c (hwloop_optimize): Likewise.
7545         * config/i386/i386.c (ix86_print_operand_address): Likewise.
7546         (output_387_binary_op): Likewise.
7547         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7548         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7549         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7550         Likewise.
7551         * config/rs6000/rs6000.h: Likewise.
7552         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7553
7554 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7555
7556         * config/sh/sh.opt (mfdpic): Add missing period.
7557
7558 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7559
7560         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7561         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7562         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7563         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7564         mcore_base_register_rtx_p, mcore_legitimate_index_p,
7565         mcore_legitimate_address_p): New functions.
7566         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7567
7568 2015-10-29  Jeff Law  <law@redhat.com>
7569
7570         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7571         method.
7572         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7573         * tree-ssa-threadedge.c
7574         (record_temporary_equivalences_from_stmts_at_dest): Remove
7575         backedge_seen argument and associated code which invalidated
7576         equivalences based on the value of that argument.
7577         (thread_through_normal_block): Corresponding changes.
7578
7579 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7580
7581         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7582         function earlier in the file.
7583         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7584         df_regs_ever_live_p.
7585
7586 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7587
7588         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7589         by ignoring it.
7590
7591 2015-10-29  Richard Henderson  <rth@redhat.com>
7592
7593         PR target/68124
7594         PR rtl-opt/67609
7595         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7596         sse check to the exact conditions of PR 67609.
7597
7598 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7599
7600         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7601         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7602         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7603         of the traditional names that TFmode uses for handling IEEE
7604         extended double. If -mfloat128, add KFmode functions for all of
7605         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7606         make TFmode use the same emulation functions as KFmode.
7607         (init_float128_ibm): Likewise.
7608         (init_float128_ieee): Likewise.
7609         (rs6000_generate_compare): For IEEE 128-bit floating point
7610         comparisons, call the unordered comparison function instead of the
7611         ordered comparison function.
7612         (rs6000_expand_float128_convert): Deal with operands that are
7613         memory operands. Restructure the code to use a switch statement on
7614         the mode. Add support for TFmode defaulting to either IBM extended
7615         double or IEEE 128-bit floating point. If the underlying types are
7616         the same, use a move instead of a conversion function.
7617         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7618         use for IEEE 128-bit floating point constants with -mfloat128.
7619         (rs6000_c_mode_for_suffix): Likewise.
7620         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7621         128-bit floating point with IBM extended double floating point.
7622         (rs6000_invalid_binary_op): Likewise.
7623         (rs6000_gen_le_vsx_permute): On little endian systems generate a
7624         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7625         types that can go in vector registers.
7626         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7627         point types that can go in vector registers on little endian
7628         PowerPC systems.
7629         (mark_swaps_for_removal): Likewise.
7630         (rs6000_analyze_swaps): Likewise.
7631         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7632
7633         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7634         rework IEEE 128-bit floating point insns to deal with TFmode being
7635         either IBM extended double or IEEE 128-bit floating point.
7636         (IFKF): Likewise.
7637         (IBM128): Update iterator to add condition that the mode is IBM
7638         extended double.
7639         (IEEE128): New iterator for IEEE 128-bit floating point.
7640         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7641         (FLOAT128): Likewise.
7642         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7643         iterator.
7644         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7645         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7646         instead of hard coding TFmode or KFmode.
7647         (negtf2_internal): Likewise.
7648         (neg<mode>2_internal): Likewise.
7649         (abs<mode>2): Likewise.
7650         (abstf2_internal): Likewise.
7651         (abs<mode>2_internal): Likewise.
7652         (ieee_128bit_neg<mode>2): Likewise.
7653         (ieee_128bit_neg<mode>2_internal): Likewise.
7654         (ieee_128bit_abs<mode>2): Likewise.
7655         (ieee_128bit_abs<mode>2_internal): Likewise.
7656         (ieee_128bit_nabs<mode>2): Likewise.
7657         (ieee_128bit_nabs<mode>2_internal): Likewise.
7658         (extendiftf2): Add explicit conversions between 128-bit floating
7659         point types. Drop the old conversions that had become unwieldy.
7660         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7661         (extendifkf2): Likewise.
7662         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7663         (extendtfkf2): Likewise.
7664         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7665         (trunciftf2): Likewise.
7666         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7667         (truncifkf2): Likewise.
7668         (float<SDI:mode><IFKF:mode>2): Likewise.
7669         (trunckftf2): Likewise.
7670         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7671         (trunctfif2): Likewise.
7672         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7673         (extenddftf2): Rework 128-bit floating point conversions to
7674         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7675         KFmode expanders into one function.
7676         (extenddf<mode>2): Likewise.
7677         (extenddftf2_fprs): Likewise.
7678         (extenddf<mode>2_fprs): Likewise.
7679         (extenddftf2_vsx): Likewise.
7680         (extenddf<mode>2_vsx): Likewise.
7681         (extendsftf2): Likewise.
7682         (extendsf<mode>2): Likewise.
7683         (trunctfdf2): Likewise.
7684         (trunc<mode>df2): Likewise.
7685         (trunctfdf2_internal1): Likewise.
7686         (trunc<mode>df2_internal1): Likewise.
7687         (trunctfdf2_internal2): Likewise.
7688         (trunc<mode>df2_internal2): Likewise.
7689         (trunctfsf2): Likewise.
7690         (trunc<mode>sf2): Likewise.
7691         (trunctfsf2_fprs): Likewise.
7692         (trunc<mode>sf2_fprs): Likewise.
7693         (floatsit2f): Likewise.
7694         (floatsi<mode>2): Likewise.
7695         (fix_trunc_helper): Likewise.
7696         (fix_trunc_helper<mode>): Likewise.
7697         (fix_trunctfsi2): Likewise.
7698         (fix_trunc<mode>si2): Likewise.
7699         (fix_trunctfsi2_fprs): Likewise.
7700         (fix_trunc<mode>si2_fprs): Likewise.
7701         (fix_trunctfsi2_internal): Likewise.
7702         (fix_trunc<mode>si2_internal): Likewise.
7703         (fix_trunctfdi2): Likewise.
7704         (fix_trunc<mode>di2): Likewise.
7705         (fixuns_trunctf<mode>2): Likewise.
7706         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7707         (floatditf2): Likewise.
7708         (floatdi<mode>2): Likewise.
7709         (floatuns<mode>tf2): Likewise.
7710         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7711         (cmptf_internal1): Use a mode iterator to add support for both
7712         types (IFmode, TFmode) that support IBM extended double.
7713         (cmp<mode>_internal1): Likewise.
7714         (cmptf_internal2): Likewise.
7715         (cmp<mode>_internal2): Likewise.
7716
7717         * doc/extend.texi (Floating Types): Document __ibm128 and
7718         __float128 on PowerPC.
7719
7720         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7721         -mfloat128 and -mno-float128.
7722
7723 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7724
7725         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7726         floating point modes that can go in vector registers.
7727         (MODES_TIEABLE_P): Move tests for vector modes before tests for
7728         scalar floating point, so that IEEE 128-bit floating point that
7729         can go in vector registers bind with vectors and not FP.
7730         (struct rs6000_args): Add libcall field.
7731
7732         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7733         and -mfloat128-software switches.  Replace them with a binary
7734         -mfloat128 switch.
7735         (-mfloat128): Likewise.
7736
7737         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7738         128-bit floating point types in GPRs, even if the appropriate
7739         option enabling the type was not used.
7740         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7741         debugging.
7742         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7743         pre-decrement on IEEE 128-bit floating point values.
7744         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7745         is IEEE 128-bit floating point.
7746         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7747         128-bit floating point types that can go in vector registers.
7748         (rs6000_option_override_internal): Change -mfloat128-none and
7749         -mfloat128-software to -mfloat128, and move code to be near other
7750         VSX option handling.
7751         (rs6000_option_override_internal): Disable -mfloat128 if we don't
7752         have the Altivec ABI.
7753         (rs6000_init_builtins): Don't make TFmode use either IFmode or
7754         KFmode floating point nodes. Instead, have three separate nodes.
7755         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7756         eventually moving the long double default to IEEE 128-bit floating
7757         point.
7758         (rs6000_opt_masks): Add -mfloat128.
7759         (struct rs6000_opt_var): Fix typo in comment.
7760         (init_cumulative_args): Initialize libcall field in
7761         CUMULATIVE_ARGS.
7762         (rs6000_function_arg): Treat library functions as if they had
7763         prototypes to prevent IEEE 128-bit support functions from passing
7764         arguments in both GPRs and vector registers.
7765         (rs6000_arg_partial_bytes): Likewise.
7766
7767         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7768         an option that can be turned on via -mcpu=<xxx>.
7769
7770         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7771         longer used.
7772
7773         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7774         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7775         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7776         double is IBM extended double.
7777
7778         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7779         SUBREGs.
7780
7781 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7782
7783         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7784         * genconditions.c: Define CHECKING_P in the generated code.
7785         * genextract.c: Use flag_checking in insn_extract.
7786         * gengtype.c (main): Remove conditional compilation.
7787         * gengtype.h: Likewise.
7788
7789 2015-10-29  Jeff Law  <law@redhat.com>
7790
7791         PR tree-optimization/67892
7792         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7793         in comment.
7794         (thread_through_normal_block): If we have seen a backedge, then
7795         do nothing.  No longer call find_jump_threads_backwards here.
7796         (thread_across_edge): Use find_jump_threads_backwards to find
7797         jump threads if the old style threader was not successful.
7798         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7799         gsi_last_nondebug_bb.  Return NULL if the block does not end
7800         with a control statement.
7801         (find_jump_threads_backwards): Setup code moved here from
7802         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
7803         single edge argument instead of name & block.
7804         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7805         prototype.
7806
7807 2015-10-29  Tom de Vries  <tom@codesourcery.com>
7808
7809         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7810         types.
7811
7812 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
7813
7814         * omp-low.c (lower_omp_target): Remove unreachable code & merge
7815         ifs.
7816
7817 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
7818
7819         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7820
7821 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7822
7823         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7824         guard_bb0 and use guard_bb throughout.
7825
7826 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7827
7828         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7829         unnecessary label.
7830
7831 2015-10-29  Richard Biener  <rguenther@suse.de>
7832
7833         PR middle-end/68142
7834         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7835         overflow.
7836
7837 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
7838
7839         * alias.c: Reorder #include statements and remove duplicates.
7840         * asan.c: Likewise.
7841         * attribs.c: Likewise.
7842         * auto-inc-dec.c: Likewise.
7843         * auto-profile.c: Likewise.
7844         * bb-reorder.c: Likewise.
7845         * bt-load.c: Likewise.
7846         * builtins.c: Likewise.
7847         * caller-save.c: Likewise.
7848         * calls.c: Likewise.
7849         * ccmp.c: Likewise.
7850         * cfg.c: Likewise.
7851         * cfganal.c: Likewise.
7852         * cfgbuild.c: Likewise.
7853         * cfgcleanup.c: Likewise.
7854         * cfgexpand.c: Likewise.
7855         * cfghooks.c: Likewise.
7856         * cfgloop.c: Likewise.
7857         * cfgloopanal.c: Likewise.
7858         * cfgloopmanip.c: Likewise.
7859         * cfgrtl.c: Likewise.
7860         * cgraph.c: Likewise.
7861         * cgraphbuild.c: Likewise.
7862         * cgraphclones.c: Likewise.
7863         * cgraphunit.c: Likewise.
7864         * cilk-common.c: Likewise.
7865         * combine-stack-adj.c: Likewise.
7866         * combine.c: Likewise.
7867         * compare-elim.c: Likewise.
7868         * convert.c: Likewise.
7869         * coverage.c: Likewise.
7870         * cppbuiltin.c: Likewise.
7871         * cprop.c: Likewise.
7872         * cse.c: Likewise.
7873         * cselib.c: Likewise.
7874         * data-streamer-in.c: Likewise.
7875         * data-streamer-out.c: Likewise.
7876         * data-streamer.c: Likewise.
7877         * dbxout.c: Likewise.
7878         * dce.c: Likewise.
7879         * ddg.c: Likewise.
7880         * debug.c: Likewise.
7881         * df-core.c: Likewise.
7882         * df-problems.c: Likewise.
7883         * df-scan.c: Likewise.
7884         * dfp.c: Likewise.
7885         * dojump.c: Likewise.
7886         * dominance.c: Likewise.
7887         * double-int.c: Likewise.
7888         * dse.c: Likewise.
7889         * dumpfile.c: Likewise.
7890         * dwarf2asm.c: Likewise.
7891         * dwarf2cfi.c: Likewise.
7892         * dwarf2out.c: Likewise.
7893         * emit-rtl.c: Likewise.
7894         * except.c: Likewise.
7895         * explow.c: Likewise.
7896         * expmed.c: Likewise.
7897         * expr.c: Likewise.
7898         * final.c: Likewise.
7899         * fixed-value.c: Likewise.
7900         * fold-const.c: Likewise.
7901         * function.c: Likewise.
7902         * fwprop.c: Likewise.
7903         * gcse.c: Likewise.
7904         * generic-match-head.c: Likewise.
7905         * ggc-common.c: Likewise.
7906         * gimple-builder.c: Likewise.
7907         * gimple-expr.c: Likewise.
7908         * gimple-fold.c: Likewise.
7909         * gimple-iterator.c: Likewise.
7910         * gimple-low.c: Likewise.
7911         * gimple-match-head.c: Likewise.
7912         * gimple-pretty-print.c: Likewise.
7913         * gimple-ssa-isolate-paths.c: Likewise.
7914         * gimple-ssa-strength-reduction.c: Likewise.
7915         * gimple-streamer-in.c: Likewise.
7916         * gimple-streamer-out.c: Likewise.
7917         * gimple-walk.c: Likewise.
7918         * gimple.c: Likewise.
7919         * gimplify-me.c: Likewise.
7920         * gimplify.c: Likewise.
7921         * godump.c: Likewise.
7922         * graph.c: Likewise.
7923         * graphite-poly.c: Likewise.
7924         * haifa-sched.c: Likewise.
7925         * hw-doloop.c: Likewise.
7926         * ifcvt.c: Likewise.
7927         * incpath.c: Likewise.
7928         * init-regs.c: Likewise.
7929         * internal-fn.c: Likewise.
7930         * ipa-chkp.c: Likewise.
7931         * ipa-comdats.c: Likewise.
7932         * ipa-cp.c: Likewise.
7933         * ipa-devirt.c: Likewise.
7934         * ipa-icf-gimple.c: Likewise.
7935         * ipa-icf.c: Likewise.
7936         * ipa-inline-analysis.c: Likewise.
7937         * ipa-inline-transform.c: Likewise.
7938         * ipa-inline.c: Likewise.
7939         * ipa-polymorphic-call.c: Likewise.
7940         * ipa-profile.c: Likewise.
7941         * ipa-prop.c: Likewise.
7942         * ipa-pure-const.c: Likewise.
7943         * ipa-ref.c: Likewise.
7944         * ipa-reference.c: Likewise.
7945         * ipa-split.c: Likewise.
7946         * ipa-utils.c: Likewise.
7947         * ipa-visibility.c: Likewise.
7948         * ipa.c: Likewise.
7949         * ira-build.c: Likewise.
7950         * ira-color.c: Likewise.
7951         * ira-conflicts.c: Likewise.
7952         * ira-costs.c: Likewise.
7953         * ira-emit.c: Likewise.
7954         * ira-lives.c: Likewise.
7955         * ira.c: Likewise.
7956         * jump.c: Likewise.
7957         * langhooks.c: Likewise.
7958         * lcm.c: Likewise.
7959         * lists.c: Likewise.
7960         * loop-doloop.c: Likewise.
7961         * loop-init.c: Likewise.
7962         * loop-invariant.c: Likewise.
7963         * loop-iv.c: Likewise.
7964         * loop-unroll.c: Likewise.
7965         * lower-subreg.c: Likewise.
7966         * lra-assigns.c: Likewise.
7967         * lra-coalesce.c: Likewise.
7968         * lra-constraints.c: Likewise.
7969         * lra-eliminations.c: Likewise.
7970         * lra-lives.c: Likewise.
7971         * lra-remat.c: Likewise.
7972         * lra-spills.c: Likewise.
7973         * lra.c: Likewise.
7974         * lto-cgraph.c: Likewise.
7975         * lto-compress.c: Likewise.
7976         * lto-opts.c: Likewise.
7977         * lto-section-in.c: Likewise.
7978         * lto-section-out.c: Likewise.
7979         * lto-streamer-in.c: Likewise.
7980         * lto-streamer-out.c: Likewise.
7981         * lto-streamer.c: Likewise.
7982         * mode-switching.c: Likewise.
7983         * modulo-sched.c: Likewise.
7984         * omp-low.c: Likewise.
7985         * optabs.c: Likewise.
7986         * opts-global.c: Likewise.
7987         * passes.c: Likewise.
7988         * plugin.c: Likewise.
7989         * postreload-gcse.c: Likewise.
7990         * postreload.c: Likewise.
7991         * predict.c: Likewise.
7992         * print-tree.c: Likewise.
7993         * profile.c: Likewise.
7994         * real.c: Likewise.
7995         * realmpfr.c: Likewise.
7996         * recog.c: Likewise.
7997         * ree.c: Likewise.
7998         * reg-stack.c: Likewise.
7999         * regcprop.c: Likewise.
8000         * reginfo.c: Likewise.
8001         * regrename.c: Likewise.
8002         * regstat.c: Likewise.
8003         * reload.c: Likewise.
8004         * reload1.c: Likewise.
8005         * reorg.c: Likewise.
8006         * resource.c: Likewise.
8007         * rtl-chkp.c: Likewise.
8008         * rtl-error.c: Likewise.
8009         * rtlanal.c: Likewise.
8010         * rtlhooks.c: Likewise.
8011         * sanopt.c: Likewise.
8012         * sched-deps.c: Likewise.
8013         * sched-ebb.c: Likewise.
8014         * sched-rgn.c: Likewise.
8015         * sese.c: Likewise.
8016         * shrink-wrap.c: Likewise.
8017         * simplify-rtx.c: Likewise.
8018         * stack-ptr-mod.c: Likewise.
8019         * statistics.c: Likewise.
8020         * stmt.c: Likewise.
8021         * stor-layout.c: Likewise.
8022         * store-motion.c: Likewise.
8023         * stringpool.c: Likewise.
8024         * symtab.c: Likewise.
8025         * target-globals.c: Likewise.
8026         * targhooks.c: Likewise.
8027         * toplev.c: Likewise.
8028         * tracer.c: Likewise.
8029         * trans-mem.c: Likewise.
8030         * tree-affine.c: Likewise.
8031         * tree-call-cdce.c: Likewise.
8032         * tree-cfg.c: Likewise.
8033         * tree-cfgcleanup.c: Likewise.
8034         * tree-chkp-opt.c: Likewise.
8035         * tree-chkp.c: Likewise.
8036         * tree-chrec.c: Likewise.
8037         * tree-complex.c: Likewise.
8038         * tree-data-ref.c: Likewise.
8039         * tree-dfa.c: Likewise.
8040         * tree-diagnostic.c: Likewise.
8041         * tree-dump.c: Likewise.
8042         * tree-eh.c: Likewise.
8043         * tree-emutls.c: Likewise.
8044         * tree-if-conv.c: Likewise.
8045         * tree-inline.c: Likewise.
8046         * tree-into-ssa.c: Likewise.
8047         * tree-iterator.c: Likewise.
8048         * tree-loop-distribution.c: Likewise.
8049         * tree-nested.c: Likewise.
8050         * tree-nrv.c: Likewise.
8051         * tree-object-size.c: Likewise.
8052         * tree-outof-ssa.c: Likewise.
8053         * tree-parloops.c: Likewise.
8054         * tree-phinodes.c: Likewise.
8055         * tree-predcom.c: Likewise.
8056         * tree-pretty-print.c: Likewise.
8057         * tree-profile.c: Likewise.
8058         * tree-scalar-evolution.c: Likewise.
8059         * tree-sra.c: Likewise.
8060         * tree-ssa-address.c: Likewise.
8061         * tree-ssa-alias.c: Likewise.
8062         * tree-ssa-ccp.c: Likewise.
8063         * tree-ssa-coalesce.c: Likewise.
8064         * tree-ssa-copy.c: Likewise.
8065         * tree-ssa-dce.c: Likewise.
8066         * tree-ssa-dom.c: Likewise.
8067         * tree-ssa-dse.c: Likewise.
8068         * tree-ssa-forwprop.c: Likewise.
8069         * tree-ssa-ifcombine.c: Likewise.
8070         * tree-ssa-live.c: Likewise.
8071         * tree-ssa-loop-ch.c: Likewise.
8072         * tree-ssa-loop-im.c: Likewise.
8073         * tree-ssa-loop-ivcanon.c: Likewise.
8074         * tree-ssa-loop-ivopts.c: Likewise.
8075         * tree-ssa-loop-manip.c: Likewise.
8076         * tree-ssa-loop-niter.c: Likewise.
8077         * tree-ssa-loop-prefetch.c: Likewise.
8078         * tree-ssa-loop-unswitch.c: Likewise.
8079         * tree-ssa-loop.c: Likewise.
8080         * tree-ssa-math-opts.c: Likewise.
8081         * tree-ssa-operands.c: Likewise.
8082         * tree-ssa-phiopt.c: Likewise.
8083         * tree-ssa-phiprop.c: Likewise.
8084         * tree-ssa-pre.c: Likewise.
8085         * tree-ssa-propagate.c: Likewise.
8086         * tree-ssa-reassoc.c: Likewise.
8087         * tree-ssa-sccvn.c: Likewise.
8088         * tree-ssa-scopedtables.c: Likewise.
8089         * tree-ssa-sink.c: Likewise.
8090         * tree-ssa-strlen.c: Likewise.
8091         * tree-ssa-structalias.c: Likewise.
8092         * tree-ssa-tail-merge.c: Likewise.
8093         * tree-ssa-ter.c: Likewise.
8094         * tree-ssa-threadedge.c: Likewise.
8095         * tree-ssa-threadupdate.c: Likewise.
8096         * tree-ssa-uncprop.c: Likewise.
8097         * tree-ssa-uninit.c: Likewise.
8098         * tree-ssa.c: Likewise.
8099         * tree-ssanames.c: Likewise.
8100         * tree-stdarg.c: Likewise.
8101         * tree-streamer-in.c: Likewise.
8102         * tree-streamer-out.c: Likewise.
8103         * tree-streamer.c: Likewise.
8104         * tree-switch-conversion.c: Likewise.
8105         * tree-tailcall.c: Likewise.
8106         * tree-vect-data-refs.c: Likewise.
8107         * tree-vect-generic.c: Likewise.
8108         * tree-vect-loop-manip.c: Likewise.
8109         * tree-vect-loop.c: Likewise.
8110         * tree-vect-patterns.c: Likewise.
8111         * tree-vect-slp.c: Likewise.
8112         * tree-vect-stmts.c: Likewise.
8113         * tree-vectorizer.c: Likewise.
8114         * tree-vrp.c: Likewise.
8115         * tree.c: Likewise.
8116         * tsan.c: Likewise.
8117         * ubsan.c: Likewise.
8118         * value-prof.c: Likewise.
8119         * var-tracking.c: Likewise.
8120         * varasm.c: Likewise.
8121         * varpool.c: Likewise.
8122         * vtable-verify.c: Likewise.
8123         * web.c: Likewise.
8124         * wide-int-print.cc: Likewise.
8125         * wide-int.cc: Likewise.
8126         * xcoffout.c: Likewise.
8127
8128 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
8129
8130         * Makefile.in (NO_PIE_CFLAGS): New.
8131         (NO_PIE_FLAG): Likewise.
8132         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8133         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8134         (BUILD_NO_PIE_CFLAGS): Likewise.
8135         (BUILD_NO_PIE_FLAG): Likewise.
8136         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8137         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8138         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8139         $(BUILD_NO_PIE_CFLAGS).
8140         (BUILD_CXXFLAGS): Likewise.
8141         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8142         $(BUILD_NO_PIE_FLAG).
8143         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
8144         (BUILD_NO_PIE_FLAG): Likewise.
8145         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8146         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8147         * configure: Regenerated.
8148
8149 2015-10-29  Richard Biener  <rguenther@suse.de>
8150
8151         PR middle-end/56956
8152         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8153         unsigned conditonal negation to ABS_EXPR.
8154
8155 2015-10-29  Richard Biener  <rguenther@suse.de>
8156
8157         * gimple-match-head.c (gimple_simplify): Remove premature checking
8158         of builtin_decl_implicit of function calls we simplify.
8159
8160 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
8161
8162         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8163         (get_computation_cost_at): Ditto.
8164         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8165         and inv_expr_id.
8166
8167 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8168
8169         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8170         superfluous code.
8171
8172 2015-10-28  Jason Merrill  <jason@redhat.com>
8173
8174         * Makefile.in (TAGS): Include libcpp and libiberty.
8175
8176 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8177
8178         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8179         (extract_omp_for_data): Remove OpenACC special handling of
8180         chunking.
8181
8182         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8183         (struct parallel): Update comment.
8184         (nvptx_reorg): Likewise.
8185         (nvptx_neuter): Cleanup whitespace.
8186
8187 2015-10-28  Richard Henderson  <rth@redhat.com>
8188
8189         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8190
8191 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8192
8193         PR target/67839
8194         * config/avr/predicates.md (low_io_address_operand): Don't
8195         consider MODE when computing upper bound.
8196         (io_address_operand): Likewise.
8197
8198 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
8199
8200         * fold-const.c (operand_equal_p): Do not verify that types are
8201         compatible for MEM_REFs.
8202
8203 2015-10-28  Richard Biener  <rguenther@suse.de>
8204
8205         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8206         in simplifying VEC_COND_EXPR conditions.
8207
8208 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8209
8210         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8211         into vi_next of a full_var.
8212
8213 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8214
8215         * tree-ssa-structalias.c (new_var_info, make_heapvar)
8216         (make_constraint_from_restrict, make_constraint_from_global_restrict)
8217         (create_function_info_for, create_variable_info_for_1)
8218         (create_variable_info_for): Add and handle add_id parameter.
8219         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8220         (init_base_vars): Add extra argument to calls to new_var_info.
8221         (get_vi_for_tree): Add extra argument to call to
8222         create_variable_info_for.
8223         (process_constraint, do_deref, process_all_all_constraints): Add extra
8224         argument to calls to new_scalar_tmp_constraint_exp.
8225         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8226         argument to calls to make_heapvar.
8227         (make_restrict_var_constraints): Add extra argument to call to
8228         make_constraint_from_global_restrict.
8229         (intra_create_variable_infos): Add extra argument to call to
8230         create_variable_info_for_1.
8231         (ipa_pta_execute): Add extra argument to call to
8232         create_function_info_for.
8233
8234 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8235
8236         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8237         (sibcall_value): Likewise.
8238
8239 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8240
8241         * config/nvptx/nvptx.h (struct machine_function): Add
8242         axis_predicate.
8243         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8244         nvptx_expand_oacc_join): Declare.
8245         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8246         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8247         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8248         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8249         UNSPECV_JOINING, UNSPECV_JOIN): New.
8250         (BITS, BITD): New mode iterators.
8251         (br_true_uni, br_false_uni): New.
8252         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8253         (oacc_dim_size, oacc_dim_pos): New.
8254         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8255         (oacc_fork, oacc_join): New.
8256         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8257         (worker_load<mode>, worker_store<mode>): New.
8258         (nvptx_barsync): New.
8259         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8260         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8261         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8262         worker_bcast_sym): New.
8263         (nvptx_option_override): Initialize worker broadcast buffer.
8264         (nvptx_emit_forking, nvptx_emit_joining): New.
8265         (nvptx_init_axis_predicate): New.
8266         (nvptx_declare_function_name): Init axis predicates.
8267         (nvptx_expand_call): Add fork/join markers around routine call.
8268         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8269         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8270         (nvptx_gen_vcast): New.
8271         (struct wcast_data_t): New.
8272         (enum propagate_mask): New.
8273         (nvptx_gen_wcast): New.
8274         (nvptx_print_operand): Add 'S' case.
8275         (struct parallel): New.
8276         (parallel::parallel, parallel::~parallel): New.
8277         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8278         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8279         nvptx_find_par, nvptx_discover_pars): New.
8280         (nvptx_propagate): New.
8281         (vprop_gen, nvptx_vpropagate): New.
8282         (wprop_gen, nvptx_wpropagate): New.
8283         (nvptx_wsync): New.
8284         (nvptx_single, nvptx_skip_par): New.
8285         (nvptx_process_pars, nvptx_neuter_pars): New.
8286         (ntptx_reorg): Split blocks, generate parallel structure, apply
8287         neutering.
8288         (nvptx_cannot_copy_insn_p): New.
8289         (nvptx_file_end): Emit worker broadcast decl.
8290         (nvptx_goacc_fork_join): New.
8291         (TARGET_CANNOT_COPY_INSN_P): Override.
8292         (TARGET_GOACC_FORK_JOIN): Override.
8293
8294 2015-10-28  Richard Biener  <rguenther@suse.de>
8295
8296         * fold-const.c (negate_expr_p): Adjust the division case to
8297         properly avoid introducing undefined overflow.
8298         (fold_negate_expr): Likewise.
8299
8300 2015-10-28  Richard Biener  <rguenther@suse.de>
8301
8302         PR tree-optimization/65962
8303         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8304         Avoid creating loop carried dependences also for outer loops
8305         of the loop a use to replace is in.
8306
8307 2015-10-28  Richard Biener  <rguenther@suse.de>
8308
8309         * common.opt (fchecking): New flag controlling flag_checking.
8310         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8311         * timevar.c (timer::print): Adjust output.
8312         * doc/invoke.texi (fchecking): Document.
8313
8314 2015-10-28  Richard Biener  <rguenther@suse.de>
8315
8316         PR middle-end/68067
8317         * fold-const.c (negate_expr_p): We cannot negate plus or minus
8318         if overflow is not wrapping.  Likewise multiplication unless
8319         one operand is constant and not power of two.
8320         (fold_negate_expr): Adjust accordingly.
8321
8322 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8323
8324         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8325         fields.
8326         (is_oacc_parallel, is_oacc_kernels): New.
8327         (enclosing_target_ctx): May return NULL.
8328         (ctx_in_oacc_kernels_region): New.
8329         (check_oacc_kernel_gwv): New.
8330         (oacc_loop_or_target_p): Delete.
8331         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
8332         operands.  Strip reductions fro kernels.
8333         (scan_omp_target): Don't calculate gwv mask.
8334         (lower_oacc_head_mark, lower_oacc_loop_marker,
8335         lower_oacc_head_tail): New.
8336         (struct oacc_collapse): New.
8337         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8338         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8339         Remove OpenACC handling.
8340         (expand_oacc_for): New.
8341         (expand_omp_for): Call expand_oacc_for.
8342         (lower_omp_for): Call lower_oacc_head_tail.
8343
8344 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
8345
8346         * attribs.c (check_attribute_tables): New function, broken out from...
8347         (init_attributes): Use it.
8348         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8349         gcc_checking_assert and checking_* functions to eliminate
8350         ENABLE_CHECKING conditionals.
8351         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8352         (pass_expand::execute): Likewise.
8353         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8354         * cgraphunit.c (mark_functions_to_output): Likewise.
8355         (cgraph_node::expand_thunk): Likewise.
8356         (symbol_table::compile): Likewise.
8357         * ddg.c (add_cross_iteration_register_deps): Likewise.
8358         (create_ddg_all_sccs): Likewise.
8359         * df-core.c (df_finish_pass, df_analyze): Likewise.
8360         * diagnostic-core.h: Likewise.
8361         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8362         * dominance.c (calculate_dominance_info): Likewise.
8363         * dwarf2out.c (add_AT_die_ref): Likewise.
8364         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8365         (loc_list_from_tree, gen_lexical_block_die): Likewise.
8366         gen_type_die_with_usage, gen_type_die): Likewise.
8367         (dwarf2out_decl): Likewise.
8368         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8369         * except.c (duplicate_eh_regions): Likewise.
8370         * fwprop.c (register_active_defs, update_df_init): Likewise.
8371         (fwprop_init, fwprop_done): Likewise.
8372         (update_uses): Likewise.
8373         * ggc-page.c (ggc_grow): Likewise.
8374         * gimplify.c (gimplify_body): Likewise.
8375         (gimplify_hasher::equal): Likewise.
8376         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8377         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8378         Likewise.
8379         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8380         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8381         * hash-table.h (::find_empty_slot_for_expand): Likewise.
8382         * ifcvt.c (if_convert): Likewise.
8383         * ipa-cp.c (ipcp_propagate_stage): Likewise.
8384         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8385         (odr_type_p, odr_types_equivalent_p): Likewise.
8386         (add_type_duplicate, get_odr_type): Likewise.
8387         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8388         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8389         (sem_item_optimizer::verify_classes): Likewise.
8390         (sem_item_optimizer::traverse_congruence_split): Likewise.
8391         (sem_item_optimizer::checking_verify_classes): New.
8392         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8393         method.
8394         * cfgrtl.c (commit_edge_insertions): Likewise.
8395         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8396         (rtl_flow_call_edges_add): Likewise.
8397         * cgraph.c (symbol_table::create_edge): Likewise.
8398         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8399         * cgraph.h (symtab_node): Likewise.
8400         (symtab_node::checking_verify_symtab_nodes): Define.
8401         (cgraph_node::checking_verify_cgraph_nodes): Define.
8402         * cfghooks.h (checking_verify_flow_info): Define.
8403         * cfgloop.h (checking_verify_loop_structure): Define.
8404         * dominance.h (checking_verify_dominators): Define.
8405         * et-forest.c: Fix comment.
8406         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8407         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8408         ENABLE_CHECKING conditionals.
8409         * ipa-inline-transform.c (save_inline_function_body): Likewise.
8410         * ipa-inline.c (inline_small_functions): Likewise.
8411         (early_inliner): Likewise.
8412         * ipa-inline.h (estimate_edge_growth): Likewise.
8413         * ipa-visibility.c (function_and_variable_visibility): Likewise.
8414         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8415         (ipa_single_use): Likewise.
8416         * ira-int.h: Likewise.
8417         * ira.c (ira): Likewise.
8418         * loop-doloop.c (doloop_optimize_loops): Likewise.
8419         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8420         * loop-invariant.c (move_loop_invariants): Likewise.
8421         * lra-assigns.c (lra_assign): Likewise.
8422         * lra-constraints.c (lra_constraints): Likewise.
8423         * lra-eliminations.c (lra_eliminate): Likewise.
8424         * lra-int.h (struct lra_reg): Likewise.
8425         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8426         (lra_create_live_ranges_1): Likewise.
8427         * lra-remat.c (create_remat_bb_data): Likewise.
8428         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8429         (lra): Likewise.
8430         (check_rtl): Always define. Remove incorrect guard around
8431         extract_constrain_insn call.
8432         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8433         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8434         ENABLE_CHECKING conditionals.
8435         * lto-streamer-out.c (DFS::DFS): Likewise.
8436         (lto_output): Likewise.
8437         * lto-streamer.c (lto_streamer_init): Likewise.
8438         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8439         expand_omp_target, execute_expand_omp): Likewise.
8440         (lower_omp_target): Likewise.
8441         * passes.c (execute_function_todo): Likewise.
8442         (execute_todo, execute_one_pass): Likewise.
8443         (verify_curr_properties): Always define.
8444         * predict.c (tree_estimate_probability: Use flag_checking,
8445         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8446         ENABLE_CHECKING conditionals.
8447         (propagate_freq): Likewise.
8448         * pretty-print.c (pp_format): Likewise.
8449         * real.c (real_to_decimal_for_mode): Likewise.
8450         * recog.c (split_all_insns): Likewise.
8451         * regcprop.c (kill_value_one_regno): Likewise.
8452         (copy_value): Likewise.
8453         (validate_value_data): Define unconditionally.
8454         * reload.c: Fix comment.
8455         * timevar.c: Include options.h
8456         * tree-ssa.h (checking_verify_ssa): Define.
8457         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8458         * sched-deps.c (CHECK): Remove unused macro.
8459         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8460         gcc_checking_assert and checking_* functions to eliminate
8461         ENABLE_CHECKING conditionals.
8462         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8463         * sel-sched.c (struct moveop_static_params): Likewise.
8464         (find_best_reg_for_expr, move_cond_jump): Likewise.
8465         (move_op_orig_expr_not_found): Likewise.
8466         (code_motion_process_successors, move_op): Likewise.
8467         * ssa-iterators.h (first_readonly_imm_use): Likewise.
8468         (next_readonly_imm_use): Likewise.
8469         * store-motion.c (compute_store_table): Likewise.
8470         * symbol-summary.h (function_summary::function_summary): Likewise.
8471         * target.h (cumulative_args_t): Likewise.
8472         (get_cumulative_args, pack_cumulative_args): Likewise.
8473         * timevar.c: (timer::print): Likewise.
8474         * trans-mem.c (ipa_tm_execute): Likewise.
8475         * tree-cfg.c (move_stmt_op): Likewise.
8476         (move_sese_region_to_fn): Likewise.
8477         (gimple_flow_call_edges_add): Likewise.
8478         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8479         Likewise.
8480         * tree-eh.c (remove_unreachable_handlers): Likewise.
8481         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8482         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8483         * tree-into-ssa.c (update_ssa): Likewise.
8484         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8485         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8486         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8487         * tree-predcom.c (suitable_component_p): Likewise.
8488         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8489         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8490         * tree-ssa-live.c (verify_live_on_entry): Likewise.
8491         * tree-ssa-live.h (register_ssa_partition): Likewise.
8492         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8493         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8494         (tree_transform_and_unroll_loop): Likewise.
8495         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8496         * tree-ssa-operands.c (get_expr_operands): Likewise.
8497         * tree-ssa-propagate.c (replace_exp_1): Likewise.
8498         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8499         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8500         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8501         * tree-ssanames.c (release_ssa_name_fn): Likewise.
8502         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8503         * tree-vect-loop-manip.c
8504         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8505         (slpeel_checking_verify_cfg_after_peeling): Likewise.
8506         (vect_do_peeling_for_loop_bound): Likewise.
8507         (vect_do_peeling_for_alignment): Likewise.
8508         * tree-vrp.c (supports_overflow_infinity): Likewise.
8509         (set_value_range): Likewise.
8510         * tree.c (free_lang_data_in_cgraph): Likewise.
8511         * value-prof.c (gimple_remove_histogram_value): Likewise.
8512         (free_hist): Likewise.
8513         * var-tracking.c (canonicalize_values_star): Likewise.
8514         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8515
8516 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8517
8518         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8519         IFN_GOACC_LOOP): New.
8520         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8521         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8522         IFN_UNIQUE_OACC_TAIL_MARK.
8523         (enum ifn_goacc_loop_kind): New.
8524         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8525         IFN_UNIQUE_OACC_JOIN cases.
8526         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8527         (expand_GOACC_LOOP): New.
8528         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8529         * omp-low.c: Include gimple-pretty-print.h.
8530         (struct oacc_loop): New.
8531         (enum oacc_loop_flags): New.
8532         (oacc_thread_numbers): New.
8533         (oacc_xform_loop): New.
8534         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8535         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8536         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8537         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8538         oacc_loop_discovery): New.
8539         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8540         oacc_loop_process): New.
8541         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8542         (execute_oacc_device_lower): Discover & process loops.  Process
8543         internal fns.
8544         * target.def (goacc.fork_join): Change sense of hook, clarify
8545         documentation.
8546         * doc/tm.texi: Regenerated.
8547
8548 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8549
8550         * target-insns.def (oacc_fork, oacc_join): Define.
8551         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8552         (goacc.fork_join): New GOACC hook.
8553         * targhooks.h (default_goacc_fork_join): Declare.
8554         * omp-low.c (default_goacc_forkjoin): New.
8555         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8556         * doc/tm.texi: Regenerate.
8557
8558 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8559
8560         * omp-low.c (oacc_init_rediction_array): New.
8561         (oacc_initialize_reduction_data): Initialize array.
8562
8563 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8564
8565         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8566
8567 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8568
8569         * internal-fn.c (expand_UNIQUE): New.
8570         * internal-fn.h (enum ifn_unique_kind): New.
8571         * internal-fn.def (IFN_UNIQUE): New.
8572         * target-insns.def (unique): Define.
8573         * gimple.h (gimple_call_internal_unique_p): New.
8574         * gimple.c (gimple_call_same_target_p): Check internal fn
8575         uniqueness.
8576         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8577         * tree-ssa-threadedge.c
8578         (record_temporary_equivalences_from_stmts): Likewise.
8579         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8580
8581 2015-10-27  Richard Henderson  <rth@redhat.com>
8582
8583         PR rtl-opt/67609
8584         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8585         narrowing subregs on SSE and MMX registers.
8586         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8587         appear to be sub-words of multi-register pseudos must be rejected.
8588         * doc/tm.texi: Regenerate.
8589
8590 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8591
8592         PR target/68102
8593         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8594         operands[0] is a reg before taking its REGNO in split condition.
8595         (*movdi_aarch64): Likewise.
8596
8597 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8598
8599         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8600         Handle floating point inner modes properly.
8601
8602 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
8603
8604         * tree-vect-looop.c
8605         (vectorizable_live_operation): Change iterator.
8606
8607 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8608             Aditya Kumar  <aditya.k7@samsung.com>
8609
8610         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8611           function to schedule based on isl_schedule_node.
8612         (get_schedule_map_st): New schedule optimizer based on
8613         isl_schedule_node.
8614         (scop_get_domains): New. Return the isl_union_set containing the
8615         domains of all the pbbs.
8616         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8617
8618 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
8619
8620         PR target/67215
8621         * calls.c (prepare_call_address): Don't handle -fno-plt here.
8622         * config/i386/i386.c (ix86_expand_call): Generate indirect call
8623         via GOT for -fno-plt.  Support indirect call via GOT for x32.
8624         * config/i386/predicates.md (sibcall_memory_operand): Allow
8625         GOT memory operand.
8626
8627 2015-10-27  Richard Biener  <rguenther@suse.de>
8628
8629         PR tree-optimization/68104
8630         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8631         strided access check ...
8632         (vect_compute_data_refs_alignment): ... here.
8633
8634 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
8635             Joseph Myers  <joseph@codesourcery.com>
8636             Mark Shinwell  <shinwell@codesourcery.com>
8637             Andrew Stubbs  <ams@codesourcery.com>
8638             Rich Felker <dalias@libc.org>
8639
8640         * config.gcc: Handle --enable-fdpic.
8641         * config/sh/constraints.md (Ccl): New constraint.
8642         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8643         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8644         __SH_FDPIC__.
8645         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8646         library functions.
8647         * config/sh/sh-protos.h (function_symbol_result): New struct.
8648         (function_symbol): Return function_symbol_result.
8649         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8650         declarations.
8651         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8652         target hook.
8653         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8654         (sh_option_override): Force -fPIC if FDPIC is in effect.
8655         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8656         UNSPEC_GOTOFFFUNCDESC cases.
8657         (prepare_move_operands): Use FDPIC initial GOT register for
8658         TLS-related GOT access; inhibit cross-section address offset constants
8659         for FDPIC.
8660         (sh_assemble_integer): New function.
8661         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8662         PC-relative call sites.
8663         (expand_ashiftrt): Adapt invocation of function_symbol.
8664         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8665         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8666         UNSPEC_GOTOFFFUNCDESC.
8667         (legitimize_pic_address): Resolve function symbols to function
8668         descriptors for FDPIC.  Do not use GOT-relative addressing for local
8669         data that may be read-only on FDPIC.
8670         (sh_emit_storesi, sh_emit_storehi): New functions.
8671         (sh_trampoline_init): Generate FDPIC trampolines.
8672         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8673         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8674         (sh_output_mi_thunk): Generate FDPIC call.
8675         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
8676         FDPIC, generate call site labels to use PC-relative addressing rather
8677         than GOT-relative addressing.
8678         (sh_conditional_register_usage): Make PIC register fixed and call used
8679         when FDPIC is in effect.
8680         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8681         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8682         sh_get_fdpic_reg_initial_val): New functions.
8683         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8684         Handle -mfdpic.
8685         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8686         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8687         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8688         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8689         FDPIC_SELF_SPECS.
8690         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8691         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8692         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8693         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8694         constants.
8695         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8696         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8697         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8698         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8699         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8700         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8701         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8702         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8703         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8704         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8705         block_move_real, block_lump_real, block_move_real_i4,
8706         block_lump_real_i4): Add support for FDPIC calls.
8707         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8708         call_value_pop): Adjust for new function_symbol signature.
8709         * config/sh/sh.opt (-mfdpic): New option.
8710         * doc/install.texi (Options specification): Document --enable-fdpic.
8711         * doc/invoke.texi (SH Options): Document -mfdpic.
8712
8713
8714 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
8715
8716         PR tree-optimization/65963
8717         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8718         LSHIFT_EXPRs as equivalent MULT_EXPRs.
8719
8720 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8721
8722         PR target/67929
8723         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8724         * config/arm/constraints.md (Dp): Update callsite.
8725         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8726
8727 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8728
8729         * builtins.c (fold_builtin_load_exponent): Rename to...
8730         (fold_const_builtin_load_exponent): ...this and only handle
8731         constant arguments.
8732         (fold_builtin_2): Update accordingly.
8733         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8734
8735 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8736
8737         * builtins.c (fold_builtin_logb): Rename to...
8738         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8739         (fold_builtin_significand): Rename to...
8740         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8741         (fold_builtin_1): Update accordingly.
8742
8743 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8744
8745         * builtins.c (fold_builtin_fmin_fmax): Delete.
8746         (fold_builtin_2): Handle constant fmin and fmax arguments here.
8747         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8748
8749 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
8750
8751         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8752         for register extension into sign and zero register extension.
8753         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8754         for sign and zero register extension.
8755         (cortexa57_addrcost_table): Likewise.
8756         (xgene1_addrcost_table): Likewise.
8757
8758 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8759
8760         * fold-const.c (fold_minmax): Delete.
8761         (fold_binary_loc): Don't call it.
8762         * match.pd: Add rules previously handled by fold_minmax.
8763
8764 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8765
8766         * builtins.c (fold_builtin_fma): Remove constant handling.
8767         (fold_builtin_3): Handle constant fma arguments here.
8768
8769 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8770
8771         * builtins.c (fold_builtin_fabs): Remove constant handling.
8772         (fold_builtin_abs): Likewise.
8773
8774 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8775
8776         * builtins.c (fold_builtin_copysign): Delete.
8777         (fold_builtin_2): Handle constant copysign arguments here.
8778         * match.pd: Add rules previously handled by fold_builtin_copysign.
8779
8780 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8781
8782         * builtins.c (fold_builtin_signbit): Delete.
8783         (fold_builtin_2): Handle constant signbit arguments here.
8784         * match.pd: Add rules previously handled by fold_builtin_signbit.
8785
8786 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8787
8788         * match.pd: Handle sqrt(x) cmp 0 specially.
8789
8790 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
8791
8792         * tree-vect-generic.c (expand_vector_operations_1): Check
8793         optab type before using it.
8794
8795 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8796
8797         * config/aarch64/aarch64-protos.h
8798         (struct tune_params): Add autoprefetcher_model field.
8799         * config/aarch64/aarch64.c: Include params.h
8800         (generic_tunings): Specify autoprefetcher_model value.
8801         (cortexa53_tunings): Likewise.
8802         (cortexa57_tunings): Likewise.
8803         (cortexa72_tunings): Likewise.
8804         (thunderx_tunings): Likewise.
8805         (xgene1_tunings): Likewise.
8806         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8807         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8808         (aarch64_override_options_internal): Set
8809         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8810
8811 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8812
8813         * builtins.c (fold_builtin_exponent): Delete.
8814         (fold_builtin_2): Handle constant expN arguments here.
8815         * match.pd: Fold expN(logN(x)) -> x.
8816
8817 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8818
8819         * builtins.c (fold_builtin_powi): Delete.
8820         (fold_builtin_2): Handle constant powi arguments here.
8821         * match.pd: Add rules previously handled by fold_builtin_powi.
8822
8823 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8824
8825         * builtins.c (fold_builtin_pow): Delete in favor of...
8826         (fold_const_builtin_pow): ...this new function.  Only handle constant
8827         arguments.
8828         (fold_builtin_2): Update accordingly.
8829         * match.pd: Add rules previously handled by fold_builtin_pow.
8830
8831 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8832
8833         * builtins.c (fold_builtin_hypot): Delete.
8834         (fold_builtin_2): Handle constant hypot arguments here.
8835         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
8836         hypot(x, x) to fabs(x)*sqrt(2).
8837
8838 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8839
8840         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8841         instead of make_ssa_name if not yet in SSA form.
8842
8843 2015-10-27  Richard Biener  <rguenther@suse.de>
8844
8845         * cfg.c (free_edge): Add function argument and use it instead of cfun.
8846         (clear_edges): Likewise.
8847         * cfg.h (clear_edges): Adjust prototype.
8848         * cfgexpand.c (pass_expand::execute): Adjust.
8849         * cfgloop.c (release_recorded_exits): Add function argument and use
8850         it instead of cfun.
8851         * cfgloop.h (release_recorded_exits): Adjust prototype.
8852         (loops_state_satisfies_p): Add overload with function argument.
8853         (loops_state_set): Likewise.
8854         (loops_state_clear): Likewise.
8855         (struct loop_iterator): Add function argument to constructor
8856         and iterator and use it instead of cfun.
8857         (FOR_EACH_LOOP_FN): New macro.
8858         (loop_optimizer_finalize): Add overload with function argument.
8859         * loop-init.c (loop_optimizer_init): Adjust.
8860         (fix_loop_structure): Likewise.
8861         (loop_optimizer_finaliz): Add function argument and use it
8862         instead of cfun.
8863         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8864         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8865         * cgraph.c (release_function_body): Do not push/pop cfun.
8866         * final.c (rest_of_clean_state): Adjust.
8867         * graphite.c (graphite_finalize): Likewise.
8868         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8869         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8870         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8871         (tree_unroll_loops_completely): Likewise.
8872         (pass_complete_unrolli::execute): Likewise.
8873         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8874         Add function argument and use it instead of cfun.
8875         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8876         Adjust prototype.
8877         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8878         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8879         instead of cfun.
8880         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8881         * tree-ssanames.c (fini_ssanames): Add function argument and use it
8882         instead of cfun.
8883         * tree-ssanames.c (fini_ssanames): Adjust prototype.
8884         * tree-vrp.c (execute_vrp): Adjust.
8885         * value-prof.c (free_histograms): Add function argument and use it
8886         instead of cfun.
8887         * value-prof.h (free_histograms): Adjust prototype.
8888
8889 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8890
8891         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8892         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8893         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
8894
8895 2015-10-27  Tom de Vries  <tom@codesourcery.com>
8896
8897         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8898         field_type.
8899
8900 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
8901
8902         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8903         (inv_can_prop_to_addr_use): New function.
8904         (record_use): Call can_prop_to_addr_uses, set the new field.
8905         (get_inv_cost): Count cost if inv can't be propagated into its
8906         address uses.
8907
8908 2015-10-26  Doug Evans  <dje@google.com>
8909
8910         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8911
8912 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
8913
8914         * match.pd (fold_widened_comparison): Apply simplifications to all
8915         integral types.
8916
8917 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
8918
8919         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8920         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8921         * doc/tm.texi: Regenerated.
8922         * reorg.c (dbr_schedule): Use new hook.
8923         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8924
8925 2015-10-26  Jeff Law  <law@redhat.com>
8926
8927         PR tree-optimization/68013
8928         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8929         Make sure the first block in the path is in VISITED_BBs.
8930
8931 2015-10-26  Richard Biener  <rguenther@suse.de>
8932         Dominik Vogt  <vogt@linux.vnet.ibm.com>
8933
8934         PR middle-end/67443
8935         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8936         Properly prune ref->ref for accesses outside of ref.
8937
8938 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8939
8940         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8941         new statements to be inserted if inplace.  Allow calls to have
8942         nonempty sequences.
8943
8944 2015-10-26  Richard Biener  <rguenther@suse.de>
8945
8946         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8947         (do_valueize): New function.
8948         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8949         replace_uses_by.
8950         * tree-ssa-threadedge.c: Remove builtins.h include, include
8951         gimple-fold.h
8952         (fold_assignment_stmt): Remove.
8953         (threadedge_valueize): New function.
8954         (record_temporary_equivalences_from_stmts): Use
8955         gimple_fold_stmt_to_constant_1, note additional cleanup
8956         opportunities.
8957
8958 2015-10-26  Richard Biener  <rguenther@suse.de>
8959
8960         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8961         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8962
8963 2015-10-26  Alan Hayward <alan.hayward@arm.com>
8964
8965         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8966         VEC_COND_EXPR types.
8967
8968 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8969
8970         * auto-inc-dec.c (insert_move_insn_before): Delete.
8971         (attempt_change): Remember to cost the simple move in the
8972         FORM_PRE_ADD and FORM_POST_ADD cases.
8973
8974 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8975
8976         PR target/68091
8977         * config/sh/sh.c (sh_vector_mode_supported_p): Use
8978         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8979
8980 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8981
8982         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8983         factored out of ...
8984         (intra_create_variable_infos): ... here.
8985
8986 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8987
8988         * tree-ssa-structalias.c (intra_create_variable_infos): Add
8989         restrict_pointer_p and recursive_restrict_p variables.
8990
8991 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8992
8993         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8994         get_vi_for_tree call.
8995
8996 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8997
8998         PR middle-end/67989
8999         * optabs.c (expand_atomic_compare_and_swap): Handle case when
9000         ptarget_oval or ptarget_bool are const0_rtx.
9001
9002 2015-10-26  Christian Bruel  <christian.bruel@st.com>
9003
9004         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9005         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9006         * cp/method.c (implicitly_declare_fn): Likewise.
9007         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9008         * java/class.c (add_method_1): Likewise.
9009
9010 2015-10-26  Richard Biener  <rguenther@suse.de>
9011
9012         * alloc-pool.h (base_pool_allocator): Use placement new.
9013         (base_pool_allocator::remove): Likewise.  Compute size outside of
9014         flag_checking.
9015
9016 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9017
9018         * builtins.c (do_real_to_int_conversion): New function.
9019         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9020         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9021         arguments here.
9022         * match.pd: Add rules previously handled by fold_fixed_mathfn
9023         and fold_builtin_int_roundingfn.
9024
9025 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9026
9027         * match.pd: Use macros to define built-in operator lists.
9028
9029 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9030             Richard Biener  <rguenther@suse.de>
9031
9032         * genmatch.c (dt_simplify::gen): Skip captures that are
9033         part of the result.
9034         (parser::parse_expr): Allow captures in results too.
9035         * builtins.c (fold_builtin_cexp): Delete.
9036         (fold_builtin_1): Handle constant cexp arguments here.
9037         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9038
9039 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
9040
9041         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9042         conditional compilation.
9043         (base_pool_allocator::remove): Use flag_checking.
9044
9045 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
9046
9047         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9048
9049         PR middle-end/68079
9050         * dojump.c (do_compare_and_jump): Canonicalize both function and
9051         method types.
9052
9053 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
9054
9055         PR target/68084
9056         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9057         for =@ccae.
9058
9059 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9060
9061         PR ipa/pr67600
9062         * ipa-polymorphic-call.c
9063         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9064         instance offset with offset of outer type.
9065
9066 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9067
9068         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9069
9070 2015-10-23  Caroline Tice  <cmtice@google.com>
9071
9072         (from Richard Biener
9073         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
9074         call to iterative_hash_host_wide_int.
9075
9076 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9077
9078         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9079         Define as yes.
9080
9081 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9082
9083         * tree-vect-generic.c (expand_vector_operations_1): Check
9084         optab exists before use it.
9085
9086 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9087
9088         * tree-vect-generic.c (expand_vector_condition): Avoid
9089         uninitialized variable warning.
9090
9091 2015-10-23  Jeff Law  <law@redhat.com>
9092
9093         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9094         here.  Instead...
9095         (execute_todo): Call it here.
9096         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9097         statistics
9098         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9099
9100 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9101             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9102
9103         * config.gcc (enable_secureplt): Add *-linux*-musl*.
9104
9105 2015-10-23  Jeff Law  <law@redhat.com>
9106
9107         PR tree-optimization/67830
9108         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9109         Explicitly verify the mask has no bits outside the type of
9110         the innermost operands.
9111
9112 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9113             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9114
9115         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9116         (MUSL_DYNAMIC_LINKER64): Define.
9117         (GNU_USER_DYNAMIC_LINKER32): Update.
9118         (GNU_USER_DYNAMIC_LINKER64): Update.
9119         (CHOOSE_DYNAMIC_LINKER): Update.
9120
9121         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9122         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9123         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9124         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9125         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9126         (CHOOSE_DYNAMIC_LINKER): Update.
9127         (INCLUDE_DEFAULTS): Redefine.
9128
9129         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9130
9131 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9132
9133         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9134         comparing addresses.
9135
9136 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9137
9138         * fold-const.c (operand_equal_p): Handle matching of vector
9139         constructors.
9140
9141 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9142
9143         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9144
9145 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
9146             Andrew Pinski  <apinski@cavium.com>
9147
9148         PR rtl-optimization/67736
9149         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9150         of gen_lowpart.
9151
9152 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9153
9154         PR middle-end/68066
9155         * tree.c (build_truth_vector_type): Support BLK mode
9156         returned for boolean vector.
9157
9158 2015-10-23  Alan Hayward <alan.hayward@arm.com>
9159
9160         PR tree-optimization/65947
9161         * tree-vect-loop.c
9162         (vect_is_simple_reduction_1): Find condition reductions.
9163         (vect_model_reduction_cost): Add condition reduction costs.
9164         (get_initial_def_for_reduction): Add condition reduction initial var.
9165         (vect_create_epilog_for_reduction): Add condition reduction epilog.
9166         (vectorizable_reduction): Condition reduction support.
9167         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9168         * doc/sourcebuild.texi (Vector-specific attributes): Document
9169         vect_max_reduc
9170
9171 2015-10-23  Richard Biener  <rguenther@suse.de>
9172
9173         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9174         and builtins.def.
9175
9176 2015-10-23  Richard Biener  <rguenther@suse.de>
9177             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9178
9179         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9180         into (A ^ B) - B to match.pd
9181         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9182
9183         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9184         New simplifier.
9185         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9186         New simplifier.
9187         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9188         New simplifier.
9189         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9190         New simplifier.
9191         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9192         INTEGER_CST@1)): New simplifier.
9193
9194 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9195
9196         * builtins.c (integer_valued_real_p): Move to fold-const.c.
9197         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9198         (fold_builtin_ceil, fold_builtin_round): Delete.
9199         (fold_builtin_1): Handle constant trunc, floor, ceil and round
9200         arguments here.
9201         * convert.c (convert_to_real): Remove narrowing of rounding
9202         functions.
9203         * fold-const.h (integer_valued_real_unary_p)
9204         (integer_valued_real_binary_p, integer_valued_real_call_p)
9205         (integer_valued_real_single_p, integer_valued_real_p): Declare.
9206         * fold-const.c (tree_single_nonnegative_warnv_p): Move
9207         name_registered_for_update_p check to SSA_NAME case statement.
9208         Don't call tree_simple_nonnegative_warnv_p for SSA names.
9209         (integer_valued_real_unary_p, integer_valued_real_binary_p)
9210         (integer_valued_real_call_p, integer_valued_real_single_p)
9211         (integer_valued_real_invalid_p): New functions.
9212         (integer_valued_real_p): Move from fold-const.c and rework
9213         to call the functions above.  Handle SSA names.
9214         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9215         * gimple-fold.c (gimple_assign_integer_valued_real_p)
9216         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9217         (gimple_stmt_integer_valued_real_p): New functions.
9218         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9219         Fold f(x)->x for the same f if x is known to be integer-valued.
9220         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9221         the result.  Canonicalize floor(x) as trunc(x) if x is
9222         nonnegative.
9223
9224 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9225
9226         * tree-ssa-structalias.c (intra_create_variable_infos): Use
9227         make_constraint_from.
9228
9229 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9230
9231         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9232         setting of is_full_var in case of a single field.
9233
9234 2015-10-22  Martin Sebor  <msebor@redhat.com>
9235
9236         PR driver/68043
9237         * config/i386/i386.opt: Add missing periods to the ends of sentences.
9238         * config/msp430/msp430.opt: Same.
9239
9240 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9241
9242         * doc/extend.exp (Global Register Variables): Rewrite.
9243
9244 2015-10-22  Jeff Law  <law@redhat.com>
9245
9246         * genattrtab.c (main): If we do not have any annul-true or annul-false
9247         slots, then write out a dummy eligible_for_annul_true or
9248         eligible_for_annul_false as needed.
9249
9250 2015-10-22  Nick Clifton  <nickc@redhat.com>
9251
9252         * config/msp430/msp430.opt: Add -msilicon-errata and
9253         -msilicon-errata-warn.
9254         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9255         assembler.
9256         * doc/invoke.texi: Document new options.
9257
9258 2015-10-22  Richard Biener  <rguenther@suse.de>
9259
9260         PR tree-optimization/58497
9261         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9262         (expand_vector_operations_1): Use it.  Lower operations on
9263         all uniform vectors to scalar operations if the HW supports it.
9264
9265 2015-10-22  Richard Biener  <rguenther@suse.de>
9266
9267         PR tree-optimization/19049
9268         PR tree-optimization/65962
9269         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9270         to strided accesses if single-element interleaving doesn't work.
9271
9272 2015-10-22  Richard Biener  <rguenther@suse.de>
9273
9274         PR middle-end/68046
9275         PR middle-end/61893
9276         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9277         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9278         (expand_unop): Likewise.
9279
9280 2015-10-22  Richard Biener  <rguenther@suse.de>
9281
9282         * fold-const.c (fold_addr_of_array_ref_difference): Properly
9283         convert operands before folding a MINUS_EXPR.
9284         (fold_binary_loc): Move simplification of MINUS_EXPR on
9285         converted POINTER_PLUS_EXPRs ...
9286         * match.pd: ... here.
9287
9288 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9289
9290         * builtins.c (fold_builtin_tan): Delete.
9291         (fold_builtin_1): Handle constant tan arguments here.
9292         * match.pd: Simplify (tan (atan x)) to x.
9293
9294 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9295
9296         * builtins.c (fold_builtin_cproj): Delete.
9297         (fold_builtin_1): Handle constant arguments here.
9298         (build_complex_cproj): Move and rename to...
9299         * tree.c: (build_complex_inf): ...this.
9300         * tree.h (build_complex_inf): Declare.
9301         * match.pd: Fold cproj(x)->x if x has no infinity.
9302         Use build_complex_inf for existing cproj rules.
9303
9304 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9305
9306         PR target/68015
9307         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9308         already have a comparison result.
9309
9310 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9311
9312         PR target/63304
9313         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9314         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9315         (aarch64_classify_address): Likewise.
9316         (aarch64_secondary_reload): Likewise.
9317         (aarch64_override_options_after_change_1): Adjust.
9318         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9319         Use aarch64_nopcrelative_literal_loads.
9320         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9321         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9322         Declare.
9323
9324 2015-10-21  Martin Sebor  <msebor@redhat.com>
9325
9326         PR driver/68043
9327         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9328         (print_filtered_help): Reference aliased option's name and encourage
9329         readers to use it in preference to the alias if the former is not
9330         documented.  Mention when using an option is diagnosed.
9331         * gcc.c (display_help): End each sentence with a period.
9332
9333         * common.opt: End each sentence that describes an option with
9334         a period.
9335         * config/aarch64/aarch64.opt: Same.
9336         * config/alpha/alpha.opt: Same.
9337         * config/arc/arc.opt: Same.
9338         * config/arm/arm.opt: Same.
9339         * config/avr/avr.opt: Same.
9340         * config/bfin/bfin.opt: Same.
9341         * config/c6x/c6x.opt: Same.
9342         * config/cr16/cr16.opt: Same.
9343         * config/cris/cris.opt: Same.
9344         * config/cris/linux.opt: Same.
9345         * config/darwin.opt: Same.
9346         * config/epiphany/epiphany.opt: Same.
9347         * config/fr30/fr30.opt: Same.
9348         * config/frv/frv.opt: Same.
9349         * config/ft32/ft32.opt: Same.
9350         * config/g.opt: Same.
9351         * config/h8300/h8300.opt: Same.
9352         * config/i386/cygming.opt: Same.
9353         * config/i386/djgpp.opt: Same.
9354         * config/i386/i386.opt: Same.
9355         * config/i386/interix.opt: Same.
9356         * config/i386/mingw-w64.opt: Same.
9357         * config/i386/mingw.opt: Same.
9358         * config/ia64/ia64.opt: Same.
9359         * config/ia64/ilp32.opt: Same.
9360         * config/iq2000/iq2000.opt: Same.
9361         * config/linux.opt: Same.
9362         * config/lm32/lm32.opt: Same.
9363         * config/lynx.opt: Same.
9364         * config/m32c/m32c.opt: Same.
9365         * config/m32r/m32r.opt: Same.
9366         * config/m68k/ieee.opt: Same.
9367         * config/m68k/m68k.opt: Same.
9368         * config/mcore/mcore.opt: Same.
9369         * config/mep/mep.opt: Same.
9370         * config/microblaze/microblaze.opt: Same.
9371         * config/mips/mips.opt: Same.
9372         * config/mmix/mmix.opt: Same.
9373         * config/mn10300/mn10300.opt: Same.
9374         * config/moxie/moxie.opt: Same.
9375         * config/msp430/msp430.opt: Same.
9376         * config/nios2/elf.opt: Same.
9377         * config/nios2/nios2.opt: Same.
9378         * config/nvptx/nvptx.opt: Same.
9379         * config/pa/pa-hpux.opt: Same.
9380         * config/pa/pa-hpux1010.opt: Same.
9381         * config/pa/pa-hpux1111.opt: Same.
9382         * config/pa/pa-hpux1131.opt: Same.
9383         * config/pa/pa.opt: Same.
9384         * config/pa/pa64-hpux.opt: Same.
9385         * config/pdp11/pdp11.opt: Same.
9386         * config/rl78/rl78.opt: Same.
9387         * config/rs6000/476.opt: Same.
9388         * config/rs6000/aix64.opt: Same.
9389         * config/rs6000/darwin.opt: Same.
9390         * config/rs6000/linux64.opt: Same.
9391         * config/rs6000/rs6000.opt: Same.
9392         * config/rs6000/sysv4.opt: Same.
9393         * config/s390/s390.opt: Same.
9394         * config/s390/tpf.opt: Same.
9395         * config/sh/sh.opt: Same.
9396         * config/sol2.opt: Same.
9397         * config/sparc/long-double-switch.opt: Same.
9398         * config/sparc/sparc.opt: Same.
9399         * config/spu/spu.opt: Same.
9400         * config/stormy16/stormy16.opt: Same.
9401         * config/tilegx/tilegx.opt: Same.
9402         * config/tilepro/tilepro.opt: Same.
9403         * config/v850/v850.opt: Same.
9404         * config/vax/vax.opt: Same.
9405         * config/visium/visium.opt: Same.
9406         * config/vms/vms.opt: Same.
9407         * config/vxworks.opt: Same.
9408         * config/xtensa/xtensa.opt: Same.
9409
9410 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9411             Sebastian Pop  <s.pop@samsung.com>
9412
9413         * graphite-scop-detection.c (parameter_index_in_region): Update call to
9414         invariant_in_sese_p_rec.
9415         * graphite-sese-to-poly.c (extract_affine): Same.
9416         * sese.c (invariant_in_sese_p_rec): Pass in an extra
9417         parameter has_vdefs.
9418         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9419         variable depends on virtual definitions in the current region.
9420         * sese.h (invariant_in_sese_p_rec): Update declaration.
9421
9422 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9423             Sebastian Pop  <s.pop@samsung.com>
9424
9425         * graphite-scop-detection.c (build_scops): Do not handle scops
9426         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9427         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9428
9429 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
9430
9431         * config.in: Regenerate.
9432         * configure: Regenerate.
9433         * configure.ac (CHECKING_P): Define.
9434         * system.h: Use CHECKING_P.
9435
9436 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9437
9438         PR ipa/67056
9439         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9440         is negative we don't know the type.
9441         (check_stmt_for_type_change): Skip constructors of non-polymorphic
9442         types as those won't help devirutalization.
9443
9444 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9445
9446         * fold-const.c (operand_equal_p): Add code matching empty constructors.
9447
9448 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
9449
9450         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9451         comments.
9452         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9453         Add comments on sign of the result.
9454         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9455         Recurse on operand #1 instead of operand #0.
9456         <CEIL_MOD_EXPR>: Do not recurse.
9457         <ROUND_MOD_EXPR>: Likewise.
9458
9459 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9460
9461         * cfgrtl.c (pass_free_cfg::execute): Adjust.
9462         * final.c (dbr_sequence_length): Always define.
9463         (shorten_branches): Adjust.
9464         * genattr-common.c (main): Always define DELAY_SLOTS.
9465         * genattr.c (main): Unconditionally declare functions and define
9466         macros related to delay slots.
9467         * genattrtab.c (write_eligible_delay): Adjust.
9468         (main): Always write out delay slot functions.
9469         * opts.c (default_options_table): Adjust.
9470         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9471         (redirect_with_delay_list_safe_p): Likewise.
9472         (fill_simple_delay_slots): Likewise.
9473         (fill_slots_from_thread): Likewise.
9474         (make_return_insns): Likewise.
9475         (dbr_schedule): Likewise.
9476         (rest_of_handle_delay_slots): Likewise.
9477         (pass_delay_slots::gate): Likewise.
9478         * toplev.c (process_options): Likewise.
9479
9480 2015-10-21  Richard Henderson  <rth@redhat.com>
9481
9482         * targhooks.c (default_addr_space_pointer_mode): Remove check
9483         for generic address space.
9484         (default_addr_space_address_mode): Likewise.
9485         (default_addr_space_valid_pointer_mode): Likewise.
9486         (default_addr_space_legitimate_address_p): Likewise.
9487         (default_addr_space_legitimize_address): Likewise.
9488         * target.def (addr_space.pointer_mode): Update documentation
9489         of default behavior.
9490         (addr_space.address_mode): Likewise.
9491         * tm.texi: Update.
9492
9493         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9494         address spaces.
9495
9496 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9497
9498         * builtins.c (fold_builtin_cabs): Delete.
9499         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9500         * match.pd: Add rules previously handled by fold_builtin_cabs.
9501
9502 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9503
9504         * fold-const.h (fold_strip_sign_ops): Delete.
9505         * fold-const.c (fold_strip_sign_ops): Likewise.
9506         (fold_unary_loc, fold_binary_loc): Remove calls to it.
9507         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9508         (fold_builtin_ccos): Delete.
9509         (fold_builtin_pow): Don't call fold_strip_sign_ops.
9510         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9511         Remove fndecl argument.
9512         (fold_builtin_1): Update calls accordingly.  Handle constant
9513         cos, cosh, ccos and ccosh here.
9514
9515 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9516
9517         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9518         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9519         * common.opt (fssa-backprop): New option.
9520         * fold-const.h (negate_mathfn_p): Declare.
9521         * fold-const.c (negate_mathfn_p): Make public.
9522         * timevar.def (TV_TREE_BACKPROP): New.
9523         * tree-pass.h (make_pass_backprop): Declare.
9524         * passes.def (pass_backprop): Add.
9525         * gimple-ssa-backprop.c: New file.
9526
9527 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9528             Sebastian Pop  <s.pop@samsung.com>
9529
9530         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9531         Do not call create_empty_if_region_on_edge when cond_expr is true.
9532         (translate_isl_ast_node_for): Check whether a guard has been generated.
9533
9534 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9535
9536         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9537         (operator=): Removed.
9538         (dr_info): Make alias_set number the last argument with default
9539         value of invalid_alias_set.
9540         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9541         of dr_info.
9542         (rewrite_reductions_out_of_ssa): Iterate only through the
9543         basic blocks which are inside region.
9544         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9545         * sese.h (struct sese_l): Removed assignment operator.
9546         (split_region_for_bb): Removed dead code.
9547
9548 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9549
9550         * graphite-poly.h (struct dr_info): Removed conversion constructor.
9551         (struct scop): Renamed scop::region to scop::scop_info
9552         (scop_set_region): Same.
9553         (SCOP_REGION): Removed
9554         (SCOP_CONTEXT): Removed.
9555         (POLY_SCOP_P): Removed.
9556         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9557         Rename scop->region to scop->scop_info.
9558         (add_parameters_to_ivs_params): Same.
9559         (graphite_regenerate_ast_isl): Same.
9560         * graphite-poly.c (new_scop): Same.
9561         (free_scop): Same.
9562         (print_scop_params): Same.
9563         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9564         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9565         (dot_all_scops_1): Rename scop->region to scop->scop_info.
9566         (scop_detection::nb_pbbs_in_loops): Same.
9567         (find_scop_parameters): Same.
9568         (try_generate_gimple_bb): Same.
9569         (gather_bbs::before_dom_children): Same.
9570         (gather_bbs::after_dom_children): Same.
9571         (build_scops): Same.
9572         * graphite-sese-to-poly.c (build_scop_scattering): Same.
9573         (extract_affine_chrec): Same.
9574         (extract_affine): Same.
9575         (set_scop_parameter_dim): Same.
9576         (build_loop_iteration_domains): Same.
9577         (create_pw_aff_from_tree): Same.
9578         (add_param_constraints): Same.
9579         (build_scop_iteration_domain): Same.
9580         (build_scop_drs): Same.
9581         (analyze_drs_in_stmts): Same.
9582         (insert_out_of_ssa_copy_on_edge): Same.
9583         (rewrite_close_phi_out_of_ssa):Same.
9584         (rewrite_reductions_out_of_ssa):Same.
9585         (handle_scalar_deps_crossing_scop_limits):Same.
9586         (rewrite_cross_bb_scalar_deps):Same.
9587         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9588         (build_poly_scop):Same.
9589         (build_alias_set): Use pointer to dr_info.
9590         * graphite.c (print_graphite_scop_statistics):
9591         (graphite_transform_loops):
9592         * sese.h (struct sese_l): Remove conversion constructor.
9593
9594 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9595
9596         PR middle-end/67966
9597         * tree.c (verify_type): Verify that TYPE_MODE match
9598         between TYPE_CANONICAL and type.
9599         * expr.c (store_expr_with_bounds): Revert my previous change.
9600         * expmed.c (store_bit_field_1): Revert prevoius change.
9601         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9602         to match for all types.
9603
9604 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
9605
9606         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9607         nesting.
9608
9609 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9610
9611         * doc/tm.texi: Regenerated.
9612         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9613         * stor-layout.c (layout_type): Use mode to get vector mask size.
9614         * target.def (get_mask_mode): New.
9615         * targhooks.c (default_get_mask_mode): New.
9616         * targhooks.h (default_get_mask_mode): New.
9617         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9618         for boolean vector.
9619         * tree.c (MAX_BOOL_CACHED_PREC): New.
9620         (nonstandard_boolean_type_cache): New.
9621         (build_nonstandard_boolean_type): New.
9622         (make_vector_type): Vector mask has no canonical type.
9623         (build_truth_vector_type): New.
9624         (build_same_sized_truth_vector_type): New.
9625         (truth_type_for): Support vector masks.
9626         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9627         (build_truth_vector_type): New.
9628         (build_same_sized_truth_vector_type): New.
9629         (build_nonstandard_boolean_type): New.
9630         * tree-cfg.c (verify_gimple_comparison) Require boolean
9631         vector type for vector comparison.
9632         (verify_gimple_assign_ternary): Likewise.
9633         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9634         condition operand.
9635         * tree-vect-stmts.c (vectorizable_condition): Use boolean
9636         vector type for vector comparison.
9637         * tree-vect-generic.c (elem_op_func): Add new operand to hold
9638         vector type.
9639         (do_unop): Adjust to modified function type.
9640         (do_binop): Likewise.
9641         (do_plus_minus): Likewise.
9642         (do_negate); Likewise.
9643         (expand_vector_piecewise): Likewise.
9644         (do_cond): Likewise.
9645         (do_compare): Use comparison instead of condition.
9646         (expand_vector_divmod): Use boolean vector type for comparison.
9647         (expand_vector_operations_1): Skip scalar mask operations.
9648
9649 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9650
9651         * omp-low.c (simd_clone_create): Set in_other_partition
9652         for created clones.
9653
9654 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9655
9656         * doc/extend.exp (Local Register Variables): Rewrite.
9657
9658 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9659
9660         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9661         and x*x in cases where the operands are sign ops.  Extend these
9662         rules to handle copysign as a sign op (including for cos, cosh
9663         and pow, which already treated negate and abs as sign ops).
9664
9665 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
9666
9667         PR target/68018
9668         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9669         for 64-bit MS_ABI targets also when default incoming stack boundary
9670         is overriden.
9671
9672 2015-10-21  Richard Biener  <rguenther@suse.de>
9673
9674         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9675         cond stmts, enhanced and split out from ...
9676         (vn_phi_eq): ... here.
9677
9678 2015-10-21  Richard Biener  <rguenther@suse.de>
9679
9680         PR middle-end/68031
9681         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9682         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9683         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
9684         make sure they are not registered for update.
9685
9686 2015-10-21  Richard Biener  <rguenther@suse.de>
9687
9688         PR tree-optimization/68026
9689         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9690         unsigned VARYING values.
9691
9692 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
9693
9694         * asan.c (asan_emit_stack_protection): Don't pass local stack to
9695         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9696         NULL and use local stack than.
9697         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9698         in addition to __asan_init.
9699         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9700         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9701         * asan.h (asan_intercepted_p): Handle new string builtins.
9702         * ubsan.c (ubsan_use_new_style_p): New function.
9703         (ubsan_instrument_float_cast): If location is unknown, assign
9704         input_location to loc. Propagate loc to ubsan_create_data if
9705         ubsan_use_new_style_p returned true.
9706
9707 2015-10-21  Jeff Law  <law@redhat.com>
9708
9709         * Makefile.in (OBJS): Remove sched-vis.c
9710         * sched-vis.c: Removed.  Code moved into...
9711         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
9712         * rtl.h: Remove prototypes for functions now living in print-rtl.c
9713         * print-rtl.h Add prototypes for new functions in print-rtl.c.
9714         * auto-inc-dec.c: Include print-rtl.h
9715         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9716         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9717
9718         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9719         ATTRIBUTE_UNUSED.
9720
9721 2015-10-21  Richard Biener  <rguenther@suse.de>
9722             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9723
9724         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9725         to match.pd.
9726 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9727 about signed left shift stronger and clarify the cases when they're
9728 broken.
9729         Move (a * (1 << b)) is (a << b) to match.pd.
9730         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9731         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9732         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9733
9734         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9735         New simplifier.
9736         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9737         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9738         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9739         : New simplifier.
9740         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9741         New simplifier.
9742         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9743
9744 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
9745             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9746             Alan Modra  <amodra@gmail.com>
9747
9748         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9749         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9750         (LINK_SPEC): Add %(link_secure_plt).
9751         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9752         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9753
9754 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
9755             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9756
9757         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9758         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9759
9760 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9761
9762         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9763         New function.
9764         (fusion_load_store): Use it.
9765         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9766         ldp and stp in VD modes.
9767         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9768         (store_pair<mode>, VD): Likewise.
9769
9770 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
9771
9772         PR rtl-optimization/67609
9773         * lra-splill.c (lra_final_code_change): Don't remove all
9774         sub-registers.
9775
9776 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9777
9778         * simplify-rtx.c (simplify_binary_operation): If either operand was
9779         a constant pool reference use them if all other simplifications failed.
9780
9781 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9782
9783         * config/aarch64/aarch64.md
9784         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9785         * config/aarch64/aarch64-simd.md
9786         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9787         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9788         (aarch64_fpconst_pow_of_2): New function.
9789         (aarch64_vec_fpconst_pow_of_2): Likewise.
9790         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9791         prototype.
9792         (aarch64_vec_fpconst_pow_of_2): Likewise.
9793         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9794         (aarch64_fp_vec_pow2): Likewise.
9795
9796 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
9797
9798         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9799         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
9800         * config/alpha/alpha.c (alpha_function_arg_advance): Update
9801         ALPHA_ARG_SIZE usage.
9802         (alpha_arg_partial_bytes): Ditto.
9803
9804 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9805
9806         PR target/66810
9807         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9808         error_mark_node decls.
9809
9810 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9811
9812         PR target/67963
9813         PR target/67985
9814         * common/config/i386/i386-common.c (ix86_handle_option): Remove
9815         OPT_miamcu handling.
9816         * config/i386/i386.c (PTA_NO_80387): New macro.
9817         (processor_alias_table): Add PTA_NO_80387 to lakemont.
9818         (ix86_option_override_internal): Update MASK_80387 from
9819         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
9820         SSE math only if 80387 is supported.  Don't change
9821         MASK_FLOAT_RETURNS.
9822         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9823         80387 is supported.
9824         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9825         if TARGET_80387 is true and TARGET_IAMCU is false.
9826         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9827         is true and TARGET_IAMCU_P is false.
9828
9829 2015-10-20  Richard Biener  <rguenther@suse.de>
9830
9831         PR tree-optimization/68017
9832         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9833
9834 2015-10-20  Martin Liska  <mliska@suse.cz>
9835
9836         * cgraphclones.c (cgraph_node::create_virtual_clone):
9837         Verify cgraph_node.local.versionable instead of calling
9838         tree_versionable_function_p.
9839         * ipa-cp.c (determine_versionability): Save the information
9840         to ipa_node_params summary.
9841         (ipcp_versionable_function_p): Use it.
9842         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9843         (ipcp_generate_summary): Do not compute cgraph_node
9844         versionability.
9845         * ipa-inline-analysis.c (inline_generate_summary): Compute
9846         versionability for all cgraph nodes.
9847         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9848         ipa_node_params::versionability.
9849         * ipa-prop.h (struct ipa_node_params): Declare it.
9850
9851 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9852
9853         PR other/67868
9854         * varasm.c (assemble_variable): Move special vtv handling to..
9855         (handle_vtv_comdat_sections): .. here. New function.
9856         (output_object_block): Handle vtv sections.
9857
9858 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9859
9860         PR target/66912
9861         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9862
9863 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
9864
9865         * doc/extend.texi: Update documentation WRT inline functions.
9866
9867 2015-10-20  Alan Modra  <amodra@gmail.com>
9868
9869         PR go/66870
9870         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9871         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9872         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9873
9874 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
9875
9876         PR rtl-optimization/66790
9877         * df.h (DF_MIR): New macro.
9878         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9879         (DF_MIR_INFO_BB): New macro.
9880         (DF_MIR_IN, DF_MIR_OUT): New macros.
9881         (struct df_mir_bb_info): New.
9882         (df_mir): New macro.
9883         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9884         declarations.
9885         (df_mir_get_bb_info): New.
9886         * df-problems.c (struct df_mir_problem_data): New.
9887         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9888         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9889         df_mir_confluence_0, df_mir_confluence_n,
9890         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9891         df_mir_bottom_dump, df_mir_verify_solution_start,
9892         df_mir_verify_solution_end): New.
9893         (problem_MIR): New.
9894         (df_mir_add_problem, df_mir_simulate_one_insn): New.
9895         * timevar.def (TV_DF_MIR): New.
9896         * ree.c: Include bitmap.h
9897         (add_removable_extension): Add an INIT_REGS parameter.  Use it
9898         to skip zero-extensions that may get an uninitialized register.
9899         (find_removable_extensions): Compute must-initialized registers
9900         using the MIR dataflow problem. Update the call to
9901         add_removable_extension.
9902         (find_and_remove_re): Call df_mir_add_problem.
9903
9904 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
9905
9906         * common/config/mn10300/mn10300-common.c
9907         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9908         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9909
9910 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
9911
9912         * doc/extend.texi (Explicit Register Variables): Simplify and
9913         avoid unnecessary and confusion abbreviations.  Update cross
9914         references.
9915         doc/implement-c.tex: Update cross reference.
9916
9917 2015-10-19  Jeff Law  <law@redhat.com>
9918
9919         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9920         that create irreducible loops unless the path elimiantes a multiway
9921         branch.
9922
9923 2015-10-19  Richard Biener  <rguenther@suse.de>
9924
9925         PR tree-optimization/67975
9926         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9927         * tree-cfg.c (extract_true_false_controlled_edges): Split out
9928         core worker from ...
9929         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9930         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9931         instead of block number for PHIs with two or one args.
9932         (vn_phi_eq): Compare edge predicates of PHIs that are in different
9933         blocks.
9934
9935 2015-10-19  Richard Biener  <rguenther@suse.de>
9936
9937         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9938         (gimple_stmt_nonnegative_warnv_p): Use it.
9939         * match.pd (CPROJ): New operator list.
9940         (cproj (complex ...)): Move simplifications from ...
9941         * builtins.c (fold_builtin_cproj): ... here.
9942
9943 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9944
9945         * config/i386/i386.c (ix86_expand_vector_move): Use
9946         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9947         alignment.
9948
9949 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9950
9951         * doc/invoke.texi: Replace @optindex with @opindex.
9952
9953 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9954
9955         PR target/67995
9956         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9957         arch= is set,  clear all bits in x_ix86_isa_flags, except for
9958         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9959
9960 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
9961
9962         PR middle-end/68002
9963         * common.opt (fkeep-static-functions): New option.
9964         * doc/invoke.texi: Document it.
9965         * cgraphunit.c (cgraph_node::finalize_function): Use it.
9966
9967 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9968
9969         * sched-int.h (struct autopref_multipass_data_): Remove offset
9970         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
9971         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9972         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
9973         (autopref_rank_data): New function.
9974         (autopref_rank_for_schedule): Use it.
9975         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9976
9977 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
9978
9979         PR other/65800
9980         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9981
9982 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9983
9984         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9985         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
9986         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9987         (STANDARD_STARTFILE_PREFIX_1): New.
9988         (STANDARD_STARTFILE_PREFIX_2): New.
9989
9990 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9991
9992         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9993         (darwin_driver_init): Note a version-min when provided on the c/l.
9994         * config/darwin.h (%darwin_minversion): Remove.
9995         * config/i386/darwin.h: Likewise.
9996         * config/rs6000/darwin.h: Likewise.
9997         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9998         rather than an arbitrary constant.
9999
10000 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10001
10002         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10003         PPC, detect conflicts between -arch and multilib settings.  Detect
10004         and warn about conflicts between multiple -arch definitions.
10005
10006 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10007
10008         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10009
10010 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10011
10012         * lra-constraints.c (add_next_usage_insn): Change argument type
10013         from rtx to rtx_insn *.
10014
10015 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
10016
10017         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10018         for Lakemont.
10019
10020 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
10021
10022         * config/tilepro/gen-mul-tables.cc: Adjust include files.
10023         * config/tilegx/mul-tables.c: Regenerate.
10024         * config/tilepro/mul-tables.c: Regenerate.
10025
10026         * config/tilegx/tilegx-c.c: Adjust include files.
10027         * config/tilegx/tilegx.c: Likewise.
10028         * config/tilepro/tilepro-c.c: Likewise.
10029         * config/tilepro/tilepro.c: Likewise.
10030         * config/aarch64/aarch64-builtins.c: Likewise.
10031         * config/aarch64/aarch64.c: Likewise.
10032         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10033         * config/alpha/alpha.c: Likewise.
10034         * config/arc/arc.c: Likewise.
10035         * config/arm/aarch-common.c: Likewise.
10036         * config/arm/arm-builtins.c: Likewise.
10037         * config/arm/arm-c.c: Likewise.
10038         * config/arm/arm.c: Likewise.
10039         * config/avr/avr-c.c: Likewise.
10040         * config/avr/avr-devices.c: Likewise.
10041         * config/avr/avr-log.c: Likewise.
10042         * config/avr/avr.c: Likewise.
10043         * config/bfin/bfin.c: Likewise.
10044         * config/c6x/c6x.c: Likewise.
10045         * config/cr16/cr16.c: Likewise.
10046         * config/cris/cris.c: Likewise.
10047         * config/darwin-c.c: Likewise.
10048         * config/darwin-driver.c: Likewise.
10049         * config/darwin.c: Likewise.
10050         * config/default-c.c: Likewise.
10051         * config/epiphany/epiphany.c: Likewise.
10052         * config/epiphany/mode-switch-use.c: Likewise.
10053         * config/epiphany/resolve-sw-modes.c: Likewise.
10054         * config/fr30/fr30.c: Likewise.
10055         * config/frv/frv.c: Likewise.
10056         * config/ft32/ft32.c: Likewise.
10057         * config/glibc-c.c: Likewise.
10058         * config/h8300/h8300.c: Likewise.
10059         * config/i386/host-cygwin.c: Likewise.
10060         * config/i386/host-mingw32.c: Likewise.
10061         * config/i386/i386-c.c: Likewise.
10062         * config/i386/i386.c: Likewise.
10063         * config/i386/msformat-c.c: Likewise.
10064         * config/i386/winnt-cxx.c: Likewise.
10065         * config/i386/winnt-stubs.c: Likewise.
10066         * config/i386/winnt.c: Likewise.
10067         * config/ia64/ia64-c.c: Likewise.
10068         * config/ia64/ia64.c: Likewise.
10069         * config/iq2000/iq2000.c: Likewise.
10070         * config/lm32/lm32.c: Likewise.
10071         * config/m32c/m32c-pragma.c: Likewise.
10072         * config/m32c/m32c.c: Likewise.
10073         * config/m32r/m32r.c: Likewise.
10074         * config/mcore/mcore.c: Likewise.
10075         * config/mep/mep-pragma.c: Likewise.
10076         * config/mep/mep.c: Likewise.
10077         * config/microblaze/microblaze-c.c: Likewise.
10078         * config/microblaze/microblaze.c: Likewise.
10079         * config/mips/mips-tables.opt
10080         * config/mips/mips.c: Likewise.
10081         * config/mmix/mmix.c: Likewise.
10082         * config/mn10300/mn10300.c: Likewise.
10083         * config/moxie/moxie.c: Likewise.
10084         * config/msp430/msp430-c.c: Likewise.
10085         * config/msp430/msp430.c: Likewise.
10086         * config/nds32/nds32-cost.c: Likewise.
10087         * config/nds32/nds32-fp-as-gp.c: Likewise.
10088         * config/nds32/nds32-intrinsic.c: Likewise.
10089         * config/nds32/nds32-isr.c: Likewise.
10090         * config/nds32/nds32-md-auxiliary.c: Likewise.
10091         * config/nds32/nds32-memory-manipulation.c: Likewise.
10092         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10093         * config/nds32/nds32-predicates.c: Likewise.
10094         * config/nds32/nds32.c: Likewise.
10095         * config/nios2/nios2.c: Likewise.
10096         * config/nvptx/mkoffload.c: Likewise.
10097         * config/nvptx/nvptx.c: Likewise.
10098         * config/pa/pa.c: Likewise.
10099         * config/pdp11/pdp11.c: Likewise.
10100         * config/rl78/rl78-c.c: Likewise.
10101         * config/rl78/rl78.c: Likewise.
10102         * config/rs6000/host-darwin.c: Likewise.
10103         * config/rs6000/rs6000-c.c: Likewise.
10104         * config/rs6000/rs6000-linux.c: Likewise.
10105         * config/rs6000/rs6000.c: Likewise.
10106         * config/rx/rx.c: Likewise.
10107         * config/s390/s390-c.c: Likewise.
10108         * config/s390/s390.c: Likewise.
10109         * config/sh/sh-c.c: Likewise.
10110         * config/sh/sh-mem.cc: Likewise.
10111         * config/sh/sh.c: Likewise.
10112         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10113         * config/sh/sh_treg_combine.cc: Likewise.
10114         * config/sol2-c.c: Likewise.
10115         * config/sol2-cxx.c: Likewise.
10116         * config/sol2-stubs.c: Likewise.
10117         * config/sol2.c: Likewise.
10118         * config/sparc/sparc-c.c: Likewise.
10119         * config/sparc/sparc.c: Likewise.
10120         * config/spu/spu-c.c: Likewise.
10121         * config/spu/spu.c: Likewise.
10122         * config/stormy16/stormy16.c: Likewise.
10123         * config/v850/v850-c.c: Likewise.
10124         * config/v850/v850.c: Likewise.
10125         * config/vax/vax.c: Likewise.
10126         * config/visium/visium.c: Likewise.
10127         * config/vms/vms-c.c: Likewise.
10128         * config/vms/vms.c: Likewise.
10129         * config/vxworks.c: Likewise.
10130         * config/winnt-c.c: Likewise.
10131         * config/xtensa/xtensa.c: Likewise.
10132
10133 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10134
10135         PR target/67745
10136         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10137         (FUNCTION_BOUNDARY_P): New macro:
10138         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10139         New hook.
10140         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10141         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10142         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10143         * function.c (allocate_struct_function): Call
10144         relayout_function hook.
10145         * passes.c (rest_of_decl_compilation): Likewise.
10146
10147 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10148
10149         PR target/67745
10150         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10151         * config/arm/arm.c (arm_option_override_internal): Call
10152         arm_override_options_after_change_1.
10153         (arm_override_options_after_change): New function.
10154         (arm_override_options_after_change_1): Likewise.
10155         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10156
10157 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10158
10159         Revert:
10160         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10161         empty constructors.
10162
10163 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10164
10165         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10166         argument is an ADDR_EXPR.
10167
10168 2015-10-16  Richard Biener  <rguenther@suse.de>
10169
10170         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10171         and get rid of force_gimple_operand_gsi.
10172         (gimple_fold_builtin_memory_chk): Likewise.
10173         (gimple_fold_builtin_stxcpy_chk): Likewise.
10174         (rewrite_to_defined_overflow): Likewise.
10175         (gimple_convert_to_ptrofftype): New function.
10176         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10177
10178 2015-10-16  Richard Biener  <rguenther@suse.de>
10179
10180         * tree-nested.h (build_addr): Adjust prototype.
10181         * tree-nested.c (build_addr): Remove context argument and use
10182         mark_addressable.
10183         (get_static_chain): Adjust calls to build_addr.
10184         (convert_nl_goto_reference): Likewise.
10185         (convert_tramp_reference_op): Likewise.
10186         (finalize_nesting_tree_1): Likewise.
10187         * value-prof.c (gimple_ic): Likewise.
10188         * gimple-low.c (lower_builtin_setjmp): Likewise.
10189         * tree-parloops.c (take_address_of): Likewise.
10190         (create_call_for_reduction_1): Likewise.
10191         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10192         (gimple_gen_ic_func_profiler): Likewise.
10193
10194 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10195
10196         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10197         empty constructors.
10198
10199 2015-10-16  Michael Collison  <michael.collison@linaro.org>
10200             Andrew Pinski <andrew.pinski@caviumnetworks.com>
10201
10202         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10203         (x > y) and (x > z) -> x > max (y,z))
10204
10205 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10206             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10207
10208         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10209         (DYNAMIC_LINKER): Renamed to ...
10210         (GLIBC_DYNAMIC_LINKER): This.
10211         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10212
10213 2015-10-15  Marek Polacek  <polacek@redhat.com>
10214
10215         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10216         gimple_call_builtin instead of is_gimple_call.
10217
10218 2015-10-15  Richard Biener  <rguenther@suse.de>
10219
10220         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10221
10222 2015-10-15  Richard Biener  <rguenther@suse.de>
10223
10224         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10225         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10226         * tree-vect-loop.c (get_initial_def_for_induction): Drop
10227         use of force_gimple_operand in favor of gimple_build.
10228         Use vect_get_new_ssa_name.
10229         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10230         (vectorizable_mask_load_store): Likewise.
10231         (vectorizable_call): Likewise.
10232         (vectorizable_store): Likewise.
10233         (vectorizable_load): Likewise.
10234         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10235
10236 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10237
10238         PR tree-optimization/67945
10239         * tree-pass.h (PROP_gimple_opt_math): New property flag.
10240         * generic-match-head.c (canonicalize_math_p): New function.
10241         * gimple-match-head.c: Include tree-pass.h.
10242         (canonicalize_math_p): New function.
10243         * match.pd: Group math built-in rules into simplifications
10244         and canonicalizations.  Guard the latter with canonicalize_math_p.
10245         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10246         PROP_gimple_opt_math property.
10247
10248 2015-10-15  Marek Polacek  <polacek@redhat.com>
10249
10250         PR tree-optimization/67953
10251         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10252
10253 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
10254
10255         * config.gcc: Recognize "." in architecture base name for AArch64.
10256
10257 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10258
10259         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10260         ROUND_UP macro.
10261         * config/mips/mips.c (mips_setup_incoming_varargs): Use
10262         ROUND_DOWN to calculate off.
10263         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10264         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10265         rounded_size.
10266
10267 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10268
10269         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10270
10271 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
10272             Torvald Riegel  <triegel@redhat.com>
10273
10274         PR target/67281
10275         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10276         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10277         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10278         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10279         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
10280         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10281         trechkpt, treclaim, tsr, ttest): New define_expands.
10282         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10283         __TM_FENCE__ for htm.
10284         * doc/extend.texi: Update documentation for htm builtins.
10285
10286 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10287
10288         PR target/67967
10289         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10290         REG_CFA_EXPRESSION to aligned SSE stores.
10291
10292 2015-10-14  Jeff Law  <law@redhat.com>
10293
10294         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10295         num_threaded_edges for successful FSM threads too.
10296
10297 2015-10-14  Richard Biener  <rguenther@suse.de>
10298
10299         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10300         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
10301         (vect_get_vec_def_for_operand): Remove unused parameter.
10302         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10303         (vect_create_epilog_for_reduction): Likewise.
10304         (vectorizable_reduction): Likewise.
10305         (vectorizable_live_operation): Likewise.
10306         * tree-vect-patterns.c (type_conversion_p): Likewise.
10307         (vect_recog_vector_vector_shift_pattern): Likewise.
10308         (check_bool_pattern): Likewise.
10309         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10310         (vect_analyze_slp_cost_1): Likewise.
10311         * tree-vect-stmts.c (process_use): Likewise.
10312         (vect_get_vec_def_for_operand): Do not handle reductions.
10313         (vect_get_vec_defs): Adjust.
10314         (vectorizable_mask_load_store): Likewise.
10315         (vectorizable_call): Likewise.
10316         (vectorizable_simd_clone_call): Likewise.
10317         (vect_get_loop_based_defs): Likewise.
10318         (vectorizable_conversion): Likewise.
10319         (vectorizable_assignment): Likewise.
10320         (vectorizable_shift): Likewise.
10321         (vectorizable_operation): Likewise.
10322         (vectorizable_store): Likewise.
10323         (vectorizable_load): Likewise.
10324         (vect_is_simple_cond): Likewise.
10325         (vectorizable_condition): Likewise.
10326         (vect_is_simple_use): Remove unused parameters.
10327         (vect_is_simple_use_1): Adjust and rename.
10328
10329 2015-10-14  Richard Biener  <rguenther@suse.de>
10330
10331         PR tree-optimization/67915
10332         * match.pd: Handle comparisons of addresses of STRING_CSTs.
10333         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10334         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10335         stmt folding in favor of GIMPLE one.
10336
10337 2015-10-14  Marek Polacek  <polacek@redhat.com>
10338
10339         PR tree-optimization/67815
10340         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10341         (reassociate_bb): Call it.
10342
10343 2015-10-14  Richard Biener  <rguenther@suse.de>
10344
10345         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10346         Reset info at start.
10347         (vect_analyze_group_access_1): Add debug print.
10348         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10349         (vect_compute_single_scalar_iteration_cost): ... to this.
10350         (vect_analyze_loop_2): Adjust.
10351         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10352         * tree-vectorizer.h: ... here.
10353         (add_stmt_info_to_vec): Remove.
10354         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10355
10356 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10357
10358         * targhooks.c (default_target_option_pragma_parse): Do not warn if
10359         called on behalf of "#pragma GCC pop_options".
10360
10361 2015-10-14  Tom de Vries  <tom@codesourcery.com>
10362
10363         * cfganal.c (verify_no_unreachable_blocks): New function.
10364         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10365         verify_no_unreachable_blocks.
10366         cfganal.h (verify_no_unreachable_blocks): Declare.
10367
10368 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
10369
10370         * common.opt: Add flag_checking.
10371         * system.h (CHECKING_P): Define.
10372
10373 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
10374             Aldy Hernandez  <aldyh@redhat.com>
10375             Ilya Verbin  <ilya.verbin@intel.com>
10376
10377         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10378         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10379         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10380         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10381         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10382         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10383         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10384         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10385         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10386         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10387         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10388         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10389         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10390         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10391         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10392         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10393         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10394         (struct cgraph_simd_clone_arg): Adjust comment.
10395         * coretypes.h (struct gomp_ordered): New forward decl.
10396         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10397         set critical clauses to it.
10398         (gimple_build_omp_ordered): Return gomp_ordered * instead of
10399         gimple *.  Add CLAUSES argument, set ordered clauses to it.
10400         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10401         GIMPLE_OMP_ORDERED.
10402         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10403         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10404         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
10405         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10406         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
10407         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10408         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
10409         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10410         renumber
10411         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10412         (gomp_critical): Add clauses field.
10413         (gomp_ordered): New struct.
10414         (is_a_helper <gomp_ordered *>::test): New inline.
10415         (gimple_build_omp_critical): Add CLAUSES argument.
10416         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
10417         instead of gimple *.
10418         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10419         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10420         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10421         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10422         inline functions.
10423         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10424         (dump_gimple_omp_target): Handle enter data and exit data.
10425         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10426         (dump_gimple_omp_critical): Print clauses.
10427         (dump_gimple_omp_ordered): New function.
10428         (dump_gimple_omp_task): Handle taskloop.
10429         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10430         GIMPLE_OMP_ORDERED.
10431         * gimple-walk.c (walk_gimple_op): Walk clauses on
10432         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10433         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10434         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10435         (struct gimplify_omp_ctx): Add loop_iter_var,
10436         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10437         and target_firstprivatize_array_bases fields.
10438         (delete_omp_context): Release loop_iter_var.
10439         (gimplify_bind_expr): Handle ORT_NONE.
10440         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10441         ORT_COMBINED_TARGET.
10442         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10443         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10444         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
10445         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
10446         ctx->target_map_scalars_firstprivate.
10447         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
10448         data sharing clauses.  For data sharing clause with VLA decl
10449         on omp target/target data don't add firstprivate for the pointer.
10450         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10451         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10452         the addition of ORT_COMBINED_TARGET.
10453         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
10454         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
10455         pointers as zero length array sections and
10456         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10457         data sharing.
10458         (omp_check_private): Handle omp_member_access_dummy_var vars.
10459         (find_decl_expr): New function.
10460         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
10461         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10462         Handle OMP_CLAUSE_GANG separately.  Handle
10463         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10464         clauses.  Diagnose linear clause on combined
10465         distribute {, parallel for} simd construct, unless it is the loop
10466         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10467         Handle map clauses with COMPONENT_REF.  Initialize
10468         ctx->target_map_scalars_firstprivate,
10469         ctx->target_firstprivatize_array_bases and
10470         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
10471         linear clause even to target region if combined.  Remove
10472         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10473         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
10474         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10475         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
10476         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10477         For linear clause on worksharing loop combined with parallel add
10478         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
10479         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
10480         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
10481         taskloop if needed.
10482         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10483         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10484         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10485         GOMP_MAP_POINTER.
10486         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
10487         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10488         in target body.  Handle removal of struct mapping if struct is not
10489         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
10490         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
10491         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
10492         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10493         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10494         clause appear together.  Handle
10495         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
10496         clause if it has map-type-modifier always.  Handle
10497         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10498         clauses.
10499         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10500         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10501         callers.
10502         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
10503         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
10504         iterators in doacross loops.
10505         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10506         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
10507         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
10508         for the addition of ORT_COMBINED_TARGET.
10509         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10510         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
10511         and OMP_TARGET_EXIT_DATA.
10512         (gimplify_omp_ordered): New function.
10513         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10514         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
10515         Gimplify clauses on OMP_CRITICAL.
10516         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10517         expand_GOMP_SIMD_ORDERED_END): New functions.
10518         * internal-fn.def (GOMP_SIMD_ORDERED_START,
10519         GOMP_SIMD_ORDERED_END): New internal functions.
10520         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10521         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10522         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10523         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10524         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10525         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10526         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10527         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10528         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10529         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10530         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10531         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10532         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10533         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10534         adjust type.
10535         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10536         GOMP_target_data_41, adjust type.
10537         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10538         GOMP_target_update_41, adjust type.
10539         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10540         field.
10541         (struct omp_for_data): Add ordered and simd_schedule fields.
10542         (omp_member_access_dummy_var, unshare_and_remap_1,
10543         unshare_and_remap, is_taskloop_ctx): New functions.
10544         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10545         (extract_omp_for_data): Handle taskloops and doacross loops
10546         and simd schedule modifier.
10547         (omp_adjust_chunk_size): New function.
10548         (get_ws_args_for): Use it.
10549         (lookup_sfield): Change first argument to splay_tree_key,
10550         add overload with first argument tree.
10551         (maybe_lookup_field): Likewise.
10552         (use_pointer_for_field): Handle omp_member_access_dummy_var.
10553         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10554         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10555         (build_outer_var_ref): Add LASTPRIVATE argument, handle
10556         taskloops and omp_member_access_dummy_var vars.
10557         (build_sender_ref): Change first argument to splay_tree_key,
10558         add overload with first argument tree.
10559         (install_var_field): For mask & 8 use &DECL_UID as key instead
10560         of the tree itself.
10561         (fixup_child_record_type): Const qualify *.omp_data_i.
10562         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10563         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10564         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10565         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10566         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10567         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10568         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10569         kinds.
10570         (add_taskreg_looptemp_clauses): New function.
10571         (scan_omp_parallel): Use it.
10572         (scan_omp_task): Likewise.
10573         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10574         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10575         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10576         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
10577         sandwiched taskloop constructs.  Type check
10578         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
10579         region.  Diagnose depend(source) or depend(sink:...) on
10580         target constructs or task/taskloop.
10581         (handle_simd_reference): Use get_name.
10582         (lower_rec_input_clauses): Likewise.  Ignore all
10583         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10584         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
10585         before passing it to omp_clause_{default,copy}_ctor.  Handle
10586         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
10587         lastprivate_firstprivate flag for linear that needs copyin and
10588         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10589         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10590         on taskloop lookup decl in outer context.  Pass true to
10591         build_outer_var_ref lastprivate argument.  Handle
10592         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10593         outside of outer taskloop for.
10594         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10595         OMP_CLAUSE_DECL.
10596         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10597         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
10598         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
10599         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
10600         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10601         abstract origin.  Handle omp_member_access_dummy_var vars.
10602         (expand_parallel_call): Use expand_omp_build_assign.
10603         (expand_task_call): Handle taskloop construct expansion.  Add
10604         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
10605         integers.  Add priority argument to GOMP_task* calls.  Or in
10606         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10607         GOMP_task call.
10608         (expand_omp_build_assign): Add prototype.  Add AFTER
10609         argument, if true emit statements after *GSI_P and continue linking.
10610         (expand_omp_taskreg): Adjust expand_task_call caller.
10611         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10612         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10613         zero_iter2_bb and first_zero_iter2 arguments, handle computation
10614         of counts even for ordered loops.
10615         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10616         (expand_omp_ordered_source, expand_omp_ordered_sink,
10617         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10618         functions.
10619         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
10620         clauses on worksharing loop.  Handle DOACROSS loop expansion.
10621         (expand_omp_for_static_nochunk): Handle linear clauses on
10622         worksharing loop.  Adjust expand_omp_for_init_counts
10623         callers.
10624         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
10625         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
10626         expand_omp_for_init_counts callers.
10627         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10628         functions.
10629         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10630         Handle doacross loops.
10631         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10632         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
10633         GOMP_target_{41,update_41,enter_exit_data} libcalls.
10634         (expand_omp): Don't expand ordered depend constructs here, record
10635         ord_stmt instead for later expand_omp_for_generic.
10636         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10637         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10638         clause as stand-alone directive.
10639         (lower_omp_ordered_clauses): New function.
10640         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10641         don't lower anything.
10642         (lower_omp_for_lastprivate): Use last _looptemp_ clause
10643         on taskloop for comparison.
10644         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
10645         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10646         expansion for linear adjustments.
10647         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10648         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10649         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
10650         to tree * pointing to the stmt's clauses.
10651         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10652         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10653         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10654         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10655         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10656         clauses.  Always use short kind and 8-bit align shift.
10657         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10658         (struct lower_omp_regimplify_operands_data): New type.
10659         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10660         New functions.
10661         (lower_omp_1): Use lower_omp_regimplify_operands instead of
10662         gimple_regimplify_operands.
10663         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10664         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10665         clause as stand-alone directive.
10666         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10667         (simd_clone_mangle): Mangle the various linear kinds
10668         per the new ABI.
10669         (simd_clone_adjust_argument_types): Handle
10670         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10671         (simd_clone_init_simd_arrays): Don't do anything for uval.
10672         (simd_clone_adjust): Handle
10673         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10674         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10675         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10676         * omp-low.h (omp_member_access_dummy_var): New prototype.
10677         * passes.def (pass_simduid_cleanup): Schedule another copy of the
10678         pass after all optimizations.
10679         * tree.c (omp_clause_code_name): Add entries for
10680         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10681         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10682         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
10683         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10684         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10685         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
10686         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10687         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10688         clauses.
10689         * tree-core.h (enum omp_clause_linear_kind): New.
10690         (struct tree_omp_clause): Change type of map_kind
10691         from unsigned char to unsigned int.  Add subcode.if_modifier
10692         and subcode.linear_kind fields.
10693         (enum omp_clause_code): Add
10694         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10695         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10696         (OMP_CLAUSE_REDUCTION): Document
10697         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10698         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10699         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10700         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
10701         operand.
10702         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
10703         operand.
10704         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10705         codes.
10706         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10707         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10708         char.
10709         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10710         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10711         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10712         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10713         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10714         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10715         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10716         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10717         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10718         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10719         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10720         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10721         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10722         * tree-inline.c (remap_gimple_stmt): Handle clauses on
10723         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
10724         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10725         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10726         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10727         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10728         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10729         (convert_local_omp_clauses): Likewise.
10730         * tree-pretty-print.c (dump_omp_clause): Handle
10731         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10732         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10733         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10734         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10735         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
10736         GOMP_MAP_FORCE_DEALLOC.  Handle
10737         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10738         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10739         and clauses on OMP_ORDERED and OMP_CRITICAL.
10740         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10741         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10742         (vectorize_loops): Adjust comments.
10743         (pass_simduid_cleanup::execute): Likewise.
10744         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10745         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10746         * wide-int.h (wi::gcd): New.
10747
10748 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10749
10750         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10751         (ix86_function_arg_advance): Ditto.
10752         (ix86_function_arg): Ditto.
10753         (ix86_gimplify_va_arg): Ditto.
10754         (ix86_class_max_nregs): Ditto.
10755         (inline_memory_move_cost): Ditto.
10756         (ix86_set_reg_reg_cost): Ditto.
10757         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10758
10759 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
10760
10761         PR middle-end/67912
10762         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10763
10764 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10765
10766         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10767         ROUND_UP macro and UNITS_PER_WORD * 2.
10768         * config/sparc/sparc.c (sparc_compute_frame_size):
10769         Use ROUND_UP and ROUND_DOWN macros where applicable.
10770         (function_arg_record_value, function_arg_record_value_1)
10771         (function_arg_record_value_1): Ditto.
10772         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10773         alignment to double-word.
10774         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10775         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10776         rounded_size.
10777
10778 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
10779
10780         * rtl.h (print_insn): Fix prototype.
10781
10782 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10783
10784         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10785         -1.  Add assert that returned entry matches phi argument.
10786         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10787         free_stmt_vec_info_vec ...
10788         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
10789         with -1.
10790
10791 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
10792
10793         PR tree-optimization/67909, 67947
10794         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10795         really skip the inner loop.
10796
10797 2015-10-13  Jeff Law  <law@redhat.com>
10798
10799         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10800         Allow single block jump threading paths.
10801
10802 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10803
10804         PR tree-optimization/67476
10805         * doc/invoke.texi (@item parloops-schedule): New item.
10806         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10807         * tree-parloops.c: Include params-enum.h.
10808         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10809
10810 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10811
10812         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10813         * params-enum.h: New file.
10814         * opts.c (handle_param): Handle case that param arg is a string.
10815         * params-list.h: Handle DEFPARAMENUM5 in params.def.
10816         * params.c (find_param): New function, factored out of ...
10817         (set_param_value): ... here.
10818         (param_string_value_p): New function.
10819         * params.h (struct param_info): Add value_names field.
10820         (find_param, param_string_value_p): Declare.
10821
10822 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10823
10824         PR tree-optimization/67476
10825         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10826
10827 2015-10-13  Richard Biener  <rguenther@suse.de>
10828
10829         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10830         the data dependence vector.
10831         (vect_peeling_hash_insert): Get the peeling hash table as argument.
10832         (vect_peeling_hash_get_lowest_cost): Likewise.
10833         (vect_enhance_data_refs_alignment): Adjust.
10834         (struct _vect_peel_info, struct _vect_peel_extended_info,
10835         struct peel_info_hasher): Move from ...
10836         * tree-vectorizer.h: ... here.
10837         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10838         (LOOP_VINFO_PEELING_HTAB): Likewise.
10839         (struct _loop_vec_info): Remove min_profitable_iters and
10840         peeling_htab members.
10841         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10842         here.
10843         (destroy_loop_vec_info): Adjust.
10844         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10845         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10846         to estimate alias versioning cost.
10847         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10848
10849 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
10850
10851         * real.h (real_isinteger): Declare.
10852         * real.c (real_isinteger): New function.
10853         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10854         if y is an even integer.
10855
10856 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10857
10858         revert:
10859         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10860         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10861         counts when these are more informative.
10862
10863 2015-10-12  Jeff Law  <law@redhat.com>
10864
10865         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10866         (fsm_find_control_stmt_paths): Change name of first argument to
10867         more accurately relfect what it really is.  Handle simplification
10868         of GIMPLE_COND after finding a thread path for NAME.
10869         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10870         nontrivial conditions to be handled by FSM threader.
10871         (thread_through_normal_block): Extract the name to looup via
10872         FSM threader from COND_EXPR.
10873
10874         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10875         restriction that traced SSA_NAME is a user variable.
10876
10877 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10878
10879         PR tree-optimization/67476
10880         * omp-low.c (expand_omp_for_generic): Add missing phis.
10881
10882 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10883
10884         PR tree-optimization/67476
10885         * omp-low.c (expand_omp_for_generic): Handle simple latch.
10886
10887 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
10888
10889         * config/aarch64/aarch64-simd-builtins.def: Update builtins
10890         tables: add tbl3 and tbx4.
10891         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10892         (aarch64_tbx4v8qi): New.
10893         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10894         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10895         Rewrite using builtin functions.
10896         * config/aarch64/iterators.md (UNSPEC_TBX): New.
10897
10898 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10899
10900         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10901         ROUND_UP macro.
10902         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10903         Use ROUND_UP and ROUND_DOWN macros where applicable.
10904         (rs6000_darwin64_record_arg_flush): Ditto.
10905         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10906         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10907         rounded_size.
10908
10909 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10910
10911         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10912         (AARCH64_ROUND_DOWN): Ditto.
10913         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10914
10915 2015-10-12  Richard Biener  <rguenther@suse.de>
10916
10917         PR ipa/67783
10918         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10919         code that analyzes IVs on each stmt but in a cheaper way avoiding
10920         quadratic behavior.
10921
10922 2015-10-12  Nick Clifton  <nickc@redhat.com>
10923
10924         * config/msp430/msp430.c (msp430_mcu_names): Rename to
10925         msp430_mcu_data, add fields for ISA and hardware multiply
10926         support.  Import latest data from the devices.csv file.
10927         (msp430_override_option): Use the data from the new array.
10928         (msp430_use_f5_series_hwmult): Likewise.
10929         (use_32bit_hwmult): Likewise.
10930         (msp430_no_hwmult): Likewise.
10931         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10932         MCU names.
10933         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10934         not recognised then no hardware multiply support is assumed and
10935         that only the MSP430 ISA is allowed.
10936
10937 2015-10-12  Richard Biener  <rguenther@suse.de>
10938
10939         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10940         related code ...
10941         (vect_analyze_loop_2): ... here.
10942
10943 2015-10-11  Jason Merrill  <jason@redhat.com>
10944
10945         PR c++/67557
10946         * expr.c (store_field): Call store_constructor directly when
10947         storing a CONSTRUCTOR into a target smaller than its type.
10948         Guard against unsafe bitwise copy.
10949
10950 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10951
10952         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10953         counts when these are more informative.
10954
10955 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10956
10957         * tree-profile.c (tree_profiling): Do not clear
10958         pure/const when not instrumenting.
10959         (pass tree_profile): Add dump of symtab.
10960
10961 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10962
10963         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10964         addresses.
10965         (fold_addr_of_array_ref_difference): Likewise.
10966
10967 2015-10-11  Jeff Law  <law@redhat.com>
10968
10969         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10970         tree-ssa-threadbackward.c.
10971         (fsm_find_control_statement_thread_paths): Likewise.
10972         (thread_through_normal_block): Break out FSM bits and move them
10973         into a new function in tree-ssa-threadbackward.c.  Call new function
10974         instead.
10975         Minimize header file usage.
10976         * tree-ssa-threadbackward.h: New file.
10977         * tree-ssa-threadbackward.c: Likewise.
10978         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10979
10980 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
10981
10982         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10983
10984 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
10985
10986         PR rtl-optimization/67864
10987         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10988         fallthrough edges for conditional jumps.  Don't sort candidate
10989         edges if not optimizing for speed.
10990
10991 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10992
10993         * defaults.h (REVERSE_CONDITION): New default definition.
10994         * jump.c (reversed_comparison_code_parts): Adjust.
10995
10996 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10997
10998         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10999         check HARD_FRAME_POINTER_IS_ARG_POINTER.
11000
11001 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11002
11003         * defaults.h (FRAME_ADDR_RTX): New default definition.
11004         * builtins.c (expand_builtin_return_addr): Adjust.
11005
11006 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11007
11008         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11009         * builtins.c (expand_builtin_return_addr): Adjust.
11010
11011 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11012
11013         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11014         * builtins.c (expand_builtin_return_addr): Adjust.
11015         * doc/tm.texi: Likewise.
11016         * doc/tm.texi.in: Likewise.
11017         * except.c (expand_builtin_unwind_init): Likewise.
11018
11019 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11020
11021         * builtins.c (expand_builtin_return_addr): Adjust.
11022         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11023
11024 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11025
11026         * tree.c (type_with_interoperable_signedness): New.
11027         (gimple_canonical_types_compatible_p): Use it.
11028         * tree.h (type_with_interoperable_signedness): Declare
11029
11030 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11031
11032         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11033         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11034         when OEP_ADDRESS_OF is se.
11035
11036 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11037             Sebastian Pop  <s.pop@samsung.com>
11038
11039         * graphite-dependences.c (scop_get_dependences): Add dump of the
11040         data dependence graph.
11041         * graphite-poly.c (print_isl_union_map): New.
11042         (debug_isl_union_map): New.
11043         * graphite-poly.h (print_isl_union_map): Declare.
11044         (debug_isl_union_map): Declare.
11045
11046 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11047             Sebastian Pop  <s.pop@samsung.com>
11048
11049         * graphite-poly.c (print_iteration_domain): Remove verbosity.
11050         Remove OpenScop formatting.
11051         (print_iteration_domains): Same.
11052         (debug_iteration_domain): Same.
11053         (debug_iteration_domains): Same.
11054         (print_pdr): Same.
11055         (debug_pdr): Same.
11056         (dump_gbb_cases): Same.
11057         (dump_gbb_conditions): Same.
11058         (print_pdrs): Same.
11059         (debug_pdrs): Same.
11060         (print_pbb_body): Same.
11061         (print_pbb): Same.
11062         (print_scop_params): Same.
11063         (print_scop_context): Same.
11064         (print_scop): Same.
11065         (debug_pbb_domain): Same.
11066         (debug_pbb): Same.
11067         (debug_scop_context): Same.
11068         (debug_scop): Same.
11069         (debug_scop_params): Same.
11070         * graphite-poly.h: Same.
11071         * graphite.c (graphite_transform_loops): Same.
11072
11073 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11074
11075         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11076         call that isn't needed.
11077
11078 2015-10-09  Jeff Law  <law@redhat.com>
11079
11080         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11081         rather than moving each name to the freelist individually.
11082
11083 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
11084
11085         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11086         * frame-header-opt.c: New file.
11087         * config/mips/mips-proto.h (mips_register_frame_header_opt):
11088         Add prototype.
11089         * config/mips/mips.c (mips_compute_frame_info): Check
11090         optimize_call_stack flag.
11091         (mips_option_override): Register new frame_header_opt pass.
11092         (mips_frame_info, mips_int_mask, mips_shadow_set,
11093         machine_function): Move these types to...
11094         * config/mips/mips.h: here.
11095         (machine_function): Add does_not_use_frame_header and
11096         optimize_call_stack fields.
11097         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11098         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11099         Document new flags.
11100         * config/mips/mips.opt (mframe-header-opt): Add new option.
11101
11102 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
11103
11104         * config/i386/i386.c
11105         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11106         ROUND_DOWN where applicable.
11107
11108 2015-10-09  Jeff Law  <law@redhat.com>
11109
11110         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11111         correct statement.
11112
11113 2015-10-09  Renlin Li  <renlin.li@arm.com>
11114
11115         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11116         operands[0] and operands[2].
11117         (neon_vtrn<mode>_insn): Likewise.
11118         (neon_vzip<mode>_insn): Likewise.
11119
11120 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11121
11122         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11123         ((X & C2) << C1): Expand to...
11124         (X {&,^,|} C2 << C1): ...This.
11125         ((X & C2) >> C1): Expand to...
11126         (X {&,^,|} C2 >> C1): ...This.
11127
11128 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
11129
11130         PR target/67895
11131         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11132         Adjust embedded rounding/SAE specifier position.
11133         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11134         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11135         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11136         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11137         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11138         Likewise.
11139         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11140
11141 2015-10-09  Martin Jambor  <mjambor@suse.cz>
11142
11143         tree-optimization/67794
11144         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11145         between types of state,ents but accept original definitions as a
11146         parameter.
11147         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11148         iterate over definitions.
11149
11150 2015-10-09  James Norris  <jnorris@codesourcery.com>
11151
11152         * config/rs6000/rs6000.c (rs6000_offload_options): New.
11153         (TARGET_OFFLOAD_OPTIONS): New.
11154
11155 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
11156
11157         PR middle-end/67891
11158         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11159
11160         PR middle-end/67766
11161         * function.c (expand_function_end): Move return value
11162         promotion past the handling of PARALLELs and CONCATs.
11163
11164         PR rtl-optimization/67828
11165         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11166         (tree_may_unswitch_on): Don't unswitch on expressions
11167         involving undefined values.
11168
11169 2015-10-09  Richard Biener  <rguenther@suse.de>
11170
11171         * genmatch.c (print_operand): Fix formatting.
11172         (dt_node::append_simplify): Warn for multiple simplifiers
11173         that match the same pattern.
11174         * match.pd (log (exp @0)): Remove duplicates.
11175
11176 2015-10-09  Richard Biener  <rguenth@suse.de>
11177
11178         PR target/67366
11179         * gimple-fold.c (optabs-query.h): Include
11180         (gimple_fold_builtin_memory_op): Allow unaligned stores
11181         when movmisalign_optabs are available.
11182
11183 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11184
11185         PR target/67366
11186         * config/arm/arm.md (movmisalign<mode>): New.
11187         * config/arm/iterators.md (HSI): New.
11188
11189 2015-10-09  Richard Biener  <rguenther@suse.de>
11190
11191         PR tree-optimization/67891
11192         * gimple-match.h (gimple_simplified_result_is_gimple_val):
11193         New helper.
11194         (gimple_resimplify1): Declare.
11195         (gimple_resimplify2): Likewise.
11196         (gimple_resimplify3): Likewise.
11197         * gimple-match-head.c (gimple_resimplify1): Export.
11198         (gimple_resimplify2): Likewise.
11199         (gimple_resimplify3): Likewise.
11200         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11201         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11202         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11203         to avoid creating stmts without VN info.
11204
11205 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
11206
11207         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11208         of availability.
11209
11210 2015-10-08  Jeff Law  <law@redhat.com>
11211
11212         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11213         and release_ssa_name in two places.
11214         (gimple_stringop_fixed_value): Similarly.
11215
11216         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11217         release_defs.
11218
11219         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11220         unlink_stmt_vdef and release_ssa_name_fn.
11221
11222         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11223         release_defs.
11224
11225 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
11226
11227         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11228         SSE register save area to 16 bytes only if the incoming stack
11229         boundary is no less than 16 bytes.
11230
11231 2015-10-08  Jeff Law  <law@redhat.com>
11232
11233         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11234         release_ssa_name.  Fix typo in comment.
11235
11236 2015-10-08  Nathan Sidwell  <nathan@acm.org>
11237
11238         * config/nvptx/nvptx.h (struct machine_function): Add comment.
11239         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11240         may return pointer as well as in memory.
11241         (nvptx_output_return): Likewise.
11242
11243 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11244
11245         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11246         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
11247         * match.pd: Add rules previously handled by fold_builtin_sqrt
11248         and fold_builtin_cbrt.
11249
11250 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11251
11252         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11253         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11254         * fold-const.h (tree_unary_nonnegative_warnv_p)
11255         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11256         (tree_expr_nonnegative_warnv_p): Add depth parameters.
11257         * fold-const.c: Include gimple-fold.h and params.h.
11258         (tree_ssa_name_nonnegative_warnv_p): New function.
11259         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11260         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11261         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11262         Add a depth parameter and increment it for recursive calls to
11263         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
11264         to handle SSA names.
11265         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11266         (gimple_stmt_nonnegative_warnv_p): Declare.
11267         * tree-vrp.c (remove_range_assertions): Remove assert that condition
11268         cannot be proven false.
11269         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11270         (gimple_stmt_nonnegative_warnv_p): Move to...
11271         * gimple-fold.c: ...here.  Add depth parameters and pass them
11272         down to the tree routines.  Accept statements that aren't
11273         assignments or calls but just return false for them.
11274         (gimple_val_nonnegative_real_p): Delete.
11275         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11276         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11277         Check HONOR_NANs first.
11278
11279 2015-10-08  Martin Jambor  <mjambor@suse.cz>
11280
11281         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
11282         unnecessary MIN.
11283
11284 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11285
11286         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11287         in the tail of outer-loop.
11288
11289 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
11290
11291         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11292         return UI_NONE.
11293
11294 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11295
11296         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11297         "cfghooks.h", add prototypes for introduced new functions.
11298         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11299         checks on ability of loop unswitching to tree_unswitch_single_loop;
11300         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11301         on innermost loop check.
11302         (tree_unswitch_single_loop): Add all required checks on ability of
11303         loop unswitching under zero recursive level guard.
11304         (tree_unswitch_outer_loop): New function.
11305         (find_loop_guard): Likewise.
11306         (empty_bb_without_guard_p): Likewise.
11307         (used_outside_loop_p): Likewise.
11308         (get_vop_from_header): Likewise.
11309         (hoist_guard): Likewise.
11310         (check_exit_phi): Likewise.
11311
11312 2015-10-08  Marek Polacek  <polacek@redhat.com>
11313
11314         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11315         ops element.
11316
11317 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11318
11319         PR c/65345
11320         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11321         create_tmp_var_raw instead of create_tmp_var.
11322
11323 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
11324
11325         * expr.c (store_expr_with_bounds): Handle aggregate moves from
11326         BLKmode.
11327         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11328         to define gimple type system; compare aggregates only by size.
11329
11330 2015-10-07  Jeff Law  <law@redhat.com>
11331
11332         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11333         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11334         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
11335         unnecessarily.
11336
11337 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11338             Sebastian Pop  <s.pop@samsung.com>
11339
11340         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11341         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11342         (generate_isl_schedule): Same.
11343         * graphite-optimize-isl.c (scop_get_domains): Same.
11344         (apply_schedule_map_to_scop): Same.
11345         * graphite-poly.c (print_iteration_domains): Same.
11346         (remove_gbbs_in_scop): Same.
11347         (new_scop): Same.
11348         (free_scop): Same.
11349         (print_scop): Same.
11350         * graphite-poly.h (struct scop): Rename bbs to pbbs.
11351         (SCOP_BBS): Remove.
11352         * graphite-scop-detection.c (compare_bb_depths): Remove.
11353         (graphite_sort_dominated_info): Remove.
11354         (try_generate_gimple_bb): Move out of scop_detection.
11355         (all_non_dominated_preds_marked_p): Remove.
11356         (build_scop_bbs_1): Remove.
11357         (build_scop_bbs): Remove.
11358         (nb_pbbs_in_loops): Do not use SCOP_BBS.
11359         (find_scop_parameters): Same.
11360         (sese_dom_walker): Rename gather_bbs.
11361         (before_dom_children): Call try_generate_gimple_bb and collect gbb
11362         and pbb.
11363         (build_scops): Call gather_bbs.
11364         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11365         (add_conditions_to_constraints): Same.
11366         (build_scop_iteration_domain): Same.
11367         (build_scop_drs): Same.
11368         (new_pbb_from_pbb): Same.
11369         * sese.c (new_sese_info): Create bbs.
11370         * sese.h (struct sese_info_t): Add bbs.
11371
11372 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
11373
11374         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11375         encoding in 64-bit mode.
11376
11377 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
11378
11379         PR target/66697
11380         * config/i386/i386.c (ix86_option_override_internal): Always use
11381         8-byte minimum stack boundary in 64-bit mode.
11382         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11383         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11384         Add a REG_CFA_EXPRESSION note if needed.
11385         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11386         (ix86_handle_force_align_arg_pointer_attribute): New.
11387         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11388         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11389         with ix86_handle_force_align_arg_pointer_attribute.
11390         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11391
11392 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11393             Sebastian Pop  <s.pop@samsung.com>
11394
11395         * graphite-scop-detection.c (parameter_index_in_region): Remove
11396         use of SESE_ADD_PARAMS.
11397         (find_scop_parameters): Same.
11398         * sese.c (new_sese_info): Same.
11399         * sese.h (struct sese_info_t): Remove add_params.
11400         (SESE_ADD_PARAMS): Remove.
11401
11402 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11403             Sebastian Pop  <s.pop@samsung.com>
11404
11405         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11406         an sese_info_p.
11407         (copy_def): Same.
11408         (copy_internal_parameters): Same.
11409         (translate_isl_ast_to_gimple): Use an sese_l.
11410         (build_iv_mapping): Same.
11411         * graphite-poly.c (new_sese): Rename new_sese_info.
11412         (free_sese): Rename free_sese_info.
11413         * graphite-poly.h (struct scop): Use an sese_info_p.
11414         (scop_set_region): Same.
11415         * graphite-scop-detection.c (struct sese_l): Moved...
11416         (get_entry_bb): Moved...
11417         (get_exit_bb): Moved...
11418         (parameter_index_in_region_1): Use an sese_info_p.
11419         (parameter_index_in_region): Same.
11420         (scan_tree_for_params): Same.
11421         (find_params_in_bb): Same.
11422         (sese_dom_walker): Use an sese_l.
11423         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11424         (reduction_phi_p): Same.
11425         (parameter_index_in_region_1): Use an sese_info_p.
11426         (propagate_expr_outside_region): Use an sese_l.
11427         * graphite.c: Replace uses of SCOP_REGION.
11428         * sese.c (sese_record_loop): Use an sese_info_p.
11429         (build_sese_loop_nests): Same.
11430         (sese_build_liveouts_use): Same.
11431         (sese_build_liveouts_bb): Same.
11432         (sese_build_liveouts_bb): Same.
11433         (sese_bad_liveouts_use): Same.
11434         (sese_reset_debug_liveouts_bb): Same.
11435         (sese_build_liveouts): Same.
11436         (new_sese): Renamed new_sese_info.
11437         (free_sese): Renamed free_sese_info.
11438         (set_rename): Use an sese_info_p.
11439         (graphite_copy_stmts_from_block): Same.
11440         (copy_bb_and_scalar_dependences): Same.
11441         (outermost_loop_in_sese_1): Use an sese_l.
11442         (outermost_loop_in_sese): Same.
11443         (if_region_set_false_region): Use an sese_info_p.
11444         (move_sese_in_condition): Same.
11445         (scalar_evolution_in_region): Use an sese_l.
11446         * sese.h (struct sese_l): ... here.
11447         (SESE_ENTRY): Remove.
11448         (SESE_ENTRY_BB): Remove.
11449         (SESE_EXIT): Remove.
11450         (SESE_EXIT_BB): Remove.
11451         (sese_contains_loop): Use an sese_info_p.
11452         (sese_nb_params): Same.
11453         (bb_in_sese_p): Use an sese_l.
11454         (stmt_in_sese_p): Same.
11455         (defined_in_sese_p): Same.
11456         (loop_in_sese_p): Same.
11457         (sese_loop_depth): Same.
11458         (struct ifsese_s): Use an sese_info_p.
11459         (gbb_loop_at_index): Use an sese_l.
11460         (nb_common_loops): Same.
11461         (scev_analyzable_p): Same.
11462
11463 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11464
11465         * config/i386/i386.c (ix86_conditional_register_usage): Use
11466         CALL_USED_REGISTERS_MASK.
11467         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11468
11469 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11470
11471         PR bootstrap/67385
11472         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11473         * configure: Regenerated.
11474
11475 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11476
11477         PR target/67850
11478         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11479         (ix86_set_current_function): This.
11480         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11481
11482 2015-10-07  Richard Biener  <rguenther@suse.de>
11483
11484         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11485         (vinfo_for_stmt): Adjust.
11486         (set_vinfo_for_stmt): Likewise.
11487         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11488         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11489         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11490         of inner loop.
11491         (vect_analyze_loop_1): Remove.
11492         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11493         inner loop when vectorizing an outer loop by splitting out from ...
11494         (vect_analyze_loop_form): ... here.
11495
11496 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11497
11498         PR c/65345
11499         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11500         Use create_tmp_var_raw instead of create_tmp_var.
11501
11502 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11503
11504         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11505         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11506         * real.c (CACHED_FRACTION): New helper macro.
11507         (dconst_third_ptr): Use it.
11508         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11509         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11510         dconst_sixth.
11511         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11512
11513 2015-10-06  Jeff Law  <law@redhat.com>
11514
11515         PR tree-optimization/67816
11516         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11517         from remove_jump_threads_starting_at.  Accept an edge rather than
11518         a basic block.
11519         * tree-ssa-threadupdate.c (removed_edges): New hash table.
11520         (remove_jump_threads_including): Note edges that get removed from
11521         the CFG for later pruning of jump threading paths including them.
11522         (thread_through_all_blocks): Remove paths which include edges that
11523         have been removed.
11524         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11525         on each outgoing edges when optimizing away a control statement.
11526
11527 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11528
11529         * reorg.c (emit_delay_sequence): Store list of delay slot insns
11530         in a vector instead of rtx_insn_list.
11531         (add_to_delay_list): Likewise.
11532         (delete_from_delay_slot): Likewise.
11533         (optimize_skip): Likewise.
11534         (redirect_with_delay_list_safe_p): Likewise.
11535         (check_annul_list_true_false): Likewise.
11536         (steal_delay_list_from_target): Likewise.
11537         (steal_delay_list_from_fallthrough): Likewise.
11538         (redundant_insn): Likewise.
11539         (fill_simple_delay_slots): Likewise.
11540         (fill_slots_from_thread): Likewise.
11541         (fill_eager_delay_slots): Likewise.
11542         (relax_delay_slots): Likewise.
11543
11544 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
11545
11546         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11547         For -mgpopt=local, also exclude unintialized common symbols.
11548         * doc/invoke.texi (Nios II Options): Document the change.
11549
11550 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11551
11552         * config/aarch64/iterators.md (vwcore): Add missing cases for
11553          V4HF/V8HF modes.
11554
11555 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11556             Sebastian Pop  <s.pop@samsung.com>
11557
11558         * graphite-poly.c (new_scop): Initialize drs.
11559         * graphite-poly.h (struct dr_info): New.
11560         (struct scop): Add drs.
11561         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11562         (pdr_add_memory_accesses): Same.
11563         (build_poly_dr): Same.
11564         (build_alias_set): Same.
11565         (build_scop_drs): Same.
11566         (build_pbb_drs): Remove.
11567         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11568         * tree-data-ref.h (data_reference): Remove alias_set.
11569
11570 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11571             Sebastian Pop  <s.pop@samsung.com>
11572
11573         * graphite-poly.c (free_data_refs_aux): Remove.
11574         (free_gimple_poly_bb): Do not call free_data_refs_aux.
11575         * graphite-poly.h (struct base_alias_pair): Remove.
11576         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11577         base_alias_pair and dr->aux.
11578         (build_alias_set): Same.
11579         * tree-data-ref.c (create_data_ref): Initialize alias_set.
11580         * tree-data-ref.h (data_reference): Add alias_set.
11581
11582 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11583             Sebastian Pop  <s.pop@samsung.com>
11584
11585         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11586         Do not set PDR_BASE_OBJECT_SET.
11587         * graphite-poly.h (poly_dr): Same.
11588         (PDR_BASE_OBJECT_SET): Remove.
11589         (new_poly_dr): Update decl.
11590         * graphite-sese-to-poly.c (build_poly_dr): Update call to
11591         new_poly_dr.
11592         (write_alias_graph_to_ascii_dimacs): Remove.
11593         (write_alias_graph_to_ascii_dot): Remove.
11594         (write_alias_graph_to_ascii_ecc): Remove.
11595         (dr_same_base_object_p): Remove.
11596         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
11597         code.
11598         (build_base_obj_set_for_drs): Remove.
11599         (dump_alias_graphs): Remove.
11600         (build_scop_drs): Remove dead code.
11601
11602 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11603             Peter Bergner  <bergner@vnet.ibm.com>
11604
11605         PR target/67808
11606         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11607         allow registers, but provide insns for the combiner to create for
11608         loads from memory. Separate VSX code from non-VSX code. For
11609         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11610         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11611         so that registers come before memory operations. Drop support from
11612         converting DFmode to TFmode, if the DFmode value is in a GPR
11613         register.
11614         (extenddftf2_fprs): Likewise.
11615         (extenddftf2_internal): Likewise.
11616         (extenddftf2_vsx): Likewise.
11617         (extendsftf2): In the expander, only allow registers, but provide
11618         insns for the combiner to create for stores and loads.
11619
11620 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11621
11622         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11623         from the decl parameter.
11624
11625 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
11626
11627         PR 67861
11628         * gimple-fold.c (gimple_fold_builtin): Add break after
11629         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11630
11631 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
11632
11633         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11634         to scop->isl_context.
11635
11636 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11637
11638         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11639         (output_probe_stack_range): Rotate the loop and simplify.
11640         (thumb1_expand_prologue): Tweak sorry message.
11641         * config/arm/arm.md (probe_stack): Use bare string.
11642
11643 2015-10-06  Nick Clifton  <nickc@redhat.com>
11644
11645         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11646
11647 2015-10-06  Nick Clifton  <nickc@redhat.com>
11648
11649         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11650         (ATTR_PERSIST): New constant.
11651         (msp430_data_attr): New function - verifies an attribute that only
11652         applies to variables.
11653         (msp430_attributes): Add noinit and persistent attributes.
11654         (noinit_section): New variable.
11655         (presis_section): New variable.
11656         (TARGET_ASM_INIT_SECTIONS): Define.
11657         (msp430_init_sections): New function - initialises the noinit and
11658         persist section variables.
11659         (msp430_select_section): Add support for noinit and persist
11660         attributes.
11661         (msp430_section_type_flags): Likewise.
11662         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
11663         and persistent attributes.
11664
11665 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11666             Sebastian Pop  <s.pop@samsung.com>
11667
11668         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11669         (no_violations): Remove.
11670         (subtract_commutative_associative_deps): Remove.
11671         (compute_deps): Do not call subtract_commutative_associative_deps.
11672         (transform_is_safe): Remove.
11673         (graphite_legal_transform): Remove.
11674         * graphite-poly.h (graphite_legal_transform): Remove.
11675
11676 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
11677
11678         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11679         which are in this region are passed so gcc_assert and remove redundant
11680         computation.
11681         * sese.c (sese_build_liveouts): Pass only those bbs which are not
11682         in region.
11683         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11684         gcc_assert on that and remove unnecessary computation.
11685         (sese_build_liveouts_use): Same.
11686
11687 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11688
11689         * graphite-dependences.c (scop_get_reads): Renamed scop->context
11690         to scop->param_context.
11691         (scop_get_must_writes): Same.
11692         (scop_get_may_writes): Same.
11693         (scop_get_original_schedule): Same.
11694         (scop_get_transformed_schedule): Same.
11695         (subtract_commutative_associative_deps): Same.
11696         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11697         (generate_isl_context): Same.
11698         (generate_isl_schedule): Same.
11699         (scop_to_isl_ast): Same.
11700         (graphite_regenerate_ast_isl): Same.
11701         * graphite-optimize-isl.c (scop_get_domains): Same.
11702         (optimize_isl): Renamed scop->context to scop->param_context.
11703         * graphite-poly.c (new_poly_bb): Change the type of argument to
11704         gimple_poly_bb_p.
11705         (new_scop): Renamed scop->context to scop->param_context.
11706         (free_scop): Same.
11707         (print_scop_context): Same.
11708         * graphite-poly.h (new_poly_dr): Change the type of argument from
11709         void* to data_reference_p.
11710         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11711         (new_poly_bb): Change the type of argument from void* to
11712         gimple_poly_bb_p.
11713         (pbb_set_black_box): Same.
11714         (struct scop): Rename context to param_context, ctx to isl_context.
11715         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11716         Move declarations closer to assignment.
11717         (find_params_in_bb): Same.
11718         (find_scop_parameters): Same.
11719         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11720         Global to be used for statement IDs.
11721         (isl_id_for_pbb): Use ssa_name_version_typesize.
11722         (simple_copy_phi_p): Move declarations closer to assignment.
11723         (build_pbb_scattering_polyhedrons): Same.
11724         (build_scop_scattering): Same.
11725         (isl_id_for_ssa_name): Same.
11726         (extract_affine_name): Same.
11727         (extract_affine_int): Same.
11728         (extract_affine): Same.
11729         (set_scop_parameter_dim): Use renamed member.
11730         (build_loop_iteration_domains): Same.
11731         (add_param_constraints): Same.
11732         (build_scop_iteration_domain): Same.
11733         (pdr_add_data_dimensions): Same.
11734         (build_poly_dr): Same.
11735         (build_scop_drs): Move declarations closer to assignment.
11736         (analyze_drs_in_stmts): Same.
11737         (insert_out_of_ssa_copy): Same.
11738         (insert_out_of_ssa_copy_on_edge): Same.
11739         (propagate_expr_outside_region): Same.
11740         (rewrite_phi_out_of_ssa): Same.
11741         (rewrite_degenerate_phi): Same.
11742         (rewrite_reductions_out_of_ssa): Same.
11743         (rewrite_cross_bb_scalar_dependence): Same.
11744         (handle_scalar_deps_crossing_scop_limits): Same.
11745         (rewrite_cross_bb_scalar_deps): Same.
11746         * graphite.c (graphite_transform_loops): Use renamed member.
11747
11748 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
11749
11750         PR c/65345
11751         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11752         create_tmp_var_raw instead of create_tmp_var.
11753
11754 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11755
11756         PR c/65345
11757         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11758         Use create_tmp_var_raw instead of create_tmp_var.
11759
11760 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
11761
11762         PR target/67849
11763         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11764         split for upper-bank registers when target does not support
11765         AVX512VL.
11766         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11767         split when target does not support AVX512VL.
11768
11769 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
11770
11771         PR c/65345
11772         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11773         Adjust to use create_tmp_var_raw instead of create_tmp_var.
11774
11775 2015-10-06  Nick Clifton  <nickc@redhat.com>
11776
11777         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11778         multiplication.
11779
11780 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11781
11782         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11783         (case ${target}): Add znver1.
11784         * config/i386/cpuid.h(bit_CLZERO):  Define.
11785         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11786         -march=native recognize znver1 processors.
11787         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11788         znver1, clzero def_and_undef.
11789         * config/i386/i386.c (struct processor_costs znver1_cost): New.
11790         (m_znver1): New definition.
11791         (m_AMD_MULTIPLE): Includes m_znver1.
11792         (processor_target_table): Add znver1 entry.
11793         (ix86_target_string) : Add clzero entry.
11794         (static const char *const cpu_names): Add znver1 entry.
11795         (ix86_option_override_internal): Add znver1 instruction sets.
11796         (PTA_CLZERO) :  New definition.
11797         (ix86_option_override_internal): Handle new clzerooption.
11798         (ix86_issue_rate): Add znver1.
11799         (ix86_adjust_cost): Add znver1.
11800         (ia32_multipass_dfa_lookahead): Add znver1.
11801         (has_dispatch): Add znver1.
11802         * config/i386/i386.h (TARGET_znver1): New definition.
11803         (TARGET_CLZERO): Define.
11804         (TARGET_CLZERO_P): Define.
11805         (struct ix86_size_cost): Add TARGET_ZNVER1.
11806         (enum processor_type): Add PROCESSOR_znver1.
11807         * config/i386/i386.md (define_attr "cpu"): Add znver1.
11808         (set_attr znver1_decode): New definitions for znver1.
11809         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11810         (mclzero): New.
11811         * config/i386/mmx.md (set_attr znver1_decode): New definitions
11812         for znver1.
11813         * config/i386/sse.md (set_attr znver1_decode): Likewise.
11814         * config/i386/x86-tune.def:  Add znver1 tunings.
11815         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11816         * doc/invoke.texi: Add details about znver1
11817
11818 2015-10-06  Richard Biener  <rguenther@suse.de>
11819
11820         PR tree-optimization/67859
11821         * tree-ssa-pre.c (create_expression_by_pieces): Properly
11822         discard not inserted stmts.
11823
11824 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
11825
11826         * doc/extend.texi (Template Instantiation): Reorder options and
11827         de-emphasize -frepo.
11828         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11829         example instead of -frepo.
11830
11831 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11832
11833         PR c/65345
11834         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11835         use create_tmp_var_raw rather than create_tmp_var.
11836
11837 2015-10-06  Richard Biener  <rguenther@suse.de>
11838
11839         * tree-vectorizer.h (vec_info): New base class for...
11840         (_loop_vec_info): ... this and ...
11841         (_bb_vec_info): ... this.
11842         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11843         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11844         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11845         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11846         vect_destroy_datarefs): Adjust interface to take a vec_info *
11847         rather than both a loop_vec_info and a bb_vec_info argument.
11848         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11849         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11850         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11851         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11852         accordingly.
11853         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11854         (destroy_loop_vec_info, vect_analyze_loop_2,
11855         vect_is_simple_reduction_1, get_initial_def_for_induction,
11856         vect_create_epilog_for_reduction, vectorizable_reduction,
11857         vectorizable_live_operation, vect_transform_loop): Adjust.
11858         * tree-vect-patterns.c (type_conversion_p,
11859         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11860         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11861         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11862         check_bool_pattern, vect_recog_bool_pattern,
11863         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11864         * tree-vect-slp.c (vect_get_and_check_slp_defs,
11865         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11866         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11867         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11868         (new_bb_vec_info): Initialize base classs.
11869         * tree-vect-stmts.c (record_stmt_cost, process_use,
11870         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11871         vectorizable_mask_load_store, vectorizable_call,
11872         vectorizable_simd_clone_call, vectorizable_conversion,
11873         vectorizable_assignment, vectorizable_shift,
11874         vectorizable_operation, vectorizable_store,
11875         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11876         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11877         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11878
11879 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11880
11881         PR c/65345
11882         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11883         create_tmp_var_raw rather than create_tmp_var.
11884
11885 2015-10-05  Marek Polacek  <polacek@redhat.com>
11886
11887         * tree-ssa-loop-im.c
11888         (move_computations_dom_walker::before_dom_children): Don't set
11889         SSA_NAME_ANTI_RANGE_P.
11890         * tree-ssa-phiopt.c (value_replacement): Likewise.
11891
11892 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11893             Sebastian Pop  <s.pop@samsung.com>
11894
11895         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11896
11897 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11898             Sebastian Pop  <s.pop@samsung.com>
11899
11900         * graphite-poly.c (new_gimple_poly_bb): ... here.
11901         (free_data_refs_aux): ... here.
11902         (free_gimple_poly_bb): ... here.
11903         (remove_gbbs_in_scop): ... here.
11904         (new_scop): Call new_sese.
11905         (free_scop): Call remove_gbbs_in_scop and free_sese.
11906         * graphite-poly.h (base_alias_pair): ... here.
11907         (new_gimple_poly_bb): Declare.
11908         (free_gimple_poly_bb): Declare.
11909         * graphite-scop-detection.c (parameter_index_in_region_1):
11910         (parameter_index_in_region): ... here.
11911         (scan_tree_for_params): ... here.
11912         (find_params_in_bb): ... here.
11913         (find_scop_parameters): ... here.
11914         (build_scops): Call find_scop_parameters.
11915         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11916         (free_scops): Move...
11917         (single_pred_cond_non_loop_exit): Move...
11918         (sese_dom_walker::before_dom_children): Move...
11919         (sese_dom_walker::after_dom_children): Move...
11920         (build_poly_scop): Move...
11921         * graphite-sese-to-poly.h (base_alias_pair): Move...
11922         * graphite.c (free_scops): ... here.
11923
11924 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11925             Sebastian Pop  <s.pop@samsung.com>
11926
11927         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11928         (trivially_empty_bb_p): Move...
11929         (same_close_phi_node): Move...
11930         (new_gimple_poly_bb): Move...
11931         (compare_bb_depths): Move...
11932         (graphite_sort_dominated_info): Move...
11933         (remove_duplicate_close_phi): Move...
11934         (make_close_phi_nodes_unique): Move...
11935         (canonicalize_loop_closed_ssa): Move...
11936         (canonicalize_loop_closed_ssa_form): Move...
11937         (loop_ivs_can_be_represented): Move...
11938         (single_pred_cond_non_loop_exit): Move...
11939         (graphite_can_represent_init): Move...
11940         (graphite_can_represent_scev): Move...
11941         (stmt_has_simple_data_refs_p): Move...
11942         (stmt_has_side_effects):  Move...
11943         (graphite_can_represent_stmt): Move...
11944         (scop_detection): ... here.
11945         (sese_dom_walker): ... and here.
11946         (build_scops): Call all moved functions.
11947         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11948         (all_non_dominated_preds_marked_p): Move...
11949         (build_scop_bbs_1): Move...
11950         (build_scop_bbs): Move...
11951         (set_scop_parameter_dim): Move...
11952         (nb_pbbs_in_loops): Move...
11953         (build_poly_scop): Do not call all the moved functions.
11954
11955 2015-10-05  Martin Jambor  <mjambor@suse.cz>
11956             Jan Hubicka  <hubicka@ucw.cz>
11957
11958         * ipa-cp.c (ipcp_alignment_lattice): New type.
11959         (ipcp_param_lattices): Use the above to represent alignment.
11960         (ipcp_alignment_lattice::print): New function.
11961         (print_all_lattices): Use it to print alignment information.
11962         (ipcp_alignment_lattice::top_p): New function.
11963         (ipcp_alignment_lattice::bottom_p): Likewise.
11964         (ipcp_alignment_lattice::set_to_bottom): Likewise.
11965         (ipcp_alignment_lattice::meet_with_1): Likewise.
11966         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11967         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11968         (initialize_node_lattices): Likewise.
11969         (propagate_alignment_accross_jump_function): Work with the new class
11970         for alignment lattices.
11971         (propagate_constants_accross_call): Pass only the alignment lattice to
11972         propagate_alignment_accross_jump_function.
11973         (ipcp_store_alignment_results): Work with the new class for alignment
11974         lattices.
11975
11976 2015-10-05  Marek Polacek  <polacek@redhat.com>
11977
11978         PR tree-optimization/67821
11979         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11980
11981 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
11982
11983         PR other/65021
11984         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11985         function to...
11986         (mkoffload_cleanup): ... this.  Adjust all users.
11987         (maybe_unlink): Look at save_temps and verbose flags instead of
11988         debug flag.
11989         (main): Parse "-save-temps" flag.
11990         (generate_target_descr_file, generate_target_offloadend_file)
11991         (generate_host_descr_file, prepare_target_image): Pass it on.
11992         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11993         (mkoffload_cleanup): New function.
11994         (maybe_unlink): Look at save_temps and verbose flags instead of
11995         debug flag.
11996         (main): Instead of calling utils_cleanup, register atexit handler
11997         for mkoffload_cleanup.
11998         (main): Parse "-save-temps" flag.
11999         (compile_native, main): Pass it on.
12000         * lto-wrapper.c (compile_offload_image): Likewise.
12001
12002 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12003
12004         * gimple.h (gimple_op_ptr): Require a non const gimple *.
12005         (gimple_assign_lhs_ptr): Likewise.
12006         (gimple_assign_rhs1_ptr): Likewise.
12007         (gimple_assign_rhs2_ptr): Likewise.
12008         (gimple_assign_rhs3_ptr): Likewise.
12009         (gimple_call_lhs_ptr): Likewise.
12010         (gimple_call_fn_ptr): Likewise.
12011         (gimple_call_chain_ptr): Likewise.
12012                 (gimple_call_arg_ptr): Likewise.
12013                 (gimple_cond_lhs_ptr): Likewise.
12014         (gimple_cond_rhs_ptr): Likewise.
12015         (gimple_switch_index_ptr): Likewise.
12016         (gimple_return_retval_ptr): Likewise.
12017
12018 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12019
12020         * gimple.h (gimple_asm_input_op_ptr): Remove.
12021         (gimple_asm_output_op_ptr): Likewise.
12022
12023 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12024
12025         * gimple.h (gimple_location_ptr): Remove.
12026         * tree-vrp.c (check_all_array_refs): Adjust.
12027
12028 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12029
12030         * tree-ssa-operands.c (build_uses): store tree * instead of
12031         tree.
12032         (finalize_ssa_uses): Adjust.
12033         (append_use): Likewise.
12034         (verify_ssa_operands): Likewise.
12035
12036 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12037
12038         * real.h (build_real_truncate): Declare.
12039         * tree.c (build_real_truncate): New function.
12040         (strip_float_extensions): Use it.
12041         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12042         (fold_builtin_hypot, fold_builtin_pow): Likewise.
12043         * match.pd: Likewise.
12044
12045 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12046            Jiong Wang  <jiong.wang@arm.com>
12047
12048         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12049
12050 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12051
12052         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12053         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12054         (aarch64_print_operand, aarch64_float_const_representable_p)
12055         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12056         instead of REAL_VALUE_FROM_CONST_DOUBLE.
12057         * config/arc/arc.c (arc_print_operand): Likewise.
12058         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12059         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12060         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12061         Likewise.
12062         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12063         (consttable_16): Likewise.
12064         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12065         * config/avr/avr.c (avr_print_operand): Likewise.
12066         * config/bfin/bfin.md: Likewise (in a define_split).
12067         * config/c6x/c6x.md: Likewise (in a define_split).
12068         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12069         (cr16_print_operand): Likewise.
12070         * config/cris/cris.c (cris_print_operand): Likewise.
12071         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12072         * config/fr30/fr30.c (fr30_print_operand): Likewise.
12073         (fr30_const_double_is_zero): Likewise.
12074         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12075         * config/frv/frv.md: Likewise (in a define_split).
12076         * config/frv/predicates.md (int_2word_operand): Likewise.
12077         * config/h8300/h8300.c (h8300_print_operand): Likewise.
12078         * config/i386/i386.c (standard_80387_constant_p): Likewise.
12079         (ix86_print_operand, ix86_split_to_parts): Likewise.
12080         * config/i386/i386.md: Likewise (in a define_split).
12081         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12082         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12083         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12084         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12085         (print_operand): Likewise.
12086         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12087         * config/mep/mep.md: Likewise (in define_split).
12088         * config/microblaze/microblaze.c (microblaze_const_double_ok)
12089         (print_operand): Likewise.
12090         * config/mips/mips.md (consttable_float): Likewise.
12091         * config/mmix/mmix.c (mmix_intval): Likewise.
12092         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12093         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12094         * config/pa/pa.c (pa_singlemove_string): Likewise.
12095         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12096         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12097         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12098         (output_toc): Likewise.
12099         * config/rs6000/rs6000.md: Likewise (in define_splits).
12100         * config/rx/rx.c (rx_print_operand): Likewise.
12101         * config/s390/s390.c (s390_output_pool_entry): Likewise.
12102         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12103         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12104         (and also in define_splits).
12105         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12106         (fp_high_losum_p): Likewise.
12107         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12108         (*movsf_high): Likewise.
12109         * config/spu/spu.c (const_double_to_hwint): Likewise.
12110         * config/v850/v850.c (const_double_split): Likewise.
12111         * config/vax/vax.c (vax_float_literal): Likewise.
12112         * config/visium/visium.c (visium_expand_copysign): Likewise.
12113         * config/visium/visium.md: Likewise (in define_split).
12114         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12115         * config/xtensa/xtensa.c (print_operand): Likewise.
12116         (xtensa_output_literal): Likewise.
12117         * cprop.c (implicit_set_cond_p): Likewise.
12118         * dwarf2out.c (insert_float): Likewise.
12119         * expmed.c (expand_mult, make_tree): Likewise.
12120         * expr.c (compress_float_constant): Likewise.
12121         * rtlanal.c (split_double): Likewise.
12122         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12123         (simplify_const_unary_operation, simplify_binary_operation_1)
12124         (simplify_const_binary_operation): Likewise.
12125         (simplify_const_relational_operation): Likewise.
12126         * varasm.c (output_constant_pool_2): Likewise.
12127
12128 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12129
12130         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12131         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12132         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12133         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12134         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12135         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12136         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12137         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12138         (ix86_emit_swsqrtsf): Likewise.
12139         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12140         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12141         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12142         * config/pa/pa.c (pa_expand_builtin): Likewise.
12143         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12144         (rs6000_scale_v2df): Likewise.
12145         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12146         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12147         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12148         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12149         (vec_ctul): Likewise.
12150         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12151         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12152         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12153         * cse.c (fold_rtx): Likewise.
12154         * emit-rtl.c (immed_double_const): Likewise (in comments).
12155         (init_emit_once): Likewise.
12156         * expr.c (compress_float_constant, expand_expr_real_1)
12157         (const_vector_from_tree): Likewise.
12158         * optabs.c (expand_float, expand_fix): Likewise.
12159         * reg-stack.c (reg_to_stack): Likewise.
12160         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12161         (simplify_const_unary_operation, simplify_binary_operation_1)
12162         (simplify_const_binary_operation, simplify_relational_operation)
12163         (simplify_immed_subreg): Likewise.
12164
12165 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12166
12167         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12168         * doc/tm.texi: Regenerate.
12169         * real.h (REAL_ARITHMETIC): Delete.
12170         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12171         (ix86_expand_round_sse4): Use real_arithmetic instead of
12172         REAL_ARITHMETIC.
12173         * config/i386/sse.md (round<mode>2): Likewise.
12174         * rtl.h (rtx_to_tree_code): Likewise (in comment).
12175         * explow.c (rtx_to_tree_code): Likewise (in comment).
12176         * match.pd: Likewise.
12177         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12178         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12179         (expand_pow_as_sqrts): Likewise.
12180         * tree-pretty-print.c (dump_generic_node): Remove code that
12181         was conditional on REAL_ARITHMETIC being undefined.
12182
12183 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12184
12185         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12186         * doc/tm.texi: Regenerate.
12187         * real.h (real_less): Declare.
12188         (REAL_VALUES_LESS): Delete.
12189         * real.c (real_less): New function.
12190         (real_compare): Use it.
12191         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12192         of REAL_VALUES_LESS.
12193         * config/microblaze/microblaze.c (microblaze_const_double_ok):
12194         Likewise.
12195         * fold-const.c (fold_convert_const_int_from_real): Likewise.
12196         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12197         (simplify_const_relational_operation): Likewise.
12198         * tree-call-cdce.c (check_pow): Likewise.
12199         (gen_conditions_for_pow_cst_base): Likewise.
12200
12201 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12202
12203         * real.h (REAL_VALUES_IDENTICAL): Delete.
12204         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12205         instead of REAL_VALUES_IDENTICAL.
12206         * fold-const.c (operand_equal_p): Likewise.
12207         * ipa-icf.c (sem_variable::equals): Likewise.
12208         * tree-complex.c (some_nonzerop): Likewise.
12209         (expand_complex_multiplication): Likewise.
12210         * tree.c (simple_cst_equal): Likewise.
12211         * varasm.c (compare_constant): Likewise.
12212
12213 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12214
12215         * real.h (real_equal): Declare.
12216         (REAL_VALUES_EQUAL): Delete.
12217         * real.c (real_equal): New function.
12218         (real_compare): Use it.
12219         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12220         * doc/tm.texi: Regenerate.
12221         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12222         real_equal instead of REAL_VALUES_EQUAL.
12223         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12224         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12225         (fp_const_from_val): Likewise.
12226         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12227         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12228         (floating_exact_log2): Likewise.
12229         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12230         * config/vax/vax.c (vax_float_literal): Likewise.
12231         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12232         * cprop.c (implicit_set_cond_p): Likewise.
12233         * expmed.c (expand_mult): Likewise.
12234         * fold-const.c (const_binop): Likewise.
12235         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12236         (simplify_const_binary_operation): Likewise.
12237         (simplify_const_relational_operation): Likewise.
12238         * tree-call-cdce.c (check_pow): Likewise.
12239         (gen_conditions_for_pow_cst_base): Likewise.
12240         * tree-inline.c (estimate_num_insns): Likewise.
12241         * tree-ssa-dom.c (record_equality): Likewise.
12242         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12243         (gimple_expand_builtin_pow): Likewise.
12244         (pass_optimize_widening_mul::execute): Likewise.
12245         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12246         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12247         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12248
12249 2015-10-05  Richard Biener  <rguenther@suse.de>
12250
12251         PR ipa/67783
12252         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12253         consider loop header PHI defs as IVs.
12254
12255 2015-10-05  Richard Biener  <rguenther@suse.de>
12256
12257         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12258         call handling ...
12259         (create_expression_by_pieces): ... here and build GIMPLE
12260         calls directly.  Use gimple_build API and avoid force_gimple_operand.
12261         (insert_into_preds_of_block): Simplify.
12262         (do_regular_insertion): Add comment.
12263
12264 2015-10-04  Jason Merrill  <jason@redhat.com>
12265
12266         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12267
12268 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
12269
12270         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12271         check for general register.
12272         (ix86_emit_save_regs): Ditto.
12273         (ix86_emit_save_regs_using_mov): Ditto.
12274         (ix86_emit_restore_regs_using_pop): Ditto.
12275         (ix86_emit_restore_regs_using_mov): Ditto.
12276
12277 2015-10-03  Marek Polacek  <polacek@redhat.com>
12278
12279         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12280         (insn-dfatab.o): Likewise.
12281
12282 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
12283
12284         * config.gcc (xtensa*-*-uclinux*): New configuration.
12285         * config/xtensa/uclinux.h: New file.
12286         * config/xtensa/uclinux.opt: New file.
12287
12288 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
12289
12290         * doc/cpp.texi (Standard Predefined Macros): Document value of
12291         __cplusplus for C++14.
12292
12293 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
12294
12295         * gcc.c (process_command): Use spec_machine rather than
12296         spec_host_machine to build tooldir_prefix2.
12297
12298 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12299             Bernd Schmidt  <bernds@codesourcery.com>
12300
12301         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12302         (Token, Stmt): Remove structs.
12303         (decls, vars, fns): Remove variables.
12304         (alloc_comment, append_stmt, is_keyword): Remove macros.
12305         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12306         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12307         (parse_init, parse_file): Remove functions.
12308         (read_file): Accept a pointer to a length and store into it.
12309         (process): Don't try to parse the input file, just write it out as
12310         a string, but looking for maps.  Also write out the length.
12311         (main): Don't use "-S" to compile PTX code.
12312
12313 2015-10-02  Jeff Law  <law@redhat.com>
12314
12315         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12316         fixups.
12317
12318 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12319
12320         PR target/67822
12321         * config/nvptx/mkoffload.c (main): Scan the argument vector for
12322         -fopenmp, and skip generating an offloading image if specified.
12323
12324 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
12325
12326         * system.h (ROUND_UP): New macro definition.
12327         (ROUND_DOWN): Ditto.
12328         * ggc-page.c (ROUND_UP): Remove local macro definition.
12329         (PAGE_ALIGN): Implement using ROUND_UP macro.
12330
12331         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12332         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12333         to align values.
12334         (ix86_compute_frame_layout): Ditto.
12335         (ix86_expand_prologue): Ditto.
12336         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12337         to round down values.
12338         (expand_set_or_movmem_via_rep): Ditto.
12339
12340 2015-10-02  Marek Polacek  <polacek@redhat.com>
12341
12342         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12343
12344 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
12345
12346         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12347         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12348         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12349         (free_gimple_bb): Renamed free_gimple_poly_bb.
12350         (try_generate_gimple_bb): Hoist loop invariant code.
12351         (analyze_drs_in_stmts): Same.
12352         (build_scop_drs): Call renamed functions.
12353         (new_pbb_from_pbb): Same.
12354         (scop_ivs_can_be_represented): Delete as functionality now moved to
12355         graphite-scop-detection.c
12356         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12357
12358 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
12359
12360         * graphite-scop-detection.c (stmt_has_side_effects): New function
12361           outlined from stmt_simple_for_scop_p.
12362         (graphite_can_represent_stmt): Same.
12363         (stmt_simple_for_scop_p): Moved code out of this function for better
12364         readability.
12365
12366 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12367
12368         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12369         F_AVX512IFMA.
12370         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12371
12372 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12373
12374         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12375
12376 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12377
12378         PR rtl-optimization/67756
12379         * lra-constraints.c (match_reload): Add a new parameter.  Use it
12380         for creating a pseudo with the same value.
12381         (curr_insn_transform): Pass a new argument to match_reload.
12382
12383 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12384
12385         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12386         (expand_vec_perm_even_odd_1): Handle V64QImode.
12387         (ix86_expand_vec_perm_const_1): Try expansion with
12388         expand_vec_perm_even_odd_trunc as well.
12389         * config/i386/sse.md (VI124_AVX512F): Rename to ...
12390         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12391         to V54QI.
12392         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12393         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12394         to V32HI and V16SI.
12395         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12396         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12397         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12398         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12399         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12400         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12401
12402 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12403
12404         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12405         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12406
12407 2015-10-02  Jason Merrill  <jason@redhat.com>
12408
12409         PR c/59218
12410         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12411         (diagnose_tm_1_op): Also diagnose volatile accesses in
12412         transaction_safe function.
12413
12414 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
12415
12416         * system.h (malloc.h): Don't include obsolete header.
12417
12418 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12419
12420         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12421         (TLS_SECTION_ASM_FLAG): Delete.
12422
12423 2015-10-02  Marek Polacek  <polacek@redhat.com>
12424
12425         PR c/64249
12426         * doc/invoke.texi: Document -Wduplicated-cond.
12427         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12428         (insn-dfatab.o): Likewise.
12429         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12430         warning.
12431
12432 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
12433
12434         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12435         sequences.
12436
12437 2015-10-02  Renlin Li  <renlin.li@arm.com>
12438
12439         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12440
12441 2015-10-02  Renlin Li  <renlin.li@arm.com>
12442
12443         PR target/66776
12444         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12445
12446 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12447
12448         PR rtl-optimization/67786
12449         PR rtl-optimization/67787
12450         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12451         it modifies a reg used in the condition calculation.
12452
12453 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
12454
12455         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12456         alternatives for reads from memory and moves from general-purpose
12457         registers.
12458         (*aarch64_combinez_be<mode>): Likewise.
12459
12460 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
12461
12462         PR target/51726
12463         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12464         selectany within this function without need to keep attribute.
12465         (i386_pe_encode_section_info): Remove selectany-code.
12466
12467 2015-10-02  Richard Biener  <rguenther@suse.de>
12468
12469         * tree-ssa-sccvn.c (has_VN_INFO): New function.
12470         (free_scc_vn): Use it.
12471         (visit_use): Remove dead code and refactor to use gassign
12472         and use less indentation.
12473
12474 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12475
12476         PR target/67788
12477         PR target/67789
12478         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12479         (rs6000_cannot_copy_insn_p): New function.
12480         * config/rs6000/rs6000.md (cannot_copy): New attribute.
12481         (load_toc_v4_PIC_1_normal): Set cannot_copy.
12482         (load_toc_v4_PIC_1_476): Ditto.
12483
12484 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12485
12486         * graphite-scop-detection.c (struct sese_l): New conversion constructor
12487         so that this type can be pushed into a vec.
12488         (class scop_builder): use sese_l to collect scops.
12489         (get_scops): New getter function.
12490         (remove_intersecting_scops): Use sese_l instead of scops_p.
12491         (intersects): Same.
12492         (add_scop): Same.
12493         (subsumes): Same.
12494         (remove_subscops): Same.
12495         (build_scops): Add scops to vec<scops_p> once all the scops have been
12496         detected.
12497
12498 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12499
12500         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12501         Renamed type from gimple_bb_p to gimple_poly_bb_p.
12502         (translate_isl_ast_node_user): Same.
12503         * graphite-poly.c (new_poly_bb): Same.
12504         * graphite-poly.h (gbb_from_bb): Same.
12505         * sese.h: Same.
12506         * graphite-sese-to-poly.c (new_gimple_bb):
12507         gimple_bb_p -> gimple_poly_bb_p
12508         (build_scop_scattering): Same.
12509         (find_params_in_bb): Same.
12510         (add_conditions_to_domain): Same.
12511         (sese_dom_walker::before_dom_children): Same.
12512         (analyze_drs_in_stmts): Same.
12513         (new_pbb_from_pbb): Same.
12514         (free_data_refs_aux): New pointer to type base_alias_pair.
12515         * graphite-sese-to-poly.h: Same.
12516         * sese.c (if_region_set_false_region): Fixed Indentation.
12517         (move_sese_in_condition): Same.
12518
12519 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12520             Aditya Kumar  <aditya.k7@samsung.com>
12521
12522         PR tree-optimization/66980
12523         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12524         when data reference analysis has failed.
12525
12526 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12527             Aditya Kumar  <aditya.k7@samsung.com>
12528
12529         PR tree-optimization/67754
12530         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12531         scev analysis on the same loop nest as analyze_drs_in_stmts.
12532         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12533         renamed...
12534         (try_generate_gimple_bb): Call outermost_loop_in_sese.
12535         (analyze_drs_in_stmts): Same.
12536         * sese.c (outermost_loop_in_sese): ...here.
12537
12538 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12539             Aditya Kumar  <aditya.k7@samsung.com>
12540
12541         PR tree-optimization/67754
12542         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12543         recursion on the inner loops.
12544
12545 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12546
12547         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12548         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12549         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12550         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12551         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12552
12553 2015-10-01  Marek Polacek  <polacek@redhat.com>
12554
12555         PR c/65345
12556         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12557         create_tmp_var_raw rather than create_tmp_var.
12558
12559 2015-10-01  Marek Polacek  <polacek@redhat.com>
12560
12561         PR tree-optimization/67769
12562         * tree-ssa-phiopt.c (conditional_replacement): Call
12563         reset_flow_sensitive_info_in_bb.
12564         (minmax_replacement): Likewise.
12565         (abs_replacement): Likewise.
12566
12567 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
12568
12569         * builtins.c: Don't include gomp-constants.h.
12570         (fold_builtin_1): Don't fold acc_on_device here.
12571         * gimple-fold.c: Include gomp-constants.h.
12572         (gimple_fold_builtin_acc_on_device): New.
12573         (gimple_fold_builtin): Call it.
12574
12575 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12576
12577         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12578         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12579
12580 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
12581
12582         * config/arm/aarch-common-protos.h
12583         (aarch_accumulator_forwarding): New.
12584         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12585         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12586         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12587         * config/arm/cortex-a53.md: Rewrite.
12588
12589 2015-10-01  Richard Biener  <rguenther@suse.de>
12590
12591         * gimple-match.h (mprts_hook): Declare.
12592         * gimple-match.head.c (mprts_hook): Define.
12593         (maybe_push_res_to_seq): Use new hook.
12594         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12595         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12596         (vn_ssa_aux::has_constants): Remove.
12597         * tree-ssa-sccvn.c: Include gimple-match.h.
12598         (VN_INFO_GET): Assert we don't re-use SSA names.
12599         (vn_get_expr_for): Remove.
12600         (expr_has_constants): Likewise.
12601         (stmt_has_constants): Likewise.
12602         (simplify_binary_expression): Likewise.
12603         (simplify_unary_expression): Likewise.
12604         (vn_lookup_simplify_result): New hook.
12605         (visit_copy): Adjust.
12606         (visit_reference_op_call): Likewise.
12607         (visit_phi): Likewise.
12608         (visit_use): Likewise.
12609         (process_scc): Likewise.
12610         (init_scc_vn): Likewise.
12611         (visit_reference_op_load): Likewise.  Use match-and-simplify and
12612         a gimple seq for inserted expressions.
12613         (try_to_simplify): Remove GENERIC stmt combining code.
12614         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12615         * tree-ssa-pre.c (eliminate_insert): Adjust.
12616         (eliminate_dom_walker::before_dom_children): Likewise.
12617
12618 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12619
12620         * doc/invoke.texi (Optimization Options): Add
12621         -freorder-blocks-algorithm=.
12622         (Optimize Options) <-O>: Add -freorder-blocks.
12623         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
12624         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12625         <-freorder-blocks>: Also enabled at levels -O and -Os.
12626         <-freorder-blocks-algorithm=>: Document new option.
12627
12628 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12629
12630         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12631         with flag_reorder_blocks_algorithm.
12632         * common.opt (freorder-blocks-algorithm=): New flag.
12633         (reorder_blocks_algorithm): New enum.
12634         * flag-types.h (reorder_blocks_algorithm): New enum.
12635         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12636         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12637
12638 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12639
12640         * bb-reorder.c: Add intro comment.
12641         (reorder_basic_blocks_software_trace_cache): Print a header to
12642         the dump file.
12643         (edge_order): New function.
12644         (reorder_basic_blocks_simple): New function.
12645         (reorder_basic_blocks): Choose between the STC and the simple
12646         algorithms (always choose the former).
12647
12648 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12649
12650         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12651         function, factored out from ...
12652         (reorder_basic_blocks): ... here.
12653
12654 2015-10-01  Tom de Vries  <tom@codesourcery.com>
12655
12656         * tree-cfg.c (dump_function_to_file): Dump function attributes using
12657         __attribute__(()) string.  Move dumping of function attributes to before
12658         function name.
12659
12660 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
12661
12662         PR target/66870
12663         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12664         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12665         based on gold linker version.
12666         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12667         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12668         * configure, config.in: Regenerate.
12669
12670 2015-10-01  Alan Modra  <amodra@gmail.com>
12671
12672         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12673         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12674         (rs6000_output_mi_thunk): Likewise.
12675
12676 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12677
12678         * config/nvptx/mkoffload.c (process): Change offload data format.
12679
12680 2015-09-30  Jeff Law  <law@redhat.com>
12681
12682         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12683         with constant conditions.
12684         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12685         (remove_ctrl_stmt_and_useless_edges): No longer static.
12686         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12687         (remove_ctrl_stmt_and_useless_edges): Likewise.
12688
12689 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12690             Cesar Philippidis  <cesar@codesourcery.com>
12691
12692         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12693         (TARGET_GOACC_VALIDATE_DIMS): Override.
12694         * target.def (TARGET_GOACC): New target hook prefix.
12695         (validate_dims): New hook.
12696         * targhooks.h (default_goacc_validate_dims): New.
12697         * omp-low.c (oacc_validate_dims): New.
12698         (execute_oacc_device_lower): New.
12699         (default_goacc_validate_dims): New.
12700         (pass_data_oacc_device_lower): New.
12701         (pass_oacc_device_lower): New pass.
12702         (make_pass_oacc_device_lower): New.
12703         * tree-pass.h (make_pass_oacc_device_lower): Declare.
12704         * passes.def (pass_oacc_device_lower): Add it.
12705         * doc/tm.texi: Rebuilt.
12706         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12707         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12708
12709 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12710
12711         PR rtl-optimization/67037
12712         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12713
12714 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
12715
12716         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12717         * passes.c: Include tree-ssanames.h.
12718         (execute_function_todo): Flush the pending free SSA_NAMEs after
12719         eliminating unreachable basic blocks.
12720         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12721         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12722         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12723         (flush_ssanames_freelist): New function.
12724         (release_ssaname_fn): Put released names on the queue.
12725         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12726         * tree-ssanames.h (flush_ssanames_freelist): Declare.
12727
12728 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12729
12730         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12731         (generate_target_descr_file, generate_target_offloadend_file)
12732         (generate_host_descr_file, prepare_target_image): Pass it on.
12733         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12734         (compile_native, main): Pass it on.
12735         * lto-wrapper.c (compile_offload_image): Likewise.
12736
12737 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12738             Ilya Verbin  <ilya.verbin@intel.com>
12739             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12740
12741         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12742         (prepare_target_image, main): Refactor argv building to use
12743         obstacks.
12744
12745 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12746
12747         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12748         * config/spu/spu.c (spu_expand_atomic_op): New function.
12749         * config/spu/spu.md (AINT): New mode iterator.
12750         (ATOMIC): New code iterator.
12751         (atomic_name, atomic_pred): New code predicates.
12752         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12753         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12754         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12755         "atomic_<atomic_name>_fetch<mode>"): Likewise.
12756
12757 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
12758
12759         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12760         debug insns.
12761         (scalar_chain::convert_reg): Likewise.
12762
12763 2015-09-30  Richard Biener  <rguenther@suse.de>
12764
12765         * builtins.c: Add comment that no new simplifications should
12766         be added here.
12767
12768 2015-09-30  Marek Polacek  <polacek@redhat.com>
12769
12770         PR tree-optimization/67690
12771         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12772         reset_flow_sensitive_info_in_bb.
12773         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12774         * tree-ssanames.c: Include "gimple-iterator.h".
12775         (reset_flow_sensitive_info_in_bb): New function.
12776         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12777
12778 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12779
12780         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12781         variable, replacing it with...
12782         (offload_abi): ... this new variable.  Adjust all users.
12783         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12784
12785 2015-09-30  Matthias Klose  <doko@ubuntu.com>
12786
12787         * configure.ac: Remove extraneous ;;.
12788         * configure: Regenerate.
12789
12790 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
12791
12792         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12793         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12794         predicate, disallow register for operand 2.
12795
12796 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
12797
12798         * graphite-dependences.c (scop_get_dependences): Moved in down
12799         in order to be visible to its caller.
12800         * graphite-poly.h: Removed compute_deps, and extend_schedule.
12801
12802 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12803             Aditya Kumar  <aditya.k7@samsung.com>
12804
12805         PR tree-optimization/67754
12806         * graphite-optimize-isl.c (optimize_isl): Call
12807         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12808
12809 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
12810
12811         * builtins.c (expand_builtin_acc_on_device): Delete.
12812         (expand_builtin): Don't call it.
12813         (fold_builtin_1): Fold acc_on_device.
12814
12815 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12816
12817         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12818         (ix86_nsaved_sseregs): Likewise.
12819
12820 2015-09-29  Jeff Law  <law@redhat.com>
12821
12822         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12823         computation of unused value.
12824
12825         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12826         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12827         inline macro expansion.
12828
12829         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12830
12831         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12832         (gen_shl_sext): Likewise.
12833         * config/sh/sh.md (divsi3): Likewise.
12834         (imm->ext_dest_operand splitter): Likewise.
12835
12836 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12837             Aditya Kumar  <aditya.k7@samsung.com>
12838
12839         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12840         (nb_data_writes_in_bb): Remove.
12841         (split_pbb): Remove.
12842         (split_reduction_stmt): Remove.
12843         (is_reduction_operation_p): Remove.
12844         (phi_contains_arg): Remove.
12845         (follow_ssa_with_commutative_ops): Remove.
12846         (detect_commutative_reduction_arg): Remove.
12847         (detect_commutative_reduction_assign): Remove.
12848         (follow_inital_value_to_phi): Remove.
12849         (edge_initial_value_for_loop_phi): Remove.
12850         (initial_value_for_loop_phi): Remove.
12851         (used_outside_reduction): Remove.
12852         (detect_commutative_reduction): Remove.
12853         (translate_scalar_reduction_to_array_for_stmt): Remove.
12854         (remove_phi): Remove.
12855         (dr_indices_valid_in_loop): Remove.
12856         (close_phi_written_to_memory): Remove.
12857         (translate_scalar_reduction_to_array): Remove.
12858         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12859         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12860         (rewrite_commutative_reductions_out_of_ssa): Remove.
12861         (build_poly_scop): Remove call to
12862         rewrite_commutative_reductions_out_of_ssa.
12863
12864 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
12865
12866         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12867         Add new insn types for vector load and store pairs.
12868         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12869         types "neon_ldp{,_q}".
12870         * config/arm/cortex-a57.md (neon_load_c): Add insn types
12871         "neon_ldp{,_q}".
12872         (neon_store_complex): Add insn types "neon_stp{,_q}".
12873         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12874         "neon_{ldp,stp}_q".
12875
12876 2015-09-29  Jeff Law  <law@redhat.com>
12877
12878         * config/rx/constraints.md (Int08): Fix undefined left shift
12879         behaviour.
12880         (Sint08, Sint16, Sint24): Likewise.
12881         * config/rx/rx.c (rx_get_stack_layout): Likewise.
12882
12883         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12884         behaviour.
12885
12886         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12887         left shift behaviour.
12888         * config/msp430/constraints.md ('L' constraint): Similarly.
12889         ('Ys' constraint): Similarly.
12890
12891 2015-09-29  Richard Biener  <rguenther@suse.de>
12892
12893         PR tree-optimization/67170
12894         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12895         the translate function pointer parameter to get the
12896         bool whether to disambiguate only by reference.
12897         (walk_non_aliased_vuses): Likewise.
12898         * tree-ssa-alias.c (maybe_skip_until): Adjust.
12899         (get_continuation_for_phi_1): Likewise.
12900         (get_continuation_for_phi): Likewise.
12901         (walk_non_aliased_vuses): Likewise.
12902         * tree-ssa-sccvn.c (const_parms): New bitmap.
12903         (vn_reference_lookup_3): Adjust for interface change.
12904         Disambiguate parameters pointing to readonly memory.
12905         (free_scc_vn): Free const_parms.
12906         (run_scc_vn): Initialize const_parms from a fn spec attribute.
12907
12908 2015-09-29  Richard Biener  <rguenther@suse.de>
12909
12910         PR tree-optimization/67741
12911         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12912         builtin calls with correct signature.
12913
12914 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
12915
12916         PR target/65105
12917         * config/i386/i386.c: Include dbgcnt.h.
12918         (has_non_address_hard_reg): New.
12919         (convertible_comparison_p): New.
12920         (scalar_to_vector_candidate_p): New.
12921         (remove_non_convertible_regs): New.
12922         (scalar_chain): New.
12923         (scalar_chain::scalar_chain): New.
12924         (scalar_chain::~scalar_chain): New.
12925         (scalar_chain::add_to_queue): New.
12926         (scalar_chain::mark_dual_mode_def): New.
12927         (scalar_chain::analyze_register_chain): New.
12928         (scalar_chain::add_insn): New.
12929         (scalar_chain::build): New.
12930         (scalar_chain::compute_convert_gain): New.
12931         (scalar_chain::replace_with_subreg): New.
12932         (scalar_chain::replace_with_subreg_in_insn): New.
12933         (scalar_chain::emit_conversion_insns): New.
12934         (scalar_chain::make_vector_copies): New.
12935         (scalar_chain::convert_reg): New.
12936         (scalar_chain::convert_op): New.
12937         (scalar_chain::convert_insn): New.
12938         (scalar_chain::convert): New.
12939         (convert_scalars_to_vector): New.
12940         (pass_data_stv): New.
12941         (pass_stv): New.
12942         (make_pass_stv): New.
12943         (ix86_option_override): Created and register stv pass.
12944         (flag_opts): Add -mstv.
12945         (ix86_option_override_internal): Likewise.
12946         * config/i386/i386.md (SWIM1248x): New.
12947         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12948         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12949         (*anddi3_doubleword): New.
12950         (*zext<mode>_doubleword): New.
12951         (*zextsi_doubleword): New.
12952         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12953         (*<code>di3_doubleword): New.
12954         * config/i386/i386.opt (mstv): New.
12955         * dbgcnt.def (stv_conversion): New.
12956
12957 2015-09-29  Tom de Vries  <tom@codesourcery.com>
12958
12959         * tree-cfg.c (dump_function_to_file): Dump function attributes.
12960
12961 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12962
12963         PR target/67716
12964         * config/sh/sh.c (sh_override_options_after_change): New.
12965         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12966         (sh_option_override): Move align_loops, align_jumps and
12967         align_functions handling into sh_override_options_after_change.
12968
12969 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
12970
12971         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12972         (nvptx_record_offload_symbol): Record function execution geometry.
12973         * config/nvptx/mkoffload.c (process): Include launch geometry in
12974         function data.
12975         * omp-low.c (oacc_launch_pack): New.
12976         (replace_oacc_fn_attrib): New.
12977         (set_oacc_fn_attrib): New.
12978         (get_oacc_fn_attrib): New.
12979         (expand_omp_target): Create keyed varargs for GOACC_parallel call
12980         generation.
12981         * omp-low.h (get_oacc_fn_attrib): Declare.
12982         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12983         (DEF_FUNCTION_TYPE_VAR_11): Delete.
12984         * tree.h (OMP_CLAUSE_EXPR): New.
12985         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12986
12987 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12988             Sebastian Pop  <s.pop@samsung.com>
12989
12990         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12991
12992 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12993             Sebastian Pop  <s.pop@samsung.com>
12994
12995         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12996         * graphite-scop-detection.c (struct sese_l): New type.
12997         (get_entry_bb): API for getting entry bb of SESE.
12998         (get_exit_bb): API for getting exit bb of SESE.
12999         (class debug_printer): New type.  Simple printer in debug mode.
13000         (trivially_empty_bb_p): New.  Return true when BB is empty or
13001         contains only debug instructions.
13002         (graphite_can_represent_expr): Call scalar_evoution_in_region
13003         instead of analyze_scalar_evolution.  Pass in scop instead of only
13004         the scop entry.
13005         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13006         scop entry.
13007         (stmt_simple_for_scop_p): Same.
13008         (harmful_stmt_in_bb): Same.
13009         (graphite_can_represent_loop): Deleted.
13010         (struct scopdet_info): Deleted.
13011         (scopdet_basic_block_info): Deleted.
13012         (build_scops_1): Deleted.
13013         (bb_in_sd_region): Deleted.
13014         (find_single_entry_edge): Deleted.
13015         (find_single_exit_edge): Deleted.
13016         (create_single_entry_edge): Deleted.
13017         (sd_region_without_exit): Deleted.
13018         (create_single_exit_edge): Deleted.
13019         (unmark_exit_edges): Deleted.
13020         (mark_exit_edges): Deleted.
13021         (create_sese_edges): Deleted.
13022         (build_graphite_scops): Deleted.
13023         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13024         (build_scops): Use the new scop_builder to build scops.
13025         (dot_all_scops_1): Use the new pretty printer.  Print loop father
13026         as well.
13027         (loop_body_is_valid_scop): New.  Return true if loop body is a
13028         valid scop.
13029         (class scop_builder): New.  Builds SCoPs for polyhedral
13030         optimizations.
13031         (scop_builder): New constructor.
13032         (static sese_l invalid_sese): sese_l with invalid edges.
13033         (get_sese): Get an sese (from a loop) if possible, invalid_sese
13034         otherwise.
13035         (get_nearest_dom_with_single_entry): Get nearest dominator of a
13036         basic_block with single entry.  Return NULL if we get to the
13037         beginning of a function.
13038         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13039         a basic_block with single exit.  Return NULL if we get to the
13040         beginning of a function.
13041         (print_sese): Pretty-print SESE.
13042         (merge_sese): Merge two SESEs if possible and return the new SESE.
13043         (build_scop_depth): Start building the SCoP within a loop nest.
13044         (build_scop_breadth): Start building the SCoP at a single loop
13045         depth.  Merge adjacent SESEs if valid.
13046         (can_represent_loop_1): Returns true if Graphite can represent
13047         loop inside SCoP.  Helper for can_represent_loop.
13048         (can_represent_loop): Returns true if Graphite can represent LOOP
13049         and all its nested loops in SCoP.
13050         (loop_is_valid_scop): Returns true if LOOP and all its nests
13051         constitute a valid SCoP.
13052         (region_has_one_loop): Returns true of a region has only one loop.
13053         (add_scop): Add SCoP to the list of valid scops.  Removes an
13054         already existing scop if it intersects with or subsumed by this one.
13055         (harmful_stmt_in_region): Returns true if SCoP has any statment
13056         which cannot be represented by Graphite.
13057         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13058         (remove_subscops): Remove any SCoP from the list of already found
13059         SCoPs, if subsumed by S1.
13060         (intersects): Return true if region bounded by SCoPs S1 and S2
13061         intersect.
13062         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13063         * graphite.c (print_graphite_scop_statistics):
13064         (print_graphite_statistics): Print SCoP info while debugging.
13065         (graphite_initialize): Early exit in case number of loops in a
13066         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13067         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13068         (graphite_finalize):
13069         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13070         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13071         (recompute_all_dominators): Recalculate POST_DOMINATORS.
13072         * tree-cfg.c (print_loops): Print the function name while printing
13073         loops.
13074
13075 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13076             Sebastian Pop  <s.pop@samsung.com>
13077
13078         PR tree-optimization/67700
13079         * graphite-sese-to-poly.c (parameter_index_in_region): Call
13080         invariant_in_sese_p_rec.
13081         (extract_affine): Same.
13082         (rewrite_cross_bb_scalar_deps): Call update_ssa.
13083         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
13084         * sese.h (invariant_in_sese_p_rec): Declare.
13085
13086 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
13087
13088         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13089
13090 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
13091
13092         Revert:
13093         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13094                     Jiong Wang  <jiong.wang@arm.com>
13095
13096         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13097         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13098         (REG_CLASS_NAMES): Likewise.
13099         (REG_CLASS_CONTENTS): Likewise.
13100         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13101         (aarch64_register_move_cost): Likewise.
13102         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13103         possible.
13104         * config/aarch64/constraints.md (Uc0): New constraint.
13105
13106 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
13107
13108         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13109
13110 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
13111
13112         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13113         SECTION_EXCLUDE in XO mapping class.
13114
13115 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
13116
13117         PR target/54236
13118         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13119         and handle ne and eq codes.
13120         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13121         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
13122         CONST_INT_P.  Use reverse_condition.
13123         (sh_split_treg_set_expr): Likewise.
13124
13125 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
13126
13127         * config/arm/types.md (type): Add rotate_imm.
13128         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13129         ROR immediate case.
13130         (*rorsi3_insn_uxtw): Likewise.
13131         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13132         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13133         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13134
13135 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13136
13137         PR rtl-optimization/67481
13138         * ifcvt.c (contains_ccmode_rtx_p): New function.
13139         (insn_valid_noce_process_p): Use it.
13140
13141 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13142
13143         PR rtl-optimization/67456
13144         PR rtl-optimization/67464
13145         PR rtl-optimization/67465
13146         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13147         move in the mode of x.  Handle combination of complex and simple
13148         block pairs as well as the case when one is empty.
13149
13150 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13151
13152         * doc/gimple.texi: Update references to gimple_statement_base.
13153         * gdbhooks.py: Likewise.
13154         * gimple.h: Likewise.
13155
13156 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13157
13158         * config/sparc/driver-sparc.c: map LEON to leon3
13159
13160 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13161
13162         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13163           and make it inverse to change default
13164         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13165           supervisor mode
13166         * doc/invoke.texi: Document change of default
13167
13168 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13169
13170         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13171         true on %f0 for a target without FPU.
13172         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13173         without FPU.
13174         (untyped_return): Do not load %f0 for a target without FPU.
13175
13176 2015-09-28  Andrew Pinski  <apinski@cavium.com>
13177
13178         * config/aarch64/aarch64.md (prefetch):
13179         Change the predicate of operand 0 to register_operand.
13180
13181 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
13182
13183         * config/i386/predicates.md (register_sse4nonimm_operand): New
13184         predicate.
13185         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13186         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13187         Use register_sse4nonimm_operand as operand 0 predicate.
13188         (*vec_extractv8hi_sse2): Remove insn pattern.
13189         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13190         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13191
13192 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
13193             Kaz Kojima  <kkojima@gcc.gnu.org>
13194
13195         PR target/67391
13196         * config/sh/sh-protos.h (sh_lra_p): Declare.
13197         * config/sh/sh.c (sh_lra_p): Make non-static.
13198         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13199         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
13200         Expand into addsi3_scr if operands[2] if needed.
13201         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
13202         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
13203         (addsi3_scr, *addsi3): New insn_and_split patterns.
13204
13205 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
13206
13207         PR rtl-optimization/64164
13208         PR tree-optimization/67312
13209         PR middle-end/67340
13210         PR middle-end/67490
13211         PR bootstrap/67597
13212         * cfgexpand.c (parm_in_stack_slot_p): Remove.
13213         (ssa_default_def_partition): Remove.
13214         (get_rtl_for_parm_ssa_default_def): Remove.
13215         (set_rtl): Check that RTL assignments match expectations.
13216         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
13217         default def location for params and results.  Record SSA names
13218         or types in REG and MEM attrs, respectively.
13219         (set_parm_rtl): New.
13220         (expand_one_ssa_partition): Drop logic that assigned MEMs with
13221         unassigned addresses.
13222         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13223         deferred stack alloc vars.
13224         (expand_used_vars): Skip partitions holding parm default defs.
13225         Move adjust_one_expanded_partition_var loop...
13226         (pass_expand::execute): ... here.  Drop redundant assert.
13227         Adjust comments before the final loop over all ssa names.
13228         Require assigned rtl of parms and results to match exactly.
13229         Reset its attributes to match them, not any other variables in
13230         the same partition.
13231         (expand_debug_expr): Use entry value for PARM's default defs
13232         only iff they have zero nondebug uses.
13233         * cfgexpand.h (parm_in_stack_slot_p): Remove.
13234         (get_rtl_for_parm_ssa_default_def): Remove.
13235         (set_parm_rtl): Declare.
13236         * doc/invoke.texi: Improve wording.
13237         * explow.c (promote_decl_mode): Fix promote_function_mode for
13238         result decls not by reference.
13239         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13240         bypass TYPE_MODE to get the actual vector mode.
13241         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
13242         2015-08-19's changes as follows.  Drop include of
13243         basic-block.h and df.h.
13244         (rtl_for_parm): Remove.
13245         (maybe_reset_rtl_for_parm): Remove.
13246         (parm_in_unassigned_mem_p): Remove.
13247         (use_register_for_decl): Add logic for RESULT_DECLs matching
13248         assign_parms' behavior.
13249         (split_complex_args): Revert.
13250         (assign_parms_augmented_arg_list): Revert.  Add comment
13251         referencing the logic above.
13252         (assign_parm_adjust_stack_rtl): Revert.
13253         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
13254         of SET_DECL_RTL.  Set up a REG if the parm demands so.
13255         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
13256         calls into a single set_parm_rtl.  Set up a temporary RTL
13257         temporarily for expand_assignment.
13258         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
13259         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
13260         (assign_bounds): Revert.
13261         (assign_parms): Revert.  Use set_parm_rtl.
13262         (allocate_struct_function): Relayout result and parms of
13263         non-abstruct functions.
13264         (expand_function_start): Revert.  Use set_parm_rtl.  If the
13265         result is not a hard reg, create a pseudo from the promoted
13266         mode of the default def.  Promote static chain mode.
13267         * tree-outof-ssa.c (remove_ssa_form): Drop unused
13268         partition_has_default_def.  Set up
13269         partitions_for_parm_default_defs.
13270         (finish_out_of_ssa): Remove partition_has_default_def.
13271         Release partitions_for_parm_default_defs.
13272         * tree-outof-ssa.h (struct ssaexpand): Remove
13273         partition_has_default_def.  Add
13274         partitions_for_parm_default_defs.
13275         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13276         stor-layout.h.
13277         (build_ssa_conflict_graph): Fix conflict-detection of default
13278         defs of even unused default defs of params and results.
13279         (for_all_parms): New.
13280         (create_default_def): New.
13281         (register_default_def): New.
13282         (coalesce_with_default): New.
13283         (create_outofssa_var_map): Create default defs for all parms
13284         and results, and register their partitions.  Add GIMPLE_RETURN
13285         operands as coalesce candidates with results.  Add default
13286         defs of each parm or result as coalesce candidates with its
13287         other defs.  Mark each result def, and each default def of
13288         parms, as used_in_copy.
13289         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
13290         with the ssa names, even anonymous ones.  Drop
13291         parm_in_stack_slot_p calls.  Require same signedness and
13292         alignment.
13293         (coalesce_ssa_name): Add coalesce candidates for all defs of
13294         each parm and result, even unused ones.
13295         (parm_default_def_partition_arg): New type.
13296         (set_parm_default_def_partition): New.
13297         (get_parm_default_def_partitions): New.
13298         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13299         * tree-ssa-live.c (partition_view_init): Regard unused defs of
13300         parms and results as used.
13301         (verify_live_on_entry): Don't error out just because they're
13302         not live.
13303
13304 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
13305
13306         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13307         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13308         (output_fde): Don't output length for debug_frame on AIX.
13309         (output_call_frame_info): Don't output length for debug_frame on AIX.
13310         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13311         HAVE_XCOFF_DWARF_EXTRAS.
13312         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13313         HAVE_XCOFF_DWARF_EXTRAS.
13314         (output_compilation_unit_header): Don't output length on AIX.
13315         (output_pubnames): Don't output length on AIX.
13316         (output_aranges): Delete argument. Compute length locally. Don't
13317         output length on AIX.
13318         (output_line_info): Don't output length on AIX.
13319         (dwarf2out_finish): Don't compute aranges_length.
13320         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13321         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13322         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13323         symbol decoration for AIX.
13324         (rs6000_xcoff_debug_unwind_info): New.
13325         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13326         for SECTION_DEBUG.
13327         (rs6000_xcoff_declare_function_name): Emit different
13328         .function pseudo-op when DWARF2_DEBUG. Don't call
13329         xcoffout_declare_function for DWARF2_DEBUG.
13330         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13331         Redefine.
13332         * config/rs6000/aix71.h: New.
13333         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13334         locations support.
13335         * configure: Regenerate.
13336         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13337         DWARF support.
13338
13339 2015-09-26  Jeff Law  <law@redhat.com>
13340
13341         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13342         behaviour.
13343         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13344         behaviour.
13345
13346         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13347         behaviour
13348
13349         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13350         undefined behaviour.
13351
13352         * config/cris/cris.md (asrandb): Fix left shift undefined
13353         behaviour.
13354         (asrandw): Likewise.
13355
13356 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
13357
13358         PR target/61578
13359         * lra-constarints.c (match_reload): Check presence of the input pseudo
13360         in the output operand.
13361
13362 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13363
13364         * doc/invoke.texi (-fsanitize): Minor wording tweak.
13365
13366 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13367
13368         * doc/invoke.texi (-fsanitize): Update URLs.
13369
13370 2015-09-25  Teresa Johnson  <tejohnson@google.com>
13371
13372         * opts.c (finish_options): Unset -freorder-blocks-and-partition
13373         if not using profile.
13374
13375 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13376
13377         PR pretty-print/67567
13378         * pretty-print.c (pp_string): Add gcc_checking_assert.
13379         * pretty-print.h (output_buffer_append_r): Likewise.
13380
13381 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
13382
13383         PR target/67675
13384         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13385         addr2 individually.  Don't emit logical or insn if one is known to
13386         be aligned approriately.
13387         (sh_expand_cmpnstr): Likewise.
13388
13389 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
13390
13391         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13392         __builtin_aarch64_fp[sc]r arguments into a register.
13393
13394 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13395
13396         * config.gcc (x86_archs): Replace lakemount with lakemont.
13397         (with_cpu): Likewise.
13398         (with_arch): Likewise.
13399         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13400         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
13401         __tune_lakemount__ with __tune_lakemont__.
13402         * config/i386/i386.c (lakemount_cost): Renamed to ...
13403         (lakemont_cost): This.
13404         (m_LAKEMOUNT): Renamed to ...
13405         (m_LAKEMONT): This.
13406         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13407         (processor_target_table): Replace "lakemount" with "lakemont".
13408         (processor_alias_table): Likewise.
13409         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13410         PROCESSOR_LAKEMONT.
13411         (ix86_adjust_cost): Likewise.
13412         (ia32_multipass_dfa_lookahead): Likewise.
13413         * config/i386/i386.h (processor_type): Likewise.
13414         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13415         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
13416         Lakemount with Lakemont.
13417
13418 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
13419
13420         * config.gcc (x86_archs): Replace iamcu with lakemount.
13421         (with_cpu): Likewise.
13422         (with_arch): Likewise.
13423         * doc/invoke.texi: Likewise.
13424         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13425         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
13426         __tune_iamcu__ with __tune_lakemount__.
13427         * config/i386/i386.c (iamcu_cost): Renamed to ...
13428         (lakemount_cost): This.
13429         (m_IAMCU): Renamed to ...
13430         (m_LAKEMOUNT): This.
13431         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13432         (processor_target_table): Replace "iamcu" with "lakemount".
13433         (processor_alias_table): Likewise.
13434         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13435         PROCESSOR_LAKEMOUNT.
13436         (ix86_adjust_cost): Likewise.
13437         (ia32_multipass_dfa_lookahead): Likewise.
13438         * config/i386/i386.h (processor_type): Likewise.
13439         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13440
13441 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
13442
13443         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13444         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13445         Declare.
13446         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13447         (pa_expand_compare_and_swap_loop): New.
13448         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13449         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13450         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13451         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13452         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13453         Revise.
13454
13455 2015-09-24  Michael Collison  <michael.collison@linaro.org>
13456
13457         PR other/57195
13458         * read-md.c (read_name): Allow mode iterators inside angle
13459         brackets in rtl expressions.
13460
13461 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
13462
13463         PR target/61578
13464         * ira-color.c (update_allocno_cost): Add parameter.
13465         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
13466         parameter.
13467
13468 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13469
13470         PR driver/67640
13471         * opts-common.c (prune_options): Discard all -fdiagnostics-color
13472         but the last one, which is moved to the front to be processed
13473         first.
13474         * opts.c (enable_warning_as_error): Reject options that do not
13475         control warnings.
13476
13477 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13478
13479         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13480
13481 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13482
13483         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13484         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13485         (aarch64_cannot_force_const_mem): Likewise.
13486         (aarch64_classify_address): Likewise.
13487         (aarch64_classify_symbolic_expression): Likewise.
13488         (aarch64_print_operand): Likewise.
13489         (aarch64_classify_symbol): Likewise.
13490         (aarch64_mov_operand_p): Likewise.
13491         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13492         (aarch64_mov_operand): Likewise.
13493
13494 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
13495
13496         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13497         for info->spe_gp_size.
13498
13499 2015-09-24  Richard Biener  <rguenther@suse.de>
13500
13501         PR lto/67699
13502         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13503         abstract origins.
13504
13505 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
13506
13507         * tree-object-size.c (plus_stmt_object_size)
13508         (cond_expr_object_size): Change the formal parameters from gimple
13509         to gimple *.
13510         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13511         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13512         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13513
13514 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13515
13516         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13517         Check for ld -type pie on Solaris 11.x and 12.
13518         * configure: Regenerate.
13519         * config.in: Regenerate.
13520
13521         * gcc.c (LD_PIE_SPEC): Allow redefinition.
13522
13523         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13524         (STARTFILE_SPEC): Use it.
13525         (ENDFILE_CRTEND_SPEC): Define.
13526         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13527         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13528         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13529         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13530         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13531         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13532         (ENDFILE_ARCH_SPEC): Define.
13533         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13534
13535 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13536
13537         * configure.ac (gcc_cv_solaris_crts): New test.
13538         * configure. Regenerate.
13539         * config.in: Regenerate.
13540         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13541         HAVE_SOLARIS_CRTS variant.
13542
13543 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13544
13545         * tree-inline.h (count_insns_seq): Delete prototype.
13546         (estimate_num_insns_seq): Define prototype.
13547         * tree-inline.c (count_insns_seq): Delete.
13548         (estimate_num_insns_seq): Remove static qualifier.
13549         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13550         with estimate_num_insns_seq.
13551
13552 2015-09-24  Richard Biener  <rguenther@suse.de>
13553
13554         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13555         members.
13556         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13557         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
13558         offset.
13559         (ao_ref_init_from_vn_reference): Record clique and base in the
13560         built base.
13561         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13562
13563 2015-09-24  Richard Biener  <rguenther@suse.de>
13564
13565         PR tree-optimization/48885
13566         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13567         as not including any restrict tags from other pointers.
13568
13569 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13570
13571         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13572         character when appending to offload_targets.
13573
13574         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13575         offload targets by commas, not colons.
13576         * config.in: Regenerate.
13577         * configure: Likewise.
13578         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13579         instead of setting up the default offload targets here...
13580         (process_command): ..., do it here.
13581         libgomp/
13582         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13583         targets are separated by commas.
13584         * config.h.in: Regenerate.
13585
13586 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13587             Nathan Sidwell  <nathan@codesourcery.com>
13588
13589         * omp-low.h (omp_reduction_init_op): Declare.
13590         * omp-low.c (omp_reduction_init_op): New, broken out of ...
13591         (omp_reduction_init): ... here.  Call it.
13592         * tree-parloops.c (initialize_reductions): Use
13593         omp_reduction_init_op.
13594
13595 2015-09-23   Richard Biener  <rguenther@suse.de>
13596
13597         PR middle-end/67662
13598         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13599         undefined overflow unless they will cancel out.
13600
13601 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13602
13603         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13604         insn emit.
13605
13606 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13607
13608         PR c/49655
13609         * opts.h (write_langs): Declare.
13610         * opts-global.c (write_langs): Make it extern.
13611
13612 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
13613
13614         PR target/67391
13615         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13616         overlapping regs when matching the pattern.
13617
13618 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13619
13620         * config/aarch64/aarch64-simd.md
13621         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13622         (aarch64_float_truncate_hi_v4sf_le): New.
13623         (aarch64_float_truncate_hi_v4sf_be): Likewise.
13624
13625 2015-09-23  Richard Biener  <rguenther@suse.de>
13626
13627         * tree-ssa-structalias.c (intra_create_variable_infos): Build
13628         representatives for all restrict qualified pointer destinations.
13629
13630 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13631
13632         * config/i386/i386.md (define_code_attr mshift): New.
13633         (define_mode_iterator SWI1248_AVX512BW): Rename ...
13634         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13635         only.
13636         (define_insn "*k<logic><mode>"): Use new iterator name.
13637         (define_insn "*<mshift><mode>3"): New.
13638
13639 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
13640
13641         PR middle-end/67649
13642         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13643         mark the block as accessible.
13644
13645 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
13646
13647         * function.c (thread_prologue_and_epilogue_insns): Delete
13648         orig_entry_edge argument to try_shrink_wrapping.
13649         * shrink-wrap.c (can_get_prologue): New function.
13650         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13651         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
13652         can_get_prologue where needed.  Remove code that finds a single
13653         edge for the prologue.  Remove code that tests if any reg clobbered
13654         by the prologue is live on the prologue edge.  Remove code that finds
13655         the new prologue edge after duplicating blocks.  Make a new prologue
13656         block and edge.
13657         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13658
13659 2015-09-22  Jeff Law  <law@redhat.com>
13660
13661         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13662         behavior.
13663
13664 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
13665
13666         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
13667         -Wtemplates, -Wnamespaces): Document.
13668
13669 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13670
13671         PR tree-optimization/67671
13672         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13673         pointer references as restrict.
13674
13675 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13676
13677         * config/nios2/nios2.c (nios2_legitimize_address): When handling
13678         'reg + reloc' cases, allow first operand to be non-REG, and use
13679         force_reg() to enforce address pattern.
13680
13681 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
13682
13683         PR target/67480
13684         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13685         (define_mode_iterator VI12_AVX_AVX512F): New.
13686         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13687         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13688         (define_insn "*<code><mode>3"): ... Into new pattern using
13689         VI12_AVX_AVX512F iterators without masking.
13690
13691 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13692
13693         * config.gcc: Support "skylake-avx512".
13694         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13695         PROCESSOR_SKYLAKE_AVX512.
13696         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13697         (processor_target_table): Add "skylake-avx512".
13698         (PTA_SKYLAKE_AVX512): Define.
13699         (ix86_option_override_internal): Add "skylake_avx512".
13700         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13701         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13702         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13703         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13704         * doc/invoke.texi (skylake-avx512): New.
13705
13706 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13707
13708         * config/i386/i386.md (define_insn "kunpckhi"): Fix
13709         operand in pattern.
13710         (define_insn "kunpcksi"): Ditto.
13711         (define_insn "kunpckdi"): Ditto.
13712
13713 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13714
13715         * config/i386/i386.md (define_split not/xor SWI1248x): Use
13716         iterator instead of fixed modes.
13717
13718 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13719
13720         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13721         Adjust declaration.
13722         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13723         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
13724         out_result.  Update to support update-fetch operations.
13725         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13726         Adjust for change to aarch64_gen_atomic_ldop.
13727         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13728         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13729         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13730         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13731         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13732
13733 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13734
13735         * config/aarch64/aarch64-protos.h
13736         (aarch64_atomic_ldop_supported_p): Declare.
13737         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13738         (enum aarch64_atomic_load_op_code): New.
13739         (aarch64_emit_atomic_load_op): New.
13740         (aarch64_gen_atomic_ldop): Update to support load-operate
13741         patterns.
13742         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13743         to an expander.
13744         (aarch64_atomic_<atomic_optab><mode>): New.
13745         (aarch64_atomic_<atomic_optab><mode>_lse): New.
13746         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13747         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13748         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13749
13750 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13751
13752         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13753         (UNSPECV_ATOMIC_LDOP_OR): New.
13754         (UNSPECV_ATOMIC_LDOP_BIC): New.
13755         (UNSPECV_ATOMIC_LDOP_XOR): New.
13756         (UNSPECV_ATOMIC_LDOP_PLUS): New.
13757         (ATOMIC_LDOP): New.
13758         (atomic_ldop): New.
13759         (aarch64_atomic_load<atomic_ldop><mode>): New.
13760
13761 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13762
13763         * config/aarch64/aarch64.md
13764         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13765         pattern.
13766
13767 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13768
13769         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13770         Declare.
13771         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13772         (aarch64_gen_atomic_ldop): New.
13773         (aarch64_split_atomic_op): Fix whitespace and add a comment.
13774         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13775         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13776         (atomic_exchange<mode>): Replace with an expander.
13777         (aarch64_atomic_exchange<mode>): New.
13778         (aarch64_atomic_exchange<mode>_lse): New.
13779         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13780         (aarch64_atomic_swp<mode>): New.
13781
13782 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13783
13784         * tree-inline.c (expand_call_inline): Use inform for extra note.
13785         Do not give a note with UNKNOWN_LOCATION.
13786         Replace input_location with gimple_location (stmt).
13787         Use true/false instead of TRUE/FALSE.
13788
13789 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13790
13791         PR tree-optimization/67666
13792         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13793         with single field non-conservative.
13794
13795 2015-09-21  David S. Miller  <davem@davemloft.net>
13796
13797         PR/67622
13798         Revert:
13799         2015-09-11  David S. Miller  <davem@davemloft.net>
13800
13801         * config/sparc/constraints.md: Make "U" constraint a real register
13802         constraint.
13803         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13804         (D_MODES, DF_MODES): Add missing cast.
13805         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13806         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13807         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13808         cost to 8.
13809         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13810         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13811         provide these insn when flag_pic.
13812
13813         2015-09-17  David S. Miller  <davem@davemloft.net>
13814
13815         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13816         Declare.
13817         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13818         function.
13819         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13820         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13821         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13822         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13823         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13824         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13825         provide when flag_pic.
13826
13827 2015-09-21  Jeff Law  <law@redhat.com>
13828
13829         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13830         behavior.
13831
13832 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13833
13834         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13835
13836 2015-09-21  Richard Biener  <rguenther@suse.de>
13837
13838         * passes.c (rest_of_decl_compilation): Do not call
13839         dwarf2out_early_global_decl for aliases.
13840
13841 2015-09-21  Richard Biener  <rguenther@suse.de>
13842
13843         PR debug/67664
13844         * dwarf2out.c (add_location_or_const_value_attribute): Remove
13845         attribute parameter.  Early exit if either DW_AT_const_value
13846         or DW_AT_location are present already.
13847         (gen_variable_die): Adjust caller.
13848         (dwarf2out_late_global_decl): Likewise.
13849
13850 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13851
13852         PR target/67657
13853         * config/sh/sh.c (sh_remove_overlapping_post_inc,
13854         sh_peephole_emit_move_insn): Add new functions.
13855         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13856         sh_peephole_emit_move_insn): Declere them.
13857         * config/sh/sh.md: Use them in various peephole2 patterns.
13858
13859 2015-09-21  Richard Biener  <rguenther@suse.de>
13860
13861         PR middle-end/67651
13862         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13863         address with -fno-delete-null-pointer-checks.
13864
13865 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
13866
13867         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13868         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13869         (reduc_uplus_v16qi): Remove.
13870
13871         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13872         (reduc_<VEC_reduc_name>_v2df): Remove.
13873         (reduc_<VEC_reduc_name>_v4sf): Remove.
13874         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13875
13876         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13877         gen_ function by removing * prefix.
13878         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13879
13880 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13881
13882         PR middle-end/60832
13883         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13884         Print i_bound without converting it to a tree.
13885
13886 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
13887
13888         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13889         operands[4] operands[5] swap with std::swap, removed tmp variable.
13890         (arm_evpc_neon_vzip): Replaced in0/in1 and
13891         out0/out1 swaps with std::swap, removed x variable.
13892         (arm_evpc_neon_vtrn): Replaced in0/int1 and
13893         out0/out1 swaos with std::swap, removed x variable.
13894         (arm_expand_vec_perm_const_1): Replaced
13895         d->op0/d->op1 swap with std::swap, removed x variable.
13896         (arm_evpc_neon_vuzp): Replaced in0/in1 and
13897         out0/out1 swaps with std::swap, removed x variable.
13898
13899 2015-09-21  Jonathan Yong  <10walls@gmail.com>
13900
13901         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13902         sysroot/usr/lib/32api for additional win32 libraries,
13903         fixes failing Cygwin bootstrapping.
13904
13905 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13906
13907         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13908
13909 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13910
13911         PR target/67126
13912         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13913         (*mov_t_msb_neg): Rewrite negc pattern.
13914
13915 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13916
13917         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13918         immediate generation code.
13919
13920 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13921
13922         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13923         redundant immediate generation code.
13924
13925 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13926
13927         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13928         (AARCH64_NUM_BITMASKS): Remove.
13929         (aarch64_bitmasks_cmp): Remove.
13930         (aarch64_build_bitmask_table): Remove.
13931
13932 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13933
13934         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13935         slow immediate matching loops with a faster algorithm.
13936
13937 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13938
13939         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13940         faster algorithm.
13941
13942 2015-09-20  Jeff Law  <law@redhat.com>
13943
13944         PR tree-optimization/47679
13945         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13946         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13947         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13948         (thread_through_normal_block): Use record_temporary_equivalences.
13949
13950 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
13951
13952         * coretypes.h (gimple): Change typedef to be a forward declaration.
13953         * gimple.h (gimple_statement_base): rename to gimple.
13954         * (all functions and types using gimple): Adjust.
13955         * *.[ch]: Likewise.
13956
13957 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
13958             David Edelsohn  <dje.gcc@gmail.com>
13959
13960         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13961         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13962         (EH_FRAME_THROUGH_COLLECT2): Define.
13963         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13964         (ASM_OUTPUT_DWARF_PCREL): Define.
13965         (ASM_OUTPUT_DWARF_DATAREL): Define.
13966
13967 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
13968
13969         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13970         of TARGET_ELF32.
13971
13972 2015-09-18  Jeff Law  <law@redhat.com>
13973
13974         PR tree-optimization/47679
13975         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
13976         it here ...
13977         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13978         object.  Update constructor.
13979         (pass_dominator::execute):  Corresponding chagnes to declaration
13980         and initialization of avail_exprs_stack.  Update constructor call
13981         for dom_opt_dom_walker object.
13982         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
13983         it down to children as needed.
13984         (record_equivalences_from_incoming_edge): Likewise.
13985         (eliminate_redundant_computations): Likewise.
13986         (record_equivalences_from_stmt): Likewise.
13987         (simplify_stmt_for_jump_threading): Likewise.
13988         (record_temporary_equivalences): Likewise.
13989         (optimize_stmt): Likewise.
13990         (dom_opt_dom_walker::thread_across_edge): Update access to
13991         avail_exprs_stack object and pass it to children as needed.
13992         (dom_opt_dom_walker::before_dom_children): Similarly.
13993         (dom_opt_dom_walker::after_dom_children): Similarly.
13994         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13995         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13996         Add avail_expr_stack argument.  Pass it to children as needed.
13997         (dummy_simplify): Likewise.
13998         (simplify_control_stmt_condition): Likewise.
13999         (thread_around_empty_blocks): Likewise.
14000         (thread_through_normal_block): Likewise.
14001         (thread_across_edge): Likewise.
14002         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14003         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14004
14005         PR tree-optimization/47679
14006         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
14007         it here ...
14008         (dom_opt_dom_walker): New private member holding the const_and_copies
14009         object.  Update constructor.
14010         (pass_dominator::execute): Corresponding changes to declaration
14011         and initialization of const_and_copies.  Update constructor call
14012         for the dom_opt_dom_walker object.
14013         (record_temporary_equivalences): Accept const_and_copies argument
14014         pass it down to children as needed.
14015         (record_equality): Likewise.
14016         (record_equivalences_from_incoming_edge): Likewise.
14017         (cprop_into_successor_phis, optimize_stmt): Likewise.
14018         (eliminate_redundant_computations): Likewise.
14019         (dom_opt_dom_walker::thread_across_edge): Update access to
14020         const_and_copies object and pass it to children as needed.
14021         (dom_opt_dom_walker::before_dom_children): Similarly.
14022         (dom_opt_dom_walker::after_dom_children): Similarly.
14023
14024         PR tree-optimization/47679
14025         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
14026         it into the avail_exprs_stack class.
14027         (pass_dominator::execute): Corresponding changes to declaration
14028         and initialization of avail_exprs.  Pass avail_exprs to
14029         dump_dominator_optimization_stats.
14030         (record_cond): Extract avail_exprs from avail_exprs_stack.
14031         (lookup_avail_expr): Similarly.
14032         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
14033         position in file.
14034         (dump_dominator_optimization_stats): Make static and prototype.
14035         Add argument for the hash table to dump.
14036         (debug_dominator_optimization_stats): Remove.
14037         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14038         prototype.
14039         (debug_dominator_optimization_stats): Similarly.
14040         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14041         "void" in prototype for pop_to_marker method.  Add accessor method
14042         for the underlying avail_exprs table.
14043
14044         * tree-ssa-threadedge.c: Remove trailing whitespace.
14045
14046 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
14047
14048         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14049         unsigned.
14050         (pa_ldil_cint_p): Likewise.
14051         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14052         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14053         Update callers.
14054         * config/pa/pa.md: Likewise.
14055
14056 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
14057
14058         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14059         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14060         (diagnostic_show_locus): Likewise.
14061         (diagnostic_print_caret_line): Likewise.
14062         * diagnostic-show-locus.c: New file.
14063
14064 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
14065
14066         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14067         "back" parameter. Declare label in #if block.
14068
14069 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
14070
14071         PR middle-end/67619
14072         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14073         the address to a register.
14074
14075 2015-09-18  Jeff Law  <law@redhat.com>
14076
14077         PR tree-optimization/47679
14078         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14079         * tree-ssa-dom.c: Remove unnecessary header includes.
14080         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14081         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14082         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14083         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14084         (pass_phi_only_cprop::execute): Likewise.
14085         (make_pass_phi_only_cprop): Likewise.
14086         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
14087         uses of file scoped statics by passing the required objects
14088         as parameters wherever needed.
14089
14090 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
14091             David Edelsohn  <dje.gcc@gmail.com>
14092
14093         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14094         EH_FRAME_THROUGH_COLLECT2.
14095         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14096         DW_EH_PE_datarel.
14097         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14098         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
14099         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14100         * except.c (switch_to_exception_section): Use a read-only section
14101         even if EH_FRAME_SECTION_NAME is undefined.
14102         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14103         * collect2.c (write_c_file_stat): Provide dbase on AIX.
14104         (scan_prog_file): Don't export __dso_handle nor
14105         __gcc_unwind_dbase.
14106         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14107         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14108         (ASM_OUTPUT_DWARF_PCREL): Define.
14109         (ASM_OUTPUT_DWARF_DATAREL): Define.
14110         (EH_FRAME_THROUGH_COLLECT2): Define.
14111         (EH_FRAME_IN_DATA_SECTION): Delete.
14112         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14113         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14114         Declare.
14115         (rs6000_asm_output_dwarf_datarel): Declare.
14116         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14117         (rs6000_aix_asm_output_dwarf_datarel): New.
14118         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14119         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14120         (EH_FRAME_THROUGH_COLLECT2): Define.
14121         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14122         (EH_FRAME_THROUGH_COLLECT2): Define.
14123         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14124         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14125         (EH_FRAME_THROUGH_COLLECT2): New.
14126         (ASM_OUTPUT_DWARF_DATAREL): New.
14127         * doc/tm.texi: Regenerate.
14128
14129 2015-09-18  Richard Biener  <rguenther@suse.de>
14130
14131         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14132         we're in early phase.
14133         (schedule_generic_params_dies_gen): Likewise.
14134         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14135         work as possible, retaining unhandled cases.
14136         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14137         clear out generic_type_instances at the end.
14138         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14139         (dwarf2out_early_finish): ... here.  Do most of
14140         gen_remaining_tmpl_value_param_die_attribute here.
14141
14142 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
14143
14144         PR tree-optimization/67283
14145         * tree-sra.c (type_consists_of_records_p): Rename to...
14146         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14147         (completely_scalarize_record): Rename to...
14148         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14149         (scalarize_elem): New.
14150         (analyze_all_variable_accesses): Follow renamings.
14151
14152 2015-09-18  Richard Biener  <rguenther@suse.de>
14153
14154         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14155         in early-dwarf.
14156
14157 2015-09-18  Richard Biener  <rguenther@suse.de>
14158
14159         PR tree-optimization/66142
14160         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14161         treat MEM[&x] and x the same.
14162         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14163         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14164         when we simplified sth.
14165         (vn_reference_maybe_forwprop_address): Likewise.
14166         (valueize_refs_1): When we simplified through
14167         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14168         set valueized_anything to true.
14169         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14170         one ref kills the other instead of just a offset-based test.
14171         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14172         for the operand_equal_p test to compare bases and also compare
14173         sizes.
14174
14175 2015-09-17  Christian Bruel  <christian.bruel@st.com>
14176
14177         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14178
14179 2015-09-17  Richard Henderson  <rth@redhat.com>
14180
14181         PR libstdc++/65913
14182         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14183         pointers that encode the alignment of the object.
14184
14185 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14186
14187         PR rtl-optimization/66790
14188         * df-problems.c (LIVE): Amend documentation.
14189
14190 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14191
14192         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14193         and optabs-tree.o.
14194         (GTFILES): Replace optabs.c with optabs-libfunc.c.
14195         * genopinit.c (main): Add an include guard to insn-opinit.h.
14196         Protect the rtx_code parts with NUM_RTX_CODE.
14197         * optabs.h: Split parts out to...
14198         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14199         * optabs.c: Split parts out to...
14200         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14201         * cilk-common.c: Include optabs-query.h rather than optabs.h.
14202         * fold-const.c: Likewise.
14203         * target-globals.c: Likewise.
14204         * tree-if-conv.c: Likewise.
14205         * tree-ssa-forwprop.c: Likewise.
14206         * tree-ssa-loop-prefetch.c: Likewise.
14207         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14208         Remove unncessary include files.
14209         * tree-ssa-phiopt.c: Likewise.
14210         * tree-ssa-reassoc.c: Likewise.
14211         * tree-switch-conversion.c: Likewise.
14212         * tree-vect-data-refs.c: Likewise.
14213         * tree-vect-generic.c: Likewise.
14214         * tree-vect-loop.c: Likewise.
14215         * tree-vect-patterns.c: Likewise.
14216         * tree-vect-slp.c: Likewise.
14217         * tree-vect-stmts.c: Likewise.
14218         * tree-vrp.c: Likewise.
14219         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14220         rather than optabs.h.
14221         * expr.c: Include optabs-tree.h.
14222         * function.c: Likewise.
14223
14224 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14225
14226         PR middle-end/65958
14227         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14228         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14229         * config/arm/arm.c: Include common/common-target.h.
14230         (use_return_insn): Return 0 if the static chain register was saved
14231         above a non-APCS frame.
14232         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14233         (struct scratch_reg): New.
14234         (get_scratch_register_on_entry): New function.
14235         (release_scratch_register_on_entry): Likewise.
14236         (arm_emit_probe_stack_range): Likewise.
14237         (output_probe_stack_range): Likewise.
14238         (arm_expand_prologue): Factor out code dealing with the IP register
14239         for nested function and adjust it for stack checking.
14240         Invoke arm_emit_probe_stack_range if static builtin stack checking
14241         is enabled.
14242         (thumb1_expand_prologue): Sorry out if static builtin stack checking
14243         is enabled.
14244         (arm_expand_epilogue): Add the saved static chain register, if any, to
14245         the amount of pre-pushed registers to pop.
14246         (arm_frame_pointer_required): Return true if static stack checking is
14247         enabled and we want to catch the exception with the EABI unwinder.
14248         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14249         (UNSPEC_PROBE_STACK_RANGE): Likewise.
14250         * config/arm/arm.md (probe_stack): New insn.
14251         (probe_stack_range): Likewise.
14252
14253 2015-09-17  Richard Biener  <rguenther@suse.de>
14254
14255         * genmatch.c (parser::parse_expr): Improve error message
14256         for mis-placed flags.
14257
14258 2015-09-17  Richard Biener  <rguenther@suse.de>
14259
14260         * passes.c (rest_of_decl_compilation): Always call early_global_decl
14261         debug hook when we created a varpool node.
14262         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14263         dwarf2out_early_global_decl, when not just add location or
14264         value attributes to existing DIEs.
14265
14266 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
14267
14268         * config/aarch64/aarch64.md (copysigndf3): New.
14269         (copysignsf3): Likewise.
14270
14271 2015-09-17  David S. Miller  <davem@davemloft.net>
14272
14273         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14274         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14275         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14276         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14277         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14278         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14279         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14280         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14281         provide when flag_pic.
14282
14283 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14284
14285         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14286         object_allocator change.
14287
14288 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14289
14290         PR tree-optimization/66388
14291         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14292         (dump_iv): Dump no_overflow information.
14293         (alloc_iv): Initialize new field for struct iv.
14294         (mark_bivs): Count number of no_overflow bivs.
14295         (find_deriving_biv_for_expr, record_biv_for_address_use): New
14296         functions.
14297         (idx_find_step): Call new functions above.
14298         (add_candidate_1, add_candidate): New paramter.
14299         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14300         (get_computation_aff): Simplify convertion of cand for BIV.
14301         (get_computation_cost_at): Step cand's base if necessary.
14302
14303 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14304
14305         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14306         parameter.
14307         (tree_simplify_using_condition): Ditto.
14308         (simplify_using_initial_conditions): Ditto.
14309         (loop_exits_before_overflow): Pass new argument to function
14310         simplify_using_initial_conditions.  Remove case for type conversions
14311         simplification.
14312         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14313         parameter.
14314         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14315         in iv base using loop initial conditions.
14316
14317 2015-09-16  Jeff Law  <law@redhat.com>
14318
14319         PR tree-optimization/47679
14320         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14321         (free_all_edge_infos): Use it.
14322         (allocate_edge_info): Free preexisting edge info data.
14323         (pass_dominator::execute): Set up initial edge info structures.
14324         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14325         thread_across_edge.
14326         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14327         If non-null, then push/pop markers appropriately.
14328         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14329         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14330         thread-across_edge.
14331
14332 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
14333
14334         * config/ft32/ft32.c: Fix the memory address space predicate.
14335
14336 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14337
14338         PR target/67573
14339         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14340         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14341
14342 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14343
14344         * toplev.h (check_global_declaration): Remove declaration.
14345         * toplev.c (check_global_declaration): Move to ...
14346         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14347         (analyze_functions): Update call.
14348
14349 2015-09-16  David S. Miller  <davem@davemloft.net>
14350
14351         * lra-constraints.c (simplify_operand_subreg): Do not assume that
14352         lowpart of a SUBREG has offset zero.
14353
14354 2015-09-16  Jeff Law  <law@redhat.com>
14355
14356         PR tree-optimization/47679
14357         * tree-ssa-dom.c (enum expr_kind): Moved from here to
14358         tree-ssa-scopedtables.h.
14359         (struct hashable_expr, class expr_hash_elt): Likewise.
14360         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14361         Move associated methods into tree-ssa-scopedtables.c.
14362         (avail_expr_hash, initialize_expr_from_cond): Similarly.
14363         (hashable_expr_equal_p, add_expr_commutative): Likewise.
14364         (add_hashable_expr): Likewise.
14365         (record_cond): Delete element directly.
14366         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14367         private copy ctor and assignment operator methods.
14368         (expr_elt_hasher): Inline trivial methods.
14369         (initialize_expr_from_cond): Prototype.
14370         * tree-ssa-scopedtables.c: Add necessary includes, functions and
14371         methods that were previously in tree-ssa-dom.c.  Improve various
14372         comments.
14373
14374 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
14375
14376         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14377
14378 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
14379
14380         PR bootstrap/67587
14381         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14382         fixup_partitions.
14383
14384 2015-09-16  Richard Biener  <rguenther@suse.de>
14385
14386         PR middle-end/67253
14387         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14388         location of possibly shared trees.
14389
14390 2015-09-16  Richard Biener  <rguenther@suse.de>
14391
14392         PR middle-end/67271
14393         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14394
14395 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
14396
14397         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14398         offset and size computations instead of HOST_WIDE_INT.
14399
14400 2015-09-16  Richard Biener  <rguenther@suse.de>
14401
14402         PR middle-end/67442
14403         * fold-const.c (extract_muldiv_1): Properly extend multiplication
14404         result before builting a tree via wide_int_to_tree.
14405
14406 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
14407
14408         * Makefile.in: Add memory-block.cc
14409         (pool_allocator::initialize): Use fixed block size.
14410         (pool_allocator::release): Use memory_block_pool.
14411         (pool_allocator::allocate): Likewise.
14412         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14413         object pools.
14414         * cfg.c (initialize_original_copy_tables): Likewise.
14415         * cselib.c (elt_list_pool, elt_loc_list_pool,
14416         cselib_val_pool): Likewise.
14417         * df-problems.c (df_chain_alloc): Likewise.
14418         * df-scan.c (df_scan_alloc): Likewise.
14419         * dse.c (cse_store_info_pool, rtx_store_info_pool,
14420         read_info_type_pool, insn_info_type_pool, bb_info_pool,
14421         group_info_pool, deferred_change_pool): Likewise.
14422         * et-forest.c (et_nodes, et_occurrences): Likewise.
14423         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14424         ipcp_agg_lattice_pool): Likewise.
14425         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14426         * ipa-profile.c (histogram_pool): Likewise.
14427         * ipa-prop.c (ipa_refdesc_pool): Likewise.
14428         * ira-build.c (live_range_pool, allocno_pool, object_pool,
14429         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14430         * ira-color.c (update_cost_record_pool): Likewise.
14431         * lra-lives.c (lra_live_range_pool): Likewise.
14432         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14433         * memory-block.cc: New file.
14434         * memory-block.h: New file.
14435         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14436         * sched-deps.c (sched_deps_init): Likewise.
14437         * sel-sched-ir.c (sched_lists_pool): Likewise.
14438         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14439         * tree-sra.c (access_pool): Likewise.
14440         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14441         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14442         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14443         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14444         * tree-ssa-strlen.c (strinfo_pool): Likewise.
14445         * tree-ssa-structalias.c (variable_info_pool): Likewise.
14446         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14447         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14448
14449 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14450
14451         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14452         definition.
14453         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14454         call0 ABI.
14455
14456 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14457
14458         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14459         to pass TLS call argument, according to current ABI.
14460         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14461         callx0 for TLS call, according to current ABI.
14462
14463 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14464
14465         * tree-eh.c (lower_try_finally_dup_block): Clear location information
14466         on stack restore statements.
14467         (decide_copy_try_finally): Do not consider a stack restore statement as
14468         coming from sources.
14469
14470 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
14471
14472         * config/alpha/alpha.c (alpha_expand_block_clear): Use
14473         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14474
14475 2015-09-15  Jeff Law  <law@redhat.com>
14476
14477         PR tree-optimization/47679
14478         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14479         methods and private members.
14480         (avail_exprs_stack): Similarly.  Change type of global
14481         from a pair of expr_hash_elt_t to the new class.
14482         (expr_elt_hasher::hash): Corresponding changes.
14483         (expr_elt_hasher::equal): Similarly.
14484         (avail_expr_hash): Similarly.
14485         (pass_dominator::execute): Similarly.
14486         (dom_opt_dom_walker::thread_across_edge): Similarly.
14487         (record_cond): Similarly.
14488         (dom_opt_dom_walker::before_dom_children): Similarly.
14489         (dom_opt_dom_walker::after_dom_children): Similarly.
14490         (lookup_avail_expr): Likewise.
14491         (initialize_hash_element): Now a expr_hash_elt constructor.
14492         (initialize_hash_element_from_expr): Similarly.
14493         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14494         (free_expr_hash_elt): Call dtor for the element.
14495         (remove_local_expressions_from_table): Now the "pop_to_marker"
14496         method in the available_exprs_stack class.
14497         (avail_expr_stack::record_expr): Method factored out.
14498         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14499         Fix formatting.
14500         (hashable_expr_equal_p): Fix formatting.
14501
14502 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
14503
14504         * input.h (location_get_source_line): Drop "expanded_location"
14505         param in favor of a file and line number.
14506         * input.c (location_get_source_line): Likewise.
14507         (dump_location_info): Update for change in signature of
14508         location_get_source_line.
14509         * diagnostic.c (diagnostic_print_caret_line): Likewise.
14510
14511 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14512
14513         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14514         Bump to 4KB for SJLJ exceptions.
14515         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
14516         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14517         * doc/tm.texi: Regenerate.
14518
14519 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14520
14521         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14522         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
14523         Update prototype.
14524
14525 2015-09-15  Richard Biener  <rguenther@suse.de>
14526
14527         PR tree-optimization/67470
14528         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14529         structure for PHI hoisting by inserting a forwarder block
14530         if appropriate.
14531
14532 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14533
14534         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14535         (arm_option_print): New function.
14536
14537 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14538
14539         PR target/52144
14540         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14541         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14542         Remove flags parameter.
14543         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14544         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14545         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14546         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14547         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14548         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14549         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14550         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14551
14552 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14553
14554         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14555
14556         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14557         AARCH64_VALID_SIMD_DREG_MODE.
14558
14559 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14560
14561         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14562         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14563         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14564         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14565         aarch64_ld4_lane<mode>): Combine together, making...
14566         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14567         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14568         aarch64_st4_lane<mode>): Combine together, making...
14569         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14570         * config/aarch64/iterators.md (nregs): Add comment.
14571
14572 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14573
14574         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14575         Change operand mode from <V_TWO_ELEM> to BLK.
14576         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14577         (aarch64_vec_store_lanesoi_lane<mode): Likewise
14578         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14579         (aarch64_ld2_lane<mode>): Likewise.
14580         (aarch64_st2_lane<VQ:mode>): Likewise.
14581         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14582
14583 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14584
14585         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14586         Change operand mode from <V_FOUR_ELEM> to BLK.
14587         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14588         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14589         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14590         (aarch64_ld4_lane<mode>): Likewise.
14591         (aarch64_st4_lane<mode>): Likewise.
14592         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14593
14594 2015-09-15  Richard Biener  <rguenther@suse.de>
14595
14596         PR middle-end/67563
14597         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14598         transfer EH info from old to new stmt.
14599         (replace_call_with_value): Likewise.
14600         (replace_call_with_call_and_fold): Likewise.
14601         (gimple_fold_builtin_memory_op): Likewise.
14602         (gimple_fold_builtin_memset): Likewise.
14603         (gimple_fold_builtin_stpcpy): Likewise.
14604         (gimple_fold_call): Likewise.
14605
14606 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14607
14608         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14609         comment.
14610         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14611         (aarch64_simd_intEI_type_node): Likewise.
14612         (aarch64_simd_builtin_std_type): Remove EImode case.
14613         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14614         * config/aarch64/aarch64-modes.def: Remove EImode.
14615
14616 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14617
14618         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14619         Change operand mode from <V_THREE_ELEM> to BLK.
14620         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14621         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14622         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14623         (aarch64_ld3_lane<mode>): Likewise.
14624         (aarch64_st3_lane<mode>): Likewise.
14625         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14626
14627 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14628
14629         * config/aarch64/aarch64-simd.md
14630         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14631         Change all TImode operands to BLKmode.
14632         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14633         Change all EImode operands to BLKmode.
14634         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14635         Change all OImode operands to BLKmode.
14636
14637         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14638         and call set_mem_size.
14639         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14640
14641         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14642
14643 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14644
14645         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14646         to...
14647         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14648
14649         (vec_store_lanesci_lane<mode>): Rename to...
14650         (aarch64_vec_store_lanesci_lane<mode>): ...this.
14651
14652         (vec_store_lanesxi_lane<mode>): Rename to...
14653         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14654
14655         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14656         aarch64_st4_lane<mode>): Follow renaming.
14657
14658 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14659
14660         * config/s390/s390.c (s390_const_operand_ok): Add missing
14661         brackets.
14662
14663 2015-09-15  Richard Biener  <rguenther@suse.de>
14664
14665         PR lto/67568
14666         * lto-streamer.h (lto_location_cache::current_sysp): Properly
14667         initialize.
14668         * lto-streamer-out.c (clear_line_info): Likewise.
14669
14670 2015-09-15  Richard Biener  <rguenther@suse.de>
14671
14672         * doc/match-and-simplify.texi: Fix wording.
14673
14674 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
14675
14676         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14677         unnecessary type conversion in op1.
14678
14679 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
14680
14681         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14682         (dup_block_and_redirect): Delete function.
14683         (can_dup_for_shrink_wrapping): New function.
14684         (fix_fake_fallthrough_edge): New function.
14685         (try_shrink_wrapping): Rewrite function.
14686         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14687
14688 2015-09-14  Rich Felker  <dalias@libc.org>
14689
14690         * configure.ac: Change target pattern for sh TLS support
14691         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14692         * configure: Regenerate.
14693
14694 2015-09-14  Jeff Law  <law@redhat.com>
14695
14696         PR tree-optimization/47679
14697         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14698         type rather than void *.
14699
14700 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14701
14702         PR fortran/67460
14703         * diagnostic.c (diagnostic_initialize): Do not set
14704         some_warnings_are_errors.
14705         (diagnostic_finish): Use DK_WERROR count instead.
14706         (diagnostic_report_diagnostic): Do not set
14707         some_warnings_are_errors.
14708         * diagnostic.h (struct diagnostic_context): Remove
14709         some_warnings_are_errors.
14710
14711 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
14712
14713         * config/sparc/predicates.md (const_all_ones_operand): Use
14714         CONSTM1_RTX to simplify definition.
14715
14716 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
14717
14718         PR target/67061
14719         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14720         Handle call insns.
14721
14722 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
14723
14724         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14725         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14726         OPT_fshow_column to handled saved option cases.
14727         (append_compiler_options): Do not skip the above added options.
14728
14729 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14730
14731         PR target/63304
14732         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14733         nopcrelative_literal_loads.
14734         (aarch64_classify_address): Likewise.
14735         (aarch64_constant_pool_reload_icode): Define.
14736         (aarch64_secondary_reload): Handle secondary reloads for
14737         literal pools.
14738         (aarch64_override_options): Handle nopcrelative_literal_loads.
14739         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14740         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14741         Define.
14742         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14743         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14744         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14745         predicate.
14746         * doc/invoke.texi (mpc-relative-literal-loads): Document.
14747
14748 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
14749
14750         PR middle-end/67401
14751         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14752         sync_compare_and_swap_optab libcall to target_oval.
14753
14754 2015-09-14  Marek Polacek  <polacek@redhat.com>
14755
14756         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14757         value.
14758         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14759
14760 2015-09-11  Mark Wielaard  <mjw@redhat.com>
14761
14762         PR c/28901
14763         * toplev.c (check_global_declaration): Check and use
14764         warn_unused_const_variable.
14765         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14766         (-Wunused-variable): Remove non-constant. For C implies
14767         -Wunused-const-variable.
14768         (-Wunused-const-variable): New.
14769
14770 2015-09-14  Richard Biener  <rguenther@suse.de>
14771
14772         * doc/match-and-simplify.texi: Update for changed syntax
14773         of inner ifs and the new switch expression.
14774
14775 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
14776
14777         * config/i386/haswell.md: New file describing Haswell pipeline.
14778         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14779         haswell-like processors.
14780         (ix86_reassociation_width): Increase reassociation width for 64-bit
14781         Haswell processor family.
14782         * config/i386/i386.md: Introduce haswell cpu and include new md file.
14783
14784 2015-09-14  Richard Biener  <rguenther@suse.de>
14785
14786         * doc/match-and-simplify.texi: Fixup some formatting issues
14787         and document the 's' flag.
14788
14789 2015-09-13  Olivier Hainque  <hainque@adacore.com>
14790             Eric Botcazou  <ebotcazou@adacore.com>
14791
14792         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14793         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
14794         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14795         (TARGET_CPU_gr5): Likewise.
14796         (TARGET_CPU_gr6): Likewise.
14797         (MULTILIB_DEFAULTS): Likewise.
14798         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14799         for mcpu=gr5 and mcpu=gr6.
14800         (MULTILIB_DIRNAMES): Adjust accordingly.
14801
14802 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14803
14804         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14805         (mem_ref_p): Likewise.
14806         (outermost_indep_loop): Adjust.
14807         (mem_ref_in_stmt): Likewise.
14808         (determine_max_movement): Likewise.
14809         (mem_ref_alloc): Likewise.
14810         (record_mem_ref_loc): Likewise.
14811         (set_ref_stored_in_loop): Likewise.
14812         (mark_ref_stored): Likewise.
14813         (gather_mem_refs_stmt): Likewise.
14814         (mem_refs_may_alias_p): Likewise.
14815         (for_all_locs_in_loop): Likewise.
14816         (struct rewrite_mem_ref_loc): Likewise.
14817         (rewrite_mem_refs): Likewise.
14818         (struct first_mem_ref_loc_1): Likewise.
14819         (first_mem_ref_loc): Likewise.
14820         (struct sm_set_flag_if_changed): Likewise.
14821         (execute_sm_if_changed_flag_set): Likewise.
14822         (execute_sm): Likewise.
14823         (hoist_memory_references):
14824         (struct ref_always_accessed): Likewise.
14825         (ref_always_accessed_p): Likewise.
14826         (refs_independent_p): Likewise.
14827         (record_dep_loop): Likewise.
14828         (ref_indep_loop_p_1): Likewise.
14829         (ref_indep_loop_p_2): Likewise.
14830         (ref_indep_loop_p): Likewise.
14831         (can_sm_ref_p): Likewise.
14832         (find_refs_for_sm): Likewise.
14833         (tree_ssa_lim_finalize): Likewise.
14834
14835 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14836
14837         * dwarf2out.c (dw_attr_ref): Remove typedef.
14838         (dw_line_info_ref): Likewise.
14839         (pubname_ref): Likewise.
14840         (dw_ranges_ref): Likewise.
14841         (dw_ranges_by_label_ref): Likewise.
14842         (comdat_type_node_ref): Likewise.
14843         (get_AT): Adjust.
14844         (get_AT_low_pc): Likewise.
14845         (get_AT_hi_pc): Likewise.
14846         (get_AT_string): Likewise.
14847         (get_AT_flag): Likewise.
14848         (get_AT_unsigned): Likewise.
14849         (get_AT_ref): Likewise.
14850         (get_AT_file): Likewise.
14851         (remove_AT): Likewise.
14852         (print_die): Likewise.
14853         (check_die): Likewise.
14854         (die_checksum): Likewise.
14855         (attr_checksum_ordered): Likewise.
14856         (struct checksum_attributes): Likewise.
14857         (collect_checksum_attributes): Likewise.
14858         (die_checksum_ordered): Likewise.
14859         (same_die_p): Likewise.
14860         (is_declaration_die): Likewise.
14861         (clone_die): Likewise.
14862         (clone_as_declaration): Likewise.
14863         (copy_declaration_context): Likewise.
14864         (break_out_comdat_types): Likewise.
14865         (copy_decls_walk): Likewise.
14866         (output_location_lists): Likewise.
14867         (external_ref_hasher::hash): Likewise.
14868         (optimize_external_refs_1): Likewise.
14869         (build_abbrev_table): Likewise.
14870         (size_of_die): Likewise.
14871         (unmark_all_dies): Likewise.
14872         (size_of_pubnames): Likewise.
14873         (output_die_abbrevs): Likewise.
14874         (output_die): Likewise.
14875         (output_pubnames): Likewise.
14876         (add_ranges_num): Likewise.
14877         (add_ranges_by_labels): Likewise.
14878         (add_high_low_attributes): Likewise.
14879         (gen_producer_string): Likewise.
14880         (dwarf2out_set_name): Likewise.
14881         (new_line_info_table): Likewise.
14882         (prune_unused_types_walk_attribs): Likewise.
14883         (prune_unused_types_update_strings): Likewise.
14884         (prune_unused_types): Likewise.
14885         (resolve_addr): Likewise.
14886         (optimize_location_lists_1): Likewise.
14887         (index_location_lists): Likewise.
14888         (dwarf2out_finish): Likewise.
14889
14890 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14891
14892         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14893
14894 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14895
14896         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14897         (dump_asserts_for): Adjust.
14898         (register_new_assert_for): Likewise.
14899         (process_assert_insertions): Likewise.
14900         (insert_range_assertions): Likewise.
14901
14902 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14903
14904         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14905         and remove typedef.
14906         (new_temp_expr_table): Adjust.
14907         (free_temp_expr_table): Likewise.
14908         (version_to_be_replaced_p): Likewise.
14909         (make_dependent_on_partition): Likewise.
14910         (add_to_partition_kill_list): Likewise.
14911         (remove_from_partition_kill_list): Likewise.
14912         (add_dependence): Likewise.
14913         (finished_with_expr): Likewise.
14914         (process_replaceable): Likewise.
14915         (kill_expr): Likewise.
14916         (kill_virtual_exprs): Likewise.
14917         (mark_replaceable): Likewise.
14918         (find_replaceable_in_bb): Likewise.
14919         (find_replaceable_exprs): Likewise.
14920         (debug_ter): Likewise.
14921
14922 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14923
14924         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14925         (struct btr_user): Rename from btr_user_s.
14926         (struct btr_def): Rename from btr_def_s.
14927         (find_btr_def_group): Adjust.
14928         (add_btr_def): Likewise.
14929         (new_btr_user): Likewise.
14930         (note_other_use_this_block): Likewise.
14931         (compute_defs_uses_and_gen): Likewise.
14932         (link_btr_uses): Likewise.
14933         (build_btr_def_use_webs): Likewise.
14934         (block_at_edge_of_live_range_p): Likewise.
14935         (btr_def_live_range): Likewise.
14936         (combine_btr_defs): Likewise.
14937         (move_btr_def): Likewise.
14938         (migrate_btr_def): Likewise.
14939         (migrate_btr_defs): Likewise.
14940
14941 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14942
14943         * var-tracking.c (shared_hash_def): Rename to shared_hash.
14944         (shared_hash): Remove typedef.
14945         (struct dataflow_set): Adjust.
14946         (shared_hash_unshare): Likewise.
14947         (dataflow_set_merge): Likewise.
14948         (vt_initialize): Likewise.
14949         (vt_finalize): Likewise.
14950
14951 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14952
14953         * var-tracking.c (struct location_chain): Rename from
14954         location_chain_def.
14955         (struct variable_part): Adjust.
14956         (variable_htab_free): Likewise.
14957         (unshare_variable): Likewise.
14958         (get_init_value): Likewise.
14959         (get_addr_from_local_cache): Likewise.
14960         (drop_overlapping_mem_locs): Likewise.
14961         (val_reset): Likewise.
14962         (struct variable_union_info): Likewise.
14963         (variable_union): Likewise.
14964         (find_loc_in_1pdv): Likewise.
14965         (insert_into_intersection): Likewise.
14966         (intersect_loc_chains): Likewise.
14967         (canonicalize_loc_order_check): Likewise.
14968         (canonicalize_values_mark): Likewise.
14969         (canonicalize_values_star): Likewise.
14970         (canonicalize_vars_star): Likewise.
14971         (variable_merge_over_cur): Likewise.
14972         (remove_duplicate_values): Likewise.
14973         (variable_post_merge_new_vals): Likewise.
14974         (variable_post_merge_perm_vals): Likewise.
14975         (find_mem_expr_in_1pdv): Likewise.
14976         (dataflow_set_preserve_mem_locs): Likewise.
14977         (dataflow_set_remove_mem_locs): Likewise.
14978         (variable_part_different_p): Likewise.
14979         (onepart_variable_different_p): Likewise.
14980         (find_src_set_src): Likewise.
14981         (dump_var): Likewise.
14982         (set_slot_part): Likewise.
14983         (clobber_slot_part): Likewise.
14984         (delete_slot_part): Likewise.
14985         (vt_expand_var_loc_chain): Likewise.
14986         (emit_note_insn_var_location): Likewise.
14987         (vt_finalize): Likewise.
14988
14989 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14990
14991         * dse.c (store_info_t): Remove typedef.
14992         (group_info_t): Likewise.
14993         (const_group_info_t): Likewise.
14994         (deferred_change_t): Likewise.
14995         (get_group_info): Adjust.
14996         (free_store_info): Likewise.
14997         (canon_address): Likewise.
14998         (clear_rhs_from_active_local_stores): Likewise.
14999         (record_store): Likewise.
15000         (replace_read): Likewise.
15001         (check_mem_read_rtx): Likewise.
15002         (scan_insn): Likewise.
15003         (remove_useless_values): Likewise.
15004         (dse_step1): Likewise.
15005         (dse_step2_init): Likewise.
15006         (dse_step2_nospill): Likewise.
15007         (scan_stores_nospill): Likewise.
15008         (scan_reads_nospill): Likewise.
15009         (dse_step3_exit_block_scan): Likewise.
15010         (dse_step3): Likewise.
15011         (dse_step5_nospill): Likewise.
15012         (dse_step6): Likewise.
15013
15014 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15015
15016         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15017         (alias_set_entry): Remove typedef.
15018         (alias_set_subset_of): Adjust.
15019         (alias_sets_conflict_p): Likewise.
15020         (init_alias_set_entry): Likewise.
15021         (get_alias_set): Likewise.
15022         (new_alias_set): Likewise.
15023         (record_alias_subset): Likewise.
15024
15025 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
15026
15027         * doc/install.texi (Downloading the source): Mark up
15028         contrib/download_prerequisites properly and drop leading "./".
15029
15030 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15031
15032         * config/arc/arc.h: Remove define of STRUCT_VALUE.
15033         * config/lm32/lm32.h: Likewise.
15034         * config/mep/mep.h: Likewise.
15035         * config/visium/visium.h: Likewise.
15036         * system.h: Poison STRUCT_VALUE macro.
15037
15038 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
15039
15040         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15041         CONSTANT_P operands.
15042
15043 2015-09-11  David S. Miller  <davem@davemloft.net>
15044
15045         * config/sparc/constraints.md: Make "U" constraint a real register
15046         constraint.
15047         * config/sparc/sparc.c (TARGET_LRA_P): Define.
15048         (D_MODES, DF_MODES): Add missing cast.
15049         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15050         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15051         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15052         cost to 8.
15053         * config/sparc/sparc.h (PROMOTE_MODE): Define.
15054         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15055         provide these insn when flag_pic.
15056
15057 2015-09-11  Jeff Law  <law@redhat.com>
15058
15059         PR tree-optimization/47679
15060         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15061         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15062         member with m_.  Update inline member functions as necessary.  Add
15063         toplevel comment.
15064         * tree-ssa-scopedtables.c: Update const_and_copies's member
15065         functions to use m_ prefix to access the stack.
15066
15067 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15068
15069         * graphite-optimize-isl.c (disable_tiling): Remove.
15070         (get_schedule_for_band): Do not use disable_tiling.
15071         (get_prevector_map): Delete function.
15072         (enable_polly_vector): Remove.
15073         (get_schedule_for_band_list): Remove dead code.
15074
15075 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15076
15077         * graphite-optimize-isl.c (get_tile_map): Refactor.
15078         (get_schedule_for_band): Same.
15079         (getScheduleForBand): Same.
15080         (get_prevector_map): Same.
15081         (get_schedule_for_band_list): Same.
15082         (get_schedule_map): Same.
15083         (get_single_map): Same.
15084         (apply_schedule_map_to_scop): Same.
15085         (optimize_isl): Same.
15086
15087 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15088
15089         PR target/63304
15090         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15091         (movtf): Delete.
15092         * config/aarch64/iterators.md (GPF_TF_F16): New.
15093         (GPF_F16): Delete.
15094
15095 2015-09-10  Nathan Sidwell  <nathan@acm.org>
15096
15097         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15098         (nvptx_reorg): Adjust comments.
15099
15100 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
15101
15102         PR bootstrap/67363
15103         * configure.ac: Check if setenv and unsetenv are declared.
15104         * configure: Rebuild.
15105         * config.in: Rebuild.
15106         * system.h: Declare setenv and unsetenv if not declared.
15107
15108 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15109
15110         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15111         commentary to simplify permute mask adjustment equation.
15112         (special_handling_values): Add SH_VPERM.
15113         (const_load_sequence_p): New function.
15114         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15115         the mask loaded from the constant pool.
15116         (adjust_vperm): New function.
15117         (handle_special_swappables): Call adjust_vperm.
15118         (dump_swap_insn_table): Handle SH_VPERM.
15119
15120 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15121
15122         * shrink-wrap.c (requires_stack_frame_p): Remove static.
15123         * shrink-wrap.h (requires_stack_frame_p): Put back.
15124
15125 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
15126
15127         * reload1.c (elimination_costs_in_insn): Locally turn
15128         -Wmaybe-uninitialized into a warning.
15129
15130 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
15131
15132         * shrink-wrap.c (requires_stack_frame_p): Make static.
15133         (prepare_shrink_wrap): Likewise.
15134         (dup_block_and_redirect): Likewise.
15135         * shrink-wrap.h: Remove declarations of those functions.
15136
15137 2015-09-10  Mark Wielaard  <mjw@redhat.com>
15138
15139         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15140
15141 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
15142
15143         PR target/67506
15144         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15145         missing simplify_gen_subreg.
15146
15147 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15148
15149         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15150         the vector element is bigger than 64 bit.
15151
15152 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15153
15154         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15155         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15156
15157 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15158
15159         * config/s390/s390.c: Add V1TImode to constant pool modes.
15160
15161 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15162
15163         PR target/67439
15164         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15165         predicate.  Set predicable_short_it attr to "no".
15166
15167 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
15168
15169         PR rtl-optimization/67421
15170         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15171         left wide shift tranformation.
15172
15173 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
15174
15175         * common/config/arc/arc-common.c: Remove references to A5.
15176         * config/arc/arc-opts.h: Likewise.
15177         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15178         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15179         * config/arc/t-arc-newlib: Likewise.
15180
15181 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
15182
15183         * config/arc/arc.md (length): Fix attribute length for conditional
15184         executed instructions with long immediate.
15185
15186 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15187
15188         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15189         type for second alternative.
15190
15191 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
15192
15193         * doc/invoke.texi (Downloading GCC): Mention
15194         contrib/download_prerequisites script.
15195
15196 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
15197
15198         PR c++/67523
15199         * gimplify.c (gimplify_omp_for): If inner stmt is not found
15200         for combined loop, assert seen_error () and return GS_ERROR.
15201
15202         PR middle-end/67521
15203         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15204         if decl is already in outer->variables.
15205
15206         PR middle-end/67517
15207         * gimplify.c (gimplify_scan_omp_clauses): Instead of
15208         asserting that decl is not specified in octx->variables,
15209         break out of the loop if it is.
15210
15211         PR c++/67514
15212         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15213         iterator is not explicitly determined, but is defined inside
15214         of the combined workshare region, handle it like if it has
15215         DECL_EXPR in OMP_FOR_PRE_BODY.
15216
15217 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15218
15219         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15220         (*cmp<mode>): Add assembler spacing.
15221         (setcc_int<mode>, set_cc_float<mode>): Likewise.
15222         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15223         level.
15224         (write_func_decl_from_insn): Refactor argument loops & comma emission.
15225         (nvptx_expand_call): Likewise.
15226         (nvptx_output_call_insn): Likewise.
15227         (nvptx_reorg_subreg): Add spacing.
15228
15229 2015-09-09  Marek Polacek  <polacek@redhat.com>
15230
15231         PR middle-end/67512
15232         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15233         for comparisons.
15234
15235 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15236
15237         PR c++/53184
15238         * doc/invoke.texi ([Wsubobject-linkage]): Document.
15239
15240 2015-09-09  Tom de Vries  <tom@codesourcery.com>
15241
15242         * params-list.h: Add missing copyright notice.
15243
15244 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15245
15246         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15247         sel_truesi, not andsi.
15248
15249 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15250
15251         * config/arm/arm.md (*subsi3_compare0): Rename to...
15252         (subsi3_compare0): ... This.
15253         (modsi3): New define_expand.
15254         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15255         when operand is power of 2.
15256
15257 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15258
15259         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15260         (*neg<mode>2_compare0): Rename to...
15261         (neg<mode>2_compare0): ... This.
15262         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15263         Move check for speed inside the if-then-elses.  Reflect
15264         CSNEG sequence in MOD by power of 2 case.
15265
15266 2015-09-09  Alan Modra  <amodra@gmail.com>
15267
15268         PR target/67378
15269         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15270         reload replacement for PRE_MODIFY address reg.
15271
15272 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
15273
15274         PR tree-optimization/53852
15275         * config.in: Regenerate.
15276         * configure: Regenerate.
15277         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15278         * graphite-optimize-isl.c (optimize_isl): Stop computation when
15279         PARAM_MAX_ISL_OPERATIONS is reached.
15280         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15281         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15282         result equal to isl_stat_ok as the status now can be isl_error_quota.
15283         (subtract_commutative_associative_deps): Same.
15284         (compute_deps): Same.
15285
15286 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15287             Sebastian Pop  <s.pop@samsung.com>
15288
15289         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15290         Return the parameter if it was saved in corresponding
15291         parameter_rename_map of the region.
15292         (copy_def): Copy def from sese region to the newly created region.
15293         (copy_internal_parameters): Copy all the internal parameters defined
15294         within a region to the newly created region.
15295         (graphite_regenerate_ast_isl): Copy parameters to the new region before
15296         translating isl to gimple.
15297         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15298         the loop-nest does not have any data-references.
15299         (build_graphite_scops): Create a scop only when there is at least one
15300         loop inside it.
15301         (contains_only_close_phi_nodes): Deleted.
15302         (print_graphite_scop_statistics): Deleted
15303         (print_graphite_statistics): Deleted
15304         (limit_scops): Deleted.
15305         (build_scops): Removed call to limit_scops.
15306         * sese.c (new_sese): Construct.
15307         (free_sese): Destruct.
15308         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15309         added.
15310         (set_rename): Pass sese region so that parameters inside the region can
15311         be added to its parameter_rename_map.
15312         (rename_uses): Pass sese region.
15313         (graphite_copy_stmts_from_block): Do not copy parameters that have been
15314         generated in the header of the scop. For each SSA_NAME in the
15315         parameter_rename_map rename its usage.
15316         (invariant_in_sese_p_rec): Return false if tree t is defined outside
15317         sese region.
15318         (scalar_evolution_in_region): If the tree t is invariant just return t.
15319         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15320         struct sese to keep track of all the parameters which need renaming.
15321         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15322         any data-refs.
15323         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15324
15325 2015-09-08  Tom de Vries  <tom@codesourcery.com>
15326
15327         * Makefile.in (generated_files): Add params.list.
15328         (params.list, s-params.list): Add rule.
15329         * params.h (enum compiler_param): Include params-list.h.  Move define
15330         DEFPARAM, include params.def and undef DEFPARAM ...
15331         * params-list.h: ... here.  New file.
15332
15333 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
15334
15335         * pretty-print.h (printer_fn): Fix typo in comment.
15336
15337 2015-09-07  Jeff Law  <law@redhat.com>
15338
15339         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15340
15341 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15342
15343         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15344         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15345         (arm_neon_fp16_hw): New.
15346
15347 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15348
15349         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15350         UNITS_PER_WORD >= 4.
15351
15352 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15353
15354         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15355         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15356         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15357         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15358         (aarch64_float_extend_lo_v2df): Rename to...
15359         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15360
15361         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15362         (float_extend_lo): Add v4sf.
15363
15364         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15365         * config/aarch64/iterators.md (VQ_HSF): New iterator.
15366         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15367         (Vwide): New mode_attr.
15368
15369 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15370
15371         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15372         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15373         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15374         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15375         V4HF and V8HF variants to iterator.
15376
15377         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15378
15379         * config/aarch64/iterators.md (VDQF_F16): New.
15380         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15381
15382 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15383
15384         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15385         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15386         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15387         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15388         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15389         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15390         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15391         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15392         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15393         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15394         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15395         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15396         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15397         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15398         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15399         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15400         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15401         vld1q_dup_f16): New.
15402
15403 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15404
15405         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15406         Reparameterize to...
15407         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15408         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15409         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15410
15411         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15412         v8hf variant.
15413         (float_truncate_lo_): Use BUILTIN_VDF iterator.
15414
15415         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15416
15417         * config/aarch64/iterators.md (VDF, Vdtype): New.
15418         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15419
15420 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15421
15422         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15423         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15424         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15425         Add __builtin_aarch64_simd_hf.
15426         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15427         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15428         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15429         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15430         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15431         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15432         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15433         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15434         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15435
15436         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15437         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15438         (VDC, Vdbl): Add V4HF.
15439
15440 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15441
15442         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15443         V4HFmode and V8HFmode.
15444         (aarch64_split_simd_move): Add case for V8HFmode.
15445         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15446         (aarch64_simd_builtin_std_type): Handle HFmode.
15447         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15448
15449         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15450         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15451         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15452
15453         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15454         Float16x8_t.
15455
15456         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15457         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15458         New typedefs.
15459         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15460         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15461         vst1q_lane_f16): New.
15462         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15463         (VALLDI_F16, VALL_F16): New.
15464         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15465         Add cases for V4HF and V8HF.
15466         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15467
15468 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15469
15470         * config/arm/arm-builtins.c (VAR11, VAR12): New.
15471         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15472         vld4_dup): Add v4hf variant.
15473         (vget_high, vget_low): Add v8hf variant.
15474         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15475         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15476         v4hf and v8hf variants.
15477
15478         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15479         (VDX): Add V4HF.
15480         (V_DOUBLE): Add case for V4HF.
15481         (VQX): Add V8HF.
15482         (V_HALF): Add case for V8HF.
15483         (VDQX): Add V4HF, V8HF.
15484         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15485         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15486
15487         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15488         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15489         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15490         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15491         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15492         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15493         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15494         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15495         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15496
15497         (neon_vcreate, neon_vreinterpretv8qi<mode>,
15498         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15499         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15500         Change VDX to VD_RE.
15501
15502         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15503         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15504         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15505
15506         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15507         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15508         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15509         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15510         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15511         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15512         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15513         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15514         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15515
15516 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15517
15518         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15519         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15520         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15521         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15522         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15523         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15524         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15525         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15526         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15527         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15528         New.
15529
15530 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15531
15532         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15533
15534         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15535
15536         * config/arm/arm-builtins.c (v8hf_UP): New.
15537         (arm_init_simd_builtin_types): Initialise Float16x8_t.
15538
15539         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15540
15541         * config/arm/arm_neon.h (float16x8_t): New typedef.
15542
15543 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15544
15545         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15546         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15547         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15548         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15549         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15550         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15551         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15552         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15553         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15554         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15555
15556 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
15557
15558         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15559         non-alphanumeric characters in the symbol name.
15560
15561 2015-09-07  Marek Polacek  <polacek@redhat.com>
15562
15563         PR inline-asm/67448
15564         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15565         a memory input.
15566
15567 2015-09-07  Marek Polacek  <polacek@redhat.com>
15568
15569         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15570
15571 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
15572
15573         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15574         not warn.
15575
15576 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
15577
15578         PR middle-end/67452
15579         * tree-ssa-live.c: Include cfgloop.h.
15580         (remove_unused_locals): Clear loop->simduid if simduid is about
15581         to be removed from cfun->local_decls.
15582
15583 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15584
15585         PR target/65210
15586         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15587         attribute as well.
15588
15589 2015-09-04  Tom de Vries  <tom@codesourcery.com>
15590
15591         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15592
15593 2015-09-04  Jeff Law  <law@redhat.com>
15594
15595         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15596         unnecessary constructor.  It's now trivial and implemented inside...
15597         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15598         constructor.  Add comments to various methods.  Remove unused
15599         private fields.
15600         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15601         * tree-vrp.c (identify_jump_threads): Likewise.
15602         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15603         indentation issues.
15604         (thread_across_edge): Similarly.
15605         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15606         arguments in constructor call.
15607
15608 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
15609
15610         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15611         temp path contains a '-'.
15612
15613 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15614             Petr Murzin  <petr.murzin@intel.com>
15615             Kirill Yukhin  <kirill.yukhin@intel.com>
15616
15617         * config/i386/i386-builtin-types.def
15618         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15619         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15620         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15621         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15622         * config/i386/i386.c
15623         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15624         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15625         IX86_BUILTIN_SCATTERALTDIV16SI.
15626         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15627         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15628         __builtin_ia32_scatteraltdiv8si.
15629         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15630         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15631         IX86_BUILTIN_SCATTERALTDIV16SI.
15632         (ix86_vectorize_builtin_scatter): New.
15633         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15634         ix86_vectorize_builtin_scatter.
15635
15636 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15637             Petr Murzin  <petr.murzin@intel.com>
15638             Kirill Yukhin  <kirill.yukhin@intel.com>
15639
15640         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15641         * doc/tm.texi: Regenerate.
15642         * target.def: Add scatter builtin.
15643         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15644         for loads/stores in case of gather/scatter accordingly.
15645         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15646         STMT_VINFO_GATHER_P(S).
15647         (vect_check_gather): Rename to ...
15648         (vect_check_gather_scatter): this.
15649         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15650         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15651         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15652         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15653         variable and new checkings for it accordingly.
15654         * tree-vect-stmts.c
15655         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15656         STMT_VINFO_GATHER_P(S).
15657         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15658         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15659
15660 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15661
15662         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15663         define_insn.
15664         (mulv16qi3): New define_expand.
15665
15666 2015-09-03  Martin Sebor  <msebor@redhat.com>
15667
15668         PR c/66516
15669         * doc/extend.texi (Other Builtins): Document when the address
15670         of a built-in function can be taken.
15671
15672 2015-09-03  Richard Biener  <rguenther@suse.de>
15673
15674         * dwarf2out.c (flush_limbo_die_list): Split out from ...
15675         (dwarf2out_early_finish): ... here.
15676         (dwarf2out_finish): Do not call dwarf2out_early_finish but
15677         flush_limbo_die_list.  Assert we have no deferred asm names.
15678
15679 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15680
15681         * optabs.c (expand_binop): Don't create a broadcast vector with a
15682         source element wider than the inner mode.
15683
15684 2015-09-03  Richard Biener  <rguenther@suse.de>
15685
15686         * varasm.c (output_constant): Use fold_convert instead of
15687         wide_int_to_tree.
15688
15689 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15690
15691         PR tree-optimization/65637
15692         * omp-low.c (expand_omp_for_static_chunk): Handle case that
15693         fin_bb has 2 predecessors.
15694
15695 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15696
15697         PR tree-optimization/65637
15698         * omp-low.c (find_phi_with_arg_on_edge): New function.
15699         (expand_omp_for_static_chunk): Fix inner loop phi.
15700
15701 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15702
15703         PR tree-optimization/65637
15704         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15705         that head is NULL.
15706
15707 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15708
15709         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15710
15711 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15712
15713         * doc/invoke.texi (parloops-chunk-size): Add item.
15714         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15715         * tree-parloops.c: Include params.h.
15716         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15717         param parloops-chunk-size is used.
15718
15719 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15720
15721         PR middle-end/67351
15722         * fold-const.c (fold_binary_loc) : Move
15723         Transform (x >> c) << c into x & (-1<<c) or
15724         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15725         types using simplify and match.
15726         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15727         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15728
15729 2015-09-03  Richard Biener  <rguenther@suse.de>
15730
15731         PR ipa/66705
15732         * tree-ssa-structalias.c (ctor_for_analysis): New function.
15733         (create_variable_info_for_1): Use ctor_for_analysis instead
15734         of get_constructor.
15735         (create_variable_info_for): Likewise.
15736
15737 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
15738
15739         PR ipa/67280
15740         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15741         in new callgraph edge.
15742
15743 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
15744
15745         PR target/59810
15746         PR target/63652
15747         PR target/63653
15748         * config/aarch64/aarch64-simd.md
15749         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15750         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15751         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15752         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15753
15754 2015-09-02  Alan Modra  <amodra@gmail.com>
15755
15756         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15757         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15758         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15759
15760 2015-09-02  Alan Modra  <amodra@gmail.com>
15761
15762         PR target/67417
15763         * config/rs6000/predicates.md (current_file_function_operand): Don't
15764         return true for weak symbols.
15765         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15766
15767 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15768             Andrew Bennett  <andrew.bennett@imgtec.com>
15769
15770         * config/mips/mips-opts.h (mips_cb_setting): New enum.
15771         * config/mips/mips-protos.h: Add definitions for
15772         mips_output_jump and mips_output_equal_conditional_branch
15773         * config/mips/mips.c (MIPS_JR): Change to support the
15774         JIC instruction.
15775         (mips_emit_compare): Add support for the MIPS R6 conditional
15776         compact branches.
15777         (mips_process_sync_loop): Likewise.
15778         (mips_output_order_conditional_branch): Likewise.
15779         (mips16_build_call_stub): Change MIPS_CALL to
15780         mips_output_jump.
15781         (mips_print_operand_punctuation): Update 's' case to only
15782         apply to micromips r2.
15783         (mips_adjust_insn_length): Add support for forbidden slot
15784         hazards.
15785         (mips_avoid_hazard): Likewise.
15786         (mips_reorg_process_insns): Likewise.
15787         (mips_output_jump): New function.
15788         (mips_output_equal_conditional_branch): Likewise.
15789         (mips_output_conditional_branch): Use jrc/bc if compact
15790         branch support is enabled.  Ensure the forbidden slots
15791         between the two branch instructions is filled with a nop.
15792         (mips_option_override): Add support to process the compact
15793         branch option and set the correct defaults.  Prevent
15794         non-explict relocs being using for MIPS R6.
15795         (mips_trampoline_init): Add compact branch support.
15796         (mips_mult_zero_zero_cost): Allow zero initialisation of
15797         accumulators with TARGET_DSP.
15798         * config/mips/mips.h (TARGET_CB_NEVER): New define.
15799         (TARGET_CB_MAYBE): New define.
15800         (TARGET_CB_ALWAYS): New define.
15801         (ISA_HAS_DELAY_SLOTS): New define.
15802         (ISA_HAS_COMPACT_BRANCHES): New define.
15803         (ISA_HAS_JRC): New define.
15804         (MIPS_BRANCH_C): New define.
15805         (MIPS_CALL): Removed.
15806         (MICROMIPS_J): Removed.
15807         * config/mips/mips.md (compact_form): New attr.
15808         (hazard): Add support for forbidden slots.
15809         (define_delay): Add support for compact branches.
15810         (*branch_order<mode>): Likewise.
15811         (*branch_order<mode>_inverted): Likewise.
15812         (*branch_equality<mode>): Likewise.
15813         (*branch_equality<mode>_inverted): Likewise.
15814         (*jump_absolute): Likewise.
15815         (*jump_pic): Likewise.
15816         (indirect_jump): Use mips_output_jump to produce assembly output.
15817         (tablejump_<mode>"): Likewise.
15818         (*<optab>"): Likewise.
15819         (<optab>_internal): Likewise.
15820         (sibcall_internal): Likewise.
15821         (sibcall_value_internal): Likewise.
15822         (sibcall_value_multiple_internal): Likewise.
15823         (call_internal): Likewise.
15824         (call_split): Likewise.
15825         (call_internal_direct): Likewise.
15826         (call_direct_split): Likewise.
15827         (call_value_internal): Likewise.
15828         (call_value_split): Likewise.
15829         (call_value_internal_direct): Likewise.
15830         (call_value_direct_split): Likewise.
15831         (call_value_multiple_internal): Likewise.
15832         (call_value_multiple_split): Likewise.
15833         (mips_get_fcsr_mips16_<mode>): Likewise.
15834         (mips_set_fcsr_mips16_<mode>): Likewise.
15835         (tls_get_tp_mips16_<mode>): Likewise.
15836         * config/mips/mips.opt: Add -mcompact-branches option.
15837         * config/mips/predicates.md (order_operator): Ensure the
15838         conditional compact branches are only used if the ISA them.
15839         * doc/invoke.texi: Document -mcompact-branches option.
15840
15841 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
15842
15843         PR target/61578
15844         * lra-lives.c (process_bb_lives): Process move pseudos with the
15845         same value for copies and preferences
15846         * lra-constraints.c (match_reload): Create match reload pseudo
15847         with the same value from single dying input pseudo.
15848
15849 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
15850
15851         PR target/67405
15852         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15853
15854 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
15855
15856         * trans-mem.c: Add contributed-by.
15857         * trans-mem.h: Same.
15858
15859 2015-09-01  Richard Biener  <rguenther@suse.de>
15860
15861         * expr.c (expand_expr_real_1): For expanding TERed defs
15862         set the current location to that of the def if not UNKNOWN.
15863
15864 2015-09-01  David Sherwood  <david.sherwood@arm.com>
15865
15866         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15867
15868 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15869
15870         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15871         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
15872         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15873         Include rtl-iter.h.
15874         (noce_simple_bbs): New function.
15875         (noce_try_move): Bail if basic blocks are not simple.
15876         (noce_try_store_flag): Likewise.
15877         (noce_try_store_flag_constants): Likewise.
15878         (noce_try_addcc): Likewise.
15879         (noce_try_store_flag_mask): Likewise.
15880         (noce_try_cmove): Likewise.
15881         (noce_try_minmax): Likewise.
15882         (noce_try_abs): Likewise.
15883         (noce_try_sign_mask): Likewise.
15884         (noce_try_bitop): Likewise.
15885         (bbs_ok_for_cmove_arith): New function.
15886         (noce_emit_all_but_last): Likewise.
15887         (noce_emit_insn): Likewise.
15888         (noce_emit_bb): Likewise.
15889         (noce_try_cmove_arith): Handle non-simple basic blocks.
15890         (insn_valid_noce_process_p): New function.
15891         (contains_mem_rtx_p): Likewise.
15892         (bb_valid_for_noce_process_p): Likewise.
15893         (noce_process_if_block): Allow non-simple basic blocks
15894         where appropriate.
15895
15896 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
15897
15898         * tree-ssa-dom.c (record_equivalences_from_phis,
15899         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15900         (lookup_avail_expr): Likewise, and remove comment and unused temp.
15901
15902 2015-09-01  Nick Clifton  <nickc@redhat.com>
15903
15904         * config/msp430/msp430.opt (mcpu): Fix typo.
15905
15906 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15907
15908         * config/aarch64/aarch64.c (aarch64_set_current_function):
15909         Re-layout any vector parameters have non-simd layout.
15910         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15911         Delete.
15912         (aarch64_simd_expand_args): Delete call to the above.
15913
15914 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
15915
15916         * doc/invoke.texi (asan-stack): Add space before option.
15917
15918 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15919
15920         * tree.h (zerop): New function.
15921         * tree.c (zerop): Likewise.
15922         (element_precision): Handle expressions.
15923         * match.pd (define_predicates): Add zerop.
15924         (x <= +Inf): Fix comment.
15925         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15926         * fold-const.c (fold_binary_loc): ... here. Remove.
15927
15928 2015-08-31  Richard Biener  <rguenther@suse.de>
15929
15930         PR middle-end/67381
15931         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15932
15933 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15934
15935         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15936         (CEXPI): New operator list.
15937         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15938         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15939         Converted from ...
15940         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15941
15942 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15943
15944         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15945         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15946         parameter.
15947         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15948         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15949         (rewrite_into_loop_closed_ssa): ... here.
15950         (replace_uses_in_dominated_bbs): Remove function.
15951         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15952         rewrite_into_loop_closed_ssa_1.
15953
15954 2015-08-31  Michael Matz  <matz@suse.de>
15955
15956         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15957         enter entry and exit blocks for reverse post order.
15958
15959 2015-08-31  Richard Biener  <rguenther@suse.de>
15960
15961         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15962         (lto_location_cache::current_sysp): Likewise.
15963         (output_block::current_sysp): Likewise.
15964         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15965         (lto_location_cache::apply_location_cache): Properly record
15966         system header locations.
15967         (lto_location_cache::input_location): Input whether a file
15968         is a system header.
15969         * lto-streamer-out.c (lto_output_location): Stream whether a file
15970         is a system header.
15971
15972 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15973
15974         PR bootstrap/67363
15975         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15976
15977 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15978
15979         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15980         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15981         Improve function header comments.
15982
15983 2015-08-30  Michael Collison  <michael.collison@linaro.org>
15984
15985         PR other/67320
15986         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15987         standard names
15988
15989 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15990
15991         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15992         special_handling bitfield.
15993         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15994         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15995         that represents a general xxpermdi.
15996         (insn_is_swappable_p): Add handling for vec_concat of two
15997         doublewords, which maps to a specific xxpermdi.
15998         (adjust_xxpermdi): New function.
15999         (adjust_concat): Likewise.
16000         (handle_special_swappables): Call adjust_xxpermdi and
16001         adjust_concat.
16002         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16003
16004 2015-08-30  Rich Felker <dalias@libc.org>
16005
16006         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16007         case instead of sh[123456ble]-*-*.
16008
16009 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
16010
16011         * ira.c (print_unform_and_important_classes,
16012         print_translated_classes): Remove reg_class_names static array.
16013         (print_unform_and_important_classes): Rename to ...
16014         (print_uniform_and_important_classes): ... this.
16015         (ira_debug_allocno_classes): Update accordingly.
16016
16017 2015-08-29  Tom de Vries  <tom@codesourcery.com>
16018
16019         PR tree-optimization/46193
16020         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16021         clause.
16022
16023 2015-08-28  Jeff Law  <law@redhat.com>
16024
16025         PR lto/66752
16026         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16027         unable to find X NE 0 in the tables, return X as the simplified
16028         condition.
16029         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16030         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16031         to VISISTED_BBS.
16032         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16033         after removing the control flow statement and unnecessary edges.
16034
16035 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
16036
16037         Revert:
16038         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16039
16040         PR tree-optimization/67283
16041         * tree-sra.c (type_consists_of_records_p): Rename to...
16042         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16043
16044         (completely_scalarize_record): Rename to...
16045         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16046         code to:
16047         (scalarize_elem): New.
16048
16049 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
16050
16051         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16052         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16053         (aarch64_symbol_type): Likewise.
16054         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16055         Likewise.
16056         (aarch64_expand_mov_immediate): Likewise.
16057         (aarch64_print_operand): Likewise.
16058         (aarch64_classify_tls_symbol): Likewise.
16059
16060 2015-08-28  Richard Biener  <rguenther@suse.de>
16061
16062         * cgraphunit.c (symbol_table::compile): Move early debug generation
16063         and finish...
16064         (symbol_table::finalize_compilation_unit): ... back here and
16065         add a !seen_error () guard.
16066
16067 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16068
16069         * toplev.c (process_options): Do not use flag_loop_block,
16070         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
16071         flag_loop_optimize_isl.
16072
16073 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16074
16075         * Makefile.in (OBJS): Remove graphite-blocking.o and
16076         graphite-interchange.o.
16077         * common.opt (floop-strip-mine, floop-interchange, floop-block):
16078         Alias of floop-nest-optimize.
16079         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16080         Document as alias of -floop-nest-optimize.
16081         * graphite-blocking.c: Remove.
16082         * graphite-interchange.c: Remove.
16083         * graphite-optimize-isl.c: Include dumpfile.h.
16084         (getScheduleForBand): Add dump for tiled loops.  Use
16085         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16086         * graphite-poly.c (scop_max_loop_depth): Remove.
16087         (print_scattering_function_1): Remove.
16088         (print_scattering_function): Remove.
16089         (print_scattering_functions): Remove.
16090         (debug_scattering_function): Remove.
16091         (debug_scattering_functions): Remove.
16092         (apply_poly_transforms): Remove use of flag_loop_block,
16093         flag_loop_strip_mine, and flag_loop_interchange.
16094         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16095         PBB_ORIGINAL.
16096         (print_pdr_access_layout): Remove.
16097         (print_pdr): Print ISL representation.
16098         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16099         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16100         (free_scop): Same.
16101         (openscop_print_pbb_domain): Remove.
16102         (print_pbb): Remove call to print_scattering_function.
16103         (openscop_print_scop_context): Remove.
16104         (print_scop_context): Do not print matrices anymore.
16105         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16106         SCOP_TRANSFORMED_SCHEDULE.
16107         (print_isl_set): Add printing of a new line.
16108         (print_isl_map): Same.
16109         (print_isl_aff): Same.
16110         (print_isl_constraint): Same.
16111         (loop_to_lst): Remove.
16112         (scop_to_lst): Remove.
16113         (lst_indent_to): Remove.
16114         (print_lst): Remove.
16115         (debug_lst): Remove.
16116         (dot_lst_1): Remove.
16117         (dot_lst): Remove.
16118         (reverse_loop_at_level): Remove.
16119         (reverse_loop_for_pbbs): Remove.
16120         * graphite-poly.h (pdr_dim_iter_domain): Remove.
16121         (pdr_nb_params): Remove.
16122         (pdr_alias_set_dim): Remove.
16123         (pdr_subscript_dim): Remove.
16124         (pdr_iterator_dim): Remove.
16125         (pdr_parameter_dim): Remove.
16126         (same_pdr_p): Remove.
16127         (struct poly_scattering): Remove.
16128         (struct poly_bb): Remove _original, _transformed, _saved.
16129         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16130         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16131         (PBB_NB_LOCAL_VARIABLES): Remove.
16132         (PBB_NB_SCATTERING_TRANSFORM): Remove.
16133         (schedule_to_scattering): Remove.
16134         (number_of_write_pdrs): Remove.
16135         (pbb_dim_iter_domain): Remove.
16136         (pbb_nb_params): Remove.
16137         (pbb_nb_scattering_orig): Remove.
16138         (pbb_nb_scattering_transform): Remove.
16139         (pbb_nb_dynamic_scattering_transform): Remove.
16140         (pbb_nb_local_vars): Remove.
16141         (pbb_iterator_dim): Remove.
16142         (pbb_parameter_dim): Remove.
16143         (psco_scattering_dim): Remove.
16144         (psct_scattering_dim): Remove.
16145         (psct_local_var_dim): Remove.
16146         (psco_iterator_dim): Remove.
16147         (psct_iterator_dim): Remove.
16148         (psco_parameter_dim): Remove.
16149         (psct_parameter_dim): Remove.
16150         (psct_dynamic_dim): Remove.
16151         (psct_static_dim): Remove.
16152         (psct_add_local_variable): Remove.
16153         (new_lst_loop): Remove.
16154         (new_lst_stmt): Remove.
16155         (free_lst): Remove.
16156         (copy_lst): Remove.
16157         (lst_add_loop_under_loop): Remove.
16158         (lst_depth): Remove.
16159         (lst_dewey_number): Remove.
16160         (lst_dewey_number_at_depth): Remove.
16161         (lst_pred): Remove.
16162         (lst_succ): Remove.
16163         (lst_find_pbb): Remove.
16164         (find_lst_loop): Remove.
16165         (lst_find_first_pbb): Remove.
16166         (lst_empty_p): Remove.
16167         (lst_find_last_pbb): Remove.
16168         (lst_contains_p): Remove.
16169         (lst_contains_pbb): Remove.
16170         (lst_create_nest): Remove.
16171         (lst_remove_from_sequence): Remove.
16172         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16173         (lst_niter_for_loop): Remove.
16174         (pbb_update_scattering): Remove.
16175         (lst_update_scattering_under): Remove.
16176         (lst_update_scattering): Remove.
16177         (lst_insert_in_sequence): Remove.
16178         (lst_replace): Remove.
16179         (lst_substitute_3): Remove.
16180         (lst_distribute_lst): Remove.
16181         (lst_remove_all_before_including_pbb): Remove.
16182         (lst_remove_all_before_excluding_pbb): Remove.
16183         (struct scop): Remove original_schedule, transformed_schedule, and
16184         saved_schedule.
16185         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16186         (SCOP_SAVED_SCHEDULE): Remove.
16187         (poly_scattering_new): Remove.
16188         (poly_scattering_free): Remove.
16189         (poly_scattering_copy): Remove.
16190         (store_scattering_pbb): Remove.
16191         (store_lst_schedule): Remove.
16192         (restore_lst_schedule): Remove.
16193         (store_scattering): Remove.
16194         (restore_scattering_pbb): Remove.
16195         (restore_scattering): Remove.
16196         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16197         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
16198         compute the scattering polyhedron dimension from the dimension of
16199         pbb->domain.
16200         (build_scop_scattering): Update call to
16201         build_pbb_scattering_polyhedrons.
16202         (build_poly_scop): Remove call to scop_to_lst.
16203         * graphite.c (graphite_transform_loops): Add call to print_scop.
16204         (gate_graphite_transforms): Remove use of flag_loop_block,
16205         flag_loop_interchange, and flag_loop_strip_mine.
16206
16207 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16208
16209         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16210         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16211         -floop-nest-optimize.
16212         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16213         (generate_luj_sepclass): Remove.
16214         (generate_luj_options): Remove.
16215         (set_options): Remove opt_luj.
16216         (scop_to_isl_ast): Remove opt_luj.
16217         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16218         flag_loop_unroll_jam.
16219         (getPrevectorMap_full): Remove.
16220         (getScheduleForBandList): Remove map_sepcl.
16221         (getScheduleMap): Same.
16222         (apply_schedule_map_to_scop): Remove sepcl.
16223         (optimize_isl): Same.
16224         * graphite-poly.c (apply_poly_transforms): Remove check for
16225         flag_loop_unroll_jam.
16226         (new_poly_bb): Remove map_sepclass.
16227         * graphite-poly.h (struct poly_bb): Same.
16228         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16229         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16230         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16231         * toplev.c (process_options): Remove flag_loop_unroll_jam.
16232
16233 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
16234
16235         PR target/67317
16236         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16237         (addqi3_cc): Ditto.
16238         (UNSPEC_ADD_CARRY): Remove.
16239         (addqi3_cconly_overflow): New expander.
16240         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16241         Adjust for changed add<mode>3_carry.
16242         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16243         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16244         (<plusminus_insn><mode>3_carry): Remove expander.
16245         (*<plusminus_insn><mode>3_carry): Split insn pattern to
16246         add<mode>3_carry and sub<mode>3_carry.
16247         (plusminus_carry_mnemonic): Remove code attribute.
16248         (add<mode>3_carry): Canonicalize insn pattern.
16249         (*addsi3_carry_zext): Ditto.
16250         (sub<mode>3_carry): Ditto.
16251         (*subsi3_carry_zext): Ditto.
16252         (adcx<mode>3): Remove insn pattern.
16253         (addcarry<mode>): New insn pattern.
16254         (subborrow<mode>): Ditto.
16255         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16256         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16257         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16258         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16259         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16260         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16261         Rewrite expander to not clobber carry flag chains.
16262
16263 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
16264
16265         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16266         instead of a rotate.
16267
16268 2015-08-27  Marek Polacek  <polacek@redhat.com>
16269
16270         PR middle-end/67005
16271         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16272         an entry into an irreducible region.
16273
16274 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16275
16276         * configure: Regenerate.
16277
16278 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16279
16280         PR tree-optimization/67283
16281         * tree-sra.c (type_consists_of_records_p): Rename to...
16282         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16283
16284         (completely_scalarize_record): Rename to...
16285         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16286         (scalarize_elem): New.
16287
16288 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16289
16290         * tree-sra.c (completely_scalarize_var): Rename to...
16291         (create_total_scalarization_access): ... Here. Drop call to
16292         completely_scalarize_record.
16293
16294         (analyze_all_variable_accesses): Replace completely_scalarize_var
16295         with create_total_scalarization_access and completely_scalarize_record.
16296
16297 2015-08-27  Alan Modra  <amodra@gmail.com>
16298
16299         PR target/67356
16300         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16301         for operand 1.
16302
16303 2015-08-27  Richard Biener  <rguenther@suse.de>
16304
16305         * passes.c (rest_of_decl_compilation): Guard early_global_decl
16306         call with !seen_error ().
16307         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16308         early debug generation and finish...
16309         (symbol_table::compile): ... here to put it after a !seen_error ()
16310         guard.
16311
16312 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16313
16314         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16315         Solaris 12+.
16316
16317 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16318             Andre Vieira  <andre.simoesdiasvieira@arm.com>
16319
16320         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16321         (*cb<optab><mode>1): Likewise.
16322         (*tb<optab><mode>1): Likewise.
16323         (*cb<optab><mode>1): Likewise.
16324         * config/aarch64/iterators.md (inv_cb): New code attribute.
16325         (inv_tb): Likewise.
16326         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16327         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16328
16329 2015-08-27  Richard Biener  <rguenther@suse.de>
16330
16331         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16332
16333 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16334
16335         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16336         trap to fix ICE.
16337
16338 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16339
16340         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16341         Add declaration.
16342
16343         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16344         comment.
16345         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16346         floating point in VSX registers.
16347         (rs6000_output_move_128bit): Always print out the set insn if we
16348         can't generate an appropriate 128-bit move.
16349         (rs6000_generate_compare): Add support for IEEE 128-bit floating
16350         point in VSX registers comparisons.
16351         (rs6000_expand_float128_convert): Likewise.
16352
16353         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16354         predicate for only GPR hard registers.
16355
16356         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16357         modes to iterators. Add new iterators for moving 128-bit values in
16358         scalar FPR registers and VSX registers.
16359         (FMOVE128): Likewise.
16360         (FMOVE128_FPR): Likewise.
16361         (FMOVE128_GPR): Likewise.
16362         (FMOVE128_VSX): Likewise.
16363         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16364         in VSX registers.
16365         (IFKF): Likewise.
16366         (IBM128): Likewise.
16367         (TFIFKF): Likewise.
16368         (RELOAD): Add IEEE 128-bit floating point modes.
16369         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16370         floating point in VSX registers modes.
16371         (signbit<mode>2, IBM128 iterator): Likewise.
16372         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16373         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16374         (negtf2): Likewise.
16375         (neg<mode>2, TFIFKF iterator): Likewise.
16376         (negtf2_internal): Likewise.
16377         (abstf2): Likewise.
16378         (abs<mode>2, TFIFKF iterator): Likewise.
16379         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16380         VSX insn support for negate, absolute value, and negative absolute
16381         value.
16382         (ieee_128bit_vsx_neg<mode>2): Likewise.
16383         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16384         (ieee_128bit_vsx_abs<mode>2): Likewise.
16385         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16386         (ieee_128bit_vsx_nabs<mode>2): Likewise.
16387         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16388         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16389         floating point in VSX registers.
16390         (unpack<mode>_dm): Likewise.
16391         (unpack<mode>_nodm): Likewise.
16392         (pack<mode>): Likewise.
16393         (unpackv1ti): Likewise.
16394         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16395         (packv1ti): Likewise.
16396         (pack<mode>, FMOVE128_VSX iterator): Likewise.
16397         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16398         registers.
16399         (extenddftf2_internal): Likewise.
16400         (trunctfdf2): Likewise.
16401         (trunctfdf2_internal2): Likewise.
16402         (fix_trunc_helper): Likewise.
16403         (fix_trunctfdi2"): Likewise.
16404         (floatditf2): Likewise.
16405         (floatuns<mode>tf2): Likewise.
16406         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16407         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16408         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16409         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16410         (float<SDI:mode><IFKF:mode>2): Likewise.
16411         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16412
16413 2015-08-26  Renlin Li  <renlin.li@arm.com>
16414
16415         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16416
16417 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16418             Jiong Wang  <jiong.wang@arm.com>
16419
16420         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16421         (tlsie_tiny_<mode>): New define_insn.
16422         (tlsie_tiny_sidi): Likewise.
16423         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16424         SYMBOL_TINY_TLSIE.
16425         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16426         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16427         SYMBOL_TINY_TLSIE.
16428         (aarch64_expand_mov_immediate): Likewise.
16429         (aarch64_print_operand): Likewise.
16430         (arch64_classify_tls_symbol): Likewise.
16431
16432 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16433
16434         * config/arm/arm-arches.def: Replace single value flags with
16435         an initializer built from ARM_FSET_MAKE_CPU1.
16436         * config/arm/arm-cores.def: Likewise.
16437         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16438         derivation from the ARM_CORE macro definition, use the given value
16439         instead.
16440         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16441         ARM_ARCH macro definition, use the given value instead.
16442
16443 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16444
16445         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16446         feature set.
16447         (struct builtin_description): Replace field mask with field
16448         features.
16449         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16450         (IWMMXT2_BUILTIN): Likewise.
16451         (IWMMXT2_BUILTIN2): Likewise.
16452         (FP_BUILTIN): Likewise.
16453         (CRC32_BUILTIN): Likewise.
16454         (CRYPTO_BUILTIN): Likewise.
16455         (iwmmx_mbuiltin): Likewise.
16456         (iwmmx2_mbuiltin): Likewise.
16457         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16458         struct builtin_description.
16459
16460 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16461
16462         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16463         (struct builtin_description): Change type of mask to unsigned
16464         long.
16465         * config/arm/arm-protos.h (insn_flags): Declare as type
16466         arm_feature_set.
16467         (tune_flags): Likewise.
16468         * config/arm/arm.c (feature_count): New.
16469         (insn_flags): Define as type arm_feature_set.
16470         (tune_flags): Likewise.
16471         (struct processors): Define field flags as type arm_feature_set.
16472         (all_cores): Update for change to struct processors.
16473         (all_architectures): Likewise.
16474         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16475         macros.
16476         (arm_option_override_internal): Likewise.
16477         (arm_option_override): Likewise.
16478
16479 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16480             Jiong Wang  <jiong.wang@arm.com>
16481
16482         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16483         tls size for tiny, small, large memory model.
16484         (aarch64_load_symref_appropriately): Support new symbol types.
16485         (aarch64_expand_mov_immediate): Likewise.
16486         (aarch64_print_operand): Likewise.
16487         (aarch64_classify_tls_symbol): Likewise.
16488         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16489         (aarch64_symbol_type): Likewise.
16490         * config/aarch64/aarch64.md (tlsle): Deleted.
16491         (tlsle12_<mode>): New define_insn.
16492         (tlsle24_<mode>): Likewise.
16493         (tlsle32_<mode>): Likewise.
16494         (tlsle48_<mode>): Likewise.
16495         * doc/sourcebuild.texi (AArch64-specific attributes): Document
16496         "aarch64_tlsle32".
16497
16498 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16499
16500         * config/arm/arm-protos.h (FL_NONE): New.
16501         (FL_ANY): New.
16502         (arm_feature_set): New.
16503         (ARM_FSET_MAKE): New.
16504         (ARM_FSET_MAKE_CPU1): New.
16505         (ARM_FSET_MAKE_CPU2): New.
16506         (ARM_FSET_CPU1): New.
16507         (ARM_FSET_CPU2): New.
16508         (ARM_FSET_EMPTY): New.
16509         (ARM_FSET_ANY): New.
16510         (ARM_FSET_HAS_CPU1): New.
16511         (ARM_FSET_HAS_CPU2): New.
16512         (ARM_FSET_HAS_CPU): New.
16513         (ARM_FSET_ADD_CPU1): New.
16514         (ARM_FSET_ADD_CPU2): New.
16515         (ARM_FSET_DEL_CPU1): New.
16516         (ARM_FSET_DEL_CPU2): New.
16517         (ARM_FSET_UNION): New.
16518         (ARM_FSET_INTER): New.
16519         (ARM_FSET_XOR): New.
16520         (ARM_FSET_EXCLUDE): New.
16521         (AFM_FSET_IS_EMPTY): New.
16522         (ARM_FSET_CPU_SUBSET): New.
16523
16524 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16525
16526         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16527         SYMBOL_TLSLE to SYMBOL_TLSLE24.
16528         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16529         Likewise.
16530         (aarch64_expand_mov_immediate): Likewise.
16531         (aarch64_print_operand): Likewise.
16532         (aarch64_classify_symbol): Likewise.
16533
16534 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16535
16536         * config/aarch64/aarch64.opt (mtls-size): New entry.
16537         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16538         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16539         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16540
16541 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16542
16543         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16544         ARM_CORE entry.  Fix some white-space.
16545         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16546         ARM_CORE definition.
16547
16548 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16549
16550         * fold-const.c (fold_binary_loc) : Move Optimize
16551         root(x)*root(y) as root(x*y) to match.pd.
16552         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16553         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16554         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16555         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16556         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16557         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16558         (mult (exps:s @0) (exps:s @1)) : New simplifier.
16559         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16560         (rdiv @0 (exps:s @1)) : New simplifier.
16561
16562 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
16563
16564         * gcc.c (driver::finalize): Only assign to extra_specs if
16565         [EXTRA_SPECS].
16566
16567 2015-08-25  Marek Polacek  <polacek@redhat.com>
16568
16569         PR middle-end/67330
16570         * varasm.c (declare_weak): Return after giving an error.
16571
16572 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
16573
16574         * gcc-main.c (main): Add params to driver ctor.
16575         * gcc.c (class env_manager): New.
16576         (env): New global.
16577         (env_manager::init): New.
16578         (env_manager::get): New.
16579         (env_manager::xput): New.
16580         (env_manager::restore): New.
16581         Poison getenv and putenv.
16582         (DEFAULT_TARGET_SYSTEM_ROOT): New.
16583         (target_system_root): Update initialization to use
16584         DEFAULT_TARGET_SYSTEM_ROOT.
16585         (struct spec_list): Add field "default_ptr".
16586         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16587         (init_spec): Likewise.
16588         (set_spec): Clear field "default_ptr".
16589         (read_specs): Free "spec" and "buffer".
16590         (xputenv): Reimplement in terms of env_manager.
16591         (process_command): Replace ::getenv calls with calls to the
16592         env_manager singleton.
16593         (process_brace_body): Free string in three places.
16594         (driver::driver): New.
16595         (driver::~driver): New.
16596         (used_arg): Convert from a function to...
16597         (class used_arg_t): ...this class, and...
16598         (used_arg): ...this new global instance.
16599         (used_arg_t::finalize): New function.
16600         (getenv_spec_function): Add "const" to local "value".  Replace
16601         ::getenv call with call to the env_manager singleton.
16602         (path_prefix_reset): New function.
16603         (driver::finalize): New function.
16604         * gcc.h (driver::driver): New.
16605         (driver::~driver): New.
16606         (driver::finalize): New.
16607
16608 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16609
16610         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16611         target doesn't have one.
16612
16613 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16614
16615         PR target/67346
16616         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16617
16618 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16619
16620         PR target/67344
16621         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16622         a define_insn, remove second alternative.
16623
16624 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
16625             Joseph Myers  <joseph@codesourcery.com>
16626
16627         * gcc.c (struct switchstr): Expand comment.
16628
16629 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16630
16631         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16632         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16633
16634 2015-08-25  Richard Biener  <rguenther@suse.de>
16635
16636         PR middle-end/67306
16637         * genmatch.c (expr::gen_transform): Verify the result of
16638         builtin_decl_implicit.
16639         (dt_simplify::gen_1): Likewise.
16640
16641 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16642
16643         * config/arm/constraints.md: Also list Cs and US ARM-specific
16644         constraints as used.
16645
16646 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16647
16648         PR target/66609
16649         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16650         UNSPEC_PCREL.
16651         (nonpic_symbol_mentioned_p): Likewise.
16652         (sh_delegitimize_address): Likewise.
16653         (sh_function_ok_for_sibcall): Take into account weak symbols.
16654         (sh_expand_sym_label2reg): New.
16655         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16656         * config/sh/sh.md (UNSPEC_PCREL): New enum.
16657         (call_pcrel): Use sh_expand_sym_label2reg.
16658         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16659         (symPCREL_label2reg) New expand.
16660
16661 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16662
16663         * graphite-poly.c: Change type of region from void* to sese.
16664         * graphite-poly.h (struct scop): Changing the type of scop::region
16665         from void* to sese. Change accessor macro accordingly.
16666         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16667
16668 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16669
16670         * graphite-scop-detection.c (stmt_simple_for_scop_p):
16671         Constrain only on INTEGER_TYPE.
16672
16673 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16674
16675         PR target/67211
16676         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16677         -mefficient-unaligned-vsx on ISA 2.7.
16678
16679         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16680         option to a masked option.
16681
16682         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16683         logic for -mefficient-unaligned-vsx so that it is set via an arch
16684         ISA option, instead of being set if -mtune=power8 is set. Move
16685         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16686         near other default option handling.
16687
16688 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16689
16690         * genflags.c (gen_macro): Delete.
16691         (gen_proto): Don't create GEN.*CALL.* macros.
16692         * gensupport.h (get_file_location): Declare.
16693         * gensupport.c (rtx_locs): New variable.
16694         (read_md_rtx): Record rtx locations.
16695         (get_file_location): New function.
16696         * target-insns.def (call, call_pop, call_value, call_value_pop)
16697         (sibcall, sibcall_value): New patterns.
16698         * gentarget-def.c (parse_argument): New function.
16699         (def_target_insn): Use it.  Handle optional operands.  Raise an
16700         error if an .md pattern has the wrong number of operands for the
16701         pattern name.  Remove the names of unused operands from the prototype.
16702         * builtins.c (expand_builtin_apply): Use targetm functions
16703         instead of HAVE_call_value and GEN_CALL_VALUE.
16704         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
16705         and sibcall_value_pop.
16706         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16707         of GEN_CALL.
16708         * config/alpha/alpha.md (untyped_call): Likewise.
16709         * config/iq2000/iq2000.md (untyped_call): Likewise.
16710         * config/m68k/m68k.md (untyped_call): Likewise.
16711         * config/mips/mips.md (untyped_call): Likewise.
16712         * config/pa/pa.md (untyped_call): Likewise.
16713         * config/rs6000/rs6000.md (untyped_call): Likewise.
16714         * config/sparc/sparc.md (untyped_call): Likewise.
16715         * config/tilegx/tilegx.md (untyped_call): Likewise.
16716         * config/tilepro/tilepro.md (untyped_call): Likewise.
16717         * config/visium/visium.md (untyped_call): Likewise.
16718         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16719         gen_call_value instead of GEN_CALL_VALUE.
16720         * config/arm/arm.md (untyped_call): Likewise.
16721         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16722         GEN_CALL.
16723
16724 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16725
16726         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16727         (have_cbranchcc4): New variable.
16728         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16729         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16730         (if_convert): Initialize have_cbranchcc4.
16731
16732 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16733
16734         * builtins.c (expand_cmpstrn): Rename to...
16735         (expand_cmpstrn_or_cmpmem): ...this.
16736         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16737         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16738         Remove mode argument.
16739         (expand_builtin): Update accordingly.
16740
16741 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16742
16743         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16744         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
16745         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16746         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16747         Add predicates for operands 0 and 3.
16748         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16749         operand.
16750         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16751         immediate_operand to nonmemory_operand.
16752
16753 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16754
16755         * df-scan.c (df_insn_info_init_fields): New function, split out
16756         from...
16757         (df_insn_create_insn_record): ...here.
16758         (df_insn_info_free_fields): New function, split out from...
16759         (df_insn_info_delete): ...here.
16760         (df_insn_rescan): Use the new functions instead of freeing and
16761         reallocating the df_insn_info.
16762
16763 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16764
16765         * doc/install.texi (Binaries): Remove links no longer valid.
16766
16767 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
16768
16769         * config/nvptx/mkoffload.c (process): Replace
16770         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16771
16772 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
16773
16774         PR target/67329
16775         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16776
16777 2015-08-24  Renlin Li  <renlin.li@arm.com>
16778
16779         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16780         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16781         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16782         * config/arm/constraints.md ("j"): Add check for high code.
16783
16784 2015-08-24  Tom de Vries  <tom@codesourcery.com>
16785
16786         PR tree-optimization/65468
16787         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16788         chunk_size is one.
16789
16790 2015-08-24  Nathan Sidwell  <nathan@acm.org>
16791
16792         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16793         change to nvptx_type_from_mode call. Use arg_promotion for both
16794         split and non-split args.
16795
16796 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16797
16798         * target-insns.def (movstr): New pattern.
16799         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16800         (expand_movstr): Use targetm rather than HAVE_movstr/
16801         CODE_FOR_movstr.
16802
16803 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16804
16805         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16806         cast syntax.
16807
16808 2015-08-24  Andrew Pinski  <apinski@cavium.com>
16809
16810         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16811         AARCH64_EXTRA_TUNING_OPTION.
16812         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16813         New enum.
16814         (aarch64_extra_tuning_flags): Base the shifted value on the index
16815         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16816         * config/aarch64/aarch64.c: Remove the last argument to
16817         AARCH64_EXTRA_TUNING_OPTION.
16818
16819 2015-08-23  Nathan Sidwell  <nathan@acm.org>
16820
16821         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16822         decls.
16823         (nvptx_declare_function_name): Insert formatting tabs for
16824         consistency.
16825
16826 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16827
16828         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16829         parm_decl, rather than generating a dummy default def in cfun.
16830         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
16831         ssa_name from cfun and child_fn do not share a stmt as def stmt.
16832         (move_stmt_op): Handle PARM_DECl.
16833         (gather_ssa_name_hash_map_from): New function.
16834         (move_sese_region_to_fn): Add default defs for function params, and add
16835         them to vars_map.  Release copied ssa names.
16836         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16837
16838 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16839
16840         * doc/sourcebuild.texi: Rename vect_no_int_max with
16841         vect_no_int_min_max.  Update description.
16842
16843 2015-08-22  Andrew Pinski  <apinski@cavium.com>
16844
16845          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16846         * config/aarch64/aarch64-protos.h
16847         (aarch64_fusion_pairs_index): New enum.
16848         (aarch64_fusion_pairs): Base the shifted value on the index instead
16849         Rewrite AARCH64_FUSE_ALL to be based on the end index.
16850         of the argument to AARCH64_FUSION_PAIR.
16851         * config/aarch64/aarch64.c: Remove the last argument to
16852         AARCH64_FUSION_PAIR.
16853
16854 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
16855
16856         * dominance.c (new_zero_array): Define.
16857         (dom_info): Redefine as class with proper encapsulation.
16858         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16859         Add new members.
16860         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
16861         allocations/deallocations.  Pass function as parameter (instead of
16862         using cfun).
16863         (dom_info::get_idom): Define accessor method.
16864         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16865         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
16866         (calculate_dominance_info): Adjust to use dom_info class.
16867         (verify_dominators): Likewise.
16868
16869 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
16870
16871         * print-rtl.c (print_rtx): Check the correct range for
16872         flag_dump_unnumbered_links to behave as documented.
16873
16874         PR rtl-optimization/67227
16875         PR rtl-optimization/64164
16876         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16877         (nonoverlapping_memrefs_p): Test offsets and sizes when given
16878         identical gimple_reg exprs.
16879
16880 2015-08-21  Nathan Sidwell  <nathan@acm.org>
16881
16882         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16883         expansion.
16884         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16885         crtl->stack_alignment_needed to determine alignment.
16886         (nvptx_get_drap_rtx): New.
16887         (TARGET_GET_DRAP_RTX): Override.
16888         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16889
16890 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16891
16892         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16893
16894 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16895
16896         * configure.ac: Remove uwin* cases.
16897         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16898         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16899         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16900         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16901         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16902         i[34567]86-*-uwin*, powerpc-*-beos*.
16903
16904 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
16905
16906         * gencodes.c (gencodes): Print the comma for the preceding
16907         enum value rather than the current one.  Use aliased enum values
16908         rather than #defines for compiled-out patterns.
16909         (main): Update accordingly.  Replace LAST_INSN_CODE with
16910         NUM_INSN_CODES.
16911         * lra.c (insn_code_data): Update accordingly.
16912         (finish_insn_code_data_once, get_static_insn_data): Likewise.
16913         * recog.h (target_recog): Likewise.
16914         (preprocess_insn_constraints): Change parameter to unsigned int.
16915         * recog.c (preprocess_insn_constraints): Likewise.
16916         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16917         * tree-vect-stmts.c (vectorizable_operation): Simplify.
16918
16919 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16920
16921         PR rtl-optimization/61657
16922         * loop-iv.c (iv_number_of_iterations): Declare up and down as
16923         unsigned.  Remove superflous uint64_t cast.
16924
16925 2014-08-21  Felix Yang  <felix.yang@huawei.com>
16926             Jiji Jiang  <jiangjiji@huawei.com>
16927
16928         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16929         argument and get builtin function code directly from CALL.
16930         (gimple_stringop_fixed_value): Modified accordingly.
16931         (gimple_stringops_transform, gimple_stringops_values_to_profile):
16932         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16933
16934 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16935
16936         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16937
16938 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16939
16940         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16941         to match.pd.
16942         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16943         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16944         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16945         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16946         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16947         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16948         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16949         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16950         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16951         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16952
16953         * match.pd (SIN ) : New Operator.
16954         (TAN) : New Operator.
16955         (mult (SQRT@1 @0) @1) : New simplifier.
16956         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16957         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16958         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16959         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16960         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16961         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16962         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16963         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16964         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16965         (rdiv @0 (POW:s @1 @2)) : New simplifier.
16966
16967 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
16968
16969         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16970         loop if EXPR is simplified to const value.
16971
16972 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
16973
16974         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16975         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16976
16977 2015-08-21  Richard Biener  <rguenther@suse.de>
16978
16979         PR middle-end/67285
16980         * gimple-fold.c (replace_stmt_with_simplification): Assert
16981         seq is empty when replacing a call with itself but different
16982         arguments.
16983         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16984         a call require that it is const.
16985
16986 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16987
16988         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16989         * builtins.c (get_object_alignment_2): Adjust.
16990         * varasm.c (align_variable): Likewise.
16991         (get_variable_align): Likewise.
16992         (build_constant_desc): Likewise.
16993         (force_const_mem): Likewise.
16994         * doc/tm.texi.in: Likewise.
16995         * doc/tm.texi: Regenerate.
16996
16997 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16998
16999         * genconfig.c (main): Always define HAVE_cc0.
17000         * recog.c (rest_of_handle_peephole2): Adjust.
17001
17002 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17003
17004         * reorg.c (relax_delay_slots): Don't use #if to check value of
17005         HAVE_cc0.
17006
17007 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17008
17009         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17010         * targhooks.c (default_have_conditional_execution): Adjust.
17011
17012 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17013
17014         * rtl.h (rtvec_all_equal_p): Declare.
17015         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17016         * rtl.c (rtvec_all_equal_p): New function.
17017         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17018         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17019         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17020         * config/arm/arm.c (neon_vdup_constant): Likewise.
17021         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17022         * config/tilegx/constraints.md (W, Y): Likewise.
17023         * config/tilepro/constraints.md (W, Y): Likewise.
17024         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17025         (classify_immediate): Use unwrap_const_vec_duplicate.
17026         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17027         (reg_or_v2s8bit_operand): Likewise.
17028         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17029         (reg_or_v4s8bit_operand): Likewise.
17030
17031 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17032
17033         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17034         (vec_shasigma_be): New #define.
17035         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17036         (VPMSUMH): Likewise.
17037         (VPMSUMW): Likewise.
17038         (VPMSUMD): Likewise.
17039         (VPMSUM): New BU_P8V_OVERLOAD_2.
17040         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17041         entries for VEC_MADD and VEC_VPMSUM.
17042
17043 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
17044
17045         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17046         Multiply argument avr_n_flash by 64 to match unit of "KiB".
17047         (avr_pgm_check_var_decl): Same.
17048
17049 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
17050
17051         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17052         initialization of HFmode scalar type (float16_t) to...
17053         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17054         code.
17055
17056         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17057
17058         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17059         having an -mfp16-format.
17060
17061 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17062
17063         * config/i386/predicates.md (vector_all_ones_operand): Use
17064         CONSTM1_RTX to simplify definition.
17065
17066 2015-08-20  Richard Biener  <rguenther@suse.de>
17067
17068         * toplev.c (compile_file): Remove loop calling late_global_decl
17069         on all symbols.
17070         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17071         on decls we assembled.
17072
17073 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
17074
17075         * common/config/aarch64/aarch64-common.c
17076         (AARCH64_CPU_NAME_LENGTH): Delete.
17077         (aarch64_option_extension): New.
17078         (all_extensions): Likewise.
17079         (processor_name_to_arch): Likewise.
17080         (arch_to_arch_name): Likewise.
17081         (all_cores): New.
17082         (all_architectures): Likewise.
17083         (aarch64_get_extension_string_for_isa_flags): Likewise.
17084         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17085         architecture names.
17086         * config/aarch64/aarch64-protos.h
17087         (aarch64_get_extension_string_for_isa_flags): New.
17088         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17089         (aarch64_option_print): Get the string to print from
17090         aarch64_get_extension_string_for_isa_flags.
17091         (aarch64_declare_function_name): Likewise.
17092         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17093         (MCPU_TO_MARCH_SPEC): This.
17094         (ASM_CPU_SPEC): Use it.
17095         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17096         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17097         (EXTRA_SPEC_FUNCTIONS): Use it.
17098
17099 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
17100
17101         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17102         expansion when !ISA_HAS_LWL_LWR.
17103         (mips_block_move_straight): Update the size of elements copied to
17104         account for alignment when !ISA_HAS_LWL_LWR.
17105         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17106
17107 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17108
17109         * expr.c (expand_expr_real_2): Check gimple statement during
17110         LSHIFT_EXPR expand.
17111
17112 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
17113
17114         * common.opt (fstack-protector): Initialize to -1.
17115         (fstack-protector-all): Likewise.
17116         (fstack-protector-strong): Likewise.
17117         (fstack-protector-explicit): Likewise.
17118         * configure.ac: Add --enable-default-ssp.
17119         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
17120         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17121         -1.
17122         * doc/install.texi: Document --enable-default-ssp.
17123         * config.in: Regenerated.
17124         * configure: Likewise.
17125
17126 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
17127
17128         PR rtl-optimization/64164
17129         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17130         (parm_in_stack_slot_p): ... this.  Disregard mode, what
17131         matters is whether the parm will live in a pseudo or a stack
17132         slot.
17133         (expand_one_ssa_partition): Deal with params without a default
17134         def.  Disregard mode.
17135         * cfgexpand.h: Renamed function declaration.
17136         * tree-ssa-coalesce.c: Adjust.
17137         * function.c (split_complex_args): Allocate stack slot for
17138         unassigned parms before splitting.
17139         (parm_in_unassigned_mem_p): New.  Use it instead of
17140         parm_maybe_byref_p throughout this file.
17141         (assign_parm_setup_block): Use it.  Accept pseudos in the
17142         expand-assigned rtl.
17143         (assign_parm_setup_reg): Drop BLKmode requirement.
17144         (assign_parm_setup_stack): Allocate and fill in the address of
17145         unassigned MEM parms.
17146
17147 2015-08-19  David Sherwood  <david.sherwood@arm.com>
17148
17149         * genmodes.c (emit_mode_unit_size_inline): New function.
17150         (emit_mode_unit_precision_inline): New function.
17151         (emit_insn_modes_h): Emit new #define.  Emit new functions.
17152         (emit_mode_unit_size): New function.
17153         (emit_mode_unit_precision): New function.
17154         (emit_mode_adjustments): Add mode_unit_size adjustments.
17155         (emit_insn_modes_c): Emit new arrays.
17156         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17157         use new inline methods.
17158
17159 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17160
17161         * config/aarch64/aarch64.c (bit_count): Delete prototype
17162         and definition.
17163         (aarch64_print_operand): Use popcount_hwi instead of the above.
17164
17165 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17166
17167         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17168         comment.
17169
17170 2015-08-19  Marek Polacek  <polacek@redhat.com>
17171
17172         PR middle-end/67133
17173         * gimple-ssa-isolate-paths.c
17174         (insert_trap_and_remove_trailing_statements): Rename to ...
17175         (insert_trap): ... this.  Don't remove trailing statements; split
17176         block instead.
17177         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17178
17179 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
17180
17181         PR other/67042
17182         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17183         conditionalize the whole on __GNUC__.  Add fallback code
17184         depending neither on undefined nor implementation-defined behaviour.
17185
17186 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17187
17188         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17189         whitespaces with tab.
17190
17191 2015-08-19  Florian Weimer  <fweimer@redhat.com>
17192
17193         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17194         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17195         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17196         Move Name_Ids instantiation to the Prj.Proc package, to avoid
17197         trampolines.
17198
17199 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17200
17201         * config/arm/arm.c (bounds_check): Use %wd print format
17202         for HOST_WIDE_INT arguments.
17203
17204 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
17205
17206         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17207         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17208         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17209         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17210         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17211         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17212         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17213         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17214         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17215         typedefs.
17216
17217 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
17218
17219         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17220         function.c, graphite-scop-detection.c, haifa-sched.c,
17221         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17222         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17223         varasm.c: Remove typedefs of structs.
17224
17225 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
17226
17227         * config/rs6000/altivec.h (vec_adde): New define.
17228         (vec_addec): Likewise.
17229         (vec_double): Likewise.
17230         (vec_bperm): Likewise.
17231         (vec_gb): Likewise.
17232         * config/rs6000/rs6000-builtin.def (ADDE): New
17233         BU_ALTIVEC_OVERLOAD_3.
17234         (ADDEC): Likewise.
17235         (DOUBLE): New BU_VSX_OVERLOAD_1.
17236         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17237         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17238         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17239         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17240         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17241         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17242         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17243         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17244         and P8V_BUILTIN_VEC_VBPERMQ.
17245
17246 2015-08-18  Jason Merrill  <jason@redhat.com>
17247
17248         * print-tree.c (print_node): Handle TREE_BINFO.
17249
17250 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17251
17252         PR middle-end/36757
17253         * builtins.c (expand_builtin_signbit): Add asserts to make sure
17254         we can expand BUILT_IN_SIGNBIT inline.
17255         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17256         * doc/extend.texi: Document the type-generic __builtin_signbit.
17257
17258 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
17259
17260         PR rtl-optimization/67218
17261         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17262         (simplify_unary_operation_1): Use it.
17263
17264 2015-08-18  Marek Polacek  <polacek@redhat.com>
17265
17266         PR middle-end/67222
17267         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17268         if the call isn't valid.
17269         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17270         gimple_call_builtin_p.
17271         (call_may_clobber_ref_p_1): Likewise.
17272         (stmt_kills_ref_p): Likewise.
17273
17274 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17275
17276         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17277         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17278         (mips_hard_regno_scratch_ok): Likewise.
17279         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17280         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17281
17282 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
17283
17284         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17285         (determine_value_range): Call refine_value_range_using_guard for
17286         each loop initial condition to improve value range.
17287
17288 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
17289
17290         * config/i386/i386.c: Remove include of fibheap.h.
17291
17292 2015-08-17  Richard Biener  <rguenther@suse.de>
17293
17294         PR tree-optimization/67221
17295         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17296         (sccvn_dom_walker::before_dom_children): Mark backedges of
17297         non-executable blocks as not executable.
17298
17299 2015-08-17  David Sherwood  <david.sherwood@arm.com>
17300
17301         * config/arm/arm.c (neon_element_bits): Replace call to
17302         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17303         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17304         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17305         (neon_vdup_lane<mode>): Likewise.
17306         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17307         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17308         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17309         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17310         * config/spu/spu.c (arith_immediate_p): Likewise.
17311         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17312         * expr.c (expand_expr_real_2): Likewise.
17313         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17314         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17315         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17316         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17317         New variable.
17318         * fold-const.c (fold_binary_loc): Replace call to
17319         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17320         GET_MODE_UNIT_PRECISION (m).
17321
17322 2015-08-17  Mike Stump  <mikestump@comcast.net>
17323
17324         * config/arm/arm.c (arm_block_move_unaligned_straight):
17325         Emit normal move instead of unaligned load when source or destination
17326         are appropriately aligned.
17327
17328 2015-08-17  Richard Biener  <rguenther@suse.de>
17329             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17330
17331         PR middle-end/16107
17332         * match.pd (div (coss (op @0) : New simplifier.
17333
17334 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
17335
17336         PR rtl-optimization/64164
17337         PR bootstrap/66978
17338         PR middle-end/66983
17339         PR rtl-optimization/67000
17340         PR middle-end/67034
17341         PR middle-end/67035
17342         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17343         * tree-ssa-copyrename.c: Removed.
17344         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17345         -ftree-coalesce-vars.
17346         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17347         * common.opt (ftree-copyrename): Ignore.
17348         (ftree-coalesce-inlined-vars): Likewise.
17349         * doc/invoke.texi: Remove the ignored options above.
17350         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17351         * tree-ssa-coalesce.h: ... here.
17352         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17353         headers required by it.
17354         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17355         across variables when flag_tree_coalesce_vars.  Check register
17356         use and promoted modes to allow coalescing.  Do not coalesce
17357         maybe-byref parms with SSA_NAMEs of other variables, or
17358         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
17359         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17360         with its member functions to tree-ssa-coalesce.c.
17361         (var_map_base_init): Likewise.  Renamed to
17362         compute_samebase_partition_bases.
17363         (partition_view_normal): Drop want_bases parameter.
17364         (partition_view_bitmap): Likewise.
17365         * tree-ssa-live.h: Adjust declarations.
17366         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17367         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17368         default defs at the entry point.
17369         (dump_part_var_map): New.
17370         (compute_optimized_partition_bases): New, called by...
17371         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17372         of compute_samebase_partition_bases.  Adjust.
17373         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17374         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17375         (ssa_default_def_partition): New.
17376         (get_rtl_for_parm_ssa_default_def): New.
17377         (align_local_variable, add_stack_var): Support anonymous SSA
17378         names.
17379         (defer_stack_allocation): Likewise.  Declare earlier.
17380         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17381         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17382         Do no record deferred-allocation marker in
17383         SA.partition_to_pseudo.
17384         (expand_stack_vars): Adjust check for the marker in it.
17385         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17386         redundant MEM attr setting.
17387         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17388         from...
17389         (expand_one_stack_var): ... this.  New wrapper to check and
17390         skip already expanded SSA partitions.
17391         (record_alignment_for_reg_var): New, factored out of...
17392         (expand_one_var): ... this.
17393         (expand_one_ssa_partition): New.
17394         (adjust_one_expanded_partition_var): New.
17395         (expand_one_register_var): Check and skip already expanded SSA
17396         partitions.
17397         (expand_used_vars): Don't create DECLs for anonymous SSA
17398         names.  Expand all SSA partitions, then adjust all SSA names.
17399         (pass::execute): Replace the loops that set
17400         SA.partition_to_pseudo from partition leaders and cleared
17401         DECL_RTL for multi-location variables, and that which used to
17402         rename vars and set attrs, with one that clears DECL_RTL and
17403         checks that PARMs and RESULTs default_defs match DECL_RTL.
17404         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17405         * emit-rtl.c: Include stor-layout.h.
17406         (set_reg_attrs_for_parm): Handle NULL decl.
17407         (set_reg_attrs_for_decl_rtl): Take mode from expression if
17408         it's not a DECL.
17409         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17410         rather than its possibly-NULL DECL.
17411         * explow.c (promote_ssa_mode): New.
17412         * explow.h (promote_ssa_mode): Declare.
17413         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17414         (read_complex_part): Export.
17415         * expr.h (read_complex_part): Declare.
17416         * cfgexpand.h (parm_maybe_byref_p): Declare.
17417         * function.c: Include cfgexpand.h.
17418         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17419         (use_register_for_parm_decl): Wrapper for the above to
17420         special-case the result_ptr.
17421         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17422         (split_complex_args): Take assign_parm_data_all argument.
17423         Pass it to rtl_for_parm.  Set up rtl and context for split
17424         args.  Reset complex parm before fetching its default decl
17425         rtl.
17426         (assign_parms_unsplit_complex): Use the default-def complex
17427         parm rtl if it matches the components.
17428         (assign_parms_augmented_arg_list): Adjust.
17429         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17430         multiple locations.  Recognize split complex args.
17431         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17432         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17433         (assign_parm_setup_block): Prefer SSA-assigned location, and
17434         fill in its address if the memory location of a maybe-byref
17435         parm was not assigned by cfgexpand.
17436         (assign_parm_setup_reg): Likewise.  Adjust its mode as
17437         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
17438         sure passed_pointer parms don't need conversion.  Copy address
17439         or value as needed.
17440         (assign_parm_setup_stack): Prefer SSA-assigned location.
17441         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17442         rtl before testing for pointer bounds.  Special-case result_ptr.
17443         (expand_function_start): Maybe reset DECL_RTL of result.
17444         Prefer SSA-assigned location for result and static chain.
17445         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
17446         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
17447         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17448         anonymous SSA names.  Use promote_ssa_mode.
17449         (get_temp_reg): Likewise.
17450         (remove_ssa_form): Adjust.
17451         * stor-layout.c (layout_decl): Don't set mem attributes of
17452         non-MEMs.
17453         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17454         and get its reg_usage for reg invalidation.
17455         (compute_bb_dataflow): Pass it insn.
17456         (emit_notes_in_bb): Likewise.
17457
17458 2015-08-14  Marek Polacek  <polacek@redhat.com>
17459
17460         * tree-core.h (tree_base): Fix typo.
17461
17462 2015-08-14  Marek Polacek  <polacek@redhat.com>
17463
17464         PR middle-end/67133
17465         * gimple.c (infer_nonnull_range_by_attribute): Check that the
17466         nonnull argument position is not outside function arguments.
17467
17468 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
17469
17470         PR target/67143
17471         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17472         'lconst_atomic' with 'const_atomic'.
17473         (atomic_fetch_<optab><mode>): Likewise.
17474         (atomic_<optab>_fetch<mode>): Likewise.
17475         * config/aarch64/iterators.md (lconst-atomic): Move below
17476         'const_atomic'.
17477         (const_atomic): New.
17478
17479 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
17480             Bernd Schmidt  <bernds@codesourcery.com>
17481
17482         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17483         debug options.
17484         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17485         (DWARF2_DEBUGGING_INFO): Don't define.
17486         * debug.h (dwarf2_lineno_debug_hooks): Declare.
17487         * toplev.c (process_options): Add a case for it.
17488         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17489         (dwarf2out_init): Skip most initializations if
17490         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17491         case.
17492         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17493         DWARF2_LINENO_DEBUGGING_INFO.
17494         * opts.c (set_debug_level): Likewise.
17495
17496 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
17497
17498         * config/arm/types.md (is_neon_type): Add missing types.
17499
17500 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
17501
17502         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17503         for skylake.
17504         * config/i386/i386.c (PTA_SKYLAKE): New macros.
17505         (processor_alias_table): Add skylake description.
17506         (enum processor_model): Add skylake processor.
17507         (arch_names_table): Add skylake record.
17508         * doc/invoke.texi: Add skylake item.
17509
17510 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
17511
17512         * ira-int.h: Include recog.h.
17513         * ira-build.c: Don't include recog.h.
17514         * ira-color.c: Likewise.
17515         * ira-conflicts.c: Likewise.
17516         * ira-costs.c: Likewise.
17517         * ira-emit.c: Likewise.
17518         * ira-lives.c: Likewise.
17519         * ira.c: Likewise.
17520         * sched-deps.c: Likewise.
17521         * sel-sched.c: Likewise.
17522         * target-globals.c: Likewise.
17523
17524 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17525
17526         PR bootstrap/55035
17527         * reload1.c (elimination_costs_in_insn): Make it obvious to the
17528         compiler that the n_dups and n_operands loop bounds are invariant.
17529
17530 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17531
17532         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17533         expressions in A and B.
17534
17535 2015-08-13  Richard Biener  <rguenther@suse.de>
17536
17537         * tree.c (nonnull_arg_p): Move from ...
17538         * tree-vrp.c (nonnull_arg_p): ... here.
17539         * tree.h (nonnull_arg_p): Declare.
17540         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17541         here, register ptr != 0 for nonnull_arg_p pointer arguments.
17542         Properly initialize static chain and by-reference result pointer.
17543         (run_scc_vn): Adjust.
17544
17545 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17546
17547         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17548         TUNE_I6400.
17549
17550 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17551
17552         * config/aarch64/aarch64-protos.h
17553         (aarch64_gen_atomic_cas): Declare.
17554         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17555         Choose appropriate instruction pattern for the target.
17556         (aarch64_gen_atomic_cas): New.
17557         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17558         (atomic_compare_and_swap<mode>_1): Rename to
17559         aarch64_compare_and_swap<mode>.  Fix some indentation.
17560         (aarch64_compare_and_swap<mode>_lse): New.
17561         (aarch64_atomic_cas<mode>): New.
17562
17563 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17564
17565         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17566         (TARGET_LSE): New.
17567
17568 2015-08-13  Richard Biener  <rguenther@suse.de>
17569
17570         PR tree-optimization/67191
17571         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17572         assert we value-numbered last stmts operand because it can validly
17573         trigger for unreachable code.
17574
17575 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17576
17577         PR rtl-optimization/67103
17578         * ifcvt.c (noce_try_store_flag_constants): Move
17579         x = (-(test != 0) & (b - a)) + a transformation to...
17580         (noce_try_cmove): ... Here.  Try it if normal conditional
17581         move fails.
17582
17583 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17584
17585         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17586         pseudo-processors.
17587         * config/mips/mips.md (processor): Remove w32 and w64.
17588
17589 2015-08-13  Richard Biener  <rguenther@suse.de>
17590
17591         PR tree-optimization/66502
17592         PR tree-optimization/67167
17593         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17594         backedge arguments.
17595         (vn_phi_lookup): Adjust.
17596         (vn_phi_insert): Likewise.
17597         (visit_phi): Prefer to value-number to another PHI node
17598         over value-numbering to a PHI argument.
17599         (init_scc_vn): Mark DFS back edges.
17600
17601 2015-08-13  Richard Biener  <rguenther@suse.de>
17602
17603         * gimple.h (gcall::code_): New constant static member.
17604         (gcond::code_): Likewise.
17605         * gimple.c (gcall::code_): Define.
17606         (gcond::code_): Likewise.
17607         (is_a_helper <const gcond *>): Add.
17608         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17609         and forward to a new gcall overload with less checking and a
17610         cheaper way to access the operand.
17611         (gimple_call_lhs_ptr): Likewise.
17612         (gimple_call_set_lhs): Likewise.
17613         (gimple_call_internal_p): Likewise.
17614         (gimple_call_with_bounds_p): Likewise.
17615         (gimple_call_set_with_bounds): Likewise.
17616         (gimple_call_internal_fn): Likewise.
17617         (gimple_call_set_ctrl_altering): Likewise.
17618         (gimple_call_ctrl_altering_p): Likewise.
17619         (gimple_call_fntype): Likewise.
17620         (gimple_call_fn): Likewise.
17621         (gimple_call_fn_ptr): Likewise.
17622         (gimple_call_set_fndecl): Likewise.
17623         (gimple_call_fndecl): Likewise.
17624         (gimple_call_chain): Likewise.
17625         (gimple_call_num_args): Likewise.
17626         (gimple_call_arg): Likewise.
17627         (gimple_call_arg_ptr): Likewise.
17628         (gimple_call_set_arg): Likewise.
17629         (gimple_call_noreturn_p): Likewise.
17630         (gimple_cond_code): Likewise.
17631         (gimple_cond_lhs): Likewise.
17632         (gimple_cond_rhs): Likewise.
17633         (gimple_has_lhs): Reduce checking.
17634
17635 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17636
17637         PR middle-end/25529
17638         * match.pd (div (mult @0 @1) @1) : New simplifier.
17639
17640 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17641
17642         PR target/67071
17643         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17644         predicate to allow construction of vector constants using the
17645         VSLDOI vector shift instruction.
17646
17647         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17648         declaration.
17649
17650         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17651         the number of bytes to be shifted left and filled in with either
17652         all zero or all one bits.
17653         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17654         methods exist.
17655         (output_vec_const_move): On power8, generate XXLORC to generate
17656         a vector constant with all 1's. Do a split if we need to use a
17657         VSLDOI instruction.
17658
17659         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17660         properly test for the MSB.
17661
17662         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17663         vector constants that can be created with VSLDOI.
17664
17665 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17666
17667         revert:
17668         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17669         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17670         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17671         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17672         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17673         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17674         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17675         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17676         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17677
17678 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
17679
17680         * config/xtensa/constraints.md (define_constraint "Y"): New
17681         constraint.
17682         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17683         * config/xtensa/linux.h (ASM_SPEC): Likewise.
17684         * config/xtensa/predicates.md (move_operand): Match constants
17685         and symbols in the presence of TARGET_AUTO_LITPOOLS.
17686         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17687         immediate references to TLS data.
17688         (xtensa_emit_move_sequence): Don't force constants to memory in
17689         the presence of TARGET_AUTO_LITPOOLS.
17690         (print_operand): Add 'y' format, same as default, but capable of
17691         printing SF mode constants as well.
17692         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17693         (movsf_internal): Add movi pattern that loads literal.
17694         (movsf, movdf): Don't force constants to memory in the presence
17695         of TARGET_AUTO_LITPOOLS.
17696         (movdf_internal): Add 'Y' constraint.
17697         * config/xtensa/xtensa.opt (mauto-litpools): New option.
17698         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17699
17700 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17701
17702         * config/arm/arm-fpus.def: Replace booleans with feature flags.
17703         Update comment.
17704         * config/arm/arm.c (ARM_FPU): Update macro.
17705         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17706         (TARGET_FP16): Likewise.
17707         (TARGET_CRYPTO): Likewise.
17708         (TARGET_NEON): Likewise.
17709         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
17710         field features.
17711
17712 2015-08-12  Tom de Vries  <tom@codesourcery.com>
17713
17714         PR other/67092
17715         PR other/67098
17716         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
17717         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17718         accordingly.  Mention default for --with-stage1-ldflags.
17719
17720 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17721
17722         * config/arm/arm.h (arm_fpu_feature_set): New.
17723         (ARM_FPU_FSET_HAS): New.
17724         (FPU_FL_NONE): New.
17725         (FPU_FL_NEON): New.
17726         (FPU_FL_FP16): New.
17727         (FPU_FL_CRYPTO): New.
17728
17729 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17730
17731         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17732         after -mcmodel=large -fPIC sorry.
17733
17734 2015-08-12  Richard Biener  <rguenther@suse.de>
17735
17736         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17737         comparison operand order and commutative ternary op operand order.
17738         (sccvn_dom_walker::cond_stack): New state to track temporary
17739         expressions.
17740         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17741         no longer valid.
17742         (sccvn_dom_walker::record_cond): Add a single temporary conditional
17743         expression.
17744         (sccvn_dom_walker::record_conds): Add a temporary conditional
17745         expressions and all related expressions also true/false.
17746         (sccvn_dom_walker::before_dom_children): Record temporary
17747         expressions based on the controlling condition of a single
17748         predecessor.  When trying to simplify a conditional statement
17749         lookup expressions we might have inserted earlier.
17750
17751 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
17752
17753         PR target/67127
17754         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17755         to ARM core registers.
17756
17757 2015-08-12  Nathan Sidwell  <nathan@acm.org>
17758
17759         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17760         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17761
17762 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
17763
17764         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17765         line with comments.
17766         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17767
17768 2015-08-12  Richard Biener  <rguenther@suse.de>
17769
17770         * gimple.h (remove_pointer): New trait.
17771         (GIMPLE_CHECK2): New inline template function.
17772         (gassign::code_): New constant static member.
17773         (is_a_helper<const gassign *>): Add.
17774         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17775         and forward to a new gassign overload with less checking and a
17776         cheaper way to access the operand.
17777         (gimple_assign_lhs_ptr): Likewise.
17778         (gimple_assign_set_lhs): Likewise.
17779         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17780         Likewise.
17781         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17782         Likewise.
17783         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17784         Likewise.
17785         (gimple_assign_rhs_code): Likewise.
17786         * gimple.c (gassign::code_): Define.
17787
17788 2015-08-12  Richard Biener  <rguenther@suse.de>
17789
17790         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17791         Eliminate edges marked as not executable by SCCVN.
17792         * tree-ssa-sccvn.c: Include gimple-iterator.h.
17793         (cond_dom_walker): Rename to sccvn_dom_walker.
17794         (sccvn_dom_walker::before_dom_children): Value-number defs
17795         of all stmts.
17796         (run_scc_vn): Remove loop value-numbering all SSA names.
17797         Drop not visited SSA names to varying.
17798
17799 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17800
17801         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17802         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17803         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17804         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17805         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17806         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17807         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17808         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17809         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17810
17811 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
17812
17813         PR target/66954
17814         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17815         to enum feature_priority and feature_list.
17816         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17817         and isa_names_table.
17818
17819 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17820
17821         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17822         vect_induction_def.
17823
17824 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17825
17826         PR c/66098
17827         PR c/66711
17828         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17829         account when deciding what was the command-line status.
17830
17831 2015-08-11  Nathan Sidwell  <nathan@acm.org>
17832
17833         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17834
17835         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17836         we're not the only contributor to target phi.
17837
17838 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
17839
17840         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17841         FIXED_REG0.
17842
17843 2015-08-11  Tom de Vries  <tom@codesourcery.com>
17844
17845         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17846
17847 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
17848
17849         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17850         with CPU_SLM.
17851         * config/i386/i386.md (cpu): Remove knl.
17852
17853 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17854
17855         PR libgomp/65742
17856         PR middle-end/66332
17857         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17858         open-coded sequence.
17859         * omp-low.c (oacc_process_reduction_data): Remove handline of
17860         GOMP_DEVICE_HOST_NONSHM.
17861
17862         * lto-streamer-in.c (lto_input_mode_table): Adjust to
17863         GET_MODE_INNER changes.
17864
17865 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17866             Ilya Verbin  <ilya.verbin@intel.com>
17867
17868         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17869
17870 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17871
17872         * doc/options.texi (EnabledBy): Document that the argument must be
17873         a Common option.
17874         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17875         Not enabled by -Wall.
17876         * optc-gen.awk: Give nicer error messages. Detect if the argument
17877         of EnabledBy is not a Common option.
17878         * common.opt (Wnull-dereference): Not enabled by -Wall.
17879         * opt-functions.awk (lang_enabled_by): Nicer error messages.
17880
17881 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17882
17883         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17884         model == 0x4f as Broadwell.
17885
17886 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17887
17888         PR rtl-optimization/67028
17889         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
17890         Add test to see if a const_int fits in the new mode.
17891
17892 2015-08-07  DJ Delorie  <dj@redhat.com>
17893
17894         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17895
17896 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
17897
17898         PR rtl-optimization/67029
17899         * ira-color.c: Include "recog.h" before including "ira-int.h".
17900         * target-globals.c: Likewise.
17901         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17902         adds an alternative_mask argument and use it instead of
17903         preferred_alternatives.
17904         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17905         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17906         * sched-deps.c: Include "ira-int.h" after including "ira.h".
17907         (sched_analyze_insn): Update call to
17908         ira_implicitly_set_insn_hard_regs.
17909         * sel-sched.c: Include "ira-int.h" after including "ira.h".
17910         (implicit_clobber_conflict_p): Update call to
17911         ira_implicitly_set_insn_hard_regs.
17912
17913 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17914
17915         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17916
17917 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17918
17919         PR target/67002
17920         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17921         currently_expanding_to_rtl is set.
17922
17923 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
17924
17925         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17926         * configure: Regenerate.
17927
17928 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17929             Jiong Wang  <jiong.wang@arm.com>
17930
17931         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17932         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17933         (REG_CLASS_NAMES): Likewise.
17934         (REG_CLASS_CONTENTS): Likewise.
17935         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17936         (aarch64_register_move_cost): Likewise.
17937         (aarch64_load_symref_appropriately): Invoke the new added pattern if
17938         possible.
17939         * config/aarch64/constraints.md (Uc0): New constraint.
17940
17941 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17942
17943         * config/aarch64/constraints.md (Usf): Add the test of
17944         aarch64_is_noplt_call_p.
17945
17946 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17947
17948         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17949         declaration.
17950         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17951         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17952         (call_symbol): Likewise.
17953
17954 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
17955
17956         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17957         for vectorizing multiplication patterns.
17958         * tree-vectorizer.h: Adjust the number of patterns.
17959
17960 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17961
17962         * config/i386/sse.md (*vec_concatv2df): Declare added
17963         alternatives as sselog type.
17964
17965 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17966
17967         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17968         all GPRs.
17969
17970 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17971
17972         * config/s390/s390.c (s390_expand_tbegin): Expand either
17973         tbegin_1_z13 or tbegin_1 depending on VX flag.
17974         * config/s390/s390.md ("tbegin_1_z13"): New expander.
17975
17976 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17977
17978         * config/s390/s390.opt: Clarify description for -mzvector
17979         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17980         -mzvector.
17981
17982 2015-08-06  Richard Biener  <rguenther@suse.de>
17983
17984         * gimple.h (gimple_call_set_fn): Access op member directly.
17985         (gimple_call_chain_ptr): Likewise.
17986         (gimple_call_set_chain): Likewise.
17987         (gimple_cond_lhs_ptr): Likewise.
17988         (gimple_cond_set_lhs): Likewise.
17989         (gimple_cond_rhs_ptr): Likewise.
17990         (gimple_cond_set_rhs): Likewise.
17991         (gimple_cond_true_label): Likewise.
17992         (gimple_cond_set_true_label): Likewise.
17993         (gimple_cond_set_false_label): Likewise.
17994         (gimple_cond_false_label): Likewise.
17995         (gimple_label_label): Likewise.
17996         (gimple_label_set_label): Likewise.
17997         (gimple_goto_set_dest): Likewise.
17998         (gimple_asm_input_op): Likewise.
17999         (gimple_asm_input_op_ptr): Likewise.
18000         (gimple_asm_set_input_op): Likewise.
18001         (gimple_asm_output_op): Likewise.
18002         (gimple_asm_output_op_ptr): Likewise.
18003         (gimple_asm_set_output_op): Likewise.
18004         (gimple_asm_clobber_op): Likewise.
18005         (gimple_asm_set_clobber_op): Likewise.
18006         (gimple_asm_label_op): Likewise.
18007         (gimple_asm_set_label_op): Likewise.
18008         (gimple_switch_index): Likewise.
18009         (gimple_switch_index_ptr): Likewise.
18010         (gimple_return_retval_ptr): Likewise.
18011         (gimple_return_retval): Likewise.
18012         (gimple_return_set_retval): Likewise.
18013         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
18014         (gimple_switch_label): Likewise.
18015         (gimple_switch_set_label): Likewise.
18016
18017 2015-08-06  Richard Biener  <rguenther@suse.de>
18018
18019         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18020         bool comparison canonicalization and restrict to integers.
18021
18022 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
18023
18024         * coretypes.h (enum symbol_visibility): Relocate here.
18025         * flag-types.h (enum symbol_visibility): Remove.
18026         * tree-core.h (enum symbol_visibility): Remove.
18027
18028 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
18029
18030         PR target/66870
18031         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18032         for no_split_stack function attribute along with
18033         flag_split_stack.
18034         (rs6000_expand_split_stack_prologue): Likewise.
18035
18036 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18037             Jeff Law  <law@redhat.com>
18038
18039         PR c/16351
18040         * doc/invoke.texi (Wnull-dereference): New.
18041         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18042         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18043         Warn for potential NULL dereferences.
18044         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18045         * ubsan.c (instrument_nonnull_arg): Call
18046         infer_nonnull_range_by_attribute.
18047         (instrument_nonnull_return): Likewise.
18048         * common.opt (Wnull-dereference); New.
18049         * gimple.c (infer_nonnull_range): Remove bool arguments.
18050         (infer_nonnull_range_by_dereference): New.
18051         (infer_nonnull_range_by_attribute): New.
18052         * gimple.h: Update declarations.
18053
18054 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18055
18056         * gensupport.c (sequence_num): Replace with...
18057         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18058         ...these new variables.
18059         (init_rtx_reader_args_cb): Update accordingly.
18060         (get_num_code_insns): Likewise.
18061         (read_md_rtx): Rework to use a while loop and get_c_test.
18062         Use the new counters.  Remove redundant DEFINE_SUBST case.
18063         * genoutput.c (gen_split): Delete.
18064         (main): Don't call it.
18065
18066 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18067
18068         * gensupport.h (get_c_test): Declare.
18069         * gensupport.c (get_c_test): New function.
18070         * genconditions.c (main): Use it.
18071         * genrecog.c (validate_pattern): Likewise.
18072         (match_pattern_1): Likewise.  Remove c_test argument.
18073         (match_pattern): Update accordingly and remove c_test argument.
18074         (main): Update accordingly.
18075
18076 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18077
18078         * gensupport.h (get_num_insn_codes): Declare.
18079         * gensupport.c (get_num_insn_codes): New function.
18080         * genattrtab.c (optimize_attrs): Rename max_insn_code to
18081         num_insn_codes.
18082         (main): Likewise.  Use get_num_insn_codes.
18083         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18084
18085 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18086
18087         PR middle-end/66311
18088         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18089         is zero- rather than sign-extended.
18090
18091 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18092
18093         * target-insns.def (can_extend): Delete.
18094
18095 2015-08-05  Richard Biener  <rguenther@suse.de>
18096
18097         PR tree-optimization/67121
18098         * tree-if-conv.c (combine_blocks): Clear range-info produced
18099         by stmts no longer executed conditionally.
18100
18101 2015-08-05  Nick Clifton  <nickc@redhat.com>
18102
18103         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18104         to allow identical far pointers to remain.
18105
18106 2015-08-05  Richard Biener  <rguenther@suse.de>
18107
18108         PR middle-end/67120
18109         * match.pd: Compare address bases with == if they are decls
18110         or SSA names, not operand_equal_p.  Otherwise fail.
18111
18112 2015-08-05  Richard Biener  <rguenther@suse.de>
18113
18114         PR tree-optimization/67055
18115         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18116         NULL gimple_block.
18117
18118         * g++.dg/torture/pr67055.C: New testcase.
18119
18120 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18121
18122         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18123         noavx512vl.
18124         (define_attr "enabled"): Handle avx521vl and noavx512vl.
18125         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18126         AVX-512 alternative out of SSE.
18127         (define_insn "*vec_concatv2df"): Ditto.
18128
18129 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18130
18131         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18132         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18133         CODE_FOR_avx_ptestv4di.
18134         * config/i386/sse.md (define_mode_iterator V_AVX): New.
18135         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18136         (define_insn "avx_ptest256"): Merge this ...
18137         (define_insn "sse4_1_ptest"): And this ...
18138         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18139
18140 2015-08-05  Richard Biener  <rguenther@suse.de>
18141
18142         PR tree-optimization/67109
18143         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18144         against too big groups.  Print whether this is a load or store
18145         group.  Rename from ...
18146         (vect_analyze_group_access): ... this which is now a wrapper
18147         dissolving an invalid group.
18148         (vect_analyze_data_ref_accesses): Print whether this is a load
18149         or store group.
18150
18151 2015-08-05  Richard Biener  <rguenther@suse.de>
18152
18153         PR middle-end/67107
18154         * match.pd: Guard const_binop result checking against NULL_TREE
18155         result.
18156
18157 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
18158
18159         * cse.c (cse_insn): Restoring old behaviour for src_eqv
18160          when dest and value in the REG_EQUAL are same and dest
18161          is STRICT_LOW_PART.
18162
18163 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
18164
18165         * config/moxie/moxie.h (PRINT_OPERAND,
18166           PRINT_OPERAND_ADDRESS): Remove macros.
18167         * config/moxie/moxie-protos.h (moxie_print_operand,
18168           moxie_print_operand_address): Remove declaration.
18169         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18170           TARGET_PRINT_OPERAND_ADDRESS): Define.
18171           (moxie_print_operand, moxie_print_operand_address): Make static.
18172
18173 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18174
18175         PR target/66731
18176         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18177         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18178
18179 2015-08-04  Richard Biener  <rguenther@suse.de>
18180
18181         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18182         generated code.
18183         (dt_operand::gen_gimple_expr): Adjust.
18184
18185 2015-08-04  Richard Biener  <rguenther@suse.de>
18186
18187         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18188         bool compares on RHS.
18189         * match.pd: Add X ==/!= !X is false/true pattern.
18190
18191 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
18192
18193         * config/aarch64/aarch64.c: Change inner loop statement cost
18194         to be consistent with other targets.
18195
18196 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
18197
18198         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18199         targets.
18200
18201 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18202
18203         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18204         (machine_function): Remove pseudos field.
18205
18206 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18207
18208         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18209         Exit early and use target_option_current_node if processing current
18210         pragma.
18211
18212 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18213
18214         * doc/extend.texi (AArch64 Function Attributes): New node.
18215         (AArch64 Pragmas): Likewise.
18216
18217 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18218
18219         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18220         Initialize simd builtins if TARGET_SIMD.
18221         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18222         Make sure that the builtins are initialized only once no matter how
18223         many times the function is called.
18224         (aarch64_init_builtins): Unconditionally initialize crc builtins.
18225         (aarch64_relayout_simd_param): New function.
18226         (aarch64_simd_expand_args): Use above during argument expansion.
18227         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18228         simd builtins if TARGET_SIMD.
18229         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18230         prototype.
18231         (aarch64_relayout_simd_types): Likewise.
18232
18233 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18234
18235         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18236         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18237         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18238         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18239         static keyword.
18240         (aarch64_reset_previous_fndecl): New function.
18241         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18242         the string.
18243         * config/aarch64/aarch64-c.c: New file.
18244         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18245         Push and pop options at beginning and end.  Remove ifdef
18246         __ARM_FEATURE_CRC32.
18247         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18248         Add pragma +nothing+simd and +nothing+crypto where appropriate.
18249         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18250         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18251         Define prototype.
18252         (aarch64_register_pragmas): Likewise.
18253         (aarch64_reset_previous_fndecl): Likewise.
18254         (aarch64_process_target_attr): Likewise.
18255         (aarch64_override_options_internal): Likewise.
18256
18257 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18258
18259         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18260         New function.
18261         (aarch64_can_inline_p): Likewise.
18262         (TARGET_CAN_INLINE_P): Define.
18263
18264 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18265
18266         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18267         Remove static.  Handle OPT_mgeneral_regs_only,
18268         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18269         OPT_momit_leaf_frame_pointer.
18270         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18271         (aarch64_attr_opt_type): New enum.
18272         (aarch64_attribute_info): New struct.
18273         (aarch64_handle_attr_arch): New function.
18274         (aarch64_handle_attr_cpu): Likewise.
18275         (aarch64_handle_attr_tune): Likewise.
18276         (aarch64_handle_attr_isa_flags): Likewise.
18277         (aarch64_attributes): New table.
18278         (aarch64_process_one_target_attr): New function.
18279         (num_occurences_in_str): Likewise.
18280         (aarch64_process_target_attr): Likewise.
18281         (aarch64_option_valid_attribute_p): Likewise.
18282         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18283         * config/aarch64/aarch64-protos.h: Include input.h
18284         (aarch64_handle_option): Declare prototype.
18285
18286 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18287
18288         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18289         * config/aarch64/aarch64.c: Include target-globals.h
18290         (aarch64_previous_fndecl): New variable.
18291         (aarch64_set_current_function): New function.
18292         (TARGET_SET_CURRENT_FUNCTION): Define.
18293
18294 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18295
18296         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18297         (explicit_arch): Likewise.
18298         (x_aarch64_isa_flags): Likewise.
18299         (mgeneral-regs-only): Mark as Save.
18300         (mfix-cortex-a53-835769): Likewise.
18301         (mcmodel=): Likewise.
18302         (mstrict-align): Likewise.
18303         (momit-leaf-frame-pointer): Likewise.
18304         (mtls-dialect): Likewise.
18305         (master=): Likewise.
18306         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18307         (aarch64_isa_flags): Remove extern declaration.
18308         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18309         to indicate success or failure.
18310         (aarch64_validate_march): Likewise.
18311         (aarch64_validate_mtune): Likewise.
18312         (aarch64_isa_flags): Delete.
18313         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18314         instead of aarch64_isa_flags.
18315         (aarch64_get_tune_cpu): New function.
18316         (aarch64_get_arch): Likewise.
18317         (aarch64_override_options): Use above and set up explicit_tune_core
18318         and explicit_arch.
18319         (aarch64_print_extension): Move earlier in file.  Add isa_flags
18320         argument and use that instead of the global aarch64_isa_flags.
18321         (aarch64_option_save): New function.
18322         (aarch64_option_restore): Likewise.
18323         (aarch64_option_print): Likewise.
18324         (aarch64_declare_function_name): Likewise.
18325         (aarch64_start_file): Delete.
18326         (TARGET_ASM_FILE_START): Do not define.
18327         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18328         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18329         Declare prototype.
18330
18331 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18332
18333         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18334         flag_omit_leaf_frame_pointer to 2.
18335
18336 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18337
18338         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18339         define to 0 or 1.
18340         (TARGET_FIX_ERR_A53_835769): New macro.
18341         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18342         handling of opts->x_aarch64_fix_a53_err835769.
18343         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18344         than aarch64_fix_a53_err835769.
18345         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18346         * config/aarch64/aarch64-linux.h: Likewise.
18347
18348 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
18349
18350         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18351         ix86_expand_int_movcc as boolean.
18352
18353 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18354
18355         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18356         (aarch64_cpu_string): Likewise.
18357         (aarch64_tune_string): Likewise.
18358         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18359         (aarch64_parse_extension): Return aarch64_parse_opt_result.
18360         Add extra argument to put result into.
18361         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
18362         (aarch64_parse_cpu): Add arguments to put results into. Return
18363         aarch64_parse_opt_result.
18364         (aarch64_parse_tune): Likewise.
18365         (aarch64_override_options_after_change_1): New function.
18366         (aarch64_override_options_internal): New function.
18367         (aarch64_validate_mcpu): Likewise.
18368         (aarch64_validate_march): Likewise.
18369         (aarch64_validate_mtune): Likewise.
18370         (aarch64_override_options): Update to reflect above changes.
18371         Move some logic into aarch64_override_options_internal.
18372         Initialize target_option_default_node and target_option_current_node.
18373         (aarch64_override_options_after_change): Move logic into
18374         aarch64_override_options_after_change_1 and call it with global_options.
18375         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18376         flag values from that.
18377
18378 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18379
18380         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18381         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18382         * config/aarch64/aarch64.c (struct processor): Add arch field.
18383         (all_architectures): Handle above, move above all_cores.
18384         (all_cores): Handle above.
18385         (aarch64_parse_arch): Handle above changes.
18386         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18387         above.  Update comments.
18388         (armv8.1-a): Likewise.
18389         * config/aarch64/aarch64-cores.def: Update according to above.
18390         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18391         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18392         aarch64_arch_driver_info.
18393
18394 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18395
18396         * config/aarch64/aarch64.c (struct processor): Add ident field.
18397         Rename core sched_core.
18398         (all_cores): Handle above changes.
18399         (all_architectures): Likewise.
18400         (aarch64_parse_arch): Likewise.
18401         (aarch64_override_options): Likewise.
18402
18403 2015-08-04  Richard Biener  <rguenther@suse.de>
18404
18405         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18406         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18407         comparisons embedded in [VEC_]COND_EXPRs.
18408
18409 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
18410
18411         * tree-if-conv.c: Fix various typos in comments.
18412         * tree-vect-stmts.c: Likewise.
18413
18414 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18415
18416         PR tree-optimization/67043
18417         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18418         preheader after hoisting invariant in it.
18419         (find_defs): Force recomputation of all luids.
18420
18421 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
18422
18423         * config/rs6000/htm.md (tabort.): Restrict the source operand to
18424         using a base register.
18425
18426 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
18427
18428         * main.c (main): Pass in NULL for toplev's external_timer.
18429         * timevar.c: Include coretypes.h.
18430         (class timer::named_items): New.
18431         (timer::named_items::named_items): New.
18432         (timer::named_items::~named_items): New.
18433         (timer::named_items::push): New.
18434         (timer::named_items::pop): New.
18435         (timer::named_items::print): New.
18436         (timer::timer): Initialize field "m_jit_client_items".
18437         (timer::~timer): New.
18438         (timer::push): Move bulk of implementation to...
18439         (timer::push_internal): ...here.  New function.
18440         (timer::pop): Move bulk of implementation to...
18441         (timer::pop_internal): ...here.  New function.
18442         (timer::push_client_item): New.
18443         (timer::pop_client_item): New.
18444         (timer::print_row): New function, taken from timer::print.
18445         (timer::print): Print "GCC items" header if we also have client
18446         items.  Move row-printing to timer::print_row.  Print any client
18447         items.
18448         (timer::get_topmost_item_name): New method.
18449         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18450         (TV_JIT_CLIENT_CODE): New.
18451         * timevar.h (timer::push_client_item): New declaration.
18452         (timer::pop_client_item): New declaration.
18453         (timer::get_topmost_item_name): New method.
18454         (timer::push_internal): New declaration.
18455         (timer::pop_internal): New declaration.
18456         (timer::print_row): New declaration.
18457         (timer::named_items): New declaration.
18458         (timer::m_jit_client_items): New field.
18459         (timer): Add friend class named_items.
18460         (auto_timevar::auto_timevar): Add timer param.
18461         (auto_timevar::~auto_timevar): Use field "m_timer".
18462         (auto_timevar::m_timer): New field.
18463         * toplev.c (initialize_rtl): Add g_timer as param when
18464         constructing auto_timevar instance.
18465         (toplev::toplev): Add "external_timer" param, and use it to
18466         initialize the "g_timer" global if non-NULL.
18467         (toplev::~toplev): If this created "g_timer", delete it.
18468         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18469         with "external_timer" timer *.
18470
18471 2015-08-03  Alexander Basov <coohpt@gmail.com>
18472
18473         PR middle-end/64744
18474         PR middle-end/48470
18475         PR middle-end/43404
18476         * cfgexpand.c (expand_one_var): Add check if stack is going to
18477         be used in naked function.
18478         * expr.c (expand_expr_addr_expr_1): Remove excess checking
18479         whether expression should not reside in MEM.
18480         * function.c (use_register_for_decl): Do not use registers for
18481         non-register things (volatile, float, BLKMode) in naked functions.
18482
18483 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
18484
18485         PR target/67060
18486         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18487         Adjust splits to match new pattern.
18488
18489 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18490
18491         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18492         (VEC_M): Likewise.
18493         (VEC_N): Likewise.
18494         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18495         point in VSX registers.
18496
18497         * config/rs6000/constraints.md (wb constraint): Document unused
18498         w<x> constraint.
18499         (we constraint): Likewise.
18500         (wo constraint): Likewise.
18501         (wp constraint): New constraint for IEEE 128-bit floating point in
18502         VSX registers.
18503         (wq constraint): Likewise.
18504
18505         * config/rs6000/predicates.md (easy_fp_constant): Add support for
18506         IEEE 128-bit floating point in VSX registers.
18507         (easy_scalar_constant): Likewise.
18508
18509         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18510         constraints (wp, wq) for IEEE 128-bit floating point in VSX
18511         registers.
18512         (rs6000_init_hard_regno_mode_ok): Likewise.
18513
18514         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18515         floating point in VSX registers.
18516         (VSX_L): Likewise.
18517         (VSX_M): Likewise.
18518         (VSX_M2): Likewise.
18519         (VSm): Likewise.
18520         (VSs): Likewise.
18521         (VSr): Likewise.
18522         (VSa): Likewise.
18523         (VSv): Likewise.
18524         (vsx_le_permute_<mode>): Add support to properly swap bytes for
18525         IEEE 128-bit floating point in VSX registers on little endian.
18526         (vsx_le_undo_permute_<mode>): Likewise.
18527         (vsx_le_perm_load_<mode>): Likewise.
18528         (vsx_le_perm_store_<mode>): Likewise.
18529         (splitters for IEEE 128-bit fp moves): Likewise.
18530
18531         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18532         wq constraints.
18533
18534         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18535         floating point in VSX registers.
18536         (VM2): Likewise.
18537
18538         * doc/md.text (Machine Constraints): Document wp and wq
18539         constraints on PowerPC.
18540
18541 2015-08-03  Jeff Law  <law@redhat.com>
18542
18543         PR middle-end/66314
18544         PR gcov-profile/66899
18545         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18546         iterate over the jump threading paths when an element in the
18547         jump threading paths array is eliminated.
18548
18549 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
18550
18551         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18552
18553 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
18554
18555         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18556         is_use_properly_guarded the variable def_preds.  Free its
18557         contents before returning.
18558         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18559         (is_use_properly_guarded): Replace local variable def_preds with
18560         a parameter.  Adjust accordingly.  Only update *def_preds if it's
18561         the empty vector.
18562
18563 2015-08-03  Richard Biener  <rguenther@suse.de>
18564
18565         * genmatch.c (simplify::for_subst_vec): New member.
18566         (binary_ok): New helper for for lowering.
18567         (lower_for): Delay substituting operators into result expressions
18568         if we can merge the results eventually again.
18569         (capture_info::walk_result): Adjust for user_id appearing as
18570         result expression operator.
18571         (expr::gen_transform): Likewise.
18572         (dt_simplify::gen_1): Likewise.
18573         (dt_simplify::gen): Pass not substituted operators to tail
18574         functions or initialize local variable with it.
18575         (decision_tree::gen): Adjust function signature.
18576         * match.pd: Fix tests against global code and add default
18577         cases to switch stmts.
18578
18579 2015-08-03  Richard Biener  <rguenther@suse.de>
18580
18581         * genmatch.c (dt_simplify::gen): Create captures array
18582         with an initializer.
18583
18584 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18585
18586         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18587         the host compiler is affected by placement new aliasing bug.
18588         * configure: Regenerate.
18589         * Makefile.in (ALIASING_FLAGS): New variable.
18590         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18591
18592 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18593
18594         PR target/66731
18595         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18596         (negmulsf3_vfp): Likewise.
18597         (muldf3negdf_vfp): Disable for -frounding-math.
18598         (mulsf3negsf_vfp): Likewise.
18599         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18600         fix MULT cost with -frounding-math.
18601
18602 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18603
18604         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18605         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18606         explicit.  Prefer to add the flag whenever possible.
18607         (noce_process_if_block): Try noce_try_store_flag_constants before
18608         noce_try_cmove.
18609
18610 2015-08-03  Richard Biener  <rguenther@suse.de>
18611
18612         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18613         New hash-map to record equivalent transforms.
18614         (dt_node::analyze): Populate the equivalent transforms hash-map.
18615         (dt_simplify::info): Add reference to hash-map entry.
18616         (dt_simplify::gen): If we have split out a function for the
18617         transform, generate a call to it.
18618         (sinfo_hashmap_traits::hash): New function.
18619         (compare_op): New helper function for ...
18620         (sinfo_hashmap_traits::equal_keys): ... this new function.
18621         (decision_tree::gen): Split out common equivalent transforms
18622         into functions.
18623
18624 2015-08-03  Richard Biener  <rguenther@suse.de>
18625
18626         * gimple-fold.c (fold_gimple_assign): Remove folding of
18627         the comparison in COND_EXPRs.
18628
18629 2015-08-03  Richard Biener  <rguenther@suse.de>
18630
18631         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18632         on the rhs of assignments first simplify the embedded
18633         GENERIC condition.
18634
18635 2015-08-03  Richard Biener  <rguenther@suse.de>
18636
18637         PR tree-optimization/66917
18638         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18639         field.
18640         (DR_VECT_AUX): New macro.
18641         (set_dr_misalignment): Adjust.
18642         (dr_misalignment): Likewise.
18643         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18644         Compute whether the base is at least element aligned.
18645         * tree-vect-stmts.c (ensure_base_align): Adjust.
18646         (vectorizable_store): If the base is not element aligned
18647         preserve alignment of the original access if misalignment is unknown.
18648         (vectorizable_load): Likewise.
18649
18650 2015-08-02  Martin Sebor  <msebor@redhat.com>
18651
18652         * doc/invoke.texi (Wframe-address): Document it.
18653         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18654         Clarify possible effects of calling the functions with non-zero
18655         arguments and mention -Wframe-address.
18656         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18657
18658 2015-08-01  Michael Collison  <michael.collison@linaro.org
18659             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18660
18661         * config/arm/arm.md (*arm_smin_cmp): New pattern.
18662         (*arm_umin_cmp): Likewise.
18663
18664 2015-08-01  Caroline Tice  <cmtice@google.com>
18665
18666         PR 66521
18667         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18668         global variables.
18669         (vtbl_find_mangled_name):  New function.
18670         (vtbl_register_mangled_name):  New function.
18671         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
18672         mangled name in mangled name vectors.
18673         (find_or_create_vtbl_map_node):  Ditto.
18674         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
18675         update recursion_depth on function entry; pass it to every recursive
18676         call; automatically exit if depth > 25 (give up looking at that point).
18677         (verify_bb_vtables):  Initialize recursion_depth and pass it to
18678         var_is_used_for_virtual_call_p.
18679         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18680         global variable decls.
18681         (vtbl_register_mangled_name): New extern function decl.
18682
18683 2015-08-01  Tom de Vries  <tom@codesourcery.com>
18684
18685         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18686         function.
18687         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18688         Declare.
18689         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18690         operation_no_trapping_overflow.  Allow non-overflow operations.
18691         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18692         operations.
18693
18694 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
18695
18696         PR target/67049
18697         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18698
18699 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18700
18701         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18702         Enable for TARGET_32BIT.
18703         (*if_move_neg): Likewise.
18704
18705 2015-07-31  Nick Clifton  <nickc@redhat.com>
18706
18707         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18708         Returns true for __model__.
18709         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18710
18711 2015-07-31  Alan Modra  <amodra@gmail.com>
18712
18713         PR target/66870
18714         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18715         (rs6000_emit_prologue): Set it.
18716         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18717
18718 2015-07-31  Richard Biener  <rguenther@suse.de>
18719
18720         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18721         -> X == (C1 ^ C2) which is already implemented in match.pd.
18722         Remove redundant dispatching to fold_relational_const.
18723         Move unordered self and NaN compares ...
18724         * match.pd: ... as patterns here.  Remove some stray captures
18725         and add a comment.
18726
18727 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
18728
18729         * config/i386/i386.c
18730         (bdesc_special_args): Convert mask type from signed to unsigned for
18731         masked builtins.
18732         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18733         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18734         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18735         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18736         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18737         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18738         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18739         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18740         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18741         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18742         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18743         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18744         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18745         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18746         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18747         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18748         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18749         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18750         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18751         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18752         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18753         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18754         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18755         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18756         * config/i386/i386-builtin-types.def
18757         (V16QI_FTYPE_V16SI): Remove.
18758         (V8DF_FTYPE_V8SI): Ditto.
18759         (V8HI_FTYPE_V8DI): Ditto.
18760         (V8SI_FTYPE_V8DI): Ditto.
18761         (V8SF_FTYPE_V8DF): Ditto.
18762         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18763         (V16HI_FTYPE_V16SI): Ditto.
18764         (V16SF_FTYPE_V16HI): Ditto.
18765         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18766         (V16SF_FTYPE_V16SI): Ditto.
18767         (V4DI_FTYPE_V4DI): Ditto.
18768         (V16SI_FTYPE_V16SF): Ditto.
18769         (V16SF_FTYPE_FLOAT): Ditto.
18770         (V8DF_FTYPE_DOUBLE): Ditto.
18771         (V8DI_FTYPE_INT64): Ditto.
18772         (V8DI_FTYPE_V4DI): Ditto.
18773         (V16QI_FTYPE_V8DI): Ditto.
18774         (UINT_FTYPE_V4SF): Ditto.
18775         (UINT64_FTYPE_V4SF): Ditto.
18776         (UINT_FTYPE_V2DF): Ditto.
18777         (UINT64_FTYPE_V2DF): Ditto.
18778         (V16SI_FTYPE_V16SI): Ditto.
18779         (V8DI_FTYPE_V8DI): Ditto.
18780         (V16SI_FTYPE_PV4SI): Ditto.
18781         (V16SF_FTYPE_PV4SF): Ditto.
18782         (V8DI_FTYPE_PV2DI): Ditto.
18783         (V8DF_FTYPE_PV2DF): Ditto.
18784         (V4DI_FTYPE_PV2DI): Ditto.
18785         (V4DF_FTYPE_PV2DF): Ditto.
18786         (V16SI_FTYPE_PV2SI): Ditto.
18787         (V16SF_FTYPE_PV2SF): Ditto.
18788         (V8DI_FTYPE_PV4DI): Ditto.
18789         (V8DF_FTYPE_PV4DF): Ditto.
18790         (V8SF_FTYPE_FLOAT): Ditto.
18791         (V4SF_FTYPE_FLOAT): Ditto.
18792         (V4DF_FTYPE_DOUBLE): Ditto.
18793         (V8SF_FTYPE_PV4SF): Ditto.
18794         (V8SI_FTYPE_PV4SI): Ditto.
18795         (V4SI_FTYPE_PV2SI): Ditto.
18796         (V8SF_FTYPE_PV2SF): Ditto.
18797         (V8SI_FTYPE_PV2SI): Ditto.
18798         (V16SF_FTYPE_PV8SF): Ditto.
18799         (V16SI_FTYPE_PV8SI): Ditto.
18800         (V8DI_FTYPE_V8SF): Ditto.
18801         (V4DI_FTYPE_V4SF): Ditto.
18802         (V2DI_FTYPE_V4SF): Ditto.
18803         (V64QI_FTYPE_QI): Ditto.
18804         (V32HI_FTYPE_HI): Ditto.
18805         (V8UHI_FTYPE_V8UHI): Ditto.
18806         (V16UHI_FTYPE_V16UHI): Ditto.
18807         (V32UHI_FTYPE_V32UHI): Ditto.
18808         (V2UDI_FTYPE_V2UDI): Ditto.
18809         (V4UDI_FTYPE_V4UDI): Ditto.
18810         (V8UDI_FTYPE_V8UDI): Ditto.
18811         (V4USI_FTYPE_V4USI): Ditto.
18812         (V8USI_FTYPE_V8USI): Ditto.
18813         (V16USI_FTYPE_V16USI): Ditto.
18814         (V2DF_FTYPE_V2DF_UINT64): Ditto.
18815         (V2DI_FTYPE_V2DF_V2DF): Ditto.
18816         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18817         (V8DF_FTYPE_V8DF_V8DI): Ditto.
18818         (V4SF_FTYPE_V4SF_UINT64): Ditto.
18819         (V4SI_FTYPE_V4SF_V4SF): Ditto.
18820         (V16SF_FTYPE_V16SF_V16SI): Ditto.
18821         (V64QI_FTYPE_V32HI_V32HI): Ditto.
18822         (V32HI_FTYPE_V16SI_V16SI): Ditto.
18823         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18824         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18825         (V32HI_FTYPE_V64QI_V64QI): Ditto.
18826         (V32HI_FTYPE_V32HI_V32HI): Ditto.
18827         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18828         (V16SI_FTYPE_V16SI_V4SI): Ditto.
18829         (V16SI_FTYPE_V16SI_V16SI): Ditto.
18830         (V16SI_FTYPE_V32HI_V32HI): Ditto.
18831         (V16SI_FTYPE_V16SI_SI): Ditto.
18832         (V8DI_FTYPE_V8DI_V8DI): Ditto.
18833         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18834         (V8DI_FTYPE_V16SI_V16SI): Ditto.
18835         (V8DI_FTYPE_V8DI_V2DI): Ditto.
18836         (QI_FTYPE_QI): Ditto.
18837         (SI_FTYPE_SI): Ditto.
18838         (DI_FTYPE_DI): Ditto.
18839         (QI_FTYPE_QI_QI): Ditto.
18840         (QI_FTYPE_QI_INT): Ditto.
18841         (HI_FTYPE_HI_INT): Ditto.
18842         (SI_FTYPE_SI_INT): Ditto.
18843         (DI_FTYPE_DI_INT): Ditto.
18844         (HI_FTYPE_V16QI_V16QI): Ditto.
18845         (SI_FTYPE_V32QI_V32QI): Ditto.
18846         (DI_FTYPE_V64QI_V64QI): Ditto.
18847         (QI_FTYPE_V8HI_V8HI): Ditto.
18848         (HI_FTYPE_V16HI_V16HI): Ditto.
18849         (SI_FTYPE_V32HI_V32HI): Ditto.
18850         (QI_FTYPE_V4SI_V4SI): Ditto.
18851         (QI_FTYPE_V8SI_V8SI): Ditto.
18852         (QI_FTYPE_V2DI_V2DI): Ditto.
18853         (QI_FTYPE_V4DI_V4DI): Ditto.
18854         (QI_FTYPE_V8DI_V8DI): Ditto.
18855         (HI_FTYPE_V16SI_V16SI): Ditto.
18856         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18857         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18858         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18859         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18860         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18861         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18862         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18863         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18864         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18865         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18866         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18867         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18868         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18869         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18870         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18871         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18872         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18873         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18874         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18875         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18876         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18877         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18878         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18879         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18880         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18881         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18882         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18883         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18884         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18885         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18886         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18887         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18888         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18889         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18890         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18891         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18892         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18893         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18894         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18895         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18896         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18897         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18898         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18899         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18900         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18901         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18902         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18903         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18904         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18905         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18906         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18907         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18908         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18909         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18910         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18911         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18912         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18913         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18914         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18915         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18916         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18917         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18918         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18919         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18920         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18921         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18922         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18923         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18924         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18925         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18926         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18927         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18928         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18929         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18930         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18931         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18932         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18933         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18934         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18935         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18936         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18937         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18938         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18939         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18940         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18941         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18942         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18943         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18944         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18945         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18946         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18947         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18948         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18949         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18950         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18951         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18952         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18953         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18954         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18955         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18956         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18957         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18958         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18959         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18960         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18961         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18962         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18963         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18964         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18965         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18966         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18967         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18968         (HI_FTYPE_HI): Ditto.
18969         (HI_FTYPE_V16QI): Ditto.
18970         (SI_FTYPE_V32QI): Ditto.
18971         (DI_FTYPE_V64QI): Ditto.
18972         (QI_FTYPE_V8HI): Ditto.
18973         (HI_FTYPE_V16HI): Ditto.
18974         (SI_FTYPE_V32HI): Ditto.
18975         (QI_FTYPE_V4SI): Ditto.
18976         (QI_FTYPE_V8SI): Ditto.
18977         (HI_FTYPE_V16SI): Ditto.
18978         (QI_FTYPE_V2DI): Ditto.
18979         (QI_FTYPE_V4DI): Ditto.
18980         (QI_FTYPE_V8DI): Ditto.
18981         (V16QI_FTYPE_HI): Ditto.
18982         (V32QI_FTYPE_SI): Ditto.
18983         (V64QI_FTYPE_DI): Ditto.
18984         (V8HI_FTYPE_QI): Ditto.
18985         (V16HI_FTYPE_HI): Ditto.
18986         (V32HI_FTYPE_SI): Ditto.
18987         (V4SI_FTYPE_QI): Ditto.
18988         (V4SI_FTYPE_HI): Ditto.
18989         (V8SI_FTYPE_QI): Ditto.
18990         (V8SI_FTYPE_HI): Ditto.
18991         (V2DI_FTYPE_QI): Ditto.
18992         (V4DI_FTYPE_QI): Ditto.
18993         (HI_FTYPE_HI_HI): Ditto.
18994         (SI_FTYPE_SI_SI): Ditto.
18995         (DI_FTYPE_DI_DI): Ditto.
18996         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18997         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18998         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18999         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19000         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19001         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19002         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19003         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19004         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19005         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19006         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19007         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19008         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19009         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19010         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19011         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19012         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19013         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19014         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19015         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19016         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19017         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19018         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19019         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19020         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19021         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19022         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19023         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19024         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19025         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19026         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19027         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19028         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19029         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19030         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19031         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19032         (V16SI_FTYPE_HI): Ditto.
19033         (V8DI_FTYPE_QI): Ditto.
19034         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19035         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19036         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19037         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19038         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19039         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19040         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19041         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19042         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19043         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19044         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19045         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19046         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19047         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19048         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19049         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19050         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19051         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19052         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19053         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19054         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19055         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19056         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19057         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19058         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19059         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19060         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19061         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19062         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19063         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19064         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19065         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19066         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19067         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19068         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19069         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19070         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19071         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19072         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19073         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19074         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19075         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19076         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19077         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19078         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19079         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19080         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19081         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19082         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19083         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19084         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19085         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19086         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19087         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19088         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19089         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19090         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19091         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19092         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19093         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19094         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19095         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19096         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19097         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19098         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19099         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19100         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19101         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19102         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19103         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19104         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19105         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19106         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19107         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19108         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19109         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19110         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19111         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19112         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19113         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19114         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19115         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19116         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19117         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19118         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19119         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19120         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19121         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19122         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19123         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19124         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19125         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19126         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19127         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19128         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19129         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19130         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19131         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19132         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19133         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19134         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19135         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19136         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19137         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19138         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19139         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19140         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19141         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19142         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19143         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19144         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19145         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19146         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19147         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19148         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19149         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19150         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19151         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19152         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19153         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19154         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19155         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19156         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19157         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19158         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19159         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19160         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19161         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19162         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19163         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19164         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19165         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19166         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19167         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19168         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19169         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19170         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19171         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19172         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19173         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19174         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19175         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19176         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19177         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19178         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19179         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19180         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19181         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19182         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19183         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19184         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19185         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19186         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19187         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19188         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19189         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19190         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19191         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19192         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19193         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19194         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19195         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19196         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19197         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19198         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19199         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19200         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19201         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19202         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19203         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19204         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19205         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19206         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19207         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19208         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19209         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19210         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19211         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19212         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19213         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19214         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19215         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19216         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19217         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19218         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19219         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19220         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19221         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19222         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19223         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19224         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19225         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19226         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19227         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19228         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19229         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19230         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19231         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19232         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19233         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19234         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19235         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19236         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19237         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19238         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19239         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19240         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19241         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19242         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19243         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19244         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19245         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19246         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19247         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19248         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19249         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19250         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19251         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19252         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19253         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19254         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19255         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19256         (QI_FTYPE_V8DF_INT_QI): Ditto.
19257         (QI_FTYPE_V4DF_INT_QI): Ditto.
19258         (QI_FTYPE_V2DF_INT_QI): Ditto.
19259         (HI_FTYPE_V16SF_INT_HI): Ditto.
19260         (QI_FTYPE_V8SF_INT_QI): Ditto.
19261         (QI_FTYPE_V4SF_INT_QI): Ditto.
19262         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19263
19264 2015-07-31  Richard Biener  <rguenther@suse.de>
19265
19266         * gimple-fold.c (fold_gimple_assign): Remove folding of
19267         GIMPLE_BINARY_RHS.
19268
19269 2015-07-31  Tom de Vries  <tom@codesourcery.com>
19270
19271         PR tree-optimization/66846
19272         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19273         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19274         (expand_omp_target) [ENABLE_CHECKING]: Same.
19275         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19276         cfun if !LOOPS_NEED_FIXUP.
19277         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
19278         that omp_for already has its own loop struct.
19279         * tree-parloops.c (create_phi_for_local_result)
19280         (create_call_for_reduction): Handle simple latch bb.
19281         (create_parallel_loop): Add simple latch bb to preserve
19282         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
19283         (gen_parallel_loop): Remove call to cancel_loop_tree.
19284         (parallelize_loops): Skip loops that are inner loops of parallelized
19285         loops.
19286         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19287         verify_loop_structure.
19288
19289 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19290
19291         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19292         * config/v850/v850.md (RV_REGNUM): New constants.
19293         * config/v850/v850.c (v850_libcall_value): New functions.
19294         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19295         (TARGET_LIBCALL_VALUE): Define.
19296
19297 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19298
19299         * rtl.h (lowpart_subreg): Move in file.
19300         * loop-iv.c (lowpart_subreg): Move to...
19301         * simplify-rtx.c (lowpart_subreg): ...here.
19302           (simplify_binary_operation_1): Use lowpart_subreg instead of
19303           simplify_gen_subreg.
19304         * expr.c (expand_expr_real_2): Ditto.
19305         * emit-rtl.c (gen_lowpart_common): Ditto.
19306         * combine.c (gen_lowpart_for_combine): Ditto.
19307         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19308           expand_debug_source_expr): Ditto.
19309
19310 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
19311
19312         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19313         (expand_builtin_atomic_clear): Remove support for atomic_clear
19314         pattern.
19315
19316 2015-07-30  Richard Biener  <rguenther@suse.de>
19317
19318         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19319         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19320         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
19321         redundant operand canonicalization.
19322
19323 2015-07-30  David Sherwood  <david.sherwood@arm.com>
19324
19325         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19326         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19327         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19328         * config/arm/arm.c (neon_valid_immediate): Likewise.
19329         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19330         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19331         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19332         (expand_vec_perm_vpshufb2_vpermq): Likewise.
19333         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19334         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19335         * config/i386/sse.md
19336         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19337         (*ssse3_palignr<mode>_perm): Likewise.
19338         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19339         * config/spu/spu.c (arith_immediate_p): Likewise.
19340         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19341         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19342
19343 2015-07-30  Richard Biener  <rguenther@suse.de>
19344
19345         * genmatch.c (decision_tree::gen_gimple): Merge with ...
19346         (decision_tree::gen_generic): ... this into ...
19347         (decision_tree::gen): ... this.
19348         (main): Adjust callers.
19349
19350 2015-07-30  Richard Biener  <rguenther@suse.de>
19351
19352         * genmatch.c (verbose): New global.
19353         (warning_at): Add overload with source_location.
19354         (capture_info::capture_info): Add bool whether generating gimple
19355         or generic.  Add gimple member.
19356         (capture_info::cinfo): Add capture member.
19357         (capture_info::walk_match): Record capture.  Warn on
19358         non-captured leafs.
19359         (capture_info::walk_c_expr): Add more fragments captures cannot
19360         escape through.  Warn on escaped captures.
19361         (dt_simplify::gen_1): Warn on operands we force to have no
19362         side-effects.
19363         (main): Initialize verbose.
19364         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19365
19366 2015-07-30  Richard Biener  <rguenther@suse.de>
19367
19368         PR middle-end/67053
19369         * match.pd: Allow both operands to independently have conversion
19370         when simplifying compares of addresses.
19371
19372 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
19373
19374         PR target/66217
19375         PR target/67045
19376         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19377         around those cases that need one.
19378
19379 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
19380
19381         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19382
19383 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
19384
19385         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19386         New.  Copied from config/i386/gnu-user.h.
19387         (ASM_COMMENT_START): Likewise.
19388         (DBX_REGISTER_NUMBER): Likewise.
19389
19390 2015-07-29  Richard Biener  <rguenther@suse.de>
19391
19392         * gimple-fold.c (fold_gimple_cond): Remove.
19393         (fold_stmt_1): Do not call it.
19394
19395 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
19396
19397         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19398         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19399
19400         * config/aarch64/aarch64-modes.def: Add HFmode.
19401
19402         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19403         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19404
19405         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19406         aarch64_promoted_type): New.
19407
19408         (aarch64_float_const_representable_p): Disable HFmode.
19409         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19410         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19411         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19412
19413         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19414         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19415
19416         * config/aarch64/iterators.md (GPF_F16): New.
19417
19418 2015-07-29  Richard Biener  <rguenther@suse.de>
19419
19420         * match.pd: Merge address comparison patterns and make them
19421         handle some more cases.
19422
19423 2015-07-29  Richard Biener  <rguenther@suse.de>
19424
19425         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19426         (parser::parse_capture): Add bool argument on whether to reject
19427         unknown captures.
19428         (parser::parse_expr): Adjust.
19429         (parser::parse_op): Likewise.
19430         (parser::parse_pattern): Likewise.
19431
19432 2015-07-29  Richard Biener  <rguenther@suse.de>
19433
19434         * gimple-fold.c (has_use_on_stmt): New function.
19435         (replace_stmt_with_simplification): Use it to allow
19436         abnormals originally referenced in the stmt.
19437         (fold_stmt_1): Canonicalize operand order.
19438
19439 2015-07-28  David Sherwood  <david.sherwood@arm.com>
19440
19441         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19442         GET_MODE_INNER unconditionally.
19443         * config/spu/spu.c (arith_immediate_p): Likewise.
19444         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19445         * expmed.c (synth_mult): Remove check for VOIDmode result from
19446         GET_MODE_INNER.
19447         (expand_mult_const): Likewise.
19448         * fold-const.c (fold_binary_loc): Replace call to element_precision
19449         with call to GET_MODE_PRECISION.
19450         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19451         m->name.
19452         (emit_mode_inner): Likewise.
19453         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19454         result check.
19455         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19456         (GET_MODE_UNIT_PRECISION): Likewise.
19457         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19458         * simplify-rtx.c (simplify_immed_subreg): Likewise.
19459         * stor-layout.c (bitwise_type_for_mode): Update assert.
19460         (element_precision): Remove.
19461
19462 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19463
19464         * target-insns.def (reload_load_address): New targetm instruction
19465         pattern.
19466         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19467
19468 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19469
19470         * target-insns.def (atomic_test_and_set): New targetm instruction
19471         pattern.
19472         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19473         HAVE_*/gen_* interface.
19474
19475 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19476
19477         * target-insns.def (can_extend, ptr_extend): New targetm instruction
19478         patterns.
19479         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19480         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19481         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19482         * rtlanal.c (nonzero_bits1): Likewise.
19483         (num_sign_bit_copies1): Likewise.
19484
19485 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19486
19487         * target-insns.def (eh_return): New targetm instruction pattern.
19488         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19489         interface.
19490         * function.c (thread_prologue_and_epilogue_insns): Remove
19491         preprocessor condition.
19492
19493 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19494
19495         * target-insns.def (indirect_jump): New targetm instruction pattern.
19496         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19497         interface.
19498
19499 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19500
19501         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19502         instead of nonimmediate_operand.  Remove C condiition.
19503
19504 2015-07-28  Richard Biener  <rguenther@suse.de>
19505
19506         * match.pd: Add more simplification of address comparisons.
19507
19508 2015-07-28  Richard Biener  <rguenther@suse.de>
19509
19510         * match.pd: Re-order two cases in comparison with max/min
19511         value simplification to make it apply for bools.
19512
19513 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19514
19515         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19516         Handle simple SIGN_EXTEND or ZERO_EXTEND.
19517         (aarch64_rtx_costs): Properly strip extend or extract before
19518         passing down to rtx costs again.
19519
19520 2015-07-28  Nick Clifton  <nickc@redhat.com>
19521
19522         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19523         Optimizes the case where -mes0 is active and a constant symbolic
19524         address is used.
19525         * config/rl78/rl78-protos.h: Prototype the new function.
19526         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19527
19528 2015-07-28  Tom de Vries  <tom@codesourcery.com>
19529
19530         * tree-parloops.c (reduc_stmt_res): New function.
19531         (initialize_reductions, add_field_for_reduction)
19532         (create_phi_for_local_result, create_loads_for_reductions)
19533         (create_stores_for_reduction, build_new_reduction): Handle case that
19534         reduc_stmt is a phi.
19535         (gather_scalar_reductions): Allow double_reduc reductions.
19536
19537 2015-07-28  Richard Biener  <rguenther@suse.de>
19538
19539         * fold-const.c (fold_comparison): Remove equality folding
19540         of decl addresses ...
19541         * match.pd: ... here and merge with existing pattern.
19542
19543 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19544
19545         PR tree-optimization/66828
19546         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19547         from int64_t to uint64_t.
19548
19549 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19550
19551         * opts-common.c (read_cmdline_option): List DriverOnly enum values
19552         as valid only in the error message of the driver, not in the
19553         messages of the language compilers.
19554
19555 2015-07-27  Tom de Vries  <tom@codesourcery.com>
19556
19557         * tree-parloops.c (gather_scalar_reductions): Simplify function
19558         structure.
19559
19560 2015-07-27  Marek Polacek  <polacek@redhat.com>
19561
19562         * ipa-devirt.c (types_same_for_odr): Fix typo.
19563
19564 2015-07-27  Jason Merrill  <jason@redhat.com>
19565
19566         PR debug/66468
19567         * dwarf2out.c (gen_inlined_subroutine_die): Check
19568         cgraph_function_possibly_inlined_p.
19569
19570 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19571
19572         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19573         Place integer variant first.
19574         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19575
19576 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19577
19578         PR/63870
19579         * config/arm/arm-builtins.c (enum arm_builtins):
19580         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19581         (ARM_BUILTIN_NEON_BASE): Rename macro to....
19582         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19583         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19584         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19585
19586 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19587
19588         PR/63870
19589         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19590         Add qualifier_lane_index.
19591         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19592         (arm_getlane_qualifiers): Use qualifier_lane_index.
19593         (arm_lanemac_qualifiers): Rename to...
19594         (arm_mac_n_qualifiers): ...this.
19595         (LANEMAC_QUALIFIERS): Rename to...
19596         (MAC_N_QUALIFIERS): ...this.
19597         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19598         (arm_setlane_qualifiers): Use qualifier_lane_index.
19599         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19600         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19601         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19602         (arm_expand_neon_builtin): Handle qualifier_lane_index.
19603
19604         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19605         * config/arm/arm.c (bounds_check): Likewise, improve error message.
19606         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19607         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19608         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19609         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19610         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19611         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19612         qualifiers to TERNOP_IMM.
19613         (vdup_lane): Change qualifiers to GETLANE.
19614         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19615         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19616         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19617         vqdmlsl_n): Change qualifiers to MAC_N.
19618
19619         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19620         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19621         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19622         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19623         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19624         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19625         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19626         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19627         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19628         Remove call to neon_lane_bounds.
19629
19630 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19631
19632         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19633         Place integer variant first.
19634
19635 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
19636
19637         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19638         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19639         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19640         for armv6kz targets.
19641         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19642         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19643         (FL_FOR_ARCH6ZK): Remove.
19644         (FL_FOR_ARCH6KZ): New.
19645         (arm_arch6zk): New declaration.
19646         * config/arm/arm-tables.opt: Regenerate.
19647         * config/arm/arm.c (arm_arch6kz): New.
19648         (arm_option_override): Set arm_arch6kz.
19649         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19650         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19651         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19652
19653 2015-07-27  Marek Polacek  <polacek@redhat.com>
19654
19655         PR c++/66555
19656         PR c/54979
19657         * doc/invoke.texi: Document -Wtautological-compare.
19658
19659 2015-07-27  Richard Biener  <rguenther@suse.de>
19660
19661         * genmatch.c (decision_tree::gen_gimple): Split out large
19662         subtrees into separate functions.
19663         (decision_tree::gen_generic): Likewise.
19664
19665 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
19666
19667         * config/alpha/alpha.c: Use SUBREG_P predicate.
19668         * config/alpha/predicates.md: Ditto.
19669
19670 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19671
19672         * config.host (s390*-*-*): Include driver-native.c only when
19673         building with s390* as host *and* target.
19674
19675 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
19676
19677         PR target/66930
19678         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19679         T bit register modified_between_p check.
19680
19681 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19682
19683         * config/i386/i386.c: Use SUBREG_P predicate.
19684         * config/i386/i386.md: Ditto.
19685         * config/i386/sse.md: Ditto.
19686         * config/i386/predicates.md: Ditto.
19687
19688 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19689
19690         PR target/67004
19691         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19692         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19693
19694 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19695
19696         * Makefile.in: Remove use of TREEBROWSER.
19697         * config.in: Regenerated.
19698         * configure: Regenerated.
19699         * configure.ac: Remove definition of TREEBROWSER.
19700         * tree-browser.c: Removed.
19701         * tree-browser.def: Removed.
19702
19703 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19704
19705         * graphite-scop-detection.c: Include gimple-pretty-print.h.
19706         (stmt_simple_for_scop_p): Print when a stmt is not handled in
19707         Graphite.
19708         (scopdet_basic_block_info): Print when a loop or bb cannot be
19709         represented in Graphite.
19710
19711 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19712
19713         PR target/66648
19714         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19715         execution guard when min_size is less than size_needed.
19716
19717 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19718
19719         * doc/install.texi: Document supported versions of ISL.
19720
19721 2015-07-25  Jeff Law  <law@redhat.com>
19722
19723         Revert:
19724         PR lto/66752
19725         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19726         unable to find X NE 0 in the tables, return X as the simplified
19727         condition.
19728         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19729         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19730         to VISISTED_BBS.  */
19731         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19732         after removing the control flow statement and unnecessary edges.
19733
19734 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
19735
19736         Revert:
19737         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19738
19739         PR rtl-optimization/64164
19740         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19741         * tree-ssa-copyrename.c: Removed.
19742         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19743         -ftree-coalesce-vars.
19744         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19745         * common.opt (ftree-copyrename): Ignore.
19746         (ftree-coalesce-inlined-vars): Likewise.
19747         * doc/invoke.texi: Remove the ignored options above.
19748         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19749         * tree-ssa-coalesce.h: ... here.
19750         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19751         headers required by it.
19752         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19753         across variables when flag_tree_coalesce_vars.  Check register
19754         use and promoted modes to allow coalescing.  Moved to
19755         tree-ssa-coalesce.c.
19756         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19757         with its member functions to tree-ssa-coalesce.c.
19758         (var_map_base_init): Likewise.  Renamed to
19759         compute_samebase_partition_bases.
19760         (partition_view_normal): Drop want_bases parameter.
19761         (partition_view_bitmap): Likewise.
19762         * tree-ssa-live.h: Adjust declarations.
19763         * tree-ssa-coalesce.c: Include explow.h.
19764         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19765         default defs at the entry point.
19766         (dump_part_var_map): New.
19767         (compute_optimized_partition_bases): New, called by...
19768         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19769         of compute_samebase_partition_bases.  Adjust.
19770         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19771         * cfgexpand.c (leader_merge): New.
19772         (get_rtl_for_parm_ssa_default_def): New.
19773         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19774         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19775         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19776         redundant MEM attr setting.
19777         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19778         from...
19779         (expand_one_stack_var): ... this.  New wrapper to check and
19780         skip already expanded SSA partitions.
19781         (record_alignment_for_reg_var): New, factored out of...
19782         (expand_one_var): ... this.
19783         (expand_one_ssa_partition): New.
19784         (adjust_one_expanded_partition_var): New.
19785         (expand_one_register_var): Check and skip already expanded SSA
19786         partitions.
19787         (expand_used_vars): Don't create DECLs for anonymous SSA
19788         names.  Expand all SSA partitions, then adjust all SSA names.
19789         (pass::execute): Replace the loops that set
19790         SA.partition_to_pseudo from partition leaders and cleared
19791         DECL_RTL for multi-location variables, and that which used to
19792         rename vars and set attrs, with one that clears DECL_RTL and
19793         checks that PARMs and RESULTs default_defs match DECL_RTL.
19794         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19795         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19796         * explow.c (promote_ssa_mode): New.
19797         * explow.h (promote_ssa_mode): Declare.
19798         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19799         * function.c: Include cfgexpand.h.
19800         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19801         (use_register_for_parm_decl): Wrapper for the above to
19802         special-case the result_ptr.
19803         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19804         (split_complex_args): Take assign_parm_data_all argument.
19805         Pass it to rtl_for_parm.  Set up rtl and context for split
19806         args.
19807         (assign_parms_augmented_arg_list): Adjust.
19808         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19809         multiple locations.  Recognize split complex args.
19810         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19811         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19812         (assign_parm_setup_block): Prefer SSA-assigned location.
19813         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19814         if stack_parm is NULL.
19815         (assign_parm_setup_stack): Prefer SSA-assigned location.
19816         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19817         rtl before testing for pointer bounds.  Special-case result_ptr.
19818         (expand_function_start): Maybe reset DECL_RTL of result.
19819         Prefer SSA-assigned location for result and static chain.
19820         Factor out DECL_RESULT and SET_DECL_RTL.
19821         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19822         anonymous SSA names.  Use promote_ssa_mode.
19823         (get_temp_reg): Likewise.
19824         (remove_ssa_form): Adjust.
19825         * stor-layout.c (layout_decl): Don't set mem attributes of
19826         non-MEMs.
19827         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19828         and get its reg_usage for reg invalidation.
19829         (compute_bb_dataflow): Pass it insn.
19830         (emit_notes_in_bb): Likewise.
19831
19832 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19833
19834         * config/i386/i386.c (ix86_va_start): Remove
19835         unneeded !TARGET_64BIT check.
19836         (ix86_gimplify_va_arg): Ditto.
19837
19838 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19839
19840         * graphite-sese-to-poly.c (build_poly_scop): Always call
19841         rewrite_commutative_reductions_out_of_ssa.
19842
19843 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19844
19845         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19846         flag_associative_math to FLOAT_TYPE_P.  Honour
19847         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19848
19849 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19850
19851         PR c++/64079
19852         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19853         and "%qD" in warning_at instead of "%q+D" in warning.
19854
19855 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19856
19857         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19858         (ix86_function_abi): Cleanup.
19859
19860 2015-07-24  Michael Darling  <darlingm@gmail.com>
19861
19862         PR other/66259
19863         * acinclude.m4: Reflects renaming of configure.in to configure.ac
19864         * configure: Likewise
19865         * configure.ac: Likewise
19866         * doc/install.texi: Likewise
19867         * doc/tm.texi: Likewise
19868         * doc/tm.texi.in: Likewise
19869
19870 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19871
19872         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19873         manually swapping values.
19874         * cse.c (fold_rtx): Likewise.
19875         * lra-eliminations.c (form_sum): Likewise.
19876
19877 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19878
19879         PR target/64003
19880         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19881         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19882         (*jcc_1, *jcc_2, jump, simple_return_internal)
19883         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19884         Set length_nobnd attribute instead of length attribute.
19885         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19886         (length_nobnd): Remove attribute.
19887         (length): Remove length_nobnd processing.
19888
19889 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
19890
19891         * gimplify.c (omp_default_clause): New function.  Reorganize flow
19892         for clarity. Broken out of ...
19893         (omp_notice_variable): ... here.
19894
19895 2015-07-24  Gary Funck  <gary@intrepid.com>
19896
19897         PR middle-end/66984
19898         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19899         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19900
19901 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19902
19903         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19904         exit-first loop transform.
19905
19906 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
19907
19908         PR 66714
19909         * tree-cfg.c (struct replace_decls_d): New struct.
19910         (replace_block_vars_by_duplicates_1): New function.
19911         (replace_block_vars_by_duplicates): Use it to replace the decls
19912         in the value exprs by duplicates.
19913
19914 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19915
19916         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19917         -shared, -symbolic, -rdynamic.
19918
19919 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19920
19921         PR target/65711
19922         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19923         -dynamic-linker within %{!static %{!shared, and -rdynamic within
19924         %{!static.
19925
19926 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19927
19928         PR ipa/66566
19929         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19930         edge summary is available.
19931
19932 2015-07-24  Richard Biener  <rguenther@suse.de>
19933
19934         * genmatch.c (struct dt_node): Add statistic fields.
19935         (dt_node::analyze): New method.
19936         (decision_tree::gen_gimple): Call analyze on the root node
19937         and print statistics to stderr.
19938         (decision_tree::gen_generic): Likewise.
19939
19940 2015-07-24  Richard Biener  <rguenther@suse.de>
19941
19942         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19943         against the highest or lowest possible integer ...
19944         * match.pd: ... as patterns here.
19945
19946 2015-07-24  Richard Biener  <rguenther@suse.de>
19947
19948         * genmatch.c (struct capture_info): Add same_as field.
19949         (capture_info::capture_info): Initialize same_as.
19950         (capture_info::walk_match): Compute same_as.
19951         (capture_info::walk_result): Compute stuff for the leader.
19952         (capture_info::walk_c_expr): Likewise.
19953         (dt_simplify::gen_1): Only look at leaders when deciding
19954         to force no side-effects or emit side-effects of omitted operands.
19955
19956 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19957
19958         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19959         reg note to the GPR -> FPR save instructions.
19960
19961 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19962
19963         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19964         cheaper.
19965         (s390_expand_insv): Don't generate risbg pattern for constant zero
19966         sources.
19967         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19968         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
19969         splitters.
19970
19971 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19972
19973         * config/s390/s390.c (s390_reorg): Clean up handling of processors
19974         with
19975         -mtune=
19976         (s390_issue_rate): Likewise.
19977         (s390_sched_reorder): Likewise.
19978         (s390_sched_variable_issue): Likewise.
19979         (s390_loop_unroll_adjust): Likewise.
19980         (s390_option_override):  Likewise.
19981
19982 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19983
19984         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19985         processor capabilities with -march=native.
19986         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19987         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
19988         (S390_TARGET_BITS_STRING): Macro to simplify specs.
19989
19990 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19991
19992         * config/s390/s390.c (s390_issue_rate): Handle
19993         PROCESSOR_2094_Z9_EC.
19994         (s390_option_override): Likewise.
19995         (s390_adjust_priority): Likewise.
19996
19997 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19998
19999         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20000         when cross compiling.
20001
20002 2015-07-24  Richard Biener  <rguenther@suse.de>
20003
20004         * fold-const.c (maybe_canonicalize_comparison_1): Move
20005         A code CST canonicalization ...
20006         * match.pd: ... to a pattern here.
20007
20008 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
20009
20010         Revert:
20011         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20012         PR target/63521
20013         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20014         (HONOR_REG_ALLOC_ORDER): Define.
20015
20016 2015-07-24  Richard Biener  <rguenther@suse.de>
20017
20018         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20019         * fold-const.c (fold_comparison): Move parameter does not
20020         alias &local simplification ...
20021         * match.pd: ... as a pattern here.
20022
20023 2015-07-24  Richard Biener  <rguenther@suse.de>
20024
20025         * gimple-fold.c (replace_stmt_with_simplification): Special-case
20026         valueizing call operands.
20027         * gimple-match-head.c (maybe_push_res_to_seq): Take
20028         number of call arguments from ops array.
20029         (do_valueize): New function.
20030         (gimple_simplify): Return true if valueization changed
20031         any operand even if the result didn't simplify further.
20032
20033 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20034
20035         PR middle-end/25530
20036         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20037
20038 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20039
20040         PR middle-end/25529
20041         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20042
20043 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20044
20045         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20046         instruction.
20047
20048 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20049
20050         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20051         clean up.
20052
20053 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
20054
20055         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20056         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
20057         targets here.
20058         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20059         ms_va_list_type_node initialization.
20060
20061 2015-07-23  Jeff Law  <law@redhat.com>
20062
20063         PR lto/66752
20064         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20065         unable to find X NE 0 in the tables, return X as the simplified
20066         condition.
20067         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20068         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20069         to VISISTED_BBS.  */
20070         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20071         after removing the control flow statement and unnecessary edges.
20072
20073 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20074
20075         * tree-pass.h (get_current_pass_name): Removed.
20076
20077 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20078
20079         PR rtl-optimization/64164
20080         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20081         * tree-ssa-copyrename.c: Removed.
20082         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20083         -ftree-coalesce-vars.
20084         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20085         * common.opt (ftree-copyrename): Ignore.
20086         (ftree-coalesce-inlined-vars): Likewise.
20087         * doc/invoke.texi: Remove the ignored options above.
20088         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20089         * tree-ssa-coalesce.h: ... here.
20090         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20091         headers required by it.
20092         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20093         across variables when flag_tree_coalesce_vars.  Check register
20094         use and promoted modes to allow coalescing.  Moved to
20095         tree-ssa-coalesce.c.
20096         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20097         with its member functions to tree-ssa-coalesce.c.
20098         (var_map_base_init): Likewise.  Renamed to
20099         compute_samebase_partition_bases.
20100         (partition_view_normal): Drop want_bases parameter.
20101         (partition_view_bitmap): Likewise.
20102         * tree-ssa-live.h: Adjust declarations.
20103         * tree-ssa-coalesce.c: Include explow.h.
20104         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20105         default defs at the entry point.
20106         (dump_part_var_map): New.
20107         (compute_optimized_partition_bases): New, called by...
20108         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20109         of compute_samebase_partition_bases.  Adjust.
20110         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20111         * cfgexpand.c (leader_merge): New.
20112         (get_rtl_for_parm_ssa_default_def): New.
20113         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20114         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20115         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20116         redundant MEM attr setting.
20117         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20118         from...
20119         (expand_one_stack_var): ... this.  New wrapper to check and
20120         skip already expanded SSA partitions.
20121         (record_alignment_for_reg_var): New, factored out of...
20122         (expand_one_var): ... this.
20123         (expand_one_ssa_partition): New.
20124         (adjust_one_expanded_partition_var): New.
20125         (expand_one_register_var): Check and skip already expanded SSA
20126         partitions.
20127         (expand_used_vars): Don't create DECLs for anonymous SSA
20128         names.  Expand all SSA partitions, then adjust all SSA names.
20129         (pass::execute): Replace the loops that set
20130         SA.partition_to_pseudo from partition leaders and cleared
20131         DECL_RTL for multi-location variables, and that which used to
20132         rename vars and set attrs, with one that clears DECL_RTL and
20133         checks that PARMs and RESULTs default_defs match DECL_RTL.
20134         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20135         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20136         * explow.c (promote_ssa_mode): New.
20137         * explow.h (promote_ssa_mode): Declare.
20138         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20139         * function.c: Include cfgexpand.h.
20140         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20141         (use_register_for_parm_decl): Wrapper for the above to
20142         special-case the result_ptr.
20143         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20144         (split_complex_args): Take assign_parm_data_all argument.
20145         Pass it to rtl_for_parm.  Set up rtl and context for split
20146         args.
20147         (assign_parms_augmented_arg_list): Adjust.
20148         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20149         multiple locations.  Recognize split complex args.
20150         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20151         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20152         (assign_parm_setup_block): Prefer SSA-assigned location.
20153         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20154         if stack_parm is NULL.
20155         (assign_parm_setup_stack): Prefer SSA-assigned location.
20156         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20157         rtl before testing for pointer bounds.  Special-case result_ptr.
20158         (expand_function_start): Maybe reset DECL_RTL of result.
20159         Prefer SSA-assigned location for result and static chain.
20160         Factor out DECL_RESULT and SET_DECL_RTL.
20161         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20162         anonymous SSA names.  Use promote_ssa_mode.
20163         (get_temp_reg): Likewise.
20164         (remove_ssa_form): Adjust.
20165         * stor-layout.c (layout_decl): Don't set mem attributes of
20166         non-MEMs.
20167         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20168         and get its reg_usage for reg invalidation.
20169         (compute_bb_dataflow): Pass it insn.
20170         (emit_notes_in_bb): Likewise.
20171
20172 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
20173
20174         PR target/66217
20175         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20176         prototype.
20177         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20178         (rs6000_emit_2insn_and): Handle dot forms.
20179         * config/rs6000/rs6000.md (and<mode>3): Adjust.
20180         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
20181         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20182
20183 2015-07-23  Richard Biener  <rguenther@suse.de>
20184
20185         * generic-match-head.c: Include cgraph.h.
20186         * gimple-match-head.c: Likewise.
20187         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20188         SSA names.
20189         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20190         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
20191         pattern.
20192
20193 2015-07-23  Richard Biener  <rguenther@suse.de>
20194
20195         * gimple-fold.c (fold_gimple_cond): Do not require folding
20196         results to pass valid_gimple_rhs_p.
20197         * tree-cfg.h (fold_cond_expr_cond): Remove.
20198         * tree-cfg.c (fold_cond_expr_cond): Likewise.
20199         (make_edges): Do not call it.
20200         * tree-inline.c (tree_function_versioning): Likewise.
20201
20202 2015-07-23  Tom de Vries  <tom@codesourcery.com>
20203
20204         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20205         vect_force_simple_reduction.
20206         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20207         (vect_is_simple_reduction_1): Add and handle
20208         need_wrapping_integral_overflow parameter.
20209         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20210         need_wrapping_integral_overflow parameter.
20211         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20212         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20213         decl.
20214
20215 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
20216
20217         PR tree-optimization/66926,66951
20218         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20219         INNER_LOOP and fix up condition for renaming virtual operands.
20220
20221 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20222
20223         * combine.c (try_combine): Use std::swap instead of manually
20224         swapping.
20225
20226 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
20227
20228         * config/mips/i6400.md: New file.
20229         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20230         (mips64r6): Likewise.
20231         (i6400): Define.
20232         * config/mips/mips-tables.opt: Regenerate.
20233         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20234         (mips_issue_rate): Add support for i6400.
20235         (mips_multipass_dfa_lookahead): Likewise.
20236         * config/mips/mips.h (TUNE_I6400): Define.
20237         * config/mips/mips.md: Include i6400.md.
20238         (processor): Add i6400.
20239         * doc/invoke.texi (-march=@var{arch}): Add i6400.
20240
20241 2015-07-23  Richard Biener  <rguenther@suse.de>
20242
20243         PR middle-end/66916
20244         * match.pd: Guard widen and sign-change comparison simplification
20245         with single_use.
20246
20247 2015-07-23  Richard Biener  <rguenther@suse.de>
20248
20249         PR tree-optimization/66945
20250         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20251         ::before_dom_children): Force the propagators idea of
20252         non-executable edges to materialize, not what the folder
20253         chooses.
20254
20255 2015-07-23  Richard Biener  <rguenther@suse.de>
20256
20257         * gimple.h (gimple_cond_make_false): Use 0 != 0.
20258         (gimple_cond_make_true): Use 1 != 0.
20259
20260 2015-07-22  DJ Delorie  <dj@redhat.com>
20261
20262         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20263         slashes.
20264
20265         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20266         (ashrhi3): Likewise.
20267         (lshrhi3): Likewise.
20268         (movhi): Take advantage of zero-extend to load small constants.
20269         (movpsi): Likewise.
20270         (and<mode>3): Likewise.
20271         (zero_extendqihi2): Likewise.
20272         (zero_extendqisi2): New.
20273         * config/msp430/constraints.md (N,O): New.
20274         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20275
20276 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
20277
20278         PR target/66954
20279         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20280         to enum feature_priority and feature_list.
20281         (fold_builtin_cpu): Add F_AES to enum processor_features
20282         and isa_names_table.
20283
20284 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
20285
20286         PR driver/66737
20287         * config/i386/linux-common.h (MPX_SPEC): Use linker option
20288         for 64bit target only.
20289
20290 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20291
20292         * config/nvptx/nvptx.c: Expand some comments.
20293
20294 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
20295
20296         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20297         (cortex_a53_advsimd): ...This.
20298
20299 2015-07-22  Richard Biener  <rguenther@suse.de>
20300
20301         * genmatch.c (expr::gen_transform): Clarify error message
20302         and display location.
20303
20304 2015-07-22  Richard Biener  <rguenther@suse.de>
20305
20306         * genmatch.c (struct operand): Add location member.
20307         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20308         constructors.
20309         (struct simplify): Remove match_location and result_location
20310         members.
20311         (elsehwere): Adjust.
20312
20313 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
20314
20315         * config/mips/m5100.md: New file.
20316         * config/mips/mips-cpus.def (m5100, m5101): Define.
20317         * config/mips/mips-tables.opt: Regenerate.
20318         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20319         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20320         -march=m5101 to -mips32r5.
20321         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20322         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20323         !-msoft-float.
20324         * config/mips/mips.md: Include m5100.md.
20325         (processor): Add m5100.
20326         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20327
20328 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
20329
20330         * config/mips/mips-cpus.def (interaptiv): Define.
20331         * config/mips/mips-tables.opt: Regenerate.
20332         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20333         -mips32r2.
20334         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20335         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20336
20337 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20338
20339         PR target/63521
20340         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20341         (HONOR_REG_ALLOC_ORDER): Define.
20342
20343 2015-07-22  Richard Biener  <rguenther@suse.de>
20344
20345         PR tree-optimization/66952
20346         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20347         blocks we end up executing unconditionally reset all SSA
20348         info such as range and alignment.
20349         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20350         * tree-ssanames.c (reset_flow_sensitive_info): New function.
20351
20352 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20353
20354         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20355         typo in attribute.
20356
20357 2015-07-22  Richard Biener  <rguenther@suse.de>
20358
20359         * genmatch.c (parser::parse_result): Properly handle
20360         match with result operands and conditions.
20361
20362 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20363
20364         PR target/63870
20365         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20366         Add qualifier_struct_load_store_lane_index.
20367         (aarch64_types_loadstruct_lane_qualifiers): Use
20368         qualifier_struct_load_store_lane_index for lane index argument for
20369         last argument.
20370         (aarch64_types_storestruct_lane_qualifiers): Ditto.
20371         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20372         (aarch64_simd_expand_args): Add new argument describing mode of
20373         builtin. Check lane bounds for arguments with
20374         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20375         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20376         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20377         (aarch64_simd_expand_builtin): Handle arguments with
20378         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20379         aarch64_simd_expand_args.
20380         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20381         vst[234]_lane with BUILTIN_VALLDIF.
20382         * config/aarch64/aarch64-simd.md:
20383         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20384         endianness reversal on lane index.
20385         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20386         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20387         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20388         (vec_store_lanesci_lane<mode>): Ditto.
20389         (vec_store_lanesxi_lane<mode>): Ditto.
20390         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20391         reversal of lane index.
20392         (aarch64_ld3_lane<mode>): Ditto.
20393         (aarch64_ld4_lane<mode>): Ditto.
20394         (aarch64_st2_lane<mode>): Ditto.
20395         (aarch64_st3_lane<mode>): Ditto.
20396         (aarch64_st4_lane<mode>): Ditto.
20397         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20398         to qmode. Add new mode parameter. Update uses.
20399         (__LD3_LANE_FUNC): Ditto.
20400         (__LD4_LANE_FUNC): Ditto.
20401         (__ST2_LANE_FUNC): Ditto.
20402         (__ST3_LANE_FUNC): Ditto.
20403         (__ST4_LANE_FUNC): Ditto.
20404
20405 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
20406
20407         * doc/invoke.texi (Language Independent Options): Rename node to
20408         Diagnostic Message Formatting Options.
20409
20410 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
20411
20412         PR ipa/66424.
20413         * lra-remat.c (operand_to_remat): Prevent using insns with input
20414         subregs processed separately by IRA.
20415
20416 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
20417
20418         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20419         straight loops.
20420         (single_imm_use): Check for iterator node.
20421         (num_imm_uses): Likewise.
20422         * tree-ssa-operands.c (has_zero_uses_1): Delete.
20423         (single_imm_use_1): Check for iterator node.
20424
20425 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
20426             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20427
20428         * configure.ac: Add check for new options in isl-0.15.
20429         * config.in, configure: Rebuilt.
20430         * graphite-blocking.c: Include <isl/constraint.h>
20431         * graphite-interchange.c,  graphite-poly.c: Likewise.
20432         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20433         * graphite.c: Likewise.
20434         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20435         <isl/union_set.h>.
20436         * graphite-dependences.c: Include <isl/constraint.h>.
20437         (max_number_of_out_dimensions): Returns isl_stat.
20438         (extend_schedule_1): Likewise
20439         (extend_schedule): Corresponding changes.
20440         * graphite-optimize-isl.c: Include <isl/constraint.h> and
20441         <isl/union_set.h>.
20442         (getSingleMap): Change return type of isl_stat.
20443         (optimize_isl): Conditionally use
20444         isl_options_set_schedule_serialize_sccs.
20445         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20446         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20447
20448 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
20449
20450         PR target/66956
20451         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20452         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20453
20454 2015-07-21  Richard Biener  <rguenther@suse.de>
20455
20456         PR tree-optimization/66948
20457         * genmatch.c (capture_info::walk_match): Also recurse to
20458         captures.  Properly compute expr state from captures of
20459         captures.
20460         * match.pd: Add single-use guards to
20461         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20462
20463 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
20464
20465         * config/nvptx/mkoffload.c (process): Add static destructor call.
20466
20467 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20468
20469         PR middle-end/66915
20470         * match.pd (A - B -> A + (-B)): Don't allow folding
20471         when type if a fixed-point type.
20472
20473 2015-07-20  DJ Delorie  <dj@redhat.com>
20474
20475         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20476         (iorqi3_real): Likewise for set1.
20477
20478 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
20479
20480         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20481         for !TARGET_64BIT.
20482
20483 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
20484
20485         * graphite-isl-ast-to-gimple.c:
20486         Refactor so that each function can access 'region'. This will help
20487         maintain a parameter rename_map within a region.
20488
20489 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20490
20491         * config/rs6000/rs6000.md (*lt0_disi): New.
20492
20493 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20494
20495         PR target/66217
20496         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
20497         "available letters" comment.
20498         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20499         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20500         and_2rld_operand):  Delete.
20501         (and_operand): Adjust.
20502         (rotate_mask_operator): New.
20503         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20504         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20505         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20506         extract_ME): Delete.
20507         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20508         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20509         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20510         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20511         rs6000_emit_2insn_and): New.
20512         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20513         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20514         includes_rldic_lshift_p, includes_rldicr_lshift_p,
20515         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20516         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20517         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20518         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20519         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20520         rs6000_emit_2insn_and): New.
20521         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20522         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20523         handling.
20524         <NOT>: Don't fall through to next case.
20525         <AND>: Handle the various rotate-and-mask cases directly.
20526         <IOR>: Always cost as one insn.
20527         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20528         (and<mode>3): Adjust expander for the new patterns.
20529         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20530         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20531         (*and<mode>3_imm_dot_shifted): New.
20532         (*and<mode>3_mask): Delete, rewrite as ...
20533         (and<mode>3_mask): ... New.
20534         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20535         (andsi3_internal0_nomc): Delete.
20536         (*andsi3_internal6): Delete.
20537         (*and<mode>3_2insn): New.
20538         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20539         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20540         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20541         *insvdi_internal3): Delete.
20542         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20543         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20544         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20545         *ior<mode>_mask): New.
20546         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20547         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20548         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20549         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20550         Delete.
20551         (ashr<mode>3): Delete expander.
20552         (*ashr<mode>3): Rename to ...
20553         (ashr<mode>3): ... This.
20554         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20555         (*rotldi3_internal4, *rotldi3_internal5 and split,
20556         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20557         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20558         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20559         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20560         (splitter for loading a mask): Adjust.
20561         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20562
20563 2015-07-20  Marek Polacek  <polacek@redhat.com>
20564
20565         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20566         output_add_clobbers, output_added_clobbers_hard_reg_p,
20567         gen_rtx_scratch): Remove declarations.
20568
20569 2015-07-20  Marek Polacek  <polacek@redhat.com>
20570
20571         PR c++/55095
20572         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20573
20574 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20575
20576         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20577         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20578
20579 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20580
20581         * combine.c (combine_simplify_rtx): Move simplification step
20582         before various transformations/substitutions.
20583
20584 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
20585
20586         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20587         (struct int_traits): Likewise.
20588
20589 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20590
20591         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20592         function to vmsdbgout_function_decl.
20593
20594 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20595
20596         PR target/66922
20597         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20598         from misaligned positions.
20599         (ix86_expand_pinsr): Reject insertions to misaligned positions.
20600
20601 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
20602
20603         PR middle-end/46851
20604         PR middle-end/60340
20605         * Makefile.in: Removed omega.o.
20606         * common.opt: Document flag fcheck-data-deps as deprecated.
20607         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20608         its associated params: omega-max-vars, omega-max-geqs,
20609         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20610         omega-max-keys, omega-eliminate-redundant-constraints.
20611         * doc/loop.texi: Remove all the section on Omega.
20612         * graphite-blocking.c: Include missing params.h: it used to be
20613         included through tree-data-ref.h and omega.h.
20614         * graphite-isl-ast-to-gimple.c: Same.
20615         * graphite-optimize-isl.c: Same.
20616         * graphite-sese-to-poly.c: Same.
20617         * graphite.c: Same.
20618         * omega.c: Remove.
20619         * omega.h: Remove.
20620         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20621         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20622         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20623         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20624         * passes.def: Remove pass_check_data_deps.
20625         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20626         (dump_conflict_function): Same.
20627         (dump_subscript): Same.
20628         (print_direction_vector): Same.
20629         (print_dir_vectors): Same.
20630         (print_lambda_vector): Same.
20631         (print_dist_vectors): Same.
20632         (dump_data_dependence_relation): Same.
20633         (dump_data_dependence_relations): Same.
20634         (dump_dist_dir_vectors): Same.
20635         (dump_ddrs): Same.
20636         (init_omega_eq_with_af): Removed.
20637         (omega_extract_distance_vectors): Removed.
20638         (omega_setup_subscript): Removed.
20639         (init_omega_for_ddr_1): Removed.
20640         (init_omega_for_ddr): Removed.
20641         (ddr_consistent_p): Removed.
20642         (compute_affine_dependence): Do not use omega to check data
20643         dependences.
20644         (compute_data_dependences_for_bb): Removed.
20645         (analyze_all_data_dependences): Removed.
20646         (tree_check_data_deps): Removed.
20647         * tree-data-ref.h: Do not include omega.h.
20648         (compute_data_dependences_for_bb): Removed.
20649         (tree_check_data_deps): Removed.
20650         * tree-ssa-loop.c (pass_check_data_deps): Removed.
20651         (make_pass_check_data_deps): Removed.
20652         * tree-ssa-phiopt.c: Include params.h.
20653         * tree-vect-data-refs.c: Same.
20654         * tree-vect-slp.c: Same.
20655
20656 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20657
20658         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20659         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
20660         (mem->fpreg splitters): Ditto.
20661         (general_operand->nonimmediate_operand splitter): Use explicit modes.
20662         Disable DFmode for TARGET_64BIT.
20663
20664 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
20665
20666         PR target/66906
20667         * config/i386/i386.c (ix86_expand_prologue): Replicate static
20668         chain on the stack.
20669
20670 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20671
20672         * config/nvptx/mkoffload.c (process): Constify host data.
20673         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20674         Constify host data.
20675         (generate_host_descr_file): Likewise.
20676
20677 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
20678             Sebastian Pop  <s.pop@samsung.com>
20679
20680         PR middle-end/61929
20681         * graphite-dependences.c (add_pdr_constraints): Renamed
20682         pdr->extent to pdr->subscript_sizes.
20683         * graphite-interchange.c (build_linearized_memory_access): Add
20684         back all gcc_assert's that the "isl_int to isl_val conversion"
20685         patch has removed.  Refactored.
20686         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20687         * graphite-poly.c (new_poly_dr): Same.
20688         (free_poly_dr): Same.
20689         * graphite-poly.h (struct poly_dr): Same.
20690         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20691         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20692         * graphite-scop-detection.h: Fix space.
20693         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20694         back all gcc_assert's removed by a previous patch.
20695         (wrap): Remove the_isl_ctx global variable that the same patch has
20696         added.
20697         (build_loop_iteration_domains): Same.
20698         (add_param_constraints): Same.
20699         (pdr_add_data_dimensions): Same.  Refactored.
20700         (build_poly_dr): Renamed extent to subscript_sizes.
20701
20702 2015-07-17  Marek Polacek  <polacek@redhat.com>
20703
20704         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20705         * match.pd: ... here.
20706
20707 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20708
20709         * config/nvptx/mkoffload.c (process): Constify target data.
20710         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20711         Constify target data.
20712         (generate_target_offloadend_file): Likewise.
20713
20714 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
20715
20716         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20717         to allow renaming of PHI arguments on edges incoming from outer
20718         loop header, add corresponding check before start PHI iterator.
20719         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20720         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20721         with true force_vectorize.  Set-up dominator for outer loop too.
20722         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20723         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20724         was marked with force_vectorize and has restricted cfg.
20725         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20726         inner loop.
20727         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20728         do peeling for outer loops.
20729
20730 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
20731             Matthias Klose  <doko@ubuntu.com>
20732
20733         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20734         build-sysroot, sysroot from the `Miscenalleous configure options' to
20735         the `Directories' section and strip trailing `/' from with_sysroot.
20736         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20737         * configure: Regenerated.
20738
20739 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20740
20741         PR target/66824
20742         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20743         (TARGET_HARD_DF_REGS): Ditto.
20744         (TARGET_HARD_XF_REGS): Ditto.
20745         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20746         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20747         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20748         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20749         (*movsf_internal): Add alternatives 16 and 17. Enable
20750         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20751
20752 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20753
20754         PR rtl-optimization/66891
20755         * calls.c (expand_call): Wrap precompute_register_parameters with
20756         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20757
20758 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
20759
20760         * config/nvptx/mkoffload.c (process): Constify mapping variables.
20761         Define target data struct and initialize it.
20762
20763 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
20764
20765         PR rtl-optimization/66626
20766         * ira.h (emit-rtl.h): Include.
20767         (non_spilled_static_chain_regno_p): New.
20768         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20769         unless it is non spilled static chain pseudo.
20770         (assign_hard_rego): Spill memory profitable allocno unless it is
20771         non spilled static chain pseudo.
20772         (allocno_spill_priority_compare): Put non spilled static chain
20773         pseudo at the end of sorted array.
20774         (improve_allocation): Do nothing if we have static chain and
20775         non-local goto.
20776         (allocno__priority_compare_func): Put non spilled static chain
20777         pseudo at the beginning of sorted array.
20778         (move_spill_restore): Ignore non spilled static chain pseudo.
20779         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20780         to non spilled static chain pseudo.
20781         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20782         pseudo at the beginning of sorted array.
20783         (spill_for): Spill non spilled static chain pseudo last.
20784         * lra-constraints.c (lra_constraints): Remove static chain pseudo
20785         check for equivalence.
20786
20787 2015-07-16  Martin Liska  <mliska@suse.cz>
20788
20789         PR ipa/66896.
20790         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20791         dst_ctx if it does not exist.
20792
20793 2015-07-16  Martin Liska  <mliska@suse.cz>
20794
20795         * hash-set.h (remove): New function.
20796         (iterator): New iteration class for hash_set.
20797
20798 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20799
20800         * genattrtab.c (make_canonical): Add a file_location parameter.
20801         Use fatal_at rather than fatal.
20802         (get_attr_value): Likewise.  Update call to make_canonical.
20803         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20804         (make_internal_attr): Update calls accordingly.
20805
20806 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20807
20808         * read-md.h (message_with_line, error_with_line): Delete.
20809         * read-md.c (message_with_line, error_with_line): Delete.
20810         * gensupport.h: Include read-md.h.
20811         (md_rtx_info): New structure.
20812         (read_md_rtx): Use it.  Return a bool success value.
20813         * gensupport.c (read_md_rtx): Likewise.
20814         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20815         (main): Update after interface changes.
20816         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20817         (main): Update after interface changes.
20818         * genattrtab.c (insn_code_number): Delete.
20819         (optimize_attrs): Add a max_insn_code parameter and use it instead
20820         of insn_code_number.
20821         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20822         Use *_at rather than *_with_line functions.
20823         (gen_insn): Likewise.
20824         (gen_delay): Likewise.
20825         (gen_insn_reserv): Likewise.
20826         (gen_bypass): Take an md_rtx_info rather than an rtx.
20827         (main): Update after interface changes.  Use a local max_insn_code
20828         variable instead of insn_code_number.
20829         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20830         an rtx.  Use fatal_at rather than fatal.
20831         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20832         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20833         (gen_absence_set, gen_final_absence_set, gen_automaton)
20834         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20835         (main): Update after interface changes.
20836         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20837         and code number.
20838         (main): Update after interface changes.
20839         * genconditions.c (main): Use new read_md_rtx interface.
20840         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20841         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20842         (main): Update after interface changes.
20843         * genemit.c (insn_code_number, insn_index_number): Delete.
20844         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20845         Use fatal_at rather than fatal.
20846         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
20847         rather than fatal.
20848         (gen_split): Likewise.
20849         (main): Update after interface changes.
20850         * genextract.c (line_no): Delete.
20851         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20852         Update call to walk_rtx.
20853         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
20854         rather than message_with_line.
20855         (walk_rtx): Add an md_rtx_info argument.  Update call to
20856         VEC_safe_set_locstr.
20857         (main): Update after interface changes.
20858         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20859         and lineno.  Use error_at rather than separate message_with_line
20860         calls and have_error assignments.
20861         (main): Update after interface changes.
20862         * genmddump.c (main): Use new read_md_rtx interface.
20863         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20864         (main): Update after interface changes.
20865         * genoutput.c (next_code_number): Delete.
20866         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20867         (gen_peephole, gen_expand, gen_split): Likewise.
20868         (note_constraint): Likewise.  Use *_at rather than *_with_line
20869         functions.
20870         (main): Update after interface changes.
20871         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20872         rtx and lineno.
20873         (main): Update after interface changes.
20874         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20875         than an rtx and lineno.
20876         (process_define_constraint): Likewise.
20877         (process_define_register_constraint): Likewise.
20878         (main): Update after interface changes.
20879         * genrecog.c (next_insn_code, pattern_lineno): Delete.
20880         (validate_pattern): Replace top-level rtx with an md_rtx_info.
20881         Use *_at rather than *_with_line functions.
20882         (match_pattern_2): Likewise.
20883         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20884         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20885         Use *_at rather than *_with_line functions.
20886         * gentarget-def.c (add_insn): New function.
20887         (main): Use it.  Use new read_md_rtx interface.
20888
20889 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20890
20891         * gensupport.h (compute_test_codes): Take a file_location rather
20892         than a line number.
20893         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
20894         rather than *_with_line functions.
20895         (process_define_predicate): Update call to compute_test_codes.
20896         * genpreds.c (validate_exp): Take a file_location rather than a
20897         line number.  Use *_at functions rather than *_with_line functions.
20898         (process_define_predicate): Update call to validate_exp.
20899         (constraint_data): Replace lineno field with a file_location.
20900         (add_constraint): Take a file_location rather than a line number.
20901         Use *_at functions rather than *_with_line functions.  Fix error
20902         message for address constraints.  Update after changes to
20903         validate_exp, constraint_data and compute_test_codes.
20904         (process_define_constraint): Update accordingly.
20905         (process_define_register_constraint): Likewise.
20906
20907 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20908
20909         * genoutput.c (data): Use a file_location to record the source
20910         position.
20911         (nothing): Delete.
20912         (idata, idata_end): Remove initialization.
20913         (constraint_data): Replace lineno with a file_location.
20914         (output_insn_data): Update after changes to data.
20915         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20916         (scan_operands): Likewise, using *_at rather than *_with_line
20917         functions.
20918         (process_template): Likewise.
20919         (validate_insn_alternatives): Likewise.
20920         (validate_insn_operands): Likewise.
20921         (validate_optab_operands): Likewise.
20922         (init_insn_for_nothing): Initialize idata and idata_end.
20923         (note_constraint): Update after changes to constraint_data,
20924         using at rather than with_line functions.
20925         (mdep_constraint_len): Take a file_location rather than a
20926         line number.  Use at rather than with_line functions.
20927
20928 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20929
20930         * read-md.h (fatal_at): Declare.
20931         * read-md.c (fatal_at): New function.
20932         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20933         to record the source position.
20934         (check_attr_test): Take a file_location instead of a line number.
20935         Use fatal_at instead of fatal.
20936         (check_attr_value): Update after above changes, using "at"
20937         rather than "with_line" reporting functions.
20938         (convert_set_attr_alternative): Likewise.
20939         (gen_attr): Likewise.
20940         (check_defs): Likewise.  Don't assign to read_md_filename.
20941         (gen_insn): Update initialization after above changes.
20942         (gen_delay): Likewise.
20943         (write_insn_cases): Print the filename for a define_peephole.
20944         (gen_insn_reserv): Take a line number as argument and update
20945         the call to check_attr_test.
20946         (main): Pass a line number to gen_insn_reserv.
20947
20948 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20949
20950         * read-md.h (file_location): New structure.
20951         (directive_handler_t): Take a file_location rather than a line number.
20952         (message_at, error_at): Declare.
20953         (read_skip_construct): Delete.
20954         * read-md.c (message_with_line_1): Replace with...
20955         (message_at_1): ...this new function.
20956         (message_at, error_at): New functions.
20957         (message_with_line, error_with_line): Update to use message_at_1.
20958         (handle_enum): Take a file_location rather than a line number
20959         and use error_at for error reporting.
20960         (handle_include): Likewise.
20961         (read_skip_construct): Likewise.  Make static.
20962         (handle_file): Update after above changes.  Pass a file_location
20963         rather than a line number to handle_directive.
20964         * gensupport.c (queue_elem): Replace separate filename and lineno
20965         with a file_location.
20966         (queue_pattern): Replace filename and lineno arguments with a
20967         file_location.  Update after change to queue_elem.
20968         (process_define_predicate): Replace lineno argument with a
20969         file_location and use error_at for error reporting.  Update
20970         after above changes.
20971         (process_rtx): Likewise.
20972         (subst_pattern_match): Likewise.
20973         (get_alternatives_number): Likewise.
20974         (alter_predicate_for_insn): Likewise.
20975         (rtx_handle_directive): Likewise.
20976         (is_predicable): Update after above changes, using error_at rather
20977         than error_with_line.
20978         (has_subst_attribute): Likewise.
20979         (identify_predicable_attribute): Likewise.
20980         (alter_attrs_for_subst_insn): Likewise.
20981         (process_one_cond_exec): Likewise.
20982         (process_substs_on_one_elem): Likewise.
20983         (process_define_subst): Likewise.
20984         (check_define_attr_duplicates): Likewise.
20985         (read_md_rtx): Update after change to queue_elem.
20986
20987 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20988
20989         * genoutput.c (next_index_number): Delete.
20990         (data): Remove index_number.
20991         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20992         (main): Remove manipulation of next_index_number.
20993
20994 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20995
20996         * genattrtab.c (check_attr_value): Remove handling of null attrs.
20997         (make_canonical): Likewise.
20998
20999 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
21000
21001         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21002         instead of adjust_address_nv.
21003         (restore_stack_nonlocal): Likewise.
21004         (nonlocal_goto): Likewise.
21005
21006 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21007
21008         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21009         not have a corresponding loop header phi.
21010
21011 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21012
21013         * tree-parloops.c (create_loads_for_reductions): Handle case that
21014         reduction is unused.
21015
21016 2015-07-16  Richard Biener  <rguenther@suse.de>
21017
21018         PR tree-optimization/66894
21019         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21020         about deriving NE_EXPR from truncated values.
21021
21022 2015-07-16  Martin Liska  <mliska@suse.cz>
21023
21024         * alloc-pool.h
21025         (object_allocator): Add new class.
21026         (pool_allocator::initialize): Use the underlying class.
21027         (pool_allocator::allocate): Likewise.
21028         (pool_allocator::remove): Likewise.
21029         (operator new): A new generic allocator.
21030         * asan.c (struct asan_mem_ref): Remove unused members.
21031         (asan_mem_ref_new): Replace new operator with
21032         object_allocator::allocate.
21033         (free_mem_ref_resources): Change deallocation.
21034         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21035         with object_allocator.
21036         * config/sh/sh.c (add_constant): Replace new operator with
21037         object_allocator::allocate.
21038         (sh_reorg): Change call to a release method.
21039         * cselib.c (struct elt_list): Remove unused members.
21040         (new_elt_list): Replace new operator with
21041         object_allocator::allocate.
21042         (new_elt_loc_list): Likewise.
21043         (new_cselib_val): Likewise.
21044         (unchain_one_elt_list): Change delete operator with remove method.
21045         (unchain_one_elt_loc_list): Likewise.
21046         (unchain_one_value): Likewise.
21047         (cselib_finish): Release newly added static allocators.
21048         * cselib.h (struct cselib_val): Remove unused members.
21049         (struct elt_loc_list): Likewise.
21050         * df-problems.c (df_chain_alloc): Replace pool_allocator with
21051         object_allocator.
21052         * df-scan.c (struct df_scan_problem_data): Likewise.
21053         (df_scan_alloc): Likewise.
21054         * df.h (struct dataflow): Likewise.
21055         * dse.c (struct read_info_type): Likewise.
21056         (struct insn_info_type): Likewise.
21057         (struct dse_bb_info_type): Likewise.
21058         (struct group_info): Likewise.
21059         (struct deferred_change): Likewise.
21060         (get_group_info): Likewise.
21061         (delete_dead_store_insn): Likewise.
21062         (free_read_records): Likewise.
21063         (replace_read): Likewise.
21064         (check_mem_read_rtx): Likewise.
21065         (scan_insn): Likewise.
21066         (dse_step1): Likewise.
21067         (dse_step7): Likewise.
21068         * et-forest.c (struct et_occ): Remove unused members.
21069         (et_new_occ): Use allocate instead of new operator.
21070         (et_new_tree): Likewise.
21071         (et_free_tree): Call release method explicitly.
21072         (et_free_tree_force): Likewise.
21073         (et_free_pools): Likewise.
21074         (et_split): Use remove instead of delete operator.
21075         * et-forest.h (struct et_node): Remove unused members.
21076         * ipa-cp.c: Change pool_allocator to object_allocator.
21077         * ipa-inline-analysis.c: Likewise.
21078         * ipa-profile.c: Likewise.
21079         * ipa-prop.c: Likewise.
21080         * ipa-prop.h: Likewise.
21081         * ira-build.c (initiate_cost_vectors): Cast return value.
21082         (ira_allocate_cost_vector): Likewise.
21083         * ira-color.c (struct update_cost_record): Remove unused members.
21084         * lra-int.h (struct lra_live_range): Likewise.
21085         (struct lra_copy): Likewise.
21086         (struct lra_insn_reg): Likewise.
21087         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21088         * lra.c (new_insn_reg): Replace new operator with allocate method.
21089         (free_insn_regs): Same for operator delete.
21090         (finish_insn_regs): Release new static allocator.
21091         (finish_insn_recog_data): Likewise.
21092         (lra_free_copies): Replace delete operator with remove method.
21093         (lra_create_copy): Replace operator new with allocate method.
21094         (invalidate_insn_data_regno_info): Same for remove method.
21095         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21096         (free_debug_insn_changes): Replace delete operator with remove method.
21097         (replace_oldest_value_reg): Replace operator new with allocate method.
21098         (pass_cprop_hardreg::execute): Release new static variable.
21099         * sched-deps.c (sched_deps_init): Change pool_allocator to
21100         object_allocator.
21101         * sel-sched-ir.c: Likewise.
21102         * sel-sched-ir.h: Likewise.
21103         * stmt.c (expand_case): Likewise.
21104         (expand_sjlj_dispatch_table): Likewise.
21105         * tree-sra.c (struct access): Remove unused members.
21106         (struct assign_link): Likewise.
21107         (sra_deinitialize): Release newly added static pools.
21108         (create_access_1):Replace operator new with allocate method.
21109         (build_accesses_from_assign): Likewise.
21110         (create_artificial_child_access): Likewise.
21111         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21112         pool_allocator to object_allocator.
21113         * tree-ssa-pre.c: Likewise.
21114         * tree-ssa-reassoc.c: Likewise.
21115         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21116         * tree-ssa-strlen.c: Likewise.
21117         * tree-ssa-structalias.c: Likewise.
21118         * var-tracking.c (onepart_pool_allocate): New function.
21119         (unshare_variable): Use the newly added function.
21120         (variable_merge_over_cur): Likewise.
21121         (variable_from_dropped): Likewise.
21122         (variable_was_changed): Likewise.
21123         (set_slot_part): Likewise.
21124         (emit_notes_for_differences_1): Likewise.
21125         (vt_finalize): Release newly added static pools.
21126
21127 2015-07-16  Martin Jambor  <mjambor@suse.cz>
21128
21129         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
21130         all uses.  Fix two typos in its general comment.
21131         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
21132
21133 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
21134
21135         * config/i386/linux-common.h (LINK_MPX): New.
21136         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21137         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21138         indicating '-z bndplt' support by linker.
21139         * configure: Regenerate.
21140         * config.in: Regenerate.
21141
21142 2015-07-16  Richard Biener  <rguenther@suse.de>
21143
21144         * fold-const.c (fold_widened_comparison): Remove.
21145         (fold_sign_changed_comparison): Likewise.
21146         (fold_comparison): Move widened and sign-changed comparison
21147         simplification ...
21148         * match.pd: ... to patterns here.
21149         * generic-match-head.c: Include target.h.
21150         * gimple-match-head.c: Likewise.
21151
21152 2015-07-16  Richard Biener  <rguenther@suse.de>
21153
21154         * tree-ssa-dom.c (dom_valueize): New function.
21155         (record_temporary_equivalences): Also record equivalences
21156         for dominating stmts that have uses of equivalences we are
21157         about to record.
21158
21159 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
21160
21161         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21162         add_autoinc_candidates.
21163         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21164         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21165         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21166         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21167         Call new function.
21168         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21169         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21170         Remove parameter struct iv*.  Call add_autoinc_candidates here.
21171         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21172         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21173         Call new function.
21174         (find_iv_candidates): Call new functions.
21175
21176 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
21177
21178         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21179         uninitialized-variable warning.
21180
21181 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21182
21183         PR target/65249
21184         * config/sh/sh.md (movdi): Split simple reg move to two movsi
21185         when the destination is R0.
21186
21187 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
21188
21189         PR target/66866
21190         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21191         * config/i386/i386.c (ix86_expand_pextr): New function.
21192         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
21193         for non-lowpart subregs.
21194         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21195         (insv<mode>): Use SWI248 mode iterator.
21196         (insv<mode>_1): Ditto.
21197
21198 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21199             Sebastian Pop  <s.pop@samsung.com>
21200
21201         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21202         iterator to use_stmt.
21203
21204 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21205             Sebastian Pop <s.pop@samsung.com>
21206
21207         * graphite-scop-detection.c (build_scops_1): Discard scops for
21208         which entry==exit.
21209
21210 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21211             Sebastian Pop <s.pop@samsung.com>
21212
21213         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21214         case of a return statement in scop.
21215
21216 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21217             Sebastian Pop <s.pop@samsung.com>
21218
21219         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21220         INTEGER_TYPE parameters.
21221         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21222         VECTOR_CST in scan_tree_for_params.
21223         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21224
21225 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21226
21227         * gimple-pretty-print.h: Don't include pretty-print.h.
21228         * tree-streamer.h: Don't include lto-streamer.h.
21229         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21230         * gimple-streamer-in.c: Remove redundant includes.
21231         * gimple-streamer-out.c: Likewise.
21232         * ipa-devirt.c: Likewise.
21233         * ipa-icf.c: Likewise.
21234         * ipa-inline-analysis.c: Likewise.
21235         * ipa-polymorphic-call.c: Likewise.
21236         * ipa-profile.c: Likewise.
21237         * ipa-prop.c: Likewise.
21238         * ipa-pure-const.c: Likewise.
21239         * lto-cgraph.c: Likewise.
21240         * lto-streamer-in.c: Likewise.
21241         * lto-streamer-out.c: Likewise.
21242         * lto-streamer.c: Likewise.
21243         * tree-streamer-in.c: Likewise.
21244         * tree-streamer-out.c: Likewise.
21245         * tree-streamer.c: Likewise.
21246
21247 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21248
21249         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21250         include input.h.
21251         * opts.c: Remove multiline #include comment.
21252
21253 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21254
21255         * config/nvptx/mkoffload.c (process): Add C++ protection to
21256         emitted code.
21257
21258 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21259
21260         PR target/66854
21261         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21262         null before IEEE 128-bit floating point support patch.
21263
21264 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21265
21266         * simplify-rtx.c (simplify_ternary_operation): Add simplification
21267         for (!c) != {0,...,0} ? a : b for vector modes.
21268
21269 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
21270             Martin Jambor  <mjambor@suse.cz>
21271
21272         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21273         struct func_body_info* instead of struct ipa_node_params*, expecting
21274         fbi->info to be filled in.  Replace throughout.  Adjust call to
21275         ipa_load_from_parm_agg.
21276         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21277         instead of struct ipa_node_params*.  Adjust calls to other functions
21278         so that they pass either fbi or fbi->info.
21279         (set_switch_stmt_execution_predicate): Likewise.
21280         (will_be_nonconstant_predicate): Likewise.
21281         (compute_bb_predicates): Likewise.
21282         (estimate_function_body_sizes): Move asserts earlier.  Fill in
21283         struct func_body_info, replace parms_info with fbi.info.  Adjust
21284         calls to functions that now accept struct func_body_info.
21285         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21286         (struct func_body_info): Likewise.
21287         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21288         remove static.  Adjust callers.
21289         (ipa_load_from_parm_agg): Remove.
21290         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21291         (func_body_info): Likewise.
21292         (ipa_load_from_parm_agg): Adjust prototype.
21293
21294 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21295
21296         * gensupport.c (rtx_handle_directive): Adjust.
21297         * read-rtl.c (apply_iterators): Take vector to add rtxs to
21298         instead of expr list rtx.
21299         (add_define_attr_for_define_subst): Likewise.
21300         (add_define_subst_attr): Likewise.
21301         (read_subst_mapping): Likewise.
21302         (read_rtx): Likewise.
21303         * rtl.h (read_rtx): Adjust.
21304
21305 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21306
21307         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21308
21309 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21310
21311         PR target/58066
21312         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21313         (*tls_local_dynamic_base_64_<mode>): Ditto.
21314         (*tls_local_dynamic_base_64_largepic): Ditto.
21315         (tls_global_dynamic_64_<mode>): Update expander pattern.
21316         (tls_local_dynamic_base_64_<mode>): Ditto.
21317
21318 2015-07-15  Richard Biener  <rguenther@suse.de>
21319
21320         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21321         and bool_var == 1 -> bool_var simplifications ...
21322         * match.pd: ... to patterns here.  Factor out negate_expr_p
21323         cases from the A - B -> A + (-B) patterns as negate_expr_p
21324         predicate and add a -(A + B) -> (-B) - A pattern.
21325
21326 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21327
21328         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21329
21330 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21331             Robert Suchanek  <robert.suchanek@imgtec.com>
21332
21333         * config/mips/mips.c (mips_int_mask): New enum.
21334         (mips_shadow_set): Likewise.
21335         (int_mask): New variable.
21336         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21337         (machine_function): Add int_mask and use_shadow_register_set.
21338         (mips_attribute_table): Add attribute handlers for interrupt and
21339         use_shadow_register_set.
21340         (mips_interrupt_mask): New static function.
21341         (mips_handle_interrupt_attr): Likewise.
21342         (mips_handle_use_shadow_register_set_attr): Likewise.
21343         (mips_use_shadow_register_set): Change return type to enum
21344         mips_shadow_set.  Add argument handling for use_shadow_register_set
21345         attribute.
21346         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21347         compare with mips_shadow_set enum.
21348         (mips_compute_frame_info): Add interrupt mask and
21349         use_shadow_register_set to per-function information structure.
21350         Add a stack slot for EPC unconditionally.
21351         (mips_expand_prologue): Compare use_shadow_register_set value
21352         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
21353         masked interrupt register but in EIC mode use K0 and save Cause in K0.
21354         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
21355         copying the stack pointer from the shadow register set.
21356         * config/mips/mips.h (SR_IM0): New define.
21357         * config/mips/mips.md (mips_rdpgpr): Rename to...
21358         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
21359         * doc/extend.texi (Declaring Attributes of Functions): Document
21360         optional arguments for interrupt and use_shadow_register_set
21361         attributes.
21362
21363 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21364
21365         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21366         interrupt attribute.
21367         (mips_expand_prologue): Disable the floating point unit in an ISR.
21368         * config/mips/mips.h (SR_COP1): New define.
21369
21370 2015-07-15  Richard Biener  <rguenther@suse.de>
21371
21372         * genmatch.c (parser::peek, parser::peek_ident): Add argument
21373         to tell how many tokens to peek ahead (default 1).
21374         (parser::eat_token, parser::eat_ident): Return token consumed.
21375         (parser::parse_result): Parse new switch statement.
21376         * match.pd: Use case statements where appropriate.
21377
21378 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21379
21380         PR rtl-optimization/58066
21381         * calls.c (expand_call): Precompute register parameters before stack
21382         alignment is performed.
21383
21384 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21385
21386         PR rtl-optimization/66838
21387         * postreload.c (reload_cse_move2add): Also process
21388         CALL_INSN_FUNCTION_USAGE when resetting information of
21389         call-clobbered registers.
21390
21391 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21392             Cesar Philippidis  <cesar@codesourcery.com>
21393             Chung-Lin Tang  <cltang@codesourcery.com>
21394
21395         * config/nios2/constraints.md (U, v): New constraints.
21396         * config/nios2/predicates.md (rdprs_dcache_operand): New.
21397         (ldstex_memory_operand): New.
21398         * config/nios2/sync.md: New file.
21399         * config/nios2/nios2.md (unspecv): Add new builtin function
21400         UNSPECV codes.
21401         (rdprs, flushd, flushda, wrpie, eni): New patterns.
21402         (top-level): Include sync.md.
21403         * config/nios2/nios2.c (N2_FTYPES): Add function types for
21404         new builtins.
21405         (N2_BUILTINS): Add arch field setting, add new builtins.
21406         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21407         for arch field.
21408         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21409         Also handle ldex/stex/ldsex/stsex builtins.
21410         (nios2_expand_rdprs_builtin): New function.
21411         (nios2_expand_cache_builtin): New function.
21412         (nios2_expand_wrpie_builtin): New function.
21413         (nios2_expand_eni_builtin): New function.
21414         (nios2_expand_builtin): Add arch field handling and new builtin
21415         cases.
21416         * doc/extend.texi (Altera Nios II Built-in Functions): Document
21417         new builtins.
21418         * doc/md.texi (Machine Constraints): Document U and v constraints.
21419
21420 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21421             Cesar Philippidis  <cesar@codesourcery.com>
21422             Chung-Lin Tang  <cltang@codesourcery.com>
21423
21424         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21425         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21426         callee_save_reg_size and uses_anonymous_args fields.
21427         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21428         (nios2_create_cfa_notes): New function.
21429         (nios2_adjust_stack): New function for adjusting stack.
21430         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21431         Use nios2_adjust_stack.
21432         (nios2_expand_epilogue): Likewise.
21433         (nios2_expand_return): New function.
21434         (nios2_can_use_return_insn): Update for CDX pop.n usage.
21435         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21436         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21437         * config/nios2/nios2.md (return): Use nios2_expand_return.
21438
21439 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21440             Cesar Philippidis  <cesar@codesourcery.com>
21441             Chung-Lin Tang  <cltang@codesourcery.com>
21442
21443         * config/nios2/predicates.md (pop_operation): New.
21444         (ldwm_operation, stwm_operation): New.
21445         (nios2_hard_register_operand): New.
21446         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21447         (ldstwm_operation_p): Declare.
21448         (gen_ldstwm_peep): Declare.
21449         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21450         (base_reg_adjustment_p): New.
21451         (pop_operation_p): New.
21452         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21453         (nios2_ldstwm_regset_p): New.
21454         (ldstwm_operation_p): New.
21455         (gen_ldst): New.
21456         (nios2_ldst_parallel): New.
21457         (struct ldswm_operand): Declare.
21458         (compare_ldstwm_operands): New.
21459         (can_use_cdx_ldstw): New.
21460         (gen_ldstwm_peep): New.
21461         * config/nios2/nios2-ldstwm.sml: New.
21462         * config/nios2/nios2.md: Include ldstwm.md.
21463         * config/nios2/ldstwm.md: Generated.
21464
21465 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21466             Cesar Philippidis  <cesar@codesourcery.com>
21467             Chung-Lin Tang  <cltang@codesourcery.com>
21468
21469         * config/nios2/nios2.h (LABEL_ALIGN): Define.
21470         (REG_ALLOC_ORDER): Define.
21471         (ADJUST_REG_ALLOC_ORDER): Define.
21472         (HONOR_REG_ALLOC_ORDER): Define.
21473         (CDX_REG_P): Define.
21474         (ANDCLEAR_INT): Define.
21475         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21476         (nios2_label_align): Declare.
21477         (nios2_cdx_narrow_form_p): Declare.
21478         (nios2_adjust_reg_alloc_order): Declare.
21479         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21480         operation.
21481         (nios2_large_unspec_reloc_p): New function, split from...
21482         (nios2_legitimate_pic_operand_p): ...here.
21483         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21484         (nios2_print_operand_punct_valid_p): New.
21485         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
21486         (split_mem_address): New.
21487         (split_alu_insn): New.
21488         (cdxreg): New.
21489         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21490         (enum nios2_add_insn_kind): New.
21491         (nios2_add_insn_names, nios2_add_insn_narrow): New.
21492         (nios2_add_insn_classify): New.
21493         (nios2_add_insn_asm): New.
21494         (nios2_cdx_narrow_form_p): New.
21495         (label_align, min_labelno, max_labelno): New.
21496         (nios2_reorg): New.
21497         (nios2_label_align): New.
21498         (nios2_adjust_reg_alloc_order): New.
21499         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21500         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21501         * config/nios2/constraints.md (P): New constraint.
21502         * config/nios2/predicates.md (const_and_operand): New.
21503         (and_operand): New.
21504         (stack_memory_operand): New.
21505         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21506         (length): Update to use nios2_cdx_narrow_form_p().
21507         (type): Add new insn type values.
21508         (control, alu, st, ld, shift): Update insn reservations with
21509         new insn type values.
21510         (*high, *lo_sum): Define new insn patterns for constant generation.
21511         (movqi_internal, movhi_internal, movsi_internal): Reduce
21512         alternatives, update asm template to handle CDX variants, update
21513         type attributes.
21514         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21515         template, update type attributes.
21516         (extendhisi2, extendqi<mode>2): Likewise.
21517         (addsi3): Change to use function for asm string.
21518         (subsi3): Add CDX notation to asm template, update type attributes.
21519         (negsi3, one_cmplsi3): Likewise.
21520         (andsi3): New pattern, specialized from logical patterns.
21521         (<code>si3): Remove and case, combine alternatives, update asm
21522         template.
21523         (<shift_op>si3): Add CDX notation, update type attributes.
21524         (rotrsi3): Update type attribute.
21525         (*merge, extzv, insv): New insn patterns.
21526         (return): Change to define_expand.
21527         (simple_return): Add CDX notation, update type attributes.
21528         (indirect_jump): Add CDX notation.
21529         (jump): Update asm cases, update length attribute expression.
21530         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21531         (nios2_cbranch): Update asm cases and length attribute expression
21532         to handle CDX variants.
21533         (nios2_cmp<code>): Update asm template.
21534         (nop): Add CDX notation, update type attributes.
21535         (trap): Add CDX notation.
21536         (ctrapsi4): Update asm cases and length attribute expression to
21537         handle CDX variant.
21538         * doc/md.texi (Machine Constraints): Document P constraint.
21539
21540 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21541             Cesar Philippidis  <cesar@codesourcery.com>
21542             Chung-Lin Tang  <cltang@codesourcery.com>
21543
21544         * config/nios2/nios2.h (SMALL_INT12): New macro.
21545         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21546         (nios2_valid_addr_expr_p): Use it.
21547         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21548         with implicit "io" instructions on R2.
21549         * config/nios2/constraints.md (w): New constraint.
21550         * config/nios2/predicates.md (ldstio_memory_operand): New.
21551         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21552         operand predicate and constraint.
21553         (ld<bh>io_signed, st<bhw>io>): Likewise.
21554         * doc/md.texi (Machine Constraints): Document w constraint.
21555
21556 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21557             Cesar Philippidis  <cesar@codesourcery.com>
21558             Chung-Lin Tang  <cltang@codesourcery.com>
21559
21560         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21561         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21562         Nios II architecture level.
21563         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21564         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21565         (OPTION_DEFAULT_SPECS): Define.
21566         (ASM_SPEC): Add -march= spec strings.
21567         * config/nios2/nios2.c (nios2_option_override): Check for
21568         conflicts involving new options.
21569         * config.gcc (nios2*-*-*): Support --with-arch=.
21570         * doc/invoke.texi (Option Summary, Nios II Options): Document
21571         -march=, -mbmx, and -mcdx.
21572
21573 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
21574
21575         PR rtl-optimization/66626
21576         * lra-constraints.c (lra_constraints): Prevent equivalence
21577         substitution for static chain pseudo in functions with nonlocal
21578         goto.
21579
21580 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21581
21582         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21583         (nios2_emit_stack_limit_check): Add size parameter.  Handle
21584         -fstack-limit-symbol as well as -fstack-limit-register.
21585         (nios2_expand_prologue): Emit only a single stack limit check,
21586         even if multiple stack adjustments are required.
21587         (nios2_option_override): Diagnose unsupported combination of -fpic
21588         and -stack-limit-symbol.
21589
21590 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
21591
21592         * Makefile.in (top_srcdir): New.
21593         * configure.ac: Use AM_ZLIB.
21594         * configure: Regeneated.
21595
21596 2015-07-14  Matthias Klose  <doko@ubuntu.com>
21597
21598         PR target/66840
21599         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21600
21601 2015-07-14  Richard Biener  <rguenther@suse.de>
21602
21603         PR tree-optimization/66863
21604         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21605         what we record for conversion use stmt lhs inequalities.
21606
21607 2015-07-14  Richard Biener  <rguenther@suse.de>
21608
21609         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21610         (decision_tree::gen_gimple): Likewise.
21611
21612 2015-07-14  Tom de Vries  <tom@codesourcery.com>
21613
21614         * gcc.c (greater_than_spec_func): Declare forward.
21615         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21616         -ftree-parallelize-loops={0,1}.
21617         (static_spec_functions): Add greater_than_spec_func function with name
21618         "gt".
21619         (greater_than_spec_func): New function.
21620
21621 2015-07-14  Richard Biener  <rguenther@suse.de>
21622
21623         * tree-ssa-dom.c (record_temporary_equivalences): Merge
21624         wideing type conversion case from record_equivalences_from_incoming_edge
21625         and use record_equality to record equivalences.
21626         (record_equivalences_from_incoming_edge): Call
21627         record_temporary_equivalences.
21628
21629 2015-07-14  Richard Biener  <rguenther@suse.de>
21630
21631         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21632         (struct if_expr): New.
21633         (struct with_expr): Likewise.
21634         (is_a_helper): Add helpers for if_expr and with_expr.
21635         (struct simplify): Add simplify_kind enum and member.  Remove
21636         ifexpr_vec member.
21637         (simplify::simplify): Adjust.
21638         (lower_commutative): Adjust.
21639         (lower_opt_convert): Likewise.
21640         (lower_cond): Likewise.
21641         (replace_id): Handle with_expr and if_expr.
21642         (lower_for): Adjust.
21643         (dt_simplify::gen_1): New recursive worker, split out from ...
21644         (dt_simplify::gen): ... here.  Deal with if and with expansion
21645         recursively.
21646         (capture_info::capture_info): Take context argument
21647         (capture_info::walk_result): Only analyze specific result.
21648         (parser::parse_result): New function.
21649         (parser::parse_simplify): Adjust to parse ifs with then end
21650         else case.
21651         (parser::parse_if): Simplify.
21652         (parser::parse_pattern): Pass down simplify kind.
21653         * match.pd: Convert if structure to new syntax.
21654
21655 2015-07-13  Marek Polacek  <polacek@redhat.com>
21656
21657         * rtl.c (rtx_equal_p_cb): Fix typo.
21658
21659 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
21660
21661         * omega.h: Don't include config.h, don't include params.h again if
21662         omega.h has already been included.
21663         * graphite-poly.h: Include sese.h.
21664         * graphite.c: Don't include sese.h, remove needless includes and
21665         minimize includes outside #ifdef HAVE_isl block.
21666         * graphite-blocking.c: Don't include sese.h, remove needless includes,
21667         and wrap entire file in #ifdef HAVE_isl
21668         * graphite-dependences.c: Likewise.
21669         * graphite-interchange.c: Likewise.
21670         * graphite-isl-ast-to-gimple.c: Likewise.
21671         * graphite-optimize-isl.c: Likewise.
21672         * graphite-poly.c: Likewise.
21673         * graphite-scop-detection.c: Likewise.
21674         * graphite-sese-to-poly.c: Likewise.
21675
21676 2015-07-13  Tom de Vries  <tom@codesourcery.com>
21677
21678         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21679
21680 2015-07-13  Renlin Li  <renlin.li@arm.com>
21681
21682         PR rtl/66556
21683         * simplify-rtx.c (simplify_const_relational_operation): Add
21684         side_effects_p checks.
21685
21686 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
21687
21688         * bitmap.h: Fix double word typos.
21689         * builtins.c: Same.
21690         * calls.c: Same.
21691         * cfgloopmanip.c: Same.
21692         * cgraph.c: Same.
21693         * cgraph.h: Same.
21694         * cgraphclones.c: Same.
21695         * combine.c: Same.
21696         * config/aarch64/aarch64-protos.h: Same.
21697         * config/aarch64/aarch64.c: Same.
21698         * config/aarch64/aarch64.md: Same.
21699         * config/arm/arm.md: Same.
21700         * config/arm/arm1020e.md: Same.
21701         * config/arm/arm1026ejs.md: Same.
21702         * config/arm/arm926ejs.md: Same.
21703         * config/arm/fa526.md: Same.
21704         * config/arm/fa606te.md: Same.
21705         * config/arm/fa626te.md: Same.
21706         * config/arm/fa726te.md: Same.
21707         * config/arm/fmp626.md: Same.
21708         * config/darwin.c: Same.
21709         * config/epiphany/epiphany.c: Same.
21710         * config/frv/frv.c: Same.
21711         * config/ft32/ft32.c: Same.
21712         * config/gnu-user.h: Same.
21713         * config/h8300/constraints.md: Same.
21714         * config/i386/i386.c: Same.
21715         * config/i386/i386.md: Same.
21716         * config/iq2000/iq2000.md: Same.
21717         * config/mips/mips.c: Same.
21718         * config/mmix/mmix.md: Same.
21719         * config/moxie/moxie.c: Same.
21720         * config/nds32/nds32.md: Same.
21721         * config/pa/pa.h: Same.
21722         * config/rs6000/aix.h: Same.
21723         * config/rs6000/rs6000.h: Same.
21724         * config/sh/sh.c: Same.
21725         * config/tilegx/tilegx.md: Same.
21726         * config/tilepro/gen-mul-tables.cc: Same.
21727         * cse.c: Same.
21728         * dbxout.c: Same.
21729         * doc/invoke.texi: Same.
21730         * dse.c: Same.
21731         * dwarf2out.c: Same.
21732         * final.c: Same.
21733         * gcc.c: Same.
21734         * genmatch.c: Same.
21735         * gimplify.c: Same.
21736         * hash-table.h: Same.
21737         * internal-fn.c: Same.
21738         * ipa-cp.c: Same.
21739         * ipa-devirt.c: Same.
21740         * ipa-icf.c: Same.
21741         * ipa-icf.h: Same.
21742         * ipa-profile.c: Same.
21743         * ipa-prop.c: Same.
21744         * ipa-prop.h: Same.
21745         * ira.c: Same.
21746         * omp-low.c: Same.
21747         * reg-stack.c: Same.
21748         * regcprop.c: Same.
21749         * reorg.c: Same.
21750         * rtl.h: Same.
21751         * sbitmap.h: Same.
21752         * tree-eh.c: Same.
21753         * tree-inline.c: Same.
21754         * tree-sra.c: Same.
21755         * tree-ssa-dom.c: Same.
21756         * tree-ssa-loop-ivopts.c: Same.
21757         * tree-ssa-structalias.c: Same.
21758         * tree-ssa-tail-merge.c: Same.
21759         * tree-ssa-ter.c: Same.
21760         * tree-ssa-threadupdate.c: Same.
21761         * tree-ssa-uninit.c: Same.
21762         * tree-ssanames.c: Same.
21763         * tree-vect-loop-manip.c: Same.
21764         * tree-vrp.c: Same.
21765         * tree.c: Same.
21766         * valtrack.c: Same.
21767         * vec.h: Same.
21768
21769 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21770
21771         PR middle-end/66726
21772         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21773         tree_ssa_phiopt_worker): Call it.
21774
21775 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21776
21777         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21778         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21779         REG_EQUAL note.
21780
21781 2015-07-11  Marek Polacek  <polacek@redhat.com>
21782
21783         PR middle-end/66353
21784         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21785         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21786         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21787         rather than bb_has_abnormal_call_pred.
21788         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21789         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21790         rather than bb_has_abnormal_call_pred.
21791
21792 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
21793
21794         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21795         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21796         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21797         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21798         v850_legitimate_address_p): New functions.
21799         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21800
21801 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
21802
21803         PR target/66819
21804         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21805         indirect sibcall with register arguments if register available
21806         for argument passing.
21807         (init_cumulative_args): Set cfun->machine->arg_reg_available
21808         to (cum->nregs > 0) or to true if function has a variable
21809         argument list.
21810         (function_arg_advance_32): Set cfun->machine->arg_reg_available
21811         to false if cum->nregs <= 0.
21812         * config/i386/i386.h (machine_function): Add arg_reg_available.
21813
21814 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21815
21816         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21817         and gen_higpart instead of gen_rtx_SUBREG.
21818         * config/i386/i386.md
21819         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21820         (read-modify peephole2): Use gen_lowpart instead of
21821         gen_rtx_SUBREG for operand 5.
21822
21823 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21824
21825         * config/tilepro/gen-mul-tables.cc (main): Change include list for
21826         generated files.
21827         * config/tilepro/mul-tables.c: Regenerate.
21828         * config/tilegx/mul-tables.c: Regenerate.
21829
21830 2015-07-10  Richard Biener  <rguenther@suse.de>
21831
21832         * fold-const.c (distribute_bit_expr): Remove.
21833         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21834         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21835         to A & (B | C) and simplifying A << C1 << C2 to ...
21836         * match.pd: ... patterns here.
21837
21838 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
21839
21840         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21841         Mark mem as READONLY and NOTRAP for PIC symbol.
21842
21843 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21844
21845         * gimple-predict.h: New file.
21846         (gimple_predict_predictor, gimple_predict_set_predictor,
21847         gimple_predict_outcome, gimple_predict_set_outcome,
21848         gimple_build_predict): Relocate here.
21849         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21850         gimple_predict_outcome, gimple_predict_set_outcome): Move to
21851         gimple-predict.h.
21852         * gimple.c (gimple_build_predict): Move to gimple-predict.h
21853         * basic-block.h: Don't include cfghooks.h.
21854         * backend.h: Don't include predict.h.
21855         * cfghooks.h: Include predict.h.
21856         * gimple-pretty-print.c: Include gimple-predict.h.
21857         * gimplify.c: Likwise.
21858         * predict.c: Adjust includes.
21859         * tree-inline.c: Likewise.
21860         * asan.c: Likewise.
21861         * auto-inc-dec.c: Likewise.
21862         * auto-profile.c: Likewise.
21863         * bb-reorder.c: Likewise.
21864         * builtins.c: Likewise.
21865         * caller-save.c: Likewise.
21866         * calls.c: Likewise.
21867         * cfganal.c: Likewise.
21868         * cfgbuild.c: Likewise.
21869         * cfg.c: Likewise.
21870         * cfgcleanup.c: Likewise.
21871         * cfgexpand.c: Likewise.
21872         * cfghooks.c: Likewise.
21873         * cfgloopanal.c: Likewise.
21874         * cfgloop.c: Likewise.
21875         * cfgloopmanip.c: Likewise.
21876         * cfgrtl.c: Likewise.
21877         * cgraph.c: Likewise.
21878         * cgraphunit.c: Likewise.
21879         * combine.c: Likewise.
21880         * cprop.c: Likewise.
21881         * cse.c: Likewise.
21882         * dce.c: Likewise.
21883         * dojump.c: Likewise.
21884         * dse.c: Likewise.
21885         * except.c: Likewise.
21886         * expmed.c: Likewise.
21887         * expr.c: Likewise.
21888         * final.c: Likewise.
21889         * fold-const.c: Likewise.
21890         * function.c: Likewise.
21891         * fwprop.c: Likewise.
21892         * gcc-plugin.h: Likewise.
21893         * gcse.c: Likewise.
21894         * genattrtab.c: Likewise.
21895         * genemit.c: Likewise.
21896         * gengtype.c: Likewise.
21897         * genopinit.c: Likewise.
21898         * genoutput.c: Likewise.
21899         * genpreds.c: Likewise.
21900         * genrecog.c: Likewise.
21901         * gimple-fold.c: Likewise.
21902         * gimple-iterator.c: Likewise.
21903         * gimple-ssa-isolate-paths.c: Likewise.
21904         * gimple-ssa-strength-reduction.c: Likewise.
21905         * graph.c: Likewise.
21906         * graphite-blocking.c: Likewise.
21907         * graphite.c: Likewise.
21908         * graphite-dependences.c: Likewise.
21909         * graphite-interchange.c: Likewise.
21910         * graphite-isl-ast-to-gimple.c: Likewise.
21911         * graphite-optimize-isl.c: Likewise.
21912         * graphite-poly.c: Likewise.
21913         * graphite-scop-detection.c: Likewise.
21914         * graphite-sese-to-poly.c: Likewise.
21915         * haifa-sched.c: Likewise.
21916         * ifcvt.c: Likewise.
21917         * internal-fn.c: Likewise.
21918         * ipa-cp.c: Likewise.
21919         * ipa-profile.c: Likewise.
21920         * ipa-split.c: Likewise.
21921         * ipa-utils.c: Likewise.
21922         * ira-build.c: Likewise.
21923         * ira-color.c: Likewise.
21924         * ira-conflicts.c: Likewise.
21925         * ira-costs.c: Likewise.
21926         * ira-emit.c: Likewise.
21927         * ira-lives.c: Likewise.
21928         * jump.c: Likewise.
21929         * loop-doloop.c: Likewise.
21930         * loop-init.c: Likewise.
21931         * loop-invariant.c: Likewise.
21932         * loop-unroll.c: Likewise.
21933         * lower-subreg.c: Likewise.
21934         * lra-assigns.c: Likewise.
21935         * lra.c: Likewise.
21936         * lra-coalesce.c: Likewise.
21937         * lra-constraints.c: Likewise.
21938         * lra-lives.c: Likewise.
21939         * lto-cgraph.c: Likewise.
21940         * lto-streamer-in.c: Likewise.
21941         * mode-switching.c: Likewise.
21942         * modulo-sched.c: Likewise.
21943         * omp-low.c: Likewise.
21944         * optabs.c: Likewise.
21945         * passes.c: Likewise.
21946         * postreload.c: Likewise.
21947         * postreload-gcse.c: Likewise.
21948         * profile.c: Likewise.
21949         * recog.c: Likewise.
21950         * regstat.c: Likewise.
21951         * reload1.c: Likewise.
21952         * reorg.c: Likewise.
21953         * rtlanal.c: Likewise.
21954         * sched-ebb.c: Likewise.
21955         * sel-sched-ir.c: Likewise.
21956         * sese.c: Likewise.
21957         * shrink-wrap.c: Likewise.
21958         * simplify-rtx.c: Likewise.
21959         * stmt.c: Likewise.
21960         * store-motion.c: Likewise.
21961         * tracer.c: Likewise.
21962         * trans-mem.c: Likewise.
21963         * tree-call-cdce.c: Likewise.
21964         * tree-cfg.c: Likewise.
21965         * tree-cfgcleanup.c: Likewise.
21966         * tree-chkp.c: Likewise.
21967         * tree-complex.c: Likewise.
21968         * tree-eh.c: Likewise.
21969         * tree-if-conv.c: Likewise.
21970         * tree-loop-distribution.c: Likewise.
21971         * tree-outof-ssa.c: Likewise.
21972         * tree-parloops.c: Likewise.
21973         * tree-predcom.c: Likewise.
21974         * tree-pretty-print.c: Likewise.
21975         * tree-profile.c: Likewise.
21976         * tree-sra.c: Likewise.
21977         * tree-ssa.c: Likewise.
21978         * tree-ssa-coalesce.c: Likewise.
21979         * tree-ssa-dce.c: Likewise.
21980         * tree-ssa-dom.c: Likewise.
21981         * tree-ssa-forwprop.c: Likewise.
21982         * tree-ssa-ifcombine.c: Likewise.
21983         * tree-ssa-loop-ch.c: Likewise.
21984         * tree-ssa-loop-im.c: Likewise.
21985         * tree-ssa-loop-ivcanon.c: Likewise.
21986         * tree-ssa-loop-ivopts.c: Likewise.
21987         * tree-ssa-loop-manip.c: Likewise.
21988         * tree-ssa-loop-prefetch.c: Likewise.
21989         * tree-ssa-loop-unswitch.c: Likewise.
21990         * tree-ssa-math-opts.c: Likewise.
21991         * tree-ssa-phiopt.c: Likewise.
21992         * tree-ssa-pre.c: Likewise.
21993         * tree-ssa-reassoc.c: Likewise.
21994         * tree-ssa-sink.c: Likewise.
21995         * tree-ssa-tail-merge.c: Likewise.
21996         * tree-ssa-threadedge.c: Likewise.
21997         * tree-ssa-threadupdate.c: Likewise.
21998         * tree-switch-conversion.c: Likewise.
21999         * tree-tailcall.c: Likewise.
22000         * tree-vect-data-refs.c: Likewise.
22001         * tree-vect-loop.c: Likewise.
22002         * tree-vect-loop-manip.c: Likewise.
22003         * tree-vectorizer.c: Likewise.
22004         * tree-vrp.c: Likewise.
22005         * ubsan.c: Likewise.
22006         * value-prof.c: Likewise.
22007         * varasm.c: Likewise.
22008         * var-tracking.c: Likewise.
22009         * config/aarch64/aarch64-builtins.c: Likewise.
22010         * config/aarch64/aarch64.c: Likewise.
22011         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22012         * config/alpha/alpha.c: Likewise.
22013         * config/arc/arc.c: Likewise.
22014         * config/arm/arm.c: Likewise.
22015         * config/avr/avr.c: Likewise.
22016         * config/bfin/bfin.c: Likewise.
22017         * config/c6x/c6x.c: Likewise.
22018         * config/cr16/cr16.c: Likewise.
22019         * config/cris/cris.c: Likewise.
22020         * config/darwin.c: Likewise.
22021         * config/darwin-c.c: Likewise.
22022         * config/epiphany/epiphany.c: Likewise.
22023         * config/epiphany/mode-switch-use.c: Likewise.
22024         * config/epiphany/resolve-sw-modes.c: Likewise.
22025         * config/fr30/fr30.c: Likewise.
22026         * config/frv/frv.c: Likewise.
22027         * config/ft32/ft32.c: Likewise.
22028         * config/h8300/h8300.c: Likewise.
22029         * config/i386/i386.c: Likewise.
22030         * config/i386/winnt.c: Likewise.
22031         * config/ia64/ia64.c: Likewise.
22032         * config/iq2000/iq2000.c: Likewise.
22033         * config/lm32/lm32.c: Likewise.
22034         * config/m32c/m32c.c: Likewise.
22035         * config/m32r/m32r.c: Likewise.
22036         * config/m68k/m68k.c: Likewise.
22037         * config/mcore/mcore.c: Likewise.
22038         * config/mep/mep.c: Likewise.
22039         * config/microblaze/microblaze.c: Likewise.
22040         * config/mips/mips.c: Likewise.
22041         * config/mmix/mmix.c: Likewise.
22042         * config/mn10300/mn10300.c: Likewise.
22043         * config/moxie/moxie.c: Likewise.
22044         * config/msp430/msp430.c: Likewise.
22045         * config/nds32/nds32.c: Likewise.
22046         * config/nds32/nds32-cost.c: Likewise.
22047         * config/nds32/nds32-fp-as-gp.c: Likewise.
22048         * config/nds32/nds32-intrinsic.c: Likewise.
22049         * config/nds32/nds32-isr.c: Likewise.
22050         * config/nds32/nds32-md-auxiliary.c: Likewise.
22051         * config/nds32/nds32-memory-manipulation.c: Likewise.
22052         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22053         * config/nds32/nds32-predicates.c: Likewise.
22054         * config/nios2/nios2.c: Likewise.
22055         * config/nvptx/nvptx.c: Likewise.
22056         * config/pa/pa.c: Likewise.
22057         * config/pdp11/pdp11.c: Likewise.
22058         * config/rl78/rl78.c: Likewise.
22059         * config/rs6000/rs6000.c: Likewise.
22060         * config/rx/rx.c: Likewise.
22061         * config/s390/s390.c: Likewise.
22062         * config/sh/sh.c: Likewise.
22063         * config/sh/sh-mem.cc: Likewise.
22064         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22065         * config/sh/sh_treg_combine.cc: Likewise.
22066         * config/sparc/sparc.c: Likewise.
22067         * config/spu/spu.c: Likewise.
22068         * config/stormy16/stormy16.c: Likewise.
22069         * config/tilegx/tilegx.c: Likewise.
22070         * config/tilepro/tilepro.c: Likewise.
22071         * config/v850/v850.c: Likewise.
22072         * config/vax/vax.c: Likewise.
22073         * config/visium/visium.c: Likewise.
22074         * config/xtensa/xtensa.c: Likewise.
22075
22076 2015-07-10  Richard Biener  <rguenther@suse.de>
22077
22078         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22079         (decision_tree::gen_gimple): Likewise.
22080         (decision_tree::gen_generic): Likewise.
22081
22082 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22083
22084         PR target/66813
22085         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22086         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22087
22088 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
22089
22090         PR middle-end/66820
22091         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22092         or ORT_TASK contexts.
22093         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22094         is non-zero.
22095
22096 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22097
22098         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22099         above function.
22100
22101 2015-07-10  Tom de Vries  <tom@codesourcery.com>
22102
22103         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22104         insert nit + 1 bound.
22105
22106 2015-07-10  Richard Biener  <rguenther@suse.de>
22107
22108         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22109         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22110         (if_convertible_loop_p_1): For this always compute bb predicates.
22111         (if_convertible_loop_p): And free them.
22112
22113 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22114
22115         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22116         in dump message.
22117
22118 2015-07-10  Richard Biener  <rguenther@suse.de>
22119
22120         PR tree-optimization/66823
22121         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22122         inverted predicate.
22123
22124 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
22125
22126         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22127         to handle mips[32|64]r3 and mips[32|64]r5.
22128
22129 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
22130
22131         PR middle-end/66633
22132         * tree-nested.c (get_static_chain): Or in a flag into
22133         info->static_chain_added.
22134         (get_frame_field, get_nonlocal_debug_decl): Likewise.
22135         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22136         2015-07-01 changes.
22137         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22138         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22139         add it to clauses.
22140
22141         PR tree-optimization/66718
22142         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22143         field.
22144         (vect_simd_lane_linear): New function.
22145         (vectorizable_simd_clone_call): Support using linear arguments for
22146         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22147
22148 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22149
22150         PR target/66821
22151         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22152
22153 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22154
22155         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22156         Use machine mode, not enum machine_mode in the prototype.
22157
22158         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22159         classify 128-bit floating point support.
22160         (FLOAT128_IBM_P): Likewise.
22161         (FLOAT128_VECTOR_P): Likewise.
22162         (FLOAT128_2REG_P): Likewise.
22163         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22164         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22165         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22166         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22167
22168         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22169         tests against TFmode/TDmode, since those modes do not use VSX
22170         addresses.
22171         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22172         support.
22173         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22174         tests against TFmode, etc.
22175         (invalid_e500_subreg): Add tests against IFmode/KFmode.
22176         (reg_offset_addressing_ok_p): Likewise.
22177         (rs6000_legitimate_offset_address_p): Likewise.
22178         (rs6000_legitimize_address): Likewise.
22179         (rs6000_legitimize_reload_address): Likewise.
22180         (rs6000_legitimate_address_p): Clean up tests against TFmode and
22181         TDmode to use the new helper macros, which will include IFmode and
22182         KFmode.
22183         (rs6000_emit_move): Likewise.
22184         (rs6000_darwin64_record_arg_recurse): Likewise.
22185         (print_operand): Likewise.
22186         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22187         that uses a single vector register as a vector and not as a
22188         floating point register in terms of the calling sequence.
22189         (rs6000_discover_homogeneous_aggregate): Likewise.
22190         (rs6000_return_in_memory): Likewise.
22191         (init_cumulative_args): Likewise.
22192         (rs6000_function_arg_boundary): Likewise.
22193         (rs6000_function_arg_advance_1): Likewise.
22194         (rs6000_function_arg): Likewise.
22195         (rs6000_pass_by_reference): Likewise.
22196         (rs6000_gimplify_va_arg): Likewise.
22197         (rs6000_secondary_reload_memory): Use machine_mode not enum
22198         machine mode.
22199         (rs6000_split_multireg_move): Use new helper macros.
22200         (spe_func_has_64bit_regs_p): Likewise.
22201         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22202         (output_toc): Use new helper macros.
22203         (rs6000_register_move_cost): Likewise.
22204         (rs6000_function_value): Add IEEE 128-bit floating point calling
22205         sequence support.
22206         (rs6000_libcall_value): Likewise.
22207         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22208         floating point support.
22209         (rs6000_vector_mode_supported_p): Likewise.
22210
22211 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
22212
22213         PR rtl-optimization/66782
22214         * lra-int.h (struct lra_insn_recog_data): Add comment about
22215         clobbered hard regs for arg_hard_regs.
22216         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22217         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22218         Add condition for processing used hard regs.
22219         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22220         Process clobbered hard regs.
22221
22222 2015-07-09  Michael Matz  <matz@suse.de>
22223
22224         * genmatch.c (fprintf_indent): New function.
22225         (operand::gen_transform): Add indent parameter.
22226         (expr::gen_transform, c_expr::gen_transform,
22227         capture::gen_transform): Ditto and use fprintf_indent.
22228         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22229         (dt_operand::gen, dt_operand::gen_predicate,
22230         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22231         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22232         (decision_tree::gen_gimple): Adjust calls and indent generated
22233         code.
22234         (decision_tree::gen_generic): Ditto.
22235         (write_predicate): Ditto.
22236
22237 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22238
22239         PR target/66814
22240         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22241         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22242         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22243         {GENERAL,SSE,MMX}_REG_P where appropriate.
22244
22245 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22246
22247         * lto-streamer.h: Don't include target.h and alloc-pool.h.
22248         * builtins.c: Adjust includes.
22249         * gimple.c: Likewise.
22250         * ipa-icf.c: Likewise.
22251         * lto-opts.c: Likewise.
22252         * ipa-reference.c: Likewise.
22253         * lto-section-out.c: Likewise.
22254         * lto-streamer-in.c: Likewise.
22255         * lto-streamer-out.c: Likewise.
22256         * opts-global.c: Likewise.
22257         * symtab.c: Likewise.
22258         * tree-chkp.c: Likewise.
22259         * tree-ssa-live.c: Likewise.
22260         * tree-streamer-in.c: Likewise.
22261         * tree-streamer-out.c: Likewise.
22262         * config/darwin.c: Likewise.
22263         * config/i386/winnt.c: Likewise.
22264
22265 2015-07-09  Richard Biener  <rguenther@suse.de>
22266
22267         * genmatch.c (struct expr): Add force_single_use flag.
22268         (expr::expr): Add copy constructor.
22269         (capture_info::walk_match): Gather force_single_use captures.
22270         (expr::gen_transform): Use possibly NULLified sequence.
22271         (dt_simplify::gen): Apply single-use restrictions by NULLifying
22272         seq if any constrained expr is not single-use.
22273         (parser::parse_expr): Refactor to allow multiple flags.  Handle
22274         's' flag to force an expression have a single-use if the pattern
22275         simplifies to more than one statement.
22276         * match.pd: Convert most single_use conditionals to :s flags.
22277
22278 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22279
22280         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22281         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22282         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22283
22284 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22285
22286         * flags.h: Don't include flag-types.h or options.h.
22287         * opts-common.c: Adjust includes.
22288         * opts-global.c: Likewise.
22289         * common/config/epiphany/epiphany-common.c: Likewise.
22290
22291 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22292
22293         PR target/66818
22294         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22295         for IA MCU.
22296
22297 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22298
22299         PR target/66817
22300         * config/i386/i386.c (ix86_return_in_memory): Return true
22301         if int_size_in_bytes returns negative for IA MCU.
22302
22303 2015-07-09  Marek Polacek  <polacek@redhat.com>
22304
22305         PR tree-optimization/66718
22306         * Makefile.in (OBJS): Add gimple-laddress.o.
22307         * passes.def: Schedule pass_laddress.
22308         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22309         * tree-pass.h (make_pass_laddress): Declare.
22310         * gimple-laddress.c: New file.
22311
22312 2015-07-09  Richard Biener  <rguenther@suse.de>
22313
22314         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22315
22316 2015-07-09  Richard Biener  <rguenther@suse.de>
22317
22318         PR tree-optimization/66807
22319         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22320
22321 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
22322
22323         * function.c (stack_protect_epilogue): Use if rather than switch for
22324         check targetm.have_stack_protect_test.
22325
22326 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22327
22328         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22329         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22330         * config/arc/arc.h: Likewise.
22331         * config/arm/arm.h: Likewise.
22332         * config/bfin/bfin.h: Likewise.
22333         * config/epiphany/epiphany.h: Likewise.
22334         * config/frv/frv.h: Likewise.
22335         * config/ia64/ia64.h: Likewise.
22336         * config/iq2000/iq2000.h: Likewise.
22337         * config/lm32/lm32.h: Likewise.
22338         * config/m32r/m32r.h: Likewise.
22339         * config/mcore/mcore.h: Likewise.
22340         * config/mep/mep.h: Likewise.
22341         * config/microblaze/microblaze.h: Likewise.
22342         * config/mips/mips.h: Likewise.
22343         * config/mmix/mmix.h: Likewise.
22344         * config/mn10300/mn10300.h: Likewise.
22345         * config/nds32/nds32.h: Likewise.
22346         * config/nios2/nios2.h: Likewise.
22347         * config/pa/pa.h: Likewise.
22348         * config/rl78/rl78.h: Likewise.
22349         * config/sh/sh.h: Likewise.
22350         * config/sparc/sparc.h: Likewise.
22351         * config/stormy16/stormy16.h: Likewise.
22352         * config/tilegx/tilegx.h: Likewise.
22353         * config/tilepro/tilepro.h: Likewise.
22354         * config/v850/v850.h: Likewise.
22355         * config/xtensa/xtensa.h: Likewise.
22356         * doc/tm.texi: Regenerate.
22357         * doc/tm.texi.in: Adjust.
22358         * combine.c (simplify_set): Likewise.
22359         (simplify_comparison): Likewise.
22360         * expr.c (store_constructor): Likewise.
22361         * internal-fn.c (expand_arith_overflow): Likewise.
22362         * reload.c (push_reload): Likewise.
22363         (find_reloads): Likewise.
22364         (find_reloads_subreg_address): Likewise.
22365         * reload1.c (eliminate_regs_1): Likewise.
22366         * rtlanal.c (nonzero_bits1): Likewise.
22367         (num_sign_bit_copies1): Likewise.
22368         * simplify-rtx.c (simplify_truncation): Likewise.
22369
22370 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22371
22372         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22373         of AUTO_INC_DEC with the preprocessor.
22374         * combine.c (combine_instructions): Likewise.
22375         (can_combine_p): Likewise.
22376         (try_combine): Likewise.
22377         * emit-rtl.c (try_split): Likewise.
22378         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22379         * lower-subreg.c (resolve_simple_move): Likewise.
22380         * lra.c (update_inc_notes): Likewise.
22381         * recog.c (asm_operand_ok): Likewise.
22382         (constrain_operands): Likewise.
22383         * regrename.c (scan_rtx_address): Likewise.
22384         * reload.c (update_auto_inc_notes): Likewise.
22385         (reg_inc_found_and_valid_p): Likewise.
22386         * reload1.c (reload): Likewise.
22387         (emit_input_reload_insns): Likewise.
22388         (delete_output_reload): Likewise.
22389         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22390         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22391
22392 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22393
22394         * rtl.h: Always define AUTO_INC_DEC.
22395         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22396         * combine.c (combine_instructions): Likewise.
22397         (can_combine_p): Likewise.
22398         (try_combine): Likewise.
22399         * emit-rtl.c (try_split): Likewise.
22400         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22401         * lower-subreg.c (resolve_simple_move): Likewise.
22402         * lra.c (update_inc_notes): Likewise.
22403         * recog.c (asm_operand_ok): Likewise.
22404         (constrain_operands): Likewise.
22405         * regrename.c (scan_rtx_address): Likewise.
22406         * reload.c (update_auto_inc_notes): Likewise.
22407         (find_equiv_reg): Likewise.
22408         * reload1.c (reload): Likewise.
22409         (reload_as_needed): Likewise.
22410         (choose_reload_regs): Likewise.
22411         (emit_input_reload_insns): Likewise.
22412         (delete_output_reload): Likewise.
22413         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22414         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22415
22416 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22417
22418         * combine.c (can_combine_def_p): Don't check the value of
22419         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22420         (combinable_i3pat): Likewise.
22421         (mark_used_regs_combine): Likewise.
22422         * regrename.c (rename_chains): Likewise.
22423         * reload.c (find_reloads_address): Likewise.
22424         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22425
22426 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22427
22428         * combine.c (update_rsp_from_reg_equal): Don't check if
22429         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22430         (reg_nonzero_bits_for_combine): Likewise.
22431         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22432         1.
22433         * config/frv/frv.h: Likewise.
22434         * config/lm32/lm32.h: Likewise.
22435         * config/mep/mep.h: Likewise.
22436         * config/mips/mips.h: Likewise.
22437         * config/rs6000/rs6000.h: Likewise.
22438         * config/sh/sh.h: Likewise.
22439         * config/tilegx/tilegx.h (enum reg_class): Likewise.
22440         * config/tilepro/tilepro.h: Likewise.
22441         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22442         * doc/tm.texi: Regenerate.
22443         * doc/tm.texi.in: Adjust.
22444         * rtlanal.c (nonzero_bits1): Likewise.
22445
22446 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22447
22448         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22449         with the preprocessor.
22450         (combine_instructions): Likewise.
22451         (try_combine): Likewise.
22452         (subst): Likewise.
22453         (distribute_notes): Likewise.
22454
22455 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22456
22457         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22458         defined.
22459         (simplify_set): Likewise.
22460         * cse.c (cse_insn): Likewise.
22461         * fold-const.c (fold_single_bit_test): Likewise.
22462         (fold_unary_loc): Likewise.
22463         * postreload.c (reload_cse_simplify_set): Likewise.
22464         (reload_cse_simplify_operands): Likewise.
22465
22466 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
22467
22468         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22469         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22470
22471 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22472
22473         PR target/66746
22474         * config/i386/x86intrin.h: Include <adxintrin.h> even if
22475         __iamcu__ is defined.
22476
22477 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22478
22479         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22480
22481 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
22482
22483         PR target/66523
22484         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22485         names from preservation.
22486
22487 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22488
22489         PR target/66806
22490         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22491         change for IAMCU.
22492         (function_arg_advance_32): Don't pass vectors in registers for
22493         IAMCU.
22494         (function_arg_32): Likewise.
22495         (ix86_return_in_memory): Don't return vectors in registers for
22496         IAMCU.
22497
22498 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
22499
22500         PR middle-end/66334
22501         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22502         hard regno live at the start of BB with incoming abnormal edges.
22503         * lra-lives.c (process_bb_lives): Ditto.
22504
22505 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
22506
22507         PR libgomp/65099
22508         * config/nvptx/mkoffload.c (main): Create an offload image only in
22509         64-bit configurations.
22510
22511 2015-07-08  Martin Liska  <mliska@suse.cz>
22512
22513         PR bootstrap/66744
22514         * tree-sra.c (create_access_1): Call ctor without brackets.
22515         (create_artificial_child_access): Likewise.
22516
22517 2015-07-08  Richard Biener  <rguenther@suse.de>
22518
22519         PR tree-optimization/66793
22520         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22521         Properly split the block after stmts ending it.
22522
22523 2015-07-08  Richard Biener  <rguenther@suse.de>
22524
22525         PR tree-optimization/66794
22526         * passes.c (execute_function_todo): Assert that post-dominators
22527         are not computed.
22528         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22529         Free post-dominators.
22530
22531 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22532
22533         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22534         with early exit.
22535
22536 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22537
22538         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22539         more than or equal 8 and less than 32 when optimizing for size.
22540
22541 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22542
22543         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22544         COSTS_N_INSNS (1) and increment it appropriately throughout the
22545         function.
22546
22547 2015-07-08  Richard Biener  <rguenther@suse.de>
22548
22549         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22550
22551 2015-07-08  Alan Modra  <amodra@gmail.com>
22552
22553         * target.def (rtx_costs): Remove "code" param, add "mode".
22554         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22555         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
22556         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22557         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
22558         call.  Track mode when given in rtx.
22559         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
22560         (default_address_cost): Pass Pmode to rtx_cost.
22561         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22562         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22563         with NULL set.
22564         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
22565         (notreg_cost): Add mode param.  Use it.
22566         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
22567         mode param and pass to set_src_cost.  Update all calls.
22568         (hash_scan_set): Formatting.
22569         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22570         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22571         * hooks.h: Ditto.
22572         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22573         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22574         emit_store_flag): Update set_src_cost and rtx_cost calls.
22575         * auto-inc-dec.c (attempt_change): Likewise.
22576         * calls.c (precompute_register_parameters): Likewise.
22577         * combine.c (expand_compound_operation, make_extraction,
22578         force_to_mode, distribute_and_simplify_rtx): Likewise.
22579         * dojump.c (prefer_and_bit_test): Likewise.
22580         * dse.c (find_shift_sequence): Likewise.
22581         * expr.c (compress_float_constant): Likewise.
22582         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22583         * ifcvt.c (noce_try_sign_mask): Likewise.
22584         * loop-doloop.c (doloop_optimize): Likewise.
22585         * loop-invariant.c (create_new_invariant): Likewise.
22586         * lower-subreg.c (shift_cost, compute_costs): Likewise.
22587         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22588         lshift_cheap_p): Likewise.
22589         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22590         try_replace_in_use, reload_cse_move2add): Likewise.
22591         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22592         Likewise.
22593         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22594         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22595         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22596         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22597         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22598         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
22599         to rtx_cost calls.
22600         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22601         * config/arc/arc.c (arc_rtx_costs): Likewise.
22602         * config/arm/arm.c (arm_rtx_costs): Likewise.
22603         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22604         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22605         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22606         * config/cris/cris.c (cris_rtx_costs): Likewise.
22607         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22608         * config/frv/frv.c (frv_rtx_costs): Likewise.
22609         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22610         * config/i386/i386.c (ix86_rtx_costs): Likewise.
22611         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22612         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22613         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22614         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22615         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22616         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22617         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22618         * config/mep/mep.c (mep_rtx_cost): Likewise.
22619         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22620         * config/mips/mips.c (mips_rtx_costs): Likewise.
22621         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22622         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22623         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22624         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22625         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22626         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22627         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22628         * config/pa/pa.c (hppa_rtx_costs): Likewise.
22629         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22630         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22631         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22632         * config/s390/s390.c (s390_rtx_costs): Likewise.
22633         * config/sh/sh.c (sh_rtx_costs): Likewise.
22634         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22635         * config/spu/spu.c (spu_rtx_costs): Likewise.
22636         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22637         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22638         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22639         * config/v850/v850.c (v850_rtx_costs): Likewise.
22640         * config/vax/vax.c (vax_rtx_costs): Likewise.
22641         * config/visium/visium.c (visium_rtx_costs): Likewise.
22642         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22643         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22644         "code" param, and pass as outer_code to first rtx_cost call.  Pass
22645         mode to rtx_cost calls.
22646         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22647         calls.
22648         (aarch64_rtx_costs_wrapper): Update.
22649         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22650         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22651         rtx_cost calls.
22652         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22653         and rtx_cost calls.
22654         (avr_operand_rtx_cost): Similarly.
22655         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22656         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22657         * config/mips/mips.c (mips_stack_address_p): Comment typo.
22658         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22659         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22660         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22661         rtx_cost.
22662         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22663         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22664         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22665         * doc/tm.texi: Regenerate.
22666
22667 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
22668
22669         * tree-core.h: Include symtab.h.
22670         * rtl.h: Include hard-reg-set.h but not flags.h.
22671         (HARD_CONST): Remove condition compilation involving HARD_CONST since
22672         hard-reg-set.h is always included.
22673         * regs.h: Don't include hard-reg-set.h or rtl.h.
22674         * cfg.h: Include dominance.h.
22675         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22676         * backend.h: New.  Aggregate commonly used backend header files.
22677         * gimple-ssa.h: Don't include tree-hasher.h.
22678         * ssa.h: New.  Aggregate commonly used SSA header files.
22679         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22680         * sel-sched-ir.h: Flatten includes.
22681         * lra-int.h: Flatten completely.
22682         * sel-sched-dump.h: Flatten includes.
22683         * ira-int.h: Flatten includes.
22684         * gimple-streamer.h: Remove all includes.
22685         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22686         * resource.h: Flatten hard-reg-set.h and df.h.
22687         * sched-int.h: Flatten insn-arrt.h and df.h.
22688         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22689         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22690         * genattrtab.c (write_header): Adjust generated includes.
22691         * genautomata.c (main): Likewise.
22692         * genconditions.c (write-header): Likewise.
22693         * genemit.c (main): Likewise.
22694         * gengtype.c (open_base_files): Likewise.
22695         * genopinit.c (main): Likewise.
22696         * genoutput.c (output_prologue): Likewise.
22697         * genpeep.c (main): Likewise.
22698         * genpreds.c (write_insn_preds_c): Likewise.
22699         * genrecog.c (write_header): Likewise.
22700         * alias.c: Adjust includes.
22701         * asan.c: Likewise.
22702         * attribs.c: Likewise.
22703         * auto-inc-dec.c: Likewise.
22704         * auto-profile.c: Likewise.
22705         * bb-reorder.c: Likewise.
22706         * bt-load.c: Likewise.
22707         * builtins.c: Likewise.
22708         * caller-save.c: Likewise.
22709         * calls.c: Likewise.
22710         * ccmp.c: Likewise.
22711         * cfg.c: Likewise.
22712         * cfganal.c: Likewise.
22713         * cfgbuild.c: Likewise.
22714         * cfgcleanup.c: Likewise.
22715         * cfgexpand.c: Likewise.
22716         * cfghooks.c: Likewise.
22717         * cfgloop.c: Likewise.
22718         * cfgloopanal.c: Likewise.
22719         * cfgloopmanip.c: Likewise.
22720         * cfgrtl.c: Likewise.
22721         * cgraph.c: Likewise.
22722         * cgraphbuild.c: Likewise.
22723         * cgraphclones.c: Likewise.
22724         * cgraphunit.c: Likewise.
22725         * cilk-common.c: Likewise.
22726         * combine-stack-adj.c: Likewise.
22727         * combine.c: Likewise.
22728         * compare-elim.c: Likewise.
22729         * convert.c: Likewise.
22730         * coverage.c: Likewise.
22731         * cppbuiltin.c: Likewise.
22732         * cprop.c: Likewise.
22733         * cse.c: Likewise.
22734         * cselib.c: Likewise.
22735         * data-streamer-in.c: Likewise.
22736         * data-streamer-out.c: Likewise.
22737         * data-streamer.c: Likewise.
22738         * dbxout.c: Likewise.
22739         * dce.c: Likewise.
22740         * ddg.c: Likewise.
22741         * debug.c: Likewise.
22742         * df-core.c: Likewise.
22743         * df-problems.c: Likewise.
22744         * df-scan.c: Likewise.
22745         * dfp.c: Likewise.
22746         * dojump.c: Likewise.
22747         * dominance.c: Likewise.
22748         * domwalk.c: Likewise.
22749         * double-int.c: Likewise.
22750         * dse.c: Likewise.
22751         * dumpfile.c: Likewise.
22752         * dwarf2asm.c: Likewise.
22753         * dwarf2cfi.c: Likewise.
22754         * dwarf2out.c: Likewise.
22755         * emit-rtl.c: Likewise.
22756         * et-forest.c: Likewise.
22757         * except.c: Likewise.
22758         * explow.c: Likewise.
22759         * expmed.c: Likewise.
22760         * expr.c: Likewise.
22761         * final.c: Likewise.
22762         * fixed-value.c: Likewise.
22763         * fold-const.c: Likewise.
22764         * function.c: Likewise.
22765         * fwprop.c: Likewise.
22766         * gcc-plugin.h: Likewise.
22767         * gcse-common.c: Likewise.
22768         * gcse.c: Likewise.
22769         * generic-match-head.c: Likewise.
22770         * ggc-page.c: Likewise.
22771         * gimple-builder.c: Likewise.
22772         * gimple-expr.c: Likewise.
22773         * gimple-fold.c: Likewise.
22774         * gimple-iterator.c: Likewise.
22775         * gimple-low.c: Likewise.
22776         * gimple-match-head.c: Likewise.
22777         * gimple-pretty-print.c: Likewise.
22778         * gimple-ssa-isolate-paths.c: Likewise.
22779         * gimple-ssa-strength-reduction.c: Likewise.
22780         * gimple-streamer-in.c: Likewise.
22781         * gimple-streamer-out.c: Likewise.
22782         * gimple-walk.c: Likewise.
22783         * gimple.c: Likewise.
22784         * gimplify-me.c: Likewise.
22785         * gimplify.c: Likewise.
22786         * godump.c: Likewise.
22787         * graph.c: Likewise.
22788         * graphite-blocking.c: Likewise.
22789         * graphite-dependences.c: Likewise.
22790         * graphite-interchange.c: Likewise.
22791         * graphite-isl-ast-to-gimple.c: Likewise.
22792         * graphite-optimize-isl.c: Likewise.
22793         * graphite-poly.c: Likewise.
22794         * graphite-scop-detection.c: Likewise.
22795         * graphite-sese-to-poly.c: Likewise.
22796         * graphite.c: Likewise.
22797         * haifa-sched.c: Likewise.
22798         * hw-doloop.c: Likewise.
22799         * ifcvt.c: Likewise.
22800         * init-regs.c: Likewise.
22801         * internal-fn.c: Likewise.
22802         * ipa-chkp.c: Likewise.
22803         * ipa-comdats.c: Likewise.
22804         * ipa-cp.c: Likewise.
22805         * ipa-devirt.c: Likewise.
22806         * ipa-icf-gimple.c: Likewise.
22807         * ipa-icf.c: Likewise.
22808         * ipa-inline-analysis.c: Likewise.
22809         * ipa-inline-transform.c: Likewise.
22810         * ipa-inline.c: Likewise.
22811         * ipa-polymorphic-call.c: Likewise.
22812         * ipa-profile.c: Likewise.
22813         * ipa-prop.c: Likewise.
22814         * ipa-pure-const.c: Likewise.
22815         * ipa-ref.c: Likewise.
22816         * ipa-reference.c: Likewise.
22817         * ipa-split.c: Likewise.
22818         * ipa-utils.c: Likewise.
22819         * ipa-visibility.c: Likewise.
22820         * ipa.c: Likewise.
22821         * ira-build.c: Likewise.
22822         * ira-color.c: Likewise.
22823         * ira-conflicts.c: Likewise.
22824         * ira-costs.c: Likewise.
22825         * ira-emit.c: Likewise.
22826         * ira-lives.c: Likewise.
22827         * ira.c: Likewise.
22828         * jump.c: Likewise.
22829         * langhooks.c: Likewise.
22830         * lcm.c: Likewise.
22831         * loop-doloop.c: Likewise.
22832         * loop-init.c: Likewise.
22833         * loop-invariant.c: Likewise.
22834         * loop-iv.c: Likewise.
22835         * loop-unroll.c: Likewise.
22836         * lower-subreg.c: Likewise.
22837         * lra-assigns.c: Likewise.
22838         * lra-coalesce.c: Likewise.
22839         * lra-constraints.c: Likewise.
22840         * lra-eliminations.c: Likewise.
22841         * lra-lives.c: Likewise.
22842         * lra-remat.c: Likewise.
22843         * lra-spills.c: Likewise.
22844         * lra.c: Likewise.
22845         * lto-cgraph.c: Likewise.
22846         * lto-compress.c: Likewise.
22847         * lto-opts.c: Likewise.
22848         * lto-section-in.c: Likewise.
22849         * lto-section-out.c: Likewise.
22850         * lto-streamer-in.c: Likewise.
22851         * lto-streamer-out.c: Likewise.
22852         * lto-streamer.c: Likewise.
22853         * mcf.c: Likewise.
22854         * mode-switching.c: Likewise.
22855         * modulo-sched.c: Likewise.
22856         * omega.c: Likewise.
22857         * omp-low.c: Likewise.
22858         * optabs.c: Likewise.
22859         * opts-global.c: Likewise.
22860         * passes.c: Likewise.
22861         * plugin.c: Likewise.
22862         * postreload-gcse.c: Likewise.
22863         * postreload.c: Likewise.
22864         * predict.c: Likewise.
22865         * print-rtl.c: Likewise.
22866         * print-tree.c: Likewise.
22867         * profile.c: Likewise.
22868         * real.c: Likewise.
22869         * realmpfr.c: Likewise.
22870         * recog.c: Likewise.
22871         * ree.c: Likewise.
22872         * reg-stack.c: Likewise.
22873         * regcprop.c: Likewise.
22874         * reginfo.c: Likewise.
22875         * regrename.c: Likewise.
22876         * regstat.c: Likewise.
22877         * reload.c: Likewise.
22878         * reload1.c: Likewise.
22879         * reorg.c: Likewise.
22880         * resource.c: Likewise.
22881         * rtl-chkp.c: Likewise.
22882         * rtlanal.c: Likewise.
22883         * rtlhooks.c: Likewise.
22884         * sanopt.c: Likewise.
22885         * sched-deps.c: Likewise.
22886         * sched-ebb.c: Likewise.
22887         * sched-rgn.c: Likewise.
22888         * sched-vis.c: Likewise.
22889         * sdbout.c: Likewise.
22890         * sel-sched-dump.c: Likewise.
22891         * sel-sched-ir.c: Likewise.
22892         * sel-sched.c: Likewise.
22893         * sese.c: Likewise.
22894         * shrink-wrap.c: Likewise.
22895         * simplify-rtx.c: Likewise.
22896         * stack-ptr-mod.c: Likewise.
22897         * stmt.c: Likewise.
22898         * stor-layout.c: Likewise.
22899         * store-motion.c: Likewise.
22900         * stringpool.c: Likewise.
22901         * symtab.c: Likewise.
22902         * target-globals.c: Likewise.
22903         * targhooks.c: Likewise.
22904         * toplev.c: Likewise.
22905         * tracer.c: Likewise.
22906         * trans-mem.c: Likewise.
22907         * tree-affine.c: Likewise.
22908         * tree-browser.c: Likewise.
22909         * tree-call-cdce.c: Likewise.
22910         * tree-cfg.c: Likewise.
22911         * tree-cfgcleanup.c: Likewise.
22912         * tree-chkp-opt.c: Likewise.
22913         * tree-chkp.c: Likewise.
22914         * tree-chrec.c: Likewise.
22915         * tree-complex.c: Likewise.
22916         * tree-data-ref.c: Likewise.
22917         * tree-dfa.c: Likewise.
22918         * tree-diagnostic.c: Likewise.
22919         * tree-dump.c: Likewise.
22920         * tree-eh.c: Likewise.
22921         * tree-emutls.c: Likewise.
22922         * tree-if-conv.c: Likewise.
22923         * tree-inline.c: Likewise.
22924         * tree-into-ssa.c: Likewise.
22925         * tree-iterator.c: Likewise.
22926         * tree-loop-distribution.c: Likewise.
22927         * tree-nested.c: Likewise.
22928         * tree-nrv.c: Likewise.
22929         * tree-object-size.c: Likewise.
22930         * tree-outof-ssa.c: Likewise.
22931         * tree-parloops.c: Likewise.
22932         * tree-phinodes.c: Likewise.
22933         * tree-predcom.c: Likewise.
22934         * tree-pretty-print.c: Likewise.
22935         * tree-profile.c: Likewise.
22936         * tree-scalar-evolution.c: Likewise.
22937         * tree-sra.c: Likewise.
22938         * tree-ssa-address.c: Likewise.
22939         * tree-ssa-alias.c: Likewise.
22940         * tree-ssa-ccp.c: Likewise.
22941         * tree-ssa-coalesce.c: Likewise.
22942         * tree-ssa-copy.c: Likewise.
22943         * tree-ssa-copyrename.c: Likewise.
22944         * tree-ssa-dce.c: Likewise.
22945         * tree-ssa-dom.c: Likewise.
22946         * tree-ssa-dse.c: Likewise.
22947         * tree-ssa-forwprop.c: Likewise.
22948         * tree-ssa-ifcombine.c: Likewise.
22949         * tree-ssa-live.c: Likewise.
22950         * tree-ssa-loop-ch.c: Likewise.
22951         * tree-ssa-loop-im.c: Likewise.
22952         * tree-ssa-loop-ivcanon.c: Likewise.
22953         * tree-ssa-loop-ivopts.c: Likewise.
22954         * tree-ssa-loop-manip.c: Likewise.
22955         * tree-ssa-loop-niter.c: Likewise.
22956         * tree-ssa-loop-prefetch.c: Likewise.
22957         * tree-ssa-loop-unswitch.c: Likewise.
22958         * tree-ssa-loop.c: Likewise.
22959         * tree-ssa-math-opts.c: Likewise.
22960         * tree-ssa-operands.c: Likewise.
22961         * tree-ssa-phiopt.c: Likewise.
22962         * tree-ssa-phiprop.c: Likewise.
22963         * tree-ssa-pre.c: Likewise.
22964         * tree-ssa-propagate.c: Likewise.
22965         * tree-ssa-reassoc.c: Likewise.
22966         * tree-ssa-sccvn.c: Likewise.
22967         * tree-ssa-scopedtables.c: Likewise.
22968         * tree-ssa-sink.c: Likewise.
22969         * tree-ssa-strlen.c: Likewise.
22970         * tree-ssa-structalias.c: Likewise.
22971         * tree-ssa-tail-merge.c: Likewise.
22972         * tree-ssa-ter.c: Likewise.
22973         * tree-ssa-threadedge.c: Likewise.
22974         * tree-ssa-threadupdate.c: Likewise.
22975         * tree-ssa-uncprop.c: Likewise.
22976         * tree-ssa-uninit.c: Likewise.
22977         * tree-ssa.c: Likewise.
22978         * tree-ssanames.c: Likewise.
22979         * tree-stdarg.c: Likewise.
22980         * tree-streamer-in.c: Likewise.
22981         * tree-streamer-out.c: Likewise.
22982         * tree-streamer.c: Likewise.
22983         * tree-switch-conversion.c: Likewise.
22984         * tree-tailcall.c: Likewise.
22985         * tree-vect-data-refs.c: Likewise.
22986         * tree-vect-generic.c: Likewise.
22987         * tree-vect-loop-manip.c: Likewise.
22988         * tree-vect-loop.c: Likewise.
22989         * tree-vect-patterns.c: Likewise.
22990         * tree-vect-slp.c: Likewise.
22991         * tree-vect-stmts.c: Likewise.
22992         * tree-vectorizer.c: Likewise.
22993         * tree-vrp.c: Likewise.
22994         * tree.c: Likewise.
22995         * tsan.c: Likewise.
22996         * ubsan.c: Likewise.
22997         * valtrack.c: Likewise.
22998         * value-prof.c: Likewise.
22999         * var-tracking.c: Likewise.
23000         * varasm.c: Likewise.
23001         * varpool.c: Likewise.
23002         * vmsdbgout.c: Likewise.
23003         * vtable-verify.c: Likewise.
23004         * web.c: Likewise.
23005         * wide-int.cc: Likewise.
23006         * xcoffout.c: Likewise.
23007         * config/aarch64/aarch64-builtins.c: Likewise.
23008         * config/aarch64/aarch64.c: Likewise.
23009         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23010         * config/alpha/alpha.c: Likewise.
23011         * config/arc/arc.c: Likewise.
23012         * config/arm/aarch-common.c: Likewise.
23013         * config/arm/arm-builtins.c: Likewise.
23014         * config/arm/arm-c.c: Likewise.
23015         * config/arm/arm.c: Likewise.
23016         * config/avr/avr-c.c: Likewise.
23017         * config/avr/avr-log.c: Likewise.
23018         * config/avr/avr.c: Likewise.
23019         * config/bfin/bfin.c: Likewise.
23020         * config/c6x/c6x.c: Likewise.
23021         * config/cr16/cr16.c: Likewise.
23022         * config/cris/cris.c: Likewise.
23023         * config/darwin-c.c: Likewise.
23024         * config/darwin.c: Likewise.
23025         * config/epiphany/epiphany.c: Likewise.
23026         * config/epiphany/mode-switch-use.c: Likewise.
23027         * config/epiphany/resolve-sw-modes.c: Likewise.
23028         * config/fr30/fr30.c: Likewise.
23029         * config/frv/frv.c: Likewise.
23030         * config/ft32/ft32.c: Likewise.
23031         * config/h8300/h8300.c: Likewise.
23032         * config/i386/i386-c.c: Likewise.
23033         * config/i386/i386.c: Likewise.
23034         * config/i386/msformat-c.c: Likewise.
23035         * config/i386/winnt-cxx.c: Likewise.
23036         * config/i386/winnt-stubs.c: Likewise.
23037         * config/i386/winnt.c: Likewise.
23038         * config/ia64/ia64-c.c: Likewise.
23039         * config/ia64/ia64.c: Likewise.
23040         * config/iq2000/iq2000.c: Likewise.
23041         * config/lm32/lm32.c: Likewise.
23042         * config/m32c/m32c-pragma.c: Likewise.
23043         * config/m32c/m32c.c: Likewise.
23044         * config/m32r/m32r.c: Likewise.
23045         * config/m68k/m68k.c: Likewise.
23046         * config/mcore/mcore.c: Likewise.
23047         * config/mep/mep-pragma.c: Likewise.
23048         * config/mep/mep.c: Likewise.
23049         * config/microblaze/microblaze-c.c: Likewise.
23050         * config/microblaze/microblaze.c: Likewise.
23051         * config/mips/mips.c: Likewise.
23052         * config/mmix/mmix.c: Likewise.
23053         * config/mn10300/mn10300.c: Likewise.
23054         * config/moxie/moxie.c: Likewise.
23055         * config/msp430/msp430-c.c: Likewise.
23056         * config/msp430/msp430.c: Likewise.
23057         * config/nds32/nds32-cost.c: Likewise.
23058         * config/nds32/nds32-fp-as-gp.c: Likewise.
23059         * config/nds32/nds32-intrinsic.c: Likewise.
23060         * config/nds32/nds32-isr.c: Likewise.
23061         * config/nds32/nds32-md-auxiliary.c: Likewise.
23062         * config/nds32/nds32-memory-manipulation.c: Likewise.
23063         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23064         * config/nds32/nds32-predicates.c: Likewise.
23065         * config/nds32/nds32.c: Likewise.
23066         * config/nios2/nios2.c: Likewise.
23067         * config/nvptx/nvptx.c: Likewise.
23068         * config/pa/pa.c: Likewise.
23069         * config/pdp11/pdp11.c: Likewise.
23070         * config/rl78/rl78-c.c: Likewise.
23071         * config/rl78/rl78.c: Likewise.
23072         * config/rs6000/rs6000-c.c: Likewise.
23073         * config/rs6000/rs6000.c: Likewise.
23074         * config/rx/rx.c: Likewise.
23075         * config/s390/s390-c.c: Likewise.
23076         * config/s390/s390.c: Likewise.
23077         * config/sh/sh-c.c: Likewise.
23078         * config/sh/sh-mem.cc: Likewise.
23079         * config/sh/sh.c: Likewise.
23080         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23081         * config/sh/sh_treg_combine.cc: Likewise.
23082         * config/sol2-c.c: Likewise.
23083         * config/sol2-cxx.c: Likewise.
23084         * config/sol2-stubs.c: Likewise.
23085         * config/sol2.c: Likewise.
23086         * config/sparc/sparc-c.c: Likewise.
23087         * config/sparc/sparc.c: Likewise.
23088         * config/spu/spu-c.c: Likewise.
23089         * config/spu/spu.c: Likewise.
23090         * config/stormy16/stormy16.c: Likewise.
23091         * config/tilegx/mul-tables.c: Likewise.
23092         * config/tilegx/tilegx-c.c: Likewise.
23093         * config/tilegx/tilegx.c: Likewise.
23094         * config/tilepro/mul-tables.c: Likewise.
23095         * config/tilepro/tilepro-c.c: Likewise.
23096         * config/tilepro/tilepro.c: Likewise.
23097         * config/v850/v850-c.c: Likewise.
23098         * config/v850/v850.c: Likewise.
23099         * config/vax/vax.c: Likewise.
23100         * config/visium/visium.c: Likewise.
23101         * config/vms/vms-c.c: Likewise.
23102         * config/vms/vms.c: Likewise.
23103         * config/vxworks.c: Likewise.
23104         * config/xtensa/xtensa.c: Likewise.
23105
23106 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
23107
23108         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23109         Remove operand constraints.  Change operand 2 predicate to
23110         nonmemory operand.  Limit const_int values to mode bitsize.  Only
23111         allow const_int values less than 32 when optimizing for size.
23112         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23113         Remove operand constraints.
23114         (*bt<mode>): Use SImode for const_int values less than 32.
23115         (regmode): Remove mode attribute.
23116
23117 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
23118
23119         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23120         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23121           moxie_legitimate_address_p): New functions.
23122           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23123
23124 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23125
23126         PR tree-optimization/66642
23127         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23128         header comment.  Rename split_edge variable to edge_at_split.  Split
23129         exit edge to create new loop exit bb.  Insert loop exit phis in new
23130         loop exit bb.
23131
23132 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23133
23134         * tree-cfg.c (get_virtual_phi): New function.
23135         * tree-cfg.h (get_virtual_phi): Declare.
23136         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23137         (rewrite_virtuals_into_loop_closed_ssa): New function.
23138         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23139         Declare.
23140         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23141         (transform_to_exit_first_loop_alt): Use
23142         rewrite_virtuals_into_loop_closed_ssa.
23143
23144 2015-07-07  Richard Biener  <rguenther@suse.de>
23145
23146         * fold-const.c (fold_binary_loc): Move
23147         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23148         * match.pd: ... here.
23149         Add (X * C1) % C2 -> 0 simplification pattern derived from
23150         extract_muldiv_1.
23151
23152 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
23153
23154         PR target/66780
23155         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23156         change for target/65249.
23157
23158 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
23159
23160         * symtab.c (address_matters_1): Fix typo in comment above.
23161         (can_increase_alignment_p): Likewise.
23162
23163 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23164
23165         * function.c (free_after_compilation): Clear PROP_cfg in
23166         f->curr_properties.
23167
23168 2015-07-07  Richard Biener  <rguenther@suse.de>
23169
23170         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23171         add which use to.
23172         (add_control_edge): Remove excessive vertical space in dumping.
23173         (process_ssa_edge_worklist): Simulate at most one statement and
23174         return whether we did.  Do not simulate PHIs if they are in a
23175         BB not yet simulated.
23176         (ssa_propagate): Adjust to always drain the BB worklist whenever
23177         a BB is available there, likewise the VARYING edges list before
23178         the interesting edge list.
23179
23180 2015-07-07  Christian Bruel  <christian.bruel@st.com>
23181
23182         PR target/52144
23183         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23184
23185 2015-07-07  Richard Biener  <rguenther@suse.de>
23186
23187         PR middle-end/66739
23188         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23189         A - B.
23190
23191 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23192
23193         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
23194         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
23195         Copy operand 0 to a temporary if !ext_register_operand.  Remove
23196         ancient extract_bit_field workaround.
23197         (insv<mode>_1): Rename from mov<mode>_insv_1.
23198         (*insvqi): Rename from *movqi_insv_2.
23199         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23200         for renamed insvsi_1.
23201         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23202
23203 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
23204
23205         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
23206         call to nvptx_reorg_subreg.
23207
23208 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
23209
23210         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23211         * graphite-dependencies.c, graphite-interchange.c,
23212         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23213         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23214         Likewise.
23215
23216 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
23217
23218         * match.pd: Remove element_mode inside HONOR_*.
23219         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23220         (~X | X -> -1, ~X ^ X -> -1): Merge.
23221         * tree.c (build_each_one_cst): New function.
23222         * tree.h (build_each_one_cst): Likewise.
23223
23224 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23225
23226         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23227         PROCESSOR_IAMCU.
23228
23229 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
23230
23231         * config.gcc <mips*-*-*>: Add fused-madd.opt.
23232         * config/mips/mips.opt (mfused-madd): Remove.
23233         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23234         * config/mips/mips.h (TARGET_MIPS8000): New.
23235         (ISA_HAS_FP_MADD4_MSUB4): Remove.
23236         (ISA_HAS_FP_MADDF_MSUBF): Remove.
23237         (ISA_HAS_FP_MADD3_MSUB3): Remove.
23238         (ISA_HAS_NMADD4_NMSUB4): Remove.
23239         (ISA_HAS_NMADD3_NMSUB3): Remove.
23240         (ISA_HAS_FUSED_MADD4): New.
23241         (ISA_HAS_UNFUSED_MADD4): New.
23242         (ISA_HAS_FUSED_MADDF): New.
23243         (ISA_HAS_FUSED_MADD3): New.
23244         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23245         (*fma<mode>4_madd3) New.
23246         (*fma<mode>4_madd4) New.
23247         (*fma<mode>4_maddf) New.
23248         (fms<mode>4) New.
23249         (*fms<mode>4_msub3) New.
23250         (*fms<mode>4_msub4) New.
23251         (fnma<mode>4) New.
23252         (*fnma<mode>4_nmadd3) New.
23253         (*fnma<mode>4_nmadd4) New.
23254         (fnms<mode>4) New.
23255         (*fnms<mode>4_nmsub3) New.
23256         (*fnms<mode>4_nmsub4) New.
23257         (*madd4<mode>) Modify to be unfused only.
23258         (*msub4<mode>) Modify to be unfused only.
23259         (*nmadd4<mode>) Modify to be unfused only.
23260         (*nmsub4<mode>) Modify to be unfused only.
23261         (*madd3<mode>) Remove.
23262         (*msub3<mode>) Remove.
23263         (*nmadd3<mode>) Remove.
23264         (*nmsub3<mode>) Remove.
23265         (*nmadd3<mode>_fastmath) Remove.
23266         (*nmsub3<mode>_fastmath) Remove.
23267         (*nmadd4<mode>_fastmath) Update condition.
23268         (*nmsub4<mode>_fastmath) Update condition.
23269
23270 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23271
23272         PR target/65956
23273         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23274         alignment attribute, exploring one level down for records and arrays.
23275
23276 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23277
23278         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
23279         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
23280         Copy operand 1 to a temporary if !ext_register_operand.  Remove
23281         ancient extract_bit_field workaround.
23282         (*extv<mode>): Rename from *mov<mode>_extv_1.
23283         (*extvqi): Rename from *movqi_extv_1.
23284         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
23285         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
23286         to a temporary if !ext_register_operand.  Remove ancient
23287         extract_bit_field workaround.
23288         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23289         (*extzvqi): Rename from *movqi_extzv_2.
23290         (*testqi_ext_3): Remove modes from const_int_operand predicated
23291         operands.  Add "n" constraint.
23292         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23293         operand.  Add "J" constraint.
23294         (*btsq, *btrq, *btcq peephole2s): Remove mode from
23295         const_0_to_63 predicated operand.
23296         (regmode): New insn attribute.
23297         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
23298         to nonmemory_operand.  Use regmode insn attribute.
23299         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23300         (*jcc_bt<mode>_mask): Remove mode from operand 3.
23301         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23302         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23303         operands.  Use "N" constraint instead of "n".
23304
23305 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23306
23307         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23308
23309 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         PR target/66749
23312         * config/i386/i386.c (iamcu_cost): New.
23313         (m_IAMCU): Likewise.
23314         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23315         (processor_target_table): Add an entry for "iamcu".
23316         (processor_alias_table): Likewise.
23317         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23318         (ix86_adjust_cost): Likewise.
23319         (ia32_multipass_dfa_lookahead): Likewise.
23320         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23321         * config/i386/x86-tune.def: Updated for m_IAMCU.
23322
23323 2015-07-06  Richard Biener  <rguenther@suse.de>
23324
23325         PR tree-optimization/66772
23326         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23327         values are available in the PHI node BB when there are
23328         still unexecutable edges.
23329
23330 2015-07-06  Richard Biener  <rguenther@suse.de>
23331
23332         PR tree-optimization/66767
23333         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23334         Make sure to build the alignment test on a SSA name without
23335         final alignment info valid only if the alignment test
23336         evaluates to true.
23337
23338 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
23339
23340         PR target/66620
23341         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23342         loop start when inserting LSETUP.
23343
23344 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23345
23346         PR target/53383
23347         * config/i386/i386.c (ix86_option_override_internal): Allow
23348         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23349
23350 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23351
23352         * read-md.c (decimal_string): Rename to ...
23353         (md_decimal_string): ... this.
23354         (handle_enum): Reflect this.
23355
23356 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23357
23358         PR target/66731
23359         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23360
23361 2015-07-06  Richard Biener  <rguenther@suse.de>
23362
23363         PR middle-end/66759
23364         * match.pd: Add missing constraint of y to REAL_CST in
23365         REAL_CST - x CMP y to y - CST CMP x simplification.
23366
23367 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
23368
23369         PR tree-optimization/66757
23370         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23371
23372 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
23373             Sandra Loosemore <sandra@codesourcery.com>
23374
23375         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23376         Delete extern declaration.
23377         (gprel_constant_p): Add extern declaration.
23378         * config/nios2/constraints.md ("S"): Use gprel_constant_p
23379         instead of nios2_symbol_ref_in_small_data_p.
23380         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23381         (nios2_symbol_ref_in_small_data_p): Make static.
23382         (gprel_constant_p): Make non-static.
23383
23384 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
23385
23386         * doc/fragments.texi (Target Fragment): Convert debian.org
23387         link to use https.
23388         * doc/install.texi (Configuration): Ditto.
23389
23390 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
23391
23392         PR tree-optimization/66718
23393         * tree-vect-stmts.c (vectorizable_call): Replace uses of
23394         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23395
23396         PR tree-optimization/66718
23397         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23398         vectorizable_load, vectorizable_condition): Move vectype,
23399         nunits, ncopies computation after checking what kind of statement
23400         stmt is.
23401
23402 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23403
23404         * target-insns.def (extv, extzv, insv): New targetm instruction
23405         patterns.
23406         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23407         interface.
23408         * recog.c (simplify_while_replacing): Likewise.
23409
23410 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23411
23412         * target-insns.def (doloop_begin, doloop_end): New targetm
23413         instruction patterns.
23414         * loop-init.c: Include target.h.
23415         (pass_loop2::gate): Use the new targetm patterns instead of
23416         HAVE_*/gen_* interface.
23417         (pass_rtl_doloop::gate): Likewise.
23418         (pass_rtl_doloop::execute): Remove preprocessor condition.
23419         * hw-doloop.c: Build unconditionally.
23420         * loop-doloop.c: Likewise.
23421         (doloop_optimize): Use the new targetm patterns instead of
23422         HAVE_*/gen_* interface.
23423         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23424         * modulo-sched.c (doloop_register_get): Likewise.
23425
23426 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23427
23428         * target-insns.def (clear_cache): New targetm instruction pattern.
23429         * builtins.c (expand_builtin___clear_cache): Use it instead of
23430         HAVE_*/gen_* interface.
23431
23432 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23433
23434         * target-insns.def (allocate_stack, check_stack, probe_stack)
23435         (probe_stack_address, split_stack_prologue, split_stack_space_check):
23436         New targetm instruction patterns.
23437         * explow.c (allocate_dynamic_stack_space): Use them instead of
23438         HAVE_*/gen_* interface.
23439         (emit_stack_probe): Likewise.
23440         (probe_stack_range): Likewise.
23441         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23442
23443 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23444
23445         * target-insns.def (stack_protect_set, stack_protect_test): New
23446         targetm instruction patterns.
23447         * cfgexpand.c (stack_protect_prologue): Use them instead of
23448         HAVE_*/gen_* interface.
23449         * function.c (stack_protect_epilogue): Likewise.
23450
23451 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23452
23453         * expr.h (gen_move_insn_uncast): Delete.
23454         * expr.c (gen_move_insn_uncast): Delete.
23455
23456 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23457
23458         * target-insns.def (restore_stack_block, restore_stack_function)
23459         (restore_stack_nonlocal, save_stack_block, save_stack_function)
23460         (save_stack_nonlocal): New targetm instruction patterns.
23461         * builtins.c (expand_builtin_apply): Use them instead of
23462         HAVE_*/gen_* interface.
23463         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23464
23465 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23466
23467         * target-insns.def (trap): New targetm instruction pattern.
23468         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23469         interface.
23470         * explow.c (allocate_dynamic_stack_space): Likewise.
23471         * ifcvt.c (find_if_header): Likewise.
23472
23473 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23474
23475         * target-insns.def (prefetch): New targetm instruction pattern.
23476         * tree-ssa-loop-prefetch.c: Include targeth.
23477         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23478         of HAVE_*/gen_* interface.
23479         * builtins.c (expand_builtin_prefetch): Likewise.
23480         * toplev.c (process_options): Likewise.
23481
23482 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23483
23484         * target-insns.def (untyped_call, untyped_return): New targetm
23485         instruction patterns.
23486         * builtins.c (expand_builtin_apply): Use them instead of
23487         HAVE_*/gen_* interface.
23488         (result_vector): Define unconditionally.
23489
23490 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23491
23492         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23493         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23494         (nonlocal_goto_receiver): New targetm instruction patterns.
23495         * builtins.c (expand_builtin_setjmp_setup): Use them instead
23496         of HAVE_*/gen_* interface.
23497         (expand_builtin_setjmp_receiver): Likewise.
23498         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23499         * except.c (expand_dw2_landing_pad_for_region): Likewise.
23500
23501 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23502
23503         * target.def: Add code_for_* hooks.
23504         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23505         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23506         * target-insns.def (casesi, tablejump): New targetm instruction
23507         patterns.
23508         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23509         (do_tablejump): Likewise.
23510         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23511         (expand_sjlj_dispatch_table): Likewise.
23512         * targhooks.c (default_case_values_threshold): Likewise.
23513
23514 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
23515
23516         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23517         Use rtx_insn * instead of rtx.
23518         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23519         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23520         (nios2_call_tls_get_addr): Likewise.
23521         (nios2_emit_expensive_div): Likewise.
23522         (nios2_emit_move_sequence): Change return type to bool.
23523         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23524         Change return type to bool.
23525
23526 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23527
23528         PR target/66747
23529         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23530
23531 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
23532
23533         PR target/66114
23534         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23535         of register_operand.  Remove constraint.
23536
23537 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
23538
23539         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23540         the first argument.
23541
23542 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
23543
23544         * attribs.c (decl_attributes): Guard inform with the return value
23545         of the preceding warning.
23546
23547 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23548
23549         * doc/invoke.texi (moverride): Move to correct section.
23550
23551 2015-07-03  Richard Biener  <rguenther@suse.de>
23552
23553         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23554         Copy from tree.c
23555         (dt_operand::gen_gimple_expr): After valueizing operands
23556         re-canonicalize operand order for commutative tree codes.
23557
23558 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
23559
23560         PR target/66746.
23561         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23562         is defined.
23563         (__crc32w): Likewise.
23564         (__crc32d): Likewise.
23565         (__rdpmc): Likewise.
23566         (__rdtscp): Likewise.
23567         (_rdpmc): Likewise.
23568         (_rdtscp): Likewise.
23569         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23570         is defined.
23571
23572 2015-07-03  Richard Biener  <rguenther@suse.de>
23573
23574         * fold-const.c (fold_mathfn_compare): Remove.
23575         (fold_inf_compare): Likewise.
23576         (fold_comparison): Move floating point comparison simplifications...
23577         * match.pd: ... to patterns here.  Introduce simple_comparisons
23578         operator list and use it for patterns formerly in fold_comparison.
23579
23580 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23581
23582         PR tree-optimization/66119
23583         * toplev.c (process_options): Don't set up default values for
23584         the sra_max_scalarization_size_{speed,size} parameters.
23585         * tree-sra (analyze_all_variable_accesses): If no values
23586         have been set for the sra_max_scalarization_size_{speed,size}
23587         parameters, call get_move_ratio to get target defaults.
23588
23589 2015-07-03  Richard Biener  <rguenther@suse.de>
23590
23591         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23592         * match.pd: ... here.
23593
23594 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
23595
23596         PR target/37072
23597         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23598         is not actually the default on FreeBSD.
23599
23600 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23601
23602         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23603         definition.
23604         (CMPGE_8HI): Likewise.
23605         (CMPGE_4SI): Likewise.
23606         (CMPGE_2DI): Likewise.
23607         (CMPGE_U16QI): Likewise.
23608         (CMPGE_U8HI): Likewise.
23609         (CMPGE_U4SI): Likewise.
23610         (CMPGE_U2DI): Likewise.
23611         (CMPLE_16QI): Likewise.
23612         (CMPLE_8HI): Likewise.
23613         (CMPLE_4SI): Likewise.
23614         (CMPLE_2DI): Likewise.
23615         (CMPLE_U16QI): Likewise.
23616         (CMPLE_U8HI): Likewise.
23617         (CMPLE_U4SI): Likewise.
23618         (CMPLE_U2DI): Likewise.
23619         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23620         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23621         ALTIVEC_BUILTIN_VEC_CMPLE.
23622         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23623         floating-point vector modes.
23624         (vector_nlt<mode>): New define_expand.
23625         (vector_nltu<mode>): Likewise.
23626         (vector_ngt<mode>): Likewise.
23627         (vector_ngtu<mode>): Likewise.
23628
23629 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
23630
23631         PR rtl-optimization/66706
23632         * combine.c (make_compound_operation): If an AND of SUBREG of
23633         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23634
23635 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
23636
23637         * tree-pass.h (make_pass_ch_vect): New.
23638         * passes.def: Add pass_ch_vect just before pass_if_conversion.
23639
23640         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23641         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23642         make_pass_ch_vect): New.
23643         (pass_ch): Extend ch_base.
23644
23645         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23646         (ch_base::copy_headers): ...here.
23647
23648 2015-07-02  Richard Biener  <rguenther@suse.de>
23649
23650         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23651         * fold-const.c (get_pointer_modulus_and_residue): Remove.
23652         (fold_binary_loc): Implement (T)ptr & CST in terms of
23653         get_pointer_alignment_1.
23654         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23655         Make sure to build the alignment test on a SSA name without
23656         final alignment info valid only after the prologue.
23657
23658 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
23659
23660         * config/cris/cris.md ("epilogue"): Remove condition.
23661         ("prologue"): Ditto.
23662
23663 2015-07-02  Richard Biener  <rguenther@suse.de>
23664
23665         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23666         parameter to record a condition that is false.
23667         (record_conditions): When recording an extra NE_EXPR that is
23668         true also record a EQ_EXPR that is false.
23669
23670 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
23671
23672         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23673         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23674         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
23675         (set_iv, find_interesting_uses_address, add_candidate_1): New
23676         argument to alloc_iv.
23677         (find_interesting_uses_op, find_interesting_uses_cond): Don't
23678         duplicate struct iv.
23679         (free_loop_data): Don't free struct iv explicitly.
23680         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23681
23682 2015-07-01  DJ Delorie  <dj@redhat.com>
23683
23684         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23685         (LIB_SPEC): Add.
23686         (SUPPORTS_DISCRIMINATOR): Define.
23687
23688 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23689
23690         PR bootstrap/66685
23691         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23692         there are no CALLs in the same pattern.
23693
23694 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23695
23696         PR rtl-optimization/61047
23697         * rtlanal.c (get_initial_register_offset): New function.
23698         (rtx_addr_can_trap_p_1): Check offsets of stack references.
23699
23700 2015-07-01  Richard Biener  <rguenther@suse.de>
23701
23702         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23703         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23704         ~X CMP C -> X CMP' ~C to ...
23705         * match.pd: ... patterns here.
23706
23707 2015-07-01  Nick Clifton  <nickc@redhat.com>
23708
23709         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23710         a 16-bit value into a 20-bit memory slot.
23711
23712 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23713
23714         * doc/sourcebuild.texi (AArch64-specific attributes): Document
23715         "aarch64_tiny", "aarch64_small", "aarch64_large",
23716         "aarch64_little_endian", "aarch64_big_endian".
23717
23718 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23719
23720         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23721         Document "aarch64_small_fpic".
23722
23723 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23724
23725         * configure.ac: Add check for aarch64 assembler -fpic relocation
23726         modifier support.
23727         * configure: Regenerate.
23728         * config.in: Regenerate.
23729         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23730         to -fPIC if not support of -fpic relocation modifier in assembler.
23731
23732 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23733
23734         PR bootstrap/66685
23735         * rtl.c (classify_insn): Handle returns in PARALLELs.
23736
23737 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23738
23739         PR middle-end/66633
23740         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23741         to true if the function is nested and if not optimizing.
23742         (convert_local_omp_clauses): Initialize need_frame to true if the
23743         function contains nested functions and if not optimizing.
23744
23745 2015-07-01  Richard Biener  <rguenther@suse.de>
23746
23747         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23748         (X & Y) ^ Y -> ~X & Y transforms to ...
23749         * match.pd: ... here.
23750
23751 2015-07-01  Richard Biener <rguenther@suse.de>
23752
23753         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23754         of converts to avoid uninteresting noise from the conversion
23755         simplifying patterns.
23756
23757 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
23758
23759         * config/c6x/c6x.c (try_rename_operands): Do not depend on
23760         gcc_assert evaluating its argument for side-effect.
23761
23762 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
23763
23764         PR target/64833
23765         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23766         flag_pic is set.
23767
23768 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23769
23770         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23771         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23772         (hash_scc): Add this_ref_p and ref_p parameters and pass them
23773         to the inner DFS walk.
23774
23775 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23776
23777         * target-insns.def (jump): New targetm instruction pattern.
23778         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23779         instead of gen_jump.
23780         (fix_up_crossing_landing_pad): Likewise.
23781         (add_labels_and_missing_jumps): Likewise.
23782         (fix_crossing_conditional_branches): Likewise.
23783         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23784         (force_nonfallthru_and_redirect): Likewise.
23785         * cse.c (cse_insn): Likewise.
23786         * expmed.c (expand_divmod): Likewise.
23787         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23788         * haifa-sched.c (init_before_recovery): Likewise.
23789         (sched_create_recovery_edges): Likewise.
23790         * ifcvt.c (find_cond_trap): Likewise.
23791         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23792         (expand_float, expand_fix): Likewise.
23793         * stmt.c (emit_jump): Likewise.
23794
23795 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23796
23797         * defaults.h (HAVE_load_multiple, gen_load_multiple)
23798         (HAVE_store_multiple, gen_store_multiple): Delete.
23799         * target-insns.def (load_multiple, store_multiple): New targetm
23800         instruction patterns.
23801         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23802         of HAVE_*/gen_* interface.
23803
23804 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23805
23806         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23807         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23808         (gen_mem_signal_fence): Delete.
23809         * target-insns.def (mem_signal_fence, mem_thread_fence)
23810         (memory_barrier): New targetm instruction patterns.
23811         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23812         interface.
23813         (expand_mem_signal_fence): Likewise.
23814
23815 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23816
23817         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23818         * target-insns.def (epilogue, prologue, sibcall_prologue): New
23819         targetm instruction patterns.
23820         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23821         interface.
23822         * calls.c (expand_call): Likewise.
23823         * cfgrtl.c (cfg_layout_finalize): Likewise.
23824         * df-scan.c (df_get_entry_block_def_set): Likewise.
23825         (df_get_exit_block_use_set): Likewise.
23826         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23827         * final.c (final_start_function): Likewise.
23828         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23829         (reposition_prologue_and_epilogue_notes): Likewise.
23830         * reorg.c (find_end_label): Likewise.
23831         * toplev.c (process_options): Likewise.
23832
23833 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
23834
23835         * typed-splay-tree.h: New file.
23836
23837 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
23838
23839         PR debug/66691
23840         * lra-int.h (lra_substitute_pseudo): Add a parameter.
23841         (lra_substitute_pseudo_within_insn): Ditto.
23842         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
23843         of constant.
23844         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
23845         to lra_substitute_pseudo.
23846         * lra-lives.c (process_bb_lives): Add an argument to
23847         lra_substitute_pseudo_within_insn call.
23848         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23849         argument to lra_substitute_pseudo and
23850         lra_substitute_pseudo_within_insn calls.
23851         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23852
23853 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23854
23855         * configure: Regenerated.
23856
23857 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23858
23859         * config.gcc: Support i[34567]86-*-elfiamcu target.
23860         * config/i386/iamcu.h: New.
23861         * config/i386/i386.opt: Add -miamcu.
23862         * doc/invoke.texi: Document -miamcu.
23863         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
23864         off x87/MMX/SSE/AVX codegen for -miamcu.
23865         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23866         __iamcu/__iamcu__ for -miamcu.
23867         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23868         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23869         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23870         * config/i386/i386.c (ix86_option_override_internal): Ignore and
23871         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
23872         MCU by default.  Default long double to 64-bit for Intel MCU.
23873         Turn on -freg-struct-return for Intel MCU.  Issue an error when
23874         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23875         AVX is turned on.
23876         (function_arg_advance_32): Pass value whose size is no larger
23877         than 8 bytes in registers for Intel MCU.
23878         (function_arg_32): Likewise.
23879         (ix86_return_in_memory): Return value whose size is no larger
23880         than 8 bytes in registers for Intel MCU.
23881         (iamcu_alignment): New function.
23882         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23883         true.
23884         (ix86_local_alignment): Don't increase alignment for Intel MCU.
23885         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23886         true.
23887
23888 2015-06-30  Marek Polacek  <polacek@redhat.com>
23889
23890         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
23891         both operands of the resulting expression.
23892
23893         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
23894         the final expression with the operand's type and then convert
23895         it to the type of the expression.
23896
23897 2015-06-30  Richard Biener  <rguenther@suse.de>
23898
23899         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23900         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23901         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23902         * match.pd: ... to patterns here.
23903
23904 2015-06-30  Richard Biener  <rguenther@suse.de>
23905
23906         PR tree-optimization/66704
23907         * tree-vect-data-refs.c (vect_setup_realignment): Use
23908         make_ssa_name for non-SSA name source.
23909
23910 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
23911
23912         PR middle-end/66702
23913         * omp-low.c (simd_clone_adjust): Handle addressable linear
23914         or uniform parameters or non-gimple type uniform parameters.
23915
23916 2015-06-30  Richard Biener  <rguenther@suse.de>
23917
23918         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23919         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23920         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23921         * match.pd: ... here.
23922         Add a few cases of A - B -> A + (-B) when B "easily" negates.
23923         Move (x & y) | x -> x and friends before
23924         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23925
23926 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23927
23928         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23929         -mfix-ut699 is not specified.
23930         (leon3_load): Rename into...
23931         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
23932         is specified.
23933
23934 2015-06-30  Marek Polacek  <polacek@redhat.com>
23935
23936         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23937         * match.pd: ... here.
23938
23939 2015-06-30  Richard Biener  <rguenther@suse.de>
23940
23941         * target-insns.def (canonicalize_funcptr_for_compare): Add.
23942         * fold-const.c (build_range_check): Replace uses of
23943         HAVE_canonicalize_funcptr_for_compare.
23944         (fold_widened_comparison): Likewise.
23945         (fold_sign_changed_comparison): Likewise.
23946         * dojump.c: Include "target.h".
23947         (do_compare_and_jump): Replace uses of
23948         HAVE_canonicalize_funcptr_for_compare and
23949         gen_canonicalize_funcptr_for_compare.
23950         * expr.c (do_store_flag): Likewise.
23951
23952 2015-06-30  Tom de Vries  <tom@codesourcery.com>
23953
23954         PR tree-optimization/66652
23955         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23956         max_loop_iterations to determine if nit + 1 overflows.
23957
23958 2015-06-30  Richard Biener  <rguenther@suse.de>
23959
23960         * tree-vrp.c (register_edge_assert_for_2): Also register
23961         asserts for dominating conversion results.
23962
23963 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
23964
23965         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23966         field in struct iv.
23967
23968 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
23969
23970         PR target/66509
23971         * configure.ac: Fix filds and fildq test for 64-bit.
23972         * configure: Regenerated.
23973
23974 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
23975
23976         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23977         (nvptx_reorg): Here.  Keep the non-subreg pieces.
23978
23979 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
23980
23981         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23982         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23983
23984 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
23985
23986         * config/i386/i386.md (*jcc_1): Use %! in asm template.
23987         Set attribute "length_nobnd" instead of "length".
23988         (*jcc_2): Ditto.
23989         (jump): Ditto.
23990         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23991
23992 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
23993
23994         * config/nios2/nios2.c (nios2_delegitimize_address): Make
23995         assert less restrictive.
23996
23997 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23998
23999         PR fortran/66605
24000         * cgraphunit.c (cgraph_node::finalize_function): Do not call
24001         do_warn_unused_parameter.
24002         * function.c (do_warn_unused_parameter): Move from here.
24003         * function.h (do_warn_unused_parameter): Do not declare.
24004
24005 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24006
24007         PR target/65697
24008         * gcc.target/arm/armv-sync-comp-swap.c: New.
24009         * gcc.target/arm/armv-sync-op-acquire.c: New.
24010         * gcc.target/arm/armv-sync-op-full.c: New.
24011         * gcc.target/arm/armv-sync-op-release.c: New.
24012
24013 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24014
24015         PR target/65697
24016         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24017         initial acquire barrier with final barrier.
24018
24019 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24020
24021         PR target/65697
24022         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24023         initial acquire barrier with final barrier.
24024
24025 2015-06-29  Richard Henderson  <rth@redhat.com>
24026
24027         * config/i386/constraints.md (Bf): New constraint.
24028         * config/i386/i386-c.c (ix86_target_macros): Define
24029         __GCC_ASM_FLAG_OUTPUTS__.
24030         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24031         as flags outputs.
24032         * doc/extend.texi (FlagOutputOperands): Document them.
24033
24034 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
24035
24036         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24037         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24038         unspec name.
24039         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24040         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24041         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24042         (aarch64_symbol_context): Ditto.
24043         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24044         and use new pattern name.
24045         (aarch64_expand_mov_immediate): Ditto.
24046         (aarch64_print_operand): Ditto.
24047         (aarch64_classify_tls_symbol): Ditto.
24048
24049 2015-06-29  Marek Polacek  <polacek@redhat.com>
24050             Marc Glisse  <marc.glisse@inria.fr>
24051
24052         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24053         * match.pd: ... pattern here.
24054
24055 2015-06-29  Tom de Vries  <tom@codesourcery.com>
24056
24057         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24058         function structure.
24059
24060 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24061
24062         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24063         feature description, split out the native option, add a link to
24064         the feature documentation, rearrange and slightly rewrite text.
24065         (Aarch64 options, -mcpu): Likewise.
24066         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
24067         +rdma implies Adv. SIMD.
24068
24069 2015-06-29  Marek Polacek  <polacek@redhat.com>
24070
24071         PR c/66322
24072         * function.c (stack_protect_epilogue): Remove a cast to int.
24073         * doc/invoke.texi: Update -Wswitch-bool description.
24074
24075 2015-06-29  Richard Biener  <rguenther@suse.de>
24076
24077         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24078         * fold-const.c (fold_binary_loc): Move &A - &B simplification
24079         via ptr_difference_const ...
24080         * match.pd: ... here.
24081         When matching (X ^ Y) == Y also match with swapped operands.
24082
24083 2015-06-29  Richard Biener  <rguenther@suse.de>
24084
24085         * lto-streamer.h (LTO_major_version): Bump to 5.
24086
24087 2015-06-29  Richard Biener  <rguenther@suse.de>
24088
24089         PR tree-optimization/66677
24090         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24091         STMT_VINFO_VEC_STMT clobbering less strict.
24092
24093 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
24094
24095         PR middle-end/64130
24096         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24097         division, compute max and min when value ranges for dividend and
24098         divisor are available.
24099
24100 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
24101             Sandra Loosemore <sandra@codesourcery.com>
24102
24103         * regrename.h (regrename_do_replace): Change to return bool.
24104         * regrename.c (rename_chains): Check return value of
24105         regname_do_replace.
24106         (regrename_do_replace): Re-validate the modified insns and
24107         return bool status.
24108         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24109         Update to match rename_chains changes.
24110         * config/c6x/c6x.c (try_rename_operands): Assert that
24111         regrename_do_replace returns true.
24112
24113 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
24114
24115         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24116         operand 2 here.  Use copy_addr_to_reg to copy non-index
24117         register operand 2 to a temporary.
24118         (<mode>_stx): Ditto for operand 1.
24119         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24120         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24121         (ix86_store_bounds): Ditto.
24122
24123 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
24124
24125         * print-tree.c (print_node) [TREE_VEC]: Print its length.
24126
24127 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
24128
24129         * gimple.c (gimple_call_set_fndecl): Remove.
24130         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24131         build1_loc directly instead of build_fold_addr_expr_loc.
24132
24133 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24134
24135         * hash-map.h (hash_map::traverse): Use the definition of the
24136         Key typedef rather than the typedef itself.
24137
24138 2015-06-26  Martin Jambor  <mjambor@suse.cz>
24139
24140         PR debug/66301
24141         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24142         NULL instead of calling dump_enabled_p.
24143
24144 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24145
24146         * config/aarch64/aarch64.opt: (override): New.
24147         * doc/invoke.texi (override): Document.
24148         * config/aarch64/aarch64.c (aarch64_flag_desc): New
24149         (aarch64_fusible_pairs): Likewise.
24150         (aarch64_tuning_flags): Likewise.
24151         (aarch64_tuning_override_function): Likewise.
24152         (aarch64_tuning_override_functions): Likewise.
24153         (aarch64_parse_one_option_token): Likewise.
24154         (aarch64_parse_boolean_options): Likewise.
24155         (aarch64_parse_fuse_string): Likewise.
24156         (aarch64_parse_tune_string): Likewise.
24157         (aarch64_parse_one_override_token): Likewise.
24158         (aarch64_parse_override_string): Likewise.
24159         (aarch64_override_options): Parse the -override string if it
24160         is present.
24161
24162 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24163
24164         * config/aarch64/aarch64-protos.h (tune_params): Remove
24165         const from members.
24166         (aarch64_tune_params): Remove const, change to no longer be
24167         a pointer.
24168         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24169         change to no longer be a pointer, initialize to generic_tunings.
24170         (aarch64_min_divisions_for_recip_mul): Change dereference of
24171         aarch64_tune_params to member access.
24172         (aarch64_reassociation_width): Likewise.
24173         (aarch64_rtx_mult_cost): Likewise.
24174         (aarch64_address_cost): Likewise.
24175         (aarch64_branch_cost): Likewise.
24176         (aarch64_rtx_costs): Likewise.
24177         (aarch64_register_move_cost): Likewise.
24178         (aarch64_memory_move_cost): Likewise.
24179         (aarch64_sched_issue_rate): Likewise.
24180         (aarch64_builtin_vectorization_cost): Likewise.
24181         (aarch64_override_options): Take a copy of the selected tuning
24182         struct in to aarch64_tune_params, rather than just setting
24183         a pointer, change dereferences of aarch64_tune_params to member
24184         accesses.
24185         (aarch64_override_options_after_change): Change dereferences of
24186         aarch64_tune_params to member access.
24187         (aarch64_macro_fusion_p): Likewise.
24188         (aarch_macro_fusion_pair_p): Likewise.
24189         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24190
24191 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24192
24193         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24194         (aarch64_tune_flags): Likewise.
24195         (AARCH64_TUNE_FMA_STEERING): Likewise.
24196         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24197         to AARCH64_FL_USE_FMA_STEERING_PASS.
24198         (cortex-a57.cortex-a53): Likewise.
24199         (cortex-a72): Use cortexa72_tunings.
24200         (cortex-a72.cortex-a53): Likewise.
24201         (exynos-m1): Likewise.
24202         * config/aarch64/aarch64-protos.h (tune_params): Add
24203         a field: extra_tuning_flags.
24204         * config/aarch64/aarch64-tuning-flags.def: New.
24205         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24206         (aarch64_extra_tuning_flags): Likewise.
24207         (aarch64_tune_params): Declare here.
24208         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24209         (cortexa53_tunings): Likewise.
24210         (cortexa57_tunings): Likewise.
24211         (thunderx_tunings): Likewise.
24212         (xgene1_tunings): Likewise.
24213         (cortexa72_tunings): New.
24214         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24215          (gate): Check against aarch64_tune_params.
24216         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24217         aarch64-protos.h.
24218
24219 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24220
24221         * config/aarch64/aarch64-fusion-pairs.def: New.
24222         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24223         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24224         aarch64_fusion_pairs.
24225         (AARCH64_FUSE_MOV_MOVK): Likewise.
24226         (AARCH64_FUSE_ADRP_ADD): Likewise.
24227         (AARCH64_FUSE_MOVK_MOVK): Likewise.
24228         (AARCH64_FUSE_ADRP_LDR): Likewise.
24229         (AARCH64_FUSE_CMP_BRANCH): Likewise.
24230
24231 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24232
24233         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24234         SYMBOL_SMALL_GOT_28K.
24235         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24236         relocation modifiers.
24237         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24238         (ldr_got_small_28k_<mode>): New.
24239         (ldr_got_small_28k_sidi): New.
24240         * config/aarch64/iterators.md (got_modifier): New mode iterator.
24241         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24242         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24243         SYMBOL_SMALL_GOT_28K.
24244         (aarch64_rtx_costs): Add costs for new instruction sequences.
24245         (initialize_aarch64_code_model): Initialize new model.
24246         (aarch64_classify_symbol): Recognize new model and new symbol classification.
24247         (aarch64_asm_preferred_eh_data_format): Support new model.
24248         (aarch64_load_symref_appropriately): Generate new instruction
24249         sequences for -fpic.
24250         (TARGET_USE_PSEUDO_PIC_REG): New definition.
24251         (aarch64_use_pseudo_pic_reg): New function.
24252
24253 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24254
24255         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24256         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24257         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24258         (aarch64_expand_mov_immediate): Ditto.
24259         (aarch64_print_operand): Ditto.
24260         (aarch64_classify_symbol): Ditto.
24261
24262 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
24263
24264         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24265
24266 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
24267
24268         PR bootstrap/66638
24269         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24270         assertion failed.  Remove assertion itself.
24271
24272 2015-06-26  Richard Biener  <rguenther@suse.de>
24273
24274         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24275         and -A CMP CST -> A CMP -CST which is redundant with a pattern
24276         in match.pd.
24277         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24278         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24279         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24280         * match.pd: ... patterns here.
24281
24282 2015-06-26  Marek Polacek  <polacek@redhat.com>
24283
24284         * match.pd ((x | y) & ~(x & y) -> x ^ y,
24285         (x | y) & (~x ^ y) -> x & y): New patterns.
24286
24287 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24288
24289         * rtl.h (emit): Add an optional boolean parameter to control
24290         whether barriers are emitted.
24291         * emit-rtl.c (emit): Likewise.
24292         * gensupport.c (get_emit_function): Return null rather than "emit".
24293         * genemit.c (gen_emit_seq): Handle the null return value.
24294         Don't emit barriers after the final instruction in the sequence.
24295         * gentarget-def.c (main): Don't emit barriers after the instruction.
24296
24297 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24298
24299         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24300         TARGET_UNIFIED_ASM.
24301
24302 2015-06-26  Richard Biener  <rguenther@suse.de>
24303
24304         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24305
24306 2015-06-26  Richard Biener  <rguenther@suse.de>
24307
24308         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24309         irrespective on whether the inner operation has a single use
24310         of both off are constant.
24311
24312 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
24313             Segher Boessenkool  <segher@kernel.crashing.org>
24314
24315         PR target/66412
24316         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24317         before doing PUT_MODE or PUT_CODE on operands to avoid
24318         in-place RTX modification.
24319
24320 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24321
24322         * gentarget-def.c (def_target_insn): Cast return of strtol to
24323         unsigned int.
24324
24325 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24326
24327         * gimple.h (gimple_call_set_fn): Move inline function.
24328         * gimple.c (gimple_call_set_fn): Relocate here.
24329
24330 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
24331
24332         PR target/65979
24333         PR target/66611
24334         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24335         the replacement insn will work.
24336
24337 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24338
24339         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24340         by default.
24341
24342 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24343
24344         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24345         * cgraph.h: Include ipa-ref.h and plugin-api.h.
24346         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24347         (symtab_node::address_can_be_compared_p): Move function.
24348         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24349         definition here.
24350         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24351         * auto-profile.c: Likewise.
24352         * bb-reorder.c: Likewise.
24353         * builtins.c: Likewise.
24354         * calls.c: Likewise.
24355         * cfgexpand.c: Likewise.
24356         * cgraphbuild.c: Likewise.
24357         * cgraphclones.c: Likewise.
24358         * cgraphunit.c: Likewise.
24359         * combine.c: Likewise.
24360         * coverage.c: Likewise.
24361         * data-streamer-in.c: Likewise.
24362         * data-streamer-out.c: Likewise.
24363         * data-streamer.c: Likewise.
24364         * dbxout.c: Likewise.
24365         * dwarf2out.c: Likewise.
24366         * except.c: Likewise.
24367         * expr.c: Likewise.
24368         * final.c: Likewise.
24369         * fold-const.c: Likewise.
24370         * ggc-page.c: Likewise.
24371         * gimple-fold.c: Likewise.
24372         * gimple-iterator.c: Likewise.
24373         * gimple-pretty-print.c: Likewise.
24374         * gimple-streamer-in.c: Likewise.
24375         * gimple-streamer-out.c: Likewise.
24376         * gimple.c: Likewise.
24377         * gimplify.c: Likewise.
24378         * ipa-chkp.c: Likewise.
24379         * ipa-comdats.c: Likewise.
24380         * ipa-cp.c: Likewise.
24381         * ipa-devirt.c: Likewise.
24382         * ipa-icf-gimple.c: Likewise.
24383         * ipa-icf.c: Likewise.
24384         * ipa-inline-analysis.c: Likewise.
24385         * ipa-inline-transform.c: Likewise.
24386         * ipa-inline.c: Likewise.
24387         * ipa-polymorphic-call.c: Likewise.
24388         * ipa-profile.c: Likewise.
24389         * ipa-prop.c: Likewise.
24390         * ipa-pure-const.c: Likewise.
24391         * ipa-ref.c: Likewise.
24392         * ipa-reference.c: Likewise.
24393         * ipa-split.c: Likewise.
24394         * ipa-utils.c: Likewise.
24395         * ipa-visibility.c: Likewise.
24396         * ipa.c: Likewise.
24397         * langhooks.c: Likewise.
24398         * lto-cgraph.c: Likewise.
24399         * lto-compress.c: Likewise.
24400         * lto-opts.c: Likewise.
24401         * lto-section-in.c: Likewise.
24402         * lto-section-out.c: Likewise.
24403         * lto-streamer-in.c: Likewise.
24404         * lto-streamer-out.c: Likewise.
24405         * lto-streamer.c: Likewise.
24406         * omp-low.c: Likewise.
24407         * opts-global.c: Likewise.
24408         * passes.c: Likewise.
24409         * predict.c: Likewise.
24410         * print-tree.c: Likewise.
24411         * profile.c: Likewise.
24412         * ree.c: Likewise.
24413         * sanopt.c: Likewise.
24414         * stor-layout.c: Likewise.
24415         * symtab.c: Likewise.
24416         * toplev.c: Likewise.
24417         * trans-mem.c: Likewise.
24418         * tree-cfg.c: Likewise.
24419         * tree-chkp.c: Likewise.
24420         * tree-eh.c: Likewise.
24421         * tree-emutls.c: Likewise.
24422         * tree-inline.c: Likewise.
24423         * tree-nested.c: Likewise.
24424         * tree-parloops.c: Likewise.
24425         * tree-pretty-print.c: Likewise.
24426         * tree-profile.c: Likewise.
24427         * tree-sra.c: Likewise.
24428         * tree-ssa-alias.c: Likewise.
24429         * tree-ssa-live.c: Likewise.
24430         * tree-ssa-loop-ivcanon.c: Likewise.
24431         * tree-ssa-loop-ivopts.c: Likewise.
24432         * tree-ssa-pre.c: Likewise.
24433         * tree-ssa-sccvn.c: Likewise.
24434         * tree-ssa-strlen.c: Likewise.
24435         * tree-ssa-structalias.c: Likewise.
24436         * tree-streamer-in.c: Likewise.
24437         * tree-streamer-out.c: Likewise.
24438         * tree-streamer.c: Likewise.
24439         * tree-switch-conversion.c: Likewise.
24440         * tree-tailcall.c: Likewise.
24441         * tree-vect-data-refs.c: Likewise.
24442         * tree-vect-stmts.c: Likewise.
24443         * tree-vectorizer.c: Likewise.
24444         * tree.c: Likewise.
24445         * tsan.c: Likewise.
24446         * ubsan.c: Likewise.
24447         * value-prof.c: Likewise.
24448         * varasm.c: Likewise.
24449         * varpool.c: Likewise.
24450         * config/arm/arm.c: Likewise.
24451         * config/bfin/bfin.c: Likewise.
24452         * config/c6x/c6x.c: Likewise.
24453         * config/cris/cris.c: Likewise.
24454         * config/darwin-c.c: Likewise.
24455         * config/darwin.c: Likewise.
24456         * config/i386/i386.c: Likewise.
24457         * config/i386/winnt.c: Likewise.
24458         * config/microblaze/microblaze.c: Likewise.
24459         * config/mips/mips.c: Likewise.
24460         * config/rs6000/rs6000.c: Likewise.
24461         * config/rx/rx.c: Likewise.
24462         * config/s390/s390.c: Likewise.
24463         * config/tilegx/mul-tables.c: Likewise.
24464
24465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24466
24467         * config/aarch64/aarch64.c, config/alpha/alpha.c,
24468         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24469         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24470         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24471         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24472         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24473         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24474         config/microblaze/microblaze.c, config/mips/mips.c,
24475         config/mmix/mmix.c, config/mn10300/mn10300.c,
24476         config/moxie/moxie.c, config/msp430/msp430.c,
24477         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24478         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24479         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24480         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24481         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24482         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24483         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24484         target-def.h include.
24485         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
24486
24487 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24488
24489         * Makefile.in (TARGET_DEF): Add target-insns.def.
24490         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24491         (build/gentarget-def.o): New rule.
24492         (genprogrtl): Add target-def.
24493         * target-insns.def, gentarget-def.c: New files.
24494         * target.def: Add targetm.have_* and targetm.gen_* hooks,
24495         based on the contents of target-insns.def.
24496         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24497         (HAVE_return, gen_return): Delete.
24498         * target-def.h: Include insn-target-def.h.
24499         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24500         instead of direct calls.  Rely on them to do the appropriate assertions.
24501         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
24502         (convert_jumps_to_returns): Use targetm interface instead of
24503         direct calls.
24504         (thread_prologue_and_epilogue_insns): Likewise.
24505         * reorg.c (find_end_label, dbr_schedule): Likewise.
24506         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24507         * shrink-wrap.c (convert_to_simple_return): Likewise.
24508         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24509
24510 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24511
24512         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24513         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24514         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24515         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24516         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24517         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24518         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24519         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24520         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24521         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24522         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24523         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24524         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24525         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24526         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24527         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24528         includes to end.
24529
24530 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24531
24532         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24533         (unbounded_int_hashmap_traits::key_type): Likewise.
24534         * hash-map.h (hash_map): Get the key type from the traits.
24535         * hash-traits.h (default_hash_traits): By default, inherit from the
24536         template parameter.
24537         * alias.c (alias_set_traits): Delete.
24538         (alias_set_entry_d::children): Use alias_set_hash as the first
24539         template parameter.
24540         (record_alias_subset): Update accordingly.
24541         * except.c (tree_hash_traits): Delete.
24542         (type_to_runtime_map): Use tree_hash as the first template parameter.
24543         (init_eh): Update accordingly.
24544         * genmatch.c (capture_id_map_hasher): Delete.
24545         (cid_map_t): Use nofree_string_hash as first template parameter.
24546         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24547         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24548         Use symbol_compare_hash as the first template parameter in
24549         subdivide_hash_map.
24550         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24551         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24552         template parameter.
24553         * passes.c (pass_registry_hasher): Delete.
24554         (name_to_pass_map): Use nofree_string_hash as the first template
24555         parameter.
24556         (register_pass_name): Update accordingly.
24557         * sanopt.c (sanopt_tree_map_traits): Delete.
24558         (sanopt_tree_triplet_map_traits): Delete.
24559         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24560         template parameter.
24561         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24562         the first template parameter.
24563         * sese.c (rename_map_hasher): Delete.
24564         (rename_map_type): Use tree_ssa_name_hash as the first template
24565         parameter.
24566         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24567         (function_summary::m_map): Use map_hash as the first template
24568         parameter.
24569         (function_summary::release): Update accordingly.
24570         * tree-if-conv.c (phi_args_hash_traits): Delete.
24571         (predicate_scalar_phi): Use tree_operand_hash as the first template
24572         parameter to phi_arg_map.
24573         * tree-inline.h (dependence_hasher): Delete.
24574         (copy_body_data::dependence_map): Use dependence_hash as the first
24575         template parameter.
24576         * tree-inline.c (remap_dependence_clique): Update accordingly.
24577         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24578         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24579         parameter.
24580         (addr_stridxptr): Update accordingly.
24581         * value-prof.c (profile_id_traits): Delete.
24582         (cgraph_node_map): Use profile_id_hash as the first template
24583         parameter.
24584         (init_node_map): Update accordingly.
24585         * config/alpha/alpha.c (string_traits): Delete.
24586         (machine_function::links): Use nofree_string_hash as the first
24587         template parameter.
24588         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24589         * config/m32c/m32c.c (pragma_traits): Delete.
24590         (pragma_htab): Use nofree_string_hash as the first template parameter.
24591         (m32c_note_pragma_address): Update accordingly.
24592         * config/mep/mep.c (pragma_traits): Delete.
24593         (pragma_htab): Use nofree_string_hash as the first template parameter.
24594         (mep_note_pragma_flag): Update accordingly.
24595         * config/mips/mips.c (mips16_flip_traits): Delete.
24596         (mflip_mips16_htab): Use nofree_string_hash as the first template
24597         parameter.
24598         (mflip_mips16_use_mips16_p): Update accordingly.
24599         (local_alias_traits): Delete.
24600         (mips16_local_aliases): Use nofree_string_hash as the first template
24601         parameter.
24602         (mips16_local_alias): Update accordingly.
24603
24604 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24605
24606         * hash-map-traits.h (default_hashmap_traits): Delete.
24607
24608 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24609
24610         * hash-map-traits.h (unbounded_hashmap_traits): New class.
24611         (unbounded_int_hashmap_traits): Likewise.
24612         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24613
24614 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24615
24616         * ipa-icf.h (symbol_compare_hash): New class.
24617         (symbol_compare_hashmap_traits): Use it.
24618         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24619         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24620         (mem_alloc_description::reverse_mem_map_t): Remove redundant
24621         default_hashmap_traits.
24622         * sanopt.c (sanopt_tree_triplet_hash): New class.
24623         (sanopt_tree_triplet_map_traits): Use it.
24624
24625 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24626
24627         * gengtype-parse.c (require_template_declaration): Allow '+' in
24628         template parameters.  Consolidate cases.
24629         * hash-traits.h (int_hash): New class.
24630         * alias.c (alias_set_hash): New structure.
24631         (alias_set_traits): Use it.
24632         * symbol-summary.h (function_summary::map_hash): New class.
24633         (function_summary::summary_hashmap_traits): Use it.
24634         * tree-inline.h (dependence_hash): New class.
24635         (dependence_hasher): Use it.
24636         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24637         * value-prof.c (profile_id_hash): New class.
24638         (profile_id_traits): Use it.
24639
24640 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24641
24642         * config/mips/mips.c (mips16_flip_traits): Use it.
24643         (local_alias_traits, mips16_local_aliases): Convert from a map of
24644         rtxes to a map of symbol names.
24645         (mips16_local_alias): Update accordingly.
24646
24647 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24648
24649         * hash-traits.h (string_hash, nofree_string_hash): New classes.
24650         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24651         * passes.c (pass_registry_hasher): Likewise.
24652         * config/alpha/alpha.c (string_traits): Likewise.
24653         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24654         * config/m32c/m32c.c (pragma_traits): Likewise.
24655         * config/mep/mep.c (pragma_traits): Likewise.
24656
24657 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24658
24659         * tree-hash-traits.h (tree_hash): New class.
24660         * except.c: Include tree-hash-traits.h.
24661         (tree_hash_traits): Use tree_hash.
24662
24663 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24664
24665         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24666         * sese.c: Include tree-hash-traits.h.
24667         (rename_map_hasher): Use tree_ssa_name_hasher.
24668
24669 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24670
24671         * tree-hash-traits.h (tree_decl_hash): New class.
24672         * tree-ssa-strlen.c: Include tree-hash-traits.h.
24673         (stridxlist_hash_traits): Use tree_decl_hash.
24674
24675 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24676
24677         * tree-hash-traits.h: New file.
24678         (tree_operand_hash): New class.
24679         * sanopt.c: Include tree-hash-traits.h.
24680         (sanopt_tree_map_traits): Use tree_operand_hash.
24681         * tree-if-conv.c: Include tree-hash-traits.h.
24682         (phi_args_hash_traits): Use tree_operand_hash.
24683         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24684         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24685
24686 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24687
24688         * hash-map-traits.h: Include hash-traits.h.
24689         (simple_hashmap_traits): New class.
24690         * mem-stats.h (hash_map): Change the default traits to
24691         simple_hashmap_traits<default_hash_traits<Key> >.
24692
24693 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24694
24695         * hash-table.h: Update comments.
24696
24697 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24698
24699         * hash-traits.h (default_hash_traits): New structure.
24700         * hash-set.h (default_hashset_traits): Delete.
24701         (hash_set): Use default_hash_traits<Key> instead of
24702         default_hashset_traits.  Delete hash_entry type and use Key directly.
24703         * ipa-devirt.c (pair_traits): Delete.
24704         (default_hash_traits <type_pair>): Override.
24705         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24706         (odr_types_equivalent_p, add_type_duplicate): Likewise.
24707
24708 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24709
24710         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24711
24712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24713
24714         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24715         (has_is_empty, is_empty_helper): Delete.
24716         (has_mark_deleted, mark_deleted_helper): Delete.
24717         (has_mark_empty, mark_empty_helper): Delete.
24718         (hash_table::is_deleted): Call the Descriptor unconditionally.
24719         (hash_table::is_empty): Likewise.
24720         (hash_table::mark_deleted): Likewise.
24721         (hash_table::mark_empty): Likewise.
24722
24723 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24724
24725         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
24726         redundant typedefs and members.
24727         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
24728         redundant typedefs.
24729         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24730         * ipa-devirt.c (odr_name_hasher): Likewise.
24731         (polymorphic_call_target_hasher): Likewise.
24732         * ira-costs.c (cost_classes_hasher): Likewise.
24733         * statistics.c (stats_counter_hasher): Likewise.
24734         * trans-mem.c (log_entry_hasher): Likewise.
24735         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24736         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24737         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24738         * var-tracking.c (variable_hasher): Likewise.
24739         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24740         Remove redundant typedefs and members.
24741
24742 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24743
24744         * hash-traits.h (ggc_cache_hasher): Rename to...
24745         (ggc_cache_remove): ...this and remove typedefs.
24746         (ggc_cache_ptr_hash): New class.
24747         * hash-table.h: Update commentary.
24748         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24749         rather than ggc_cache_hasher.
24750         (const_wide_int_hasher, reg_attr_hasher): Likewise.
24751         (const_double_hasher, const_fixed_hasher): Likewise.
24752         * function.c (insn_cache_hasher): Likewise.
24753         * trans-mem.c (tm_wrapper_hasher): Likewise.
24754         * tree.h (tree_decl_map_cache_hasher): Likewise.
24755         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24756         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24757         * ubsan.c (tree_type_map_cache_hasher): Likewise.
24758         * varasm.c (tm_clone_hasher): Likewise.
24759         * config/i386/i386.c (dllimport_hasher): Likewise.
24760         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24761         (tree_hasher): Likewise.
24762
24763 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24764
24765         * hash-traits.h (ggc_hasher): Rename to...
24766         (ggc_remover): ...this and remove typedefs.
24767         (ggc_cache_hasher): Update accordingly.  Add typedefs.
24768         (ggc_ptr_hash): New class.
24769         * hash-table.h: Update comment.
24770         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24771         ggc_hasher.
24772         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24773         (tree_descriptor_hasher): Likewise.
24774         * cgraph.c (function_version_hasher): Likewise.
24775         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24776         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24777         (dw_loc_list_hasher, addr_hasher): Likewise.
24778         * function.h (used_type_hasher): Likewise.
24779         * function.c (temp_address_hasher): Likewise.
24780         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24781         * libfuncs.h (libfunc_hasher): Likewise.
24782         * lto-streamer.h (decl_state_hasher): Likewise.
24783         * optabs.c (libfunc_decl_hasher): Likewise.
24784         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24785         * varasm.c (section_hasher, object_block_hasher): Likewise.
24786         (const_rtx_desc_hasher): Likewise.
24787         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24788         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24789
24790 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24791
24792         * hash-traits.h (free_ptr_hash): New class.
24793         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24794         rather than typed_free_remove.  Remove redudant typedefs.
24795         (external_ref_hasher): Likewise.
24796         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24797         (ehspec_hasher): Likewise.
24798         * ggc-common.c (saving_hasher): Likewise.
24799         * gimplify.c (gimplify_hasher): Likewise.
24800         * haifa-sched.c (delay_i2_hasher): Likewise.
24801         * loop-invariant.c (invariant_expr_hasher): Likewise.
24802         * loop-iv.c (biv_entry_hasher): Likewise.
24803         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24804         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24805         * tree-cfg.c (locus_discrim_hasher): Likewise.
24806         * tree-eh.c (finally_tree_hasher): Likewise.
24807         * tree-into-ssa.c (var_info_hasher): Likewise.
24808         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24809         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24810         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24811         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24812         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24813         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24814         (shared_bitmap_hasher): Likewise.
24815         * tree-ssa-threadupdate.c (redirection_data): Likewise.
24816         * tree-vectorizer.h (peel_info_hasher): Likewise.
24817         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24818         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24819
24820 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24821
24822         * hash-table.h: Update comments.
24823         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24824         (nofree_ptr_hash): New class.
24825         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24826         than typed_noop_remove.  Remove redudant typedefs.
24827         * attribs.c (attribute_hasher): Likewise.
24828         * cfg.c (bb_copy_hasher): Likewise.
24829         * cselib.c (cselib_hasher): Likewise.
24830         * dse.c (invariant_group_base_hasher): Likewise.
24831         * dwarf2cfi.c (trace_info_hasher): Likewise.
24832         * dwarf2out.c (macinfo_entry_hasher): Likewise.
24833         (comdat_type_hasher, loc_list_hasher): Likewise.
24834         * gcse.c (pre_ldst_expr_hasher): Likewise.
24835         * genmatch.c (id_base): Likewise.
24836         * genrecog.c (test_pattern_hasher): Likewise.
24837         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24838         * haifa-sched.c (delay_i1_hasher): Likewise.
24839         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24840         * ipa-icf.h (congruence_class_group_hash): Likewise.
24841         * ipa-profile.c (histogram_hash): Likewise.
24842         * ira-color.c (allocno_hard_regs_hasher): Likewise.
24843         * lto-streamer.h (string_slot_hasher): Likewise.
24844         * lto-streamer.c (tree_entry_hasher): Likewise.
24845         * plugin.c (event_hasher): Likewise.
24846         * postreload-gcse.c (expr_hasher): Likewise.
24847         * store-motion.c (st_expr_hasher): Likewise.
24848         * tree-sra.c (uid_decl_hasher): Likewise.
24849         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24850         (ssa_name_var_hash): Likewise.
24851         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24852         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24853         * tree-ssa-pre.c (pre_expr_d): Likewise.
24854         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24855         * vtable-verify.h (registration_hasher): Likewise.
24856         * vtable-verify.c (vtbl_map_hasher): Likewise.
24857         * config/arm/arm.c (libcall_hasher): Likewise.
24858         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24859         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24860         * config/sol2.c (comdat_entry_hasher): Likewise.
24861         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24862         (print_fold_checksum, fold_checksum_tree): Likewise.
24863         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24864         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24865         (fold_build_call_array_loc): Likewise.
24866         * tree-ssa-ccp.c (gimple_htab): Likewise.
24867         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24868         rather than pointer_type.
24869
24870 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24871
24872         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24873         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24874
24875 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24876
24877         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24878         (ggc_hasher::ggc_mx): Likewise.
24879         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
24880         that duplicate ggc_hasher ones.
24881
24882 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24883
24884         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24885         (gt_cleare_cache): Check here for deleted and empty entries.
24886         Replace handle_cache_entry with a call to keep_cache_entry.
24887         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24888         (ggc_cache_hasher::keep_cache_entry): New function.
24889         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24890         (tm_wrapper_hasher::keep_cache_entry): New function.
24891         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24892         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24893         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24894         (type_cache_hasher::keep_cache_entry): New function.
24895         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24896         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24897         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24898         (tree_type_map_cache_hasher::keep_cache_entry): New function.
24899         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24900         (tm_clone_hasher::keep_cache_entry): New function.
24901         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24902         (dllimport_hasher::keep_cache_entry): New function.
24903
24904 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24905
24906         * hash-table.h: Include hash-traits.h.
24907         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24908         (ggc_cache_hasher): Move to...
24909         * hash-traits.h: ...this new file.
24910
24911 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24912
24913         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24914         struct cl_optimization.
24915         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24916         * tree.c (make_node_stat): Allocate cl_optimization struct.
24917         (copy_node_stat): Allocate and copy cl_optimization struct.
24918
24919 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24920
24921         * function.h (struct incoming_args): Move struct.
24922         (pass_by_reference, reference_callee_copied): Remove prototypes.
24923         * emit-rtl.h (struct incoming_args): Relocate struct here.
24924         * calls.h (pass_by_reference, reference_callee_copied): Relocate
24925         prototypes here.
24926         * function.c (pass_by_reference, reference_callee_copied): Move.
24927         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24928         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24929         * ipa-chkp.c: Include calls.h.
24930
24931 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
24932
24933         * alias.h (alias_set_type): Move typedef.
24934         * coretypes.h (alias_set_type): Relocate typedef here.
24935         * rtl.h: Don't include alias.h.
24936
24937 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24938
24939         * cgraph.h (cgraph_rtl_info): Move to rtl.h
24940         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24941         and instance.
24942         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24943         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24944         doesn't exist.
24945         * calls.c: Include hard-reg-set.h before rtl.h.
24946         * ira.c: Likewise.
24947
24948 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24949             Vladimir Makarov  <vmakarov@redhat.com>
24950
24951         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24952         Add assert.
24953
24954 2015-06-25  Richard Biener  <rguenther@suse.de>
24955
24956         * fold-const.c (fold_binary_loc): Move simplification of
24957         (X <<>> C1) & C2 ...
24958         * match.pd: ... here.
24959
24960 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
24961
24962         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24963
24964 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24965
24966         * match.pd: Add patterns for vec_conds between 1 and 0.
24967
24968 2015-06-25  Richard Biener  <rguenther@suse.de>
24969
24970         * tree-vect-stmts.c (vectorizable_conversion): Do not set
24971         STMT_VINFO_VEC_STMT for SLP.
24972         (vectorizable_store): Likewise.
24973         (vectorizable_load): Likewise.
24974         (vect_transform_stmt): Catch SLP vectorization clobbering
24975         STMT_VINFO_VEC_STMT.
24976
24977 2015-06-25  Richard Biener  <rguenther@suse.de>
24978
24979         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24980         dumping.
24981         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24982         cleanup resulting dead code and parameters.
24983         (vect_transform_slp_perm_load): Adjust.
24984
24985 2015-06-25  Nick Clifton  <nickc@redhat.com>
24986
24987         * config/bfin/bfin.c (bfin_expand_prologue): Set
24988         current_function_static_stack_size if flag_stack_usage_info is set.
24989         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24990         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24991         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24992         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24993
24994 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24995
24996         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24997         comment that the generated IV is unsigned.
24998
24999 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25000
25001         PR target/29693
25002         * config/arm/arm.c (arm_dbx_register_number): Return
25003         DWARF_FRAME_REGISTERS by default.
25004
25005 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25006
25007         * dominance.c (calculate_dominance_info): Fix verify_dominators call
25008         argument.  Call verify_dominator when reusing dominator info.
25009
25010 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
25011
25012         PR target/66563
25013         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25014         an additional element of the unspec vector.  Modify indices
25015         of operands.
25016         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25017         * config/sh/sh.c (prepare_move_operands): Pass incremented
25018         const_int to gen_GOTaddr2picreg.
25019         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25020
25021 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25022
25023         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25024         Condition on TARGET_FLOAT.
25025
25026 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25027
25028         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25029         and (no)crypto.
25030
25031 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25032
25033         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25034
25035         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25036         aarch64_err_no_fpadvsimd.
25037
25038         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25039         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25040         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25041         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25042         Turn error into assert, test TARGET_FLOAT.
25043         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25044         TARGET_FLOAT.
25045
25046 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
25047
25048         PR debug/66482
25049         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25050
25051 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
25052
25053         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25054
25055 2015-06-24  Renlin Li <renlin.li@arm.com>
25056
25057         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25058         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25059
25060 2015-06-24  Richard Biener  <rguenther@suse.de>
25061
25062         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25063         (main): Likewise.
25064         (lower_opt_convert): Support lowering of conditional view_convert.
25065         (parser::parse_operation): Likewise.
25066         (parser::parse_for): Likewise.
25067
25068 2015-06-24  Renlin Li  <renlin.li@arm.com>
25069
25070         * varasm.c (emit_local): Use unsigned int for align variable.
25071
25072 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25073
25074         PR target/63408
25075         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25076         for negative numbers.
25077
25078 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25079
25080         PR rtl-optimization/66306
25081         * reload.c (find_reloads): Swap the match_dup info for
25082         commutative operands.
25083
25084 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25085
25086         * config/s390/vx-builtins.md
25087         ("vec_scatter_element<mode>_<non_vec_int>")
25088         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25089         attribute with bhfgq.
25090
25091 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25092
25093         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25094
25095 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25096
25097         * config/s390/s390-builtin-types.def: Add flag to indicate the
25098         options under which the function type is needed.
25099         * config/s390/s390-builtins.def: Add flag to indicate the options
25100         under which the builtin is enabled.
25101         * config/s390/s390-builtins.h: Add flags parameter to macro
25102         definitions.
25103         (bflags_for_builtin): New function.
25104         (flags_for_builtin): Renamed to ...
25105         (opflags_for_builtin): ... this.
25106         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25107         flags_for_builtin to bflags_for_builtin and
25108         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25109         * config/s390/s390.c: Add initialization of bflags_builtin and
25110         opflags_builtin arrays.
25111         Remove code for flags_builtin.
25112         (s390_init_builtins): Only create builtin function types if one of
25113         their flags is active.
25114         Only create builtins if all of their flags are active.
25115         (s390_expand_builtin): Rename flags_for_builtin to
25116         opflags_for_builtin.
25117
25118 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25119
25120         * config/s390/vecintrin.h: Remove internal builtins.
25121
25122 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25123
25124         * config/s390/s390.c (s390_secondary_reload): Fix check for
25125         GENERAL_REGS register class.
25126
25127 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25128
25129         * config/s390/s390.c (s390_support_vector_misalignment): Call
25130         default implementation for !TARGET_VX.
25131
25132 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25133
25134         * config/s390/s390.c (s390_legitimate_constant_p): Add
25135         TARGET_VX check.
25136
25137 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25138
25139         * config/s390/s390.c (s390_vector_abi): New variable definition.
25140         (s390_check_type_for_vector_abi): New function.
25141         (TARGET_ASM_FILE_END): New macro definition.
25142         (s390_asm_file_end): New function.
25143         (s390_function_arg): Call s390_check_type_for_vector_abi.
25144         (s390_gimplify_va_arg): Likewise.
25145         * configure: Regenerate.
25146         * configure.ac: Check for .gnu_attribute Binutils feature.
25147
25148 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
25149
25150         PR target/65803
25151         * config/bfin/bfin.c (hwloop_optimize): Initialize
25152         JUMP_LABEL for newly created jump.
25153
25154 2015-06-23  Tristan Gingold  <gingold@adacore.com>
25155
25156         * collect-utils.c (collect_wait): Unlink the response file here
25157         instead of...
25158         (do_wait): ...here.
25159         (utils_cleanup): ...and here.
25160
25161 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
25162
25163         * df-scan.c: Don't include target-def.h.
25164         * targhooks.c: Likewise.
25165         * config/arm/arm-c.c: Likewise.
25166         * config/i386/i386-c.c: Likewise.
25167         * config/nds32/nds32-cost.c: Likewise.
25168         * config/nds32/nds32-fp-as-gp.c: Likewise.
25169         * config/nds32/nds32-intrinsic.c: Likewise.
25170         * config/nds32/nds32-isr.c: Likewise.
25171         * config/nds32/nds32-md-auxiliary.c: Likewise.
25172         * config/nds32/nds32-memory-manipulation.c: Likewise.
25173         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25174         * config/nds32/nds32-predicates.c: Likewise.
25175
25176 2015-06-23  Richard Biener  <rguenther@suse.de>
25177
25178         PR tree-optimization/66636
25179         * tree-vect-stmts.c (vectorizable_store): Properly compute the
25180         def type for further defs for strided stores.
25181
25182 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
25183
25184         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25185         conditional selects.
25186         (setcc_int<mode>, setcc_float<mode>): Reformat.
25187
25188 2015-06-23  Marek Polacek  <polacek@redhat.com>
25189
25190         * match.pd ((x + y) - (x | y) -> x & y,
25191         (x + y) - (x & y) -> x | y): New patterns.
25192
25193 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
25194
25195         PR 65711
25196         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25197         '-dynamic-linker' within %{!shared: ...}.
25198
25199 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
25200
25201         PR target/66560
25202         * config/i386/predicates.md (addsub_vm_operator): New predicate.
25203         (addsub_vs_operator): Ditto.
25204         (addsub_vs_parallel): Ditto.
25205         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25206         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25207         Put minus RTX before plus and adjust vec_merge selector.
25208         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25209         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25210         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25211         (addsub vec_merge splitters): New combiner splitters.
25212         (addsub vec_select/vec_concat splitters): Ditto.
25213
25214 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
25215
25216         PR tree-optimization/66449
25217         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25218         POINTER_PLUS_EXPR for pointers.
25219
25220 2015-06-23  Alan Modra  <amodra@gmail.com>
25221
25222         * rtlanal.c (commutative_operand_precedence): Correct comments.
25223         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25224         declaration.  Return an int.  Distinguish REG,REG return from
25225         others.
25226         (struct simplify_plus_minus_op_data): Make local to function.
25227         (simplify_plus_minus): Don't set canonicalized if merely sorting
25228         registers.  Avoid packing ops if nothing changes.  White space fixes.
25229
25230 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
25231
25232         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25233         -fdump-ada-spec is passed but not if -fsyntax-only is.
25234
25235 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
25236
25237         PR bootstrap/63740
25238         * lra-lives.c (process_bb_lives): Check insn copying the same
25239         reload pseudo and don't create a copy for it.
25240
25241 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25242
25243         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25244         for cond_stmt.
25245
25246 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25247
25248         * builtins.def (DEF_GOMP_BUILTIN): Test
25249         'flag_tree_parallelize_loops > 1' instead of
25250         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
25251
25252 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25253
25254         * dominance.c (calculate_dominance_info): Verify dominators if
25255         early-out.
25256
25257 2015-06-22  Marek Polacek  <polacek@redhat.com>
25258
25259         * match.pd ((x ^ y) ^ (x | y) -> x & y,
25260         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25261         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25262         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25263
25264 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
25265
25266         PR target/65871
25267         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25268         cost of embedded comparison.
25269
25270 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25271
25272         PR target/65914
25273         * config/rs6000/predicates.md (altivec_register_operand): Permit
25274         virtual stack registers.
25275         (vsx_register_operand): Likewise.
25276         (vfloat_operand): Likewise.
25277         (vint_operand): Likewise.
25278         (vlogical_operand): Likewise.
25279
25280 2015-06-22  Richard Biener  <rguenther@suse.de>
25281
25282         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25283         and single_scalar_iteration_cost members.
25284         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25285         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25286         (vect_get_single_scalar_iteration_cost): Remove.
25287         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25288         Use LOOP_VINFO_SCALAR_ITERATION_COST.
25289         * tree-vect-loop.c (destroy_loop_vec_info): Free
25290         scalar_cost_vec.
25291         (vect_get_single_scalar_iteration_cost): Compute result into
25292         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25293         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
25294         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25295         (vect_estimate_min_profitable_iters): Use them.
25296
25297 2015-06-22  Christian Bruel  <christian.bruel@st.com>
25298
25299         PR target/52144
25300         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25301         (TARGET_INSERT_ATTRIBUTES): Define.
25302         (thumb_flipper): New var.
25303         * config/arm/arm.opt (-mflip-thumb): New switch.
25304
25305 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25306             Martin Liska  <mliska@suse.cz>
25307
25308         PR ipa/65908
25309         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25310         construction of arg_types.
25311         (sem_function::sem_function): Likewise.
25312         (sem_function::~sem_function): Remove destruction of arg_types.
25313         (sem_function::compatible_parm_types_p): New function.
25314         (sem_function::equals_wpa): Reorg matching of return values
25315         and parameter types.
25316         (sem_function::equals_private): Reorg mathcing of argument types.
25317         (sem_function::parse_tree_args): Remove.
25318         * ipa-icf.h (init_wpa): Do not call it.
25319         (parse_tree_args): Remove.
25320         (compatible_parm_types_p): Declare.
25321         (result_type): Remove.
25322         (arg_types): Remove.
25323
25324 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25325
25326         PR ipa/66351
25327         * ipa-polymorphic-call.c
25328         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25329         initializing alias oracle; fix formating; set base_alias_set if it
25330         is known.
25331
25332 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
25333
25334         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25335         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25336         (find_inc): Likewise.
25337         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25338         swapping.
25339         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25340         * df-scan.c (df_swap_refs): Remove.
25341         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25342         * dominance.c (link_roots): Use std::swap instead of manually swapping.
25343         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25344         * fold-const.c (fold_relational_const): Likewise.
25345         * genattrtab.c (simplify_test_exp): Likewise.
25346         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25347         gimple_simplify): Likewise.
25348         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25349         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25350         * ipa-devirt.c (add_type_duplicate): Likewise.
25351         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25352         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25353         * lra.c (lra_create_copy): Likewise.
25354         * lto-streamer-out.c (DFS::DFS): Likewise.
25355         * modulo-sched.c (get_sched_window): Likewise.
25356         * omega.c (omega_pretty_print_problem): Likewise.
25357         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25358         * reload1.c (reloads_unique_chain_p): Likewise.
25359         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25360         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25361         use std::swap.
25362         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25363         manually swapping.
25364         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25365         predicate_mem_writes): Likewise.
25366         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25367         * tree-predcom.c (combine_chains): Likewise.
25368         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25369         refs_may_alias_p_1): Likewise.
25370         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25371         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25372         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25373         number_of_iterations_cond): Likewise.
25374         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25375         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25376         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25377         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25378         * tree-vrp.c (extract_range_from_binary_expr_1,
25379         extract_range_from_unary_expr_1): Likewise.
25380
25381 2015-06-20  Marek Polacek  <polacek@redhat.com>
25382
25383         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25384
25385 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25386
25387         PR target/66591
25388         * config/sh/sh.c (prepare_move_operands): Replace subreg
25389         index term with R0 for base and index addressing.
25390
25391 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
25392
25393         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25394         op1 is an fp zero.
25395         (movsf_aarch64): Change condition from register_operand to
25396         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
25397         load1.  Change type for alternative 7 to store1.
25398         (movdf_aarch64): Likewise.
25399
25400 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
25401
25402         * config/vax/vax.md: Adjust sign/zero extend patterns to
25403         handle SUBREGs in operands[1].
25404
25405 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25406
25407         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25408         of manually swapping.
25409         (expand_vec_perm_interleave2): Likewise.
25410
25411 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
25412
25413         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25414         reuse bounds created for abnormal ssa names.
25415
25416 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
25417
25418         * config/nvptx/nvptx.md (allocate_stack): Rename to...
25419         (allocate_stack_<mode>): ... this, and add :P on both
25420         match_operand and unspec.
25421         (allocate_stack): New expander.
25422
25423 2015-06-19  Christian Bruel  <christian.bruel@st.com>
25424
25425         PR target/66541
25426         PR target/52144
25427         * config/arm/arm.c (arm_set_current_function): Handle
25428         explicit default options.
25429
25430 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25431
25432         * config/i386/i386.md (*movsicc_noc_zext): New insn.
25433         (zero-extended cmove with mem peephole2): New pattern.
25434         (cmove with mem peephole2): Merge patterns.
25435
25436 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
25437
25438         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25439
25440 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
25441
25442         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25443         * config/mips/mips.md (*madd4<mode>): Ditto.
25444         (*nmadd3<mode>) Ditto.
25445         (*nmadd4<mode>_fastmath): Ditto.
25446         (*nmadd3<mode>_fastmath): Ditto.
25447         (*nmsub4<mode>): Ditto.
25448         (*nmsub3<mode>): Ditto.
25449         (*nmsub4<mode>_fastmath): Ditto.
25450         (*nmsub3<mode>_fastmath): Ditto.
25451
25452 2015-06-18  Michael Matz  <matz@suse.de>
25453
25454         PR middle-end/66253
25455         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25456         grouped strided stores.
25457         (vectorizable_load): Don't use the DR from first_stmt in
25458         the non-SLP grouped strided case.
25459
25460 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25461
25462         PR target/66569
25463         * function.c (assign_bounds): Add arguments assign_regs,
25464         assign_special, assign_bt.
25465         (assign_parms): For vararg functions handle bounds in BT
25466         and special slots after incoming vararg bounds.
25467
25468 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25469
25470         PR middle-end/66568
25471         * cfgexpand.c (expand_return): Handle missing bounds.
25472         (expand_gimple_stmt_1): Likewise.
25473         * tree-chkp.c (chkp_expand_zero_bounds): New.
25474         * tree-chkp.h (chkp_expand_zero_bounds): New.
25475
25476 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25477
25478         PR middle-end/66567
25479         * ipa-chkp.c (chkp_maybe_create_clone): Require
25480         functions to be instrumentable.
25481         * tree-chkp.c (chkp_replace_function_pointer): Use
25482         chkp_instrumentable_p instead of attribute check.
25483
25484 2015-06-18  Richard Biener  <rguenther@suse.de>
25485
25486         PR tree-optimization/66510
25487         * tree-vect-stmts.c (vectorizable_load): Properly compute the
25488         number of vector loads for SLP permuted loads.
25489         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25490         check the stride for loop vectorization.
25491         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25492         vectorization factor.
25493         (vect_analyze_group_access): If the group size is not a power
25494         of two require a epilogue loop.
25495         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25496         compute and optimizing and alias test pruning after final
25497         vectorization factor computation.
25498         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25499         vector alignment.
25500         (vect_transform_slp_perm_load): Properly compute the original
25501         number of vector load stmts.
25502
25503 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25504
25505         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25506         "unlikely character , in @var" warning.
25507
25508 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
25509
25510         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25511         (ix86_function_arg_advance): Ditto.
25512         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
25513
25514 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25515
25516         * function.h (struct rtl_data): Remove struct and accessor macros.
25517         * emit-rtl.h (struct rtl_data): Relocate to here.
25518         * Makefile.in (GTFILES): Add emit-rtl.h.
25519         * df-core.c: Include emit-rtl.h.
25520         * genattrtab.c: Likewise.
25521         * genconditions.c: Likewise.
25522         * genpreds.c: Likewise.
25523         * genrecog.c: Likewise.
25524         * regcprop.c: Likewise.
25525         * resource.c: Likewise.
25526         * sched-rgn.c: Likewise.
25527         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25528         * config/i386/winnt.c: Likewise.
25529
25530 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
25531
25532         PR middle-end/66429
25533         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25534         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
25535         and has_force_vectorize_loops flags from cfun into
25536         child_cfun.
25537         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25538         if simduid is non-NULL.
25539         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25540         * passes.def (pass_simduid_cleanup): Add new pass after loop
25541         passes.
25542         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25543         indirection from htab argument's type.
25544         (shrink_simd_arrays): New function.
25545         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
25546         Don't call adjust_simduid_builtins if there are no loops.
25547         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25548         (pass_simduid_cleanup::execute): New method.
25549         (make_pass_simduid_cleanup): New function.
25550
25551 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
25552
25553         * tree-core.h (tree_target_option): Make opts field a pointer to a
25554         cl_target_option instead of an instance of the struct.
25555         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25556         the structure.
25557         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25558         TARGET_OPTION_NODE.
25559         (copy_node_stat): Allocate and copy struct cl_target_option.
25560
25561 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25562
25563         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25564         Remove conditional exposure of prototypes.
25565         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25566         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
25567         definitions in tree.h with functions.
25568         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25569         anon_aggrname_p.
25570         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25571
25572 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
25573
25574         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25575         (*cmp<mode>_signed): ... this.
25576         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25577         (*cmp<mode>_unsigned): ... this.  Remove %b.
25578
25579 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25580
25581         * coretypes.h: Include input.h and as-a.h.
25582         * rtl.h: Include input.h and as-a.h for generator files.
25583         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25584         * vec.c: Don't include diagnostic-core.h.
25585         * alias.c: Do not include input.h, line-map.h or is-a.h.
25586         * asan.c: Likewise.
25587         * attribs.c: Likewise.
25588         * auto-inc-dec.c: Likewise.
25589         * auto-profile.c: Likewise.
25590         * bb-reorder.c: Likewise.
25591         * bt-load.c: Likewise.
25592         * builtins.c: Likewise.
25593         * caller-save.c: Likewise.
25594         * calls.c: Likewise.
25595         * ccmp.c: Likewise.
25596         * cfg.c: Likewise.
25597         * cfganal.c: Likewise.
25598         * cfgbuild.c: Likewise.
25599         * cfgcleanup.c: Likewise.
25600         * cfgexpand.c: Likewise.
25601         * cfghooks.c: Likewise.
25602         * cfgloop.c: Likewise.
25603         * cfgloop.h: Likewise.
25604         * cfgloopanal.c: Likewise.
25605         * cfgloopmanip.c: Likewise.
25606         * cfgrtl.c: Likewise.
25607         * cgraph.c: Likewise.
25608         * cgraphbuild.c: Likewise.
25609         * cgraphclones.c: Likewise.
25610         * cgraphunit.c: Likewise.
25611         * cilk-common.c: Likewise.
25612         * combine-stack-adj.c: Likewise.
25613         * combine.c: Likewise.
25614         * compare-elim.c: Likewise.
25615         * convert.c: Likewise.
25616         * coverage.c: Likewise.
25617         * cppbuiltin.c: Likewise.
25618         * cprop.c: Likewise.
25619         * cse.c: Likewise.
25620         * cselib.c: Likewise.
25621         * data-streamer-in.c: Likewise.
25622         * data-streamer-out.c: Likewise.
25623         * data-streamer.c: Likewise.
25624         * dbxout.c: Likewise.
25625         * dce.c: Likewise.
25626         * ddg.c: Likewise.
25627         * debug.c: Likewise.
25628         * df-core.c: Likewise.
25629         * df-problems.c: Likewise.
25630         * df-scan.c: Likewise.
25631         * df.h: Likewise.
25632         * dfp.c: Likewise.
25633         * diagnostic-core.h: Likewise.
25634         * diagnostic.c: Likewise.
25635         * dojump.c: Likewise.
25636         * dominance.c: Likewise.
25637         * domwalk.c: Likewise.
25638         * double-int.c: Likewise.
25639         * dse.c: Likewise.
25640         * dumpfile.c: Likewise.
25641         * dumpfile.h: Likewise.
25642         * dwarf2asm.c: Likewise.
25643         * dwarf2cfi.c: Likewise.
25644         * dwarf2out.c: Likewise.
25645         * emit-rtl.c: Likewise.
25646         * et-forest.c: Likewise.
25647         * except.c: Likewise.
25648         * explow.c: Likewise.
25649         * expmed.c: Likewise.
25650         * expr.c: Likewise.
25651         * final.c: Likewise.
25652         * fixed-value.c: Likewise.
25653         * fold-const.c: Likewise.
25654         * function.c: Likewise.
25655         * fwprop.c: Likewise.
25656         * gcc-plugin.h: Likewise.
25657         * gcse.c: Likewise.
25658         * generic-match-head.c: Likewise.
25659         * ggc-page.c: Likewise.
25660         * gimple-builder.c: Likewise.
25661         * gimple-expr.c: Likewise.
25662         * gimple-fold.c: Likewise.
25663         * gimple-iterator.c: Likewise.
25664         * gimple-low.c: Likewise.
25665         * gimple-match-head.c: Likewise.
25666         * gimple-pretty-print.c: Likewise.
25667         * gimple-ssa-isolate-paths.c: Likewise.
25668         * gimple-ssa-strength-reduction.c: Likewise.
25669         * gimple-streamer-in.c: Likewise.
25670         * gimple-streamer-out.c: Likewise.
25671         * gimple-streamer.h: Likewise.
25672         * gimple-walk.c: Likewise.
25673         * gimple.c: Likewise.
25674         * gimplify-me.c: Likewise.
25675         * gimplify.c: Likewise.
25676         * godump.c: Likewise.
25677         * graph.c: Likewise.
25678         * graphite-blocking.c: Likewise.
25679         * graphite-dependences.c: Likewise.
25680         * graphite-interchange.c: Likewise.
25681         * graphite-isl-ast-to-gimple.c: Likewise.
25682         * graphite-optimize-isl.c: Likewise.
25683         * graphite-poly.c: Likewise.
25684         * graphite-scop-detection.c: Likewise.
25685         * graphite-sese-to-poly.c: Likewise.
25686         * graphite.c: Likewise.
25687         * haifa-sched.c: Likewise.
25688         * hw-doloop.c: Likewise.
25689         * ifcvt.c: Likewise.
25690         * init-regs.c: Likewise.
25691         * input.c: Likewise.
25692         * internal-fn.c: Likewise.
25693         * ipa-chkp.c: Likewise.
25694         * ipa-comdats.c: Likewise.
25695         * ipa-cp.c: Likewise.
25696         * ipa-devirt.c: Likewise.
25697         * ipa-icf-gimple.c: Likewise.
25698         * ipa-icf.c: Likewise.
25699         * ipa-inline-analysis.c: Likewise.
25700         * ipa-inline-transform.c: Likewise.
25701         * ipa-inline.c: Likewise.
25702         * ipa-polymorphic-call.c: Likewise.
25703         * ipa-profile.c: Likewise.
25704         * ipa-prop.c: Likewise.
25705         * ipa-pure-const.c: Likewise.
25706         * ipa-ref.c: Likewise.
25707         * ipa-reference.c: Likewise.
25708         * ipa-split.c: Likewise.
25709         * ipa-utils.c: Likewise.
25710         * ipa-visibility.c: Likewise.
25711         * ipa.c: Likewise.
25712         * ira-build.c: Likewise.
25713         * ira-color.c: Likewise.
25714         * ira-conflicts.c: Likewise.
25715         * ira-costs.c: Likewise.
25716         * ira-emit.c: Likewise.
25717         * ira-lives.c: Likewise.
25718         * ira.c: Likewise.
25719         * jump.c: Likewise.
25720         * langhooks.c: Likewise.
25721         * lcm.c: Likewise.
25722         * loop-doloop.c: Likewise.
25723         * loop-init.c: Likewise.
25724         * loop-invariant.c: Likewise.
25725         * loop-iv.c: Likewise.
25726         * loop-unroll.c: Likewise.
25727         * lower-subreg.c: Likewise.
25728         * lra-assigns.c: Likewise.
25729         * lra-coalesce.c: Likewise.
25730         * lra-constraints.c: Likewise.
25731         * lra-eliminations.c: Likewise.
25732         * lra-lives.c: Likewise.
25733         * lra-remat.c: Likewise.
25734         * lra-spills.c: Likewise.
25735         * lra.c: Likewise.
25736         * lto-cgraph.c: Likewise.
25737         * lto-compress.c: Likewise.
25738         * lto-opts.c: Likewise.
25739         * lto-section-in.c: Likewise.
25740         * lto-section-out.c: Likewise.
25741         * lto-streamer-in.c: Likewise.
25742         * lto-streamer-out.c: Likewise.
25743         * lto-streamer.c: Likewise.
25744         * mcf.c: Likewise.
25745         * mode-switching.c: Likewise.
25746         * modulo-sched.c: Likewise.
25747         * omega.c: Likewise.
25748         * omp-low.c: Likewise.
25749         * optabs.c: Likewise.
25750         * opts-global.c: Likewise.
25751         * opts.h: Likewise.
25752         * passes.c: Likewise.
25753         * plugin.c: Likewise.
25754         * postreload-gcse.c: Likewise.
25755         * postreload.c: Likewise.
25756         * predict.c: Likewise.
25757         * pretty-print.h: Likewise.
25758         * print-rtl.c: Likewise.
25759         * print-tree.c: Likewise.
25760         * profile.c: Likewise.
25761         * real.c: Likewise.
25762         * realmpfr.c: Likewise.
25763         * recog.c: Likewise.
25764         * ree.c: Likewise.
25765         * reg-stack.c: Likewise.
25766         * regcprop.c: Likewise.
25767         * reginfo.c: Likewise.
25768         * regrename.c: Likewise.
25769         * regstat.c: Likewise.
25770         * reload.c: Likewise.
25771         * reload1.c: Likewise.
25772         * reorg.c: Likewise.
25773         * resource.c: Likewise.
25774         * rtl-chkp.c: Likewise.
25775         * rtl-error.c: Likewise.
25776         * rtlanal.c: Likewise.
25777         * rtlhooks.c: Likewise.
25778         * sanopt.c: Likewise.
25779         * sched-deps.c: Likewise.
25780         * sched-ebb.c: Likewise.
25781         * sched-rgn.c: Likewise.
25782         * sched-vis.c: Likewise.
25783         * sdbout.c: Likewise.
25784         * sel-sched-dump.c: Likewise.
25785         * sel-sched-ir.c: Likewise.
25786         * sel-sched.c: Likewise.
25787         * sese.c: Likewise.
25788         * shrink-wrap.c: Likewise.
25789         * simplify-rtx.c: Likewise.
25790         * stack-ptr-mod.c: Likewise.
25791         * statistics.c: Likewise.
25792         * stmt.c: Likewise.
25793         * stor-layout.c: Likewise.
25794         * store-motion.c: Likewise.
25795         * streamer-hooks.c: Likewise.
25796         * stringpool.c: Likewise.
25797         * symtab.c: Likewise.
25798         * target-globals.c: Likewise.
25799         * targhooks.c: Likewise.
25800         * toplev.c: Likewise.
25801         * tracer.c: Likewise.
25802         * trans-mem.c: Likewise.
25803         * tree-affine.c: Likewise.
25804         * tree-browser.c: Likewise.
25805         * tree-call-cdce.c: Likewise.
25806         * tree-cfg.c: Likewise.
25807         * tree-cfgcleanup.c: Likewise.
25808         * tree-chkp-opt.c: Likewise.
25809         * tree-chkp.c: Likewise.
25810         * tree-chrec.c: Likewise.
25811         * tree-complex.c: Likewise.
25812         * tree-data-ref.c: Likewise.
25813         * tree-dfa.c: Likewise.
25814         * tree-diagnostic.c: Likewise.
25815         * tree-dump.c: Likewise.
25816         * tree-eh.c: Likewise.
25817         * tree-emutls.c: Likewise.
25818         * tree-if-conv.c: Likewise.
25819         * tree-inline.c: Likewise.
25820         * tree-into-ssa.c: Likewise.
25821         * tree-iterator.c: Likewise.
25822         * tree-loop-distribution.c: Likewise.
25823         * tree-nested.c: Likewise.
25824         * tree-nrv.c: Likewise.
25825         * tree-object-size.c: Likewise.
25826         * tree-outof-ssa.c: Likewise.
25827         * tree-parloops.c: Likewise.
25828         * tree-phinodes.c: Likewise.
25829         * tree-predcom.c: Likewise.
25830         * tree-pretty-print.c: Likewise.
25831         * tree-profile.c: Likewise.
25832         * tree-scalar-evolution.c: Likewise.
25833         * tree-sra.c: Likewise.
25834         * tree-ssa-address.c: Likewise.
25835         * tree-ssa-alias.c: Likewise.
25836         * tree-ssa-ccp.c: Likewise.
25837         * tree-ssa-coalesce.c: Likewise.
25838         * tree-ssa-copy.c: Likewise.
25839         * tree-ssa-copyrename.c: Likewise.
25840         * tree-ssa-dce.c: Likewise.
25841         * tree-ssa-dom.c: Likewise.
25842         * tree-ssa-dse.c: Likewise.
25843         * tree-ssa-forwprop.c: Likewise.
25844         * tree-ssa-ifcombine.c: Likewise.
25845         * tree-ssa-live.c: Likewise.
25846         * tree-ssa-loop-ch.c: Likewise.
25847         * tree-ssa-loop-im.c: Likewise.
25848         * tree-ssa-loop-ivcanon.c: Likewise.
25849         * tree-ssa-loop-ivopts.c: Likewise.
25850         * tree-ssa-loop-manip.c: Likewise.
25851         * tree-ssa-loop-niter.c: Likewise.
25852         * tree-ssa-loop-prefetch.c: Likewise.
25853         * tree-ssa-loop-unswitch.c: Likewise.
25854         * tree-ssa-loop.c: Likewise.
25855         * tree-ssa-math-opts.c: Likewise.
25856         * tree-ssa-operands.c: Likewise.
25857         * tree-ssa-phiopt.c: Likewise.
25858         * tree-ssa-phiprop.c: Likewise.
25859         * tree-ssa-pre.c: Likewise.
25860         * tree-ssa-propagate.c: Likewise.
25861         * tree-ssa-reassoc.c: Likewise.
25862         * tree-ssa-sccvn.c: Likewise.
25863         * tree-ssa-scopedtables.c: Likewise.
25864         * tree-ssa-sink.c: Likewise.
25865         * tree-ssa-strlen.c: Likewise.
25866         * tree-ssa-structalias.c: Likewise.
25867         * tree-ssa-tail-merge.c: Likewise.
25868         * tree-ssa-ter.c: Likewise.
25869         * tree-ssa-threadedge.c: Likewise.
25870         * tree-ssa-threadupdate.c: Likewise.
25871         * tree-ssa-uncprop.c: Likewise.
25872         * tree-ssa-uninit.c: Likewise.
25873         * tree-ssa.c: Likewise.
25874         * tree-ssanames.c: Likewise.
25875         * tree-stdarg.c: Likewise.
25876         * tree-streamer-in.c: Likewise.
25877         * tree-streamer-out.c: Likewise.
25878         * tree-streamer.c: Likewise.
25879         * tree-switch-conversion.c: Likewise.
25880         * tree-tailcall.c: Likewise.
25881         * tree-vect-data-refs.c: Likewise.
25882         * tree-vect-generic.c: Likewise.
25883         * tree-vect-loop-manip.c: Likewise.
25884         * tree-vect-loop.c: Likewise.
25885         * tree-vect-patterns.c: Likewise.
25886         * tree-vect-slp.c: Likewise.
25887         * tree-vect-stmts.c: Likewise.
25888         * tree-vectorizer.c: Likewise.
25889         * tree-vrp.c: Likewise.
25890         * tree.c: Likewise.
25891         * tsan.c: Likewise.
25892         * ubsan.c: Likewise.
25893         * valtrack.c: Likewise.
25894         * value-prof.c: Likewise.
25895         * var-tracking.c: Likewise.
25896         * varasm.c: Likewise.
25897         * varpool.c: Likewise.
25898         * vmsdbgout.c: Likewise.
25899         * vtable-verify.c: Likewise.
25900         * web.c: Likewise.
25901         * wide-int.cc: Likewise.
25902         * xcoffout.c: Likewise.
25903         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25904         * common/common-targhooks.c: Likewise.
25905         * config/aarch64/aarch64-builtins.c: Likewise.
25906         * config/aarch64/aarch64.c: Likewise.
25907         * config/alpha/alpha.c: Likewise.
25908         * config/arc/arc.c: Likewise.
25909         * config/arm/aarch-common.c: Likewise.
25910         * config/arm/arm-builtins.c: Likewise.
25911         * config/arm/arm-c.c: Likewise.
25912         * config/arm/arm.c: Likewise.
25913         * config/avr/avr-c.c: Likewise.
25914         * config/avr/avr-log.c: Likewise.
25915         * config/avr/avr.c: Likewise.
25916         * config/bfin/bfin.c: Likewise.
25917         * config/c6x/c6x.c: Likewise.
25918         * config/cr16/cr16.c: Likewise.
25919         * config/cris/cris.c: Likewise.
25920         * config/darwin-c.c: Likewise.
25921         * config/darwin.c: Likewise.
25922         * config/default-c.c: Likewise.
25923         * config/epiphany/epiphany.c: Likewise.
25924         * config/epiphany/mode-switch-use.c: Likewise.
25925         * config/epiphany/resolve-sw-modes.c: Likewise.
25926         * config/fr30/fr30.c: Likewise.
25927         * config/frv/frv.c: Likewise.
25928         * config/ft32/ft32.c: Likewise.
25929         * config/glibc-c.c: Likewise.
25930         * config/h8300/h8300.c: Likewise.
25931         * config/i386/i386-c.c: Likewise.
25932         * config/i386/i386.c: Likewise.
25933         * config/i386/msformat-c.c: Likewise.
25934         * config/i386/winnt-cxx.c: Likewise.
25935         * config/i386/winnt-stubs.c: Likewise.
25936         * config/i386/winnt.c: Likewise.
25937         * config/ia64/ia64-c.c: Likewise.
25938         * config/ia64/ia64.c: Likewise.
25939         * config/iq2000/iq2000.c: Likewise.
25940         * config/lm32/lm32.c: Likewise.
25941         * config/m32c/m32c-pragma.c: Likewise.
25942         * config/m32c/m32c.c: Likewise.
25943         * config/m32r/m32r.c: Likewise.
25944         * config/m68k/m68k.c: Likewise.
25945         * config/mcore/mcore.c: Likewise.
25946         * config/mep/mep-pragma.c: Likewise.
25947         * config/mep/mep.c: Likewise.
25948         * config/microblaze/microblaze-c.c: Likewise.
25949         * config/microblaze/microblaze.c: Likewise.
25950         * config/mips/mips.c: Likewise.
25951         * config/mmix/mmix.c: Likewise.
25952         * config/mn10300/mn10300.c: Likewise.
25953         * config/moxie/moxie.c: Likewise.
25954         * config/msp430/msp430-c.c: Likewise.
25955         * config/msp430/msp430.c: Likewise.
25956         * config/nds32/nds32-cost.c: Likewise.
25957         * config/nds32/nds32-fp-as-gp.c: Likewise.
25958         * config/nds32/nds32-intrinsic.c: Likewise.
25959         * config/nds32/nds32-isr.c: Likewise.
25960         * config/nds32/nds32-md-auxiliary.c: Likewise.
25961         * config/nds32/nds32-memory-manipulation.c: Likewise.
25962         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25963         * config/nds32/nds32-predicates.c: Likewise.
25964         * config/nds32/nds32.c: Likewise.
25965         * config/nios2/nios2.c: Likewise.
25966         * config/nvptx/nvptx.c: Likewise.
25967         * config/pa/pa.c: Likewise.
25968         * config/pdp11/pdp11.c: Likewise.
25969         * config/rl78/rl78-c.c: Likewise.
25970         * config/rl78/rl78.c: Likewise.
25971         * config/rs6000/rs6000-c.c: Likewise.
25972         * config/rs6000/rs6000.c: Likewise.
25973         * config/rx/rx.c: Likewise.
25974         * config/s390/s390-c.c: Likewise.
25975         * config/s390/s390.c: Likewise.
25976         * config/sh/sh-c.c: Likewise.
25977         * config/sh/sh-mem.cc: Likewise.
25978         * config/sh/sh.c: Likewise.
25979         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25980         * config/sh/sh_treg_combine.cc: Likewise.
25981         * config/sol2-c.c: Likewise.
25982         * config/sol2-cxx.c: Likewise.
25983         * config/sol2-stubs.c: Likewise.
25984         * config/sol2.c: Likewise.
25985         * config/sparc/sparc-c.c: Likewise.
25986         * config/sparc/sparc.c: Likewise.
25987         * config/spu/spu-c.c: Likewise.
25988         * config/spu/spu.c: Likewise.
25989         * config/stormy16/stormy16.c: Likewise.
25990         * config/tilegx/mul-tables.c: Likewise.
25991         * config/tilegx/tilegx-c.c: Likewise.
25992         * config/tilegx/tilegx.c: Likewise.
25993         * config/tilepro/mul-tables.c: Likewise.
25994         * config/tilepro/tilepro-c.c: Likewise.
25995         * config/tilepro/tilepro.c: Likewise.
25996         * config/v850/v850-c.c: Likewise.
25997         * config/v850/v850.c: Likewise.
25998         * config/vax/vax.c: Likewise.
25999         * config/visium/visium.c: Likewise.
26000         * config/vms/vms-c.c: Likewise.
26001         * config/vms/vms.c: Likewise.
26002         * config/vxworks.c: Likewise.
26003         * config/winnt-c.c: Likewise.
26004         * config/xtensa/xtensa.c: Likewise.
26005
26006 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
26007
26008         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26009         function.
26010         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26011
26012 2015-06-17  Richard Biener  <rguenther@suse.de>
26013
26014         PR tree-optimization/66251
26015         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26016         stmts for SLP strided stores.
26017
26018         Revert
26019         2015-05-22  Richard Biener  <rguenther@suse.de>
26020
26021         PR tree-optimization/66251
26022         * tree-vect-stmts.c (vectorizable_conversion): Properly
26023         set STMT_VINFO_VEC_STMT even for the SLP case.
26024
26025         2015-05-26  Michael Matz  <matz@suse.de>
26026
26027         PR middle-end/66251
26028         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26029         STMT_VINFO_VEC_STMT, also with SLP.
26030
26031 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
26032
26033         PR target/56766
26034         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26035         (*avx_addsubv4df3_1s): Ditto.
26036         (*sse3_addsubv2df3_1): Ditto.
26037         (*sse3_addsubv2df3_1s): Ditto.
26038         (*avx_addsubv8sf3_1): Ditto.
26039         (*avx_addsubv8sf3_1s): Ditto.
26040         (*sse3_addsubv4sf3_1): Ditto.
26041         (*sse3_addsubv4sf3_1s): Ditto.
26042
26043 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
26044
26045         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26046         (SYSROOT_SUFFIX_SPEC): Update.
26047         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26048         (STARTFILE_PREFIX_SPEC): Update.
26049         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26050         (MULTILIB_REQUIRED): New.
26051         (MULTILIB_OSDIRNAMES): New.
26052         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26053         (MULTILIB_REQUIRED): New.
26054         (MULTILIB_OSDIRNAMES): New.
26055
26056 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
26057
26058         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26059         * config/aarch64/aarch64-options-extensions.def: Update "fP",
26060         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
26061         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26062         (AARCH64_FL_PAN): New.
26063         (AARCH64_FL_LOR): New.
26064         (AARCH64_FL_RDMA): New.
26065         (AARCH64_FL_FOR_ARCH8_1): New.
26066         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26067         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26068
26069 2015-06-16  Martin Liska  <mliska@suse.cz>
26070
26071         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26072         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26073         guard.
26074
26075 2015-06-16  Richard Biener  <rguenther@suse.de>
26076
26077         * tree-vect-stmts.c (vectorizable_store): Adjust.
26078         (vectorizable_load): Likewise.
26079         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26080         Simplify.
26081         (vect_create_data_ref_ptr): Likewise.
26082         (bump_vector_ptr): Adjust.
26083
26084 2015-06-16  Richard Biener  <rguenther@suse.de>
26085
26086         * tree-vect-stmts.c (vectorizable_load): Properly start loads
26087         with the first element if this is grouped loads.
26088
26089 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
26090
26091         * config/arm/arm-protos.h (struct tune_params): Rename
26092         log_op_non_sc to log_op_non_short_circuit, and rename enum
26093         values to expand SC to SHORT_CIRCUIT.
26094         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26095         to LOG_OP_NON_SHORT_CIRCUIT.
26096         (arm_fastmul_tune):Likewise
26097         (arm_strongarm_tune): Likewise.
26098         (arm_xscale_tune): Likewise.
26099         (arm_9e_tune): Likewise.
26100         (arm_marvell_pj4_tune): Likewise.
26101         (arm_v6t2_tune): Likewise.
26102         (arm_cortex_tune): Likewise.
26103         (arm_cortex_a8_tune): Likewise.
26104         (arm_cortex_a7_tune): Likewise.
26105         (arm_cortex_a15_tune): Likewise.
26106         (arm_cortex_a53_tune): Likewise.
26107         (arm_cortex_a57_tune): Likewise.
26108         (arm_xgene1_tune): Likewise.
26109         (arm_cortex_a5_tune): Likewise.
26110         (arm_cortex_a9_tune): Likewise.
26111         (arm_cortex_a12_tune): Likewise.
26112         (arm_v7m_tune): Likewise.
26113         (arm_cortex_m7_tune): Likewise.
26114         (arm_v6m_tune): Likewise.
26115         (arm_fa726te_tune): Likewise.
26116
26117 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
26118
26119         * altivec.md: Delete UNSPEC_VMLADDUHM.
26120         (mulv4si3_p8): New pattern.
26121         (mulv4si3): Use it for POWER8.
26122         (mulv8hi3): Use vmladduhm with zero addend.
26123         (altivec_vmladduhm): Descriptive RTL.
26124
26125 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
26126
26127         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26128         to use neon_move instead of mov_imm.
26129         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26130         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26131
26132         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26133         aarch64_float_const_zero_rtx_p check before TFmode check.
26134         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26135         an fp zero.
26136         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
26137         code and attributes to match.  Change condition from register_operand
26138         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
26139         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
26140         to store2.
26141
26142 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
26143
26144         PR debug/66535
26145         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26146         there is no parent.
26147
26148 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
26149
26150         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26151         HOST_WIDE_INT parameter.
26152
26153 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
26154
26155         PR ipa/66181
26156         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26157         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26158         TYPE_NO_FORCE_BLK.
26159         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26160
26161 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
26162
26163         * rtl.h (classify_insn): Declare.
26164         * emit-rtl.c (classify_insn): Move to...
26165         * rtl.c: ...here and add generator support.
26166         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26167         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26168         * genemit.c (gen_emit_seq): New function.
26169         (gen_expand, gen_split): Use it.
26170
26171 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
26172
26173         * tree.c (make_vector_stat): Fix comment to state that the
26174         function returns a VECTOR_CST.
26175
26176 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
26177
26178         * gensupport.h (add_implicit_parallel): Declare.
26179         * genrecog.c (add_implicit_parallel): Move to...
26180         * gensupport.c (add_implicit_parallel): ...here.
26181         (process_one_cond_exec): Use it.
26182         * genemit.c (gen_insn): Likewise.
26183
26184 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
26185
26186         PR bootstrap/66448
26187         * passes.c (rest_of_decl_compilation): Do not register globals for
26188         early debug if they are declared in built-ins.
26189
26190 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
26191
26192         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26193
26194 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26195
26196         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26197         manually swapping.
26198         (noce_try_cmove_arith): Likewise.
26199         (noce_get_alt_condition): Likewise.
26200
26201 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26202
26203         * common/config/i386/i386-common.c
26204         (OPTION_MASK_ISA_MWAITX_SET): New.
26205         (ix86_handle_option): Handle mwaitx.
26206         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26207         (x86_64-*-*): Likewise.
26208         * config/i386/mwaitxintrin.h: New header.
26209         * config/i386/cpuid.h (bit_MWAITX):  Define.
26210         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26211         MWAITX support.
26212         * config/i386/i386.opt (mwaitx): New.
26213         * config/i386/i386-builtin-types.def
26214         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26215         * config/i386/i386-c.c: Define __MWAITX__ if needed.
26216         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26217         (PTA_MWAITX): New.
26218         (ix86_option_override_internal): Handle new option.
26219         (processor_alias_table): Added PTA_MWAITX.
26220         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26221         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26222         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26223         IX86_BUILTIN_MONITORX  built-ins.
26224         * config/i386/i386.h (TARGET_MWAITX): New.
26225         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26226         UNSPEC_MONITORX.
26227         (mwaitx):  New pattern.
26228         (monitorx_<mode>): New pattern.
26229         * config/i386/x86intrin.h: Include mwaitxintrin.h.
26230         * doc/extend.texi: Document monitorx and mwaitx builtins.
26231         * doc/invoke.texi: Document -mmwaitx option.
26232
26233 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
26234
26235         * emit-rtl.c (need_atomic_barrier_p): Mask model with
26236         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
26237
26238 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26239
26240         * dbxout.c (xcoff_debug_hooks): Provide a function for
26241         register_main_translation_unit hook.
26242
26243 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26244
26245         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26246         variants cases from switch.
26247         (rs6000_post_atomic_barrier): Same.
26248         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26249         (rs6000_expand_atomic_exchange): Same.
26250         (rs6000_expand_atomic_op): Same.
26251         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26252         SYNC variants cases from switch.
26253         (atomic_load): Same.
26254         (atomic_store): Same.
26255
26256 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
26257
26258         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26259         CONST_INT for goto.
26260
26261 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
26262
26263         PR bootstrap/66448
26264         * dwarf2out.c (check_die): Check for common duplicate attributes.
26265         (add_location_or_const_value_attribute): Do not add duplicate
26266         attributes.
26267         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26268         time around.
26269         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26270         (gen_type_die_with_usage): Call check_die.
26271         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26272
26273 2015-06-11  Jason Merrill  <jason@redhat.com>
26274
26275         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26276         dies.
26277
26278 2015-06-11  Marek Polacek  <polacek@redhat.com>
26279
26280         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26281
26282 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
26283
26284         PR bootstrap/66252
26285         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26286         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26287         (*addx_extend_sp32): Fix pasto.
26288         (*subx_extend): Rename into...
26289         (*subx_extend_sp32): ...this.
26290         (*adddi3_extend_sp32): Add earlyclobber.
26291         (*subdi3_insn_sp32): Likewise.
26292         (*subdi3_extend_sp32): Likewise.
26293         (*and_not_di_sp32): Likewise.
26294         (*or_not_di_sp32): Likewise.
26295         (*xor_not_di_sp32): Likewise.
26296         (*negdi2_sp32): Likewise.
26297         (*one_cmpldi2_sp32): Likewise.
26298
26299 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
26300
26301         * debug.h (struct gcc_debug_hooks): Add a
26302         register_main_translation_unit hook.
26303         * debug.c (do_nothing_debug_hooks): Provide a function for this
26304         new hook.
26305         * dbxout.c (dbx_debug_hooks): Likewise.
26306         * sdbout.c (sdb_debug_hooks): Likewise.
26307         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26308         * dwarf2out.c (main_translation_unit): New global variable.
26309         (dwarf2out_register_main_translation_unit): New function
26310         implementing the new hook.
26311         (dwarf2_debug_hooks): Assign
26312         dwarf2out_register_main_translation_unit to this new hook.
26313         (dwarf2out_init): Associate any main translation unit to
26314         comp_unit_die ().
26315
26316 2015-06-11  Marek Polacek  <polacek@redhat.com>
26317
26318         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26319
26320 2015-06-11  Marek Polacek  <polacek@redhat.com>
26321
26322         * match.pd: Use single_use throughout.
26323
26324 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26325
26326         * config/arm/arm.c (arm_option_params_internal): When optimising
26327         for speed set max_insns_skipped when arm_restrict_it.
26328
26329 2015-06-11  Christian Bruel  <christian.bruel@st.com>
26330
26331         PR target/52144
26332         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26333          macros in ...
26334         (arm_cpu_builtins): New function.
26335         (arm_pragma_target_parse): Call arm_cpu_builtins.
26336         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26337         (arm_register_target_pragmas): Likewise.
26338         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26339          Call arm_register_target_pragmas.
26340         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26341         (arm_pragma_target_parse): Likewise.
26342
26343 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26344
26345         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26346         of the second operand.
26347
26348 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
26349
26350         PR target/66473
26351         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26352         to prepare mask operand for AVX512 modes.
26353
26354 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
26355
26356         PR target/66474
26357         * doc/md.texi (Machine Constraints): Document that on the PowerPC
26358         if you use a constraint that targets a VSX register, you must use
26359         %x<n> in the template.
26360
26361 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
26362
26363         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26364         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26365         (define_insn "trap"): New definition.
26366
26367 2015-06-10  Richard Biener  <rguenther@suse.de>
26368
26369         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26370         out from ...
26371         (vect_supported_load_permutation_p): ... here.  Handle
26372         supportable permutations in reductions.
26373         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26374         for vectorizing strided group loads.
26375
26376 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
26377
26378         PR target/66470
26379         * config/i386/i386.c (ix86_split_long_move): For collisions
26380         involving direct tls segment refs, move the UNSPEC_TP possibly
26381         wrapped in ZERO_EXTEND out of the address for lea, to each of
26382         the memory loads.
26383
26384 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26385
26386         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26387         dmb sy. Adjust tabs.
26388
26389 2015-06-10  Tom de Vries  <tom@codesourcery.com>
26390
26391         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26392
26393 2015-06-10  Martin Liska  <mliska@suse.cz>
26394
26395         PR bootstrap/66471
26396         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26397         all enum values in mem_alloc_origin.
26398         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26399         name.
26400         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26401         * bitmap.c (bitmap_register): Likewise.
26402         (dump_bitmap_statistics): Likewise.
26403         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26404         (ggc_record_overhead): Likewise.
26405         * hash-map.h: Likewise.
26406         * hash-set.h: Likewise.
26407         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26408         * hash-table.h: Likewise.
26409         * vec.c (vec_prefix::register_overhead): Likewise.
26410         (vec_prefix::release_overhead): Likewise.
26411         (dump_vec_loc_statistics): Likewise.
26412
26413 2015-06-09  Christian Bruel  <christian.bruel@st.com>
26414
26415         PR target/52144
26416         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26417         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26418         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26419         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26420         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26421         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26422         (arm_valid_target_attribute_p): Likewise.
26423         (arm_set_current_function, arm_can_inline_p): Likewise.
26424         (arm_valid_target_attribute_rec): Likewise.
26425         (arm_previous_fndecl): New variable.
26426         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26427         (TARGET_CAN_INLINE_P): Define.
26428         (arm_asm_trampoline_template): Emit mode.
26429         (arm_file_start): Don't set unified syntax.
26430         (arm_declare_function_name): Set unified syntax and mode.
26431         (arm_option_override): Init target_option_default_node.
26432         and target_option_current_node.
26433         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26434         (*call_symbol): Likewise.
26435         * doc/extend.texi: Document ARM/Thumb target attribute.
26436         * doc/invoke.texi: Likewise.
26437
26438 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26439
26440         Revert:
26441         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26442         PR rtl-optimization/64164
26443         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26444         * tree-ssa-copyrename.c: Removed.
26445         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26446         -ftree-coalesce-vars.
26447         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26448         * common.opt (ftree-copyrename): Ignore.
26449         (ftree-coalesce-inlined-vars): Likewise.
26450         * doc/invoke.texi: Remove the ignored options above.
26451         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26452         * tree-ssa-coalesce.h: ... here.
26453         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26454         headers required by it.
26455         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26456         across variables when flag_tree_coalesce_vars.  Check register
26457         use and promoted modes to allow coalescing.  Moved to
26458         tree-ssa-coalesce.c.
26459         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26460         with its member functions to tree-ssa-coalesce.c.
26461         (var_map_base_init): Likewise.  Renamed to
26462         compute_samebase_partition_bases.
26463         (partition_view_normal): Drop want_bases parameter.
26464         (partition_view_bitmap): Likewise.
26465         * tree-ssa-live.h: Adjust declarations.
26466         * tree-ssa-coalesce.c: Include explow.h.
26467         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26468         default defs at the entry point.
26469         (dump_part_var_map): New.
26470         (compute_optimized_partition_bases): New, called by...
26471         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26472         of compute_samebase_partition_bases.  Adjust.
26473         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26474         * cfgexpand.c (leader_merge): New.
26475         (get_rtl_for_parm_ssa_default_def): New.
26476         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26477         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26478         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26479         redundant MEM attr setting.
26480         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26481         from...
26482         (expand_one_stack_var): ... this.  New wrapper to check and
26483         skip already expanded SSA partitions.
26484         (record_alignment_for_reg_var): New, factored out of...
26485         (expand_one_var): ... this.
26486         (expand_one_ssa_partition): New.
26487         (adjust_one_expanded_partition_var): New.
26488         (expand_one_register_var): Check and skip already expanded SSA
26489         partitions.
26490         (expand_used_vars): Don't create DECLs for anonymous SSA
26491         names.  Expand all SSA partitions, then adjust all SSA names.
26492         (pass::execute): Replace the loops that set
26493         SA.partition_to_pseudo from partition leaders and cleared
26494         DECL_RTL for multi-location variables, and that which used to
26495         rename vars and set attrs, with one that clears DECL_RTL and
26496         checks that PARMs and RESULTs default_defs match DECL_RTL.
26497         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26498         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26499         * explow.c (promote_ssa_mode): New.
26500         * explow.h (promote_ssa_mode): Declare.
26501         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26502         * function.c: Include cfgexpand.h.
26503         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26504         (use_register_for_parm_decl): Wrapper for the above to
26505         special-case the result_ptr.
26506         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26507         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26508         multiple locations.
26509         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26510         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26511         (assign_parm_setup_block): Prefer SSA-assigned location.
26512         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26513         if stack_parm is NULL.
26514         (assign_parm_setup_stack): Prefer SSA-assigned location.
26515         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26516         rtl before testing for pointer bounds.  Special-case result_ptr.
26517         (expand_function_start): Maybe reset DECL_RTL of result.
26518         Prefer SSA-assigned location for result and static chain.
26519         Factor out DECL_RESULT and SET_DECL_RTL.
26520         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26521         anonymous SSA names.  Use promote_ssa_mode.
26522         (get_temp_reg): Likewise.
26523         (remove_ssa_form): Adjust.
26524         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26525         and get its reg_usage for reg invalidation.
26526         (compute_bb_dataflow): Pass it insn.
26527         (emit_notes_in_bb): Likewise.
26528         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26529         fail assert on conversion between unsigned types.
26530
26531 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26532
26533         PR tree-optimization/65460
26534         * omp-low.c (expand_omp_target): Set parallelized_function on
26535         cgraph_node for child_fn.
26536
26537 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26538
26539         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26540         parallelized_function before add_new_function.
26541
26542 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
26543
26544         * gcc-plugin.h: Move decls to plugin.h and include it.
26545         * plugin.h: Relocate decls from gcc-plugin.h
26546         * ggc-page.c: Include required header files.
26547         * passes.c: Likewise.
26548         * cgraphunit.c: Likewise.
26549
26550 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26551
26552         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26553
26554 2015-06-09  Jason Merrill  <jason@redhat.com>
26555
26556         PR bootstrap/66448
26557         * toplev.c (check_global_declaration): Don't warn about a clone.
26558
26559 2015-06-09  Marek Polacek  <polacek@redhat.com>
26560
26561         PR tree-optimization/66299
26562         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26563         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26564         patterns.
26565
26566 2015-06-09  Richard Biener  <rguenther@suse.de>
26567
26568         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26569         (vect_analyze_slp_instance): Instead do not falsely drop
26570         load permutations.
26571
26572 2015-06-09  Richard Biener  <rguenther@suse.de>
26573
26574         PR middle-end/66423
26575         * match.pd: Handle A % (unsigned)(1 << B).
26576
26577 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
26578
26579         * varasm.c (output_object_block_htab): Remove.
26580         (output_object_block_compare): New.
26581         (output_object_blocks): Sort named object_blocks before outputting
26582         them.
26583
26584 2015-06-09  Richard Biener  <rguenther@suse.de>
26585
26586         PR tree-optimization/66419
26587         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26588         consider GROUP_GAP when detecting a perfect subchain.
26589
26590 2015-06-09  Nick Clifton  <nickc@redhat.com>
26591
26592         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26593         place read only data in the .frodata section.
26594
26595 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
26596
26597         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26598         (atomic_store<mode>): Likewise.
26599
26600 2015-06-09  Richard Biener  <rguenther@suse.de>
26601
26602         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26603
26604 2015-06-09  Richard Biener  <rguenther@suse.de>
26605
26606         PR middle-end/66413
26607         * tree-inline.c (insert_init_debug_bind): Unshare value.
26608
26609 2015-06-09  Richard Biener  <rguenther@suse.de>
26610
26611         PR tree-optimization/66396
26612         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26613         Rename virtual operands.
26614
26615 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26616
26617         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26618         always return false.
26619
26620 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26621
26622         PR rtl-optimization/64164
26623         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26624         * tree-ssa-copyrename.c: Removed.
26625         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26626         -ftree-coalesce-vars.
26627         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26628         * common.opt (ftree-copyrename): Ignore.
26629         (ftree-coalesce-inlined-vars): Likewise.
26630         * doc/invoke.texi: Remove the ignored options above.
26631         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26632         * tree-ssa-coalesce.h: ... here.
26633         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26634         headers required by it.
26635         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26636         across variables when flag_tree_coalesce_vars.  Check register
26637         use and promoted modes to allow coalescing.  Moved to
26638         tree-ssa-coalesce.c.
26639         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26640         with its member functions to tree-ssa-coalesce.c.
26641         (var_map_base_init): Likewise.  Renamed to
26642         compute_samebase_partition_bases.
26643         (partition_view_normal): Drop want_bases parameter.
26644         (partition_view_bitmap): Likewise.
26645         * tree-ssa-live.h: Adjust declarations.
26646         * tree-ssa-coalesce.c: Include explow.h.
26647         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26648         default defs at the entry point.
26649         (dump_part_var_map): New.
26650         (compute_optimized_partition_bases): New, called by...
26651         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26652         of compute_samebase_partition_bases.  Adjust.
26653         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26654         * cfgexpand.c (leader_merge): New.
26655         (get_rtl_for_parm_ssa_default_def): New.
26656         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26657         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26658         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26659         redundant MEM attr setting.
26660         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26661         from...
26662         (expand_one_stack_var): ... this.  New wrapper to check and
26663         skip already expanded SSA partitions.
26664         (record_alignment_for_reg_var): New, factored out of...
26665         (expand_one_var): ... this.
26666         (expand_one_ssa_partition): New.
26667         (adjust_one_expanded_partition_var): New.
26668         (expand_one_register_var): Check and skip already expanded SSA
26669         partitions.
26670         (expand_used_vars): Don't create DECLs for anonymous SSA
26671         names.  Expand all SSA partitions, then adjust all SSA names.
26672         (pass::execute): Replace the loops that set
26673         SA.partition_to_pseudo from partition leaders and cleared
26674         DECL_RTL for multi-location variables, and that which used to
26675         rename vars and set attrs, with one that clears DECL_RTL and
26676         checks that PARMs and RESULTs default_defs match DECL_RTL.
26677         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26678         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26679         * explow.c (promote_ssa_mode): New.
26680         * explow.h (promote_ssa_mode): Declare.
26681         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26682         * function.c: Include cfgexpand.h.
26683         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26684         (use_register_for_parm_decl): Wrapper for the above to
26685         special-case the result_ptr.
26686         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26687         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26688         multiple locations.
26689         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26690         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26691         (assign_parm_setup_block): Prefer SSA-assigned location.
26692         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26693         if stack_parm is NULL.
26694         (assign_parm_setup_stack): Prefer SSA-assigned location.
26695         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26696         rtl before testing for pointer bounds.  Special-case result_ptr.
26697         (expand_function_start): Maybe reset DECL_RTL of result.
26698         Prefer SSA-assigned location for result and static chain.
26699         Factor out DECL_RESULT and SET_DECL_RTL.
26700         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26701         anonymous SSA names.  Use promote_ssa_mode.
26702         (get_temp_reg): Likewise.
26703         (remove_ssa_form): Adjust.
26704         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26705         and get its reg_usage for reg invalidation.
26706         (compute_bb_dataflow): Pass it insn.
26707         (emit_notes_in_bb): Likewise.
26708         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26709         fail assert on conversion between unsigned types.
26710
26711 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26712
26713         PR debug/58315
26714         * tree-inline.c (reset_debug_binding): New.
26715         (reset_debug_bindings): Likewise.
26716         (expand_call_inline): Call it.
26717
26718 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26719
26720         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26721         TYPE_STRING_FLAG.
26722
26723 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26724
26725         * lto-streamer-out.c (lto_output_location): Stream
26726         reserved locations correctly.
26727         * lto-streamer-in.c (lto_output_location): Likewise.
26728
26729 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
26730
26731         * coretypes.h: Include hash-table.h and hash-set.h for host files.
26732         * ggc.h: Don't include statistics.h>
26733         * hash-map.h: Remove all includes.
26734         * hash-set.h: Likewise.
26735         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26736         the include list. Remove <new>.
26737         * inchash.h: Remove all includes.
26738         * mem-stats.h: Likewise.
26739         * vec.h: No special processing for generators or ggc.
26740         * alias.c : Adjust include files.
26741         * alloc-pool.c : Likewise.
26742         * alloc-pool.h : Likewise.
26743         * asan.c : Likewise.
26744         * attribs.c : Likewise.
26745         * auto-inc-dec.c : Likewise.
26746         * auto-profile.c : Likewise.
26747         * bb-reorder.c : Likewise.
26748         * bitmap.c : Likewise.
26749         * bitmap.h : Likewise.
26750         * bt-load.c : Likewise.
26751         * builtins.c : Likewise.
26752         * caller-save.c : Likewise.
26753         * calls.c : Likewise.
26754         * ccmp.c : Likewise.
26755         * cfg.c : Likewise.
26756         * cfganal.c : Likewise.
26757         * cfgbuild.c : Likewise.
26758         * cfgcleanup.c : Likewise.
26759         * cfgexpand.c : Likewise.
26760         * cfghooks.c : Likewise.
26761         * cfgloop.c : Likewise.
26762         * cfgloop.h : Likewise.
26763         * cfgloopanal.c : Likewise.
26764         * cfgloopmanip.c : Likewise.
26765         * cfgrtl.c : Likewise.
26766         * cgraph.c : Likewise.
26767         * cgraphbuild.c : Likewise.
26768         * cgraphclones.c : Likewise.
26769         * cgraphunit.c : Likewise.
26770         * cilk-common.c : Likewise.
26771         * combine-stack-adj.c : Likewise.
26772         * combine.c : Likewise.
26773         * compare-elim.c : Likewise.
26774         * context.c : Likewise.
26775         * convert.c : Likewise.
26776         * coverage.c : Likewise.
26777         * cppbuiltin.c : Likewise.
26778         * cprop.c : Likewise.
26779         * cse.c : Likewise.
26780         * cselib.c : Likewise.
26781         * data-streamer-in.c : Likewise.
26782         * data-streamer-out.c : Likewise.
26783         * data-streamer.c : Likewise.
26784         * data-streamer.h : Likewise.
26785         * dbxout.c : Likewise.
26786         * dce.c : Likewise.
26787         * ddg.c : Likewise.
26788         * debug.c : Likewise.
26789         * df-core.c : Likewise.
26790         * df-problems.c : Likewise.
26791         * df-scan.c : Likewise.
26792         * df.h : Likewise.
26793         * dfp.c : Likewise.
26794         * dojump.c : Likewise.
26795         * dominance.c : Likewise.
26796         * domwalk.c : Likewise.
26797         * double-int.c : Likewise.
26798         * dse.c : Likewise.
26799         * dumpfile.c : Likewise.
26800         * dwarf2asm.c : Likewise.
26801         * dwarf2cfi.c : Likewise.
26802         * dwarf2out.c : Likewise.
26803         * emit-rtl.c : Likewise.
26804         * et-forest.c : Likewise.
26805         * except.c : Likewise.
26806         * except.h : Likewise.
26807         * explow.c : Likewise.
26808         * expmed.c : Likewise.
26809         * expr.c : Likewise.
26810         * final.c : Likewise.
26811         * fixed-value.c : Likewise.
26812         * fold-const.c : Likewise.
26813         * function.c : Likewise.
26814         * fwprop.c : Likewise.
26815         * gcc-plugin.h : Likewise.
26816         * gcc.c : Likewise.
26817         * gcse-common.c : Likewise.
26818         * gcse.c : Likewise.
26819         * genattrtab.c : Likewise.
26820         * genautomata.c : Likewise.
26821         * genconditions.c : Likewise.
26822         * genemit.c : Likewise.
26823         * generic-match-head.c : Likewise.
26824         * genextract.c : Likewise.
26825         * gengtype-state.c : Likewise.
26826         * gengtype.c : Likewise.
26827         * genhooks.c : Likewise.
26828         * genmatch.c : Likewise.
26829         * genmodes.c : Likewise.
26830         * genrecog.c : Likewise.
26831         * gensupport.c : Likewise.
26832         * ggc-common.c : Likewise.
26833         * ggc-internal.h : Likewise.
26834         * ggc-none.c : Likewise.
26835         * ggc-page.c : Likewise.
26836         * gimple-builder.c : Likewise.
26837         * gimple-expr.c : Likewise.
26838         * gimple-fold.c : Likewise.
26839         * gimple-iterator.c : Likewise.
26840         * gimple-low.c : Likewise.
26841         * gimple-match-head.c : Likewise.
26842         * gimple-pretty-print.c : Likewise.
26843         * gimple-ssa-isolate-paths.c : Likewise.
26844         * gimple-ssa-strength-reduction.c : Likewise.
26845         * gimple-ssa.h : Likewise.
26846         * gimple-streamer-in.c : Likewise.
26847         * gimple-streamer-out.c : Likewise.
26848         * gimple-streamer.h : Likewise.
26849         * gimple-walk.c : Likewise.
26850         * gimple.c : Likewise.
26851         * gimplify-me.c : Likewise.
26852         * gimplify.c : Likewise.
26853         * godump.c : Likewise.
26854         * graph.c : Likewise.
26855         * graphds.c : Likewise.
26856         * graphite-blocking.c : Likewise.
26857         * graphite-dependences.c : Likewise.
26858         * graphite-interchange.c : Likewise.
26859         * graphite-isl-ast-to-gimple.c : Likewise.
26860         * graphite-optimize-isl.c : Likewise.
26861         * graphite-poly.c : Likewise.
26862         * graphite-scop-detection.c : Likewise.
26863         * graphite-sese-to-poly.c : Likewise.
26864         * graphite.c : Likewise.
26865         * haifa-sched.c : Likewise.
26866         * hard-reg-set.h : Likewise.
26867         * hw-doloop.c : Likewise.
26868         * ifcvt.c : Likewise.
26869         * inchash.c : Likewise.
26870         * incpath.c : Likewise.
26871         * init-regs.c : Likewise.
26872         * input.c : Likewise.
26873         * internal-fn.c : Likewise.
26874         * ipa-chkp.c : Likewise.
26875         * ipa-comdats.c : Likewise.
26876         * ipa-cp.c : Likewise.
26877         * ipa-devirt.c : Likewise.
26878         * ipa-icf-gimple.c : Likewise.
26879         * ipa-icf.c : Likewise.
26880         * ipa-inline-analysis.c : Likewise.
26881         * ipa-inline-transform.c : Likewise.
26882         * ipa-inline.c : Likewise.
26883         * ipa-polymorphic-call.c : Likewise.
26884         * ipa-profile.c : Likewise.
26885         * ipa-prop.c : Likewise.
26886         * ipa-pure-const.c : Likewise.
26887         * ipa-ref.c : Likewise.
26888         * ipa-reference.c : Likewise.
26889         * ipa-split.c : Likewise.
26890         * ipa-utils.c : Likewise.
26891         * ipa-visibility.c : Likewise.
26892         * ipa.c : Likewise.
26893         * ira-build.c : Likewise.
26894         * ira-color.c : Likewise.
26895         * ira-conflicts.c : Likewise.
26896         * ira-costs.c : Likewise.
26897         * ira-emit.c : Likewise.
26898         * ira-lives.c : Likewise.
26899         * ira.c : Likewise.
26900         * jump.c : Likewise.
26901         * langhooks.c : Likewise.
26902         * lcm.c : Likewise.
26903         * libfuncs.h : Likewise.
26904         * lists.c : Likewise.
26905         * loop-doloop.c : Likewise.
26906         * loop-init.c : Likewise.
26907         * loop-invariant.c : Likewise.
26908         * loop-iv.c : Likewise.
26909         * loop-unroll.c : Likewise.
26910         * lower-subreg.c : Likewise.
26911         * lra-assigns.c : Likewise.
26912         * lra-coalesce.c : Likewise.
26913         * lra-constraints.c : Likewise.
26914         * lra-eliminations.c : Likewise.
26915         * lra-lives.c : Likewise.
26916         * lra-remat.c : Likewise.
26917         * lra-spills.c : Likewise.
26918         * lra.c : Likewise.
26919         * lto-cgraph.c : Likewise.
26920         * lto-compress.c : Likewise.
26921         * lto-opts.c : Likewise.
26922         * lto-section-in.c : Likewise.
26923         * lto-section-out.c : Likewise.
26924         * lto-streamer-in.c : Likewise.
26925         * lto-streamer-out.c : Likewise.
26926         * lto-streamer.c : Likewise.
26927         * lto-streamer.h : Likewise.
26928         * mcf.c : Likewise.
26929         * mode-switching.c : Likewise.
26930         * modulo-sched.c : Likewise.
26931         * omega.c : Likewise.
26932         * omp-low.c : Likewise.
26933         * optabs.c : Likewise.
26934         * opts-global.c : Likewise.
26935         * opts.h : Likewise.
26936         * passes.c : Likewise.
26937         * plugin.c : Likewise.
26938         * postreload-gcse.c : Likewise.
26939         * postreload.c : Likewise.
26940         * predict.c : Likewise.
26941         * print-rtl.c : Likewise.
26942         * print-tree.c : Likewise.
26943         * profile.c : Likewise.
26944         * read-md.c : Likewise.
26945         * read-md.h : Likewise.
26946         * read-rtl.c : Likewise.
26947         * real.c : Likewise.
26948         * realmpfr.c : Likewise.
26949         * recog.c : Likewise.
26950         * ree.c : Likewise.
26951         * reg-stack.c : Likewise.
26952         * regcprop.c : Likewise.
26953         * reginfo.c : Likewise.
26954         * regrename.c : Likewise.
26955         * regstat.c : Likewise.
26956         * reload.c : Likewise.
26957         * reload1.c : Likewise.
26958         * reorg.c : Likewise.
26959         * resource.c : Likewise.
26960         * rtl-chkp.c : Likewise.
26961         * rtl.c : Likewise.
26962         * rtl.h : Likewise.
26963         * rtlanal.c : Likewise.
26964         * rtlhash.c : Likewise.
26965         * rtlhash.h : Likewise.
26966         * rtlhooks.c : Likewise.
26967         * sanopt.c : Likewise.
26968         * sched-deps.c : Likewise.
26969         * sched-ebb.c : Likewise.
26970         * sched-rgn.c : Likewise.
26971         * sched-vis.c : Likewise.
26972         * sdbout.c : Likewise.
26973         * sel-sched-dump.c : Likewise.
26974         * sel-sched-ir.c : Likewise.
26975         * sel-sched-ir.h : Likewise.
26976         * sel-sched.c : Likewise.
26977         * sese.c : Likewise.
26978         * shrink-wrap.c : Likewise.
26979         * shrink-wrap.h : Likewise.
26980         * simplify-rtx.c : Likewise.
26981         * stack-ptr-mod.c : Likewise.
26982         * statistics.c : Likewise.
26983         * stmt.c : Likewise.
26984         * stor-layout.c : Likewise.
26985         * store-motion.c : Likewise.
26986         * stringpool.c : Likewise.
26987         * symtab.c : Likewise.
26988         * target-globals.c : Likewise.
26989         * targhooks.c : Likewise.
26990         * tlink.c : Likewise.
26991         * toplev.c : Likewise.
26992         * tracer.c : Likewise.
26993         * trans-mem.c : Likewise.
26994         * tree-affine.c : Likewise.
26995         * tree-affine.h : Likewise.
26996         * tree-browser.c : Likewise.
26997         * tree-call-cdce.c : Likewise.
26998         * tree-cfg.c : Likewise.
26999         * tree-cfgcleanup.c : Likewise.
27000         * tree-chkp-opt.c : Likewise.
27001         * tree-chkp.c : Likewise.
27002         * tree-chrec.c : Likewise.
27003         * tree-complex.c : Likewise.
27004         * tree-data-ref.c : Likewise.
27005         * tree-dfa.c : Likewise.
27006         * tree-diagnostic.c : Likewise.
27007         * tree-dump.c : Likewise.
27008         * tree-eh.c : Likewise.
27009         * tree-eh.h : Likewise.
27010         * tree-emutls.c : Likewise.
27011         * tree-hasher.h : Likewise.
27012         * tree-if-conv.c : Likewise.
27013         * tree-inline.c : Likewise.
27014         * tree-inline.h : Likewise.
27015         * tree-into-ssa.c : Likewise.
27016         * tree-iterator.c : Likewise.
27017         * tree-loop-distribution.c : Likewise.
27018         * tree-nested.c : Likewise.
27019         * tree-nrv.c : Likewise.
27020         * tree-object-size.c : Likewise.
27021         * tree-outof-ssa.c : Likewise.
27022         * tree-parloops.c : Likewise.
27023         * tree-phinodes.c : Likewise.
27024         * tree-predcom.c : Likewise.
27025         * tree-pretty-print.c : Likewise.
27026         * tree-profile.c : Likewise.
27027         * tree-scalar-evolution.c : Likewise.
27028         * tree-sra.c : Likewise.
27029         * tree-ssa-address.c : Likewise.
27030         * tree-ssa-alias.c : Likewise.
27031         * tree-ssa-ccp.c : Likewise.
27032         * tree-ssa-coalesce.c : Likewise.
27033         * tree-ssa-copy.c : Likewise.
27034         * tree-ssa-copyrename.c : Likewise.
27035         * tree-ssa-dce.c : Likewise.
27036         * tree-ssa-dom.c : Likewise.
27037         * tree-ssa-dse.c : Likewise.
27038         * tree-ssa-forwprop.c : Likewise.
27039         * tree-ssa-ifcombine.c : Likewise.
27040         * tree-ssa-live.c : Likewise.
27041         * tree-ssa-loop-ch.c : Likewise.
27042         * tree-ssa-loop-im.c : Likewise.
27043         * tree-ssa-loop-ivcanon.c : Likewise.
27044         * tree-ssa-loop-ivopts.c : Likewise.
27045         * tree-ssa-loop-manip.c : Likewise.
27046         * tree-ssa-loop-niter.c : Likewise.
27047         * tree-ssa-loop-prefetch.c : Likewise.
27048         * tree-ssa-loop-unswitch.c : Likewise.
27049         * tree-ssa-loop.c : Likewise.
27050         * tree-ssa-math-opts.c : Likewise.
27051         * tree-ssa-operands.c : Likewise.
27052         * tree-ssa-phiopt.c : Likewise.
27053         * tree-ssa-phiprop.c : Likewise.
27054         * tree-ssa-pre.c : Likewise.
27055         * tree-ssa-propagate.c : Likewise.
27056         * tree-ssa-reassoc.c : Likewise.
27057         * tree-ssa-sccvn.c : Likewise.
27058         * tree-ssa-scopedtables.c : Likewise.
27059         * tree-ssa-sink.c : Likewise.
27060         * tree-ssa-strlen.c : Likewise.
27061         * tree-ssa-structalias.c : Likewise.
27062         * tree-ssa-tail-merge.c : Likewise.
27063         * tree-ssa-ter.c : Likewise.
27064         * tree-ssa-threadedge.c : Likewise.
27065         * tree-ssa-threadupdate.c : Likewise.
27066         * tree-ssa-uncprop.c : Likewise.
27067         * tree-ssa-uninit.c : Likewise.
27068         * tree-ssa.c : Likewise.
27069         * tree-ssanames.c : Likewise.
27070         * tree-stdarg.c : Likewise.
27071         * tree-streamer-in.c : Likewise.
27072         * tree-streamer-out.c : Likewise.
27073         * tree-streamer.c : Likewise.
27074         * tree-streamer.h : Likewise.
27075         * tree-switch-conversion.c : Likewise.
27076         * tree-tailcall.c : Likewise.
27077         * tree-vect-data-refs.c : Likewise.
27078         * tree-vect-generic.c : Likewise.
27079         * tree-vect-loop-manip.c : Likewise.
27080         * tree-vect-loop.c : Likewise.
27081         * tree-vect-patterns.c : Likewise.
27082         * tree-vect-slp.c : Likewise.
27083         * tree-vect-stmts.c : Likewise.
27084         * tree-vectorizer.c : Likewise.
27085         * tree-vectorizer.h : Likewise.
27086         * tree-vrp.c : Likewise.
27087         * tree.c : Likewise.
27088         * tsan.c : Likewise.
27089         * ubsan.c : Likewise.
27090         * valtrack.c : Likewise.
27091         * valtrack.h : Likewise.
27092         * value-prof.c : Likewise.
27093         * var-tracking.c : Likewise.
27094         * varasm.c : Likewise.
27095         * varpool.c : Likewise.
27096         * vec.c: Likewise.
27097         * vmsdbgout.c : Likewise.
27098         * vtable-verify.c : Likewise.
27099         * vtable-verify.h : Likewise.
27100         * web.c : Likewise.
27101         * wide-int.cc : Likewise.
27102         * xcoffout.c : Likewise.
27103         * config/aarch64/aarch64-builtins.c : Likewise.
27104         * config/aarch64/aarch64.c : Likewise.
27105         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27106         * config/alpha/alpha.c : Likewise.
27107         * config/arc/arc.c : Likewise.
27108         * config/arm/aarch-common.c : Likewise.
27109         * config/arm/arm-builtins.c : Likewise.
27110         * config/arm/arm-c.c : Likewise.
27111         * config/arm/arm.c : Likewise.
27112         * config/avr/avr-c.c : Likewise.
27113         * config/avr/avr-log.c : Likewise.
27114         * config/avr/avr.c : Likewise.
27115         * config/bfin/bfin.c : Likewise.
27116         * config/c6x/c6x.c : Likewise.
27117         * config/cr16/cr16.c : Likewise.
27118         * config/cris/cris.c : Likewise.
27119         * config/darwin-c.c : Likewise.
27120         * config/darwin.c : Likewise.
27121         * config/default-c.c : Likewise.
27122         * config/epiphany/epiphany.c : Likewise.
27123         * config/epiphany/mode-switch-use.c : Likewise.
27124         * config/epiphany/resolve-sw-modes.c : Likewise.
27125         * config/fr30/fr30.c : Likewise.
27126         * config/frv/frv.c : Likewise.
27127         * config/ft32/ft32.c : Likewise.
27128         * config/glibc-c.c : Likewise.
27129         * config/h8300/h8300.c : Likewise.
27130         * config/i386/i386-c.c : Likewise.
27131         * config/i386/i386.c : Likewise.
27132         * config/i386/msformat-c.c : Likewise.
27133         * config/i386/winnt-cxx.c : Likewise.
27134         * config/i386/winnt-stubs.c : Likewise.
27135         * config/i386/winnt.c : Likewise.
27136         * config/ia64/ia64-c.c : Likewise.
27137         * config/ia64/ia64.c : Likewise.
27138         * config/iq2000/iq2000.c : Likewise.
27139         * config/lm32/lm32.c : Likewise.
27140         * config/m32c/m32c-pragma.c : Likewise.
27141         * config/m32c/m32c.c : Likewise.
27142         * config/m32r/m32r.c : Likewise.
27143         * config/m68k/m68k.c : Likewise.
27144         * config/mcore/mcore.c : Likewise.
27145         * config/mep/mep-pragma.c : Likewise.
27146         * config/mep/mep.c : Likewise.
27147         * config/microblaze/microblaze-c.c : Likewise.
27148         * config/microblaze/microblaze.c : Likewise.
27149         * config/mips/mips.c : Likewise.
27150         * config/mmix/mmix.c : Likewise.
27151         * config/mn10300/mn10300.c : Likewise.
27152         * config/moxie/moxie.c : Likewise.
27153         * config/msp430/msp430-c.c : Likewise.
27154         * config/msp430/msp430.c : Likewise.
27155         * config/nds32/nds32-cost.c : Likewise.
27156         * config/nds32/nds32-fp-as-gp.c : Likewise.
27157         * config/nds32/nds32-intrinsic.c : Likewise.
27158         * config/nds32/nds32-isr.c : Likewise.
27159         * config/nds32/nds32-md-auxiliary.c : Likewise.
27160         * config/nds32/nds32-memory-manipulation.c : Likewise.
27161         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27162         * config/nds32/nds32-predicates.c : Likewise.
27163         * config/nds32/nds32.c : Likewise.
27164         * config/nios2/nios2.c : Likewise.
27165         * config/nvptx/nvptx.c : Likewise.
27166         * config/pa/pa.c : Likewise.
27167         * config/pdp11/pdp11.c : Likewise.
27168         * config/rl78/rl78-c.c : Likewise.
27169         * config/rl78/rl78.c : Likewise.
27170         * config/rs6000/rs6000-c.c : Likewise.
27171         * config/rs6000/rs6000.c : Likewise.
27172         * config/rx/rx.c : Likewise.
27173         * config/s390/s390-c.c : Likewise.
27174         * config/s390/s390.c : Likewise.
27175         * config/sh/sh-c.c : Likewise.
27176         * config/sh/sh-mem.cc : Likewise.
27177         * config/sh/sh.c : Likewise.
27178         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27179         * config/sh/sh_treg_combine.cc : Likewise.
27180         * config/sol2-c.c : Likewise.
27181         * config/sol2-cxx.c : Likewise.
27182         * config/sol2-stubs.c : Likewise.
27183         * config/sol2.c : Likewise.
27184         * config/sparc/sparc-c.c : Likewise.
27185         * config/sparc/sparc.c : Likewise.
27186         * config/spu/spu-c.c : Likewise.
27187         * config/spu/spu.c : Likewise.
27188         * config/stormy16/stormy16.c : Likewise.
27189         * config/tilegx/mul-tables.c : Likewise.
27190         * config/tilegx/tilegx-c.c : Likewise.
27191         * config/tilegx/tilegx.c : Likewise.
27192         * config/tilepro/mul-tables.c : Likewise.
27193         * config/tilepro/tilepro-c.c : Likewise.
27194         * config/tilepro/tilepro.c : Likewise.
27195         * config/v850/v850-c.c : Likewise.
27196         * config/v850/v850.c : Likewise.
27197         * config/vax/vax.c : Likewise.
27198         * config/visium/visium.c : Likewise.
27199         * config/vms/vms-c.c : Likewise.
27200         * config/vms/vms.c : Likewise.
27201         * config/vxworks.c : Likewise.
27202         * config/winnt-c.c : Likewise.
27203         * config/xtensa/xtensa.c : Likewise.
27204
27205 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27206
27207         PR lto/65378
27208         * ipa-utils.h (warn_types_mismatch): Update prototype.
27209         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27210         parameters.
27211         (type_mismatch_p): New function.
27212         (warn_types_mismatch): Reorg to work better on non-C++ types.
27213         (odr_types_equivalent_p): Add loc1/loc2 parameters.
27214         (add_type_duplicate): Update.
27215
27216 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27217
27218         PR rtl-optimization/66444
27219         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27220         call_used_regs.
27221
27222 2015-06-08  Richard Biener  <rguenther@suse.de>
27223
27224         PR tree-optimization/66422
27225         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27226         block after inserted gcc_unreachable.
27227
27228 2015-06-08  Nick Clifton  <nickc@redhat.com>
27229
27230         * config/rx/rx.c (rx_function_value): Do not promote vector types.
27231         (rx_promote_function_mode): Likewise.
27232         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27233
27234 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
27235
27236         * genattrtab.c (insn_alternatives): Change type from int *
27237         to uint64_t *.
27238         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27239         (get_attr_value): Change type of num_alt to uint64_t.
27240         (compute_alternative_mask): Change return type from
27241         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27242         (make_alternative_compare, mk_attr_alt): Change argument type
27243         from int to uint64_t.
27244         (simplify_test_exp): Change type of i from int to uint64_t.
27245         Shift ((uint64_t) 1) instead of 1 up.
27246         (main): Adjust oballocvec first argument from int to uint64_t.
27247         Shift ((uint64_t) 1) instead of 1 up.
27248
27249 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27250
27251         PR other/65366
27252         * gdbhooks.py: Import sys.
27253         (intptr): New function.  Replace int(...) by intptr(...).
27254
27255 2015-06-08  Richard Biener  <rguenther@suse.de>
27256
27257         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27258         adjustment for gaps at the end of a SLP load group properly.
27259         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27260         all permutations we can generate.
27261         (vect_transform_slp_perm_load): Use the correct group-size.
27262
27263 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
27264
27265         * genmatch.c (expr::gen_transform): For conditions, guess the type
27266         from the second operand.
27267
27268 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27269
27270         PR tree-optimization/66442
27271         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27272         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27273         if the loop latch is not a singleton.  Use
27274         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27275
27276 2015-06-08  Marek Polacek  <polacek@redhat.com>
27277
27278         PR sanitizer/66452
27279         * toplev.c (check_global_declaration): Don't warn about artificial
27280         decls.
27281
27282 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27283
27284         PR tree-optimization/66436
27285         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27286         dump file.
27287         * gimplify.c: Add tree-dump.h include.
27288         (gimplify_function_tree): Dump function to gimple dump file.
27289         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27290         dump file.
27291
27292 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27293
27294         PR tree-optimization/66435
27295         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27296         function.
27297
27298 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
27299
27300         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27301         of ptr_type_node to not be ptr_to_node.
27302         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27303         TREE_TYPE of pointers.
27304         * gimple-expr.c (useless_type_conversion): Reorder the check for
27305         function pointers and TYPE_CANONICAL.
27306
27307 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
27308
27309         PR bootstrap/66319
27310         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27311         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27312         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27313         later.
27314         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27315         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27316         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27317         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27318         and non iso if unix2003.
27319
27320 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
27321
27322         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27323
27324 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
27325
27326         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27327         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27328         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27329         except.c, final.c, function.c, gcse-common.c, genemit.c,
27330         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27331         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27332         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27333         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27334         more derived ones.
27335
27336 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
27337
27338         * combine.c (combine_split_insns): Remove cast.
27339         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27340         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27341         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27342         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27343         * genemit.c (gen_split): Change return type of generated functions to
27344         rtx_insn.
27345         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27346         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27347         gen_peephole2_* functions.
27348         (print_subroutine, main): Likewise.
27349         * recog.c (peephole2_optimize): Remove cast.
27350         (peep2_next_insn): Promote return type to rtx_insn.
27351         * recog.h (peep2_next_insn): Fix prototype.
27352         * rtl.h (try_split, split_insns): Likewise.
27353
27354 2015-06-06  DJ Delorie  <dj@redhat.com>
27355
27356         * config/msp430/msp430.c (msp430_asm_integer): Support addition
27357         and subtraction too.
27358
27359 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27360
27361         PR target/66410
27362         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27363         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27364         instead of Snd.  Disparage Sid/z alternative with '^'.
27365
27366 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
27367
27368         * dwarf2out.c: Remove deferred_locations*.
27369         (dwarf2_debug_hooks): Add early_finish hook.
27370         Remove global_decl hook.
27371         Add early_global_decl and late_global_decl hook.
27372         New global early_dwarf.
27373         New structure set_early_dwarf.
27374         (output_die): Indicate whether a DIE was generated early
27375         when generating assembly with -dA.
27376         (struct limbo_die_struct): Document created_for field.
27377         Remove file_table_last_lookup.
27378         (remove_AT): Return TRUE if successful.
27379         (remove_child_TAG): Clear die_parent.
27380         (reparent_child): New function abstracted from...
27381         (splice_child_die): ...here.
27382         (new_die): ICE if a DIE ends up in limbo too late.
27383         (check_die): New.
27384         (defer_location): Remove.
27385         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27386         (fill_variable_array_bounds): New.
27387         (decl_start_label): Call fill_variable_array_bounds.
27388         (gen_formal_parameter_die): Rewrite to reuse previously generated
27389         DIEs.
27390         (gen_subprogram_die): Same.
27391         (gen_variable_die): Same.
27392         (gen_const_die): Same.
27393         (gen_label_die): Same.
27394         (gen_lexical_block_die): Same.
27395         (decl_will_get_specification_p): New.
27396         (local_function_static): New.
27397         (gen_struct_or_union_type_die): Fill in variable-length fields.
27398         (gen_typedef_die): Fill in variable-length typedefs.
27399         (gen_tagged_type_die): Gracefully return on error_mark_node.
27400         Handle re-entrancy.
27401         (gen_type_die_with_usage): Handle variable-length types.
27402         Remove duplicate code for ARRAY_TYPE case.
27403         (process_scope_var): Only process imported modules during early
27404         dwarf.
27405         (dwarf2out_early_global_decl): New.
27406         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27407         (dwarf2out_type_decl): Set early_dwarf while calling
27408         dwarf2out_decl.
27409         (dwarf2out_decl): Verify that we did not recreate a previously
27410         generated DIE.
27411         Do not return on DECL_EXTERNALs in VAR_DECLs.
27412         Abstract some code to local_function_static.
27413         (lookup_filename): Remove use of file_table_last_lookup.
27414         Gracefully exit on missing file_name.
27415         (dwarf2out_finish): Verify limbo list.
27416         Remove deferred_locations_list use.
27417         Move deferred_asm_name and limbo flushing to...
27418         (dwarf2out_early_finish): ...here.  New.
27419         (dwarf2out_c_finalize): Remove set of deferred_location_list,
27420         deferred_asm_name, and file_table_last_lookup.
27421         * cgraph.h (referred_to_p): Add default argument.
27422         * cgraphunit.c (referred_to_p): Add and handle include_self
27423         argument.
27424         (analyze_functions): Add first_time argument.
27425         Call check_global_declaration for all symbols.
27426         Call late_global_decl for nodes for moribund nodes.
27427         (finalize_compilation_unit): Add new argument to
27428         analyze_functions.
27429         Call early_global_decl for functions.
27430         Call early_finish debug hook.
27431         * dbxout.c (dbxout_early_global_decl): New.
27432         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
27433         (dbx_debug_hooks): Add new hooks.
27434         (xcoff_debug_hooks): Same.
27435         * debug.c (do_nothing_debug_hooks): Add early_finish field.
27436         Add early and late debug hooks.
27437         Remove global_decl hook.
27438         * debug.h (struct gcc_debug_hooks): Add early_finish,
27439         early_global_decl, and late_global_decl fields.
27440         Remove global_decl field.
27441         Document gcc_debug_hooks.
27442         * gengtype.c (output_typename): Remove.
27443         * godump.c (go_early_global_decl): New.
27444         (go_late_global_decl): New.
27445         (go_global_decl): Remove.
27446         (dump_go_spec_init): Remove global_decl.  Add
27447         {early,late}_global_decl.
27448         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27449         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27450         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27451         (write_global_declarations): Remove.
27452         (global_decl_processing): New.
27453         * langhooks.h (struct lang_hooks_for_decls): Remove
27454         final_write_globals field.
27455         Add post_compilation_parsing_cleanups field.
27456         * passes.c (rest_of_decl_compilation): Call early_global_decl.
27457         * sdbout.c: Add early and late_global_decl hooks.  Remove
27458         sdbout_global_decl hook.
27459         Add early_finish field for sdb_debug_hooks.
27460         (sdbout_global_decl): Remove.
27461         (sdbout_early_global_decl): New.
27462         (sdbout_late_global_decl): New.
27463         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27464         * toplev.c (check_global_declaration): Rename from
27465         check_global_declaration_1.
27466         Adapt to use symtab infrastructure.
27467         (check_global_declarations): Remove.
27468         (emit_debug_global_declarations): Remove.
27469         (compile_file): Remove call to final_write_globals langhook.
27470         Run the actual compilation process.
27471         Perform any post compilation parser cleanups.
27472         Generate late debug info.
27473         * toplev.h (check_global_declaration): New.
27474         (check_global_declaration_1): Remove.
27475         (check_global_declarations): Remove.
27476         (write_global_declarations): Remove.
27477         (emit_debug_global_declarations): Remove.
27478         (global_decl_processing): New.
27479         * tree-core.h (struct tree_block): Add DIE field.
27480         * tree.h (BLOCK_DIE): New.
27481         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27482         throughout.
27483         (vmsdbgout_early_global_decl): New.
27484         (vmsdbgout_late_global_decl): New.
27485         Add early_finish debug hook field to vmsdbg_debug_hooks.
27486         Remove vmsdbgout_decl to vmsdbgout_function_decl.
27487         Add early and late_global_decl debug hooks.
27488
27489 2015-06-05  Julian Brown  <julian@codesourcery.com>
27490             Sandra Loosemore  <sandra@codesourcery.com>
27491
27492         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27493         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27494         to print-sysroot-suffix.sh script.
27495
27496 2015-06-05  Tom de Vries  <tom@codesourcery.com>
27497
27498         merge from gomp4 branch:
27499         2015-05-28  Tom de Vries  <tom@codesourcery.com>
27500
27501         PR tree-optimization/65443
27502         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27503         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27504         (try_transform_to_exit_first_loop_alt): New function.
27505         (transform_to_exit_first_loop): Use
27506         try_transform_to_exit_first_loop_alt.
27507
27508 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
27509
27510         * builtins.c (expand_builtin_atomic_compare_exchange): Call
27511         emit_cmp_and_jump_insns with the mode of target.
27512
27513 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27514
27515         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27516
27517 2015-06-04  DJ Delorie  <dj@redhat.com>
27518
27519         * config/msp430/msp430.md (movsi_s): New.  Special case for
27520         storing a 20-bit symbol into a 32-bit register.
27521         * config/msp430/msp430.c (msp430_subreg): Add support for it.
27522         * config/msp430/predicates.md (msp430_symbol_operand): New.
27523
27524 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
27525
27526         * calls.c (prepare_call_address): Check for noplt
27527         attribute.
27528         * config/i386/i386.c (ix86_expand_call): Check
27529         for noplt attribute.
27530         (ix86_nopic_noplt_attribute_p): New function.
27531         (ix86_output_call_insn): Output indirect call for non-pic
27532         no plt calls.
27533         * doc/extend.texi (noplt): Document new attribute.
27534         * doc/invoke.texi: Document new attribute.
27535
27536 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
27537
27538         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27539         real.h, and fixed-value.h when included in host source files.
27540         * double-int.h: Remove redundant #includes listed above.
27541         * fixed-value.h: Likewise.
27542         * real.h: Likewise.
27543         * wide-int.h: Likewise.
27544         * inchash.h: Likewise.
27545         * rtl.h: Add some include files When included from a generator file.
27546         * target.h: Remove wide-int.h and insn-modes.h from the include list.
27547         * internal-fn.h: Don't include coretypes.h.
27548         * alias.c: Adjust includes for restructured coretypes.h.
27549         * asan.c: Likewise.
27550         * attribs.c: Likewise.
27551         * auto-inc-dec.c: Likewise.
27552         * auto-profile.c: Likewise.
27553         * bb-reorder.c: Likewise.
27554         * bt-load.c: Likewise.
27555         * builtins.c: Likewise.
27556         * caller-save.c: Likewise.
27557         * calls.c: Likewise.
27558         * ccmp.c: Likewise.
27559         * cfg.c: Likewise.
27560         * cfganal.c: Likewise.
27561         * cfgbuild.c: Likewise.
27562         * cfgcleanup.c: Likewise.
27563         * cfgexpand.c: Likewise.
27564         * cfghooks.c: Likewise.
27565         * cfgloop.c: Likewise.
27566         * cfgloop.h: Likewise.
27567         * cfgloopanal.c: Likewise.
27568         * cfgloopmanip.c: Likewise.
27569         * cfgrtl.c: Likewise.
27570         * cgraph.c: Likewise.
27571         * cgraphbuild.c: Likewise.
27572         * cgraphclones.c: Likewise.
27573         * cgraphunit.c: Likewise.
27574         * cilk-common.c: Likewise.
27575         * combine-stack-adj.c: Likewise.
27576         * combine.c: Likewise.
27577         * compare-elim.c: Likewise.
27578         * convert.c: Likewise.
27579         * coverage.c: Likewise.
27580         * cppbuiltin.c: Likewise.
27581         * cprop.c: Likewise.
27582         * cse.c: Likewise.
27583         * cselib.c: Likewise.
27584         * data-streamer-in.c: Likewise.
27585         * data-streamer-out.c: Likewise.
27586         * data-streamer.c: Likewise.
27587         * dbxout.c: Likewise.
27588         * dce.c: Likewise.
27589         * ddg.c: Likewise.
27590         * debug.c: Likewise.
27591         * df-core.c: Likewise.
27592         * df-problems.c: Likewise.
27593         * df-scan.c: Likewise.
27594         * df.h: Likewise.
27595         * dfp.c: Likewise.
27596         * dojump.c: Likewise.
27597         * dominance.c: Likewise.
27598         * domwalk.c: Likewise.
27599         * double-int.c: Likewise.
27600         * dse.c: Likewise.
27601         * dumpfile.c: Likewise.
27602         * dwarf2asm.c: Likewise.
27603         * dwarf2cfi.c: Likewise.
27604         * dwarf2out.c: Likewise.
27605         * dwarf2out.h: Likewise.
27606         * emit-rtl.c: Likewise.
27607         * et-forest.c: Likewise.
27608         * except.c: Likewise.
27609         * explow.c: Likewise.
27610         * expmed.c: Likewise.
27611         * expr.c: Likewise.
27612         * final.c: Likewise.
27613         * fixed-value.c: Likewise.
27614         * fold-const.c: Likewise.
27615         * function.c: Likewise.
27616         * fwprop.c: Likewise.
27617         * gcc-plugin.h: Likewise.
27618         * gcse.c: Likewise.
27619         * generic-match-head.c: Likewise.
27620         * ggc-page.c: Likewise.
27621         * gimple-builder.c: Likewise.
27622         * gimple-expr.c: Likewise.
27623         * gimple-fold.c: Likewise.
27624         * gimple-iterator.c: Likewise.
27625         * gimple-low.c: Likewise.
27626         * gimple-match-head.c: Likewise.
27627         * gimple-pretty-print.c: Likewise.
27628         * gimple-ssa-isolate-paths.c: Likewise.
27629         * gimple-ssa-strength-reduction.c: Likewise.
27630         * gimple-streamer-in.c: Likewise.
27631         * gimple-streamer-out.c: Likewise.
27632         * gimple-streamer.h: Likewise.
27633         * gimple-walk.c: Likewise.
27634         * gimple.c: Likewise.
27635         * gimplify-me.c: Likewise.
27636         * gimplify.c: Likewise.
27637         * godump.c: Likewise.
27638         * graph.c: Likewise.
27639         * graphite-blocking.c: Likewise.
27640         * graphite-dependences.c: Likewise.
27641         * graphite-interchange.c: Likewise.
27642         * graphite-isl-ast-to-gimple.c: Likewise.
27643         * graphite-optimize-isl.c: Likewise.
27644         * graphite-poly.c: Likewise.
27645         * graphite-scop-detection.c: Likewise.
27646         * graphite-sese-to-poly.c: Likewise.
27647         * graphite.c: Likewise.
27648         * haifa-sched.c: Likewise.
27649         * hooks.h: Likewise.
27650         * hw-doloop.c: Likewise.
27651         * ifcvt.c: Likewise.
27652         * incpath.c: Likewise.
27653         * init-regs.c: Likewise.
27654         * internal-fn.c: Likewise.
27655         * ipa-chkp.c: Likewise.
27656         * ipa-comdats.c: Likewise.
27657         * ipa-cp.c: Likewise.
27658         * ipa-devirt.c: Likewise.
27659         * ipa-icf-gimple.c: Likewise.
27660         * ipa-icf.c: Likewise.
27661         * ipa-inline-analysis.c: Likewise.
27662         * ipa-inline-transform.c: Likewise.
27663         * ipa-inline.c: Likewise.
27664         * ipa-polymorphic-call.c: Likewise.
27665         * ipa-profile.c: Likewise.
27666         * ipa-prop.c: Likewise.
27667         * ipa-pure-const.c: Likewise.
27668         * ipa-ref.c: Likewise.
27669         * ipa-reference.c: Likewise.
27670         * ipa-split.c: Likewise.
27671         * ipa-utils.c: Likewise.
27672         * ipa-visibility.c: Likewise.
27673         * ipa.c: Likewise.
27674         * ira-build.c: Likewise.
27675         * ira-color.c: Likewise.
27676         * ira-conflicts.c: Likewise.
27677         * ira-costs.c: Likewise.
27678         * ira-emit.c: Likewise.
27679         * ira-lives.c: Likewise.
27680         * ira.c: Likewise.
27681         * jump.c: Likewise.
27682         * langhooks.c: Likewise.
27683         * lcm.c: Likewise.
27684         * loop-doloop.c: Likewise.
27685         * loop-init.c: Likewise.
27686         * loop-invariant.c: Likewise.
27687         * loop-iv.c: Likewise.
27688         * loop-unroll.c: Likewise.
27689         * lower-subreg.c: Likewise.
27690         * lra-assigns.c: Likewise.
27691         * lra-coalesce.c: Likewise.
27692         * lra-constraints.c: Likewise.
27693         * lra-eliminations.c: Likewise.
27694         * lra-lives.c: Likewise.
27695         * lra-remat.c: Likewise.
27696         * lra-spills.c: Likewise.
27697         * lra.c: Likewise.
27698         * lto-cgraph.c: Likewise.
27699         * lto-compress.c: Likewise.
27700         * lto-opts.c: Likewise.
27701         * lto-section-in.c: Likewise.
27702         * lto-section-out.c: Likewise.
27703         * lto-streamer-in.c: Likewise.
27704         * lto-streamer-out.c: Likewise.
27705         * lto-streamer.c: Likewise.
27706         * mcf.c: Likewise.
27707         * mode-switching.c: Likewise.
27708         * modulo-sched.c: Likewise.
27709         * omega.c: Likewise.
27710         * omp-low.c: Likewise.
27711         * optabs.c: Likewise.
27712         * opts-global.c: Likewise.
27713         * passes.c: Likewise.
27714         * plugin.c: Likewise.
27715         * postreload-gcse.c: Likewise.
27716         * postreload.c: Likewise.
27717         * predict.c: Likewise.
27718         * print-rtl.c: Likewise.
27719         * print-tree.c: Likewise.
27720         * profile.c: Likewise.
27721         * real.c: Likewise.
27722         * realmpfr.c: Likewise.
27723         * realmpfr.h: Likewise.
27724         * recog.c: Likewise.
27725         * ree.c: Likewise.
27726         * reg-stack.c: Likewise.
27727         * regcprop.c: Likewise.
27728         * reginfo.c: Likewise.
27729         * regrename.c: Likewise.
27730         * regs.h: Likewise.
27731         * regstat.c: Likewise.
27732         * reload.c: Likewise.
27733         * reload1.c: Likewise.
27734         * reorg.c: Likewise.
27735         * resource.c: Likewise.
27736         * rtl-chkp.c: Likewise.
27737         * rtlanal.c: Likewise.
27738         * rtlhooks.c: Likewise.
27739         * sanopt.c: Likewise.
27740         * sched-deps.c: Likewise.
27741         * sched-ebb.c: Likewise.
27742         * sched-rgn.c: Likewise.
27743         * sched-vis.c: Likewise.
27744         * sdbout.c: Likewise.
27745         * sel-sched-dump.c: Likewise.
27746         * sel-sched-ir.c: Likewise.
27747         * sel-sched.c: Likewise.
27748         * sese.c: Likewise.
27749         * shrink-wrap.c: Likewise.
27750         * shrink-wrap.h: Likewise.
27751         * simplify-rtx.c: Likewise.
27752         * stack-ptr-mod.c: Likewise.
27753         * statistics.c: Likewise.
27754         * stmt.c: Likewise.
27755         * stor-layout.c: Likewise.
27756         * store-motion.c: Likewise.
27757         * stringpool.c: Likewise.
27758         * symtab.c: Likewise.
27759         * target-globals.c: Likewise.
27760         * targhooks.c: Likewise.
27761         * toplev.c: Likewise.
27762         * tracer.c: Likewise.
27763         * trans-mem.c: Likewise.
27764         * tree-affine.c: Likewise.
27765         * tree-affine.h: Likewise.
27766         * tree-browser.c: Likewise.
27767         * tree-call-cdce.c: Likewise.
27768         * tree-cfg.c: Likewise.
27769         * tree-cfgcleanup.c: Likewise.
27770         * tree-chkp-opt.c: Likewise.
27771         * tree-chkp.c: Likewise.
27772         * tree-chrec.c: Likewise.
27773         * tree-complex.c: Likewise.
27774         * tree-data-ref.c: Likewise.
27775         * tree-dfa.c: Likewise.
27776         * tree-diagnostic.c: Likewise.
27777         * tree-dump.c: Likewise.
27778         * tree-eh.c: Likewise.
27779         * tree-emutls.c: Likewise.
27780         * tree-if-conv.c: Likewise.
27781         * tree-inline.c: Likewise.
27782         * tree-into-ssa.c: Likewise.
27783         * tree-iterator.c: Likewise.
27784         * tree-loop-distribution.c: Likewise.
27785         * tree-nested.c: Likewise.
27786         * tree-nrv.c: Likewise.
27787         * tree-object-size.c: Likewise.
27788         * tree-outof-ssa.c: Likewise.
27789         * tree-parloops.c: Likewise.
27790         * tree-phinodes.c: Likewise.
27791         * tree-predcom.c: Likewise.
27792         * tree-pretty-print.c: Likewise.
27793         * tree-pretty-print.h: Likewise.
27794         * tree-profile.c: Likewise.
27795         * tree-scalar-evolution.c: Likewise.
27796         * tree-sra.c: Likewise.
27797         * tree-ssa-address.c: Likewise.
27798         * tree-ssa-alias.c: Likewise.
27799         * tree-ssa-ccp.c: Likewise.
27800         * tree-ssa-coalesce.c: Likewise.
27801         * tree-ssa-copy.c: Likewise.
27802         * tree-ssa-copyrename.c: Likewise.
27803         * tree-ssa-dce.c: Likewise.
27804         * tree-ssa-dom.c: Likewise.
27805         * tree-ssa-dse.c: Likewise.
27806         * tree-ssa-forwprop.c: Likewise.
27807         * tree-ssa-ifcombine.c: Likewise.
27808         * tree-ssa-live.c: Likewise.
27809         * tree-ssa-loop-ch.c: Likewise.
27810         * tree-ssa-loop-im.c: Likewise.
27811         * tree-ssa-loop-ivcanon.c: Likewise.
27812         * tree-ssa-loop-ivopts.c: Likewise.
27813         * tree-ssa-loop-manip.c: Likewise.
27814         * tree-ssa-loop-niter.c: Likewise.
27815         * tree-ssa-loop-prefetch.c: Likewise.
27816         * tree-ssa-loop-unswitch.c: Likewise.
27817         * tree-ssa-loop.c: Likewise.
27818         * tree-ssa-loop.h: Likewise.
27819         * tree-ssa-math-opts.c: Likewise.
27820         * tree-ssa-operands.c: Likewise.
27821         * tree-ssa-phiopt.c: Likewise.
27822         * tree-ssa-phiprop.c: Likewise.
27823         * tree-ssa-pre.c: Likewise.
27824         * tree-ssa-propagate.c: Likewise.
27825         * tree-ssa-reassoc.c: Likewise.
27826         * tree-ssa-sccvn.c: Likewise.
27827         * tree-ssa-scopedtables.c: Likewise.
27828         * tree-ssa-sink.c: Likewise.
27829         * tree-ssa-strlen.c: Likewise.
27830         * tree-ssa-structalias.c: Likewise.
27831         * tree-ssa-tail-merge.c: Likewise.
27832         * tree-ssa-ter.c: Likewise.
27833         * tree-ssa-threadedge.c: Likewise.
27834         * tree-ssa-threadupdate.c: Likewise.
27835         * tree-ssa-uncprop.c: Likewise.
27836         * tree-ssa-uninit.c: Likewise.
27837         * tree-ssa.c: Likewise.
27838         * tree-ssanames.c: Likewise.
27839         * tree-stdarg.c: Likewise.
27840         * tree-streamer-in.c: Likewise.
27841         * tree-streamer-out.c: Likewise.
27842         * tree-streamer.c: Likewise.
27843         * tree-switch-conversion.c: Likewise.
27844         * tree-tailcall.c: Likewise.
27845         * tree-vect-data-refs.c: Likewise.
27846         * tree-vect-generic.c: Likewise.
27847         * tree-vect-loop-manip.c: Likewise.
27848         * tree-vect-loop.c: Likewise.
27849         * tree-vect-patterns.c: Likewise.
27850         * tree-vect-slp.c: Likewise.
27851         * tree-vect-stmts.c: Likewise.
27852         * tree-vectorizer.c: Likewise.
27853         * tree-vrp.c: Likewise.
27854         * tree.c: Likewise.
27855         * tsan.c: Likewise.
27856         * ubsan.c: Likewise.
27857         * valtrack.c: Likewise.
27858         * value-prof.c: Likewise.
27859         * var-tracking.c: Likewise.
27860         * varasm.c: Likewise.
27861         * varpool.c: Likewise.
27862         * vmsdbgout.c: Likewise.
27863         * vtable-verify.c: Likewise.
27864         * web.c: Likewise.
27865         * wide-int-print.cc: Likewise.
27866         * wide-int-print.h: Likewise.
27867         * wide-int.cc: Likewise.
27868         * xcoffout.c: Likewise.
27869         * config/aarch64/aarch64-builtins.c: Likewise.
27870         * config/aarch64/aarch64.c: Likewise.
27871         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27872         * config/alpha/alpha.c: Likewise.
27873         * config/arc/arc.c: Likewise.
27874         * config/arm/aarch-common.c: Likewise.
27875         * config/arm/arm-builtins.c: Likewise.
27876         * config/arm/arm-c.c: Likewise.
27877         * config/arm/arm.c: Likewise.
27878         * config/avr/avr-c.c: Likewise.
27879         * config/avr/avr-log.c: Likewise.
27880         * config/avr/avr.c: Likewise.
27881         * config/bfin/bfin.c: Likewise.
27882         * config/c6x/c6x.c: Likewise.
27883         * config/cr16/cr16.c: Likewise.
27884         * config/cris/cris.c: Likewise.
27885         * config/darwin-c.c: Likewise.
27886         * config/darwin.c: Likewise.
27887         * config/default-c.c: Likewise.
27888         * config/epiphany/epiphany.c: Likewise.
27889         * config/epiphany/mode-switch-use.c: Likewise.
27890         * config/epiphany/resolve-sw-modes.c: Likewise.
27891         * config/fr30/fr30.c: Likewise.
27892         * config/frv/frv.c: Likewise.
27893         * config/ft32/ft32.c: Likewise.
27894         * config/glibc-c.c: Likewise.
27895         * config/h8300/h8300.c: Likewise.
27896         * config/i386/i386-c.c: Likewise.
27897         * config/i386/i386.c: Likewise.
27898         * config/i386/msformat-c.c: Likewise.
27899         * config/i386/winnt-cxx.c: Likewise.
27900         * config/i386/winnt-stubs.c: Likewise.
27901         * config/i386/winnt.c: Likewise.
27902         * config/ia64/ia64-c.c: Likewise.
27903         * config/ia64/ia64.c: Likewise.
27904         * config/iq2000/iq2000.c: Likewise.
27905         * config/lm32/lm32.c: Likewise.
27906         * config/m32c/m32c-pragma.c: Likewise.
27907         * config/m32c/m32c.c: Likewise.
27908         * config/m32r/m32r.c: Likewise.
27909         * config/m68k/m68k.c: Likewise.
27910         * config/mcore/mcore.c: Likewise.
27911         * config/mep/mep-pragma.c: Likewise.
27912         * config/mep/mep.c: Likewise.
27913         * config/microblaze/microblaze-c.c: Likewise.
27914         * config/microblaze/microblaze.c: Likewise.
27915         * config/mips/mips.c: Likewise.
27916         * config/mmix/mmix.c: Likewise.
27917         * config/mn10300/mn10300.c: Likewise.
27918         * config/moxie/moxie.c: Likewise.
27919         * config/msp430/msp430-c.c: Likewise.
27920         * config/msp430/msp430.c: Likewise.
27921         * config/nds32/nds32-cost.c: Likewise.
27922         * config/nds32/nds32-fp-as-gp.c: Likewise.
27923         * config/nds32/nds32-intrinsic.c: Likewise.
27924         * config/nds32/nds32-isr.c: Likewise.
27925         * config/nds32/nds32-md-auxiliary.c: Likewise.
27926         * config/nds32/nds32-memory-manipulation.c: Likewise.
27927         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27928         * config/nds32/nds32-predicates.c: Likewise.
27929         * config/nds32/nds32.c: Likewise.
27930         * config/nios2/nios2.c: Likewise.
27931         * config/nvptx/nvptx.c: Likewise.
27932         * config/pa/pa.c: Likewise.
27933         * config/pdp11/pdp11.c: Likewise.
27934         * config/rl78/rl78-c.c: Likewise.
27935         * config/rl78/rl78.c: Likewise.
27936         * config/rs6000/rs6000-c.c: Likewise.
27937         * config/rs6000/rs6000.c: Likewise.
27938         * config/rx/rx.c: Likewise.
27939         * config/s390/s390-c.c: Likewise.
27940         * config/s390/s390.c: Likewise.
27941         * config/sh/sh-c.c: Likewise.
27942         * config/sh/sh-mem.cc: Likewise.
27943         * config/sh/sh.c: Likewise.
27944         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27945         * config/sh/sh_treg_combine.cc: Likewise.
27946         * config/sol2-c.c: Likewise.
27947         * config/sol2-cxx.c: Likewise.
27948         * config/sol2-stubs.c: Likewise.
27949         * config/sol2.c: Likewise.
27950         * config/sparc/sparc-c.c: Likewise.
27951         * config/sparc/sparc.c: Likewise.
27952         * config/spu/spu-c.c: Likewise.
27953         * config/spu/spu.c: Likewise.
27954         * config/stormy16/stormy16.c: Likewise.
27955         * config/tilegx/mul-tables.c: Likewise.
27956         * config/tilegx/tilegx-c.c: Likewise.
27957         * config/tilegx/tilegx.c: Likewise.
27958         * config/tilepro/mul-tables.c: Likewise.
27959         * config/tilepro/tilepro-c.c: Likewise.
27960         * config/tilepro/tilepro.c: Likewise.
27961         * config/v850/v850-c.c: Likewise.
27962         * config/v850/v850.c: Likewise.
27963         * config/vax/vax.c: Likewise.
27964         * config/visium/visium.c: Likewise.
27965         * config/vms/vms-c.c: Likewise.
27966         * config/vms/vms.c: Likewise.
27967         * config/vxworks.c: Likewise.
27968         * config/winnt-c.c: Likewise.
27969         * config/xtensa/xtensa.c: Likewise.
27970         * common/config/bfin/bfin-common.c: Likewise.
27971
27972 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
27973
27974         * tree.h (tree_code_for_canonical_type_merging): New function.
27975         * tree.c (gimple_canonical_types_compatible_p): Use
27976         tree_code_for_canonical_type_merging..
27977
27978 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27979
27980         PR c++/66192
27981         PR target/66200
27982         * doc/tm.texi: Regenerate.
27983         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27984         * target.def (TARGET_RELAXED_ORDERING): Likewise.
27985         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27986         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27987         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27988         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27989         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27990         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27991         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27992
27993 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27994
27995         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27996         register fma steering pass.
27997         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27998         AARCH64_TUNE_FMA_STEERING.
27999
28000 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
28001
28002         * tree.c (verify_type_variant): Verify that type and variant is
28003         compatible.
28004         (gimple_canonical_types_compatible_p): Look for main variants.
28005
28006 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28007
28008         * config.gcc (powerpc*-*-*): Add support for a new configure
28009         option --with-advance-toolchain=<xxx> which overrides using the
28010         default header files, libraries and dynamic linker.
28011
28012         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28013         specs to support the configure --with-advance-toolchain=<xxx>
28014         option.
28015         (INCLUDE_EXTRA_SPEC): Likewise.
28016         (LINK_OS_EXTRA_SPEC32): Likewise.
28017         (LINK_OK_EXTRA_SPEC64): Likewise.
28018         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28019         (DYNAMIC_LINKER_PREFIX): Likewise.
28020         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28021         toolchain support.
28022         (GLIBC_DYNAMIC_LINKER32): Likewise.
28023         (GLIBC_DYNAMIC_LINKER64): Likewise.
28024         (LINK_OS_LINUX_SPEC32): Likewise.
28025         (LINK_OS_LINUX_SPEC64): Likewise.
28026
28027         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28028         configuration option.
28029
28030 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
28031
28032         PR target/66275
28033         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28034         to determine current function ABI.
28035         (ix86_function_value_regno_p): Ditto.
28036
28037 2015-06-03  Martin Liska  <mliska@suse.cz>
28038
28039         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28040         * bitmap.h (struct bitmap_usage): Likewise.
28041         * ggc-common.c (struct ggc_usage): Likewise.
28042         * mem-stats.h (struct mem_location): Likewise.
28043         (struct mem_usage): Likewise.
28044         * vec.c (struct vec_usage): Likewise.
28045
28046 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
28047
28048         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28049         -Bsymbolic.
28050
28051 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
28052
28053         * doc/plugins.texi (enum plugin_event): New event.
28054         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28055         and PLUGIN_FINISH_FUNCTION.
28056         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28057         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28058
28059 2015-06-03  Richard Biener  <rguenther@suse.de>
28060
28061         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28062         compute GROUP_GAP for the first element.
28063         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28064         on in-group gaps.
28065
28066 2015-06-03  Nick Clifton  <nickc@redhat.com>
28067
28068         * config/rl78/rl78-real.md: Add peepholes to avoid a register
28069         copy when calling a function.
28070         * config/rl78/rl78.c (need_to_save): Do not push the frame
28071         pointer in an interrupt handler prologue if it is never used.
28072
28073 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28074
28075         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28076
28077 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28078
28079         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28080         reference when cloning alias node.
28081
28082 2015-06-03  Martin Liska  <mliska@suse.cz>
28083
28084         * alloc-pool.h (struct pool_usage): Correct space padding.
28085         * ggc-page.c (ggc_print_statistics): Align columns in a report.
28086         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28087         * tree.c (dump_tree_statistics): Align columns in a report.
28088
28089 2015-06-03  Martin Liska  <mliska@suse.cz>
28090
28091         * alloc-pool.c (allocate_pool_descriptor): Remove.
28092         (struct pool_output_info): Likewise.
28093         (print_alloc_pool_statistics): Likewise.
28094         (dump_alloc_pool_statistics): Likewise.
28095         * alloc-pool.h (struct pool_usage): New struct.
28096         (pool_allocator::initialize): Change usage of memory statistics
28097         to a new interface.
28098         (pool_allocator::release): Likewise.
28099         (pool_allocator::allocate): Likewise.
28100         (pool_allocator::remove): Likewise.
28101         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28102         for a pool allocator.
28103         * mem-stats.h (struct mem_location): Add new ctor.
28104         (struct mem_usage): Add counter for number of
28105         instances.
28106         (mem_alloc_description::register_descriptor): New overload of
28107         * mem-stats.h (mem_location::to_string): New function.
28108         * bitmap.h (struct bitmap_usage): Use this new function.
28109         * ggc-common.c (struct ggc_usage): Likewise.
28110         the function.
28111
28112 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28113
28114         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28115         of GCC_INSN_FLAGS_H block.
28116
28117 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
28118
28119         * explow.c (plus_constant): Update check after force_const_mem call
28120         to see if the value returned is not a NULL_RTX.
28121
28122 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28123
28124         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28125         remove instumentation thunks calling reachable functions.
28126         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28127         * lto/lto-partition.c (privatize_symbol_name_1): New.
28128         (privatize_symbol_name): Privatize both decl and orig_decl
28129         names for instrumented functions.
28130         * cgraph.c (cgraph_node::verify_node): Add transparent
28131         alias chain check for instrumented node.
28132
28133 2015-06-03  Marek Polacek  <polacek@redhat.com>
28134
28135         PR c/64223
28136         PR c/29358
28137         * tree.c (attribute_value_equal): Handle attribute format.
28138         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28139
28140 2015-06-03  Richard Biener  <rguenther@suse.de>
28141
28142         PR tree-optimization/63916
28143         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28144         Forward-propagate non-invariant addresses by splicing their
28145         reference ops if the result isn't going to be used by PRE.
28146         (vn_reference_lookup_3): Remove pointless assert.
28147
28148 2015-06-03  Richard Biener  <rguenther@suse.de>
28149
28150         PR tree-optimization/66375
28151         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28152         add to the evolution before following SSA edges.
28153
28154 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
28155
28156         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28157         (dump_use, dump_cand, find_induction_variables): Pass new argument
28158         to dump_iv.
28159         (record_use): Preserve the ssa name information in IV.
28160
28161 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28162
28163         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28164         NO_MODE_TEST.
28165         (add_mode_tests): Don't add mode tests if the predicate only
28166         accepts scalar constant integers.  Otherwise, allow the mode
28167         of "op" to be VOIDmode if the predicate does accept such integers.
28168
28169 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
28170
28171         PR target/66258
28172         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28173         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28174         (aarch64_secondary_reload): Likewise
28175         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28176         to !TARGET_FLOAT.
28177         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28178         Likewise.
28179
28180 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
28181             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28182
28183         PR target/65768
28184         * cprop.c (try_replace_reg): Check cost of constants before propagating.
28185
28186 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28187
28188         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28189         provide access to the IBM extended double floating point mode if
28190         long double is IEEE 128-bit floating point.
28191         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28192         point if long double is the IBM extended double type.
28193
28194         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28195         enable adding IEEE 128-bit floating point support.
28196         (-mfloat128-software): Likewise.
28197         (-mfloat128-sw): Likewise.
28198
28199         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28200         128-bit floating point types to occupy any register if
28201         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
28202         -mfloat128-software is enabled.
28203         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28204         support.
28205         (rs6000_option_override_internal): Add -mfloat128-* support.
28206         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28207
28208         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28209         and float128 type nodes.
28210         (ieee128_float_type_node): Likewise.
28211         (ibm128_float_type_node): Likewise.
28212
28213 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28214
28215         PR target/66136
28216         * config/aarch64/geniterators.sh: Rewrite in awk.
28217
28218 2015-06-02  Martin Liska  <mliska@suse.cz>
28219
28220         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28221         values to avoid -Wmaybe-uninitialized errors.
28222
28223 2015-06-02  Richard Biener  <rguenther@suse.de>
28224
28225         PR debug/65549
28226         * dwarf2out.c (lookup_context_die): New function.
28227         (resolve_addr): Avoid forcing a full DIE for the
28228         target of a DW_TAG_GNU_call_site during late compilation.
28229         Instead create a stub DIE without a type if we have a
28230         context DIE present.
28231
28232 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
28233
28234         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28235
28236 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28237
28238         PR tree-optimization/48052
28239         * cfgloop.h (struct control_iv): New.
28240         (struct loop): New field control_ivs.
28241         * tree-ssa-loop-niter.c : Include "stor-layout.h".
28242         (number_of_iterations_lt): Set no_overflow information.
28243         (number_of_iterations_exit): Init control iv in niter struct.
28244         (record_control_iv): New.
28245         (estimate_numbers_of_iterations_loop): Call record_control_iv.
28246         (loop_exits_before_overflow): New.  Interface factored out of
28247         scev_probably_wraps_p.
28248         (scev_probably_wraps_p): Factor loop niter related code into
28249         loop_exits_before_overflow.
28250         (free_numbers_of_iterations_estimates_loop): Free control ivs.
28251         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28252
28253 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
28254
28255         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28256         the target doesn't belong to the current function.
28257
28258 2015-06-02  Marek Polacek  <polacek@redhat.com>
28259
28260         PR middle-end/66345
28261         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28262         get_maxval_strlen does not produce an INTEGER_CST.
28263
28264 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
28265
28266         * config/arc/constraints.md: Use lower-case names in match_code.
28267         * config/mmix/constraints.md: Likewise.
28268
28269 2015-06-02  Richard Biener  <rguenther@suse.de>
28270
28271         PR tree-optimization/65961
28272         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28273         check and clarify dump message.
28274         (vect_build_slp_tree): If all children are built up from scalars
28275         build up the parent from scalars instead.
28276         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28277
28278 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
28279
28280         PR other/65366
28281         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
28282         instead of print ... .
28283
28284 2015-06-02  Alan Modra  <amodra@gmail.com>
28285
28286         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28287         2014-08-11 change.
28288
28289 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28290
28291         PR tree-optimization/52563
28292         PR tree-optimization/62173
28293         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
28294         (alloc_iv, set_iv): New parameter.
28295         (determine_biv_step): Delete.
28296         (find_bivs): Inline original determine_biv_step.  Pass new
28297         argument to set_iv.
28298         (idx_find_step): Use no_overflow information for conversion.
28299         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28300         resolve_mixers handle folded_casts.
28301         (instantiate_scev_name): Change bool parameter to bool pointer.
28302         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28303         (instantiate_array_ref, instantiate_scev_not): Ditto.
28304         (instantiate_scev_3, instantiate_scev_2): Ditto.
28305         (instantiate_scev_1, instantiate_scev_r): Ditto.
28306         (instantiate_scev_convert, ): Change parameter.  Pass argument
28307         to chrec_convert_aggressive.
28308         (instantiate_scev): Change argument.
28309         (resolve_mixers): New parameter and set it.
28310         (scev_const_prop): New argument.
28311         * tree-scalar-evolution.h (resolve_mixers): New parameter.
28312         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28313         of chrec_conert_1.
28314         (chrec_convert): New parameter.  Move definition below.
28315         (chrec_convert_aggressive): New parameter and set it.  Call
28316         convert_affine_scev.
28317         * tree-chrec.h (chrec_convert): New parameter.
28318         (chrec_convert_aggressive): Ditto.
28319
28320 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28321
28322         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28323         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28324         the LHS of a no-return call if its type has variable size.
28325         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28326         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28327
28328 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
28329
28330         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28331         * config.in: Regenerate.
28332
28333 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
28334
28335         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28336         consecutive accesses within outer-loop with force_vectorize
28337         for references with zero step in inner-loop.
28338
28339 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28340
28341         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28342         rather than from gcc/build directory.
28343
28344 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28345
28346         PR target/65697
28347         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28348         for __sync memory models, emit initial loads and final barriers as
28349         appropriate.
28350
28351 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28352
28353         PR target/65697
28354         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28355         (aarch64_split_atomic_op): Check for __sync memory models, emit
28356         appropriate initial loads and final barriers.
28357
28358 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28359
28360         * Makefile.in: Fix gcov dependencies that should
28361         not point to a build folder.
28362
28363 2015-06-01  Richard Biener  <rguenther@suse.de>
28364
28365         Revert
28366         2015-05-29  Richard Biener  <rguenther@suse.de>
28367
28368         PR tree-optimization/66314
28369         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28370         parameter that says which loop the new block belongs to.
28371         (ssa_create_duplicates): Blocks duplicated for the threaded
28372         path belong to the loop of the thread destination.
28373
28374 2015-06-01  Martin Liska  <mliska@suse.cz>
28375
28376         * sched-deps.c: Include pool-alloc.h before
28377         cselib.h header file is included.
28378
28379 2015-06-01  Richard Biener  <rguenther@suse.de>
28380
28381         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28382         functions.
28383
28384 2015-06-01  Martin Liska  <mliska@suse.cz>
28385
28386         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28387         a function local variable.
28388
28389 2015-06-01  Martin Liska  <mliska@suse.cz>
28390
28391         * alloc-pool.c (create_alloc_pool): Remove.
28392         (empty_alloc_pool): Likewise.
28393         (free_alloc_pool): Likewise.
28394         (free_alloc_pool_if_empty): Likewise.
28395         (pool_alloc): Likewise.
28396         (pool_free): Likewise.
28397         * alloc-pool.h: Remove old declarations.
28398
28399 2015-06-01  Martin Liska  <mliska@suse.cz>
28400
28401         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28402         (ira_create_object): Likewise.
28403         (ira_create_allocno): Likewise.
28404         (ira_create_live_range): Likewise.
28405         (copy_live_range): Likewise.
28406         (ira_finish_live_range): Likewise.
28407         (ira_free_allocno_costs): Likewise.
28408         (finish_allocno): Likewise.
28409         (finish_allocnos): Likewise.
28410         (initiate_prefs): Likewise.
28411         (ira_create_pref): Likewise.
28412         (finish_pref): Likewise.
28413         (finish_prefs): Likewise.
28414         (initiate_copies): Likewise.
28415         (ira_create_copy): Likewise.
28416         (finish_copy): Likewise.
28417         (finish_copies): Likewise.
28418         (finish_prefs): Likewise.
28419
28420 2015-06-01  Martin Liska  <mliska@suse.cz>
28421
28422         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28423         (allocate_and_init_ipcp_value): Likewise.
28424         (ipcp_lattice::add_value): Likewise.
28425         (merge_agg_lats_step): Likewise.
28426         (ipcp_driver): Likewise.
28427         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28428         (ipa_free_all_structures_after_iinln): Likewise.
28429         * ipa-prop.h: Likewise.
28430
28431 2015-06-01  Martin Liska  <mliska@suse.cz>
28432
28433         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28434         pool allocator.
28435         (set_hint_predicate): Likewise.
28436         (inline_summary_alloc): Likewise.
28437         (reset_inline_edge_summary): Likewise.
28438         (reset_inline_summary): Likewise.
28439         (set_cond_stmt_execution_predicate): Likewise.
28440         (set_switch_stmt_execution_predicate): Likewise.
28441         (compute_bb_predicates): Likewise.
28442         (estimate_function_body_sizes): Likewise.
28443         (inline_free_summary): Likewise.
28444
28445 2015-06-01  Martin Liska  <mliska@suse.cz>
28446
28447         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28448         (ipa_edge_duplication_hook): Likewise.
28449         (ipa_free_all_structures_after_ipa_cp): Likewise.
28450         (ipa_free_all_structures_after_iinln): Likewise.
28451
28452 2015-06-01  Martin Liska  <mliska@suse.cz>
28453
28454         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28455         (ipa_profile_generate_summary): Likewise.
28456         (ipa_profile_read_summary): Likewise.
28457         (ipa_profile): Likewise.
28458
28459 2015-06-01  Martin Liska  <mliska@suse.cz>
28460
28461         * tree-ssa-structalias.c (new_var_info): Use new type-based
28462         pool allocator.
28463         (new_constraint): Likewise.
28464         (init_alias_vars): Likewise.
28465         (delete_points_to_sets): Likewise.
28466
28467 2015-06-01  Martin Liska  <mliska@suse.cz>
28468
28469         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28470         (free_strinfo): Likewise.
28471         (pass_strlen::execute): Likewise.
28472
28473 2015-06-01  Martin Liska  <mliska@suse.cz>
28474
28475         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28476         pool allocator.
28477         (vn_reference_insert_pieces): Likewise.
28478         (vn_phi_insert): Likewise.
28479         (visit_reference_op_call): Likewise.
28480         (copy_phi): Likewise.
28481         (copy_reference): Likewise.
28482         (process_scc): Likewise.
28483         (allocate_vn_table): Likewise.
28484         (free_vn_table): Likewise.
28485
28486 2015-06-01  Martin Liska  <mliska@suse.cz>
28487
28488         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28489         pool allocator.
28490         (add_repeat_to_ops_vec): Likewise.
28491         (get_ops): Likewise.
28492         (maybe_optimize_range_tests): Likewise.
28493         (init_reassoc): Likewise.
28494         (fini_reassoc): Likewise.
28495
28496 2015-06-01  Martin Liska  <mliska@suse.cz>
28497
28498         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28499         pool allocator.
28500         (bitmap_set_new): Likewise.
28501         (get_or_alloc_expr_for_constant): Likewise.
28502         (get_or_alloc_expr_for): Likewise.
28503         (phi_translate_1): Likewise.
28504         (compute_avail): Likewise.
28505         (init_pre): Likewise.
28506         (fini_pre): Likewise.
28507
28508 2015-06-01  Martin Liska  <mliska@suse.cz>
28509
28510         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28511         (delete_dep_node): Likewise.
28512         (create_deps_list): Likewise.
28513         (free_deps_list): Likewise.
28514         (sched_deps_init): Likewise.
28515         (sched_deps_finish): Likewise.
28516
28517 2015-06-01  Martin Liska  <mliska@suse.cz>
28518
28519         * regcprop.c (free_debug_insn_changes): Use new type-based
28520         pool allocator.
28521         (replace_oldest_value_reg): Likewise.
28522         (pass_cprop_hardreg::execute): Likewise.
28523
28524 2015-06-01  Martin Liska  <mliska@suse.cz>
28525
28526         * ira-build.c (initiate_cost_vectors): Use new type-based
28527         pool allocator.
28528         (ira_allocate_cost_vector): Likewise.
28529         (ira_free_cost_vector): Likewise.
28530         (finish_cost_vectors): Likewise.
28531
28532 2015-06-01  Martin Liska  <mliska@suse.cz>
28533
28534         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28535         pool allocator.
28536         (free_sched_pools): Likewise.
28537         * sel-sched-ir.h (_list_alloc): Likewise.
28538         (_list_remove): Likewise.
28539
28540 2015-06-01  Martin Liska  <mliska@suse.cz>
28541
28542         * stmt.c (add_case_node): Use new type-based pool allocator.
28543         (expand_case): Likewise.
28544         (expand_sjlj_dispatch_table): Likewise.
28545
28546 2015-06-01  Martin Liska  <mliska@suse.cz>
28547
28548         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28549         (free_bb): Likewise.
28550         (pass_cse_reciprocals::execute): Likewise.
28551
28552 2015-06-01  Martin Liska  <mliska@suse.cz>
28553
28554         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28555         (sra_deinitialize) Likewise.
28556         (create_access_1) Likewise.
28557         (build_accesses_from_assign) Likewise.
28558         (create_artificial_child_access) Likewise.
28559
28560 2015-06-01  Martin Liska  <mliska@suse.cz>
28561
28562         * dse.c (get_group_info):Use new type-based pool allocator.
28563         (dse_step0) Likewise.
28564         (free_store_info) Likewise.
28565         (delete_dead_store_insn) Likewise.
28566         (free_read_records) Likewise.
28567         (record_store) Likewise.
28568         (replace_read) Likewise.
28569         (check_mem_read_rtx) Likewise.
28570         (scan_insn) Likewise.
28571         (dse_step1) Likewise.
28572         (dse_step7) Likewise.
28573
28574 2015-06-01  Martin Liska  <mliska@suse.cz>
28575
28576         * df-scan.c (struct df_scan_problem_data):Use new type-based
28577         pool allocator.
28578         (df_scan_free_internal) Likewise.
28579         (df_scan_alloc) Likewise.
28580         (df_grow_reg_info) Likewise.
28581         (df_free_ref) Likewise.
28582         (df_insn_create_insn_record) Likewise.
28583         (df_mw_hardreg_chain_delete) Likewise.
28584         (df_insn_info_delete) Likewise.
28585         (df_free_collection_rec) Likewise.
28586         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28587         (df_sort_and_compress_mws) Likewise.
28588         (df_ref_create_structure) Likewise.
28589         (df_ref_record) Likewise.
28590
28591 2015-06-01  Martin Liska  <mliska@suse.cz>
28592
28593         * df-problems.c (df_chain_create):Use new type-based pool allocator.
28594         (df_chain_unlink_1) Likewise.
28595         (df_chain_unlink) Likewise.
28596         (df_chain_remove_problem) Likewise.
28597         (df_chain_alloc) Likewise.
28598         (df_chain_free) Likewise.
28599         * df.h (struct dataflow) Likewise.
28600
28601 2015-06-01  Martin Liska  <mliska@suse.cz>
28602
28603         * cselib.c (new_elt_list):Use new type-based pool allocator.
28604         (new_elt_loc_list) Likewise.
28605         (unchain_one_elt_list) Likewise.
28606         (unchain_one_elt_loc_list) Likewise.
28607         (unchain_one_value) Likewise.
28608         (new_cselib_val) Likewise.
28609         (cselib_init) Likewise.
28610         (cselib_finish) Likewise.
28611
28612 2015-06-01  Martin Liska  <mliska@suse.cz>
28613
28614         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28615         (sh_reorg) Likewise.
28616
28617 2015-06-01  Martin Liska  <mliska@suse.cz>
28618
28619         * cfg.c (initialize_original_copy_tables):Use new type-based
28620         pool allocator.
28621         (free_original_copy_tables) Likewise.
28622         (copy_original_table_clear) Likewise.
28623         (copy_original_table_set) Likewise.
28624
28625 2015-06-01  Martin Liska  <mliska@suse.cz>
28626
28627         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28628         pool allocator.
28629         (asan_mem_ref_new) Likewise.
28630         (free_mem_ref_resources) Likewise.
28631
28632 2015-06-01  Martin Liska  <mliska@suse.cz>
28633
28634         * var-tracking.c (variable_htab_free):Use new type-based
28635         pool allocator.
28636         (attrs_list_clear) Likewise.
28637         (attrs_list_insert) Likewise.
28638         (attrs_list_copy) Likewise.
28639         (shared_hash_unshare) Likewise.
28640         (shared_hash_destroy) Likewise.
28641         (unshare_variable) Likewise.
28642         (var_reg_delete_and_set) Likewise.
28643         (var_reg_delete) Likewise.
28644         (var_regno_delete) Likewise.
28645         (drop_overlapping_mem_locs) Likewise.
28646         (variable_union) Likewise.
28647         (insert_into_intersection) Likewise.
28648         (canonicalize_values_star) Likewise.
28649         (variable_merge_over_cur) Likewise.
28650         (dataflow_set_merge) Likewise.
28651         (remove_duplicate_values) Likewise.
28652         (variable_post_merge_new_vals) Likewise.
28653         (dataflow_set_preserve_mem_locs) Likewise.
28654         (dataflow_set_remove_mem_locs) Likewise.
28655         (variable_from_dropped) Likewise.
28656         (variable_was_changed) Likewise.
28657         (set_slot_part) Likewise.
28658         (clobber_slot_part) Likewise.
28659         (delete_slot_part) Likewise.
28660         (loc_exp_insert_dep) Likewise.
28661         (notify_dependents_of_changed_value) Likewise.
28662         (emit_notes_for_differences_1) Likewise.
28663         (vt_emit_notes) Likewise.
28664         (vt_initialize) Likewise.
28665         (vt_finalize) Likewise.
28666
28667 2015-06-01  Martin Liska  <mliska@suse.cz>
28668
28669         * ira-color.c (init_update_cost_records):Use new type-based
28670         pool allocator.
28671         (get_update_cost_record) Likewise.
28672         (free_update_cost_record_list) Likewise.
28673         (finish_update_cost_records) Likewise.
28674         (initiate_cost_update) Likewise.
28675
28676 2015-06-01  Martin Liska  <mliska@suse.cz>
28677
28678         * lra.c (init_insn_regs): Use new type-based pool allocator.
28679         (new_insn_reg) Likewise.
28680         (free_insn_reg) Likewise.
28681         (free_insn_regs) Likewise.
28682         (finish_insn_regs) Likewise.
28683         (init_insn_recog_data) Likewise.
28684         (init_reg_info) Likewise.
28685         (finish_reg_info) Likewise.
28686         (lra_free_copies) Likewise.
28687         (lra_create_copy) Likewise.
28688         (invalidate_insn_data_regno_info) Likewise.
28689
28690 2015-06-01  Martin Liska  <mliska@suse.cz>
28691
28692         * lra-lives.c (free_live_range): Use new type-based pool allocator.
28693         (free_live_range_list) Likewise.
28694         (create_live_range) Likewise.
28695         (copy_live_range) Likewise.
28696         (lra_merge_live_ranges) Likewise.
28697         (remove_some_program_points_and_update_live_ranges) Likewise.
28698         (lra_live_ranges_init) Likewise.
28699         (lra_live_ranges_finish) Likewise.
28700
28701 2015-06-01  Martin Liska  <mliska@suse.cz>
28702
28703         * et-forest.c (et_new_occ): Use new type-based pool allocator.
28704         (et_new_tree): Likewise.
28705         (et_free_tree): Likewise.
28706         (et_free_tree_force): Likewise.
28707         (et_free_pools): Likewise.
28708         (et_split): Likewise.
28709
28710 2015-06-01  Martin Liska  <mliska@suse.cz>
28711
28712         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28713         to header file.
28714         * alloc-pool.h (pool_allocator::pool_allocator): New function.
28715         (pool_allocator::release): Likewise.
28716         (inline pool_allocator::release_if_empty): Likewise.
28717         (inline pool_allocator::~pool_allocator): Likewise.
28718         (pool_allocator::allocate): Likewise.
28719         (pool_allocator::remove): Likewise.
28720
28721 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28722
28723         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28724         in comment.
28725
28726 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28727
28728         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28729         to fusible_ops.
28730         * config/arm/arm.c (arm_print_tune_info): Likewise.
28731         (arm_macro_fusion_p): Likewise.
28732         (arm_macro_fusion_pair_p): Likewise.
28733
28734 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28735
28736         * config/aarch64/aarch64-protos.h (tune_params): Rename
28737         fuseable_ops to fusible_ops.
28738         * config/aarch64/aarch64.c (generic_tunings): Rename
28739         fuseable_ops to fusible_ops.
28740         (cortexa53_tunings): Likewise.
28741         (cortexa57_tunings): Likewise.
28742         (thunderx_tunings): Likewise.
28743         (xgene1_tunings): Likewise.
28744         (aarch64_macro_fusion_p): Likewise.
28745         (aarch64_macro_fusion_pair_p): Likewise.
28746
28747 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28748
28749         * config/s390/driver-native.c: New file.
28750         * config/s390/x-native: New file.
28751         * config.host: Add new files for s390.
28752         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28753         and -march=native
28754         * config.gcc: Likewise.
28755         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28756         * config/s390/s390-opts.h (enum processor_type): Ditto.
28757         * config/s390/s390.c (s390_option_override): Catch unhandled
28758         PROCESSOR_NATIVE
28759
28760 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
28761
28762         PR target/65527
28763         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28764         redirection for instrumented calls.
28765         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28766         (append_compiler_options): Append -fcheck-pointer-bounds.
28767         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28768         (chkp_redirect_edge): New.
28769         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28770         (chkp_redirect_edge): New.
28771
28772 2015-06-01  Richard Biener  <rguenther@suse.de>
28773
28774         PR tree-optimization/66280
28775         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28776         def-use walking.
28777
28778 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28779
28780         * config/aarch64/aarch64.md
28781         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28782         logic_shift_imm.
28783
28784 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28785
28786         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28787         Remove obsolete kludge.
28788
28789 2015-06-01  Richard Biener  <rguenther@suse.de>
28790
28791         * tree-ssa-reassoc.c (get_rank): Simplify.
28792
28793 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28794
28795         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28796         * configure: Regenerated.
28797
28798 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
28799
28800         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28801         issue (add space between string literal and macro).
28802         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28803
28804 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
28805
28806         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28807         implict or explicit -fPIE or -fpie.
28808
28809 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
28810
28811         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28812
28813 2015-05-28  DJ Delorie  <dj@redhat.com>
28814
28815         * expmed.c (extract_bit_field_1): Avoid clobbering a
28816         yet-to-be-used base/index register.
28817
28818 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
28819
28820         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28821         (alias_stats): Add num_universal.
28822         (alias_set_subset_of): Special case pointers; be ready for NULL
28823         children.
28824         (alias_sets_conflict_p): Special case pointers; be ready for NULL
28825         children.
28826         (init_alias_set_entry): Break out from ...
28827         (record_alias_subset): ... here; propagate new fields;
28828         allocate children only when really needed.
28829         (get_alias_set): Do less generous pointer globbing.
28830         (dump_alias_stats_in_alias_c): Update statistics.
28831
28832 2015-05-30  Alan Modra  <amodra@gmail.com>
28833
28834         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28835         correct block for use of r12.
28836         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28837
28838 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28839
28840         PR target/66215
28841         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28842         with -mhotpatch=.
28843
28844 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
28845
28846         PR tree-optimization/66142
28847         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28848         virtual phis that feed themselves.
28849
28850 2015-05-29  Richard Biener  <rguenther@suse.de>
28851
28852         PR tree-optimization/66314
28853         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28854         parameter that says which loop the new block belongs to.
28855         (ssa_create_duplicates): Blocks duplicated for the threaded
28856         path belong to the loop of the thread destination.
28857
28858 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28859
28860         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28861         to cleanup-saved-temps.
28862         * doc/sourcebuild.texi (Clean up generated test files): Expand
28863         introduction.
28864         (dg-keep-saved-temps): Document new proc.
28865         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28866         cleanup-saved-temps): Remove.
28867
28868 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
28869
28870         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28871         gcc_AC_CHECK_DECLS.
28872         * configure: Regenerate.
28873
28874 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28875
28876         * config/nios2/linux.h (CPP_SPEC): Define.
28877
28878 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28879
28880         * config/microblaze/linux.h (CPP_SPEC): Define.
28881
28882 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28883
28884         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28885         -pthread is specified.
28886
28887 2015-05-28  Richard Biener  <rguenther@suse.de>
28888
28889         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28890         (vect_fixup_scalar_cycles_with_patterns): Likewise.
28891         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28892         after pattern recog.
28893         (vect_create_epilog_for_reduction): Properly handle reductions
28894         with patterns.
28895         (vectorizable_reduction): Likewise.
28896         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28897         reduction chains.
28898         (vect_get_constant_vectors): Create the correct number of
28899         initial values for reductions.
28900         (vect_schedule_slp_instance): Handle reduction chains that are
28901         type changing properly.
28902         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28903
28904 2015-05-28  Richard Biener  <rguenther@suse.de>
28905
28906         PR tree-optimization/66142
28907         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28908         values better in memcpy destination handling.  Handle non-aliasing
28909         we discover here.
28910
28911 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
28912
28913         PR target/63810
28914         * config/darwin-c.c (version_components): New global enum.
28915         (parse_version, version_as_legacy_macro)
28916         (version_as_modern_macro, macosx_version_as_macro): New functions.
28917         (version_as_macro): Remove.
28918         (darwin_cpp_builtins): Use new function.
28919
28920 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
28921
28922         * builtins.c (expand_builtin_acc_on_device): Mark parameters
28923         with ATTRIBUTE_UNUSED.
28924
28925 2015-05-28  Julian Brown  <julian@codesourcery.com>
28926
28927         PR libgomp/65742
28928
28929         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28930         sequence for !ACCEL_COMPILER.
28931
28932 2015-05-28  Nick Clifton  <nickc@redhat.com>
28933
28934         * config/rx/rx.c (push_regs): New function.  Extracts code from...
28935         (rx_expand_prologue): ... here.  Use push_regs to push even small
28936         spans of registers.
28937         (pop_regs): New function.
28938         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
28939         registers.
28940
28941 2015-05-28  Richard Biener  <rguenther@suse.de>
28942
28943         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28944         member.
28945         (SLP_INSTANCE_BODY_COST_VEC): Remove.
28946         (vect_update_slp_costs_according_to_vf): Likewise.
28947         (vect_slp_analyze_operations): Update prototype.
28948         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28949         vect_update_slp_costs_according_to_vf, adjust.
28950         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28951         (vect_analyze_slp_cost_1): Likewise.
28952         (vect_analyze_slp_cost): Likewise.  Properly deal with
28953         widening reduction ops.  Commit body costs.
28954         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
28955         cost for loops from here.
28956         (vect_slp_analyze_operations): But do it from here when
28957         the vectorization factor is known and stmts are analyzed.
28958         (vect_bb_vectorization_profitable_p): Simplify.
28959         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28960         (vect_update_slp_costs_according_to_vf): Remove.
28961
28962 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
28963             H.J. Lu  <hongjiu.lu@intel.com>
28964
28965         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28966         (BUILD_CFLAGS): Likewise.
28967         (BUILD_CXXFLAGS): Likewise.
28968         (LINKER): Add @NO_PIE_FLAG@.
28969         (BUILD_LDFLAGS): Likewise.
28970         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28971         --enable-default-pie.
28972         * common.opt (fPIE): Initialize to -1.
28973         (fpie): Likewise.
28974         (no-pie): New option.
28975         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28976         * configure.ac: Add --enable-default-pie.
28977         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
28978         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
28979         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
28980         * gcc.c (NO_PIE_SPEC): New.
28981         (PIE_SPEC): Likewise.
28982         (NO_FPIE1_SPEC): Likewise.
28983         (FPIE1_SPEC): Likewise.
28984         (NO_FPIE2_SPEC): Likewise.
28985         (FPIE2_SPEC): Likewise.
28986         (NO_FPIE2_SPEC): Likewise.
28987         (FPIE_SPEC): Likewise.
28988         (NO_FPIE_SPEC): Likewise.
28989         (NO_FPIC1_SPEC): Likewise.
28990         (FPIC1_SPEC): Likewise.
28991         (NO_FPIC2_SPEC): Likewise.
28992         (FPIC2_SPEC): Likewise.
28993         (NO_FPIC2_SPEC): Likewise.
28994         (FPIC_SPEC): Likewise.
28995         (NO_FPIC_SPEC): Likewise.
28996         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28997         (FPIE1_OR_FPIC1_SPEC): Likewise.
28998         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28999         (FPIE2_OR_FPIC2_SPEC): Likewise.
29000         (NO_FPIE_AND_FPIC_SPEC): Likewise.
29001         (FPIE_OR_FPIC_SPEC): Likewise.
29002         (LD_PIE_SPEC): Likewise.
29003         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
29004         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29005         * config/darwin.h (PIE_SPEC): Renamed to ...
29006         (DARWIN_PIE_SPEC): This.
29007         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29008         * config/darwin9.h (PIE_SPEC): Renamed to ...
29009         (DARWIN_PIE_SPEC): This.
29010         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29011         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29012         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29013         FPIE2_OR_FPIC2_SPEC.
29014         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29015         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29016         * config/sol2.h (ASM_PIC_SPEC): Likewise.
29017         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29018         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29019         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29020         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29021         * config/m32r/m32r.h (ASM_SPEC): Likewise.
29022         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29023         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29024         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29025         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29026         * config/sparc/linux.h (ASM_SPEC): Likewise.
29027         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29028         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29029         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29030         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29031         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29032         * config/sparc/sparc.h (ASM_SPEC): Likewise.
29033         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29034         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29035         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29036         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29037         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29038         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29039         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29040         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29041         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29042         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29043         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29044         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29045         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29046         * config/vax/linux.h (ASM_SPEC): Likewise.
29047         * doc/install.texi: Document --enable-default-pie.
29048         * doc/invoke.texi: Document -no-pie.
29049         * config.in: Regenerated.
29050         * configure: Likewise.
29051
29052 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29053
29054         PR rtl-optimization/66168
29055         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29056         can_move_invariant_reg.
29057
29058 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
29059
29060         PR target/66148
29061         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29062         REG_EQUAL note when doing insert.
29063
29064         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29065         instead of "%d" for 'o' operand.
29066
29067 2015-05-27  Nathan Sidwell  <nathan@acm.org>
29068
29069         PR c++/66270
29070         * tree.c (build_pointer_type_for_mode): Canonical type does not
29071         inherit can_alias_all.
29072         (build_reference_type_for_mode): Likewise.
29073
29074 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
29075
29076         * expr.h (array_at_struct_end_p): Move to...
29077         (array_ref_element_size): Likewise.
29078         (component_ref_field_offset): Likewise.
29079         * tree.h (array_ref_element_size): ...here.
29080         (array_at_struct_end_p): Likewise.
29081         (component_ref_field_offset): Likewise.
29082         * expr.c (array_ref_element_size): Move to...
29083         (array_ref_low_bound): Likewise.
29084         (array_at_struct_end_p): Likewise.
29085         (array_ref_up_bound): Likewise.
29086         (component_ref_field_offset): Likewise.
29087         * tree.c (array_ref_element_size): ...here.
29088         (array_ref_low_bound): Likewise.
29089         (array_ref_up_bound): Likewise.
29090         (array_at_struct_end_p): Likewise.
29091         (component_ref_field_offset): Likewise.
29092
29093 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29094             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29095
29096         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29097
29098 2015-05-27  Jason Merrill  <jason@redhat.com>
29099
29100         PR bootstrap/66304
29101         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29102         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29103         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29104
29105 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
29106
29107         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29108         is true.
29109
29110         * statistics.c (statistics_fini_pass): Print pass name.
29111
29112 2015-05-27  Richard Biener  <rguenther@suse.de>
29113
29114         PR tree-optimization/66272
29115         Revert parts of
29116         2014-08-15  Richard Biener  <rguenther@suse.de>
29117
29118         PR tree-optimization/62031
29119         * tree-data-ref.c (dr_analyze_indices): Do not set
29120         DR_UNCONSTRAINED_BASE.
29121         (dr_may_alias_p): All indirect accesses have to go the
29122         formerly DR_UNCONSTRAINED_BASE path.
29123         * tree-data-ref.h (struct indices): Remove
29124         unconstrained_base member.
29125         (DR_UNCONSTRAINED_BASE): Remove.
29126
29127 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
29128
29129         * dwarf2out.c: Remove block_map.
29130         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29131         (gen_lexical_block_die): Same.
29132         (dwarf2out_function_decl): Remove block_map use.
29133         (dwarf2out_c_finalize): Same.
29134         * tree-core.h (struct tree_block): Add die field.
29135         * tree.h (BLOCK_DIE): New.
29136
29137 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29138
29139         PR target/65358
29140         * expr.c (memory_load_overlap): New function.
29141         (emit_push_insn): When pushing partial args to the stack would
29142         clobber the register part load the overlapping part into a pseudo
29143         and put it into the hard reg after pushing.  Change return type
29144         to bool.  Add bool argument.
29145         * expr.h (emit_push_insn): Change return type to bool.
29146         Add bool argument.
29147         * calls.c (expand_call): Cancel sibcall optimization when encountering
29148         partial argument on targets with ARGS_GROW_DOWNWARD and
29149         !STACK_GROWS_DOWNWARD.
29150         (emit_library_call_value_1): Update callsite of emit_push_insn.
29151         (store_one_arg): Likewise.
29152
29153 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29154
29155         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29156
29157 2015-05-27  Martin Liska  <mliska@suse.cz>
29158
29159         * Makefile.in: Add additional dependencies related to memory report
29160         enhancement.
29161         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29162         * bitmap.c (struct bitmap_descriptor_d): Remove.
29163         (struct loc): Likewise.
29164         (struct bitmap_desc_hasher): Likewise.
29165         (bitmap_desc_hasher::hash): Likewise.
29166         (bitmap_desc_hasher::equal): Likewise.
29167         (get_bitmap_descriptor): Likewise.
29168         (bitmap_register): User new memory descriptor API.
29169         (register_overhead): Likewise.
29170         (bitmap_find_bit): Register nsearches and search_iter statistics.
29171         (struct bitmap_output_info): Remove.
29172         (print_statistics): Likewise.
29173         (dump_bitmap_statistics): Use new memory descriptor.
29174         * bitmap.h (struct bitmap_usage): New class.
29175         * genmatch.c: Extend header file inclusion.
29176         * genpreds.c: Likewise.
29177         * ggc-common.c (struct ggc_usage): New class.
29178         (struct ggc_loc_desc_hasher): Remove.
29179         (ggc_loc_desc_hasher::hash): Likewise.
29180         (ggc_loc_desc_hasher::equal): Likewise.
29181         (struct ggc_ptr_hash_entry): Likewise.
29182         (struct ptr_hash_hasher): Likewise.
29183         (ptr_hash_hasher::hash): Likewise.
29184         (ptr_hash_hasher::equal): Likewise.
29185         (make_loc_descriptor): Likewise.
29186         (ggc_prune_ptr): Likewise.
29187         (dump_ggc_loc_statistics): Use new memory descriptor.
29188         (ggc_record_overhead): Likewise.
29189         (ggc_free_overhead): Likewise.
29190         (final_cmp_statistic): Remove.
29191         (cmp_statistic): Likewise.
29192         (ggc_add_statistics): Liekwise.
29193         (ggc_prune_overhead_list): Likewise.
29194         * hash-map-traits.h: New file.
29195         * hash-map.h (struct default_hashmap_traits): Move the traits to a
29196         separate header file.
29197         * hash-set.h: Pass memory statistics info to ctor.
29198         * hash-table.c (void dump_hash_table_loc_statistics): New function.
29199         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29200         (hash_table::~hash_table): Register memory release operation.
29201         (hash_table::alloc_entries): Handle memory allocation operation.
29202         (hash_table::expand): Likewise.
29203         * inchash.c (iterative_hash_hashval_t): Move implementation to header
29204         file.
29205         (iterative_hash_host_wide_int): Likewise.
29206         * inchash.h (class hash): Likewise.
29207         * mem-stats-traits.h: New file.
29208         * mem-stats.h: New file.
29209         (mem_location): Add new class.
29210         (mem_usage): Likewise.
29211         (mem_alloc_description): Likewise.
29212         * sese.c: Add new header file inclusision.
29213         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29214         and hash_set.
29215         * tree-sra.c: Add new header file inclusision.
29216         * vec.c (struct vec_descriptor): Remove.
29217         (hash_descriptor): Likewise.
29218         (struct vec_usage): Likewise.
29219         (struct ptr_hash_entry): Likewise.
29220         (hash_ptr): Likewise.
29221         (eq_ptr): Likewise.
29222         (vec_prefix::register_overhead): Use new memory descriptor API.
29223         (vec_prefix::release_overhead): Likewise.
29224         (add_statistics): Remove.
29225         (dump_vec_loc_statistics): Use new memory descriptor API.
29226         * vec.h (struct vec_prefix): Likewise.
29227         (va_heap::reserve): Likewise.
29228         (va_heap::release): Likewise.
29229         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29230
29231 2015-05-27  Richard Biener  <rguenther@suse.de>
29232
29233         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29234         earlier and remove ??? comment.
29235         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29236         and got called from loop analysis bail out.  Always pass the SLP
29237         node to the vectorizable_* functions.
29238         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29239         the premature SLP check here.
29240         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29241         detected SLP stmts.
29242         (vect_detect_hybrid_slp_1): Likewise.
29243
29244 2015-05-26  Jeff Law  <law@redhat.com>
29245
29246         * combine.c (find_split_point): Verify that the shift count is a
29247         constant when choosing (plus (ashift ...)) as a split point.
29248
29249         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29250         No functional changes.
29251
29252 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
29253
29254         * ipa-polymorphic-call.c
29255         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29256         case when call target is already known.
29257
29258 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
29259
29260         PR target/65979
29261         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29262         take into account the case that operands[1] and operands[2]
29263         are the same register.
29264
29265 2015-05-26  Michael Matz  <matz@suse.de>
29266
29267         PR middle-end/66251
29268
29269         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29270         stores.
29271         (vect_create_vectorized_demotion_stmts): Always set
29272         STMT_VINFO_VEC_STMT, also with SLP.
29273         (vectorizable_store): Handle strided group stores.
29274
29275 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29276
29277         PR target/66049
29278         * config/aarch64/aarch64.md
29279         (*adds_shift_imm_<mode>):  New pattern.
29280         (*subs_shift_imm_<mode>):  Likewise.
29281         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
29282         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29283         (*add_uxt<mode>_shift2): Likewise.
29284         (*add_uxtsi_shift2_uxtw): Likewise.
29285         (*sub_uxt<mode>_shift2): Likewise.
29286         (*sub_uxtsi_shift2_uxtw): Likewise.
29287
29288 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
29289
29290         * config/rs6000/constraints.md (Y, U): Use match_test.
29291
29292 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29293
29294         PR target/52144
29295         * config/arm/arm.c (arm_option_check_internal)
29296         (arm_option_params_internal): Check opts->target_flags to set macros.
29297         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29298         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29299         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29300         (builtin_define): Replaced with def_or_undef_macro.
29301         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29302         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29303         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29304         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29305         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29306         (TARGET_ARM_FEATURE_LDREX_P)
29307         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29308         * config/arm/arm-c.c (def_or_undef_macro): New function.
29309         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29310
29311 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29312
29313         * c-common.h (builtin_define_with_int_value)
29314         (builtin_define_type_sizeof): Declare.
29315         * c-cppbuiltin.c (builtin_define_with_int_value)
29316         (builtin_define_type_sizeof): Externalize.
29317         (builtin_define_std): Cleanup declaration.
29318         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29319         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29320         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29321         (builtin_define, builtin_assert): New macros.
29322
29323 2015-05-26  Richard Biener  <rguenther@suse.de>
29324
29325         PR tree-optimization/66142
29326         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29327         MEM_REFs for the same base address.
29328
29329 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29330
29331         PR ipa/66181
29332         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29333
29334 2015-05-26  Jason Merrill  <jason@redhat.com>
29335
29336         * configure.ac: Set CXXFLAGS for ISL test.
29337         * configure: Regenerate.
29338
29339         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
29340         strstr and basename.
29341         * configure: Regenerate.
29342
29343 2015-05-26  Richard Biener  <rguenther@suse.de>
29344
29345         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29346         X % C -> X & (C - 1) for C being a power-of two to ...
29347         * match.pd: ... patterns.
29348
29349 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
29350
29351         * match.pd (swapped_tcc_comparison): New operator list.
29352         (-A CMP -B): New simplification.
29353         * fold-const.c (fold_comparison): Remove corresponding code.
29354
29355 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29356
29357         * caller-save.c (init_caller_save): Base temporary register numbers
29358         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29359         * cfgloopanal.c (init_set_costs): Likewise.
29360         * dojump.c (prefer_and_bit_test): Likewise.
29361         * expr.c (init_expr_target): Likewise.
29362         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29363         * lower-subreg.c (init_lower_subreg): Likewise.
29364         * postreload.c (reload_cse_regs_1): Likewise.
29365
29366 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29367
29368         * gensupport.h (compute_test_codes): Declare.
29369         * gensupport.c (compute_predicate_codes): Rename to...
29370         (compute_test_codes): ...this.  Generalize error message.
29371         (process_define_predicate): Update accordingly.
29372         * genpreds.c (compute_maybe_allows): Delete.
29373         (add_constraint): Use compute_test_codes to determine whether
29374         something can accept a SUBREG, REG or MEM.
29375
29376 2015-05-26  Torvald Riegel  <triegel@redhat.com>
29377
29378         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29379         'memory model' to align with C++11; fix description of memory orders;
29380         fix a few typos.
29381
29382 2015-05-26  Richard Biener  <rguenther@suse.de>
29383
29384         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29385         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
29386         detect whether we apply SLP.  Remove call to
29387         vect_update_slp_costs_according_to_vf.
29388         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29389         vect_update_slp_costs_according_to_vf from here.  Dispatch
29390         to vect_slp_analyze_operations to analyze SLP stmts.
29391         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29392         unused bb_vec_info parameter, adjust assert.
29393         (vect_slp_analyze_operations): Pass in the slp instance tree
29394         instead of bb_vec_info.
29395         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29396         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29397
29398 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29399
29400         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29401         Q_REGS.  Expand comment.
29402         (REG_CLASS_NAMES): Ditto.
29403         (REG_CLASS_CONTENTS): Ditto.
29404
29405 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
29406
29407         PR target/66274
29408         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29409         when LEGACY_INT_REGNO_P is processed.
29410
29411 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29412
29413         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29414
29415 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29416
29417         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29418         register if not marked dead/unused, before return.
29419
29420 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29421
29422         PR lto/66180
29423         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29424         is set; check for assembler name at LTO time.
29425         (type_in_anonymous_namespace): Remove hacks, check that all
29426         anonymous types are called "<anon>"
29427         (odr_type_p): Simplify; add check for "<anon>"
29428         (odr_subtypes_equivalent): Add odr_type_p check.
29429         * tree.c (need_assembler_name_p): Even anonymous namespace needs
29430         assembler name.
29431
29432 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29433
29434         * ipa-utils.h (method_class_type): Remove.
29435         * cgraphunit.c (walk_polymorphic_call_targets): Use
29436         TYPE_METHOD_BASETYPE.
29437         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29438         on main variants only.
29439         (method_class_type): Remove.
29440         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29441         (build_type_inheritance_graph): Likewise.
29442         * ipa-icf.c (sem_function::equals_wpa): Likewise.
29443         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29444         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29445
29446 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29447
29448         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29449         is_typedef_decl, typedef_variant_p): Constify.
29450         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29451         is_typedef_decl, typedef_variant_p): Constify.
29452
29453 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29454
29455         * defaults.h (gen_tablejump): New function.
29456         (HAVE_tablejump): Add default value.
29457         * expr.c: Adjust.
29458         * stmt.c: Likewise.
29459
29460 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29461
29462         * defaults.h (gen_store_multiple): New function.
29463         (HAVE_store_multiple): Add default value.
29464         * expr.c (move_block_from_reg): Adjust.
29465
29466 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29467
29468         * defaults.h (gen_load_multiple): New function.
29469         (HAVE_load_multiple): Add default value.
29470         * expr.c (move_block_to_reg): Adjust.
29471
29472 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29473
29474         * defaults.h (gen_mem_signal_fence): New function.
29475         (HAVE_mem_signal_fence): Add default value.
29476         * optabs.c: Adjust.
29477
29478 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29479
29480         * defaults.h (gen_memory_barrier): New function.
29481         (HAVE_memory_barrier): Add default value.
29482         * optabs.c: Adjust.
29483
29484 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29485
29486         * defaults.h (gen_mem_thread_fence): New function.
29487         (HAVE_mem_thread_fence): Add default definition.
29488         * optabs.c: Adjust.
29489
29490 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29491
29492         * combine.c (find_split_point): Check the value of HAVE_lo_sum
29493         instead of if it is defined.
29494         (combine_simplify_rtx): Likewise.
29495         * lra-constraints.c (process_address_1): Likewise.
29496         * config/darwin.c: Adjust.
29497         * genconfig.c (main): Always define HAVE_lo_sum.
29498
29499 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29500
29501         * genmatch.c (parser::parse_operation): Reject expanding
29502         operator-list inside 'for'.
29503
29504 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29505
29506         * genmatch.c (parser::parse_for): Reject iterator if used as
29507         operator-list.
29508
29509 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29510
29511         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29512         after end of id-list.
29513
29514 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29515
29516         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29517         we do not try to compute canonical type for type that does not need
29518         alias set.
29519         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29520         FUNCITON_TYPE.
29521         * tree.h (type_with_alias_set_p): New.
29522
29523 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29524
29525         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
29526         function attributes.
29527         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29528
29529 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
29530
29531         * Makefile.in (check_gcc_parallelize): Delete.
29532         (lang_checks_parallelized): Update comment.
29533
29534 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
29535
29536         PR rtl-optimization/66237
29537         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29538         location of an "as_a" cast.
29539
29540 2015-05-22  Jeff Law  <law@redhat.com>
29541
29542         * config/pa/pa.md (non-canonical shift-add insns): Remove.
29543         (peepholes with non-canonical RTL sources): Remove.
29544         (peepholes for indexed stores of FP regs in integer modes): Match and
29545         generate canonical RTL.
29546
29547 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29548
29549         PR tree-optimization/63387
29550         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29551         ((x ord x) & (y ord y) -> (x ord y),
29552         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29553         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29554         vectors like scalars.
29555
29556 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29557
29558         * convert.c (convert_to_integer, convert_to_vector): Include the
29559         types in the error message.
29560
29561 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29562
29563         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29564         simplifications.
29565
29566 2015-05-22  Jeff Law  <law@redhat.com>
29567
29568         * config/pa/pa.md (integer_indexed_store splitters): Use
29569         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
29570         insns -- adjusting the constant 2nd operand accordingly.
29571
29572         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29573         (plus (ashift X log2) Y) if it is a split point.
29574
29575         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29576         out of hppa_legitimize_address to handle both forms of a multiply
29577         by 2, 4 or 8.
29578         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29579         Always generate the ASHIFT variant as the result is not directly
29580         used in a MEM.  Update comments and refactor slightly to improve
29581         readability.
29582
29583 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29584
29585         PR target/65491
29586         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29587         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
29588         (aarch64_composite_type_p): Return false if given type and mode are
29589         for a short vector.
29590
29591 2015-05-22  Richard Biener  <rguenther@suse.de>
29592
29593         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29594         member.
29595         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29596         patterns when determining whether SLP is pure.
29597         (vect_is_slp_reduction): Remove check for pattern stmts.
29598         (vect_is_simple_reduction_1): Remove dead code.
29599         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29600         (vect_get_and_check_slp_defs): Pass in the stmt number.
29601         Allow the first def in a reduction to be not a pattern stmt when
29602         the rest of the stmts def are patterns.
29603         (vect_build_slp_tree_1): Allow tcc_expression codes like
29604         SAD_EXPR and DOT_PROD_EXPR.
29605         (vect_build_slp_tree): Adjust.
29606         (vect_analyze_slp): Refactor and move BB vect error message ...
29607         (vect_slp_analyze_bb_1): ... here.
29608
29609 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
29610
29611         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29612         for CSWTCH temporary.
29613
29614 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29615
29616         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29617         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
29618         unknown unspecs.
29619
29620 2015-05-22  Richard Biener  <rguenther@suse.de>
29621
29622         PR tree-optimization/66251
29623         * tree-vect-stmts.c (vectorizable_conversion): Properly
29624         set STMT_VINFO_VEC_STMT even for the SLP case.
29625
29626 2015-05-22  Marek Polacek  <polacek@redhat.com>
29627
29628         * doc/extend.texi: Use @pxref instead of @xref.
29629
29630 2015-05-22  hiraditya  <hiraditya@msn.com>
29631
29632         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29633         redundant if.
29634
29635 2015-05-22  Richard Biener  <rguenther@suse.de>
29636
29637         PR tree-optimization/65701
29638         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29639         Move peeling cost models into one place.  Peel for alignment
29640         for single loads only if an aligned load is cheaper than
29641         an unaligned load.
29642
29643 2015-05-22  Marek Polacek  <polacek@redhat.com>
29644
29645         PR c/47043
29646         * doc/extend.texi (Enumerator Attributes): New section.
29647         Document syntax of enumerator attributes.
29648
29649 2015-05-22  Richard Biener  <rguenther@suse.de>
29650
29651         * tree-vect-loop.c (get_reduction_op): New function.
29652         (vect_model_reduction_cost): Use it, add reduc_index parameter.
29653         Make ready for BB reductions.
29654         (vect_create_epilog_for_reduction): Use get_reduction_op.
29655         (vectorizable_reduction): Init reduc_index to a valid value.
29656         Adjust vect_model_reduction_cost call.
29657         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29658         operand for reduction defaults.  Add SAD_EXPR support.
29659         Assert we have a neutral op for SLP reductions.
29660         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29661         walking pattern stmt ops only recurse to SSA names.
29662
29663 2015-05-22  Richard Biener  <rguenther@suse.de>
29664
29665         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29666         assert with guard, remove check on detected reduction.
29667         (vect_recog_sad_pattern): Likewise.
29668         (vect_recog_widen_sum_pattern): Likewise.
29669
29670 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29671
29672         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29673         __always_inline__ attribute.
29674         (vaesdq_u8): Likewise.
29675         (vaesmcq_u8): Likewise.
29676         (vaesimcq_u8): Likewise.
29677         (vsha1cq_u32): Likewise.
29678         (vsha1mq_u32): Likewise.
29679         (vsha1pq_u32): Likewise.
29680         (vsha1h_u32): Likewise.
29681         (vsha1su0q_u32): Likewise.
29682         (vsha1su1q_u32): Likewise.
29683         (vsha256hq_u32): Likewise.
29684         (vsha256h2q_u32): Likewise.
29685         (vsha256su0q_u32): Likewise.
29686         (vsha256su1q_u32): Likewise.
29687         (vmull_p64): Likewise.
29688         (vmull_high_p64): Likewise.
29689
29690 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29691
29692         * final.c (final_scan_insn): Don't check HAVE_peephole with the
29693         preprocessor.
29694         * output.h: Likewise.
29695         * genconfig.c (main): Alwways define HAVE_peephole.
29696         * genpeep.c: Don't emit checks of HAVE_peephole.
29697
29698 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29699
29700         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29701         check HAVE_conditional_move with the preprocessor.
29702
29703 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29704
29705         * genconfig.c (main): Always define HAVE_conditional_move.
29706         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29707         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29708         is defined.
29709
29710 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29711
29712         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29713         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29714         and FRAME_POINTER_REGNUM with the preprocessor.
29715
29716 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29717
29718         * defaults.h: Add default for STACK_PUSH_CODE.
29719         * expr.c: Don't redefine STACK_PUSH_CODE.
29720         * recog.c: Likewise.
29721
29722 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29723
29724         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29725         sched-deps.c: Use if instead of preprocessor checks with
29726         STACK_GROWS_DOWNWARD.
29727
29728 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29729
29730         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29731         is defined.
29732         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29733         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29734         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29735         * doc/tm.texi: Regenerate.
29736
29737 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29738
29739         PR target/66232
29740         * config/i386/constraints.md (Bg): New constraint for GOT memory
29741         operand.
29742         * config/i386/i386.md (*call_got_x32): New pattern.
29743         (*call_value_got_x32): Likewise.
29744         * config/i386/predicates.md (GOT_memory_operand): New predicate.
29745
29746 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
29747
29748         PR tree-optimization/66233
29749         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29750         Simplify.
29751
29752 2015-05-21  Jeff Law  <law@redhat.com>
29753
29754         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29755         than MULT for shadd sequences.
29756
29757 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
29758
29759         * alias.c (alias_stats): New static var.
29760         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29761         (dump_alias_stats_in_alias_c): New function.
29762         * alias.h (dump_alias_stats_in_alias_c): Declare.
29763         * tree-ssa-alias.c (dump_alias_stats): Call it.
29764
29765 2015-05-08  Michael Matz  <matz@suse.de>
29766
29767         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29768         to strided_p.
29769         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29770         (STMT_VINFO_STRIDED_P): ... this.
29771         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29772         (vect_verify_datarefs_alignment): Likewise.
29773         (vect_enhance_data_refs_alignment): Likewise.
29774         (vect_analyze_data_ref_access): Likewise.
29775         (vect_analyze_data_refs): Accept strided stores.
29776         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29777         (vect_model_load_cost): Adjust for macro rename.
29778         (vectorizable_mask_load_store): Likewise.
29779         (vectorizable_load): Likewise.
29780         (vectorizable_store): Open code strided stores.
29781
29782 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29783
29784         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29785         Document sqrt_insn.
29786
29787 2015-05-21  Richard Biener  <rguenther@suse.de>
29788
29789         PR c++/66211
29790         * match.pd: Guard pattern optimzing (int)(float)int
29791         conversions to apply only on GIMPLE.
29792
29793 2015-05-21  Jeff Law  <law@redhat.com>
29794
29795         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29796         multiply-accumulate/shift-add insn generation.
29797
29798 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
29799
29800         PR target/54236
29801         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29802         operands[1] are the same.
29803
29804 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
29805
29806         PR middle-end/66221
29807         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29808         build_distinct_type_copy to copy bounds.
29809
29810 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
29811
29812         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29813         Change to unsigned int.
29814
29815 2015-05-20  Jeff Law  <law@redhat.com>
29816
29817         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29818         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29819         (pa_shadd_constant_p): Allow constants for shadd insns rather
29820         than valid scaling constants for memory addresses.
29821         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29822         * config/pa/predicates.md (mem_shadd_operand): New predicate.
29823         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29824         (shift-add insns using ASHIFT): New patterns.
29825
29826 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
29827
29828         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29829         feasible.
29830         (fix_up_fall_thru_edges): Likewise.
29831         (fix_crossing_conditional_branches): Likewise. Promote jump targets
29832         from to rtx_insn to rtx_code_label where feasible.
29833         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29834         gen_move_insn (returned type changed to rtx_insn).
29835         * builtins.c (expand_errno_check): Fix arguments of
29836         do_compare_rtx_and_jump (now expects rtx_code_label).
29837         (expand_builtin_acc_on_device): Likewise.
29838         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29839         invert_jump (now exprects rtx_jump_insn).
29840         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29841         (construct_init_block): Use rtx_code_label.
29842         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29843         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29844         calling redirect_jump.
29845         (patch_jump_insn): Likewise.
29846         (redirect_branch_edge): Likewise.
29847         (force_nonfallthru_and_redirect): Likewise.
29848         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29849         when suitable.
29850         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29851         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29852         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29853         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29854         to store the value retured by gen_label_rtx.
29855         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29856         rtx_jump_insn.
29857         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29858         (split_branches): Fix calls of redirect_jump.
29859         * dojump.c (jumpifnot): Promote argument type from rtx to
29860         rtx_code_label.
29861         (jumpifnot_1): Likewise.
29862         (jumpif): Likewise.
29863         (jumpif_1): Likewise.
29864         (do_jump_1): Likewise.
29865         (do_jump): Likewise. Use rtx_code_label when feasible.
29866         (do_jump_by_parts_greater_rtx): Likewise.
29867         (do_jump_by_parts_zero_rtx): Likewise.
29868         (do_jump_by_parts_equality_rtx): Likewise.
29869         (do_compare_rtx_and_jump): Likewise.
29870         * dojump.h: Update function prototypes.
29871         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29872         returns rtx_insn).
29873         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29874         rtx_jump_insn.
29875         (emit_label_before): Likewise.
29876         (emit_jump_insn_after_noloc): Likewise.
29877         (emit_jump_insn_after_setloc): Likewise.
29878         (emit_jump_insn_after): Likewise
29879         (emit_jump_insn_before_setloc): Likewise.
29880         (emit_jump_insn_before): Likewise.
29881         (emit_label_before): Promote return type to rtx_code_label.
29882         (emit_label): Likewise.
29883         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29884         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29885         gen_move_insn.
29886         (emit_stack_restore): Likewise.
29887         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29888         (do_cmp_and_jump): Likewise.
29889         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29890         from rtx to rtx_code_label.
29891         (gen_move_insn_uncast): New function.
29892         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29893         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29894         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29895         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29896         invert_jump_1 and redirect_jump_1.
29897         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29898         do_compare_rtx_and_jump.
29899         (expand_addsub_overflow): Likewise.
29900         (expand_neg_overflow): Likewise.
29901         (expand_mul_overflow): Likewise.
29902         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29903         return value of gen_move_insn.
29904         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29905         * loop-doloop.c (add_test): Use rtx_code_label.
29906         (doloop_modify): Likewise.
29907         (doloop_optimize): Likewise.
29908         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29909         * lra-constraints.c (emit_spill_move): Remove cast of value returned
29910         by gen_move_insn.
29911         (inherit_reload_reg): Add cast when calling dump_insn_slim.
29912         (split_reg): Likewise.
29913         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29914         gen_move_insn.
29915         * optabs.c (expand_binop_directly): Remove casts of values returned by
29916         maybe_gen_insn.
29917         (expand_unop_direct): Likewise.
29918         (expand_abs): Likewise.
29919         (maybe_emit_unop_insn): Likewise.
29920         (maybe_gen_insn): Promote return type to rtx_insn.
29921         * optabs.h: Update prototype of maybe_gen_insn.
29922         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29923         redundant cast.
29924         * recog.c (struct peep2_insn_data): Promote type of insn field to
29925         rtx_insn.
29926         (peep2_reinit_state): Use NULL instead of NULL_RTX.
29927         (peep2_attempt): Remove casts of insn in peep2_insn_data.
29928         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29929         * recog.h (struct insn_gen_fn): Promote return types of function
29930         pointers and operator ().from rtx to rtx_insn.
29931         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29932         (fill_eager_delay_slots): Likewise.
29933         (relax_delay_slots): Likewise.
29934         (make_return_insns): Likewise.
29935         (dbr_schedule): Likewise.
29936         (optimize_skips): Likewise.
29937         (reorg_redirect_jump): Likewise.
29938         (fill_slots_from_thread): Likewise.
29939         * reorg.h: Update prototypes.
29940         * resource.c (find_dead_or_set_registers): Use dyn_cast to
29941         rtx_jump_insn instead of check.  Use it's jump_target method.
29942         * rtl.h (rtx_jump_insn::jump_label): Define new method.
29943         (rtx_jump_insn::jump_target): Define new method.
29944         (rtx_jump_insn::set_jump_target): Define new method.
29945         * rtlanal.c (tablejump_p): Promote type of one local variable.
29946         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29947         (sched_analyze_insn): Likewise.
29948         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29949         (print_insn): Likewise.
29950         * stmt.c (label_rtx): Promote return type to rtx_insn.
29951         (force_label_rtx): Likewise.
29952         (jump_target_rtx): Define new function.
29953         (expand_label): Use it, get rid of one cast.
29954         (expand_naked_return): Promote rtx to rtx_code_label.
29955         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29956         (expand_case): Use rtx_code_label instread of rtx where feasible.
29957         (expand_sjlj_dispatch_table): Likewise.
29958         (emit_case_nodes): Likewise.
29959         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
29960         * store-motion.c (insert_store): Make use of new return type of
29961         gen_move_insn and remove a cast.
29962         (replace_store_insn): Likewise.
29963
29964 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
29965
29966         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29967         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29968
29969 2015-05-20  Jeff Law  <law@redhat.com>
29970
29971         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29972         dispose of the jump thread path when the jump threading
29973         opportunity is cancelled.
29974
29975 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29976
29977         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29978         when printing the caret character.
29979
29980 2015-05-20  Marek Polacek  <polacek@redhat.com>
29981
29982         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29983
29984 2015-05-20  Marek Polacek  <polacek@redhat.com>
29985
29986         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29987         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29988         * gimple-fold.c (canonicalize_bool): Likewise.
29989         (same_bool_result_p): Likewise.
29990         * tree-if-conv.c (parse_predicate): Likewise.
29991
29992 2015-05-20  Marek Polacek  <polacek@redhat.com>
29993
29994         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29995         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29996
29997 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29998
29999         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30000         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30001         values.
30002
30003 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
30004
30005         * config/mips/mips.h (micromips_globals): Declare.
30006
30007 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
30008
30009         * timevar.def (TV_INITIALIZE_RTL): New.
30010         * toplev.c (initialize_rtl): Use an auto_timevar to account this
30011         function's time to TV_INITIALIZE_RTL.
30012
30013 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30014
30015         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30016         gimple_build_nop calls.
30017         (chkp_find_bounds_for_elem): Likewise.
30018         (chkp_get_zero_bounds): Likewise.
30019         (chkp_get_none_bounds): Likewise.
30020         (chkp_get_bounds_by_definition): Likewise.
30021         (chkp_generate_extern_var_bounds): Likewise.
30022         (chkp_get_bounds_for_decl_addr): Likewise.
30023         (chkp_get_bounds_for_string_cst): Likewise.
30024
30025 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
30026
30027         PR tree-optimization/65447
30028         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30029         (dump_use, dump_uses): Support to dump sub use.
30030         (record_use): New parameters to support sub use.  Remove call to
30031         dump_use.
30032         (record_sub_use, record_group_use): New functions.
30033         (compute_max_addr_offset, split_all_small_groups): New functions.
30034         (group_address_uses, rewrite_use_address): New functions.
30035         (strip_offset): New declaration.
30036         (find_interesting_uses_address): Call record_group_use.
30037         (add_candidate): New assertion.
30038         (infinite_cost_p): Move definition forward.
30039         (add_costs): Check INFTY cost and return immediately.
30040         (get_computation_cost_at): Clear setup cost and dependent bitmap
30041         for sub uses.
30042         (determine_use_iv_cost_address): Compute cost for sub uses.
30043         (rewrite_use_address_1): Rename from old rewrite_use_address.
30044         (free_loop_data): Free sub uses.
30045         (tree_ssa_iv_optimize_loop): Call group_address_uses.
30046
30047 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30048             Jim Wilson  <jim.wilson@linaro.org>
30049
30050         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30051         new  fields loadv and storev.
30052         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30053         Initialize loadv and storev.
30054         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30055         (cortexa53_extra_costs): Likewise.
30056         (cortexa57_extra_costs): Likewise.
30057         (xgene1_extra_costs): Likewise.
30058         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30059         rtx_costs.
30060
30061 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30062
30063         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30064          storev.
30065         (cortexa8_extra_costs): Likewise.
30066         (cortexa5_extra_costs): Likewise.
30067         (cortexa7_extra_costs): Likewise.
30068         (cortexa12_extra_costs): Likewise.
30069         (cortexa15_extra_costs): Likewise.
30070         (v7m_extra_costs): Likewise.
30071
30072 2015-05-20  Jeff Law  <law@redhat.com>
30073
30074         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30075         instead of open-coded version.  Also delete the jump thread created
30076         within this function.
30077
30078 2015-05-20  Alan Modra  <amodra@gmail.com>
30079
30080         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30081         stack adjusting insn.  Formatting.
30082         (rs6000_emit_prologue): Track stack adjusting insn, and use of
30083         r12.  If possible, emit first -fsplit-stack arg pointer insn
30084         before stack adjust.  Don't use r12 to save cr if split-stack.
30085
30086 2015-05-20  Alan Modra  <amodra@gmail.com>
30087
30088         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30089         Define.
30090         (rs6000_supports_split_stack): New function.
30091         * config/rs6000/rs6000.c (machine_function): Add
30092         split_stack_arg_pointer.
30093         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30094         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30095         rather than virtual_incoming_args_rtx.
30096         (rs6000_va_start): Likewise.
30097         (split_stack_arg_pointer_used_p): New function.
30098         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30099         (morestack_ref): New var.
30100         (gen_add3_const, rs6000_expand_split_stack_prologue,
30101         rs6000_internal_arg_pointer, rs6000_live_on_entry,
30102         rs6000_split_stack_space_check): New functions.
30103         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30104         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30105         (UNSPECV_SPLIT_STACK_RETURN): Define.
30106         (split_stack_prologue, load_split_stack_limit,
30107         load_split_stack_limit_di, load_split_stack_limit_si,
30108         split_stack_return, split_stack_space_check): New expands and insns.
30109         * config/rs6000/rs6000-protos.h
30110         (rs6000_expand_split_stack_prologue): Declare.
30111         (rs6000_split_stack_space_check): Declare.
30112
30113 2015-05-20  Alan Modra  <amodra@gmail.com>
30114
30115         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30116         (direct_return): Test vrsave_size rather than vrsave_mask.
30117         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
30118         (rs6000_emit_epilogue): Likewise.
30119
30120 2015-05-20  Alan Modra  <amodra@gmail.com>
30121
30122         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30123         when not saving registers.
30124         (debug_stack_info): Adjust to omit printing unused offsets,
30125         as before.
30126         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30127         expression.
30128
30129 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30130
30131         PR c++/65835
30132         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30133         value_type to const char *.
30134
30135 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
30136
30137         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30138         to build a biarch toolchain again.
30139
30140 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30141
30142         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30143         or implicit declarations.
30144         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30145         into it.
30146         (get_odr_type): Check type has linkage before adding bases.
30147         (register_odr_type): Check that type has linkage before adding it.
30148         (type_known_to_have_no_deriavations_p): Rename to ..
30149         (type_known_to_have_no_derivations_p): This one.
30150         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30151         (type_known_to_have_no_derivations_p): This one.
30152         * ipa-polymorphic-call.c
30153         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30154         type has linkage.
30155
30156 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30157
30158         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30159         (layout_type): Use RECORD_OR_UNION_TYPE_P.
30160
30161 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30162
30163         * config/s390/s390.c (s390_vector_bool_type_p): New function.
30164         (s390_invalid_binary_op): New function.
30165         (TARGET_INVALID_BINARY_OP): Define macro.
30166
30167 2015-05-19  David Sherwood  <david.sherwood@arm.com>
30168
30169         * loop-invariant.c (create_new_invariant): Don't calculate address cost
30170         if mode is not a scalar integer.
30171         (get_inv_cost): Increase computational cost for unused invariants.
30172
30173 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30174
30175         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
30176         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
30177         * config/s390/s390-builtin-types.def: New file.
30178         * config/s390/s390-builtins.def: New file.
30179         * config/s390/s390-builtins.h: New file.
30180         * config/s390/s390-c.c: New file.
30181         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30182         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30183         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30184         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30185         prototypes.
30186         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30187         Include.
30188         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30189         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30190         variable definitions.
30191         (s390_const_operand_ok): New function.
30192         (s390_expand_builtin): Rewrite.
30193         (s390_init_builtins): New function.
30194         (s390_handle_vectorbool_attribute): New function.
30195         (s390_attribute_table): Add s390_vector_bool attribute.
30196         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30197         (s390_branch_condition_mask): Generate masks for new modes.
30198         (s390_expand_vec_compare_cc): New function.
30199         (s390_mangle_type): Add mangling for vector bool types.
30200         (enum s390_builtin): Remove.
30201         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30202         efpc builtins.
30203         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30204         s390_cpu_cpp_builtins.
30205         (REGISTER_TARGET_PRAGMAS): New macro.
30206         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30207         (insn_cmp mode attribute): Add new CC modes.
30208         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30209         (lcbb): New pattern definition.
30210         * config/s390/s390intrin.h: Include vecintrin.h.
30211         * config/s390/t-s390: New file.
30212         * config/s390/vecintrin.h: New file.
30213         * config/s390/vector.md: Include vx-builtins.md.
30214         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30215         support.
30216
30217 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30218
30219         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30220         CCVFHE.
30221         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30222         (s390_select_ccmode): Likewise.
30223         (s390_canonicalize_comparison): Swap operands if necessary.
30224         (s390_expand_vec_compare_scalar): Expand DFmode compare using
30225         single element vector instructions.
30226         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30227         (s390_branch_condition_mask): Generate CC masks for the new modes.
30228         * config/s390/s390.md (v0, vf, vd): New mode attributes.
30229         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30230         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30231         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30232         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30233         (*extend<DSF:mode><BFP:mode>2): New insn definition.
30234         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30235         (extend<DSF:mode><BFP:mode>2): Turn into expander.
30236         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30237         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30238         (sqrt<mode>2): Add vector instruction.
30239
30240 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30241
30242         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30243         constraints.
30244         * config/s390/predicates.md (const0_operand, constm1_operand)
30245         (constable_operand): Accept vector operands.
30246         * config/s390/s390-modes.def: Add supported vector modes.
30247         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30248         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30249         (s390_bytemask_vector_p, s390_expand_vec_strlen)
30250         (s390_expand_vec_compare, s390_expand_vcond)
30251         (s390_expand_vec_init): Add prototypes.
30252         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30253         (s390_vector_mode_supported_p): New function.
30254         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30255         (s390_contiguous_bitmask_vector_p): New function.
30256         (s390_bytemask_vector_p): New function.
30257         (s390_split_ok_p): Vector regs don't work either.
30258         (regclass_map): Add VEC_REGS.
30259         (s390_legitimate_constant_p): Handle vector constants.
30260         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30261         (legitimate_reload_vector_constant_p): New function.
30262         (s390_preferred_reload_class): Handle CONST_VECTOR.
30263         (s390_reload_symref_address):  Likewise.
30264         (s390_secondary_reload): Vector memory instructions only support
30265         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
30266         (s390_emit_ccraw_jump): New function.
30267         (s390_expand_vec_strlen): New function.
30268         (s390_expand_vec_compare): New function.
30269         (s390_expand_vcond): New function.
30270         (s390_expand_vec_init): New function.
30271         (s390_dwarf_frame_reg_mode): New function.
30272         (print_operand): Handle addresses with 'O' and 'R' constraints.
30273         (NR_C_MODES, constant_modes): Add vector modes.
30274         (s390_output_pool_entry): Handle vector constants.
30275         (s390_hard_regno_mode_ok): Handle vector registers.
30276         (s390_class_max_nregs): Likewise.
30277         (s390_cannot_change_mode_class): New function.
30278         (s390_invalid_arg_for_unprototyped_fn): New function.
30279         (s390_function_arg_vector): New function.
30280         (s390_function_arg_float): Remove size variable.
30281         (s390_pass_by_reference): Handle vector arguments.
30282         (s390_function_arg_advance): Likewise.
30283         (s390_function_arg): Likewise.
30284         (s390_return_in_memory): Vector values are returned in a VR if
30285         possible.
30286         (s390_function_and_libcall_value): Handle vector arguments.
30287         (s390_gimplify_va_arg): Likewise.
30288         (s390_call_saved_register_used): Consider the arguments named.
30289         (s390_conditional_register_usage): Disable v16-v31 for non-vec
30290         targets.
30291         (s390_preferred_simd_mode): New function.
30292         (s390_support_vector_misalignment): New function.
30293         (s390_vector_alignment): New function.
30294         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30295         (TARGET_VECTOR_MODE_SUPPORTED_P)
30296         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30297         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30298         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30299         (TARGET_VECTOR_ALIGNMENT): Define target macro.
30300         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30301         (FIRST_PSEUDO_REGISTER): Increase value.
30302         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30303         (VECTOR_REG_P): Define macros.
30304         (FIXED_REGISTERS, CALL_USED_REGISTERS)
30305         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30306         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30307         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30308         Add vector registers.
30309         (CANNOT_CHANGE_MODE_CLASS): Call C function.
30310         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30311         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30312         memory.
30313         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30314         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30315         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30316         (VR*_REGNUM): New constants.
30317         (ALL): New mode iterator.
30318         (INTALL): Remove mode iterator.
30319         Include vector.md.
30320         (movti): Implement TImode moves for VRs.
30321         Disable TImode splitter for VR targets.
30322         Implement splitting TImode GPR<->VR moves.
30323         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30324         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30325         reload<mode>_la_in, reload<mode>_la_out.
30326         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30327         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30328         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30329         (mov<mode> SF SD): Prefer lder, lde for loading.
30330         Add lrl and strl instructions.
30331         Add vector instructions.
30332         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30333         Call s390_expand_vec_strlen on z13.
30334         (*cc_to_int): Change predicate to nonimmediate_operand.
30335         (addti3): Rename to *addti3.  New expander.
30336         (subti3): Rename to *subti3.  New expander.
30337         * config/s390/vector.md: New file.
30338
30339 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30340
30341         * common/config/s390/s390-common.c (processor_flags_table): Add
30342         z13.
30343         * config.gcc: Add z13.
30344         * config/s390/s390-opts.h (enum processor_type): Add
30345         PROCESSOR_2964_Z13.
30346         * config/s390/s390.c (s390_adjust_priority): Check for
30347         PROCESSOR_2964_Z13.
30348         (s390_reorg): Likewise.
30349         (s390_sched_reorder): Likewise.
30350         (s390_sched_variable_issue): Likewise.
30351         (s390_loop_unroll_adjust): Likewise.
30352         (s390_option_override): Likewise. Default to -mvx when available.
30353         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30354         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30355         (TARGET_VX_ABI): Define macros.
30356         macros.
30357         (TARGET_DEFAULT): Add MASK_OPT_VX.
30358         * config/s390/s390.md ("cpu" attribute): Add z13.
30359         ("cpu_facility" attribute): Add vec.
30360         * config/s390/s390.opt (processor_type): Add z13.
30361         (mvx): New options.
30362         * doc/invoke.texi: Add z13 option for -march.
30363
30364 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30365
30366         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30367         mode check to make sure that only scalar integer values are
30368         accepted.
30369
30370 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30371
30372         * tree.c (verify_type_variant): Fix #undef.
30373         (gimple_canonical_types_compatible_p): Move here from lto.c
30374         (verify_type): Verify TYPE_CANONICAL compatibility.
30375         * tree.h (gimple_canonical_types_compatible_p): Declare.
30376
30377 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30378
30379         PR middle-end/66199
30380         * tree.h (OMP_TEAMS_COMBINED): Define.
30381         * gimplify.c (enum gimplify_omp_var_data): Add
30382         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30383         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30384         (omp_notice_variable): Accept both ORT_TEAMS
30385         and ORT_COMBINED_TEAMS.  Don't recurse if
30386         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30387         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30388         GOVD_FIRSTPRIVATE.
30389         (omp_no_lastprivate): New function.
30390         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30391         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30392         notice_outer and set appropriate bits, otherwise make
30393         sure default(none) combined constructs won't complain.
30394         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30395         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30396         omp_no_lastprivate either remove the clause or turn it
30397         into OMP_CLAUSE_PRIVATE.
30398         (gimplify_omp_for): Fix up handling of implicit
30399         lastprivate or linear iterators.
30400         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30401         ORT_COMBINED_TEAMS.
30402         * omp-low.c (lower_omp_for_lastprivate): For combined
30403         for simd use fd.loop.n2 from the for rather than simd.
30404
30405 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30406
30407         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30408         instead of gen_rtx_raw_REG.
30409         (cris_expand_epilogue): Likewise.
30410         * config/microblaze/microblaze.c (microblaze_classify_address):
30411         Likewise.
30412         * config/sparc/sparc.md: Likewise.
30413
30414 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
30415
30416         * config/alpha/alpha.c (alpha_legitimize_reload_address)
30417         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30418         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30419         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30420         Use CASE_CONST_SCALAR_INT.
30421         (print_operand) <case 'M'>: Use mode_width_operand to check the
30422         value of the constant.
30423         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30424         * config/alpha/predicates.md (input_operand): Use general_operand
30425         instead of match_code as operand check.
30426         (symbolic_operand): Use match_code with subexpression digits.
30427         * config/alpha/constraints.md (Q): Ditto.
30428
30429 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30430
30431         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30432
30433 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30434
30435         * config/s390/s390.c (s390_secondary_reload): Fix check for
30436         load/store relative.
30437
30438 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30439
30440         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
30441         alternative_mask to uint64_t.
30442
30443 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30444
30445         PR tree-optimization/66187
30446         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30447         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
30448         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30449
30450 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
30451
30452         * diagnostic.c (diagnostic_report_current_module): Strengthen
30453         local "new_map" from const line_map * to
30454         const line_map_ordinary *.
30455         * genmatch.c (error_cb): Likewise for local "map".
30456         (output_line_directive): Likewise for local "map".
30457         * input.c (expand_location_1): Likewise for local "map".
30458         Pass NULL rather than &map to
30459         linemap_unwind_to_first_non_reserved_loc, since the value is never
30460         read from there, and the value written back not read from here.
30461         (is_location_from_builtin_token): Strengthen local "map" from
30462         const line_map * to const line_map_ordinary *.
30463         (dump_location_info): Strengthen locals "map" from
30464         line_map *, one to const line_map_ordinary *, the other
30465         to const line_map_macro *.
30466         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30467         const line_map * to const line_map_macro *.
30468         (maybe_unwind_expanded_macro_loc): Add a call to
30469         linemap_check_macro when writing to the "map" field of the
30470         loc_map_pair.
30471         Introduce local const line_map_ordinary * "ord_map", using it in
30472         place of "map" in the part of the function where we know we have
30473         an ordinary map.  Strengthen local "m" from const line_map * to
30474         const line_map_ordinary *.
30475
30476 2015-05-19  Nick Clifton  <nickc@redhat.com>
30477
30478         PR target/66156
30479         * config/msp430/msp430.md (zero_extendhisi2): Add support for
30480         separate source and destination registers.
30481
30482 2015-05-19  Richard Biener  <rguenther@suse.de>
30483
30484         PR tree-optimization/66165
30485         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30486         for no load permutation.
30487
30488         PR tree-optimization/66185
30489         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30490         when building the SLP node from scalars.
30491
30492 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30493             Tristan Gingold  <gingold@adacore.com>
30494
30495         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30496         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30497         (expand_stack_restore): Call record_new_stack_level.
30498         (expand_stack_save): Do not call do_pending_stack_adjust.
30499         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30500         * calls.c (expand_call): Call record_new_stack_level for alloca.
30501         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30502         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30503         (update_sjlj_context): New global function.
30504         * except.h (update_sjlj_context): Declare.
30505         * explow.c (record_new_stack_level): New global function.
30506         (allocate_dynamic_stack_space): Call record_new_stack_level.
30507         * explow.h (record_new_stack_level): Declare.
30508         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30509         * cfgrtl.c (duplicate_insn_chain): Likewise.
30510
30511 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30512
30513         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30514         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30515         STACK_GROWS_DOWNWARD as normal if.
30516         (expand_call): Likewise.
30517
30518 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
30519
30520         PR target/54236
30521         * config/sh/sh.md (*round_int_even): New insn_and_split and
30522         accompanying new unnamed split.
30523
30524 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30525
30526         * bitmap.c (bitmap_set_range): Handle count==1 specially.
30527         (bitmap_clear_range): Likewise.
30528         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30529         bitmap_set_range unconditionally.
30530         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30531         * df-scan.c (df_mark_reg): Likewise.
30532         * haifa-sched.c (setup_ref_regs): Likewise.
30533         * sched-rgn.c (update_live_1): Likewise.
30534
30535 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30536
30537         * regs.h (END_HARD_REGNO): Delete.
30538         (END_REGNO): Move to...
30539         * rtl.h: ...here.
30540         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30541         * caller-save.c (mark_set_regs): Likewise.
30542         * combine.c (move_deaths, distribute_notes): Likewise.
30543         * cse.c (invalidate, invalidate_for_call): Likewise.
30544         * df-scan.c (df_ref_record): Likewise.
30545         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30546         (record_last_reg_set_info): Likewise.
30547         * reg-stack.c (convert_regs_exit): Likewise.
30548         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30549         * resource.c (update_live_status): Likewise.
30550         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30551
30552 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30553
30554         * rtl.h (reg_info): Add an nregs field.
30555         (REG_NREGS): Use it.
30556         (SET_REGNO_RAW): Delete.
30557         (set_regno_raw): New function.
30558         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30559         (END_REGNO): Redefine in terms of REG_NREGS.
30560         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30561         SET_REGNO_RAW.
30562         * emit-rtl.c (set_mode_and_regno): Likewise.
30563         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30564         instead of SET_REGNO_RAW.
30565
30566 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30567
30568         * rtl.h (PUT_MODE_RAW): New macro.
30569         (PUT_REG_NOTE_KIND): Use it.
30570         (set_mode_and_regno): Declare.
30571         (gen_raw_REG): Change regno to "unsigned int".
30572         (gen_rtx_REG): Change "unsigned" to "unsigned int".
30573         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30574         use set_mode_and_regno to change the mode of registers.
30575         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30576         * emit-rtl.c (set_mode_and_regno): New function.
30577         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
30578         * caller-save.c (reg_save_code): Use set_mode_and_regno.
30579         * expr.c (init_expr_target): Likewise.
30580         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30581         * postreload.c (reload_cse_simplify_operands): Likewise.
30582
30583 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30584
30585         * caller-save.c (init_caller_save): Use word_mode and
30586         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30587         * expr.c (init_expr_target): Likewise.
30588         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30589         * postreload.c (reload_cse_regs_1): Likewise.
30590
30591 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30592
30593         * rtl.def (REG): Change format to "r".
30594         * rtl.h (rtunion): Remove rt_reg.
30595         (reg_info): New structure.
30596         (rtx_def): Add reg field to main union.
30597         (X0REGATTR): Delete.
30598         (REG_CHECK): New macro.
30599         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30600         * rtl.c (rtx_format): Document "r".
30601         (rtx_code_size): Handle REG specially.
30602         * gengenrtl.c (special_format): Return true for formats
30603         that include 'r'.
30604         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30605         Deal with REG_ATTRS after the field loop.
30606         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30607         * expmed.c (init_expmed): Call gen_raw_REG instead of
30608         gen_rtx_raw_REG.
30609         * expr.c (init_expr_target): Likewise.
30610         * regcprop.c (maybe_mode_change): Likewise.
30611         * varasm.c (make_decl_rtl): Likewise.
30612         * final.c (leaf_renumber_regs_insn): Return early after
30613         handling REGs.
30614         * genemit.c (gen_exp): Handle 'r' fields.
30615         * genpeep.c (match_rtx): Likewise.
30616         * gensupport.c (subst_pattern_match): Likewise.
30617         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30618         (alter_constraints, subst_dup): Likewise.
30619         * read-rtl.c (read_rtx_code): Likewise.
30620         * print-rtl.c (print_rtx): Likewise.
30621         * genrecog.c (find_operand, find_matching_operand): Likewise.
30622         (validate_pattern, match_pattern_2): Likewise.
30623         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30624         (rtx_test::regno_field): New function.
30625         (operator ==, safe_to_hoist_p, transition_parameter_type)
30626         (parameter_type_string, print_parameter_value)
30627         (print_nonbool_test, print_test): Handle new enum values.
30628         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30629         * lra-constraints.c (operands_match_p): Likewise.
30630
30631 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30632
30633         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30634         Change type of new_regno to unsigned int.
30635         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30636         new_regno to unsigned int.
30637         (df_ref_change_reg_with_loc): Remove old_regno parameter.
30638         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
30639         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30640         (SET_REGNO_RAW): Add space after ",".
30641
30642 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30643
30644         * rtl.h (REG_NREGS): New macro
30645         * alias.c (record_set): Use it.
30646         * cfgcleanup.c (mark_effect): Likewise.
30647         * combine.c (likely_spilled_retval_1): Likewise.
30648         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30649         (move_deaths, distribute_notes): Likewise.
30650         * cselib.c (cselib_record_set): Likewise.
30651         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30652         * df-scan.c (df_mark_reg): Likewise.
30653         * dse.c (look_for_hardregs): Likewise.
30654         * dwarf2out.c (reg_loc_descriptor): Likewise.
30655         (multiple_reg_loc_descriptor): Likewise.
30656         * expr.c (write_complex_part, read_complex_part): Likewise.
30657         (emit_move_complex): Likewise.
30658         * haifa-sched.c (setup_ref_regs): Likewise.
30659         * ira-lives.c (mark_hard_reg_live): Likewise.
30660         * lra.c (lra_set_insn_recog_data): Likewise.
30661         * mode-switching.c (create_pre_exit): Likewise.
30662         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30663         (reload_combine_recognize_pattern): Likewise.
30664         (reload_combine_note_use, move2add_record_mode): Likewise.
30665         (reload_cse_move2add): Likewise.
30666         * reg-stack.c (subst_stack_regs_pat): Likewise.
30667         * regcprop.c (kill_value, copy_value): Likewise.
30668         (copyprop_hardreg_forward_1): Likewise.
30669         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30670         (build_def_use): Likewise.
30671         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30672         (deps_analyze_insn): Likewise.
30673         * sched-rgn.c (check_live_1, update_live_1): Likewise.
30674         * sel-sched.c (count_occurrences_equiv): Likewise.
30675         * valtrack.c (dead_debug_insert_temp): Likewise.
30676
30677 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30678
30679         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30680         * dse.c (note_add_store): Likewise.
30681         * ira-lives.c (mark_hard_reg_dead): Likewise.
30682         * loop-invariant.c (mark_reg_store): Likewise.
30683         (mark_reg_death): Likewise.
30684         * postreload.c (reload_combine): Likewise.
30685         (reload_combine_note_store): Likewise.
30686         (reload_combine_note_use): Likewise.
30687         * recog.c (peep2_reg_dead_p): Likewise.
30688
30689 2015-05-19  Alan Modra  <amodra@gmail.com>
30690
30691         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30692         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30693         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30694         unused predicates.
30695         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30696         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
30697         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30698         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30699
30700 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
30701
30702         * config/mips/mips.md (JOIN_MODE): New mode iterator.
30703         (join2_load_Store<JOIN_MODE:mode>): New pattern.
30704         (join2_loadhi): Likewise.
30705         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30706         load-load and store-stores.
30707         * config/mips/mips.opt (mload-store-pairs): New option.
30708         (TARGET_LOAD_STORE_PAIRS): New macro.
30709         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30710         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30711         * config/mips/mips.c (mips_load_store_bonding_p): New function.
30712
30713 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
30714
30715         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30716         explicit swaps.
30717         * dojump.c (do_compare_rtx_and_jump): Likewise.
30718         * expmed.c (emit_store_flag_1): Likewise.
30719         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30720         * final.c (sprint_ul): Use std::reverse for reversing a string.
30721         * fold-const.c (extract_muldiv_1): Use std::swap.
30722         * genmodes.c (emit_mode_int_n): Likewise.
30723         * ifcvt.c (dead_or_predicable): Likewise.
30724         * ira-build.c (ira_merge_live_ranges): Likewise.
30725         (swap_allocno_copy_ends_if_necessary): Likewise.
30726         * ira.c (ira_setup_alts): Likewise.
30727         * loop-iv.c (iv_analyze_expr): Likewise.
30728         (implies_p): Likewise.
30729         (canon_condition): Likewise.
30730         * lra-constraints.c (swap_operands): Likewise.
30731         * lra-lives.c (lra_merge_live_ranges): Likewise.
30732         * omega.c (swap): Remove.
30733         (bswap): Remove.
30734         (omega_unprotect_1): Use std::swap.
30735         (omega_solve_geq): Likewise.
30736         * optabs.c (expand_binop_directly): Likewise.
30737         (expand_binop): Likewise.
30738         (emit_conditional_move): Likewise.
30739         (emit_conditional_add): Likewise.
30740         * postreload.c (reload_cse_simplify_operands): Likewise.
30741         * reg-stack.c (emit_swap_insn): Likewise.
30742         (swap_to_top): Likewise.
30743         (compare_for_stack_reg): Likewise.
30744         (subst_asm_stack_regs): Likewise.
30745         * reload.c (find_reloads): Likewise.
30746         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30747         * sel-sched.c (invoke_reorder_hooks): Likewise.
30748         (create_block_for_bookkeeping): Likewise.
30749         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30750         (lambda_matrix_right_hermite): Use std::swap.
30751         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30752         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30753         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30754         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30755         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30756         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30757         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30758         * tree-vrp.c (compare_ranges): Likewise.
30759         * var-tracking.c (add_with_sets): Likewise.
30760         (vt_find_locations): Likewise.
30761
30762 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
30763
30764         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30765         pie executables.
30766         (FBSD_ENDFILE_SPEC): Likewise.
30767         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30768         config/freebsd-spec.h.
30769         (ENDFILE_SPEC): Likewise.
30770
30771 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
30772             Richard Henderson  <rth@redhat.com>
30773
30774         PR target/57032
30775         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30776         Check for a memory location that is not a reference (using an AND)
30777         to an unaligned location here.
30778         * config/alpha/predicates.md (normal_memory_operand): Remove.
30779
30780 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
30781
30782         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30783         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30784
30785 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
30786
30787         * config/mips/mips.c (micromips_globals): New variable.
30788         (mips_set_compression_mode): Save and reinitialize target-dependent
30789         state for microMIPS.
30790
30791 2015-05-18  Martin Liska  <mliska@suse.cz>
30792
30793         * dbgcnt.def: Add new counter.
30794         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30795
30796 2015-05-18  Martin Liska  <mliska@suse.cz>
30797
30798         * dbgcnt.def: Sort counters.
30799         * opts.c (common_handle_option): Do not compile if
30800         -fdbg-cnt-list is enabled.
30801
30802 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30803
30804         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30805         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
30806         address operator to va_list operand.
30807         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30808         unconditionally.
30809         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30810         operand.
30811         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30812         * config/s390/s390.c (s390_gimplify_va_arg): Same.
30813         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30814
30815 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30816
30817         * tree-ssa-tail-merge.c: Fix whitespace.
30818
30819 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
30820
30821         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30822         cortex-a17, and cortex-a17.cortex-a7.
30823
30824 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
30825
30826         PR target/54236
30827         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30828
30829 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
30830
30831         PR target/66174
30832         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30833         QImode inner modes for TARGET_AVX512BW.  Force mask operand
30834         to a register for AVX512F modes.
30835
30836 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30837
30838         * toplev.c (emit_debug_global_declarations): Do not output debug info
30839         when doing slim LTO objects.
30840
30841 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30842
30843         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30844         odr_types_equivalent_p): Declare.
30845         (odr_type_p): Use gcc_checking_assert.
30846         (type_in_anonymous_namespace_p) Declare.
30847         (type_with_linkage_p): Declare.
30848         * common.opt (Wlto-type-mismatch): New warning.
30849         * ipa-devirt.c (compound_type_base): New function.
30850         (odr_or_derived_type_p): New function.
30851         (odr_types_equivalent_p): New function.
30852         (add_type_duplicate): Simplify.
30853         (type_with_linkage_p): Add hack to prevent false positives on C types
30854         (type_in_anonymous_namespace_p): Likewise.
30855         * tree.c (need_assembler_name_p): Use type_with_linkage.
30856         * tree.h (type_in_anonymous_namespace_p): Remove.
30857         * doc/invoke.texi (-Wlto-type-mismatch): Document
30858
30859 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30860
30861         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30862         (verify_type): Verify STRING_FLAG.
30863
30864 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30865
30866         PR fortran/44054
30867         * tree-pretty-print.c (percent_K_format): Replace locus pointer
30868         with accessor function.
30869         * tree-diagnostic.c (diagnostic_report_current_function): Use
30870         diagnostic_location function.
30871         (maybe_unwind_expanded_macro_loc): Likewise.
30872         (virt_loc_aware_diagnostic_finalizer): Likewise.
30873         (default_tree_printer): Replace locus pointer with accessor function.
30874         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30875         (diagnostic_set_info_translated): Initialize second location.
30876         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30877         (diagnostic_show_locus): Handle two locations. Call
30878         diagnostic_print_caret_line.
30879         (diagnostic_print_caret_line): New.
30880         (default_diagnostic_starter): Use diagnostic_location function.
30881         (diagnostic_report_diagnostic): Use diagnostic_location function.
30882         (verbatim): Do not set text.locus.
30883         * diagnostic.h (struct diagnostic_info): Remove location field.
30884         (struct diagnostic_context): Make caret_chars an array of two.
30885         (diagnostic_location): New inline.
30886         (diagnostic_expand_location): Handle two locations.
30887         (diagnostic_same_line): New inline.
30888         (diagnostic_print_caret_line): Declare.
30889         (CARET_LINE_MARGIN): New constant.
30890         * pretty-print.c (pp_printf): Do not set text.locus.
30891         (pp_verbatim): Do not set text.locus.
30892         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30893         (struct text_info): Replace locus pointer with locations
30894         array. Add accessor functions.
30895
30896 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
30897             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30898
30899         PR target/65768
30900         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30901         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30902          large constants in register instead of splitting them.
30903
30904 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
30905
30906         PR target/66140
30907         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30908         replacements in memory addresses.
30909         (get_unaligned_address): Ditto.
30910
30911 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
30912
30913         * config/ft32/*: New files for FT32 port.
30914         * doc/install.texi: Add FT32 information.
30915         * doc/invoke.texi: Add FT32 information.
30916         * doc/md.texi: Add FT32 information.
30917         * doc/contrib.texi: Self added.
30918
30919 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
30920
30921         PR tree-optimization/64454
30922         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30923         (-1 - A -> ~A): Remove unnecessary condition.
30924
30925 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
30926
30927         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30928         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30929         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30930
30931 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
30932
30933         * ipa-chkp.h (chkp_wrap_function): New.
30934         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30935         (chkp_wrap_function_name): New.
30936         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30937         to get wrapper name.
30938         * lto-cgraph.c: Include ipa-chkp.h.
30939         (input_cgraph_1): Avoid alias chain for wrappers.
30940
30941 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30942
30943         PR middle-end/66134
30944         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30945         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30946
30947 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30948
30949         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30950         (AARCH64_FL_SLOWMUL): Delete.
30951         (AARCH64_FL_CRC): Redefine to 1<<3.
30952         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30953
30954 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30955
30956         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30957         casting.
30958
30959 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30960
30961         * config/alpha/alpha.md (extendqidi2): Use general_operand
30962         instead of some_operand for operand[1] predicate.
30963         (extendhidi2): Ditto.
30964         (cbranchdi4): Use general_operand instead of some_operand
30965         for operand[1] and operands[2] predicates.
30966         (cstoredi4): Ditto.
30967         * config/alpha/predicates.md (some_operand): Remove unused predicate.
30968         (some_ni_operand): Ditto.
30969
30970 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30971
30972         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30973         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
30974         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30975         low part of the constant using alpha_emit_set_const_1.
30976         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30977
30978 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
30979
30980         * varasm.c (output_constant_pool_1): Pass down alignment from
30981         constant pool entry's descriptor to output_constant_pool_2.
30982         (output_object_block): Add comment prior to call to
30983         output_constant_pool_1.
30984
30985 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
30986
30987         PR rtl-optimization/65862
30988         * target.def (ira_change_pseudo_allocno_class): New hook.
30989         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30990         value of the hook.
30991         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30992         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30993         hook.
30994         * ira-costs.c (find_costs_and_classes): Call the hook and change
30995         classes when it is necessary.
30996         * doc/tm.texi: Update.
30997
30998 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
30999
31000         * config/i386/i386.md (sibcall_memory): Check that register with
31001         callee address is not also used as one of the arguments, instead
31002         of checking that it is not live after the sibcall.
31003         (sibcall_pop_memory): Ditto.
31004         (sibcall_value_memory): Ditto.
31005         (sibcall_value_pop_memory): Ditto.
31006
31007 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
31008
31009         * generic-match-head.c (types_match): Handle non-types.
31010         * gimple-match-head.c (types_match): Likewise.
31011         * match.pd: Remove unnecessary TREE_TYPE for types_match.
31012
31013 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
31014
31015         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31016         (csneg3<mode>_insn): Enable expansion of pattern.
31017
31018 2015-05-14  Nick Clifton  <nickc@redhat.com>
31019
31020         * config/rl78/rl78.c (rl78_select_section): Select the correct
31021         default section based upon the category of the decl.
31022
31023 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31024
31025         PR rtl-optimization/30967
31026         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31027         destination mode for the cost of scc patterns.
31028
31029 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31030
31031         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31032         using SWIM248 mode iterator.
31033         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31034         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
31035         for operand[2] constraint.
31036         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31037
31038 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31039
31040         PR middle-end/66133
31041         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31042         make sure it is never noreturn, even when the task body does not
31043         return.
31044         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31045         right before GIMPLE_OMP_RETURN.
31046         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31047         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
31048         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31049
31050 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31051
31052         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31053         * tree-ssa-math-opts.c: Include params.h
31054         (pow_synth_sqrt_info): New struct.
31055         (representable_as_half_series_p): New function.
31056         (get_fn_chain): Likewise.
31057         (print_nested_fn): Likewise.
31058         (dump_fractional_sqrt_sequence): Likewise.
31059         (dump_integer_part): Likewise.
31060         (expand_pow_as_sqrts): Likewise.
31061         (gimple_expand_builtin_pow): Use above to attempt to expand
31062         pow as series of square roots.  Removed now unused variables.
31063
31064 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31065
31066         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31067         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31068         Remove *p0 and *p1 arguments.  Rewrite function.
31069         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31070         (alpha_split_const_mov): Update calls to alpha_extract_integer and
31071         alpha_emit_set_long_const.
31072         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31073         (alpha_output_mi_thunk_osf): Ditto.
31074         * config/alpha/alpha.md (movti): Do not check operands[1]
31075         for CONST_DOUBLE.
31076
31077 2015-05-13  Richard Biener  <rguenther@suse.de>
31078
31079         PR tree-optimization/66129
31080         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31081         commutative.
31082         (vect_schedule_slp_instance): Fix typo.
31083
31084 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
31085
31086         * common.opt (fdump-internal-locations): New option.
31087         * input.c: Include diagnostic-core.h.
31088         (get_end_location): New function.
31089         (write_digit): New function.
31090         (write_digit_row): New function.
31091         (dump_location_range): New function.
31092         (dump_labelled_location_range): New function.
31093         (dump_location_info): New function.
31094         * input.h (dump_location_info): New prototype.
31095         * toplev.c (compile_file): Handle flag_dump_locations.
31096
31097 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
31098
31099         * gimple-expr.h (is_gimple_constant): Reorder.
31100         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31101
31102 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31103
31104         * combine.c (simplify_set): When generating a CC set, if the
31105         source already is in the correct mode, do not wrap it in a
31106         compare.  Simplify the rest of that code.
31107
31108 2015-05-13  Richard Biener  <rguenther@suse.de>
31109
31110         PR tree-optimization/66123
31111         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31112         a taken edge.
31113
31114 2015-05-13  Richard Biener  <rguenther@suse.de>
31115
31116         PR middle-end/66110
31117         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31118         specially.
31119         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31120
31121 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
31122
31123         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31124         * aclocal.m4: Regenerated with automake-1.11.6.
31125
31126 2015-05-13  Tom de Vries  <tom@codesourcery.com>
31127
31128         PR tree-optimization/66010
31129         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31130         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31131         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
31132         and rval based on do_deref.
31133
31134 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31135
31136         PR target/65103
31137         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31138         link time constants into adress expressions and therefore set
31139         their cost to 0.
31140
31141 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31142
31143         PR target/66112
31144         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31145         Use SWI248 iterator instead of SWI.
31146         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
31147         Use eq_attr "alternative" "0" instead of match_test in
31148         length_immediate attribute computation.
31149         (*mulvhi4, *mulvhi4_1): New define_insns.
31150
31151         PR target/66112
31152         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31153         SIGNED to get precision of non-negative value.
31154
31155 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31156
31157         PR target/66048
31158         * function.c (diddle_return_value_1): Process bounds first.
31159         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31160         register.
31161
31162 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31163
31164         PR rtl-optimization/64616
31165         * loop-invariant.c (can_move_invariant_reg): New.
31166         (move_invariant_reg): Call above new function to decide whether
31167         instruction can just be moved, skipping creation of temporary
31168         register.
31169
31170 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31171
31172         PR target/pr66047.c
31173         * i386.c (ix86_function_sseregparm): Only return -1 if local function
31174         with implied regparm is called from -mno-sse function.
31175         (init_cumulative_args): Output error if ix86_function_sseregparm
31176         return -1 and SSE register would be needed.
31177         (function_arg_advance_32): Likewise.
31178         (function_arg_32): Likewise.
31179         * i386.h (ix86_args): Add decl field.
31180
31181 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31182
31183         PR ipa/65873
31184         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31185         inlines across optimization boundary.
31186
31187 2015-05-12  Jason Merrill  <jason@redhat.com>
31188
31189         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31190         string literal and macro name.
31191
31192 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
31193
31194         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31195         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31196         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31197
31198 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31199
31200         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31201         (-Wmisleading-indentation): New option.
31202         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31203
31204 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
31205
31206         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31207         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31208         (alpha_extract_integer): Ditto.
31209         (alpha_legitimate_constant_p): Ditto.
31210         (alpha_split_tmode_pair): Ditto.
31211         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31212         (alpha_expand_mov): Ditto.
31213         (print_operand): Remove handling of 'H' modifier.
31214         <case 'm'>: Remove CONST_DOUBLE handling.
31215         (summarize_insn): Handle CONST_WIDE_INT.
31216         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31217         (anddi3): Ditto.
31218         (movti): Handle CONST_WIDE_INT.
31219         * config/alpha/constraints.md ('H'): Remove constraint definition.
31220         ('G'): Do not match MODE_FLOAT class.
31221         * config/alpha/predicates.md (const0_operand): Also match
31222         const_wide_int.
31223         (non_add_const_operand): Ditto.
31224         (non_zero_const_operand): Ditto.
31225         (some_operand): Ditto.
31226         (input_operand): Ditto.  Handle CONST_WIDE_INT.
31227         (and_operand): Do not match const_double.
31228         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31229
31230 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
31231
31232         PR target/65697
31233         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31234         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31235         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31236         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31237         is_mm_seq_cst, is_mm_sync): New accessor functions.
31238         * builtins.c (expand_builtin_sync_operation,
31239         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31240         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31241         (get_memmodel,  expand_builtin_atomic_compare_exchange,
31242         expand_builtin_atomic_load, expand_builtin_atomic_store,
31243         expand_builtin_atomic_clear): Use new accessor routines.
31244         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31245         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31246         (maybe_emit_sync_lock_test_and_set): Use new accessors and
31247         MEMMODEL_SYNC_ACQUIRE.
31248         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31249         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31250         expand_atomic_store): Use new accessors.
31251         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31252         * tsan.c (instrument_builtin_call): Update check for memory model beyond
31253         final enum to use MEMMODEL_LAST.
31254         * c-family/c-common.c: Use new accessor for memmodel_base.
31255         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31256         accessors.
31257         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31258         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31259         mem_thread_fence, *dmb): Likewise.
31260         * config/alpha/alpha.c (alpha_split_compare_and_swap,
31261         alpha_split_compare_and_swap_12): Likewise.
31262         * config/arm/arm.c (arm_expand_compare_and_swap,
31263         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31264         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31265         atomic_loaddi): Likewise.
31266         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31267         Likewise.
31268         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31269         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31270         use new accessors.
31271         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31272         atomic_store<mode>, atomic_compare_and_swap<mode>,
31273         atomic_exchange<mode>): Use new accessors.
31274         * config/mips/mips.c (mips_process_sync_loop): Likewise.
31275         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31276         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31277         rs6000_post_atomic_barrier): Add new cases.
31278         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31279         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31280         (atomic_load<mode>): Add new cases and use new accessors.
31281         (store_quadpti): Add new cases.
31282         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31283         accessors.
31284         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31285         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31286         model, not 8.
31287
31288 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31289
31290         * ipa-devirt.c (type_with_linkage_p): New function.
31291         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31292         type has linkage.
31293         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31294         (can_be_name_hashed_p): Simplify.
31295         (hash_odr_name): Check that type has linkage before checking if it is
31296         anonymous.
31297         (types_same_for_odr): Likewise.
31298         (odr_name_hasher::equal): Likewise.
31299         (odr_subtypes_equivalent_p): Likewise.
31300         (warn_types_mismatch): Likewise.
31301         (get_odr_type): Likewise.
31302         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31303         * ipa-utils.h (odr_type_p): Move offline.
31304         * tree.c (need_assembler_name_p): Fix handling of types
31305         without linkages.
31306         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31307
31308 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31309
31310         * timevar.c (timevar_enable): Delete in favor of...
31311         (g_timer): New global.
31312         (struct timevar_def): Move to timevar.h inside class timer.
31313         (struct timevar_stack_def): Likewise.
31314         (timevars): Delete global in favor of field "m_timevars" within
31315         class timer in timevar.h
31316         (stack): Likewise, in favor of field "m_stack".
31317         (unused_stack_instances): Likewise, in favor of field
31318         "m_unused_stack_instances".
31319         (start_time): Likewise, in favor of field "m_start_time".
31320         (get_time): Eliminate check for timevar_enable.
31321         (timer::timer): New function, built from part of timevar_init.
31322         (timevar_init): Rewrite idempotency test from using
31323         "timevar_enable" bool to using dynamic allocation of "g_timer".
31324         Move rest of implementation into timer's constructor.
31325         (timevar_push_1): Rename to...
31326         (timer::push): ...this, adding "m_" prefixes to variables that
31327         are now fields of timer.
31328         (timevar_pop_1): Likewise, rename to...
31329         (timer::pop): ...this, and add "m_" prefixes.
31330         (timevar_start): Replace test for "timevar_enable" with one for
31331         "g_timer", and move bulk of implementation to...
31332         (timer::start): ...here, adding "m_" prefixes.
31333         (timevar_stop): Likewise, from here...
31334         (timer::stop): ...to here.
31335         (timevar_cond_start): Likewise, from here...
31336         (timer::cond_start): ...to here.
31337         (timevar_cond_stop): Likewise, from here...
31338         (timer::cond_stop): ...to here.
31339         (validate_phases): Rename to...
31340         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
31341         locals "total" and "tv" const.
31342         (timevar_print): Rename to...
31343         (timer::print): ...this, and add "m_" prefixes.  Make locals
31344         "total" and "tv" const.  Eliminate test for timevar_enable.
31345         * timevar.h (timevar_enable): Eliminate.
31346         (g_timer): New declaration.
31347         (timevar_push_1): Eliminate.
31348         (timevar_pop_1): Eliminate.
31349         (timevar_print): Eliminate.
31350         (class timer): New class.
31351         (timevar_push): Rewrite to use g_timer.
31352         (timevar_pop): Likewise.
31353         * toplev.c (toplev::~toplev): Likewise.
31354
31355 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
31356
31357         * arm-protos.h (arm_sched_autopref): Delete.
31358         (tune_params): Re-organize, use enums for flag values.
31359         (FUSE_OPS): New macro.
31360         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31361         (ARM_PREFETCH_BENEFICIAL): Likewise.
31362         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31363         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31364         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31365         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31366         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31367         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
31368         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31369         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31370         format.
31371         (arm_option_override, thumb2_reorg, arm_print_tune_info)
31372         (aarch_macro_fusion_pair_p): Update uses of current_tune.
31373         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31374
31375 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
31376
31377         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31378         "break".
31379
31380 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
31381             Sandra Loosemore <sandra@codesourcery.com>
31382
31383         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31384         value.
31385         (REG_CLASS_NAMES): Add "IJMP_REGS".
31386         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31387         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31388         use new "c" register constraint.
31389         * config/nios2/constraint.md (c): New register constraint
31390         corresponding to IJMP_REGS.
31391
31392 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31393
31394         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31395         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31396         define_splits): Delete, revamp, transmogrify into ...
31397         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31398         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31399         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31400         New.
31401
31402 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31403
31404         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31405         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31406
31407 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31408
31409         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31410         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31411         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31412         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31413         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31414         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31415         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31416         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31417         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31418         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31419         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31420         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31421         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31422         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31423         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31424         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31425         and 30 corresponding splitters): Delete.
31426
31427 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31428
31429         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31430         zero_extract.
31431
31432 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31433
31434         * combine.c (recog_for_combine_1): New function, factored out
31435         from recog_for_combine.
31436         (change_zero_ext): New function.
31437         (recog_for_combine): If recog fails, try again with the pattern
31438         modified by change_zero_ext; if that still fails, restore the
31439         pattern.
31440
31441 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31442
31443         * combine.c (get_undo_marker): New function.
31444         (undo_to_marker): New function, largely factored out from ...
31445         (undo_all): ... this.  Adjust.
31446
31447 2015-05-12  Richard Biener  <rguenther@suse.de>
31448
31449         PR tree-optimization/66101
31450         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31451         fixup if we turn a loop exit edge to a fallthru edge.
31452
31453 2015-05-12  Richard Biener  <rguenther@suse.de>
31454
31455         PR tree-optimization/37021
31456         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31457         (SLP_TREE_TWO_OPERATORS): New define.
31458         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31459         SLP_TREE_TWO_OPERATORS.
31460         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31461         SLP node.
31462         (vect_build_slp_tree): Adjust.
31463         (vect_analyze_slp_cost_1): Likewise.
31464         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31465         emitting two vector stmts and mixing the results.
31466
31467 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31468
31469         * call.c (print_z_candidates): Remove dead code.
31470
31471 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31472
31473         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31474         and zEC12_simple_fp.
31475         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31476         to 1.
31477
31478 2015-05-12  Tom de Vries  <tom@codesourcery.com>
31479
31480         PR tree-optimization/66010
31481         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31482         ifn_va_arg.
31483         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31484         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
31485         va_lists are passed, and remove corresponding handling.
31486         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
31487         do_deref argument to ifn_va_arg.
31488         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31489         ifn_va_arg.
31490
31491 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31492
31493         PR target/65955
31494         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31495         REG before taking its REGNO.
31496
31497 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31498
31499         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31500         rsp->sign_bit_copies and rsp->nonzero_bits into ...
31501         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
31502         present to get more accurate information about the number of sign bit
31503         copies and non zero bits.
31504
31505 2015-05-12  Richard Biener  <rguenther@suse.de>
31506
31507         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31508         do not allow unrolling.
31509
31510 2015-05-11  Richard Henderson  <rth@redhat.com>
31511
31512         * config/i386/i386-modes.def (CCP): New.
31513         * config/i386/i386.c (put_condition_code): Handle it.
31514         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31515
31516 2015-05-11  Richard Henderson  <rth@redhat.com>
31517
31518         * target.def (md_asm_clobbers): Replace with...
31519         (md_asm_adjust): this.
31520         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31521         (TARGET_MD_ASM_ADJUST): New.
31522         * tm.texi: Rebuild.
31523         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31524         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31525         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31526
31527         * cfgexpand.c (check_operand_nalternatives): Accept vector of
31528         constraints instead of lists of outputs and inputs.
31529         (expand_asm_stmt): Save and restore input_location around the
31530         body of the function.  Move asm data into vectors instead of
31531         building tree lists.  Generate cleanup sequences as needed,
31532         rather than waiting til the end.  Use new md_asm_adjust hook.
31533
31534         * config/vxworks.c: Include vec.h before target.h.
31535         * gimple.c: Likewise.
31536         * incpath.c: Likewise.
31537         * mode-switching.c: Likewise.
31538
31539         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31540         (cris_md_asm_adjust): this.
31541         (TARGET_MD_ASM_CLOBBERS): Remove.
31542         (TARGET_MD_ASM_ADJUST): New.
31543         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31544         (ix86_md_asm_adjust): this.
31545         (TARGET_MD_ASM_CLOBBERS): Remove.
31546         (TARGET_MD_ASM_ADJUST): New.
31547         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31548         (mn10300_md_asm_adjust): this.
31549         (TARGET_MD_ASM_CLOBBERS): Remove.
31550         (TARGET_MD_ASM_ADJUST): New.
31551         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31552         (rs6000_md_asm_adjust): this.
31553         (TARGET_MD_ASM_CLOBBERS): Remove.
31554         (TARGET_MD_ASM_ADJUST): New.
31555         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31556         (visium_md_asm_adjust): this.
31557         (TARGET_MD_ASM_CLOBBERS): Remove.
31558         (TARGET_MD_ASM_ADJUST): New.
31559
31560 2015-05-11  Richard Henderson  <rth@redhat.com>
31561
31562         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31563         if noutputs is zero.
31564         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31565
31566         * cfgexpand.c (expand_asm_operands): Merge into...
31567         (expand_asm_stmt): ... here.
31568
31569         * cfgexpand.c (expand_asm_operands): Don't call
31570         resolve_asm_operand_names.
31571         * stmt.c (resolve_asm_operand_names): Clarify block comment.
31572
31573 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
31574
31575         * dwarf2out.c (gen_member_die): Sanity check that we access
31576         TYPE_MAIN_VARIANT for TYPE_METHODS.
31577         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31578         checking TYPE_METHODS.
31579         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31580         if non-null.
31581         (build_distinct_type_copy): Clear TYPE_METHODS.
31582         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31583         (verify_type): Allow TYPE_METHODS to be error_mark_node.
31584         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31585
31586 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
31587
31588         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31589         (emit_pattern_before_setloc): Likewise.
31590
31591 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31592
31593         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31594         for define_peephole2s.
31595         (get_peephole2_pattern): New function.
31596         (main): Use it.  Call validate_pattern.
31597
31598 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
31599
31600         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31601         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31602         (Last callee saved reg is different for AVR_TINY architecture)
31603
31604 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31605
31606         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31607         when looking for memory references.
31608
31609 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31610
31611         PR target/65753
31612         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31613         via function pointers.
31614
31615 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31616
31617         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31618         indirect call by forcing address into a pseudo with -fno-plt.
31619         * common.opt (flag_plt): New option.
31620         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31621         ([-fno-plt]): Document.
31622
31623 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
31624
31625         PR bootstrap/66105
31626         * config/rs6000/option-defaults.h: Add space between string literal
31627         and macro name.
31628
31629 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31630
31631         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31632         accross ARM targets.
31633
31634 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31635
31636         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31637         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31638
31639 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31640
31641         PR rtl-optimization/66076
31642         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31643         Don't grow the heap array if it is already big enough from a
31644         previous iteration.
31645
31646 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31647
31648         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31649         (is_called_in_ARM_mode): Remove.
31650         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31651         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31652         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31653          arm_declare_function_name.
31654
31655 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31656
31657         * config/arm/arm.c (arm_option_override): Reoganized and split into :
31658         (arm_option_params_internal); New function.
31659         (arm_option_check_internal): New function.
31660         (arm_option_override_internal): New function.
31661         (thumb_code, thumb1_code): Remove.
31662         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31663         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31664         (thumb_code, thumb1_code): Remove.
31665         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31666
31667 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31668
31669         * config/alpha/alpha.c (alpha_emit_set_const_1)
31670         (alpha_emit_set_long_const, alpha_extract_integer)
31671         (alpha_legitimate_constant_p, alpha_split_const_mov)
31672         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31673         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31674         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31675         HOST_WIDE_INT_1U.
31676         * config/alpha/predicates.md (mode_mask_operand): Do not match
31677         const_double RTX.
31678         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31679         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31680         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31681         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31682         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31683
31684 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
31685
31686         PR target/65780
31687         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31688         default_binds_local_p_2.
31689         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31690         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31691
31692 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31693
31694         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31695
31696 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31697
31698         Patch by Richard Biener
31699         * coverage.c (coverage_obj_init): Delay building of type variant
31700         until the type is finished.
31701
31702 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31703
31704         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31705         mismatch between C and C++ type; compoare correctly ARG_TYPES
31706         for non-prototypes and output correctly parameter index for METHOD_TYPE.
31707         (odr_types_equivalent_p): Fix wording of warning about attributes;
31708         it is OK to match prototype and non-prototype.
31709
31710 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31711
31712         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31713         TYPE_ARG_TYPES list.
31714         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31715         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31716
31717 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31718
31719         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31720         * tree.h (is_lang_specific): Constify.
31721
31722 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
31723
31724         PR tree-optimization/64454
31725         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31726         Rewrite.
31727
31728 2015-05-08  Jason Merrill  <jason@redhat.com>
31729
31730         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31731         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31732         config/darwin.h, config/darwin9.h, config/elfos.h,
31733         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31734         config/microblaze/microblaze.h, config/mips/mips.h,
31735         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31736         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31737         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31738         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31739         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31740         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31741         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31742         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31743         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31744         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31745         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31746         between string literal and macro name.
31747
31748 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31749
31750         * jump.c: Change argument types to rtx_insn *.
31751         * rtl.h: Adjust.
31752
31753 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31754
31755         * lra-constraints.c: Change argument type to rtx_insn *.
31756
31757 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31758
31759         * df-problems.c: Change argument type to rtx_insn *.
31760
31761 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31762
31763         * combine.c: Change argument type to rtx_insn *.
31764
31765 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31766
31767         * rtl.h: Adjust.
31768         * rtlanal.c: Change argument type to rtx_insn *.
31769
31770 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31771
31772         * sched-deps.c: Change argument types to rtx_insn *.
31773         * sched-int.h: Adjust.
31774
31775 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31776
31777         * dwarf2cfi.c: Change argument type to rtx_insn *.
31778
31779 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31780
31781         * ira.c (decrease_live_ranges_number): Changetype of local
31782         variable to rtx_insn *.
31783         * recog.c: Change argument types to rtx_insn *.
31784         * recog.h: Adjust.
31785
31786 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31787
31788         * reorg.c: Change argument types to rtx_insn *.
31789
31790 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31791
31792         * ira-color.c: Change argument types to rtx_insn *.
31793         * lra-eliminations.c: Likewise.
31794         * ira.h: Adjust.
31795
31796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31797
31798         * gcse.c: Change argument types to rtx_insn *.
31799
31800 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31801
31802         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31803
31804 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31805
31806         * emit-rtl.c (emit_debug_insn_before): Change argument type to
31807         rtx_insn *.
31808         * rtl.h: Adjust.
31809
31810 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31811
31812         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31813         * rtl.h: Adjust.
31814
31815 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31816
31817         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31818         * rtl.h: Adjust.
31819
31820 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31821
31822         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31823         * rtl.h: Adjust.
31824
31825 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31826
31827         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31828         * rtl.h: Adjust.
31829
31830 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31831
31832         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31833         to rtx_insn *.
31834         * rtl.h: Adjust.
31835
31836 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31837
31838         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31839         to rtx_insn *.
31840         * rtl.h: Likewise.
31841
31842 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31843
31844         * except.c (can_nonlocal_goto): Change type of argument to
31845         rtx_insn *.
31846         * rtl.h: Adjust.
31847
31848 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31849
31850         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31851         * rtl.h: Adjust.
31852
31853 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31854
31855         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31856         * cfgrtl.c (can_delete_label_p): Adjust.
31857         * rtl.h: likewise.
31858
31859 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31860
31861         * reorg.c (stop_search_p): Change argument to rtx_insn *.
31862
31863 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31864
31865         * except.c (make_reg_eh_region_note): Change argument to
31866         rtx_insn *.
31867         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31868         * except.h: Adjust.
31869
31870 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31871
31872         * mode-switching.c (commit_mode_sets): Change type of local
31873         variable from rtx to rtx_insn *.
31874
31875 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
31876
31877         * doc/install.texi (--enable-languages): Add missing jit and lto info.
31878         Add ^ to grep command.
31879         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31880         arg to last gimple_simplify declaration.  Add missing gimple_build
31881         declaration for built-in function case with four tree args.
31882
31883 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31884             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31885
31886         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31887         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31888         (GNU_USER_DYNAMIC_LINKERN32): Update.
31889
31890 2015-05-08  Richard Biener  <rguenther@suse.de>
31891
31892         PR tree-optimization/66036
31893         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31894         Handle strided group loads.
31895         (vect_verify_datarefs_alignment): Likewise.
31896         (vect_enhance_data_refs_alignment): Likewise.
31897         (vect_analyze_group_access): Likewise.
31898         (vect_analyze_data_ref_access): Likewise.
31899         (vect_analyze_data_ref_accesses): Likewise.
31900         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31901         (vectorizable_load): Likewise.
31902
31903 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
31904
31905         * config/rs6000/rs6000.md: Require operand inequality in one
31906         of the peepholes.
31907
31908 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
31909             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
31910
31911         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31912         from (set ...).
31913         * config/rx/rx.md (movdi, movdf): Likewise.
31914         Likewise for define_peephole2s.
31915
31916 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31917
31918         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31919         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31920         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31921         vtst_u64): Rewrite using gcc vector extensions.
31922
31923 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31924
31925         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31926         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31927
31928 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31929
31930         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31931
31932 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31933
31934         * config/glibc-stdint.h (OPTION_MUSL): Define.
31935         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31936         Change the definition based on OPTION_MUSL for 64 bit targets.
31937         * config/linux.h (OPTION_MUSL): Redefine.
31938         * config/alpha/linux.h (OPTION_MUSL): Redefine.
31939         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31940         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31941
31942 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31943             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31944
31945         * config.gcc (LIBC_MUSL): New tm_defines macro.
31946         * config/linux.h (OPTION_MUSL): Define.
31947         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31948         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31949         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31950         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31951         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31952         * config/linux.opt (mmusl): New option.
31953         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31954         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31955         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31956         * configure: Regenerate.
31957
31958 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31959             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31960
31961         PR target/48904
31962         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31963         * config/i386/knetbsd-gnu64.h: New file.
31964
31965 2015-05-08  Marek Polacek  <polacek@redhat.com>
31966
31967         PR c/64918
31968         * doc/invoke.texi: Document -Woverride-init-side-effects.
31969
31970 2015-05-07  Marek Polacek  <polacek@redhat.com>
31971
31972         PR c/65179
31973         * doc/invoke.texi: Document -Wshift-negative-value.
31974
31975 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
31976
31977         * gcov-tool.c (do_merge): Refactore to remove int ret.
31978         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31979         !type == FUNC to type != FUNC.
31980         * reload.h (struct target_reload): Changee to type of
31981         x_spill_indirect_levels from bool to unsigned char.
31982
31983 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
31984
31985         * rtl.h (always_void_p): New function.
31986         * gengenrtl.c (always_void_p): Likewise.
31987         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31988         with code foo are always VOIDmode.
31989         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31990         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31991         compare-elim.c, config/aarch64/aarch64.c,
31992         config/aarch64/aarch64.md, config/alpha/alpha.c,
31993         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31994         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31995         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31996         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31997         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31998         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31999         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32000         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32001         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32002         config/ia64/vect.md, config/iq2000/iq2000.c,
32003         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32004         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32005         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32006         config/mep/mep.c, config/microblaze/microblaze.c,
32007         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32008         config/mn10300/mn10300.c, config/msp430/msp430.c,
32009         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32010         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32011         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32012         config/rs6000/altivec.md, config/rs6000/rs6000.c,
32013         config/rs6000/rs6000.md, config/rs6000/vector.md,
32014         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32015         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32016         config/sh/sh.md, config/sh/sh_treg_combine.cc,
32017         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32018         config/spu/spu.md, config/stormy16/stormy16.c,
32019         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32020         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32021         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32022         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32023         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32024         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32025         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32026         var-tracking.c: Update calls accordingly.
32027
32028 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
32029
32030         PR middle-end/192
32031         PR middle-end/54303
32032         * varasm.c (function_mergeable_rodata_prefix): New function.
32033         (mergeable_string_section): Use it.
32034         (mergeable_constant_section): Use it.
32035
32036 2015-05-07  Jeff Law  <law@redhat.com>
32037
32038         PR target/39726
32039         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32040         simplifier to narrow arithmetic.
32041         * generic-match-head.c: (types_match, single_use): New functions.
32042         * gimple-match-head.c: (types_match, single_use): New functions.
32043
32044 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
32045
32046         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32047         rtx type.
32048
32049 2015-05-07  Richard Biener  <rguenther@suse.de>
32050
32051         PR tree-optimization/66002
32052         * passes.def: Schedule another pass_merge_phi after ifcombine, right
32053         before phiopt.
32054
32055 2015-05-07  Marek Polacek  <polacek@redhat.com>
32056             Martin Uecker  <uecker@eecs.berkeley.edu>
32057
32058         * doc/invoke.texi: Document -fsanitize=bounds-strict.
32059         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32060         into SANITIZE_NONDEFAULT.
32061         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32062
32063 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
32064
32065         PR target/66015
32066         * config/alpha/alpha.c (alpha_override_options_after_change): New.
32067         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32068         (alpha_override_options): Move align_loops, align_jumps and
32069         align_functions handling into alpha_override_options_after_change.
32070
32071 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
32072             Chris Jones  <chrisj@nvidia.com>
32073             Joshua Conner  <jconner@nvidia.com>
32074
32075         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32076         linking of crtfastmath.o.
32077         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32078
32079 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
32080
32081         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32082         (cstore<mode>4_unsigned_imm): New expander.
32083         (cstore<mode>4): Remove empty constraint strings.  Use the new
32084         expanders.
32085
32086 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
32087
32088         PR target/64208
32089         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32090         alternatives.
32091
32092 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32093
32094         * config/aarch64/geniterators.sh: Use standard BRE in sed.
32095
32096 2015-05-06  Alan Modra  <amodra@gmail.com>
32097
32098         PR target/66033
32099         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32100         (UNSPEC_NOP): Define.
32101         (reload_vsx_from_gpr<mode>): Add missing DONE.
32102         (reload_gpr_from_vsx<mode>): Likewise.
32103         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32104         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32105
32106 2015-05-06  Christian Bruel  <christian.bruel@st.com>
32107
32108         PR target/66015
32109         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32110         align_jumps, align_functions into aarch64_override_options_after_change.
32111
32112 2015-05-06  Richard Biener  <rguenther@suse.de>
32113
32114         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32115         vect_transform_slp_perm_load to check if we support a permutation
32116         for basic-block vectorization.
32117
32118 2015-05-06  Nick Clifton  <nickc@redhat.com>
32119
32120         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32121         used, even if it is not being used as a frame pointer.
32122
32123 2015-05-05  Jason Merrill  <jason@redhat.com>
32124
32125         * dwarf2out.c (gen_member_die): Don't emit anything for an
32126         anonymous class constructor.
32127
32128 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
32129
32130         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32131         that it reflects the block structure.
32132         (afdo_propagate_edge): Likewise.
32133         (afdo_calculate_branch_prob): Likewise.
32134         (afdo_annotate_cfg): Likewise.
32135         * cfgcleanup.c (equal_different_set_p): Likewise.
32136         (try_crossjump_to_edge): Likewise.
32137         * cgraph.c (cgraph_node::verify_node): Likewise.
32138         * cgraphunit.c (expand_all_functions): Likewise.
32139         * config/i386/i386.c (ix86_expand_copysign): Likewise.
32140         (exact_dependency_1): Likewise.
32141         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32142         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32143         * gensupport.c (process_define_subst): Likewise.
32144         * lto-wrapper.c (merge_and_complain): Likewise.
32145         * tree-if-conv.c (if_convertible_bb_p): Likewise.
32146         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32147         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32148         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32149         * tree-vect-loop.c (vectorizable_reduction): Likewise.
32150         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32151         * tree-vect-stmts.c (vectorizable_shift): Likewise.
32152         * tree-vrp.c (vrp_finalize): Likewise.
32153         * tree.c (variably_modified_type_p): Likewise.
32154
32155 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
32156
32157         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32158         on darwin12 and later.
32159         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32160         file to pass -rdynamic on darwin12 and later.
32161         * config/darwin.opt (rdynamic): Add.
32162
32163 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32164
32165         * doc/extend.texi (C Extensions): Update menu for moved Variable
32166         Attributes and Type Attributes sections.
32167
32168 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32169
32170         PR target/65990
32171         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32172         if rep_8byte stringop strategy was specified for 32-bit target.
32173
32174 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
32175
32176         PR target/65915
32177         * config/i386/i386.md (vector convert to float spltiter): Check for
32178         xmm16+, when splitting scalar float conversion.
32179         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32180
32181 2015-05-05  Nick Clifton  <nickc@redhat.com>
32182
32183         * config/msp430/msp430-opts.h (enum msp430_regions): New.
32184         * config/msp430/msp430.c (msp430_override_options): Complain if
32185         -mcode-region or -mdata-region is used on a non MSP430X.
32186         (msp430_section_attr): New function.  Checks lower, upper and
32187         either attributes.
32188         (msp430_attribute_table): Add lower, upper and either.
32189         (gen_prefix): New function.  Generates a prefix for a section
32190         name.
32191         (msp430_select_section): New function - handles the choice of
32192         section for an object.  Takes into account memory region
32193         attributes and options.
32194         (msp430_function_section): Use gen_prefix.
32195         (TARGET_SECTION_TYPE_FLAGS): Define.
32196         (msp430_section_type_flags): New function.
32197         (TARGET_ASM_UNIQUE_SECTION): Define.
32198         (msp430_unique_section): New function.
32199         (msp430_output_aligned_decl_common): New function.
32200         (msp430_do_not_relax_short_jumps): New function.
32201         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32202         Define.
32203         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32204         * config/msp430/msp430-protos.h
32205         (msp430_do_not_relax_short_jumps): New prototype.
32206         (msp430_output_aligned_decl_common): New prototype.
32207         * config/msp430/msp430.md (length): New attribute.
32208         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32209         then use a long code sequence for short jumps.
32210         * config/msp430/msp430.opt (mcode-region): New.
32211         (mdata-region): New.
32212         * doc/invoke.texi: Document new options.
32213         * doc/extend.texi: Document new attributes.
32214
32215 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32216
32217         * config/aarch64-protos.h (struct cpu_branch_cost): New.
32218         (tune_params): Add field branch_costs.
32219         (aarch64_branch_cost): Declare.
32220         * config/aarch64.c (generic_branch_cost): New.
32221         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32222         (cortexa53_tunings): Likewise.
32223         (cortexa57_tunings): Likewise.
32224         (thunderx_tunings): Likewise.
32225         (xgene1_tunings): Likewise.
32226         (aarch64_branch_cost): Define.
32227         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32228
32229 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32230
32231         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32232         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32233         * config/i386/i386.md: Ditto.
32234         * config/i386/winnt.c: Ditto.
32235
32236 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32237
32238         * doc/extend.texi (__atomic Builtins): Move implementation details
32239         to the end of the description, rewrite opening paragraphs, state
32240         difference with __sync builtins, state C11/C++11 assumptions,
32241         weaken itemized descriptions, add explanation of memory model
32242         behaviour, expand description of compare-exchange, simplify text.
32243
32244 2015-05-05  Renlin Li  <renlin.li@arm.com>
32245
32246         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32247
32248 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
32249
32250         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32251         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32252         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32253         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32254         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32255         * configure: Regenerate.
32256         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32257         * doc/install.texi (aarch64*-*-*): Document new
32258         --enable-fix-cortex-a53-843419 option.
32259         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32260         and -mno-fix-cortex-a53-843419 options.
32261
32262 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32263
32264         PR target/65871
32265         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32266
32267 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
32268
32269         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32270         fix overactive TYPE_MIN_VALUE check and add FIXME for type
32271         compatibility problems.
32272
32273 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32274
32275         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32276         constraints.
32277         (cbranchsi4_reg): New.
32278         * config/microblaze/microblaze.c
32279         (microblaze_expand_conditional_branch_reg): New.
32280         * config/microblaze/microblaze-protos.h
32281         (microblaze_expand_conditional_branch_reg): New prototype.
32282
32283 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32284
32285         * config/microblaze/microblaze.md (peephole2): New.
32286
32287 2015-05-04  Jeff Law  <law@redhat.com>
32288
32289         Revert:
32290         2015-05-04  Jeff Law  <law@redhat.com>
32291
32292         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32293         simplifier to narrow arithmetic.
32294         * generic-match-head.c: (types_match, single_use): New functions.
32295         * gimple-match-head.c: (types_match, single_use): New functions.
32296
32297 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
32298
32299         PR target/65987
32300         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32301         (split_branches): Likewise.
32302
32303 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
32304
32305         * common.opt (fdelete-null-pointer-checks): Init to -1.
32306         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32307         override flag_delete_null_pointer_checks default.
32308         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32309         behavior re address zero.  Better document target-specific behavior.
32310         (-fisolate-errneous-paths-dereference): Mention relationship to
32311         -fdelete-null-pointer-checks.
32312
32313 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32314
32315         PR tree-optimization/65984
32316         * ubsan.c: Include tree-cfg.h.
32317         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32318         stmt_could_throw_p test, rename can_throw variable to ends_bb.
32319
32320 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32321
32322         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32323         to CONST_DOUBLE_P predicate.
32324         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32325         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32326         allow only operands that satisfy standard_sse_constant_p predicate.
32327         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32328         to CONST_DOUBLE_P predicate.
32329
32330 2015-05-04  Jeff Law  <law@redhat.com>
32331
32332         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32333         simplifier to narrow arithmetic.
32334         * generic-match-head.c: (types_match, single_use): New functions.
32335         * gimple-match-head.c: (types_match, single_use): New functions.
32336
32337 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
32338
32339         * config/arm/arm.c: Restore bootstrap.
32340
32341 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32342
32343         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32344         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32345         as CONST_WIDE_INT, not CONST_DOUBLE.
32346         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32347         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32348         (ix86_find_base_term): Do not check for CONST_DOUBLE.
32349         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32350         (ix86_build_signbit_mask): Rewrite using wide ints.
32351         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32352         (ix86_rtx_costs): Handle CONST_WIDE_INT.
32353         (find_constant): Ditto.
32354         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32355         using gen_int_mode.
32356         * config/i386/predicates.md (x86_64_immediate_operand)
32357         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32358         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32359         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32360         (const0_operand): Also match const_wide_int.
32361         (constm1_operand): Ditto.
32362         (const1_operand): Ditto.
32363
32364 2015-05-04  Richard Biener  <rguenther@suse.de>
32365
32366         PR tree-optimization/65965
32367         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32368         store groups at gaps.
32369
32370 2015-05-04  Richard Biener  <rguenther@suse.de>
32371
32372         PR tree-optimization/65935
32373         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32374         then make sure to apply that swapping to the IL.
32375
32376 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32377
32378         * Makefile.in (PATCHLEVEL_c): New variable.
32379         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32380         expand the same way as if DEVPHASE_c was non-empty.
32381
32382 2015-05-04  Kai Tietz  <ktietz@redhat.com>
32383
32384         PR target/65559
32385         * lto-wrapper.c (run_gcc): Open filename
32386         in binary-mode.
32387
32388 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
32389
32390         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
32391         sections up in file, to immediately after the Function Attributes
32392         section.
32393
32394 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
32395
32396         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32397
32398 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32399
32400         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32401         (insert_partition_copy_on_edge): Adjust.
32402         (insert_rtx_to_part_on_edge): Likewise.
32403         (insert_part_to_rtx_on_edge): Likewise.
32404
32405 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32406
32407         * function.c (set_return_jump_label): Change type of argument to
32408         rtx_insn *.
32409         * function.h (set_return_jump_label): Adjust.
32410
32411 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32412
32413         * reload.h (struct reg_equivs_t): Change type of init to
32414         rtx_insn *.
32415         * ira.c (fix_reg_equiv_init): Adjust.
32416         * reload1.c (eliminate_regs_1): Likewise.
32417         (init_eliminable_invariants): Likewise.
32418
32419 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32420
32421         * cselib.c (fp_setter_insn): Take a rtx_insn *.
32422         * cselib.h (fp_setter_insn): Adjust.
32423
32424 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32425
32426         * recog.c (struct validate_replace_src_data): Change type of
32427         insn field to rtx_insn *.
32428         (validate_replace_src_group): Change type of argument to rtx_insn *.
32429         * recog.h (validate_replace_src_group): Adjust.
32430
32431 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32432
32433         * haifa-sched.c: Change the type of some variables to rtx_insn *.
32434         * sched-deps.c: Likewise.
32435         * sched-int.h: Likewise.
32436         * sched-rgn.c: Likewise.
32437         * sel-sched.c: Likewise.
32438
32439 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32440
32441         to rtx_insn *.
32442         * config/i386/i386.c: Change the type of some arguments to
32443         rtx_insn *.
32444         * config/arm/arm.c: Likewise.
32445
32446 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32447
32448         * lra-constraints.c: Change type of some arguments to rtx_insn *.
32449
32450 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32451
32452         * regcprop.c (kill_autoinc_value): Change type of argument to
32453         rtx_insn *.
32454
32455 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32456
32457         * genrecog.c (print_subroutine): Adjust.
32458         * recog.c (get_bool_attr_mask_uncached): Likewise.
32459         * recog.h (struct recog_data_d): Change the type of insn to
32460         rtx_insn *.
32461
32462 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32463
32464         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32465
32466 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32467
32468         * df-problems.c (df_set_note): Change type of argument to
32469         rtx_insn *.
32470
32471 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32472
32473         * builtins.c (expand_builtin_trap): Change type of local
32474         variable to rtx_insn *.
32475         (add_sched_insns_for_speculation): Likewise.
32476         (ix86_emit_save_regs): Likewise.
32477         (get_scratch_register_on_entry): Likewise.
32478         (ix86_emit_restore_reg_using_pop): Likewise.
32479         (ix86_emit_leave): Likewise.
32480         (ix86_emit_restore_regs_using_mov): Likewise.
32481         (ix86_expand_epilogue): Likewise.
32482         Likewise.
32483         (rl78_alloc_physical_registers_umul): Likewise.
32484         * cselib.c (discard_useless_locs): Likewise.
32485         (cselib_invalidate_regno): Likewise.
32486         (cselib_invalidate_mem): Likewise.
32487         * function.c (expand_function_start): Likewise.
32488         (emit_use_return_register_into_block): Likewise.
32489         * gcse.c: Likewise.
32490         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32491         * ifcvt.c (noce_get_alt_condition): Likewise.
32492         * loop-doloop.c (doloop_condition_get): Likewise.
32493         * lra-constraints.c (inherit_in_ebb): Likewise.
32494         * modulo-sched.c (sms_schedule_by_order): Likewise.
32495         * recog.c (next_insn_tests_no_inequality): Likewise.
32496         * reorg.c (emit_delay_sequence): Likewise.
32497         (update_reg_dead_notes): Likewise.
32498         (fix_reg_dead_note): Likewise.
32499         (fill_slots_from_thread): Likewise.
32500         (delete_computation): Likewise.
32501
32502 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
32503
32504         * doc/extend.texi (Variable Attributes): Add menu and proper
32505         @nodes to subsections.  Move Microsoft Windows attributes to
32506         their own subsection.
32507         (Type Attributes): Reorganize introduction to remove duplicate
32508         list of attributes.  Add menu and proper @nodes to subsections.
32509         Alphabetize the main table of common attributes.
32510
32511 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32512
32513         * match.pd: New simplification patterns.
32514         (x + (x & 1))  -> ((x + 1) & ~1)
32515         (x & ~(x & y)) -> ((x & ~y))
32516         (x | ~(x | y)) -> ((x | ~y))
32517
32518 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32519
32520         * target.def (attribute_table): Mention that struct attribute_spec
32521         is defined in tree-core.h rather than tree.h
32522         * doc/tm.texi: Regenerate.
32523
32524 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
32525
32526         * genrecog.c (test): Rename to rtx_test.  Update rest of file
32527         accordingly.
32528
32529 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32530
32531         PR translation/65959
32532         * params.h (DEFPARAM): Rename msgid to nocmsgid.
32533
32534 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32535
32536         * config/aarch64/aarch64-protos.h (tune_params):
32537         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32538         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32539         Return value depending on target.
32540         (generic_tunings): Initialize new target settings.
32541         (cortexa53_tunings): Likewise.
32542         (cortexa57_tunings): Likewise.
32543         (thunderx_tunings): Likewise.
32544         (xgene1_tunings): Likewise.
32545
32546 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32547
32548         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32549         Make Cortex-A53 shift costs more accurate.
32550
32551 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32552
32553         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32554         UNSIGNED_FLOAT.
32555
32556 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32557
32558         * config/aarch64/aarch64.c (aarch64_rtx_costs):
32559         Calculate cost of op0 and op1 in PLUS and MINUS cases.
32560
32561 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32562
32563         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32564         Add cost of op0 in the compare-with-fpzero case.
32565
32566 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
32567
32568         * builtins.c (fold_builtin_1): Remove spurious second
32569         semicolon.
32570         * cgraph.h (symtab_node::get_availability): Likewise.
32571         * opts.c (common_handle_option): Remove spurious second semicolon.
32572         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32573         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32574
32575 2015-04-30  Caroline Tice  <cmtice@google.com>
32576
32577         PR gcov-profile/65929
32578         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32579         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32580         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32581         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32582         * doc/tm.texi: Regenerate.
32583         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
32584         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32585         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
32586         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32587
32588 2015-04-30  Marek Polacek  <polacek@redhat.com>
32589
32590         * varasm.c (handle_cache_entry): Fix logic.
32591
32592 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32593
32594         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32595         (*extrsi5_insn_uxtw_alt): Likewise.
32596         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32597         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32598         operations.
32599
32600 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32601
32602         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32603         fabd in ABS case.
32604
32605 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32606
32607         * config/aarch64/aarch64.md
32608         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32609         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32610         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32611         appropriately.  Handle alternative EON form.
32612
32613 2015-04-30  Renlin Li  <renlin.li@arm.com>
32614
32615         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32616         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32617
32618 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32619
32620         PR ipa/65873
32621         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32622         -fstrict-aliasing boundaries.
32623
32624 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32625
32626         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32627         and [SU]MNEGL patterns.
32628
32629 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32630
32631         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32632         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32633         combined arithmetic-shift ops.  Properly handle all shift and extend
32634         operations that can occur in combination with PLUS/MINUS.
32635         Rename maybe_fma to compound_p.
32636         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32637         arithmetic and shift operations.
32638
32639 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32640
32641         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32642         rather than arith_shift cost when costing ADD/MINUS of an
32643         extended value.
32644
32645 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32646
32647         PR lto/65948
32648         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32649         to itself.
32650
32651 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
32652
32653         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32654         are for the same position.
32655
32656 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
32657
32658         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
32659         vectorize_loops.
32660         (vectorize_loops): Use it.
32661
32662 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32663
32664         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32665         for aggregate types.
32666         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32667         type to be non_ODR.
32668         * tree.c (need_assembler_name_p): Compute mangled name for
32669         non-fundamental types and integer types.
32670
32671 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
32672
32673         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32674         manual swaps.
32675         * expr.c (expand_expr_real_2): Likewise.
32676
32677 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32678
32679         * tree.c (build_common_builtin_nodes): Do not build
32680         __builtin_alloca_with_align as equivalent of library alloca.
32681
32682 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32683
32684         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32685         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32686         bugus variants.
32687         * tree.c: Include print-tree.h and ipa-utils.h
32688         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32689         (free_lang_data_in_cgraph): Call verify_type.
32690         (verify_type_variant): New function.
32691         (verify_type): New function.
32692         * tree.h (verify_type): Declare.
32693
32694 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
32695
32696         * config/mips/mips-cpus.def: (mips4): Change default processor
32697         from PROCESSOR_R8000 to PROCESSOR_R10000.
32698
32699 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
32700
32701         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32702         la/jalr instead of jal.
32703
32704 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
32705
32706         PR target/65871
32707         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32708         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32709         (setcc+movzbl peephole2): Check also clobbered reg.
32710         (setcc+andl peephole2): Ditto.
32711
32712 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32713
32714         PR libgomp/65099
32715         * config/nvptx/mkoffload.c (target_ilp32): New variable.
32716         (main): Set it depending on "-foffload-abi=[...]".
32717         (compile_native, main): Use it to pass "-m32" or "-m64" to the
32718         compiler.
32719
32720 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32721
32722         PR target/65770
32723         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32724         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32725         Flip lane index back at assembly time for bigendian.
32726
32727 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32728
32729         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32730         * gimplify.c (gimplify_omp_workshare): Use it.
32731
32732 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32733
32734         * Makefile.in (build/genrecog.o): Depend on inchash.h.
32735         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32736         build/inchash.o
32737         * genrecog.c: Rewrite most of the code except for the third page.
32738
32739 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32740
32741         * inchash.h, inchash.c: Include bconfig.h for build objects.
32742         * Makefile.in (build/inchash.o): New rule.
32743
32744 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
32745
32746         PR target/65924
32747         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32748         number in type attribute expression.
32749
32750 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32751
32752         * loop-iv.c (canon_condition): Generalize to all types of integer
32753         constant.
32754
32755 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
32756
32757         * gimple-walk.c: Prune duplicate or unneeded includes.
32758         (walk_gimple_asm): Only call parse_input_constraint or
32759         parse_output_constraint if their findings are used.
32760         Honour parse_input_constraint and parse_output_constraint
32761         result.
32762
32763 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32764
32765         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32766
32767 2015-04-29  Tom de Vries  <tom@codesourcery.com>
32768
32769         PR tree-optimization/65893
32770         * passes.def (pass_all_optimizations): Move pass_stdarg to after
32771         pass_dce.
32772
32773 2015-04-29  Richard Biener  <rguenther@suse.de>
32774
32775         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32776         compute GROUP_SIZE for basic-block SLP.
32777         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32778         take into account gaps.
32779         (vect_get_mask_element): Properly reject references to previous
32780         vectors.
32781         (vect_transform_slp_perm_load): Likewise.
32782
32783 2015-04-29  Christian Bruel  <christian.bruel@st.com>
32784
32785         PR target/64835
32786         * config/i386/i386.c (ix86_default_align): New function.
32787         (ix86_override_options_after_change): Call ix86_default_align.
32788         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32789         (ix86_override_options_after_change): New function.
32790
32791 2015-04-28  Jeff Law  <law@redhat.com>
32792
32793         * tree-ssa-dom.c (record_equality); Fix comment typos.
32794
32795 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32796
32797         PR tree-optimization/65887
32798         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32799
32800 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
32801
32802         * doc/extend.texi (Declaring Attributes of Functions): Split into
32803         subsections by target.  Alphabetize the table of common attributes.
32804         Rewrite some of the introductory text to reflect the new structure.
32805         Update some cross-references to point to the new subsections.
32806         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
32807         duplicate copies in the discussion of function, label, and type
32808         attributes.
32809
32810 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
32811
32812         PR bootstrap/65910
32813         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32814
32815 2015-04-28  Jason Merrill  <jason@redhat.com>
32816
32817         PR c++/65734
32818         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32819         (finalize_type_size): Respect TYPE_USER_ALIGN.
32820         (layout_type) [ARRAY_TYPE]: Likewise.
32821
32822 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
32823
32824         * config/arm/arm.md (*arm_movt): Fix type attribute.
32825         (*cmpsi_shiftsi): Likewise.
32826         (*cmpsi_shiftsi_swp): Likewise.
32827         (*movsicc_insn): Likewise.
32828         (*cond_move): Likewise.
32829         (*if_plus_move): Likewise.
32830         (*if_move_plus): Likewise.
32831         (*if_arith_move): Likewise.
32832         (*if_move_arith): Likewise.
32833         (*if_shift_move): Likewise.
32834         (*if_move_shift): Likewise.
32835         (*arm_movtas_ze): Likewise.
32836         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32837         redundancy and type attribute.
32838         (*thumb2_movsi_insn): Fix type attribute.
32839         (*thumb2_addsi_short): Likewise.
32840         (thumb2_addsi3_compare0): Likewise.
32841         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32842         attributes accordingly.
32843
32844 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
32845
32846         PR other/65911
32847         * function.c (pad_to_arg_alignment): Add parentheses.
32848
32849 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
32850
32851         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32852         libgcc/config/frv/elf-lib.h.
32853
32854 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32855
32856         * tree-call-cdce.c: Fix example in header comment.
32857
32858 2015-04-28  Richard Biener  <rguenther@suse.de>
32859
32860         PR tree-optimization/62283
32861         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32862         fails fatally and we are vectorizing a basic-block simply
32863         cause the child to be constructed piecewise.
32864         (vect_analyze_slp_cost_1): Adjust.
32865         (vect_detect_hybrid_slp_stmts): Likewise.
32866         (vect_bb_slp_scalar_cost): Likewise.
32867         (vect_get_constant_vectors): For piecewise constructed
32868         constants place them after the last def.
32869         (vect_get_slp_defs): Adjust.
32870         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32871         externals for basic-block vectorization.
32872
32873 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32874
32875         PR target/63503
32876         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32877         aarch64-*-*.
32878         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32879         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32880         (AARCH64_TUNE_FMA_STEERING): Likewise.
32881         * config/aarch64/aarch64-cores.def: Set
32882         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32883         FMUL/FMADD instructions.
32884         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32885         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
32886         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32887         * config/aarch64/cortex-a57-fma-steering.h: New file.
32888         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32889
32890 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
32891
32892         * gensupport.c (std_preds): Add missing codes to address_operand entry.
32893
32894 2015-04-28  Richard Biener  <rguenther@suse.de>
32895
32896         PR tree-optimization/65851
32897         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32898         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
32899         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
32900         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32901         (ccp_visit_phi_node): Adjust.
32902         (evaluate_stmt): For simplifications to SSA names return its
32903         lattice value if that isn't VARYING.  Return immediately when
32904         simplified to a constant.
32905         (visit_assignment): Adjust.
32906         (ccp_visit_stmt): Likewise.
32907
32908 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32909
32910         PR tree-optimization/65818
32911         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32912         evaluated.
32913
32914 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32915
32916         * calls.c (save_fixed_argument_area): Don't check
32917         ARGS_GROW_DOWNWARD with the preprocessor.
32918         (restore_fixed_argument_area): Likewise.
32919         (mem_overlaps_already_clobbered_arg_p): Likewise.
32920         (check_sibcall_argument_overlap): Likewise.
32921         (expand_call): Likewise.
32922         (emit_library_call_value_1): Likewise.
32923         (store_one_arg): Likewise.
32924         * function.c (assign_parms): Likewise.
32925         (locate_and_pad_parm): Likewise.
32926         (pad_to_arg_alignment): Likewise.
32927         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32928
32929 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32930
32931         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32932         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32933         * calls.c (save_fixed_argument_area): Don't chekc if
32934         ARGS_GROW_DOWNWARD is defined.
32935         (restore_fixed_argument_area): Likewise.
32936         (mem_overlaps_already_clobbered_arg_p): Likewise.
32937         (check_sibcall_argument_overlap): Likewise.
32938         (expand_call): Likewise.
32939         (emit_library_call_value_1): Likewise.
32940         (store_one_arg): Likewise.
32941         * function.c (assign_parms): Likewise.
32942         (locate_and_pad_parm): Likewise.
32943         (pad_to_arg_alignment): Likewise.
32944         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32945
32946 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32947
32948         * defaults.h (gen_epilogue): New function.
32949         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32950         defined.
32951         * cfgrtl.c (cfg_layout_finalize): Likewise.
32952         * df-scan.c: Likewise.
32953         * function.c (thread_prologue_and_epilogue_insns): Likewise.
32954         (reposition_prologue_and_epilogue_notes): Likewise.
32955         * reorg.c (find_end_label): Likewise.
32956         * toplev.c: Likewise.
32957
32958 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32959
32960         * bb-reorder.c (HAVE_return): Don't check if its undefined.
32961         * defaults.h (gen_simple_return): New function.
32962         (gen_simple_return): Likewise.
32963         (HAVE_return): Add default definition to false.
32964         (HAVE_simple_return): Likewise.
32965         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32966         HAVE_return and HAVE_simple_return are defined.
32967         * function.c (gen_return_pattern): Likewise.
32968         (convert_jumps_to_returns): Likewise.
32969         (thread_prologue_and_epilogue_insns): Likewise.
32970         * reorg.c (find_end_label): Likewise.
32971         (dbr_schedule): Likewise.
32972         * shrink-wrap.c: Likewise.
32973         * shrink-wrap.h: Likewise.
32974
32975 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32976
32977         * defaults.h (EPILOGUE_USES): Add default definition of false.
32978         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32979         * resource.c (init_resource_info): Likewise.
32980
32981 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32982
32983         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32984         to false.
32985         * dwarf2out.c (field_byte_offset): REmove check if
32986         PCC_BITFIELD_TYPE_MATTERS is defined.
32987         * stor-layout.c (layout_decl): Likewise.
32988         (update_alignment_for_field): Likewise.
32989         (place_field): Likewise.
32990
32991 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32992
32993         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32994         true.
32995         * regrename.c (check_new_reg_p): Remove check if
32996         HARD_REGNO_RENAME_OK is defined.
32997         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32998
32999 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33000
33001         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33002         * cse.c (fold_rtx): Likewise.
33003         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33004         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33005         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33006         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33007         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33008         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33009         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33010         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33011         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33012         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33013         * Likewise.
33014         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33015         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33016         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33017         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33018         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33019         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33020         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33021         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33022         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33023         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33024         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33025         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33026         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33027         * doc/tm.texi: Regenerate.
33028         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33029         either true or false.
33030
33031 2015-04-27  Jeff Law  <law@redhat.com>
33032
33033         PR tree-optimization/65217
33034         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33035         of them has a single use, make sure it is the LHS of the implied
33036         copy.
33037
33038 2015-04-28  Alan Modra  <amodra@gmail.com>
33039
33040         PR target/65810
33041         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33042         (offsettable_ok_by_alignment): Use minimum of decl and toc
33043         pointer alignment.  Replace dead code with assertion.
33044         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
33045         case if size exceeds toc pointer alignment.
33046         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33047         (rs6000_emit_move): Likewise.
33048         * configure.ac: Add linker toc pointer alignment check.
33049         * configure: Regenerate.
33050         * config.in: Regenerate.
33051
33052 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
33053
33054         * config.gcc: Add h8300-*-linux.
33055         * config/h8300/linux.h: New.
33056         * config/h8300/t-linux: New.
33057         * config/h8300/h8300.c (h8300_option_override): Normal mode
33058         is not supported for h8300-*-linux.
33059         (h8300_file_start): Target priority change.
33060         (get_shift_alg): Likewise.
33061         (h8300_shift_need_scratch_p): Likewise.
33062         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33063         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33064
33065 2015-04-27  Caroline Tice  <cmtice@google.com>
33066
33067         * final.c (final_scan_insn):  Output cold_function_name as function
33068         type.
33069         * varasm.c (cold_function_name):  Make global.
33070         (assemble_start_function):  Re-set cold_function_name.
33071         (assemble_end_function): Output cold partition size.
33072         * varasm.h (cold_function_name):  Declare global.
33073
33074 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
33075
33076         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33077         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33078         constraint.
33079         (*movxi_internal_avx512f): Ditto.
33080         (define_split): Check for xmm16+, when splitting scalar float_extend.
33081         (*extendsfdf2_mixed): Use "v" constraint.
33082         (define_split): Check for xmm16+, when splitting scalar float_truncate.
33083         (*truncdfsf_fast_sse): Use "v" constraint.
33084         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33085         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33086         (define_peephole2): Check for xmm16+, when converting scalar
33087         float_truncate.
33088         (define_peephole2): Check for xmm16+, when converting scalar
33089         float_extend.
33090         (*fop_<mode>_comm_mixed): Use "v" constraint.
33091         (*fop_<mode>_comm_sse): Ditto.
33092         (*fop_<mode>_1_mixed): Ditto.
33093         (*sqrt<mode>2_sse): Ditto.
33094         (*ieee_s<ieee_maxmin><mode>3): Ditto.
33095
33096 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33097
33098         * combine.c (simplify_if_then_else): Use std::swap instead
33099         of manually swapping.
33100         (known_cond): Likewise.
33101         (simplify_comparison): Likewise.
33102
33103 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
33104
33105         PR target/64579
33106         * config/rs6000/htm.md: Remove all define_expands.
33107         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33108         UNSPECV_HTM_TABORTWCI): Remove.
33109         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33110         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33111         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33112         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33113         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33114         tabortwci_internal): Remove define_insns.
33115         (tabort<wd>c, tabort<wd>ci): New define_insns.
33116         (tabort): Use gpc_reg_operand.
33117         (tcheck): Remove operand.
33118         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33119         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33120         expected value.
33121         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33122         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
33123         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33124         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33125         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33126         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33127         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33128         (tcheck): Remove builtin argument.
33129         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33130         not TARGET_64BIT.
33131         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
33132         tabortdc and tabortdci builtins when not in 64-bit mode.
33133         Modify code to handle the loss of the HTM define_expands.
33134         Emit code to copy the CR register to TARGET.
33135         (htm_init_builtins): Modify code to handle the loss of the HTM
33136         define_expands.
33137         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33138         (RS6000_BTC_64BIT): Likewise.
33139         (RS6000_BTC_CR): New macro.
33140         * doc/extend.texi: Update documentation for htm builtins.
33141
33142 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33143
33144         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33145         of manually swapping.
33146         (simplify_associative_operation): Likewise.
33147         (simplify_binary_operation): Likewise.
33148         (simplify_plus_minus): Likewise.
33149         (simplify_relational_operation): Likewise.
33150         (simplify_ternary_operation): Likewise.
33151
33152 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33153
33154         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33155         (xs_hi_nonmemory_operand): Remove error.
33156         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33157         general_operand rather than xs_hi_general_operand.
33158
33159 2015-04-27  Richard Biener  <rguenther@suse.de>
33160
33161         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33162         (record_equivalences_from_stmt): Valueize rhs.
33163         (record_equality): Canonicalize x and y order via
33164         tree_swap_operands_p.  Do not swap operands for same loop depth.
33165
33166 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
33167
33168         PR target/65296
33169         PR target/65895
33170         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33171         Add hint how to use own spec file.
33172
33173 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
33174
33175         PR tree-optimization/65875
33176         * tree-vrp.c (update_value_range): If in is_new case setting
33177         old_vr to VR_VARYING, also set new_vr to it.  Remove
33178         old_vr->type == VR_VARYING test.
33179         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33180         SSA_PROP_INTERESTING if update_value_range returned true,
33181         but new range is VR_VARYING.
33182
33183 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33184
33185         * combine.c (sign_extend_short_imm): New.
33186         (set_nonzero_bits_and_sign_copies): Use above new function for sign
33187         extension of src short immediate.
33188         (reg_nonzero_bits_for_combine): Likewise for tem.
33189
33190 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33191
33192         * stor-layout.c (self_referential_component_ref_p): New predicate.
33193         (copy_self_referential_tree_r): Use it.
33194         (self_referential_size): Punt for simple operations directly involving
33195         self-referential component references.
33196         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33197
33198 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33199
33200         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33201
33202 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33203
33204         * vec.h (vec): Make splice arguments const.  Update definitions
33205         accordingly.
33206
33207 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
33208
33209         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33210         alternatives.
33211
33212 2015-04-26  Tom de Vries  <tom@codesourcery.com>
33213
33214         PR tree-optimization/65826
33215         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33216
33217 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
33218
33219         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33220         (*madd3<mode>): Ditto.
33221         (*msub4<mode>): Ditto.
33222         (*msub3<mode>): Ditto.
33223         (*nmadd4<mode>): Ditto.
33224         (*nmadd3<mode>): Ditto.
33225         (*nmadd4<mode>_fastmath): Ditto.
33226         (*nmadd3<mode>_fastmath): Ditto.
33227         (*nmsub4<mode>): Ditto.
33228         (*nmsub3<mode>): Ditto.
33229         (*nmsub4<mode>_fastmath): Ditto.
33230         (*nmsub3<mode>_fastmath): Ditto.
33231
33232 2015-04-24  Jason Merrill  <jason@redhat.com>
33233
33234         PR c++/50800
33235         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33236         down when building TYPE_CANONICAL.
33237         (build_pointer_type_for_mode): Likewise.
33238
33239 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
33240
33241         * genrecog.c (validate_pattern): Check matching constraint refers
33242         to a lower numbered operand.
33243
33244 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33245
33246         PR target/65849
33247         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33248         save to independent variables use the Save attribute.  This will
33249         allow these options to be modified with the #pragma/attribute
33250         target support.
33251         (-mallow-movmisalign): Likewise.
33252         (-mallow-df-permute): Likewise.
33253         (-msched-groups): Likewise.
33254         (-malways-hint): Likewise.
33255         (-malign-branch-targets): Likewise.
33256         (-mvectorize-builtins): Likewise.
33257         (-msave-toc-indirect): Likewise.
33258
33259         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33260         can be set via the #pragma/attribute target support.
33261         (rs6000_opt_vars): Likewise.
33262         (rs6000_inner_target_options): If VSX was set, also set
33263         -mno-avoid-indexed-addresses.
33264
33265 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33266
33267         * config/arm/iterators.md (shiftable_ops): Rename to...
33268         (SHIFTABLE_OPS): ... This.  Update use in comments.
33269         (ior_xor): Rename to...
33270         (IOR_XOR): ... This.
33271         (vqh_ops): Rename to...
33272         (VQH_OPS): ... This.
33273         (vqhs_ops): Rename to...
33274         (VQHS_OPS): ... This.
33275         (rshifts): Rename to...
33276         (RSHIFTS): ... This.
33277         (returns): Rename to...
33278         (RETURNS): ... This.
33279         * config/arm/arm.md: Update uses of the above.
33280         * config/arm/neon.md: Likewise.
33281
33282 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33283
33284         * config.host (case ${host}): Add aarch64*-*-linux case.
33285         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33286         fields to all the cores.
33287         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33288         Add MCPU_MTUNE_NATIVE_SPECS.
33289         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33290         field to all extensions.
33291         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33292         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33293         Adjust definition of AARCH64_OPT_EXTENSION.
33294         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33295         (MCPU_MTUNE_NATIVE_SPECS): Define.
33296         * config/aarch64/driver-aarch64.c: New file.
33297         * config/aarch64/x-arch64: New file.
33298         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33299         -mtune and -march.
33300
33301 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33302             Wei Mi  <wmi@google.com>
33303
33304         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33305         * config/i386/i386.c (extract_base_offset_in_addr): New function.
33306         (ix86_operands_ok_for_move_multiple): Ditto.
33307         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33308         (movlpd/movhpd to movupd peephole2): Ditto.
33309
33310 2015-04-24  Marek Polacek  <polacek@redhat.com>
33311
33312         PR c/61534
33313         * input.h (from_macro_expansion_at): Define.
33314
33315         PR c/63357
33316         * doc/invoke.texi: Update description of -Wlogical-op.
33317
33318 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33319
33320         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33321         ternary operator in fprintf and harmonize spacing.
33322
33323 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33324
33325         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33326         Mark operand1 commutative.
33327
33328 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33329
33330         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33331         input operands in memory.
33332         (*vec_concatv2si_sse4_1): Ditto.
33333         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33334         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33335         register_operand.
33336         (vec_extract_hi_v32hi): Ditto.
33337         (vec_extract_hi_v64hi): Ditto.
33338         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33339
33340 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33341             Steven Bosscher <steven@gcc.gnu.org>
33342
33343         PR rtl-optimization/34503
33344         * cprop.c (cprop_reg_p): New.
33345         (hash_scan_set): Use above function to check if register can be
33346         propagated.
33347         (find_avail_set): Return up to two sets, one whose source is a
33348         register and one whose source is a constant.  Sets are returned in an
33349         array passed as parameter rather than as a return value.
33350         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
33351         sets returned by find_avail_set, starting with the one whose source is
33352         a constant. Use cprop_reg_p to check if register can be propagated.
33353         (do_local_cprop): Use cprop_reg_p to check if register can be
33354         propagated.
33355         (implicit_set_cond_p): Likewise.
33356
33357 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33358
33359         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33360         (sem_function::equals): IGNORED_NODES parameter is now unused;
33361         update call of equals_private.
33362         (sem_function::equals_private): Do not call equals_wpa; skip
33363         gimple body matching if there is no body.
33364         (sem_function::init): Add logic to hash tthunk info.
33365         (sem_function::parse): Also parse thunks.
33366         * ipa-icf.h (equals_private): Update declaration.
33367
33368 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33369
33370         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33371         asterisk from name so this can be generated directly.
33372         (*altivec_stvx_<mode>_internal): Likewise.
33373         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33374         that this is never called during or after reload/lra.
33375         (rs6000_frame_related): Remove split_reg
33376         argument and logic that references it.
33377         (emit_frame_save): Remove last parameter from call to
33378         rs6000_frame_related.
33379         (rs6000_emit_prologue): Remove last parameter from eight calls to
33380         rs6000_frame_related.  Force generation of stvx instruction for
33381         Altivec register saves.  Remove split_reg handling, which is no
33382         longer needed.
33383         (rs6000_emit_epilogue):  Force generation of lvx instruction for
33384         Altivec register restores.
33385
33386 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33387
33388         * config/rs6000/rs6000.opt (mcrypto): Change option description to
33389         match category changes in ISA 2.07B.
33390
33391 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33392
33393         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33394         iterators.
33395         (cmp_op, cmp_type): New code attributes.
33396         (NEON_VCMP, NEON_VACMP): New int iterators.
33397         (cmp_op_unsp): New int attribute.
33398         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33399         (neon_vceq<mode>): Delete.
33400         (neon_vc<cmp_op><mode>_insn): New pattern.
33401         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33402         (neon_vcgeu<mode>): Delete.
33403         (neon_vcle<mode>): Likewise.
33404         (neon_vclt<mode>: Likewise.
33405         (neon_vcage<mode>): Likewise.
33406         (neon_vcagt<mode>): Likewise.
33407         (neon_vca<cmp_op><mode>): New define_expand.
33408         (neon_vca<cmp_op><mode>_insn): New pattern.
33409         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33410
33411 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33412
33413         * tree.h (attribute_value_equal): Declare.
33414         * tree.c (attribute_value_equal): Export.
33415
33416 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33417
33418         * ipa-icf.c (sem_item::compare_attributes): New function.
33419         (sem_item::compare_referenced_symbol_properties): Compare variable
33420         attributes.
33421         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33422         (sem_function::param_used_p): New function.
33423         (sem_function::equals_wpa): Fix attribute comparsion; match
33424         parameter type codes; do not compare paremter flags when
33425         they are not used; compare edge flags; compare indirect calls.
33426         (sem_item::update_hash_by_addr_refs): Hash reference type.
33427         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33428         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33429         reference use type.
33430         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33431         * ipa-icf.h (compare_attributes, param_used_p): Declare.
33432
33433 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33434
33435         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33436         cleanup.
33437         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33438         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33439         (sem_item::compare_referenced_symbol_properties): New.
33440         (sem_item::hash_referenced_symbol_properties): New.
33441         (sem_item::compare_cgraph_references): Rename to ...
33442         (sem_item::compare_symbol_references): ... this one; use
33443         compare_referenced_symbol_properties.
33444         (sem_function::equals_wpa): Do not compare
33445         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33446         DECL_IS_OPERATOR_NEW; compare pointer sizes.
33447         (sem_item::update_hash_by_addr_refs): Call
33448         hash_referenced_symbol_properties.
33449         (sem_item::update_hash_by_local_refs): Cleanup.
33450         (sem_function::merge): Do not mix up symbol properties.
33451         (sem_variable::equals_wpa): Use compare_symbol_references.
33452         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33453         (sem_item::hash_referenced_symbol_properties): New.
33454         (sem_item::compare_symbol_references): New.
33455         (sem_item::compare_cgraph_references): Remove.
33456
33457 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
33458
33459         PR target/26702
33460         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33461         Emit size of local.
33462
33463 2015-04-23  Nick Clifton  <nickc@redhat.com>
33464
33465         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33466         ATTRIBUTE_UNUSED to x parameter.
33467         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33468
33469 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33470
33471         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33472         TARGET_CRYPTO to TARGET_P8_VECTOR>
33473         (crypto_vpermxor_<mode>): Likewise.
33474         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33475         (BU_CRYPTO_3A): Likewise.
33476         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33477         (BU_CRYPTO_OVERLOAD_3A): New #define.
33478         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33479         (VPMSUMH): Likewise.
33480         (VPMSUMW): Likewise.
33481         (VPMSUMD): Likewise.
33482         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33483         (VPERMXOR_V4SI): Likewise.
33484         (VPERMXOR_V8HI): Likewise.
33485         (VPERMXOR_V16QI): Likewise.
33486         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33487         BU_CRYPTO_OVERLOAD_2A.
33488         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33489         BU_CRYPTO_OVERLOAD_3A.
33490         * config/rs6000/rs6000.opt (mcrypto): Change description of
33491         option.
33492
33493 2015-04-23  Richard Biener  <rguenther@suse.de>
33494
33495         * passes.def: Remove copy propagation passes run directly after CCP.
33496         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33497         SSA names.
33498         (ccp_visit_phi_node): Rework to handle first executable edge
33499         specially.
33500
33501 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
33502
33503         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33504         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33505         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33506         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33507         (thumb_legimitimize_reload_address): Remove.
33508         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33509         Remove.
33510         (thumb_legimitimize_reload_address): Remove.
33511
33512 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33513
33514         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33515
33516 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33517
33518         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33519         MAX_LDM_STM_OPS.
33520         (store_multiple): Likewise.
33521
33522 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33523
33524         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33525         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33526         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33527         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33528         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33529         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33530         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33531         Specify issue_rate value.
33532         (arm_issue_rate): Look up issue rate from tuning structs. Remove
33533         large switch statement.
33534         (arm_marvell_pj4_tune): New struct.
33535         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33536         struct.
33537
33538 2015-04-23  Richard Biener  <rguenther@suse.de>
33539
33540         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33541         (vect_find_last_store_in_slp_instance): Rename to ...
33542         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33543         (vect_analyze_slp_cost_1): Use vector_load for constant defs
33544         and vec_construct for external defs when estimating prologue cost.
33545         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33546         Compute costs here only when vectorizing loops.
33547         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33548         have been determined.
33549         (vect_schedule_slp_instance): Simplify vectorized code placement
33550         and prepare for in-BB external defs.
33551         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33552         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33553         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33554         guard.
33555         (vect_model_load_cost): Likewise.
33556         (vectorizable_store): Instead add it here.
33557         (vectorizable_load): Likewise.
33558         (vect_is_simple_use): Dump def type textually.
33559
33560 2015-04-23  Richard Biener  <rguenther@suse.de>
33561
33562         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33563         * cfgloop.c (verify_loop_structure): Verify the root loop node.
33564         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33565         instead of get_eh_region_from_lp_number.
33566         * loop-init.c (fix_loop_structure): If we removed a loop, reset
33567         the SCEV cache.
33568
33569 2015-04-23  Anton Blanchard  <anton@samba.org>
33570
33571         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33572         need for -mprofile-kernel to save LR to stack.
33573
33574 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33575
33576         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33577         adjustments.
33578         (insn_is_swappable_p): Return 1 for a convert from double to
33579         single precision when all of its uses are splats of BE element
33580         zero.
33581
33582 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
33583
33584         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33585
33586 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33587
33588         PR target/65456
33589         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
33590         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33591         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33592         option.
33593         (rs6000_builtin_mask_for_load): Return 0 for targets with
33594         efficient unaligned VSX accesses so that the vectorizer will use
33595         direct unaligned loads.
33596         (rs6000_builtin_support_vector_misalignment): Always return true
33597         for targets with efficient unaligned VSX accesses.
33598         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33599         stores on targets with efficient unaligned VSX accesses is almost
33600         always the same as the cost of an aligned load or store, so model
33601         it that way.
33602         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33603         unaligned vectors if we have efficient unaligned VSX accesses.
33604         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33605         undocumented option.
33606
33607 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33608
33609         Revert:
33610         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33611
33612         * config.gcc (LIBC_MUSL): New tm_defines macro.
33613         * config/linux.h (OPTION_MUSL): Define.
33614         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33615         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33616         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33617
33618         * config/linux.opt (mmusl): New option.
33619         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33620         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33621
33622         * configure: Regenerate.
33623
33624 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33625
33626         * config.gcc (LIBC_MUSL): New tm_defines macro.
33627         * config/linux.h (OPTION_MUSL): Define.
33628         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33629         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33630         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33631
33632         * config/linux.opt (mmusl): New option.
33633         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33634         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33635
33636         * configure: Regenerate.
33637
33638 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
33639
33640         * doc/invoke.texi (-fsanitize-sections): Update description.
33641         * asan.c (set_sanitized_sections): Parse incoming arg.
33642         (section_sanitized_p): Support wildcards.
33643
33644 2015-04-22  Tom de Vries  <tom@codesourcery.com>
33645
33646         PR tree-optimization/65823
33647         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33648         equality between ap_copy and ap.
33649
33650 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33651
33652         PR target/47098
33653         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33654
33655 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33656
33657         PR target/47122
33658         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33659
33660 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33661
33662         PR target/55144
33663         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33664         remove already contained t-files.
33665
33666 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33667
33668         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33669         Remove unneeded forward declarations.
33670         (suitable_for_tail_call_opt_p): Commentary typo fix.
33671
33672 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33673
33674         * varasm.c (emit_bss): Remove redundant guard.
33675
33676 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33677
33678         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33679
33680 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33681
33682         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33683
33684 2015-04-22  Hale Wang  <hale.wang@arm.com>
33685             Terry Guo  <terry.guo@arm.com>
33686
33687         PR rtl-optimization/64818
33688         * combine.c (can_combine_p): Don't combine user-specified
33689         register if it is in an asm input.
33690
33691 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
33692
33693         PR ipa/65076
33694         * passes.def (early_optimizations): Add pass_dse.
33695
33696 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33697
33698         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33699         * reorg.c (redundant_insn): Remove ifdef
33700         INSN_REFERENCES_ARE_DELAYED.
33701         * resource.c (mark_referenced_resources): Likewise.
33702
33703 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33704
33705         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33706         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33707         * resource.c (mark_set_resources): Likewise.
33708
33709 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33710
33711         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33712         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33713         (flow_find_head_matching_sequence): Likewise.
33714         (try_head_merge_bb): Likewise.
33715         * combine.c (can_combine_p): Likewise.
33716         (try_combine): Likewise.
33717         (distribute_notes): Likewise.
33718         * df-problems.c (can_move_insns_across): Likewise.
33719         * final.c (final): Likewise.
33720         * gcse.c (insert_insn_end_basic_block): Likewise.
33721         * ira.c (find_moveable_pseudos): Likewise.
33722         * reorg.c (try_merge_delay_insns): Likewise.
33723         (fill_simple_delay_slots): Likewise.
33724         (fill_slots_from_thread): Likewise.
33725         * sched-deps.c (sched_analyze_2): Likewise.
33726
33727 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33728
33729         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33730         PIC_OFFSET_TABLE_REGNUM.
33731
33732 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33733
33734         * alias.c (init_alias_target): Remove ifdef
33735         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33736         * df-scan.c (df_insn_refs_collect): Likewise.
33737         (df_get_regular_block_artificial_uses): Likewise.
33738         (df_get_eh_block_artificial_uses): Likewise.
33739         (df_get_entry_block_def_set): Likewise.
33740         (df_get_exit_block_use_set): Likewise.
33741         * emit-rtl.c (gen_rtx_REG): Likewise.
33742         * ira.c (ira_setup_eliminable_regset): Likewise.
33743         * reginfo.c (init_reg_sets_1): Likewise.
33744         * regrename.c (rename_chains): Likewise.
33745         * reload1.c (reload): Likewise.
33746         (eliminate_regs_in_insn): Likewise.
33747         * resource.c (mark_referenced_resources): Likewise.
33748         (init_resource_info): Likewise.
33749
33750 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33751
33752         * defaults.h (MASK_RETURN_ADDR): New definition.
33753         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33754         MASK_RETURN_ADDR.
33755
33756 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33757
33758         * defaults.h (RETURN_ADDR_OFFSET): New definition.
33759         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33760         RETURN_ADDR_OFFSET.
33761         (expand_builtin_frob_return_addr): Likewise.
33762
33763 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33764
33765         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33766         (try_redirect_by_replacing_jump): Likewise.
33767         (rtl_tidy_fallthru_edge): Likewise.
33768         * combine.c (insn_a_feeds_b): Likewise.
33769         (find_split_point): Likewise.
33770         (simplify_set): Likewise.
33771         * cprop.c (cprop_jump): Likewise.
33772         * cse.c (cse_extended_basic_block): Likewise.
33773         * df-problems.c (can_move_insns_across): Likewise.
33774         * function.c (emit_use_return_register_into_block): Likewise.
33775         * haifa-sched.c (sched_init): Likewise.
33776         * ira.c (find_moveable_pseudos): Likewise.
33777         * loop-invariant.c (find_invariant_insn): Likewise.
33778         * lra-constraints.c (curr_insn_transform): Likewise.
33779         * postreload.c (reload_combine_recognize_const_pattern):
33780         * Likewise.
33781         * reload.c (find_reloads): Likewise.
33782         * reorg.c (delete_scheduled_jump): Likewise.
33783         (steal_delay_list_from_target): Likewise.
33784         (steal_delay_list_from_fallthrough): Likewise.
33785         (redundant_insn): Likewise.
33786         (fill_simple_delay_slots): Likewise.
33787         (fill_slots_from_thread): Likewise.
33788         (delete_computation): Likewise.
33789         * sched-rgn.c (add_branch_dependences): Likewise.
33790
33791 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33792
33793         * genconfig.c (main): Always define HAVE_cc0.
33794         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33795         HAVE_cc0.
33796         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33797         (flow_find_head_matching_sequence): Likewise.
33798         (try_head_merge_bb): Likewise.
33799         * cfgrtl.c (rtl_merge_blocks): Likewise.
33800         (try_redirect_by_replacing_jump): Likewise.
33801         (rtl_tidy_fallthru_edge): Likewise.
33802         * combine.c (do_SUBST_MODE): Likewise.
33803         (insn_a_feeds_b): Likewise.
33804         (combine_instructions): Likewise.
33805         (can_combine_p): Likewise.
33806         (try_combine): Likewise.
33807         (find_split_point): Likewise.
33808         (subst): Likewise.
33809         (simplify_set): Likewise.
33810         (distribute_notes): Likewise.
33811         * cprop.c (cprop_jump): Likewise.
33812         * cse.c (cse_extended_basic_block): Likewise.
33813         * df-problems.c (can_move_insns_across): Likewise.
33814         * final.c (final): Likewise.
33815         (final_scan_insn): Likewise.
33816         * function.c (emit_use_return_register_into_block): Likewise.
33817         * gcse.c (insert_insn_end_basic_block): Likewise.
33818         * haifa-sched.c (sched_init): Likewise.
33819         * ira.c (find_moveable_pseudos): Likewise.
33820         * loop-invariant.c (find_invariant_insn): Likewise.
33821         * lra-constraints.c (curr_insn_transform): Likewise.
33822         * optabs.c (prepare_cmp_insn): Likewise.
33823         * postreload.c (reload_combine_recognize_const_pattern):
33824         * Likewise.
33825         * reload.c (find_reloads): Likewise.
33826         (find_reloads_address_1): Likewise.
33827         * reorg.c (delete_scheduled_jump): Likewise.
33828         (steal_delay_list_from_target): Likewise.
33829         (steal_delay_list_from_fallthrough): Likewise.
33830         (try_merge_delay_insns): Likewise.
33831         (redundant_insn): Likewise.
33832         (fill_simple_delay_slots): Likewise.
33833         (fill_slots_from_thread): Likewise.
33834         (delete_computation): Likewise.
33835         (relax_delay_slots): Likewise.
33836         * sched-deps.c (sched_analyze_2): Likewise.
33837         * sched-rgn.c (add_branch_dependences): Likewise.
33838
33839 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33840
33841         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33842         that is trivially ded on non cc0 targets.
33843         (simplify_set): Likewise.
33844         (mark_used_regs_combine): Likewise.
33845         * cse.c (new_basic_block): Likewise.
33846         (fold_rtx): Likewise.
33847         (cse_insn): Likewise.
33848         (cse_extended_basic_block): Likewise.
33849         (set_live_p): Likewise.
33850         * rtlanal.c (canonicalize_condition): Likewise.
33851         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33852
33853 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33854
33855         * conditions.h: Define macros even if HAVE_cc0 is undefined.
33856         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33857         * final.c: Likewise.
33858         * jump.c: Likewise.
33859         * recog.c: Likewise.
33860         * recog.h: Declare functions even when HAVE_cc0 is undefined.
33861         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33862
33863 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33864
33865         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33866         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33867         * builtins.c (expand_builtin): Remove check if
33868         EH_RETURN_DATA_REGNO is defined.
33869         * df-scan.c (df_bb_refs_collect): Likewise.
33870         (df_get_exit_block_use_set): Likewise.
33871         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33872         * ira-lives.c (process_bb_node_lives): Likewise.
33873         * lra-lives.c (process_bb_lives): Likewise.
33874
33875 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33876
33877         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33878         FIRST_PSEUDO_REG): New.
33879         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33880         (ARG_POINTER_REGNUM): Define to ARGP_REG.
33881         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33882         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33883         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33884         (FIRST_INT_REG): New.
33885         (LAST_INT_REG): New.
33886         (FIRST_*_REG): Define using *_REG.
33887         (LAST_*_REG): Ditto.
33888         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33889         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33890         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33891
33892 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33893
33894         * expmed.c: (synth_mult): Only assume overlapping
33895         shift with previous steps in alg_sub_t_m2 case.
33896
33897 2015-04-21  Richard Biener  <rguenther@suse.de>
33898
33899         PR tree-optimization/65650
33900         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33901         transitions involving copies.
33902         (set_lattice_value): Adjust for copy lattice state.
33903         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33904         if that doesn't dominate the merge point.
33905         (bit_value_unop): Adjust what we treat as varying mask.
33906         (bit_value_binop): Likewise.
33907         (bit_value_assume_aligned): Likewise.
33908         (evaluate_stmt): When we simplified to a SSA name record a copy
33909         instead of dropping to varying.
33910         (visit_assignment): Simplify.
33911
33912         * gimple-match.h (gimple_simplify): Add another callback.
33913         * gimple-fold.c (fold_stmt_1): Adjust caller.
33914         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33915         for the 2nd callback.
33916         * gimple-match-head.c (gimple_simplify): Add a callback that is
33917         used to valueize the stmt operands and use it that way.
33918
33919 2015-04-21  Richard Biener  <rguenther@suse.de>
33920
33921         PR tree-optimization/65788
33922         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33923
33924 2015-04-21  Richard Biener  <rguenther@suse.de>
33925
33926         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33927         vec_construct cost by vec_stmt_cost.
33928
33929 2015-04-21  Richard Biener  <rguenther@suse.de>
33930
33931         * cfghooks.h (create_basic_block): Replace with two overloads
33932         for RTL and GIMPLE.
33933         (split_block): Likewise.
33934         * cfghooks.c (split_block): Rename to ...
33935         (split_block_1): ... this.
33936         (split_block): Add two type-safe overloads for RTL and GIMPLE.
33937         (split_block_after_labels): Call split_block_1.
33938         (create_basic_block): Rename to ...
33939         (create_basic_block_1): ... this.
33940         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33941         (create_empty_bb): Call create_basic_block_1.
33942         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33943         split_block_after_labels.
33944         * omp-low.c (expand_parallel_call): Likewise.
33945         (expand_omp_target): Likewise.
33946         (simd_clone_adjust): Likewise.
33947         * tree-chkp.c (chkp_get_entry_block): Likewise.
33948         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33949         create_basic_block overload.
33950         (cgraph_node::expand_thunk): Likewise.
33951         * tree-cfg.c (make_blocks): Likewise.
33952         (handle_abnormal_edges): Likewise.
33953         * tree-inline.c (copy_bb): Likewise.
33954
33955 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33956
33957         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33958         New pattern.
33959         (*xor_one_cmplsidi3_ze): Likewise.
33960
33961 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33962
33963         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33964         use df_remove_problem rather than manually removing problems, leaving
33965         holes in df->problems_in_order[].
33966
33967 2015-04-21  Tom de Vries  <tom@codesourcery.com>
33968
33969         PR tree-optimization/65802
33970         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33971
33972 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33973
33974         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33975         Increase to 128.
33976         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33977         at '.'.  Assert that there's enough space for everything.
33978
33979 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33980
33981         PR tree-optimization/64950
33982         Revert:
33983         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
33984
33985         PR target/41089
33986         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33987         as volatile.
33988
33989 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
33990
33991         PR rtl-optimization/64916
33992         * cfgcleanup.c (values_equal_p): New function.
33993         (can_replace_by): Use it.
33994
33995 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
33996
33997         PR c++/65801
33998         * doc/invoke.texi ([-Wnarrowing]): Update.
33999
34000 2015-04-20  Jeff Law  <law@redhat.com>
34001
34002         PR tree-optimization/65658
34003         * tree-ssa-threadupdate.c (redirection_block_p): Remove
34004         redundant test for GIMPLE_ASSIGN in last change.
34005
34006 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
34007
34008         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34009         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34010         (legitimize_tls_address): Ditto.
34011         (ix86_expand_move): Ditto.
34012         (ix86_expand_binary_operator): Remove reload_in_progress checks.
34013         (ix86_expand_unary_operator): Ditto.
34014         * config/i386/predicates.md (index_register_operand): Ditto.
34015
34016 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
34017
34018         * reorg.c (try_merge_delay_insns): Improve correctness checking
34019         for targets with multiple delay slots.
34020
34021 2015-04-20  Jeff Law  <law@redhat.com>
34022
34023         PR tree-optimization/65658
34024         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34025         statements too.
34026
34027 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34028
34029         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34030         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34031         Delete.
34032
34033 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
34034
34035         PR debug/65807
34036         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34037
34038 2015-04-20  Richard Biener  <rguenther@suse.de>
34039
34040         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34041         * gimple-fold.c (gimple_build_valueize): New function.
34042         (gimple_build): Always use gimple_build_valueize as valueize hook.
34043
34044 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34045
34046         PR target/64134
34047         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34048         and overwrite variable parts if <= 1/2 the elements are variable.
34049
34050 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
34051
34052         PR rtl-optimization/65805
34053         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34054         Don't use difference of offset and previous offset if
34055         update_sp_offset is non-zero.
34056         (eliminate_regs_in_insn): Ditto.
34057         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34058         lra_eliminate_regs_1 call.
34059         * lra-constraints.c (get_equiv_with_elimination): Ditto.
34060
34061 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
34062
34063         * hash-table.h: Remove version of hash_table that stored value_type *.
34064         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34065         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34066         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34067         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34068         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34069         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34070         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34071         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34072         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34073         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34074         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34075         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34076         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34077         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34078         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34079         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34080
34081 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34082             Jakub Jelinek  <jakub@redhat.com>
34083
34084         PR target/65787
34085         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34086         subsequent SH_NONE operand does not overwrite an existing *special
34087         value.
34088         (adjust_extract): Handle case where a vec_extract operation is
34089         wrapped in a PARALLEL.
34090
34091 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34092
34093         PR target/65780
34094         * config/i386/i386.c (ix86_binds_local_p): Define only if
34095         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34096
34097 2015-04-17  Jeff Law  <law@redhat.com>
34098
34099         PR tree-optimization/47679
34100         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34101         * tree-ssa-scopedtables.c: New file.
34102         * tree-ssa-scopedtables.h: New file.
34103         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34104         (const_and_copies): Change name/type.
34105         (record_const_or_copy): Move into tree-ssa-scopedtables.c
34106         (record_const_or_copy_1): Similarly.
34107         (restore_vars_to_original_value): Similarly.
34108         (pass_dominator::execute): Create and destroy const_and_copies table.
34109         (thread_across_edge): Update passing of const_and_copies.
34110         (record_temporary_equivalence): Use method calls rather than
34111         manipulating const_and_copies directly.
34112         (record_equality, cprop_into_successor_phis): Similarly.
34113         (dom_opt_dom_walker::before_dom_children): Similarly.
34114         (dom_opt_dom_walker::after_dom_children): Similarly.
34115         (eliminate_redundant_computations): Similarly.
34116         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34117         (record_temporary_equivalence): Likewise.
34118         (invalidate_equivalences): Likewise.
34119         (record_temporary_equivalences_from_phis): Update due to type
34120         change of const_and_copies.  Use method calls rather than
34121         manipulating the stack directly.
34122         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34123         (thread_through_normal_block, thread_across_edge): Likewise.
34124         (thread_across_edge): Likewise.
34125         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34126         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
34127         of equiv_stack.
34128         (identify_jump_threads): Update due to type change of equiv_stack.
34129         (finalize_jump_threads): Delete the equiv_stack when complete.
34130
34131 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
34132
34133         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34134         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34135         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34136
34137 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
34138
34139         PR target/65535
34140         * config.gcc: Exit with a comment when we do not have a major version
34141         number for the FreeBSD target.
34142
34143 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34144
34145         PR target/65689
34146         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34147         maybe_allows_mem bitfields.
34148         (maybe_allows_none_start, maybe_allows_none_end,
34149         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34150         maybe_allows_mem_end): New variables.
34151         (compute_maybe_allows): New function.
34152         (add_constraint): Use it to initialize maybe_allows_reg and
34153         maybe_allows_mem fields.
34154         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34155         is_address constraints such that those that allow neither mem nor
34156         reg come first, then those that only allow reg but not mem, then
34157         those that only allow mem but not reg, then the rest.
34158         (write_allows_reg_mem_function): New function.
34159         (write_tm_preds_h): Call it.
34160         * stmt.c (parse_output_constraint, parse_input_constraint): Use
34161         the generated insn_extra_constraint_allows_reg_mem function
34162         instead of always setting *allows_reg = true; *allows_mem = true;
34163         for unknown extra constraints.
34164
34165 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34166
34167         PR target/65780
34168         * output.h (default_binds_local_p_3): New.
34169         * varasm.c (default_binds_local_p_3): Make it public.  Take an
34170         argument to indicate if common symbol may be local.  If common
34171         symbol may be local, treat non-external variable as defined
34172         locally.
34173         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34174         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34175         * config/i386/i386.c (ix86_binds_local_p): New.
34176         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34177         ix86_binds_local_p.
34178
34179 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34180
34181         PR debug/65771
34182         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34183         trying mem_loc_descriptor on XEXP (rtl, 0).
34184
34185 2015-04-17  Martin Liska  <mliska@suse.cz>
34186
34187         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34188         Release symbol_compare_collection.
34189         * ipa-reference.c: Add TODO that a vector should be released.
34190
34191 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34192
34193         PR target/65296
34194         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34195         to new AVR-LibC file layout (bug #44574).
34196         (*avrlibc_devicelib): Same.
34197         * config/avr/avr-mcus.def: Adjust comments.
34198         * config/avr/avr.opt (nodevicelib): Adjust help.
34199
34200 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
34201
34202         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34203
34204 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
34205
34206         PR c++/64527
34207         * gimplify.c (gimplify_init_constructor): Always emit a
34208         side-effecting constructor.
34209
34210 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34211
34212         PR tree-optimization/64950
34213         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34214         in cfun->curr_properties.
34215         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34216         if we generate an IFN_VA_ARG.
34217         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34218         function if PROP_gimple_lva is not set in src function.
34219
34220 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34221             Michael Matz  <matz@suse.de>
34222
34223         PR tree-optimization/64950
34224         * gimple-iterator.c (update_modified_stmts): Remove static.
34225         * gimple-iterator.h (update_modified_stmts): Declare.
34226         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34227         (gimplify_va_arg_internal): New function.
34228         (gimplify_va_arg_expr): Use IFN_VA_ARG.
34229         * gimplify.h (gimplify_va_arg_internal): Declare.
34230         * internal-fn.c (expand_VA_ARG): New unreachable function.
34231         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34232         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34233         (expand_ifn_va_arg): New function.
34234         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34235         (pass_stdarg::execute): Call expand_ifn_va_arg.
34236         (pass_data_lower_vaarg): New pass_data.
34237         (pass_lower_vaarg): New gimple_opt_pass.
34238         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34239         (make_pass_lower_vaarg): New function.
34240         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34241         properties_required field.
34242         * passes.def (all_passes): Add pass_lower_vaarg.
34243         * tree-pass.h (PROP_gimple_lva): Add define.
34244         (make_pass_lower_vaarg): Declare.
34245
34246 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34247
34248         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34249         * calls.c (call_expr_flags): Same.
34250
34251 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34252
34253         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34254         (pass_stdarg::execute): ... here.
34255
34256 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34257             Michael Matz  <matz@suse.de>
34258
34259         * tree-cfg.c (make_blocks_1): Factor out of ...
34260         (make_blocks): ... here.
34261         (make_edges_bb): Factor out of ...
34262         (make_edges): ... here.
34263         (gimple_find_sub_bbs): New function.
34264         * tree-cfg.h (gimple_find_sub_bbs): Declare.
34265
34266 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34267
34268         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34269
34270 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
34271
34272         * asan.c (set_sanitized_sections): New function.
34273         (section_sanitized_p): Ditto.
34274         (asan_protect_global): Optionally sanitize user-defined
34275         sections.
34276         * asan.h (set_sanitized_sections): Declare new function.
34277         * common.opt (fsanitize-sections): New option.
34278         * doc/invoke.texi (-fsanitize-sections): Document new option.
34279         * opts-global.c (handle_common_deferred_options): Handle new
34280         option.
34281
34282 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34283
34284         PR debug/65771
34285         * dwarf2out.c (loc_list_from_tree): Return NULL
34286         for DEBUG_EXPR_DECL.
34287
34288 2015-04-17  Christian Bruel  <christian.bruel@st.com>
34289
34290         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34291         same attributes.
34292
34293 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34294
34295         * ira-color.c (setup_left_conflict_sizes_p): Do not process
34296         node itself when computing left conflict subnode size.
34297
34298 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34299
34300         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34301         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34302         *fop_<mode>_1_sse using enabled attribute.  Use
34303         register_mixssei387nonimm_operand operand 1 predicate. Change
34304         alternative 3 constraints from "x" to "v".
34305
34306 2015-04-16  Richard Biener  <rguenther@suse.de>
34307
34308         PR tree-optimization/65774
34309         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34310         bit-value tracking on.
34311
34312 2015-04-16  Richard Biener  <rguenther@suse.de>
34313
34314         PR tree-optimization/64277
34315         * tree-vrp.c (check_array_ref): Fix anti-range handling,
34316         simplify upper bound handling.
34317         (search_for_addr_array): Simplify.
34318         (check_array_bounds): Handle ADDR_EXPRs here.
34319         (check_all_array_refs): Simplify.
34320
34321 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34322
34323         * config/i386/i386.c (print_reg): Rewrite function.
34324
34325 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34326
34327         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34328         Invert the condition.
34329
34330 2015-04-16  Renlin Li  <renlin.li@arm.com>
34331
34332         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34333         simplifications for UNSIGNED_FLOAT.
34334
34335 2015-04-16  Nick Clifton  <nickc@redhat.com>
34336
34337         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34338         MUL_UNINIT.
34339         (enum rl78_cpu_type): New.
34340         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34341         (umulhi3_shift_virt): Remove m constraint from operand 1.
34342         (umulqihi3_virt): Likewise.
34343         * config/rl78/rl78.c (rl78_option_override): Add code to process
34344         -mcpu and -mmul options.
34345         (rl78_alloc_physical_registers): Add code to handle divhi and
34346         divsi valloc attributes.
34347         (set_origin): Likewise.
34348         * config/rl78/rl78.h (RL78_MUL_G14): Define.
34349         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34350         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34351         __RL78_Gxx__.
34352         (ASM_SPEC): Pass -mcpu on to assembler.
34353         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34354         (mulqi3_rl78): Likewise.
34355         (mulhi3_g13): Likewise.
34356         (mulhi3): Generate the G13 or G14 versions of the insn directly.
34357         (mulsi3): Likewise.
34358         (mulhi3_g14): Add clobbers of AX and BC.
34359         (mulsi3_g14): Likewise.
34360         (mulsi3_g13): Likewise.
34361         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34362         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34363         * config/rl78/rl78.opt (mmul): Initialise value to
34364         RL78_MUL_UNINIT.
34365         (mcpu): New option.
34366         (m13, m14, mrl78): New option aliases.
34367         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34368         (MULTILIB_DIRNAMES): Add g13 and g14.
34369         * doc/invoke.texi: Document -mcpu and -mmul options.
34370
34371 2015-04-16  Richard Biener  <rguenther@suse.de>
34372
34373         * tree-ssa-ccp.c (likely_value): See if we have operands that
34374         are marked as never simulate again and return CONSTANT in this
34375         case.
34376         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34377         not have any operands that will be simulated again as
34378         not being simulated again.
34379
34380 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
34381
34382         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34383         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34384         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34385         attribute.
34386         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34387         enabled attribute.
34388         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34389         *float<SWI48:mode><MODEF:mode>2_sse.
34390         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34391         enabled attribute.
34392         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34393         enabled attribute.
34394
34395 2015-04-15  Tom de Vries  <tom@codesourcery.com>
34396
34397         PR other/65487
34398         * function.c (push_dummy_function): New function.
34399         (init_dummy_function_start): Use push_dummy_function.
34400         (pop_dummy_function): New function.  Factored out of ...
34401         (expand_dummy_function_end): ... here.
34402         * function.h (push_dummy_function, pop_dummy_function): Declare.
34403         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34404         pop_dummy_function.
34405         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34406
34407 2015-04-15  Jeff Law  <law@redhat.com>
34408
34409         PR tree-optimization/47679
34410         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34411         need for forward declaration in upcoming changes.
34412         (record_conditions, record_edge_info): Likewise.
34413
34414         PR rtl-optimization/42522
34415         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34416         SIGN_EXTRACT as a whole object rather than simplifying
34417         its operand.
34418
34419 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
34420
34421         PR ipa/65765
34422         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34423         and GIMPLE_PREDICT use break instead of return true. For
34424         GIMPLE_EH_DISPATCH, compare dispatch region.
34425
34426 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
34427
34428         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
34429         details about the implementation.  Make clear preference for
34430         __atomic builtins.  Reduce possibility of future change.
34431
34432 2015-04-15  Nick Clifton  <nickc@redhat.com>
34433
34434         * config/rx/rx.opt (mallow-string-insns): New option.
34435         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34436         builtin if string instructions are denied.
34437         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34438         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34439         appropriate.
34440         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34441         * config/rx/rx.md (movstr): Enable pattern only if string
34442         instructions are allowed.
34443         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34444         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34445         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34446         (MULTILIB_DIRNAMES): Add no-strings.
34447         * doc/invoke.texi: Document -mno-allow-string-insns.
34448
34449 2015-04-15  Alan Modra  <amodra@gmail.com>
34450
34451         PR target/65408
34452         PR target/58744
34453         PR middle-end/36043
34454         * calls.c (load_register_parameters): Don't load past end of
34455         mem unless suitably aligned.
34456
34457 2015-04-15  Nick Clifton  <nickc@redhat.com>
34458
34459         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34460         decrement instruction as being frame related.
34461         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34462         based addresses.
34463         If zero extending a function address enclose the operation in
34464         %code(...).
34465         (rl78_preferred_reload_class): New function.
34466         (TARGET_PREFERRED_RELOAD_CLASS): Define.
34467         * config/rl78/rl78.md: Remove useless constraints in expanders.
34468         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34469         (mulhi3_rl78): Likewise.
34470         (mulhi3_g13): Likewise.
34471         (mulsi3_rl78): Likewise.
34472         (es_addr): Move to before the multiply patterns.
34473
34474 2015-04-15  Alan Modra  <amodra@gmail.com>
34475
34476         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34477         and sequence_stack.  Add seq.
34478         (seq_stack): Delete.
34479         * function.c (prepare_function_start): Don't access x_last_insn.
34480         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34481         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34482         * emit_rtl.c (start_sequence, push_topmost_sequence,
34483         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34484         sequence accessors.
34485         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34486         remove_insn): Likewise.  Simplify.
34487         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34488         and pop_topmost_sequence.
34489         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
34490         debug insns.
34491         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34492
34493 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
34494
34495         PR target/65729
34496         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34497         the assertiion.
34498
34499 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34500
34501         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34502         (LEGACY_INT_REGNO_P): Ditto.
34503         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34504         (ANY_MASK_REG_P): Remove.
34505         (BND_REG_P): Rename from ANY_BND_REG_P.
34506         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34507         legacy integer registers.  Do not handle MMX_REG_P in a special way.
34508         Merge 64byte and 32byte SSE handling.
34509
34510 2015-04-14  Nick Clifton  <nickc@redhat.com>
34511
34512         * expr.c (expand_assignment): Force an address offset computation
34513         into a register before changing its mode.
34514         (expand_expr_real_1): Likewise.
34515
34516 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
34517
34518         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34519         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34520         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34521         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34522         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34523         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34524         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34525         and __aarch64_vget_lane_any.
34526
34527 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
34528
34529         PR rtl-optimization/65761
34530         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34531         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34532
34533 2015-04-14  Richard Biener  <rguenther@suse.de>
34534
34535         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34536         (graphite_can_represent_scev): Use POINTER_TYPE_P.
34537
34538 2015-04-14  Richard Biener  <rguenther@suse.de>
34539
34540         PR tree-optimization/65758
34541         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34542         against -1.
34543         (ccp_lattice_meet): Likewise.
34544         (bit_value_unop): Likewise.
34545         (bit_value_binop): Likewise.
34546         (bit_value_assume_aligned): Likewise.
34547
34548 2015-04-14  Christian Bruel  <christian.bruel@st.com>
34549
34550         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34551         function.
34552
34553 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
34554
34555         PR tree-optimization/63387
34556         * match.pd ((x unord x) | (y unord y) -> (x unord y),
34557         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34558
34559 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34560
34561         * config/i386/predicates.md (any_QIreg_operand): Rename from
34562         q_regs_operand.  Do not process subregs.
34563         (QIreg_operand): Use QI_REGNO_P predicate.
34564         (ext_QIreg_operand): Ditto.
34565         (ext_register_operand): Ditto.
34566         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34567         (AND splitters): Ditto.
34568         (AND with -65536 splitter): Add SWI48 mode for operand 0.
34569         (AND with -256 splitter): Use any_QIreg_operand predicate and
34570         SWI248 mode for operand 0.
34571         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34572         mode for operand 0.
34573         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34574
34575 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
34576
34577         * doc/plugins.texi: Rewrite first introductory paragraph.
34578
34579 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34580
34581         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34582         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34583
34584 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34585
34586         * ipa-profie.c (ipa_profile): Check number of parameters
34587         and possible polymorphic call targets before
34588         devirtualizing.
34589
34590 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
34591
34592         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34593         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34594
34595 2015-04-13  Richard Biener  <rguenther@suse.de>
34596
34597         PR tree-optimization/65204
34598         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34599         takens for bit-CCP.
34600
34601 2015-04-13  Richard Biener  <rguenther@suse.de>
34602
34603         PR target/65660
34604         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34605         and cond_not_taken_branch_cost to 4 and 2.
34606         (bdver2_cost): Likewise.
34607         (bdver3_cost): Likewise.
34608         (bdver4_cost): Likewise.
34609
34610 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34611
34612         * hash-table.h (hash_table constructor): Add mem stats.
34613         (alloc_entries): Likewise.
34614
34615 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34616
34617         * ipa-cp.c (ipcp_driver): Relase prev_edge.
34618         * passes.c (execute_one_pass): Only add transform if pass has one.
34619
34620 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
34621
34622         * config/i386/i386.c (ix86_option_override_internal): Don't set
34623         -fprefetch-loop-arrays if optimizing for size.
34624
34625 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34626             Gerald Pfeifer  <gerald@pfeifer.com>
34627
34628         * doc/contrib.texi (Contributors): Add Martin Jambor and
34629         Michael Matz.
34630
34631 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
34632
34633         * BASE-VER: Set to 6.0.0.
34634
34635         PR tree-optimization/65747
34636         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34637         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34638
34639 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34640
34641         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34642         sentence.  Improve grammar.
34643
34644 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34645
34646         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34647
34648 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34649
34650         PR ipa/65743
34651         * ipa-inline-transform.c (speculation_removed): Remove static var.
34652         (check_speculations): New function.
34653         (clone_inlined_nodes): Do not check spculations.
34654         (inline_call): Call check_speculations.
34655         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34656         consider non-invariants.
34657
34658 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34659             Martin Liska  <mliska@suse.cz>
34660
34661         PR ipa/65722
34662         * ipa-icf.c (sem_item::compare_cgraph_references): function and
34663         variable can not match.
34664         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34665         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34666
34667 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
34668
34669         PR tree-optimization/65735
34670         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34671         Remove visited_phis argument, add visited_bbs, avoid recursing into the
34672         same bb rather than just into the same phi node.
34673         (thread_through_normal_block): Adjust caller.
34674
34675 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34676
34677         * doc/contrib.texi (Contributors): Add Ira Rosen.
34678
34679 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
34680
34681         * gcov.c (find_source): Fix miswording in error message.
34682         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34683         (ix86_expand_sse_comi_round): Fix typo in error message.
34684
34685 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34686
34687         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34688
34689 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
34690
34691         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34692
34693 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34694
34695         PR target/65710
34696         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34697         Print bad_spills_num and insn_pseudos_num.
34698
34699 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34700
34701         PR target/65694
34702         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34703         when creating +1 values for SImode.
34704
34705 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34706
34707         PR target/65729
34708         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34709         assert.
34710
34711 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
34712             Iain Sandoe  <iain@codesourcery.com>
34713
34714         PR target/65351
34715         * configure: Regenerate.
34716
34717 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34718
34719         PR target/65671
34720         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34721
34722 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
34723
34724         * doc/contrib.texi (Contributors): Add John Marino.
34725
34726 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34727
34728         PR tree-optimization/65709
34729         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34730         TREE_TYPE (TREE_TYPE (t)).
34731
34732 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
34733
34734         PR target/65710
34735         * lra-int.h (lra_bad_spill_regno_start): New.
34736         * lra.c (lra_bad_spill_regno_start): New.
34737         (lra): Set up lra_bad_spill_regno_start.  Set up
34738         lra_constraint_new_regno_start unconditionally.
34739         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34740         spill preferences.
34741
34742 2015-04-09  Marek Polacek  <polacek@redhat.com>
34743             Jakub Jelinek  <jakub@redhat.com>
34744
34745         PR middle-end/65554
34746         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34747         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34748         of STRIP_NOPS.
34749
34750 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
34751
34752         PR rtl-optimization/65693
34753         * combine.c (is_parallel_of_n_reg_sets): Move outside of
34754         #ifndef HAVE_cc0.
34755
34756 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
34757
34758         PR target/65296
34759         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34760         device specs file if "device-specs%s" didn't resolve to a path.
34761
34762 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34763
34764         PR target/65676
34765         * config/i386/i386.c (fixup_modeless_constant): New.
34766         (ix86_expand_args_builtin): Fixup modeless constant operand.
34767         (ix86_expand_round_builtin): Ditto.
34768         (ix86_expand_special_args_builtin): Ditto.
34769         (ix86_expand_builtin): Ditto.
34770
34771 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34772
34773         PR target/65693
34774         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34775         any pow2 integer in between 2 and 0x80000000U inclusive.
34776
34777 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
34778
34779         PR rtl-optimization/65693
34780         * combine.c (is_parallel_of_n_reg_sets): Change first argument
34781         from an rtx_insn * to an rtx.
34782         (try_combine): Adjust both callers.  Use it once more.
34783
34784 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34785
34786         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34787         (chkp_make_static_const_bounds): Search existing
34788         symbol by assembler name.  Use make_decl_one_only.
34789         (chkp_get_zero_bounds_var): Remove node search which
34790         is now performed in chkp_make_static_const_bounds.
34791         (chkp_get_none_bounds_var): Likewise.
34792
34793 2015-04-08  Michael Witten  <mfwitten@gmail.com>
34794
34795         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34796         to an example.
34797
34798 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34799
34800         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34801
34802 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34803
34804         * doc/extend.texi (__sync Builtins): Fix grammar.
34805
34806 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34807
34808         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34809
34810 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34811
34812         * varasm.c (emit_local): Move definition of align.
34813
34814 2015-04-08  Julian Brown  <julian@codesourcery.com>
34815
34816         * config/nvptx/mkoffload.c (process): Support variable mapping.
34817
34818 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
34819
34820         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34821         alpha_links **.
34822         (alpha_write_one_linkage): Correct typo.
34823
34824 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34825
34826         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34827
34828 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34829
34830         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34831
34832 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34833
34834         * tree-chkp.h (chkp_insert_retbnd_call): New.
34835         * tree-chkp.c (chkp_insert_retbnd_call): New.
34836         * ipa-split.c (insert_bndret_call_after): Remove.
34837         (split_function): Use chkp_insert_retbnd_call.
34838         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34839         bounds for instrumented functions.
34840
34841 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
34842
34843         PR ipa/65540
34844         * calls.c (initialize_argument_information): When producing tail
34845         call also turn SSA_NAMES passed by references to original PARM_DECLs
34846
34847 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
34848
34849         PR target/65648
34850         * lra-remat.c (do_remat): Process input and non-input insn
34851         registers separately.
34852
34853 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34854
34855         PR debug/65678
34856         * valtrack.c (debug_lowpart_subreg): New function.
34857         (dead_debug_insert_temp): Use it.
34858
34859         PR middle-end/65680
34860         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34861         into signed HOST_WIDE_INT the same as negative bit_offset.
34862
34863 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
34864
34865         * ipa-comdats.c (ipa_comdats): Visit all thunks
34866         to set proper comdat group.
34867
34868 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34869
34870         PR target/65489
34871         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34872         on constants for NEON VSTRUCT modes.
34873
34874 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34875             Iain Sandoe  <iain@codesourcery.com>
34876
34877         PR target/65351
34878         * configure: Regenerate.
34879
34880 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34881
34882         PR target/65614
34883         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34884         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34885         that LFD is used to load double constants instead of LFS.  Add
34886         defaults for all costs structures.  Add comments for missing
34887         initialization fields.
34888         (size32_cost): Likewise.
34889         (size64_cost): Likewise.
34890         (rs64a_cost): Likewise.
34891         (mpccore_cost): Likewise.
34892         (ppc403_cost): Likewise.
34893         (ppc405_cost): Likewise.
34894         (ppc440_cost): Likewise.
34895         (ppc476_cost): Likewise.
34896         (ppc601_cost): Likewise.
34897         (ppc603_cost): Likewise.
34898         (ppc604_cost): Likewise.
34899         (ppc604e_cost): Likewise.
34900         (ppc620_cost): Likewise.
34901         (ppc630_cost): Likewise.
34902         (ppccell_cost): Likewise.
34903         (ppc750_cost): Likewise.
34904         (ppc7450_cost): Likewise.
34905         (ppc8540_cost): Likewise.
34906         (ppce300c2c3_cost): Likewise.
34907         (ppce500mc_cost): Likewise.
34908         (ppce500mc64_cost): Likewise.
34909         (ppce5500_cost): Likewise.
34910         (ppce6500_cost): Likewise.
34911         (titan_cost): Likewise.
34912         (power4_cost): Likewise.
34913         (power6_cost): Likewise.
34914         (power7_cost): Likewise.
34915         (power8_cost): Likewise.
34916         (ppca2_cost): Likewise.
34917         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34918
34919         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34920         instead of XXLOR to copy SFmode to clear out dirty bits created
34921         when SFmode denormals are generated.
34922         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34923         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34924
34925 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34926
34927         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34928         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34929         * config/aarch64/aarch64-tune.md: Regenerate.
34930
34931 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34932
34933         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34934         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34935         * config/arm/arm-cores.def (exynos-m1): New core.
34936         * config/arm/arm-tune.md: Regenerate.
34937         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34938         * config/arm/bpabi.h: Likewise.
34939
34940 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34941
34942         * ipa-cp (set_single_call_flag): Remove too
34943         restrictive assert.
34944
34945 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
34946
34947         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34948         GOMP_offload_unregister from the destructor.
34949
34950 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34951
34952         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34953         flags for instrumentation thunk.
34954         (chkp_produce_thunks): Likewise.
34955
34956 2015-04-05  Martin Liska  <mliska@suse.cz>
34957
34958         PR ipa/65665
34959         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34960         has computed data structure.
34961         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34962
34963 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
34964
34965         * invoke.texi (inline-unit-growth): Increase growth to 20%
34966         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34967
34968 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
34969
34970         PR target/65647
34971         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
34972         value checking.
34973         (lra_rematerialization_iter): New.
34974         * lra.c (lra): Initialize lra_rematerialization_iter.
34975         Stop updating lra_constraint_new_regno_start after switching of
34976         inheritance and rematerialization.
34977         * lra-remat.c (lra_rematerialization_iter): New.
34978         (lra_remat): Add printing pass iteration.  Do rematerialization
34979         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34980
34981 2015-04-04  Richard Biener  <rguenther@suse.de>
34982
34983         PR tree-optimization/64909
34984         PR tree-optimization/65660
34985         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34986         to take a cost vector for scalar iteration cost.
34987         (vect_get_single_scalar_iteration_cost): Likewise.
34988         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34989         Compute the scalar iteration cost into a cost vector.
34990         (vect_get_known_peeling_cost): Use the scalar cost vector to
34991         account for the cost of the peeled iterations.
34992         (vect_estimate_min_profitable_iters): Likewise.
34993         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34994         Likewise.
34995
34996 2015-04-04  Alan Modra  <amodra@gmail.com>
34997
34998         PR target/65576
34999         PR target/65240
35000         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35001         0.0 constant unless TARGET_VSX.
35002         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35003         alternative.
35004
35005 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35006
35007         PR ipa/65654
35008         * ipa-inline-transform.c (inline_call): Skip sanity check to work
35009         around the ICE
35010
35011 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35012
35013         PR ipa/65655
35014         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35015         speculative indirect edges to avoid ordering issue.
35016
35017 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35018
35019         PR ipa/65076
35020         * ipa-inline.c (edge_badness): Add combined size to the denominator.
35021
35022 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
35023
35024         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35025         TYPE_ARTIFICIAL on the .omp_data* types.
35026
35027 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35028
35029         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35030         instrumentation thunks.
35031
35032 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35033
35034         * config/i386/i386.c (ix86_expand_call): Avoid nested
35035         PARALLEL in returned call value.
35036
35037 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35038
35039         * lto-cgraph.c (input_cgraph_1): Always link instrumented
35040         assembler name with original one.
35041
35042 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35043
35044         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35045
35046 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35047
35048         Revert parts of r216820.
35049         * config/i386/i386.md (movqi_internal): Correct type calculation
35050         for alternatives 3 and 5.
35051
35052 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
35053
35054         PR preprocessor/61977
35055         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35056         predefine __vector/__bool/__pixel macros nor context sensitive
35057         macros for CLK_ASM.
35058         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35059
35060 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
35061
35062         * config/pa/pa.c (pa_output_move_double): Directly handle register
35063         indexed memory operand.  Simplify handling of scaled register indexed
35064         memory operands.
35065
35066 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35067
35068         PR driver/65444
35069         * config/i386/linux-common.h (MPX_SPEC): New.
35070         (CHKP_SPEC): Add MPX_SPEC.
35071         * doc/invoke.texi (-fcheck-pointer-boudns): Document
35072         possible issues with '-z bndplt' support in linker.
35073
35074 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35075
35076         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35077         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35078         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35079         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35080         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35081
35082 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
35083
35084         * config/i386/sync.md (UNSPEC_MOVA): Remove.
35085         (atomic_load<mode>): Change operand 0 predicate to
35086         nonimmediate_operand and fix up the destination when needed.
35087         Use UNSPEC_LDA.
35088         (atomic_loaddi_fpu): Use UNSPEC_LDA.
35089         (atomic_store<mode>): Change operand 1 predicate to
35090         nonimmendate_operand and move the source to register when needed.
35091         Use UNSPEC_STA.
35092         (atomic_store<mode>_1): Use UNSPEC_STA.
35093         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35094         Fix moves from memory operand.  Use UNSPEC_STA.
35095
35096 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35097
35098         * expmed.c (strict_volatile_bitfield_p): Check that the access will
35099         not cross a MODESIZE boundary.
35100         (store_bit_field, extract_bit_field): Added assertions in the
35101         strict volatile bitfields code path.
35102
35103 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35104
35105         PR target/65624
35106         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35107         Increase args array size by one to avoid buffer overflow.
35108
35109 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35110
35111         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35112         split_part.
35113         * ipa-inline.c (edge_badness): Add wrapper penalty.
35114         (sum_callers): Move up.
35115         (inline_small_functions): Set single_caller.
35116         * ipa-inline.h (inline_summary): Add single_caller.
35117         * ipa-split.c (split_function): Set split_part.
35118         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35119         * cgraph.h (cgraph_node): Add split_part.
35120
35121 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
35122
35123         PR target/58945
35124         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35125         Do not split operands 0 and operands 2 to halfmode.
35126         (atomic_compare_and_swap<mode>): Update for
35127         atomic_compare_and_swap<dwi>_doubleword changes.
35128
35129 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35130
35131         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35132         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35133         no caching is done.
35134
35135 2015-03-31  Martin Liska  <mliska@suse.cz>
35136
35137         PR ipa/65557
35138         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35139         has already filled up function summary.
35140         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35141
35142 2015-03-31  Richard Biener  <rguenther@suse.de>
35143
35144         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35145         of types.
35146
35147 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35148
35149         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35150         nested functions.
35151         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35152         (s390_asm_output_function_label): Adapt to new signature of
35153         s390_function_num_hotpatch_hw
35154         Optimise the code generating assembler output.
35155         Add comments to assembler file.
35156
35157 2015-03-31  Richard Biener  <rguenther@suse.de>
35158
35159         PR middle-end/65626
35160         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35161         of the noreturn call so it is last and cleanup_control_flow_bb
35162         can do the CFG part.
35163
35164 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
35165
35166         PR target/65531
35167         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35168         same_comdat_group for external symbols.
35169         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35170         infinite same_comdat_group traversal loop.
35171
35172 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
35173
35174         PR plugins/61176
35175         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35176         automatically to $headers.
35177
35178 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
35179
35180         PR ipa/65610
35181         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35182         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35183         function.
35184         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35185         Use it.
35186         * ipa-prop.c (param_type_may_change_p): Likewise.
35187         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35188         (remove_unused_scope_block_p): Add in_ctor_dtor_block
35189         argument.  Before inlining, preserve
35190         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35191         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
35192         recursive calls.
35193         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35194
35195 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35196
35197         PR ipa/65076
35198         * ipa-inline.c (edge_badness): Base denominator on callee's
35199         grwoth squared.
35200
35201 2015-03-27  Martin Jambor  <mjambor@suse.cz>
35202
35203         PR ipa/65478
35204         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35205         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35206         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35207         node_calling_single_call.
35208         * ipa-cp.c (count_callers): New function.
35209         (set_single_call_flag): Likewise.
35210         (initialize_node_lattices): Count callers and set single_flag_call if
35211         necessary.
35212         (incorporate_penalties): New function.
35213         (good_cloning_opportunity_p): Use it, dump new flags.
35214         (propagate_constants_topo): Set node_within_scc flag if appropriate.
35215         * doc/invoke.texi (ipa-cp-recursion-penalty,
35216         ipa-cp-single-call-pentalty): Document.
35217
35218 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35219
35220         PR ipa/65588
35221         * symtab.c (symtab_node::get_partitioning_class): Register vars
35222         are duplicated.
35223         * varpool.c (symbol_table::output_variables) Do not assemble unefined
35224         decls for non-symbols.
35225
35226 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
35227
35228         PR target/65248
35229         * output.h (default_binds_local_p_2): New.
35230         * varasm.c (default_binds_local_p_2): Renamed to ...
35231         (default_binds_local_p_3): This.  Don't return true on protected
35232         data symbol if protected data may be external.
35233         (default_binds_local_p): Use default_binds_local_p_3.
35234         (default_binds_local_p_1): Likewise.
35235         (default_binds_local_p_2): New.
35236         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35237         default_binds_local_p_2 if TARGET_MACHO is undefined.
35238
35239 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
35240
35241         PR target/65593
35242         * config/i386/i386.c (legitimize_pic_address): If base
35243         is SYMBOL_REF or LABEL_REF using %rip addressing, force
35244         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35245
35246 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35247
35248         PR target/65531
35249         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35250         comdat groups.
35251
35252 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35253
35254         PR ipa/65600
35255         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35256         of optimized out indirect call.
35257         (redirect_to_unreachable): Always build symbol table node for
35258         BUILT_IN_UNREACHABLE
35259
35260 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
35261
35262         PR target/65407
35263         * ira-costs.c (record_reg_classes): Process all constraint string
35264         containing 0-9.
35265
35266 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
35267
35268         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35269         memory_operand.
35270
35271         PR target/65052
35272         * config/c6x/constraints.md (S3): New constraint.
35273         * config/c6x/c6x.md (real_jump): Use it.
35274
35275 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35276
35277         PR middle-end/65595
35278         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35279         do redirection if the call is not optimized out.
35280
35281 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35282
35283         PR target/65495
35284         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35285         (fchkp-check-incomplete-type): Add LTO.
35286         (fchkp-zero-input-bounds-for-main): Likewise.
35287         (fchkp-first-field-has-own-bounds): Likewise.
35288         (fchkp-narrow-bounds): Likewise.
35289         (fchkp-narrow-to-innermost-array): Likewise.
35290         (fchkp-use-static-bounds): Likewise.
35291         (fchkp-use-static-const-bounds): Likewise.
35292         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35293
35294 2015-03-27  Marek Polacek  <polacek@redhat.com>
35295
35296         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35297
35298 2015-03-27  Marek Polacek  <polacek@redhat.com>
35299
35300         PR sanitizer/65583
35301         * ubsan.c (ubsan_create_edge): New function.
35302         (instrument_bool_enum_load): Call it.
35303         (instrument_nonnull_arg): Likewise.
35304         (instrument_nonnull_return): Likewise.
35305         (instrument_object_size): Likewise.
35306
35307 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35308
35309         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35310         auto_vec.
35311
35312 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35313
35314         PR lto/65536
35315         * lto-streamer.h (class lto_location_cache): New.
35316         (struct data_in): Add location_cache.
35317         (lto_input_location): Update prototype.
35318         (stream_input_location_now): New.
35319         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35320         pointer to location.
35321         (stream_input_location): Update.
35322         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35323         (warn_odr): Apply location cache before warning.
35324         (lto_input_location): Update prototype.
35325         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35326         Use stream_input_location_now.
35327         * lto-streamer-in.c (lto_location_cache::current_cache): New static
35328         variable.
35329         (lto_location_cache::cmp_loc): New function.
35330         (lto_location_cache::apply_location_cache): New function.
35331         (lto_location_cache::accept_location_cache): New function.
35332         (lto_location_cache::revert_location_cache): New function.
35333         (lto_location_cache::input_location): New function.
35334         (lto_input_location): Do location caching.
35335         (stream_input_location_now): New function.
35336         (input_eh_region, input_struct_function_base): Use
35337         stream_input_location_now.
35338         (lto_data_in_create): use new.
35339         (lto_data_in_delete): Use delete.
35340         * tree-streamer-in.c (unpack_ts_block_value_fields,
35341         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35342         lto_input_ts_exp_tree_pointers): Update for cached location api.
35343
35344 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35345
35346         PR ipa/65076
35347         * passes.def: Add pass_nothrow.
35348         * ipa-pure-const.c: (pass_data_nothrow): New.
35349         (pass_nothrow): New.
35350         (pass_nothrow::execute): New.
35351         (make_pass_nothrow): New.
35352         * tree-pass.h (make_pass_nothrow): Declare.
35353
35354 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35355
35356         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35357         edge to change by speculation resolution or redirection.
35358         (edge_set_predicate): Likewise.
35359         (inline_summary_t::duplicate): Likewise.
35360         (remap_edge_summaries): Likewise.
35361
35362 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35363
35364         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35365         New macros.
35366         (can_inline_edge_p): Relax option matching for always inline functions.
35367
35368 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
35369
35370         PR target/65561
35371         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35372         Check operand 4 and operand 0 for equality.
35373         (avx512f_vextract<shuffletype>32x4_1_maskm):
35374         Check operand 6 and operand 0 for equality.
35375         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35376         for equality.
35377         (vec_extract_hi_<mode>_maskm): Ditto.
35378
35379 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35380
35381         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35382         dead calls back to live.
35383         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35384         cross check to ...
35385         (cgraph_node::verify_node): ... here; verify only callee edges,
35386         not caller.
35387         * cif-code.def (CILK_SPAWN): New code.
35388
35389 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35390
35391         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35392         (edge_set_predicate): Use it to mark unreachable edges.
35393         (inline_summary_t::duplicate): Remove unnecesary code.
35394         (remap_edge_summaries): Likewise.
35395         (dump_inline_summary): Report contains_cilk_spawn.
35396         (compute_inline_parameters): Compute contains_cilk_spawn.
35397         (inline_read_section, inline_write_summary): Stream
35398         contains_cilk_spawn.
35399         * ipa-inline.c (can_inline_edge_p): Do not touch
35400         DECL_STRUCT_FUNCTION that may not be available;
35401         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35402         remove check for callee_fun->can_throw_non_call_exceptions and
35403         replace it by optimization attribute check; check for flag_exceptions.
35404         * ipa-inline-transform.c (inline_call): Maintain
35405         DECL_FUNCTION_PERSONALITY
35406         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35407
35408 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35409
35410         PR tree-optimization/65551
35411         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35412         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35413
35414 2015-03-26  Richard Biener  <rguenther@suse.de>
35415
35416         PR middle-end/65555
35417         * tree-cfg.c (verify_gimple_call): Do not require a call to
35418         have no LHS if it wasn't recognized as control altering yet.
35419
35420 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35421
35422         PR tree-optimization/64715
35423         * passes.def: Add another instance of pass_object_sizes before ccp1.
35424         * tree-object-size.c (pass_object_sizes::execute): In
35425         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35426         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35427         __bos result and the computed constant.  Remove redundant
35428         checks, obsoleted by gimple_call_builtin_p test.
35429
35430         * var-tracking.c (variable_tracking_main_1): Don't track
35431         variables for targetm.no_register_allocation targets.
35432
35433 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
35434
35435         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35436         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35437
35438 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35439
35440         PR target/65569
35441         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35442         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
35443         0.0 is correctly setup.
35444         (extenddftf2_internal): Likewise.
35445
35446 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
35447
35448         PR tree-optimization/65177
35449         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35450         (bb_in_bbs): New.
35451         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
35452         edges not adjacent on the path to the original code.
35453
35454 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
35455
35456         PR bootstrap/65537
35457         * doc/install.texi (Building a native compiler): Document new
35458         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
35459         configuration assumes that the host supports the linker plugin.
35460
35461 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35462
35463         PR target/65508
35464         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35465         chain for generated call.
35466
35467 2015-03-25  Richard Biener  <rguenther@suse.de>
35468
35469         * passes.c (pass_manager::execute_early_local_passes): Guard
35470         execution of pass_chkp_instrumentation_passes with
35471         flag_check_pointer_bounds.
35472         (pass_chkp_instrumentation_passes::gate): Likewise.
35473
35474 2015-03-25  Martin Liska  <mliska@suse.cz>
35475
35476         PR tree-optimization/65538
35477         * symbol-summary.h (function_summary::~function_summary):
35478         Relese memory for allocated summaries.
35479         (function_summary::release): New function.
35480
35481 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
35482
35483         PR lto/65515
35484         * lto-streamer-out.c (DFS::worklist): New struct.
35485         (DFS::worklist_vec): New data member.
35486         (DFS::next_dfs_num): Remove.
35487         (DFS::DFS): Rewritten using worklist instead of recursion,
35488         using most of code from DFS::DFS_write_tree.
35489         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35490         pass it to DFS_write_tree calls.
35491         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35492         quick initial checks push it into worklist_vec and return.
35493
35494 2015-03-25  Richard Biener  <rguenther@suse.de>
35495
35496         PR middle-end/65519
35497         * genmatch.c (expr::gen_transform): Re-write to avoid
35498         using gimple_build.
35499
35500 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35501
35502         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35503
35504 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35505
35506         * config/arm/arm.opt (print_tune_info): New option.
35507         * config/arm/arm.c (arm_print_tune_info): New function.
35508         (arm_file_start): Call arm_print_tune_info.
35509         * config/arm/arm-protos.h (struct tune_params): Add comment.
35510         * doc/invoke.texi (@item -mprint-tune-info): New item.
35511         (-mtune): mention it in ARM Option Summary.
35512
35513 2015-03-25  DJ Delorie  <dj@redhat.com>
35514
35515         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35516         correct clause.
35517
35518 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
35519             Martin Liska  <mliska@suse.cz>
35520
35521         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35522         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35523         (sem_item::add_type): New function.
35524         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35525         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35526         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35527         (sem_function::equals_wpa): Fix typo.
35528         * ipa-icf.h (sem_item::add_type): New function.
35529         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35530         order.
35531
35532 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
35533
35534         PR tree-optimization/65533
35535         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35536         with swapped operands, call vect_free_slp_tree on
35537         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35538         vector.
35539
35540 2015-03-24  Richard Biener  <rguenther@suse.de>
35541
35542         PR middle-end/65517
35543         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35544         for fixup if necessary.
35545
35546 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
35547
35548         * doc/extend.texi (Function Attributes): Add @cindex entries
35549         for all attributes and regularize their format.  Delete text
35550         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
35551         information about "eightbit_data", "tiny_data", and "model"
35552         variable attributes to the Variable Attributes section.  Fix
35553         some obvious typos and copy-editing issues.
35554         (Variable Attributes, Type Attributes): Likewise add/fix
35555         @cindex entries for all attributes.
35556
35557 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35558
35559         PR target/65523
35560         * tree-chkp.c (chkp_build_returned_bound): Ignore
35561         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35562
35563 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
35564
35565         PR target/65505
35566         * config/sh/predicates.md (simple_mem_operand,
35567         displacement_mem_operand): Add test for reg.
35568         (short_displacement_mem_operand): Test for displacement_mem_operand
35569         before invoking sh_disp_addr_displacement.
35570         * config/sh/constraints.md (Sdd, Sra): Simplify.
35571         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35572         Remove redundant displacement_mem_operand tests.
35573
35574 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
35575
35576         PR target/65296
35577         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35578         the same -mmcu=MCU more than once.
35579
35580 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35581
35582         PR bootstrap/65522
35583         * ipa-devirt.c: Remove duplicate demangle.h include.
35584
35585         PR target/65504
35586         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35587         on the pseudo.
35588         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35589         REG_POINTER on *destptr after adjusting it for prologue size.
35590
35591         PR ipa/65521
35592         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35593         ultimate_alias_target ()->order ints instead of
35594         ultimate_alias_target () pointers.
35595
35596 2015-03-23  Richard Biener  <rguenther@suse.de>
35597
35598         PR tree-optimization/65518
35599         * tree-vect-stmts.c (vectorizable_load): Reject single-element
35600         interleaving cases we generate absymal code for.
35601
35602 2015-03-23  Richard Biener  <rguenther@suse.de>
35603
35604         PR tree-optimization/65494
35605         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35606         matches here.
35607         (vect_analyze_slp_instance): But do that here, always and once.
35608
35609 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35610
35611         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35612         adding T or multiplying by T+1 and subracting T.
35613
35614 2015-03-22  Jeff Law  <law@redhat.com>
35615
35616         PR rtl-optimization/64317
35617         * Makefile.in (OBJS): Add gcse-common.c
35618         * gcse.c: Include gcse-common.h
35619         (struct modify_pair_s): Move structure definition to gcse-common.h
35620         (compute_transp): Move function to gcse-common.c.
35621         (canon_list_insert): Similarly.
35622         (record_last_mem_set_info): Break out some code and put it into
35623         gcse-common.c.  Call into the new common code.
35624         (compute_local_properties): Pass additional arguments to compute_transp.
35625         * postreload-gcse.c: Include gcse-common.h and df.h
35626         (modify_mem_list_set, blocks_with_calls): New variables.
35627         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35628         (get_bb_avail_insn): Pass in the expression index too.
35629         (alloc_mem): Allocate memory for the new bitmaps and lists.
35630         (free_mem): Free memory for the new bitmaps and lists.
35631         (insert_expr_in_table): Record a bitmap index for each entry we
35632         add to the table.
35633         (record_last_mem_set_info): Call into common code in gcse-common.c.
35634         (get_bb_avail_insn): If no available insn was found in the requested
35635         BB.  If BB has a single predecessor, see if the expression is
35636         transparent in BB and available in that single predecessor.
35637         (compute_expr_transp): New wrapper for compute_transp.
35638         (eliminate_partially_redundant_load): Pass expression's bitmap_index
35639         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
35640         (gcse_after_reload_main): If there are elements in the hash table,
35641         then compute transparency for all the elements in the hash table.
35642         * gcse-common.h: New file.
35643         * gcse-common.c: New file.
35644
35645 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
35646
35647         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35648         as an adjective.
35649         (System Headers): Likewise.
35650         (Ifdef): Likewise.
35651         (Traditional macros): Likewise.
35652         (Invocation): Likewise.
35653         (Option Index): Likewise.
35654         * doc/cppopts.texi (-M): Likewise.
35655         (-finput-charset): Likewise.
35656         (--help): Likewise.
35657         * doc.invoke.texi (AVR Options): Likewise.
35658         (V850 Options): Likewise.
35659
35660 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
35661
35662         PR ipa/65475
35663         * ipa-devirt.c: Include demangle.h
35664         (odr_type_d): Add field rtti_broken.
35665         (odr_subtypes_equivalent_p): Do not require name to match.
35666         (compare_virtual_tables): Fix typo; if type already has ODR violation,
35667         bypass the tests; be ready for function referneces in vtables that are
35668         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35669         (warn_odr): Give up for nameless types.
35670         (warn_types_mismatch): Report mismatch in mangled names;
35671         report mismatch in anonymous namespaces; look into component types to
35672         give useful error; report when mismatch is dragged in from other ODR
35673         type.
35674         (odr_types_equivalent_p): Match types for being polymorphic; avoid
35675         duplicated diagnostics.
35676         (add_type_duplicate): Reorder checks so more informative ones come
35677         first; fix typo; do not output "the extra base is defined here" when
35678         we did not warn.
35679         (BINFO_N_BASE_BINFOS): Relax sanity check.
35680
35681 2015-03-22  Martin Liska  <mliska@suse.cz>
35682             Jakub Jelinek  <jakub@redhat.com>
35683
35684         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35685         masks that can potentially include a builtin.
35686         (ix86_add_new_builtins): Introduce fast filter for isa values
35687         that cannot trigger builtin inclusion.
35688
35689 2015-03-22  Martin Liska  <mliska@suse.cz>
35690
35691         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35692         (sem_item::update_hash_by_local_refs): Likewise.
35693         (sem_variable::get_hash): Empty line is fixed.
35694         (sem_item_optimizer::execute): Include adding of hash references.
35695         (sem_item_optimizer::update_hash_by_addr_refs): New function.
35696         (sem_item_optimizer::build_hash_based_classes): Use local hash.
35697         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35698         (sem_item::update_hash_by_local_refs): Likewise.
35699
35700 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35701
35702         PR ipa/65502
35703         * ipa-comdats.c (enqueue_references): Walk through thunks.
35704         (ipa_comdats): Likewise.
35705         (set_comdat_group_1): New function.
35706
35707 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35708
35709         PR ipa/65475
35710         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35711         non-polymorphic
35712
35713 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
35714             Gerald Pfeifer  <gerald@pfeifer.com>
35715
35716         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35717
35718 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
35719             Sandra Loosemore  <sandra@codesourcery.com>
35720
35721         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35722         function parameter declaration.
35723         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35724         Update arguments to nios2_adjust_call_address().
35725         (sibcall_internal): Rename from *sibcall.
35726         (sibcall_value_internal): Rename from *sibcall_value.
35727         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35728         (nios2_large_got_address): Add target temp reg parameter.
35729         (nios2_got_address): Adjust call to nios2_large_got_address, add
35730         force_reg around it.
35731         (nios2_load_pic_address): Add target temp reg parameter, replace call
35732         to nios2_got_address with corresponding code.
35733         (nios2_legitimize_constant_address): Update call to
35734         nios2_load_pic_address.
35735         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35736         to use temp reg for PIC loading purposes.
35737         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35738         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35739         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35740
35741 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35742
35743         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35744         usage of "the @option{...}".
35745         (-Wopenmp-simd): Likewise.
35746         (-fsanitize-recover): Likewise.
35747         (-fsanitize-undefined-trap-on-error): Likewise.
35748         (-flto): Likewise.
35749         (tracer-dynamic-coverage-feedback): Likewise.
35750         (reorder-block-duplicate-feedback): Likewise.
35751         (loop-unroll-jam-size): Likewise.
35752         (-B): Likewise.
35753         (-I-): Likewise.
35754         (-mabs=legacy): Likewise.
35755         (-mupper-regs-df): Likewise.
35756         (-mupper-regs-sf): Likewise.
35757         (-mpointers-to-nested-functions): Likewise.
35758
35759 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35760
35761         * doc/extend.texi (Cilk Plus Builtins): Add markup.
35762
35763 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35764
35765         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35766         additional index entries and cross-references.
35767         (-fchkp-check-incomplete-type): Likewise.
35768         (-fchkp-first-field-has-own-bounds): Likewise.
35769         (-fchkp-narrow-to-innermost-array): Likewise.
35770         (-fchkp-use-fast-string-functions): Likewise.
35771         (-fchkp-use-nochk-string-functions): Likewise.
35772         (-fchkp-use-static-const-bounds): Likewise.
35773         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35774         (-fchkp-instrument-marked-only): Likewise.
35775         (-fchkp-use-wrappers): Likewise.
35776         (-static-libmpx): Likewise.
35777         (-static-libmpxwrappers): Likewise.
35778         * doc/extend.texi (bnd_legacy): Likewise.
35779         (bnd_instrument): Likewise.
35780         (bnd_variable_size): Likewise.
35781         (Pointer Bounds Checker builtins): Likewise.
35782
35783 2015-03-21  Tom de Vries  <tom@codesourcery.com>
35784
35785         PR tree-optimization/65458
35786         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35787         * cgraph.h (cgraph_node): Add parallelized_function field.
35788         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35789         (input_overwrite_node): Read parallelized_function field.
35790         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35791         parallelized_function on cgraph_node for child_fn.
35792         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35793         Remove include of gt-tree-parloops.h.
35794         (parallelized_functions): Remove static variable.
35795         (parallelized_function_p): Rewrite using parallelized_function field of
35796         cgraph_node.
35797         (create_loop_fn): Remove adding to parallelized_functions.
35798         * Makefile.in (GTFILES): Remove tree-parloops.c
35799
35800 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
35801
35802         PR rtl-optimization/64366
35803         * lra.c (lra_update_insn_regno_info): Consider regs in
35804         CALL_INSN_FUNCTION_USAGE memory.
35805
35806 2015-03-20  Richard Biener  <rguenther@suse.de>
35807
35808         PR middle-end/64715
35809         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35810         for type comparison and gcc_checking_assert.
35811         (chrec_fold_plus_poly_poly): Likewise.
35812         (chrec_fold_multiply_poly_poly): Likewise.
35813         (chrec_convert_1): Likewise.
35814         * gimplify.c (gimplify_expr): Remove premature folding of
35815         &X + CST to &MEM[&X, CST].
35816
35817 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35818
35819         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35820         already is final.
35821         (ipa_inline): Recompute inline_failed codes.
35822         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35823         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35824         CIF_FINAL_ERROR.
35825
35826 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
35827
35828         PR rtl-optimization/60851
35829         * recog.c (constrain_operands): Accept a pseudo register before reload
35830         for LRA enabled targets.
35831
35832 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
35833
35834         PR target/65240
35835         * config/rs6000/predicates.md (easy_fp_constant): Remove special
35836         -ffast-math handling that kept non-0 constants live in the RTL
35837         until reload.  Remove logic testing the number of instructions it
35838         took to create a constant in a GPR that was never used, due to a
35839         test for soft-float earlier.
35840         (memory_fp_constant): Delete, no longer used.
35841
35842         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35843         alternatives for loading non-0 constants into GPRs for hard
35844         floating point that is no longer needed due to changes in
35845         easy_fp_constant.  Add support for loading 0.0 into GPRs.
35846         (mov<mode>_hardfloat32): Likewise.
35847         (mov<mode>_hardfloat64): Likewise.
35848         (mov<mode>_64bit_dm): Likewise.
35849         (movtd_64bit_nodm): Likewise.
35850         (pre-reload move FP constant define_split): Delete define_split,
35851         since it is no longer used.
35852         (extenddftf2_internal): Remove GHF constraints that are not valid
35853         for extenddftf2.
35854
35855 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
35856
35857         PR rtl-optimization/63491
35858         * lra-constraints.c (check_and_process_move): Use src instead of
35859         sreg.  Remove some dead code.
35860
35861 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
35862
35863         PR ipa/65380
35864         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35865         (sem_variable::merge): Likewise.
35866
35867 2015-03-19  Martin Liska  <mliska@suse.cz>
35868
35869         PR ipa/65465
35870         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35871         all fields of cgraph_thunk_info.
35872
35873 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35874
35875         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35876         clone instrumented thunks.
35877
35878 2015-03-19  Richard Biener  <rguenther@suse.de>
35879
35880         Revert
35881         2015-03-10  Richard Biener  <rguenther@suse.de>
35882
35883         PR middle-end/63155
35884         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35885         * tree-ssa-coalesce.c: Include timevar.h.
35886         (attempt_coalesce): Handle graph being NULL.
35887         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35888         Split out abnormal coalescing to ...
35889         (perform_abnormal_coalescing): ... this function.
35890         (coalesce_ssa_name): Perform abnormal coalescing without computing
35891         live/conflict.
35892         (verify_ssa_coalescing_worker): New function.
35893         (verify_ssa_coalescing): Likewise.
35894
35895 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35896             Jakub Jelinek  <jakub@redhat.com>
35897
35898         PR sanitizer/65400
35899         * tsan.c (instrument_gimple): Clear tail call flag on
35900         calls.
35901
35902 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
35903
35904         PR sanitizer/65400
35905         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35906         call in the return bb.
35907         (find_split_points): Add RETURN_BB argument, don't call
35908         find_return_bb.
35909         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
35910         if true append TSAN_FUNC_EXIT internal call after the call to
35911         the split off function.
35912         (execute_split_functions): Call find_return_bb here.
35913         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35914         Adjust find_split_points and split_function calls.
35915
35916 2015-03-18  DJ Delorie  <dj@redhat.com>
35917
35918         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35919         (iorqi3_virt): Likewise.
35920
35921 2015-03-18  Tom de Vries  <tom@codesourcery.com>
35922
35923         * tree-parloops.c (parallelize_loops): Make static.
35924         * tree-parloops.h (parallelize_loops): Remove extern declaration.
35925
35926 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
35927
35928         PR middle-end/64491
35929         Revert:
35930         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
35931
35932         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35933         condition would be removed due to undefined behaviour.
35934
35935 2015-03-18  Martin Liska  <mliska@suse.cz>
35936
35937         PR ipa/65432
35938         * cgraph.c (cgraph_node::get_create): Remove unnecessary
35939         xstrdup_for_dump wrapper.
35940         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35941         sem_item::name.
35942         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35943         with xstrdup_for_dump.
35944         (sem_variable::equals): Likewise.
35945         (sem_item_optimizer::read_section): Use symtab_node::name instead of
35946         sem_item::name.
35947         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35948         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35949         symtab_node::asm_name with xstrdup_for_dump.
35950         (congruence_class::dump): Use symtab_node::name instead of
35951         sem_item::name.
35952         * ipa-icf.h (symtab_node::name): Remove.
35953         (symtab_node::asm_name): Likewise.
35954
35955 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35956
35957         PR tree-optimization/65450
35958         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35959         function.
35960         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35961         it instead of duplicate_ssa_name_ptr_info.
35962
35963         PR target/65222
35964         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35965
35966 2015-03-18  Richard Biener  <rguenther@suse.de>
35967
35968         * tree-data-ref.h (struct access_matrix): Remove.
35969         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35970         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35971         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35972         (am_vector_index_for_loop): Likewise.
35973         (struct data_reference): Remove access_matrix member.
35974         (DR_ACCESS_MATRIX): Remove.
35975         (lambda_vector_new): Add comment.
35976         (lambda_matrix_new): Use XOBNEWVEC.
35977
35978 2015-03-18  Richard Biener  <rguenther@suse.de>
35979
35980         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35981         (pass_ch::execute): Cleanup the CFG only if we did sth.
35982         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35983
35984 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35985
35986         * expmed.c (synth_mult): Use std::swap instead of manually
35987         swapping algorithms.
35988
35989 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35990
35991         PR target/65078
35992         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35993
35994 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
35995
35996         PR target/65296
35997         * config/avr/avr.opt (-nodevicelib): New option.
35998         * doc/invoke.texi (AVR Options): Document it.
35999         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36000         libgcc.a, libc.a, libm.a.
36001         * config/avr/specs.h: Same.
36002         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36003         which don't (directly) depend on the device.  Print more help.
36004         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36005         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36006         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36007         case of an error.
36008         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36009         for specs file name.
36010         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36011         * config/avr/avr-mcus.def: Adjust initializers and comments.
36012
36013 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
36014
36015         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36016         DECL_ONE_ONLY to check if decl is one only.
36017         * ipa-split.c (consider_split): Limit splitt of one only functions.
36018
36019 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36020
36021         PR tree-optimization/65427
36022         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36023         functions.
36024         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36025
36026 2015-03-16  Marek Polacek  <polacek@redhat.com>
36027
36028         * cgraph.h (add_new_static_var): Remove declaration.
36029         * varpool.c (add_new_static_var): Remove function.
36030
36031 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36032
36033         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36034         instead of vec<tree> * with vec_alloc and release for args.
36035         Adjust all users.
36036
36037         PR middle-end/65431
36038         * omp-low.c (delete_omp_context): Only splay_tree_delete
36039         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36040         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
36041
36042 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36043
36044         PR sanitizer/64820
36045         * cfgexpand.c (align_base): New function.
36046         (alloc_stack_frame_space): Call it.
36047         (expand_stack_vars): Align prev_frame to be sure
36048         data->asan_vec elements aligned properly.
36049
36050 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
36051
36052         PR middle-end/65409
36053         * expr.c (store_field): Do not do a direct block copy if the source is
36054         a PARALLEL with BLKmode.
36055
36056 2015-03-16  Tom de Vries  <tom@codesourcery.com>
36057
36058         PR middle-end/65414
36059         Revert:
36060         2015-03-12  Tom de Vries  <tom@codesourcery.com>
36061
36062         PR rtl-optimization/64895
36063         * lra-lives.c (check_pseudos_live_through_calls): Use
36064         actual_call_used_reg_set instead of call_used_reg_set, if available.
36065
36066 2015-03-16  Alan Modra  <amodra@gmail.com>
36067
36068         PR target/63150
36069         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36070         Modify Z->r bswapdi splitter to use dest in place of scratch.
36071         In r->Z and Z->r bswapdi splitter rename word_high, word_low
36072         to word1, word2 and rearrange logic to suit.
36073         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36074         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
36075         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36076         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
36077         early clobber.
36078
36079 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
36080
36081         PR tree-optimization/65369
36082         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36083         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36084         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36085
36086         PR tree-optimization/65418
36087         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36088         are casts in the first PLUS_EXPR operand, ensure tbias and
36089         *totallowp are in the inner type.
36090
36091         PR rtl-optimization/65401
36092         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36093         argument.  If true, adjust_address_nv of x with big-endian
36094         correction for the mode widening to GET_MODE (y).
36095         (make_field_assignment): Don't do MEM mode widening here.
36096         Use MEM_P instead of GET_CODE == MEM.
36097
36098 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
36099
36100         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36101         the external decls.
36102
36103 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36104
36105         PR target/64600
36106         * config/arm/arm.c (arm_gen_constant, AND case): Use
36107         ARM_SIGN_EXTEND when constructing AND mask.
36108
36109 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36110
36111         * graph.c (print_graph_cfg): Make function names visible and append
36112         parenthesis to it.  Also make groups of basic blocks belonging to the
36113         same function visible.
36114
36115 2015-03-12  Richard Biener  <rguenther@suse.de>
36116
36117         PR middle-end/44563
36118         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36119         to avoid quadratic behavior with inline expansion splitting blocks.
36120         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36121         with the successor if the predecessor will be merged with it.
36122         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36123         entry block with its successor.
36124
36125 2015-03-13  Richard Biener  <rguenther@suse.de>
36126
36127         PR middle-end/44563
36128         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36129         (cleanup_tree_cfg_1): Do not call it.
36130         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36131         (fixup_noreturn_call): Mark the stmt as control altering.
36132         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36133         here.
36134         (pass_data_fixup_cfg): Produce a dump file.
36135         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36136         (need_noreturn_fixup): New global.
36137         (pass_dominator::execute): Fixup queued noreturn calls.
36138         (optimize_stmt): Queue calls that became noreturn for fixup.
36139         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36140         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36141         (el_to_fixup): New global.
36142         (eliminate_dom_walker::before_dom_childre): Queue calls that
36143         became noreturn for fixup.
36144         (eliminate): Fixup queued noreturn calls.
36145         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36146         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36147         (substitute_and_fold_dom_walker::before_dom_children): Queue
36148         alls that became noreturn for fixup.
36149         (substitute_and_fold): Fixup queued noreturn calls.
36150
36151 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
36152
36153         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36154         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36155         are building; for methods check ODR type of class they belong to if
36156         they may lead to a polymorphic call.
36157         (sem_function::compare_polymorphic_p): Be bit smarter about testing
36158         when function may lead to a polymorphic call.
36159         (sem_function::compare_type_list): Remove.
36160         (sem_variable::equals): Update use of compatible_types_p.
36161         (sem_variable::parse_tree_refs): Remove.
36162         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36163         cdtor.
36164         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36165         matching here.
36166         (func_checker::compatible_polymorphic_types_p): Break out from ...
36167         (unc_checker::compatible_types_p): ... here.
36168         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36169         Declare.
36170         (unc_checker::compatible_types_p): Update.
36171         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36172         Remove.
36173
36174 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36175
36176         PR rtl-optimization/65235
36177         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36178         When first element of vec_concat is const_int, calculate its size
36179         using second element.
36180
36181 2015-03-12  Richard Biener  <rguenther@suse.de>
36182
36183         PR middle-end/65270
36184         * fold-const.c (operand_equal_p): Fix ordering of resetting
36185         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36186
36187 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36188
36189         * config/s390/s390.c (s390_reorg): Move code to output nops after label
36190         to s390_reorg ().
36191         (s390_asm_output_function_label): Likewise.
36192         * config/s390/s390.c (s390_asm_output_function_label):
36193         Fix function label alignment with -mhtopatch.
36194         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36195         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36196         ("nop_2_byte"): New define_insn.
36197         ("nop_4_byte"): Likewise.
36198         ("nop_6_byte"): Likewise.
36199         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36200         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36201
36202 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36203
36204         PR target/65103
36205         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36206         register.
36207
36208 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36209
36210         PR target/65044
36211         * toplev.c (process_options): Restrict Pointer Bounds Checker
36212         usage with Address Sanitizer.
36213
36214 2015-03-12  Richard Biener  <rguenther@suse.de>
36215
36216         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36217         to split on.
36218         * omp-low.c (expand_omp_taskreg): Split block before removing
36219         the stmt.
36220         (expand_omp_target): Likewise.
36221         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36222         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36223         stmt to split_block.
36224
36225 2015-03-12  Tom de Vries  <tom@codesourcery.com>
36226
36227         PR rtl-optimization/64895
36228         * lra-lives.c (check_pseudos_live_through_calls): Use
36229         actual_call_used_reg_set instead of call_used_reg_set, if available.
36230
36231 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36232
36233         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36234         (cgraph_node::remove): Likewise.
36235         (cgraph_node::get_untransformed_body): Likewise.
36236         * varpool.c (varpool_node::remove): Likewise.
36237         (varpool_node::get_constructor): Add sanity check.
36238
36239 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
36240
36241         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36242         old GCC versions.
36243         (-fabi-compat-version): Likewise.
36244         (-ffriend-injection): Likewise.
36245         (-Wdeclaration-after-statement): Likewise.
36246         (-fomit-frame-pointer): Likewise.
36247         (-ftree-coalesce-inlined-vars): Likewise.
36248         (-fvisibility=): Likewise.
36249         * doc/extend.texi (Typeof): Likewise.
36250         (Zero Length): Likewise.
36251         (Escaped Newlines): Likewise.
36252         (Compound Literals): Likewise.
36253         (Function Attributes): Likewise.
36254         (Label Attributes): Likewise.
36255         (Type Attributes): Likewise.
36256         (Function Names): Likewise.
36257         (Other Builtins): Likewise.
36258         (Function Specific Option Pragmas): Likewise.
36259         (C++ Interface): Likewise.
36260
36261 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
36262
36263         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36264
36265 2015-03-11  Marek Polacek  <polacek@redhat.com>
36266
36267         PR tree-optimization/65388
36268         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36269
36270 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36271
36272         PR target/65296
36273         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36274         * configure: Regenerate.
36275         * config.in: Regenerate.
36276         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36277         [-mn-flash]: Document it.
36278         [__AVR_ARCH__]: Document avrtiny.
36279
36280         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36281         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36282         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36283
36284 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36285
36286         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36287
36288 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36289
36290         PR target/65242
36291         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36292         allow reloads of PLUS in floating point/VSX registers.
36293
36294 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
36295
36296         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36297         crypto_sha256_fast.
36298         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36299
36300 2015-03-11  Richard Biener  <rguenther@suse.de>
36301
36302         PR tree-optimization/65310
36303         * tree-sra.c (build_ref_for_offset): Also preserve larger
36304         alignment.
36305
36306 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
36307
36308         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36309
36310 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36311
36312         PR target/65368
36313         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36314         new define_expand.
36315         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36316
36317 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36318
36319         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36320         (sem_function::equals_wpa): ... here.
36321
36322 2015-03-10  Marek Polacek  <polacek@redhat.com>
36323             Jakub Jelinek  <jakub@redhat.com>
36324
36325         PR sanitizer/65367
36326         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36327         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
36328         separately.
36329
36330 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36331
36332         PR target/65286
36333         * config/rs6000/t-linux: For powerpc64* target set
36334         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36335
36336 2015-03-10  Richard Biener  <rguenther@suse.de>
36337
36338         PR middle-end/44563
36339         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36340         for redirect_all_calls.
36341
36342 2015-03-10  Marek Polacek  <polacek@redhat.com>
36343
36344         * gdbinit.in (pcfun): Define and document.
36345
36346 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
36347
36348         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36349         of libgomp-plugin.h.
36350         (find_target_compiler): Support a case when the path to gcc is
36351         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36352         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36353         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36354         libgomp-plugin.h.
36355         (main): Use GCC_INSTALL_NAME as target_driver_name.
36356         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36357         define.
36358         (mkoffload.o): Remove obsolete include path and defines.
36359         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36360
36361 2015-03-10  Richard Biener  <rguenther@suse.de>
36362
36363         PR middle-end/63155
36364         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36365         * tree-ssa-coalesce.c: Include timevar.h.
36366         (attempt_coalesce): Handle graph being NULL.
36367         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36368         Split out abnormal coalescing to ...
36369         (perform_abnormal_coalescing): ... this function.
36370         (coalesce_ssa_name): Perform abnormal coalescing without computing
36371         live/conflict.
36372         (verify_ssa_coalescing_worker): New function.
36373         (verify_ssa_coalescing): Likewise.
36374
36375 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36376
36377         PR target/65296
36378         * config.gcc (extra_options) [avr]: Remove.
36379         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36380         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36381         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36382
36383         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36384         (-mmcu=): Add Var and MissingArgError properties.
36385         (-march=): Remove.
36386         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36387         * config/avr/t-multilib: Regenerate.
36388         * config/avr/specs.h: New file.
36389         * config/avr/driver-avr.c: New file.
36390         * config/avr/genopt.sh: Remove file.
36391         * config/avr/avr-tables.opt: Remove file.
36392         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36393         * config/avr/avr-c.c: Same.
36394         * avr-arch.h: Same.
36395         (avr_current_device): Remove proto.
36396         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36397         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36398         (EXTRA_SPEC_FUNCTIONS): Define.
36399         (avr_devicespecs_file): New specs function proto.
36400         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36401         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36402         (avr_current_device): Remove definition and usage.
36403         (avr_set_core_architecture): New static function.
36404         (avr_option_override): Use it.
36405         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36406         (mcu_name): New static array.
36407         (comparator, avr_archs_str, avr_mcus_str): New static functions.
36408         (avr_inform_devices, avr_inform_core_architectures): New functions.
36409         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36410         (avrlibc.h) [WITH_AVRLIBC]: Include.
36411         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36412         (print_mcu): Rewrite from scratch.
36413         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36414         Forward to avr-specific specs defined in device-specs file.
36415         * config/avr/t-avr (driver-avr.o): New rule.
36416         (avr-devices.o): Depend on avr-arch.h.
36417         (avr-mcus): No more depend on avr-tables.opt.
36418         (avr-tables.opt): Remove rule.
36419         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36420
36421 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36422
36423         * c-family/c.opt (fchkp-use-wrappers): New.
36424         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36425         (chkp_wrap_function): New.
36426         (chkp_build_instrumented_fndecl): Support wrapped
36427         functions.
36428         * doc/invoke.texi (-fcheck-pointer-bounds): New.
36429         (-fchkp-check-incomplete-type): New.
36430         (-fchkp-first-field-has-own-bounds): New.
36431         (-fchkp-narrow-bounds): New.
36432         (-fchkp-narrow-to-innermost-array): New.
36433         (-fchkp-optimize): New.
36434         (-fchkp-use-fast-string-functions): New.
36435         (-fchkp-use-nochk-string-functions): New.
36436         (-fchkp-use-static-bounds): New.
36437         (-fchkp-use-static-const-bounds): New.
36438         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36439         (-fchkp-check-read): New.
36440         (-fchkp-check-write): New.
36441         (-fchkp-store-bounds): New.
36442         (-fchkp-instrument-calls): New.
36443         (-fchkp-instrument-marked-only): New.
36444         (-fchkp-use-wrappers): New.
36445         (-static-libmpx): New.
36446         (-static-libmpxwrappers): New.
36447
36448 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36449
36450         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36451         (CHKP_SPEC): Add wrappers library.
36452         * c-family/c.opt (static-libmpxwrappers): New.
36453
36454 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36455
36456         * config/i386/linux-common.h (LIBMPX_LIBS): New.
36457         (LIBMPX_SPEC): New.
36458         (CHKP_SPEC): New.
36459         * gcc.c (CHKP_SPEC): New.
36460         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36461         * c-family/c.opt (static-libmpx): New.
36462
36463 2015-03-10  Richard Biener  <rguenther@suse.de>
36464
36465         PR middle-end/44563
36466         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36467         for compare_type.
36468         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36469         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36470         (cgraph_add_edge_to_call_site_hash): Likewise.
36471         (cgraph_node::get_edge): Likewise.
36472         (cgraph_edge::set_call_stmt): Likewise.
36473         (cgraph_edge::remove_caller): Likewise.
36474
36475 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
36476
36477         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36478         (callee_saved_gpr_regs_size): ... this.
36479         (callee_saved_regs_first_regno): Rename to ...
36480         (callee_saved_first_gpr_regno): ... this.
36481         (callee_saved_regs_last_regno) Rename to ...
36482         (callee_saved_last_gpr_regno): ... this.
36483         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36484         variables.
36485         (nds32_initial_elimination_offset): Likewise.
36486         (nds32_expand_prologue): Likewise.
36487         (nds32_expand_epilogue): Likewise.
36488         (nds32_expand_prologue_v3push): Likewise.
36489         (nds32_expand_epilogue_v3pop): Likewise.
36490         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36491         Adjust renamed variables.
36492         (nds32_output_stack_pop): Likewise.
36493
36494 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36495
36496         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36497         code in comment.
36498
36499 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36500
36501         PR rtl-optimization/65321
36502         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36503         than shift mode.
36504         * var-tracking.c (use_narrower_mode): Likewise.
36505
36506 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36507
36508         PR tree-optimization/65355
36509         * varasm.c (notice_global_symbol): Do not produce RTL.
36510         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36511         anchor.
36512         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36513         check for section anchors.
36514
36515 2015-03-10  Alan Modra  <amodra@gmail.com>
36516
36517         PR target/65286
36518         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36519         to be single-arch by default.  Set cpu_is_64bit for powerpc64
36520         given --with-cpu=native.
36521         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36522         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36523         and powerpc64le.
36524         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36525         rs6000_isa_flags rather than TARGET_64BIT.
36526
36527 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
36528             Kaz Kojima  <kkojima@gcc.gnu.org>
36529
36530         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36531
36532 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
36533
36534         PR lto/65361
36535         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36536         on a TREE_BINFO, instead use BINFO_TYPE.
36537
36538 2015-03-09  Richard Biener  <rguenther@suse.de>
36539
36540         PR middle-end/65270
36541         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36542         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36543         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
36544         of that.  When comparing dereferences compare alignment.
36545         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36546
36547 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36548
36549         * ipa-inline-analysis.c (check_callers): Check
36550         node->can_remove_if_no_direct_calls_and_refs_p.
36551         (growth_likely_positive): Reorganize to call
36552         can_remove_if_no_direct_calls_p later.
36553         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36554         will_be_removed_from_program_if_no_direct_calls_p): Add
36555         will_inline parameter.
36556         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36557         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36558         Handle inliner case correctly.
36559
36560 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36561
36562         PR tree-optimization/63743
36563         * cfgexpand.c (reorder_operands): Also reorder if only second operand
36564         had its definition forwarded by TER.
36565
36566 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36567
36568         PR lto/65316
36569         * ipa-utils.h (types_odr_comparable): Add strict argument.
36570         * ipa-devirt.c: Fix whitespace;
36571         (odr_hasher): Remove.
36572         (odr_name_hasher, odr_vtable_hasher): New hashers.
36573         (can_be_name_hashed_p): New predicate.
36574         (hash_type_name): remove.
36575         (hash_odr_name): New.
36576         (odr_name_hasher::hash): new.
36577         (can_be_vtable_hashed_p): New.
36578         (hash_odr_vtable): New.
36579         (odr_vtable_hasher::hash): New.
36580         (types_same_for_odr): Add strict parameter.
36581         (types_odr_comparable): Likewise.
36582         (odr_name_hasher::equal): New.
36583         (odr_vtable_hasher::equal): New.
36584         (odr_name_hasher::remove): New.
36585         (odr_hash_type): Change to hash_table<odr_name_hasher>.
36586         (odr_vtable_hash_type): New.
36587         (odr_vtable_hash): New.
36588         (odr_subtypes_equivalent_p): Do strict comparsion.
36589         (add_type_duplicate): Merge type names; cleanup; avoid type
36590         duplicates.
36591         (register_odr_type): Initialize vtable hash.
36592         (build_type_inheritance_graph): Likewise
36593         (get_odr_type): Reorg to use two hashes.
36594         (dump_possible_polymorphic_call_targets): Move sanity check after debug
36595         output.
36596         (ipa_devirt): Dump type_inheritance_graph.
36597         (types_same_for_odr): Add strict mode.
36598
36599 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36600
36601         PR ipa/65334
36602         * cgraph.h (symtab_node): Add definition_alignment,
36603         can_increase_alignment_p and increase_alignment.
36604         * symtab.c (symtab_node::can_increase_alignment_p,
36605         increase_alignment_1, symtab_node::increase_alignment,
36606         symtab_node::definition_alignment): New.
36607         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36608         can_increase_alignment_p.
36609         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36610         * tree-vect-stmts.c (ensure_base_align): Likewise.
36611         * varasm.c (function_section_1): Use definition_alignment.
36612         (assemble_start_function): Likewise.
36613         (emit_local): likewise.
36614         (build_constant_desc): Likewsie.
36615         (output_constant_def_contents): Likewise.
36616         (place_block_symbol): Likewise.
36617         (output_object_block): Likewise.
36618
36619 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36620
36621         PR ipa/65316
36622         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36623         when outputting debug.
36624
36625 2015-03-07  Marek Polacek  <polacek@redhat.com>
36626             Martin Uecker  <uecker@eecs.berkeley.edu>
36627
36628         PR sanitizer/65280
36629         * doc/invoke.texi: Update description of -fsanitize=bounds.
36630
36631 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
36632
36633         * tree-ssa-phiopt.c (neg_replacement): Remove.
36634         (tree_ssa_phiopt_worker): Remove negate optimization.
36635
36636 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36637
36638         PR ipa/65302
36639         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36640
36641 2015-03-06  Richard Biener  <rguenther@suse.de>
36642
36643         PR middle-end/64928
36644         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36645         and liveout_obstack members.
36646         (calculate_live_on_exit): Remove.
36647         (calculate_live_ranges): Change declaration.
36648         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36649         (new_tree_live_info): Adjust.
36650         (calculate_live_ranges): Delete livein when not wanted.
36651         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36652         Deal with partly deleted live info.
36653         (loe_visit_block): Remove temporary bitmap by using
36654         bitmap_ior_and_compl_into.
36655         (live_worklist): Adjust accordingly.
36656         (calculate_live_on_exit): Make static.
36657         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36658         we do not need livein.
36659
36660 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
36661
36662         * real.c (real_from_string): Fix typo in assertion.
36663
36664 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
36665
36666         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36667         the patch.
36668
36669 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36670
36671         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36672
36673 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
36674
36675         PR target/64342
36676         * lra-assigns.c (find_hard_regno_for): Rename to
36677         find_hard_regno_for_1.  Add a new parameter.
36678         (find_hard_regno_for): New function using find_hard_regno_for_1.
36679
36680 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36681
36682         PR rtl-optimization/65067
36683         * expmed.c (store_bit_field, extract_bit_field): Reworked the
36684         strict volatile bitfield handling.
36685
36686 2015-03-05  Martin Liska  <mliska@suse.cz>
36687
36688         PR ipa/65318
36689         * ipa-icf.c (sem_variable::equals): Compare variables types.
36690
36691 2015-03-05  Richard Henderson  <rth@redhat.com>
36692
36693         PR target/65121
36694         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36695         correctly check weak symbol binding.
36696
36697 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
36698
36699         PR middle-end/65315
36700         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36701         needed alignment.
36702
36703 2015-03-05  Martin Liska  <mliska@suse.cz>
36704
36705         * ipa-inline.c (inline_small_functions): Set default value to
36706         prevent warning during bootstrap.
36707         * tree.h: Add pragma guard that ignores false positives during
36708         bootstrap.
36709
36710 2015-03-05  Richard Biener  <rguenther@suse.de>
36711
36712         PR tree-optimization/65310
36713         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36714         Properly preserve alignment of the base of the access.
36715
36716 2015-03-05  Richard Biener  <rguenther@suse.de>
36717
36718         PR ipa/65270
36719         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36720         Compare dependence info.
36721
36722 2015-03-05  Richard Biener  <rguenther@suse.de>
36723
36724         PR middle-end/65233
36725         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36726         tree-into-ssa.h.
36727         (walk_ssa_copies): Revert last chage.  Instead do not walk
36728         SSA names registered for SSA update.
36729
36730 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36731
36732         PR ipa/65270
36733         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36734         vtable references for their containing type.
36735         (sem_function::equals_wpa): Compare TYPE_RESTRICT
36736         and type attributes.
36737
36738 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
36739
36740         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36741         before negating it.
36742         * stor-layout.c (finalize_record_size): Revert latest change.
36743
36744 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
36745
36746         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36747
36748 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36749
36750         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36751         for correct comdat handling.
36752         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36753         Likewise.
36754         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36755         (used_from_object_file_p_worker): Remove.
36756         (cgraph_node::only_called_directly_or_alised): Add
36757         used_from_object_file_p.
36758         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36759         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36760         can_remove_if_no_direct_calls_and_refs_p.
36761
36762 2015-03-04  Nick Clifton  <nickc@redhat.com>
36763
36764         * config/rl78/rl78.h (enum reg_class): Remove real registers from
36765         General register class.
36766         * config/rl78/rl78-real.md: Replace general register constraints
36767         with real+virtual register constraints.
36768
36769 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36770
36771         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36772         from checking for -mhtm option.
36773
36774 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36775
36776         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36777         (struct ipa_sra_check_caller_data): Add has_thunk field.
36778         (ipa_sra_check_caller): Check for thunk.
36779         (ipa_sra_preliminary_function_checks): Give up on function with
36780         thunks.
36781         (ipa_early_sra): Use call_for_symbol_and_aliases.
36782
36783 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
36784
36785         PR target/65249
36786         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36787         called for __stack_chk_guard symbol.
36788
36789 2015-03-03  DJ Delorie  <dj@redhat.com>
36790
36791         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36792         inc/dec.
36793         (*addhi3_real): Likewise.
36794         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36795         pattern to match incrementing memory.
36796         * config/rl78/predicates.md (rl78_1_2_operand): New.
36797         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36798         it's the same and only mem.
36799         (rl78_alloc_physical_registers_op2): If there's effectively only
36800         one MEM, transcode it into HL.
36801         (rl78_far_p): Reject addresses that aren't legitimate.
36802
36803 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36804
36805         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36806         negating it.
36807
36808         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36809
36810 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36811
36812         Implement call0 ABI for xtensa
36813         * config/xtensa/constraints.md ("a" constraint): Include stack
36814         pointer in case of call0 ABI.
36815         ("q" constraint): Make empty in case of call0 ABI.
36816         ("D" constraint): Include stack pointer in case of call0 ABI.
36817         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36818         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36819         prototypes.
36820         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36821         variable.
36822         (xtensa_regno_to_class): Make it a local variable in the
36823         function xtensa_regno_to_class.
36824         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36825         macro, function prototype and implementation.
36826         (reg_nonleaf_alloc_order): Make it a local variable in the
36827         function order_regs_for_local_alloc.
36828         (xtensa_conditional_register_usage): New function.
36829         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36830         (xtensa_valid_move): Allow direct moves to stack pointer
36831         register in call0 ABI.
36832         (xtensa_setup_frame_addresses): Only spill register windows in
36833         windowed ABI.
36834         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36835         call0 ABI respectively.
36836         (xtensa_function_arg_1): Only mark a7 register for copying in
36837         windowed ABI.
36838         (xtensa_call_save_reg): New function.
36839         (compute_frame_size): Add space for callee saved register
36840         storage to the frame size in call0 ABI.
36841         (xtensa_expand_prologue): Generate code to set up stack frame
36842         and save callee-saved registers in call0 ABI.
36843         (xtensa_expand_epilogue): New function.
36844         (xtensa_set_return_address): New function.
36845         (xtensa_return_addr): Calculate return address in call0 ABI.
36846         (xtensa_builtin_saveregs): Only mark a7 register for copying and
36847         emit copying code in windowed ABI.
36848         (order_regs_for_local_alloc): Add preferred register allocation
36849         order for non-leaf function in call0 ABI.
36850         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36851         (xtensa_asm_trampoline_template): Add trampoline generation for
36852         call0 ABI.
36853         (xtensa_trampoline_init): Add trampoline initialization for
36854         call0 ABI.
36855         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36856         functions.
36857         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36858         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36859         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36860         ABI call-used registers.
36861         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36862         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36863         call0 ABI.
36864         (REG_CLASS_CONTENTS): Include all registers into the preferred
36865         reload registers set, adjust the set in the
36866         xtensa_conditional_register_usage.
36867         (xtensa_regno_to_class): Drop variable declaration.
36868         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36869         function.
36870         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36871         respectively.
36872         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36873         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36874         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36875         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36876         location in call0 ABI.
36877         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36878         stack adjustment size when handling exception.
36879         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36880         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36881         definitions.
36882         ("return" pattern): Generate ret.n/ret in call0 ABI.
36883         ("epilogue" pattern): Expand epilogue.
36884         ("nonlocal_goto" pattern): Use default in call0 ABI.
36885         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36886         emit eh_set_a0_* depending on ABI.
36887         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36888         ("eh_set_a0_call0", "blockage"): New patterns.
36889
36890 2015-03-03  Martin Liska  <mliska@suse.cz>
36891
36892         PR ipa/65287
36893         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36894
36895 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
36896
36897         PR 65138/target
36898         * config/rs6000/rs6000-tables.opt: Regenerate table.
36899
36900 2015-03-03  Renlin Li  <renlin.li@arm.com>
36901
36902         * doc/md.texi (@item ^): Change ? into ^.
36903
36904 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
36905
36906         * doc/tm.texi: Regenerated.
36907
36908 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36909
36910         * builtins.c (expand_builtin_return_addr): Add
36911         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36912         surrounding #ifdef.
36913         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36914         definition to 1.
36915         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36916         Likewise.
36917         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36918         undefined.
36919         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36920         paragraph.
36921
36922 2015-03-03  Martin Jambor  <mjambor@suse.cz>
36923             Eric Botcazou  <ebotcazou@adacore.com>
36924
36925         * tree-sra.c (ipa_sra_check_caller_data): New type.
36926         (has_caller_p): Removed.
36927         (ipa_sra_check_caller): New function.
36928         (ipa_sra_preliminary_function_checks): Use it.
36929
36930 2015-03-03  Martin Liska  <mliska@suse.cz>
36931
36932         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36933         instead of if branch.
36934
36935 2015-03-03  Martin Liska  <mliska@suse.cz>
36936
36937         PR ipa/65282
36938         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36939
36940 2015-03-23  Jeff Law  <law@redhat.com>
36941
36942         PR tree-optimization/65241
36943         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36944         hash table if INSERT is true.
36945
36946 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36947
36948         PR target/65296
36949         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36950
36951 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36952
36953         PR target/64331
36954         * config/avr/avr.c (context.h, tree-pass.h): Include them.
36955         (avr_pass_data_recompute_notes): New static variable.
36956         (avr_pass_recompute_notes): New class.
36957         (avr_register_passes): New static function.
36958         (avr_option_override): Call it.
36959
36960 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36961
36962         Fix various problems with specs file generation.
36963
36964         PR target/65296
36965         * config.gcc (extra_gcc_objs) [avr]: Remove.
36966         * config/avr/driver-avr.c: Remove file.
36967         * config/avr/t-avr (driver-avr.o): Remove rule.
36968         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36969         INCLUDES to build.  Depend on TM_H.
36970         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
36971         build warnings.  Fix non-matching types and non-existing %-codes.
36972         (tm.h): Include.
36973         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36974         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36975         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36976         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36977         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36978         (LIBGCC_SPEC): Remove definitions.
36979
36980 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36981
36982         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36983         to create a register in testing mode.
36984
36985 2015-03-03  Martin Liska  <mliska@suse.cz>
36986             Jan Hubicka  <hubicka@ucw.cz>
36987
36988         PR ipa/65263
36989         * cgraph.c (cgraph_node::has_thunk_p): New function.
36990         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36991         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36992         (sem_function::merge): Assert is changed.
36993
36994 2015-03-03  Martin Liska  <mliska@suse.cz>
36995             Martin Jambor  <mjambor@suse.cz>
36996
36997         PR ipa/65087
36998         * ipa-icf.c (sem_item_optimizer::execute): Change function
36999         return value to boolean.
37000         (sem_item_optimizer::merge_classes): Likewise.
37001         (ipa_icf_driver): Return TODO_remove_functions in case there's
37002         a merge operation processed.
37003         * ipa-icf.h: Change function return value to boolean.
37004
37005 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
37006
37007         PR 65138/target
37008         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37009         processor type for 64-bit little endian PowerPC.
37010
37011         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37012         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
37013         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
37014         printing built-in mask so it does not pass NULL pointers.
37015
37016         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37017         -mcpu=powerpc64le.
37018
37019 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
37020
37021         PR target/58158
37022         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37023         !ISA_HAS_FP_CONDMOVE.
37024
37025 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
37026
37027         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37028         reload_completed.
37029
37030 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
37031
37032         * doc/invoke.texi (Options for Code Generation Conventions):
37033         Fix URL of DSO paper.
37034
37035 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37036
37037         PR ipa/65130
37038         * ipa-inline.c (check_callers): Looks for recursion.
37039         (inline_to_all_callers): Give up on uninlinable or recursive edges.
37040         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37041         summary of inline clones.
37042         (do_estimate_growth_1): Fix recursion check.
37043
37044 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37045
37046         PR ipa/64988
37047         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37048         comdat groups.
37049
37050 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37051             Aldy Hernandez  <aldyh@redhat.com>
37052
37053         PR lto/65276
37054         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37055         when checking TYPE_BINFO.
37056
37057 2015-03-02  Richard Biener  <rguenther@suse.de>
37058
37059         PR ipa/65270
37060         * ipa-icf-gimple.c: Include builtins.h.
37061         (func_checker::compare_memory_operand): Compare base alignment.
37062
37063 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37064
37065         PR target/65184
37066         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37067         passed by reference.
37068
37069 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37070
37071         PR target/65183
37072         * tree-chkp.c (chkp_check_lower): Don't check against
37073         zero bounds for already instrumented functions.
37074         (chkp_check_upper): Likewise.
37075         (chkp_fini): Clean pass local data to avoid wrong reusage.
37076
37077 2015-02-28  Martin Liska  <mliska@suse.cz>
37078             Jan Hubicka  <hubicka@ucw.cz>
37079
37080         * ipa-icf.c (sem_variable::equals): Improve debug output;
37081         get variable constructor.
37082         (sem_variable::parse): Do not filter out too early; give up on
37083         volatile and register vars.
37084         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37085         variables.
37086         * ipa-icf.h (sem_variable::init): Do not set ctor.
37087         (sem_variable::ctor): Remove.
37088
37089 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
37090
37091         PR middle-end/65233
37092         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37093
37094 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37095
37096         * ipa-icf.c: Include stor-layout.h
37097         (sem_function::compare_cgraph_references): Rename to ...
37098         (sem_item::compare_cgraph_references): ... this one.
37099         (sem_variable::equals_wpa): New function
37100         (sem_variable::equals): Do not check stuff already verified by
37101         equals_wpa.
37102         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37103         * ipa-icf.h (sem_item): Add compare_cgraph_references.
37104         (sem_function): Remove compare_cgraph_references.
37105         (sem_variable): Turns equals_wpa into non-inline.
37106
37107 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37108
37109         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37110         (sem_item::add_expr): New function.
37111         (sem_function::hash_stmt): Handle operands of most statements.
37112         (sem_variable::get_hash): Hash the actual constructor.
37113         * ipa-icf.h (sem_item): Add add_expr.
37114         (sem_function): Update prototype of hash_stmt
37115
37116 2015-02-28  Martin Liska  <mliska@suse.cz>
37117             Jan Hubicka  <hubicka@ucw.cz>
37118
37119         PR ipa/65245
37120         * ipa-icf-gimple.c (func_checker::compare_function_decl):
37121         Remove.
37122         (func_checker::compare_variable_decl): Skip symtab vars.
37123         (func_checker::compare_cst_or_decl): Update.
37124         * ipa-icf.c (sem_function::parse): Do not consider aliases.
37125         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37126         use correct symtab predicates.
37127         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37128         (sem_variable::parse):  Update comment.
37129         (sem_item_optimizer::build_graph): Consider ultimate aliases
37130         for references.
37131
37132 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37133
37134         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37135         of OBJ_TYPE_REF.
37136
37137 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37138
37139         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37140         (sem_variable::merge) Likewise.
37141
37142 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37143
37144         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37145         target; also match flag_ipa_devirt.
37146
37147 2015-03-01  Martin Liska  <mliska@suse.cz>
37148             Jan Hubicka  <hubicka@ucw.cz>
37149
37150         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37151         Validate variable alignment.
37152         * ipa-icf.c (sem_function::equals_private): Be more precise
37153         about non-common function attributes.
37154         (sem_variable::equals): Likewise.
37155
37156 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37157
37158         PR ipa/65237
37159         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37160         across COMDAT group boundary.
37161
37162 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37163
37164         PR ipa/65232
37165         * ipa-icf.c (clear_decl_rtl): New function.
37166         (sem_function::merge): Clear RTL before forming alias.
37167         (sem_variable::merge): Clear RTL before forming alias.
37168
37169 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37170
37171         PR ipa/65236
37172         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37173
37174 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
37175
37176         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37177         to neon_to_gp<q>.
37178
37179 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37180
37181         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37182         a typo in the description.
37183
37184 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37185
37186         PR target/64317
37187         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37188         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37189         * lra-constraints.c: Include "params.h".
37190         (EBB_PROBABILITY_CUTOFF): Use
37191         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37192         (lra_inheritance): Use '<' instead of '<=' for
37193         EBB_PROBABILITY_CUTOFF.
37194         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37195         Document change.
37196
37197 2015-02-27  Martin Liska  <mliska@suse.cz>
37198
37199         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37200         vector length condition.
37201
37202 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
37203
37204         * doc/extend.texi (x86 transactional memory intrinsics):
37205         Reorganize discussion of _xbegin.  Clarify that the return
37206         value is a bit mask.  Expand example and move to end of section.
37207
37208 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37209             Aldy Hernandez  <aldyh@redhat.com>
37210
37211         PR rtl-optimization/65220
37212         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37213
37214 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37215
37216         PR target/65032
37217         * lra-remat.c (update_scratch_ops): New.
37218         (do_remat): Call it.
37219         * lra.c (lra_register_new_scratch_op): New. Take code from ...
37220         (remove_scratches): ... here.
37221         * lra-int.h (lra_register_new_scratch_op): New prototype.
37222
37223 2015-02-27  Marek Polacek  <polacek@redhat.com>
37224
37225         PR c/65040
37226         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37227         -Wformat-signedness anymore.
37228
37229 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37230
37231         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37232         function.
37233         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37234
37235 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37236
37237         * config/s390/s390.c (enum s390_builtin):
37238         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37239         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37240         (s390_init_builtins): Generate new builtin functions.
37241         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37242         (s390_sfpc, s390_efpc): New pattern definitions.
37243
37244 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37245
37246         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37247         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37248         (s390_builtin_decls): New array.
37249         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37250         (s390_builtin_decl): New function.
37251         (TARGET_BUILTIN_DECL): Define macro.
37252
37253 2015-02-27  Richard Biener  <rguenther@suse.de>
37254
37255         PR middle-end/63175
37256         * builtins.c (get_object_alignment_2): Make sure to re-apply
37257         the ANDed mask after recursing to its operand gets us a new
37258         misalignment bit position.
37259
37260 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
37261             Martin Liska  <mliska@suse.cz>
37262
37263         PR bootstrap/65150
37264         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37265         Use address_matters_p.
37266         (redirect_all_callers, set_addressable): New functions.
37267         (sem_function::merge): Reorganize and fix merging issues.
37268         (sem_variable::merge): Likewise.
37269         (sem_variable::compare_sections): Remove.
37270         * common.opt (fmerge-all-constants, fmerge-constants): Remove
37271         Optimization flag.
37272         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37273         redirect them.
37274         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37275         decl is used.
37276         (address_matters_1): New function.
37277         (symtab_node::address_matters_p): New function.
37278         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37279         check for merged flag.
37280         * cgraph.h (address_matters_p): Declare.
37281         (symtab_node::address_taken_from_non_vtable_p): Remove.
37282         (symtab_node::address_can_be_compared_p): New method.
37283         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37284         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37285         Remove.
37286         (comdat_can_be_unshared_p_1) Use address_matters_p.
37287         (update_vtable_references): Fix formating.
37288         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37289         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37290         * cgraphclones.c: Preserve merged and icf_merged flags.
37291
37292 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
37293
37294         * doc/extend.texi (Function Attributes): Fix spelling and typos.
37295         (Label Attributes): Likewise.
37296         (Cilk Plus Builtins): Likewise.
37297         (ARC SIMD Built-in Functions): Likewise.
37298         (ARM C Language Extensions (ACLE)): Likewise.
37299         (PowerPC Built-in Functions): Likewise.
37300         (PowerPC Hardware Transactional Memory Built-in Functions):
37301         Likewise.
37302
37303 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37304
37305         PR tree-optimization/65216
37306         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37307         new stmt and new SSA_NAME for lhs whenever the arguments have
37308         changed and weren't just swapped.  Fix comment typo.
37309
37310         PR tree-optimization/65215
37311         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37312         for PDP endian targets.
37313         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37314         Fix up formatting issues.
37315         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
37316         size is smaller than the original, adjust MEM_REF offset by the
37317         difference of sizes.  Use is_gimple_mem_ref_addr instead of
37318         is_gimple_min_invariant test to avoid adding address temporaries.
37319
37320 2015-02-26  Martin Liska  <mliska@suse.cz>
37321             Jan Hubicka  <hubicka@ucw.cz>
37322
37323         PR ipa/64693
37324         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37325         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37326         (sem_item_optimizer::process_cong_reduction): Include division by
37327         sensitive references.
37328         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37329         * ipa-ref.c (ipa_ref::address_matters_p): New function.
37330         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37331
37332 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
37333
37334         PR target/65192
37335         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37336         Remove.
37337         * config/avr/avr.c: Same.
37338         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37339         Refuse any constant address not in 0..0xbf.
37340         * config/avr/avr.md (*mov<mode>, *movsf): Remove
37341         tiny_valid_direct_memory_access_range from insn conditions.
37342         (mov<mode>): Don't special-case expansion of avrtiny addresses.
37343
37344 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
37345
37346         PR target/61142
37347         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37348         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37349         * config/sh/predicates.md (const_logical_operand): New predicate.
37350         * config/sh/sh.md: Add new peephole2 patterns.
37351
37352 2015-02-26  Marek Polacek  <polacek@redhat.com>
37353
37354         PR ipa/65008
37355         * ipa-inline.c (early_inliner): Recompute inline parameters.
37356
37357 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37358
37359         PR target/65171
37360         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37361         instructions with TImode operands are included in the analysis.
37362
37363 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37364
37365         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37366         of an EDGE_FSM_THREAD.
37367
37368 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37369
37370         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37371
37372 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
37373
37374         PR debug/46102
37375         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37376
37377 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37378
37379         PR tree-optimization/65048
37380         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37381         (thread_through_all_blocks): Call valid_jump_thread_path.
37382         Remove invalid FSM jump-thread paths.
37383
37384 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37385
37386         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37387         (ipa_write_optimization_summaries): Likewise.
37388         * tree-streamer.h: Include data-streamer.h.
37389         (streamer_mode_table): Declare extern variable.
37390         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37391         * lto-streamer-out.c (lto_output_init_mode_table,
37392         lto_write_mode_table): New functions.
37393         (produce_asm_for_decls): Call lto_write_mode_table when streaming
37394         offloading LTO.
37395         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37396         (lto_create_simple_input_block): Add mode_table argument to the
37397         lto_input_block constructors.
37398         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37399         Likewise.
37400         * data-streamer-in.c (string_for_index): Likewise.
37401         * ipa-inline-analysis.c (inline_read_section): Likewise.
37402         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37403         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37404         * lto-streamer-in.c (lto_read_body_or_constructor,
37405         lto_input_toplevel_asms): Likewise.
37406         (lto_input_mode_table): New function.
37407         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37408         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37409         Use bp_pack_machine_mode.
37410         * real.h (struct real_format): Add name field.
37411         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37412         (class lto_input_block): Add mode_table member.
37413         (lto_input_block::lto_input_block): Add mode_table_ argument,
37414         initialize mode_table.
37415         (struct lto_file_decl_data): Add mode_table field.
37416         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37417         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37418         unpack_ts_decl_common_value_fields,
37419         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37420         * tree-streamer.c (streamer_mode_table): New variable.
37421         * real.c (ieee_single_format, mips_single_format,
37422         motorola_single_format, spu_single_format, ieee_double_format,
37423         mips_double_format, motorola_double_format,
37424         ieee_extended_motorola_format, ieee_extended_intel_96_format,
37425         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37426         ibm_extended_format, mips_extended_format, ieee_quad_format,
37427         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37428         decimal_single_format, decimal_double_format, decimal_quad_format,
37429         ieee_half_format, arm_half_format, real_internal_format): Add name
37430         field.
37431         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37432
37433 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
37434
37435         PR target/65161
37436         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37437         reordering for selective scheduling.
37438
37439 2015-02-26  Terry Guo  <terry.guo@arm.com>
37440
37441         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37442         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37443         (arm_arch_no_volatile_ce): Declare new global variable.
37444         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37445         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37446         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37447         (TARGET_NO_VOLATILE_CE): New macro.
37448         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37449         volatile memory access in IT block
37450
37451 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37452
37453         PR tree-optimization/61917
37454         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37455         that reduc_def_stmt is null.
37456
37457 2015-02-25  Martin Liska  <mliska@suse.cz>
37458
37459         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37460         hard register variables.
37461
37462 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37463
37464         PR target/64212
37465         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37466         (symtab::noninterposable_alias): Likewise.
37467
37468 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
37469
37470         PR target/65167
37471         * config/i386/i386.c (ix86_function_arg_regno_p): Support
37472         bounds registers.
37473         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37474
37475 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
37476
37477         PR target/64997
37478         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37479         as split condition; force split via '#' in output pattern.
37480
37481 2015-02-25  Richard Biener  <rguenther@suse.de>
37482             Kai Tietz  <ktietz@redhat.com>
37483
37484         PR tree-optimization/61917
37485         * tree-vect-loop.c (vectorizable_reduction): Allow
37486         vect_internal_def without reduction to exit graceful.
37487
37488 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37489
37490         PR target/65196
37491         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37492         only with NONDEBUG_INSN_P.
37493
37494 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37495
37496         Use variadic macros with avr-log.c.
37497
37498         * config/avr/avr-protos.h (avr_vdump): New prototype.
37499         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37500         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37501         * config/avr/avr-log.c: Adjust comments.
37502         (avr_vdump): New function.
37503         (avr_vadump): Pass caller as 2nd argument instead of format string.
37504         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37505         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37506
37507 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
37508
37509         PR lto/64374
37510         * target.def (target_option_stream_in): New target hook.
37511         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37512         targetm.target_option.post_stream_in if non-NULL.
37513         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37514         * doc/tm.texi: Updated.
37515         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37516         function.
37517         (TARGET_OPTION_POST_STREAM_IN): Redefine.
37518
37519 2015-02-24  Jeff Law  <law@redhat.com>
37520
37521         PR target/65117
37522         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37523         of operand 0 and operand 2.
37524         (zero_cost_loop_end, loop_end): Similarly.
37525
37526 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
37527
37528         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37529         CXX_MEM_STAT_INFO.
37530
37531 2015-02-24  DJ Delorie  <dj@redhat.com>
37532
37533         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37534         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37535         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37536         instead of hardcoding SImode.
37537
37538 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
37539
37540         * omp-low.c (create_omp_child_function): Tag entrypoint
37541         functions with a special attribute.
37542
37543 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37544
37545         PR target/65058
37546         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37547
37548 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
37549
37550         PR rtl-optimization/65123
37551         * lra-remat.c (operand_to_remat): Check hard regs in insn
37552         definition too.
37553
37554 2015-02-24  Nick Clifton  <nickc@redhat.com>
37555
37556         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37557         to the assembler.
37558
37559 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
37560
37561         PR libgomp/64625
37562         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37563         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37564         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37565         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37566         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37567         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37568         (BUILT_IN_GOACC_PARALLEL): Specify as
37569         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37570         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37571         * builtin-types.def
37572         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37573         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37574         Remove function types.
37575         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37576         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37577         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37578         New function types.
37579
37580 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
37581
37582         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37583
37584 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
37585
37586         PR tree-optimization/65170
37587         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37588         if val[1] < 0, clear also val[2] and return 3.
37589
37590 2015-02-24  Alan Modra  <amodra@gmail.com>
37591
37592         PR target/65172
37593         * config/rs6000/rs6000.c (get_memref_parts): Only return true
37594         when *base is a reg.  Handle nested plus addresses.  Simplify
37595         pre_modify test.
37596
37597 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
37598
37599         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37600         use natural alignment when optimizing for size.
37601
37602 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
37603
37604         PR target/65153
37605         * config/sh/sh.md (movsicc_true+3): Remove peephole.
37606         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37607         * config/sh/sh.c (replace_n_hard_rtx): Remove.
37608
37609 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
37610
37611         PR fortran/63427
37612         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37613         too big for a wide_int.  Implement missing wrapping operation.
37614
37615 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
37616
37617         PR target/65163
37618         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37619         instead of const_int 4294901760.
37620
37621 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
37622
37623         * config/avr/t-avr: Fix typo in comment.
37624
37625 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
37626
37627         * doc/rtl.texi (fma): Clarify documentation.
37628
37629 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
37630
37631         PR debug/58123
37632         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37633         over input_location.
37634
37635 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37636
37637         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37638         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37639         restrict alignments to absolute_biggest_alignment.
37640         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37641         Define.
37642         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37643         * doc/tm.texi: Regenerate.
37644         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37645
37646 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
37647
37648         PR target/64172
37649         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37650
37651 2015-02-20  Richard Biener  <rguenther@suse.de>
37652
37653         PR tree-optimization/65136
37654         * tree-ssa-propagate.c: Include cfgloop.h.
37655         (replace_phi_args_in): Avoid replacing loop latch edge PHI
37656         arguments with constants.
37657
37658 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
37659             Martin Liska  <mliska@suse.cz>
37660
37661         PR target/63892
37662         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37663         don't try to create_thunk if stdarg_p.  If
37664         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37665         redirect_callers if possible.
37666         (sem_item_optimizer::execute): Call unregister_hooks here...
37667         (ipa_icf_driver): ... instead of here.
37668
37669 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37670
37671         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37672         Mark operand 0 as earlyclobber in 2nd alternative.
37673         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37674         Write negated shift amount into QI lowpart operand 0 and use it
37675         in the shift step.
37676         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37677
37678 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37679
37680         * cgraph.h (clone_function_name_1): Declare.
37681         * cgraphclones.c (clone_function_name_1): New function.
37682         (clone_function_name): Use it.
37683         * lto-partition.c: Include "stringpool.h".
37684         (must_not_rename, maybe_rewrite_identifier)
37685         (validize_symbol_for_target): New static functions.
37686         (privatize_symbol_name): Use must_not_rename.
37687         (promote_symbol): Call validize_symbol_for_target.
37688         (lto_promote_cross_file_statics): Likewise.
37689         (lto_promote_statics_nonwpa): Likewise.
37690
37691 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
37692
37693         PR target/64452
37694         * config/avr/avr.md (pushhi_insn): New insn.
37695         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37696
37697 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37698             Jakub Jelinek  <jakub@redhat.com>
37699
37700         * tree-streamer.c (preload_common_nodes): Don't preload
37701         TI_VA_LIST* for offloading.
37702         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37703         in_lto_p.
37704
37705 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
37706
37707         * config/pa/pa.c (pa_emit_move_sequence): Always force
37708         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
37709         note on insn.
37710
37711         * config/pa/pa.c (pa_reloc_rw_mask): New function.
37712         (TARGET_ASM_RELOC_RW_MASK): Define.
37713         (pa_cannot_force_const_mem): Revert previous change.
37714
37715 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
37716             Jan Hubicka  <hubicka@ucw.cz>
37717
37718         PR ipa/65028
37719         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37720         across jump functions.
37721
37722 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
37723
37724         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37725
37726 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
37727
37728         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37729
37730 2015-02-19  Richard Henderson  <rth@redhat.com>
37731
37732         PR middle-end/65074
37733         * varasm.c (default_binds_local_p_2): Don't test node->definition;
37734         test DECL_EXTERNAL independent of symtab_node.
37735
37736 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
37737
37738         PR lto/65012
37739         * varpool.c (varpool_node::get_constructor): Return early
37740         if this->lto_file_data is NULL.
37741
37742 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37743
37744         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37745         (rank_for_schedule_debug): Update.
37746         (ready_sort): Make static.  Move sorting logic to ...
37747         (ready_sort_debug, ready_sort_real): New static functions.
37748         (schedule_block): Sort both debug insns and real insns in preparation
37749         for ready list trimming.  Improve debug output.
37750         * sched-int.h (ready_sort): Remove global declaration.
37751
37752 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
37753
37754         * ipa-icf.c (sem_function::equals_private): Adjust.
37755         (sem_function::bb_dict_test): Take a vec<int> * instead of
37756         auto_vec<int>.
37757         * ipa-icf.h (bb_dict_test): Likewise.
37758
37759 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37760
37761         PR gcov-profile/64634
37762         * tree-eh.c (frob_into_branch_around): Fix up typos
37763         in function comment.
37764         (lower_catch): Put eh_seq resulting from EH lowering of
37765         the cleanup sequence after the cleanup rather than before it.
37766
37767 2015-02-18  Tom de Vries  <tom@codesourcery.com>
37768
37769         * common.opt (fstdarg-opt): New option.
37770         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37771         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37772         (@item -fstdarg-opt): New item.
37773
37774 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
37775
37776         PR target/65064
37777         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37778         for common symbols.
37779
37780 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37781
37782         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37783         insn-modes.h.
37784         (ALL_HOST_OBJS): Add mkoffload.o.
37785         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37786
37787 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
37788
37789         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37790         (compare_virtual_tables): Be smarter about skipping typeinfos;
37791         do sane output on virtual table table mismatch.
37792         (warn_odr): Be ready for forward declarations of enums;
37793         output sane info on base mismatch and virtual table mismatch.
37794         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37795         when only one type is polymorphic.
37796         (get_odr_type): Fix hashtable corruption.
37797         (dump_odr_type): Dump mangled names.
37798
37799 2015-02-18  Richard Biener  <rguenther@suse.de>
37800
37801         PR tree-optimization/65063
37802         * tree-predcom.c (determine_unroll_factor): Return 1 if we
37803         have replaced looparound PHIs.
37804
37805 2015-02-18  Martin Liska  <mliska@suse.cz>
37806
37807         * lto-streamer.c (lto_streamer_init): Encapsulate
37808         streamer_check_handled_ts_structures with checking macro.
37809
37810 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37811
37812         PR ipa/65087
37813         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37814         section if !implicit_section.
37815         (cgraph_node::create_version_clone_with_body): Likewise.
37816         * trans-mem.c (ipa_tm_create_version): Likewise.
37817
37818 2015-02-18  Richard Biener  <rguenther@suse.de>
37819
37820         PR tree-optimization/62217
37821         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37822         into BIVs.
37823
37824 2015-02-18  Marek Polacek  <polacek@redhat.com>
37825
37826         PR sanitizer/65081
37827         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37828         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37829         is in range [-16K, -1].  Don't issue run-time error if
37830         (ptr > ptr + offset).
37831
37832 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
37833
37834         * doc/install.texi (nvptx-*-none): New section.
37835         * doc/invoke.texi (Nvidia PTX Options): Likewise.
37836         * config/nvptx/nvptx.opt: Update.
37837
37838         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37839         (access_check): New functions, copied from
37840         config/i386/intelmic-mkoffload.c.
37841         (main): For non-installed testing, look in all COMPILER_PATHs for
37842         GCC_INSTALL_NAME.
37843
37844         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37845
37846 2015-02-18  Andrew Pinski  <apinski@cavium.com>
37847             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37848
37849         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37850         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37851
37852 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37853
37854         * ipa-visibility.c (function_and_variable_visibility): Only
37855         check locality if node is not already local.
37856         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37857         call_for_symbol_and_aliases instead of
37858         call_for_symbol_thunks_and_aliases.
37859         (ipa_inline): Likewise.
37860         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37861         first walk aliases.
37862         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37863         call_for_symbol_and_aliases.
37864         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37865         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37866         (ipa_propagate_frequency): Update.
37867         (ipa_profile): Add opt_for_fn gueards.
37868
37869 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37870
37871         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37872         * doc/invoke.texi (SH options): Document it.
37873         * config/sh/sh.c (sh_insn_length_adjustment): Check
37874         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37875
37876 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
37877
37878         * common.opt (fipa-cp-alignment): New.
37879         * ipa-cp.c (ipcp_store_alignment_results): Check
37880         flag_ipa_cp_alignment.
37881         * opts.c (default_options_table): Enable -fipa-cp-alignment for
37882         -O2.
37883         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37884         * doc/invoke.texi: Document -fipa-cp-alignment.
37885
37886 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37887
37888         PR target/64793
37889         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37890         to nil.  Adjust comments.
37891
37892 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37893
37894         * ipa-visibility.c (function_and_variable_visibility): Only
37895         check locality if node is not already local.
37896         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37897         call_for_symbol_and_aliases instead of
37898         call_for_symbol_thunks_and_aliases.
37899         (ipa_inline): Likewise.
37900         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37901         first walk aliases.
37902         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37903         call_for_symbol_and_aliases.
37904         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37905         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37906         (ipa_propagate_frequency): Update.
37907         (ipa_profile): Add opt_for_fn guards.
37908
37909 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
37910
37911         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37912         skipping of "strange" tokens.
37913
37914 2015-02-17  Jeff Law  <law@redhat.com>
37915
37916         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
37917         obsolete comment.
37918
37919 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
37920
37921         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37922         as forcing a HARD_DEP between instructions, thereby
37923         disallowing rewriting to break dependencies.
37924
37925 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37926
37927         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37928         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37929         variables in boundary that have no inlitalizer encoded and are
37930         not aliases.
37931         * varasm.c (default_binds_local_p_2): External definitions do not
37932         count as definitions here.
37933
37934 2015-02-16  Jeff Law  <law@redhat.com>
37935
37936         PR tree-optimization/64823
37937         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37938         statements.
37939         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37940         threading through blocks with PHIs, but no statements.
37941         (thread_through_normal_block): Distinguish between blocks where
37942         we did not process all the statements and blocks with no statements.
37943
37944 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
37945             James Greenhalgh  <james.greenhalgh@arm.com>
37946
37947         PR ipa/64963
37948         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37949         section if not linkonce.  Fix up formatting.
37950         (cgraph_node::create_version_clone_with_body): Copy section.
37951         * trans-mem.c (ipa_tm_create_version): Likewise.
37952
37953 2015-02-16  Richard Biener  <rguenther@suse.de>
37954
37955         PR tree-optimization/65077
37956         * tree-ssa-structalias.c (get_constraint_for_1): Handle
37957         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37958         (find_func_aliases): Allow float values to carry pointers again.
37959
37960 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
37961
37962         * doc/install.texi (Specific): Reorder targets list to put
37963         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
37964         from the top menu.
37965
37966 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
37967             David Edelsohn  <dje.gcc@gmail.com>
37968
37969         PR target/65058
37970         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37971         mapping class to external variable or function reference.
37972         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37973         mapping class.
37974
37975 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
37976
37977         PR target/53348
37978         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37979         ASM_WEAKEN_DECL if defined.
37980
37981 2015-02-16  Richard Biener  <rguenther@suse.de>
37982
37983         PR lto/65015
37984         * varasm.c (default_file_start): For LTO produced units
37985         emit <artificial> as file directive.
37986
37987 2015-02-16  Richard Biener  <rguenther@suse.de>
37988
37989         PR tree-optimization/63593
37990         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37991         stmts and releasing SSA names until...
37992         (execute_pred_commoning): ... after processing all chains.
37993
37994 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37995
37996         PR ipa/65059
37997         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37998         external functions.
37999
38000 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
38001
38002         * doc/bugreport.texi: Adjust section titles throughout the file
38003         to use "Title Case".
38004         * doc/extend.texi: Likewise.
38005         * doc/gcov.texi: Likewise.
38006         * doc/implement-c.texi: Likewise.
38007         * doc/implement-cxx.texi: Likewise.
38008         * doc/invoke.texi: Likewise.
38009         * doc/objc.texi: Likewise.
38010         * doc/standards.texi: Likewise.
38011         * doc/trouble.texi: Likewise.
38012
38013 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
38014
38015         * cgraph.h (symtab_node::has_aliases_p): Simplify.
38016         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38017         * tree.c (lookup_binfo_at_offset): Make static.
38018         (get_binfo_at_offset): Do not shadow offset; add explanatory
38019         comment.
38020
38021 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
38022
38023         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38024         for all floading point loads and stores except those using a register
38025         index address.
38026         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38027         to a register.
38028
38029 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38030
38031         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38032         (do_estimate_growth_1): Record if any uninlinable edge was seen.
38033         (estimate_growth): Handle uninlinable edges correctly.
38034         (check_callers): New.
38035         (growth_likely_positive): Handle aliases correctly.
38036
38037 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38038
38039         * ipa-chkp.c: Use iterate_direct_aliases.
38040         * symtab.c (resolution_used_from_other_file_p): Move inline.
38041         (symtab_node::create_reference): Fix formating.
38042         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38043         (symtab_node::iterate_reference): Move inline.
38044         (symtab_node::iterate_referring): Move inline.
38045         (symtab_node::iterate_direct_aliases): Move inline.
38046         (symtab_node::used_from_object_file_p_worker): Inline into ...
38047         (symtab_node::used_from_object_file_p): ... this one; move inline.
38048         (symtab_node::call_for_symbol_and_aliases): Move inline;
38049         use iterate_direct_aliases.
38050         (symtab_node::call_for_symbol_and_aliases_1): New method.
38051         (cgraph_node::call_for_symbol_and_aliases): Move inline;
38052         use iterate_direct_aliases.
38053         (cgraph_node::call_for_symbol_and_aliases_1): New method.
38054         (varpool_node::call_for_node_and_aliases): Rename to ...
38055         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38056         use iterate_direct_aliases.
38057         (varpool_node::call_for_symbol_and_aliases_1): New method.
38058         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38059         (ipa_discover_readonly_nonaddressable_var): Update.
38060         * ipa-devirt.c: Fix formating.
38061         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38062         Move inline.
38063         (cgraph_node::call_for_symbol_and_aliases): Move inline.
38064         (cgraph_node::call_for_symbol_and_aliases_1): New function..
38065         * cgraph.h (used_from_object_file_p_worker): Remove.
38066         (resolution_used_from_other_file_p): Move inline.
38067         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38068         (symtab_node::iterate_reference): Move inline.
38069         (symtab_node::iterate_referring): Move inline.
38070         (symtab_node::iterate_direct_aliases): Move inline.
38071         (symtab_node::used_from_object_file_p_worker): Inline into ...
38072         (symtab_node::used_from_object_file_p): Move inline.
38073         * tree-emutls.c (ipa_lower_emutls): Update.
38074         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38075         (varpool_node::call_for_node_and_aliases): Remove.
38076
38077 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
38078
38079         PR tree-optimization/62209
38080         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38081         op == range->exp, insert seq and gimplified code after labels
38082         instead of after the phi.
38083
38084 2015-02-13  Jeff Law  <law@redhat.com>
38085
38086         PR bootstrap/65060
38087         Revert my change for tree-optimization/64823.
38088
38089 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38090
38091         PR tree-optimization/65053
38092         * tree-ssa-phiopt.c (value_replacement): When moving assign before
38093         cond, either reset VR on lhs or set it to phi result VR.
38094
38095 2015-02-13  Jeff Law  <law@redhat.com>
38096
38097         PR tree-optimization/64823
38098         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38099         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38100         threading through blocks with PHIs, but no statements.
38101         (thread_through_normal_block): Distinguish between blocks where
38102         we did not process all the statements and blocks with no statements.
38103
38104         PR rtl-optimization/47477
38105         * match.pd (convert (plus/minus (convert @0) (convert @1): New
38106         simplifier to narrow arithmetic.
38107
38108 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
38109
38110         PR ipa/65028
38111         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38112         polymorphic call info when type is not known to be preserved.
38113
38114 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
38115
38116         PR ipa/65028
38117         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38118         (inline_call): Use it.
38119
38120 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
38121
38122         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38123         GOMP_DEVICE_NVIDIA_PTX.
38124
38125 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38126
38127         PR ipa/65034
38128         * stmt.c (emit_case_nodes): Use void_type_node instead of
38129         NULL_TREE as LABEL_DECL type.
38130
38131 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
38132
38133         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38134         constraints.
38135         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38136         symbolic references to data to be forced to constant memory on the
38137         SOM target.
38138
38139 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
38140
38141         PR tree-optimization/65002
38142         * tree-cfg.c (pass_data_fixup_cfg): Don't update
38143         SSA on start.
38144         * tree-sra.c (some_callers_have_no_vuse_p): New.
38145         (ipa_early_sra): Reject functions whose callers
38146         assume function is read only.
38147
38148 2015-02-13  Richard Biener  <rguenther@suse.de>
38149
38150         PR lto/65015
38151         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38152         for LTO produced CUs.
38153
38154 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
38155
38156         PR tree-optimization/64705
38157         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38158         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38159         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38160         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38161         expand_simple_operations.
38162
38163 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
38164             Richard Henderson  <rth@redhat.com>
38165
38166         PR rtl/32219
38167         * cgraphunit.c (cgraph_node::finalize_function): Set definition
38168         before notice_global_symbol.
38169         (varpool_node::finalize_decl): Likewise.
38170         * varasm.c (default_binds_local_p_2): Rename from
38171         default_binds_local_p_1, add weak_dominate argument.  Use direct
38172         returns instead of assigning to local variable.  Unify varpool and
38173         cgraph paths via symtab_node.  Reject undef weak variables before
38174         testing visibility.  Reorder tests for simplicity.
38175         (default_binds_local_p): Use default_binds_local_p_2.
38176         (default_binds_local_p_1): Likewise.
38177         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38178         via symtab_node.
38179         (default_elf_asm_output_external): Emit visibility when specified.
38180
38181 2015-02-13  Alan Modra  <amodra@gmail.com>
38182
38183         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38184         code setting up r11 for out-of-line fp restore.
38185
38186 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
38187
38188         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38189         (muser-mode): Likewise.
38190
38191 2015-02-13  Alan Modra  <amodra@gmail.com>
38192
38193         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38194         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38195
38196 2015-02-12  David Howells  <dhowells@redhat.com>
38197
38198         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38199         warning.
38200         * tree-ssa-uninit.c (dump_predicates): Likewise.
38201         * opts.c (print_filtered_help): Likewise.
38202
38203 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38204
38205         * dwarf2out.c (output_die): Use "%s", name instead of name to
38206         avoid -Wformat-security warning.
38207
38208         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38209         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38210         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38211         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38212
38213 2015-02-12  Jason Merrill  <jason@redhat.com>
38214
38215         * common.opt (-flifetime-dse): New.
38216
38217 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38218
38219         PR sanitizer/65019
38220         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38221
38222         PR tree-optimization/65014
38223         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38224         use original second operand of arg0 or arg1 instead of
38225         that adjusted by STRIP_NOPS.
38226
38227 2015-02-11  Jeff Law  <law@redhat.com>
38228
38229         PR target/63347
38230         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38231         that needs to be queued, just queue it for a single cycle.
38232
38233 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
38234
38235         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38236         bodies of thunks; comment on why.
38237         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38238         symbols are extern.
38239
38240 2015-02-11  Richard Henderson  <rth@redhat.com>
38241
38242         PR sanitize/65000
38243         * tree-eh.c (mark_reachable_handlers): Mark source and destination
38244         regions of __builtin_eh_copy_values.
38245
38246 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38247
38248         PR middle-end/65003
38249         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38250         ultimate alias is MEM with SYMBOL_REF satisfying
38251         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
38252         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38253
38254 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
38255
38256         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38257         "diagnostic-core.h".
38258         (main): Initialize progname, and call diagnostic_initialize.
38259
38260         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38261         instead of __OPENMP_TARGET__.
38262
38263         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38264         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38265         hard-coding PTX_ID.
38266
38267 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
38268
38269         * doc/sourcebuild.texi (pie_enabled): Document.
38270
38271 2015-02-11  Martin Liska  <mliska@suse.cz>
38272
38273         PR ipa/64813
38274         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38275         a return value for call to a function that is noreturn.
38276
38277 2015-02-11  Richard Biener  <rguenther@suse.de>
38278
38279         PR lto/65015
38280         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38281         and -fresolution.
38282
38283 2015-02-11  Andrew Pinski  <apinski@cavium.com>
38284
38285         PR target/64893
38286         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38287         Change the first argument type to size_type_node and add another
38288         size_type_node.
38289         (aarch64_simd_expand_builtin): Handle the new argument to
38290         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38291         print an out when the first two arguments are not
38292         nonzero integer constants.
38293         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38294         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38295
38296 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38297
38298         PR target/61925
38299         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38300         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38301         (ix86_set_current_function): Rewritten.
38302         (ix86_add_new_builtins): Temporarily clear current_target_pragma
38303         when creating builtin fndecls.
38304
38305 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38306
38307         PR ipa/65005
38308         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38309         function.
38310         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38311         have no comdat group.
38312         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38313         (lto_output_varpool_node): Always output alias info.
38314         (output_refs): Output refs of boundary aliases, too.
38315         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38316         (output_symtab): Output call eges in thunks in boundary.
38317         (get_alias_symbol): Remove.
38318         (input_node, input_varpool_node): Do not special case weakrefs.
38319         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38320         alias and thunks targets in the boundary; do not take removed symbols
38321         from their comdat groups.
38322         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38323         (cgraph_node::global_info): Remove.
38324         (cgraph_node::rtl_info): Look through aliases and thunks.
38325         * cgrpah.h (global_info): Remove.
38326         (non_local_p): Remove.
38327
38328 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38329             Sandra Loosemore  <sandra@codesourcery.com>
38330
38331         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38332         to inline asm.  List dialects in proper order.
38333
38334 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38335             Sandra Loosemore  <sandra@codesourcery.com>
38336
38337         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38338
38339 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38340
38341         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38342         modified) reference to Solaris.
38343
38344 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
38345
38346         * doc/extend.texi (Extended Asm): Fix typos.
38347
38348 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
38349
38350         PR sanitizer/65004
38351         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38352
38353 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
38354
38355         PR target/64661
38356         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38357         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38358         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38359         * config/sh/constraints.md (Ara, Add): New constraints.
38360         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38361         predicates.
38362         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38363         atomic_mem_operand_0.  Don't use force_reg on the memory address.
38364         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38365         Sra constraint.  Convert to insn_and_split.  Add workaround for
38366         PR 64974.
38367         (atomic_compare_and_swap<mode>_hard): Copy to
38368         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
38369         Use atomic_mem_operand_0 predicate.
38370         (atomic_compare_and_swap<mode>_soft_gusa,
38371         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38372         AraAdd constraints.
38373         (atomic_compare_and_swap<mode>_soft_tcb,
38374         atomic_compare_and_swap<mode>_soft_imask,
38375         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38376         atomic_mem_operand_0 predicate and SraSdd constraints.
38377         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38378         constraint.
38379         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38380         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
38381         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38382         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
38383         force_reg on the memory address.
38384         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38385         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38386         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38387         atomic_mem_operand_1 predicate and Sra constraint.
38388         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38389         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38390         Use atomic_mem_operand_1 predicate.
38391         (atomic_<fetchop_name><mode>_hard): Copy to
38392         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38393         Use atomic_mem_operand_1 predicate.
38394         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38395         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38396         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
38397         insn_and_split.  Use atomic_mem_operand_1 predicate.
38398         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38399         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
38400         Use atomic_mem_operand_1 predicate.
38401         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38402         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38403         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38404         in generated insn with original mem operand before emitting the insn.
38405         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38406         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38407         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38408         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38409         Use atomic_mem_operand_1 predicate and AraAdd constraints.
38410         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38411         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38412         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38413         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38414         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38415         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38416         atomic_not_fetch<mode>_soft_tcb,
38417         atomic_<fetchop_name>_fetch<mode>_soft_imask,
38418         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38419         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38420         Use atomic_mem_operand_1 predicate and SraSdd constraints.
38421
38422 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
38423
38424         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38425         and 3 earlyclobber operands.
38426
38427 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38428
38429         * common.opt (fstack-reuse): Mark as optimization.
38430
38431 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38432
38433         PR ipa/64982
38434         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38435
38436 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
38437
38438         PR tree-optimization/64326
38439         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38440
38441 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
38442
38443         PR gcov-profile/61889
38444         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38445
38446 2015-02-10  Richard Biener  <rguenther@suse.de>
38447
38448         PR tree-optimization/64995
38449         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38450         value we use is final.
38451         (visit_reference_op_store): Always valueize op.
38452         (visit_use): Properly valueize vuses.
38453
38454 2015-02-10  Richard Biener  <rguenther@suse.de>
38455
38456         PR tree-optimization/64909
38457         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38458         pass a scalar-stmt count estimate to the cost model.
38459         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38460
38461 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
38462
38463         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38464         enabled by default together with var-tracking.
38465
38466 2015-02-10  Nick Clifton  <nickc@redhat.com>
38467
38468         * config/rl78/rl78.c: Remove DIV attribute code accidentally
38469         included in previous rl78 commit.
38470
38471 2015-02-10  Richard Biener  <rguenther@suse.de>
38472
38473         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38474         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38475         return the bitpack.
38476
38477 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38478
38479         PR gcov-profile/61889
38480         * config.in: regenerate.
38481         * configure.in: Likewise.
38482         * configure.ac: Check for ftw.h.
38483         * gcov-tool.c: Check for ftw.h before using nftw.
38484
38485 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38486
38487         PR lto/64076
38488         * ipa-visibility.c (update_visibility_by_resolution_info): Only
38489         assert when not in lto mode.
38490
38491 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
38492
38493         * ira-color.c (setup_left_conflict_sizes_p): Simplify
38494         initialization/assignment of conflict_size.
38495
38496 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
38497
38498         PR ipa/64978
38499         * ipa-cp.c (gather_caller_stats): Skip thunks.
38500         (propagate_constants_topo): Skip aliases.
38501
38502 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
38503
38504         PR target/64761
38505         * config/sh/sh.c (sh_option_override): Don't change
38506         -freorder-blocks-and-partition to -freorder-blocks even when
38507         unwinding is enabled.
38508         (sh_can_follow_jump): Return false if the followee jump is
38509         a crossing jump when -freorder-blocks-and-partition is specified.
38510         * config/sh/sh.md (*jump_compact_crossing): New insn.
38511
38512 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
38513             Kaz Kojima  <kkojima@gcc.gnu.org>
38514
38515         PR target/64761
38516         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38517         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38518         (sh_can_redirect_branch): Rename to ...
38519         (sh_can_follow_jump): ... this.  Constify argument types.
38520         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38521         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38522         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38523         * doc/tm.texi: Regenerate.
38524
38525 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38526
38527         PR sanitizer/64981
38528         * builtins.c (expand_builtin): Call targetm.expand_builtin
38529         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38530
38531 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38532
38533         PR ipa/61548
38534         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38535
38536 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38537
38538         PR ipa/63566
38539         * ipa-icf.c (set_local): New function.
38540         (sem_function::merge): Use it.
38541
38542 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38543
38544         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38545         (add_type_duplicate): Fix comparison of BINFOs.
38546
38547 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38548
38549         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38550         on getting VOID pointer.
38551
38552 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38553
38554         PR target/64979
38555         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38556         va_list escapes.
38557
38558 2015-02-09  Richard Biener  <rguenther@suse.de>
38559
38560         * genmatch.c (replace_id): Copy expr_type.
38561
38562 2015-02-09  Richard Biener  <rguenther@suse.de>
38563
38564         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38565         (streamer_write_tree_bitfields): Declare.
38566         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38567         properly unpack padding.
38568         (unpack_value_fields): Inline ...
38569         (streamer_read_tree_bitfields): ... here.
38570         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38571         and properly add padding bits.
38572         (streamer_pack_tree_bitfields): Fold into ...
38573         (streamer_write_tree_bitfields): ... this new function,
38574         exposing the bitpack object.
38575         * lto-streamer-out.c (lto_write_tree_1): Call
38576         streamer_write_tree_bitfields.
38577
38578 2015-02-09  Richard Biener  <rguenther@suse.de>
38579
38580         PR tree-optimization/54000
38581         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38582         (struct ivopts_data): Add loop_loc member.
38583         (tree_ssa_iv_optimize_loop): Dump loop location.
38584         (create_new_ivs): Likewise, also dump number of IVs generated.
38585
38586 2015-02-09  Martin Liska  <mliska@suse.cz>
38587
38588         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38589         just if not yet registered.
38590         (ipa_icf_generate_summary): Register callgraph hooks.
38591
38592 2015-02-08  Andrew Pinski  <apinski@cavium.com>
38593
38594         * config/aarch64/aarch64.c (gty_dummy): Delete.
38595
38596 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38597
38598         PR ipa/63566
38599         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38600         (cgraph_node::local_p): Remove thunk related FIXME.
38601
38602 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38603
38604         PR ipa/63566
38605         * i386.c (ix86_function_regparm): Look through aliases to see if callee
38606         is local and optimized.
38607         (ix86_function_sseregparm): Likewise; also use target's SSE math
38608         settings; error out instead of silently generating wrong code
38609         on mismatches.
38610         (init_cumulative_args): Look through aliases.
38611
38612 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38613
38614         PR ipa/63566
38615         * ipa-split.c (execute_split_functions): Split if function has aliases.
38616
38617 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38618
38619         PR ipa/63566
38620         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38621         aliases before trying to expand it.
38622         (cgraph_node::expand_thunk): Fix formating.
38623
38624 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
38625
38626         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38627         (Using Assembly Language with C): Expand introduction.
38628         (Basic Asm): Copy-edit.  Add more information about uses of
38629         basic asm.
38630         (Extended Asm): Copy-edit.  Document new escape syntax and
38631         %l[label] syntax.
38632         (Global Reg Vars): Copy-edit.
38633         (Local Reg Vars): Likewise.
38634
38635 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
38636
38637         PR debug/2714
38638         PR bootstrap/64256
38639         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38640         (DBX_CONTIN_CHAR): Define.
38641
38642 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
38643             Brian Rzycki  <b.rzycki@samsung.com>
38644
38645         PR tree-optimization/64878
38646         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38647         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38648         Stop recursion at loop phi nodes after having visited a loop phi node.
38649
38650 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38651
38652         * toplev.c (process_options): Change flag_ipa_ra before creating
38653         optimization_{default,current}_node.
38654
38655         PR ipa/64896
38656         * cgraphunit.c (cgraph_node::expand_thunk): If
38657         restype is not is_gimple_reg_type nor the thunk_fndecl
38658         returns aggregate_value_p, set restmp to a temporary variable
38659         instead of resdecl.
38660
38661 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
38662
38663         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38664
38665 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38666
38667         PR target/64205
38668         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38669         add a general secondary reload handler for SDmode, unless we have
38670         both read/write support for SDmode.
38671
38672 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38673
38674         PR middle-end/64937
38675         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38676         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38677         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38678         1 before, push it to abstract_vec.
38679         (dwarf2out_abstract_function): Adjust caller.  Don't call
38680         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38681         DECL_ABSTRACT_P flags for all abstract_vec elts.
38682
38683 2015-02-06  Renlin Li  <renlin.li@arm.com>
38684
38685         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38686         complex gimple.
38687         * tree-ssa.c (execute_update_addresses_taken): Likewise.
38688
38689 2015-02-06  Jeff Law  <law@redhat.com>
38690
38691         PR target/64889
38692         * config/h8300/h8300.c (push): New argument "in_prologue".
38693         Pass "in_prologue" along to "F".
38694         (h8300_push_pop): Corresponding changes.
38695         (h8300_expand_prologue): Likewise.
38696         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
38697
38698 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38699
38700         PR rtl-optimization/64957
38701         PR debug/64817
38702         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38703         IOR rather than for AND.
38704
38705 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
38706
38707         PR target/62631
38708         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38709         of shift-add and (add + shift) operations.  Rename local variable.
38710
38711 2015-02-05  Jeff Law  <law@redhat.com>
38712
38713         PR target/17306
38714         * config/h8300/constraints.md (U): Correctly dectect
38715         "eightbit_data" memory addresses.
38716         * config/h8300/h8300.c (eightbit_constant_address_p): Also
38717         handle (const (plus (symbol_ref (x)))) where x is declared
38718         as an 8-bit data memory address.
38719         * config/h8300/h8300.md (call, call_value): Correctly detect
38720         "funcvec" functions.
38721
38722         PR target/43264
38723         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38724         24 to 28 bits for the H8/300.
38725
38726 2015-02-06  Alan Modra  <amodra@gmail.com>
38727
38728         PR target/64876
38729         * config/rs6000/rs6000.c (chain_already_loaded): New function.
38730         (rs6000_call_aix): Use it.
38731
38732 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
38733
38734         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38735         check.
38736
38737 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
38738
38739         * config/h8300/constraints.md ("U" constraint): Use strict
38740         variant of REG_OK_FOR_BASE_P after reload has started.
38741
38742 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
38743
38744         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38745         define to zero if !TARGET_NEON.
38746         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38747
38748 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38749             Trevor Saunders  <tsaunders@mozilla.com>
38750
38751         PR ipa/61548
38752         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38753
38754 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38755
38756         PR ipa/61548
38757         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38758         when removing varpool nodes.
38759
38760 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38761
38762         PR ipa/61548
38763         * varpool.c (varpool_node::remove): Fix order of variables.
38764
38765 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38766
38767         PR ipa/64686
38768         * ipa-inline.c (inline_small_functions): Fix ordering issue between
38769         speculation resolution and key updates.
38770
38771 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38772
38773         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38774         about not letting any speculative edges unupdated.
38775
38776 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38777
38778         PR gcov/64123
38779         * gcov-io.c (gcov_var): Export.
38780
38781 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38782
38783         PR middle-end/64922
38784         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38785         edges that become speculative.
38786
38787 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38788
38789         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38790         or DW_LANG_Fortran08.
38791         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38792         DW_LANG_Fortran08.
38793         (gen_compile_unit_die): Handle "GNU Fortran2003" and
38794         "GNU Fortran2008" language strings.
38795         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38796         * langhooks.h (lang_GNU_Fortran): New prototype.
38797         * langhooks.c (lang_GNU_Fortran): New function.
38798         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38799         lang_GNU_Fortran.
38800
38801 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38802
38803         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38804         (RTX_OK_FOR_OLO10_P): Likewise.
38805
38806 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38807
38808         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38809
38810 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38811
38812         PR middle-end/64922
38813         * gimple.c: Include gimple-ssa.h.
38814         (maybe_remove_unused_call_args): New function.
38815         * gimple.h (maybe_remove_unused_call_args): Declare.
38816         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38817         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38818         * gimple-fold.c (gimple_fold_call): Likewise.
38819
38820 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
38821
38822         PR rtl-optimization/64905
38823         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38824         pointer alignment if it isn't needed.
38825
38826 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38827
38828         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38829         cortex-a72.cortex-a53.
38830         * config/aarch64/aarch64-tune.md: Regenerate.
38831         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38832
38833 2015-02-04  Nick Clifton  <nickc@redhat.com>
38834
38835         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38836         inside a MEM.
38837
38838 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38839
38840         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38841         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38842         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38843         of DEF_BUILTIN.
38844         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38845         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38846         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38847         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38848         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38849         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38850         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38851         * tree-core.h (enum built_in_function): In between
38852         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38853         for builtins that use DEF_BUILTIN_CHKP macro.
38854
38855 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
38856
38857         PR debug/64817
38858         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38859         operands for tcc_comparison exprs.  Fix typos.
38860
38861         PR debug/64817
38862         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38863         of two XORs that have an intervening AND or IOR.
38864
38865         PR debug/64817
38866         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38867         simplification of XOR of AND to not allocate new rtx before
38868         committing to a simplification.
38869
38870 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38871
38872         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38873         manual swaps in all peepholes.
38874
38875 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38876
38877         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38878         of manual swapping implementation.
38879         (aarch64_expand_vec_perm_const_1): Likewise.
38880
38881 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
38882
38883         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38884         (generic_addrcost_table): Remove NAMED_PARAM.
38885         (cortexa57_addrcost_table): Likewise.
38886         (xgene1_addrcost_table): Likewise.
38887         (generic_regmove_table): Likewise.
38888         (cortexa53_regmove_table): Likewise.
38889         (xgene1_regmove_table): Likewise.
38890         (generic_vector_table): Likewise.
38891         (cortexa57_vector_table): Likewise.
38892         (xgene1_vector_table): Likewise.
38893         (generic_tunings): Likewise.
38894         (cortexa53_tunings): Likewise.
38895         (cortexa57_tunings): Likewise.
38896         (xgene1_tunings): Likewise.
38897
38898 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38899
38900         * config/arm/arm-cores.def: Add cortex-a72 and
38901         cortex-a72.cortex-a53.
38902         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38903         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38904         * config/arm/arm-tune.md: Regenerate.
38905         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38906         "cortex-a72.cortex-a53".
38907         * doc/invoke.texi (ARM Options/-mtune): Likewise.
38908
38909 2015-02-04  Nick Clifton  <nickc@redhat.com>
38910
38911         PR target/64408
38912         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38913         of accepted codes.
38914         (nonimmediate_di_operand): Likewise.
38915
38916         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38917         prefixes of known F5 using MSP430 MCUs.
38918
38919 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38920
38921         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38922         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38923         instead of __builtin_sqrt.
38924
38925 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
38926
38927         * varasm.c (do_assemble_alias): Follow transparent alias
38928         chain for target.
38929         (default_assemble_visibility): Follow transparent alias
38930         chain for decl name.
38931
38932 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38933
38934         PR middle-end/62103
38935         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38936         to compute size of referenced value in the constant case.
38937
38938 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38939
38940         PR rtl-optimization/64756
38941         * cse.c (invalidate_dest): New function.
38942         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
38943         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38944         invalidate and do not record it.
38945
38946 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
38947
38948         PR target/64660
38949         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38950         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38951         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38952         atomic_nand<mode>_soft_tcb): New insns.
38953         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38954         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38955         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38956         Split into atomic_not_fetchsi_hard if operands[0] is unused.
38957         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38958         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38959         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
38960         atomic_not<mode>_hard if operands[0] is unused.
38961         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38962         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38963         if operands[0] is unused.
38964         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
38965         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38966         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38967         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38968         unused.
38969         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
38970         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38971         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38972         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38973         if operands[0] is unused.
38974         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
38975         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38976         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
38977         atomic_nand_fetchsi_hard if operands[0] is unused.
38978         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
38979         atomic_nand<mode>_hard if operands[0] is unused.
38980         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
38981         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38982         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
38983         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38984         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
38985         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38986         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38987         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38988         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
38989         atomic_not<mode>_hard if operands[0] is unused.
38990         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38991         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38992         unused.
38993         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38994         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38995         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
38996         atomic_nand<mode>_hard if operands[0] is unused.
38997         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38998         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38999
39000 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
39001
39002         PR jit/64810
39003         * Makefile.in (GCC_OBJS): Add gcc-main.o.
39004         * gcc-main.c: New file, containing "main" taken from gcc.c.
39005         * gcc.c (do_self_spec): Free decoded_options.
39006         (class driver): Move declaration to gcc.h.
39007         (main): Move declaration and implementation to new file
39008         gcc-main.c.
39009         (driver_get_configure_time_options): New function.
39010         * gcc.h (class driver): Move this declaration here, from
39011         gcc.c.
39012         (driver_get_configure_time_options): New declaration.
39013
39014 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
39015
39016         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39017         cross-module inlining.
39018         * cgraph.h (cgraph_node): Add flag merged.
39019         * ipa-icf.c (sem_function::merge): Maintain it.
39020
39021 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
39022
39023         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39024         instead of OBJECT_P.
39025
39026 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
39027
39028         PR target/62631
39029         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39030         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39031         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39032         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39033
39034 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39035
39036         PR other/63504
39037         * combine.c (reg_n_sets_max): New variable.
39038         (can_change_dest_mode, reg_nonzero_bits_for_combine,
39039         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39040         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39041         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39042         (rest_of_handle_combine): Initialize reg_n_sets_max.
39043
39044 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
39045
39046         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39047         if some always_inline was inlined, apply changes before inlining
39048         heuristically.
39049
39050 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
39051
39052         PR jit/64810
39053         * config/arm/arm.c (arm_option_override): Set
39054         arm_selected_arch/cpu/tune to NULL on entry.
39055
39056 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
39057             Andrew Pinski  <pinskia@gcc.gnu.org>
39058             Jakub Jelinek  <jakub@gcc.gnu.org>
39059
39060         PR target/64231
39061         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39062         integer typing for small model. Use IN_RANGE.
39063
39064 2015-02-02  Richard Biener  <rguenther@suse.de>
39065
39066         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39067         * tree-vrp.c (vrp_valueize_1): Likewise.
39068
39069 2015-02-02  Alan Modra  <amodra@gmail.com>
39070
39071         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39072         than mem for toc_restore.
39073         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39074         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39075         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39076
39077 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
39078
39079         PR target/64047
39080         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39081         explicit default options.
39082
39083 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
39084
39085         PR ipa/64872
39086         * ipa-utils.c (ipa_merge_profiles): Add release argument.
39087         * ipa-icf.c (sem_function::merge): Do not release body when merging.
39088         * ipa-utils.h (ipa_merge_profiles): Update prototype.
39089
39090 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
39091
39092         PR debug/64817
39093         * cfgexpand.c (deep_ter_debug_map): New variable.
39094         (avoid_deep_ter_for_debug): New function.
39095         (expand_debug_expr): If TERed SSA_NAME is in
39096         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39097         instead of trying to expand SSA_NAME's def stmt.
39098         (expand_debug_locations): When expanding debug bind
39099         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39100         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39101         value.
39102         (pass_expand::execute): Call avoid_deep_ter_for_debug on
39103         all debug bind stmts.  Delete deep_ter_debug_map after
39104         expand_debug_location if non-NULL and clear it.
39105
39106 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
39107
39108         PR target/64851
39109         * config/sh/sync.md (atomic_fetch_notsi_hard,
39110         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39111         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39112         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39113         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39114         atomic_not_fetch<mode>_soft_imask): New insns.
39115
39116 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39117
39118         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39119         (rank_for_schedule_debug): Split from ...
39120         (rank_for_schedule): ... this.
39121         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39122         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39123
39124 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39125
39126         * doc/md.texi (Machine Constraints): Alphabetize table by target.
39127         * doc/extend.texi (x86 Variable Attributes): Move section to
39128         correct alphabetization after renaming.
39129         (x86 Type Attributes): Likewise.
39130         (Target Builtins): Re-alphabetize menu.
39131         (x86 Built-in Functions): Move section to correct alphabetization
39132         after renaming.
39133         (x86 transactional memory intrinsics): Likewise.
39134         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39135         and x86 Windows Options in table and menu.
39136         (x86 Options): Move section to correct alphabetization after
39137         renaming.
39138         (x86 Windows Options): Likewise.
39139
39140 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39141
39142         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39143         preferred names of the architecture and its 32- and 64-bit
39144         variants.
39145         * doc/invoke.texi: Likewise.
39146         * doc/md.texi: Likewise.
39147
39148 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39149
39150         PR target/64882
39151         * config/i386/predicates.md (address_no_seg_operand): Reject
39152         non-CONST_INT_P operands in invalid mode.
39153
39154 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39155
39156         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39157         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
39158         * config/i386/predicates.md (address_no_seg_operand): Call
39159         address_operand with VOIDmode.
39160         (vsib_address_operand): Ditto.
39161         (address_mpx_no_base_operand): Ditto.
39162         (address_mpx_no_index_operand): Ditto.
39163
39164 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39165
39166         PR target/64688
39167         * lra-constraints.c (original_subreg_reg_mode): New.
39168         (simplify_operand_subreg): Try to simplify subreg of const.  Use
39169         original_subreg_reg_mode for it.
39170         (swap_operands): Update original_subreg_reg_mode.
39171         (curr_insn_transform): Set up original_subreg_reg_mode.
39172
39173 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39174
39175         PR target/64617
39176         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39177         function.
39178         (process_alt_operands): Use it.
39179         (curr_insn_transform): Check the optional reload pseudo class is
39180         ok for the mode.
39181
39182 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
39183
39184         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39185         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39186         prototype.
39187         * toplev.h (init_asm_output): Update comment on use of
39188         UNKNOWN_LOCATION with fatal_error.
39189         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39190         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39191         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39192         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39193         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39194         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39195         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39196         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39197         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39198         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39199         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39200         fatal_error changed to pass input_location as first argument.
39201
39202 2015-01-30  Martin Liska  <mliska@suse.cz>
39203
39204         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39205         in #pragma GCC diagnostic guards.
39206
39207 2015-01-30  Richard Biener  <rguenther@suse.de>
39208
39209         PR tree-optimization/64829
39210         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39211         not add a widening conversion pattern but hand off extra
39212         widenings to callers.
39213         (vect_recog_widen_mult_pattern): Handle extra widening produced
39214         by vect_handle_widen_op_by_const.
39215         (vect_recog_widen_shift_pattern): Likewise.
39216         (vect_pattern_recog_1): Remove excess vertical space in dumping.
39217         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39218         (vect_init_vector_1): Likewise.
39219         (vect_get_vec_def_for_operand): Likewise.
39220         (vect_finish_stmt_generation): Likewise.
39221         (vectorizable_load): Likewise.
39222         (vect_analyze_stmt): Likewise.
39223         (vect_is_simple_use): Likewise.
39224
39225 2015-01-29  Jeff Law  <law@redhat.com>
39226
39227         * combine.c (try_combine): Fix typo in comment.
39228
39229 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
39230
39231         PR target/64580
39232         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39233         (rs6000_stack_info): Add assert.
39234         (rs6000_output_savres_externs): New function, split off from...
39235         (rs6000_output_function_prologue): ... here.  Do not call it for
39236         thunks.
39237
39238 2015-01-29  Jeff Law  <law@redhat.com>
39239
39240         PR target/15184
39241         * combine.c (try_combine): If I0 is a memory load and I3 a store
39242         to a related address, increase the "goodness" of doing a 4-insn
39243         combination with I0-I3.
39244         (make_field_assignment): Handle SUBREGs in the ior+and case.
39245
39246 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
39247
39248         PR tree-optimization/64746
39249         * tree-if-conv.c (mask_exists): New function.
39250         (predicate_mem_writes): Save created mask with given size for further
39251         use.
39252         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39253         (ifcvt_repair_bool_pattern): Collect all statements that are root
39254         of bool pattern and use iterative algorithm to remove multiple uses
39255         of predicates, display number of required iterations.
39256
39257 2015-01-29  Richard Biener  <rguenther@suse.de>
39258
39259         PR tree-optimization/64853
39260         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39261         stmt will get simulated again.
39262         * tree-ssa-ccp.c (valueize_op_1): Likewise.
39263
39264 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39265
39266         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39267         return_in_pc.  Remove redundant assignments.
39268         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39269         (arm_expand_epilogue): Don't compare boolean with true in if condition.
39270
39271 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
39272
39273         * config/i386/i386.c (ix86_mode_after): Make static.
39274
39275 2015-01-29  Richard Biener  <rguenther@suse.de>
39276
39277         PR tree-optimization/64844
39278         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39279         dump cost model analysis.
39280         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39281         Do not register adjusted load/store costs here.
39282
39283 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39284             Uros Bizjak  <ubizjak@gmail.com>
39285
39286         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39287         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39288         using x86_use_pseudo_pic_reg.
39289         * config/i386/i386.c (ix86_conditional_register_usage): Remove
39290         support for fixed PIC register.
39291         (ix86_use_pseudo_pic_reg): Not static any more.
39292
39293 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39294
39295         PR middle-end/64805
39296         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39297         to avoid error in cgraph node verification.
39298
39299 2015-01-29  Marek Polacek  <polacek@redhat.com>
39300
39301         * doc/standards.texi: Reflect that the default for C is gnu11.
39302
39303 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
39304
39305         PR target/64761
39306         * reorg.c (switch_text_sections_between_p): New function.
39307         (relax_delay_slots): Call it when testing if the jump insn
39308         is removable.  Use targetm.can_follow_jump when testing if
39309         the conditional branch can follow an unconditional jump.
39310
39311 2015-01-27  Caroline Tice  <cmtice@google.com>
39312
39313         Committing VTV Cywin/Ming patch for Patrick Wollgast
39314         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39315         if -fvtable-verify=preinit/std is used.
39316         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39317         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39318         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39319         if -fvtable-verify=preinit/std is used.
39320         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39321         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39322         if -fvtable-verify=preinit/std is used.
39323         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39324         * config/i386/mingw32.h (LIB_SPEC): Likewise.
39325         * varasm.c (assemble_variable): Add code to properly set the comdat
39326         section and name for the .vtable_map_vars section in case the
39327         target is PE or COFF.
39328
39329 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39330
39331         PR ipa/64801
39332         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39333         make sane BB profile.
39334         (cgraph_node::expand_thunk): Make sane BB profile.
39335         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39336         * cgraph.h (init_lowered_empty_function): Update prototype.
39337         * config/i386/i386.c (make_resolver_func): Update call.
39338         * predict.c (gate): Disable branch prediction pass if
39339         profile is already there.
39340
39341 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39342
39343         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39344         * opth-gen.awk: Likewise.
39345         * common.opt: Mark flag_fp_contract_mode as Optimization.
39346
39347 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39348
39349         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39350         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39351
39352 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
39353
39354         PR target/64659
39355         * config/sh/predicates.md (atomic_arith_operand,
39356         atomic_logical_operand): Remove.
39357         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39358         (atomic_arith_operand_0): New predicate.
39359         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39360         Use atomic_arith_operand_0 for input values.
39361         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39362         atomic_compare_and_swap<mode>_soft_gusa,
39363         atomic_compare_and_swap<mode>_soft_tcb,
39364         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39365         arith_reg_operand instead of register_operand.
39366         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
39367         atomic_arith_operand_0 for newval input.
39368         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39369         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39370         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39371         arith_reg_operand instead of register_operand.
39372         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39373         fetchop_predicate_1, fetchop_constraint_1_llcs,
39374         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39375         fetchop_constraint_1_imask): New code iterator attributes.
39376         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39377         register_operand.  Use fetchop_predicate_1.
39378         (atomic_fetch_<fetchop_name>si_hard,
39379         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39380         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39381         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39382         and arith_reg_operand instead of register_operand.  Use
39383         fetchop_predicate_1, fetchop_constraint_1_gusa.
39384         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39385         and arith_reg_operand instead of register_operand.  Use
39386         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
39387         to allow R0 usage.
39388         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39389         and arith_reg_operand instead of register_operand.  Use
39390         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
39391         to allow R0 usage.
39392         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39393         register_operand.  Use atomic_logical_operand_1.
39394         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39395         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39396         arith_reg_operand instead of register_operand.
39397         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39398         Use arith_reg_dest and arith_reg_operand instead of register_operand.
39399         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
39400         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39401         register_operand.  Use fetchop_predicate_1.
39402         (atomic_<fetchop_name>_fetchsi_hard,
39403         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39404         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39405         fetchop_constraint_1_llcs.
39406         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39407         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39408         fetchop_constraint_1_gusa.
39409         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39410         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39411         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
39412         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39413         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39414         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
39415         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39416         register_operand.  Use atomic_logical_operand_1.
39417         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39418         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39419         arith_reg_operand instead of register_operand.
39420         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39421         arith_reg_operand instead of register_operand.  Use logical_operand
39422         and K08.  Adjust asm sequence to allow R0 usage.
39423         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39424         arith_reg_operand instead of register_operand.  Use logical_operand
39425         and K08.
39426
39427 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39428
39429         PR other/63504
39430         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39431         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39432         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39433         only get_full_len HOST_WIDE_INTs from get_val () array rather than
39434         all bits in *val_wide.
39435
39436 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
39437
39438         * varpool.c (tls_model_names): Fix names.
39439         (varpool_node::dump): Dump tls- prefix for tls models.
39440
39441 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
39442             Bernd Schmidt  <bernds@codesourcery.com>
39443             Nathan Sidwell  <nathan@codesourcery.com>
39444
39445         * config/nvptx/mkoffload.c: New file.
39446         * config/nvptx/t-nvptx: Add build rules for it.
39447         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39448         (extra_programs): Add mkoffload.
39449         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39450         function.
39451         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39452
39453 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
39454
39455         PR middle-end/64809
39456         * cfgexpand.c (reorder_operands): Skip debug gimples.
39457
39458 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
39459
39460         PR tree-optimization/64277
39461         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39462         range info when possible to refine estimation.
39463
39464 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39465
39466         PR tree-optimization/64718
39467         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39468         be a 16bit unsigned integer when n->range is 16.
39469         (bswap_replace): Convert src to that type if necessary for all bswap
39470         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
39471         set in pass_optimize_bswap::execute ().
39472
39473 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
39474
39475         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39476         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39477         integer and floating point variants.
39478         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39479
39480 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
39481
39482         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39483         for all vector modes.
39484
39485 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39486
39487         PR bootstrap/64612
39488         * doc/sourcebuild.texi (comdat_group): Document.
39489
39490 2015-01-28  Terry Guo  <terry.guo@arm.com>
39491
39492         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39493
39494 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
39495
39496         * toplev.c (print_version): Add param "show_global_state", and
39497         only print GGC and plugin information if it is true.
39498         (init_asm_output): Pass in "true" for the new param when calling
39499         print_version.
39500         (process_options): Likewise.
39501         (toplev::main): Likewise.
39502         * toplev.h (print_version): Add new param to decl.
39503
39504 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39505
39506         PR ipa/60871
39507         PR ipa/64139
39508         * tree.c (lookup_binfo_at_offset): New function.
39509         (get_binfo_at_offset): Use it.
39510
39511 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39512
39513         PR ipa/64282
39514         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39515         on vtable being vtable.
39516
39517 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39518
39519         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39520         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39521         -mhotpatch= option.
39522         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39523         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
39524         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39525         Renamed.
39526         (s390_hotpatch_trampoline_halfwords_max): Renamed.
39527         (s390_hotpatch_hw_max): New name.
39528         (s390_hotpatch_trampoline_halfwords): Renamed.
39529         (s390_hotpatch_hw_before_label): New name.
39530         (get_hotpatch_attribute): Removed.
39531         (s390_hotpatch_hw_after_label): New name.
39532         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39533         attribute.
39534         (s390_attribute_table): Ditto.
39535         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39536         (s390_function_num_hotpatch_hw): New name.
39537         Remove special handling of inline functions and hotpatching.
39538         Return number of nops before and after the function label.
39539         (s390_can_inline_p): Removed.
39540         (s390_asm_output_function_label): Emit a configurable number of nops
39541         after the function label.
39542         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39543         (TARGET_CAN_INLINE_P) Removed.
39544         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39545
39546 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39547             Jiong Wang  <jiong.wang@arm.com>
39548
39549         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39550         of scratch reg.
39551         (cb<optab><mode>1): Likewise.
39552         * config/aarch64/iterators.md (bcond): New define_code_attr.
39553
39554 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39555
39556         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39557         memory accesses.
39558
39559 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39560
39561         * config/s390/s390.c (s390_register_move_cost): Increase costs for
39562         FPR->GPR moves.
39563
39564 2015-01-27  Richard Biener  <rguenther@suse.de>
39565
39566         * tree-vrp.c (update_value_range): Intersect the range with
39567         old recorded SSA name range information.
39568
39569 2015-01-27  Nick Clifton  <nickc@redhat.com>
39570
39571         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39572         BC, DE and HL registers directly, not via AX.
39573         When decrementing the stack pointer by a large amount, transfer SP
39574         into AX and perform the subtraction there.
39575         (rl78_expand_epilogue): Perform the inverse of the above
39576         enhancements.
39577
39578 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39579
39580         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39581
39582 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39583             Yury Gribov  <y.gribov@samsung.com>
39584
39585         PR ubsan/64741
39586         * ubsan.c (ubsan_source_location): Refactor code.
39587         (ubsan_type_descriptor): Update type size. Refactor code.
39588
39589 2015-01-27  Richard Biener  <rguenther@suse.de>
39590
39591         PR tree-optimization/56273
39592         PR tree-optimization/59124
39593         PR tree-optimization/64277
39594         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39595         from the first VRP pass.
39596
39597 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39598
39599         PR ipa/64776
39600         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39601         handle the first argument in the same loop as all the other arguments.
39602
39603         PR rtl-optimization/61058
39604         * jump.c (cleanup_barriers): Update basic block boundaries
39605         if BLOCK_FOR_INSN is non-NULL on PREV.
39606
39607 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
39608
39609         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39610         bounds narrowing, already instrumented calls and calls to
39611         not instrumentable functions.
39612
39613 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39614
39615         PR tree-optimization/64807
39616         * wide-int.cc (wi::divmod_internal): Clear
39617         b_dividend[dividend_blocks_needed].
39618
39619 2015-01-26  DJ Delorie  <dj@redhat.com>
39620
39621         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39622         volatile memory references.
39623
39624 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
39625
39626         PR target/49263
39627         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39628         remove_insn.
39629         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39630         shifts if it already fits into K08.
39631
39632 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39633
39634         PR ipa/64730
39635         * ipa-inline.c (inline_small_functions): Print "unknown" even
39636         if edge->call_stmt is non-NULL, but has builtins or unknown
39637         location.
39638
39639         PR middle-end/64421
39640         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39641         with asterisk, skip the first character.
39642
39643 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39644
39645         PR target/64806
39646         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39647         order change.
39648
39649 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
39650
39651         PR target/64795
39652         * config/i386/i386.md (*movdi_internal): Also check operand 0
39653         to determine TYPE_LEA operand.
39654         (*movsi_internal): Ditto.
39655
39656 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39657
39658         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39659         OPTION_MASK_QUAD_MEMORY_ATOMIC.
39660
39661 2015-01-26  Renlin Li  <renlin.li@arm.com>
39662
39663         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39664         the comment.
39665         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39666         for higher part.
39667
39668 2015-01-26  Richard Biener  <rguenther@suse.de>
39669
39670         PR middle-end/64764
39671         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39672         combining two BIT_AND_EXPR predicates.
39673
39674 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39675
39676         PR bootstrap/64754
39677         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39678
39679 2015-01-26  Terry Guo  <terry.guo@arm.com>
39680
39681         * config/arm/arm.c (arm_file_start): Update the assignment of
39682         Tag_ABI_HardFP_use.
39683
39684 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
39685
39686         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39687         pipeline model.
39688         config/arm/arm.md: Include the new Cortex-A57 model.
39689         (generic_sched): Don't use generic_sched when tuning for
39690         Cortex-A57.
39691
39692 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
39693             Uros Bizjak  <ubizjak@gmail.com>
39694
39695         * config/i386/i386.c (get_builtin_code_for_version): Add
39696         support for BMI and BMI2 multiversion functions.
39697
39698 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39699
39700         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39701         (extract_bit_field): Likewise.
39702         (extract_low_bits): Likewise.
39703         (expand_mult): Likewise.
39704         (expand_mult_highpart_adjust): Likewise.
39705
39706 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
39707
39708         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39709         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39710         * config/i386/i386.c (processor_model): Add
39711         M_INTEL_COREI7_BROADWELL.
39712         (arch_names_table): Add "broadwell".
39713
39714 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
39715
39716         PR target/49263
39717         PR target/53987
39718         PR target/64345
39719         PR target/59533
39720         PR target/52933
39721         PR target/54236
39722         PR target/51244
39723         * config/sh/sh-protos.h
39724         (sh_extending_set_of_reg::can_use_as_unextended_reg,
39725         sh_extending_set_of_reg::use_as_unextended_reg,
39726         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39727         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39728         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39729         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39730         (sh_treg_insns): New class.
39731         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39732         (scope_counter): New class.
39733         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39734         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39735         sh_extending_set_of_reg::can_use_as_unextended_reg,
39736         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39737         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39738         sh_split_treg_set_expr): New functions.
39739         (addsubcosts): Handle treg_set_expr.
39740         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39741         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39742         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39743         (sh_insn_operands_modified_between_p): Make non-static.
39744         * config/sh/predicates.md (zero_extend_movu_operand): Allow
39745         simple_mem_operand in addition to displacement_mem_operand.
39746         (zero_extend_operand): Don't allow zero_extend_movu_operand.
39747         (treg_set_expr, treg_set_expr_not_const01,
39748         arith_reg_or_treg_set_expr): New predicates.
39749         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39750         arith_or_int_operand instead of logical_operand.  Convert to
39751         insn_and_split.  Try to optimize constant operand in splitter.
39752         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
39753         (*tstqi_t_zero): Delete.
39754         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39755         (tstsi_t_and_not): Delete.
39756         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39757         Convert to insn_and_split.
39758         (unnamed split, tstsi_t_zero_extract_xor,
39759         tstsi_t_zero_extract_subreg_xor_little,
39760         tstsi_t_zero_extract_subreg_xor_big): Delete.
39761         (*tstsi_t_shift_mask): New insn_and_split.
39762         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39763         to recombine with surrounding insns when splitting.
39764         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39765         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39766         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39767         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39768         (*cbranch_div0s: Delete.
39769         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39770         Try to recombine with surrounding insns when splitting.  Add operand
39771         order variants.
39772         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39773         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39774         *addc_r_r_msb, *addc_2r_msb): Delete.
39775         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
39776         order variant.
39777         (*addc_negreg_t): New insn_and_split.
39778         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39779         Try to recombine with surrounding insns when splitting.
39780         Add operand order variants.
39781         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39782         insn_and_split patterns.
39783         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
39784         surrounding insns when splitting.
39785         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39786         (*rotcl): Likewise.  Add zero_extract variant.
39787         (*ashrsi2_31): New insn_and_split.
39788         (*negc): Convert to insn_and_split.  Use treg_set_expr.
39789         (*zero_extend<mode>si2_disp_mem): Update comment.
39790         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39791         condition.
39792         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
39793         with surrounding insns when splitting.
39794         (any_treg_expr_to_reg): New insn_and_split.
39795         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39796         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39797         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39798         *zero_extract_2): New single bit zero extract patterns.
39799         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39800         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39801         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39802         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39803         set destination.
39804         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39805         register_operand for set source.
39806
39807 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
39808
39809         * i386.opt (prefetch_sse): New targetsave.
39810         * i386.c (ix86_function_specific_save): Save prefetch_sse.
39811         (ix86_function_specific_restore): Restore prefetch_sse and initialize
39812         ix86_cost/ix86_tune_cost.
39813
39814 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39815
39816         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39817         Support the JIT by using 0 as the language type.
39818
39819 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
39820
39821         PR target/64317
39822         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
39823         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39824         (mark_regno_live, process_bb_lives): Pass new parameter value to
39825         make_hard_regno_born.
39826
39827 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39828
39829         PR rtl-optimization/63637
39830         PR rtl-optimization/60663
39831         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39832         if elt->cost is MAX_COST for ASM_OPERANDS.
39833         (find_sets_in_insn): Fix up comment typo.
39834         (cse_insn): Don't set src_volatile for all non-volatile
39835         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39836         or with "memory" clobber.  Set elt->cost to MAX_COST
39837         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
39838         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39839
39840 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39841
39842         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39843         alternative 1.
39844
39845 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39846
39847         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39848         libgcc/config/i386/elf-lib.h.
39849
39850 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39851
39852         PR driver/64737
39853         * gcc.c (print_configuration): Don't print a blank line at the end
39854         here...
39855         (run_attempt): ... but here unstead.
39856
39857         PR middle-end/64734
39858         * omp-low.c (scan_sharing_clauses): Don't ignore
39859         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39860         on target data/update constructs.
39861
39862 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39863
39864         PR target/50928
39865         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39866         (DEBUG_RELOAD): Removed define.
39867         (m32c_limit_reload_class): Enable traces with if DEBUG0.
39868         (m32c_function_arg): Added a type cast.
39869         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39870         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39871         * config/m32c/bitops.md (andqi3_16): Likewise.
39872         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39873         (push_a01_l): Likewise.
39874
39875 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39876
39877         PR jit/64721
39878         * main.c (main): Construct toplev instances with init_signals=true.
39879         * toplev.c (general_init): Add param "init_signals", and use it to
39880         conditionalize the calls to signal and host_hooks.extra_signals.
39881         (toplev::toplev): Add param "init_signals".
39882         (toplev::main): When invoking general_init, pass m_init_signals
39883         to control whether signal-handlers are installed.
39884         * toplev.h (toplev::toplev): Add param "init_signals".
39885         (toplev::m_init_signals): New field.
39886
39887 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39888
39889         PR jit/64722
39890         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39891         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39892         latter may be affected by the former (e.g. on i686).
39893
39894 2015-01-23  Martin Liska  <mliska@suse.cz>
39895
39896         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39897         false positive during profiledbootstrap.
39898
39899 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39900
39901         PR libgomp/64672
39902         * lto-opts.c (lto_write_options): Output non-explicit conservative
39903         -fno-openacc.
39904         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39905         (append_compiler_options): Pass -fopenacc through.
39906
39907 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39908
39909         PR libgomp/64707
39910         * lto-opts.c (lto_write_options): Output non-explicit conservative
39911         -fno-openmp.
39912         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39913         (append_compiler_options): Pass -fopenmp through.
39914
39915 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39916
39917         PR debug/64511
39918         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39919         GTY markup.
39920
39921         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39922         * diagnostic.def (DK_ICE_NOBT): New kind.
39923         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39924         like DK_ICE, but never print backtrace.
39925         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39926         (internal_error_no_backtrace): New function.
39927         * gcc.c (execute): Use internal_error_no_backtrace instead of
39928         internal_error.
39929
39930 2015-01-22  Jeff Law  <law@redhat.com>
39931
39932         PR target/52076
39933         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39934         improve code density for small immediate to memory case.
39935         (insv): Better handle bitfield assignments when the field is
39936         being set to all ones.
39937         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39938         operand predicate.
39939
39940 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39941             Jakub Jelinek  <jakub@redhat.com>
39942
39943         PR middle-end/64729
39944         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39945         for !TARGET_LIBC_PROVIDES_SSP version and
39946         -fstack-protector-{all,strong,explicit} otherwise.
39947         * config/freebsd.h (LINK_SSP_SPEC): Handle
39948         -fstack-protector-{strong,explicit}.
39949
39950 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
39951             H.J. Lu  <hongjiu.lu@intel.com>
39952
39953         PR ipa/64694
39954         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39955         heap.
39956
39957 2015-01-22  Wei Mi  <wmi@google.com>
39958
39959         PR rtl-optimization/64557
39960         * dse.c (record_store): Call get_addr for mem_addr.
39961         (check_mem_read_rtx): Likewise.
39962
39963 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
39964
39965         * fold-const.c (const_binop): Add early return for non-tcc_binary.
39966
39967 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
39968
39969         * toplev.c (init_local_tick): Process the failure when read
39970         fails for random_seed.
39971
39972         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39973         'pretty_name' to avoid memory overflow.
39974
39975 2015-01-22  Richard Biener  <rguenther@suse.de>
39976
39977         PR middle-end/64728
39978         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39979         abnormal coalescing on undefined SSA names.
39980
39981 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
39982
39983         PR target/64688
39984         PR target/64477
39985         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39986         for alternative 3.
39987         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39988
39989 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
39990
39991         PR middle-end/63325
39992         * fold-const.c (fold_checksum_tree): Don't include value of
39993         expr->decl_with_vis.symtab_node in the checksum.
39994
39995 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39996
39997         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39998
39999 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
40000
40001         PR driver/64690
40002         * gcc.c (insert_comments): New function.
40003         (try_generate_repro): Call it.
40004         (append_text): Removed.
40005
40006 2015-01-22  Richard Biener  <rguenther@suse.de>
40007
40008         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40009         with IL incompatible options.  Properly honor user optimize
40010         attributes.
40011
40012 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
40013
40014         PR rtl-optimization/64682
40015         * combine.c (distribute_notes): When moving a death note for
40016         a register that is set in the new I2, make sure to put it
40017         before that new I2.
40018
40019 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
40020
40021         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40022         not TARGET_DEFAULT.
40023
40024 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
40025
40026         PR debug/64511
40027         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40028         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40029         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40030
40031         PR sanitizer/64706
40032         * doc/invoke.texi (-fsanitize=vptr): Document.
40033
40034         PR rtl-optimization/62078
40035         * dse.c: Include cfgcleanup.h.
40036         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40037         anything call purge_all_dead_edges and cleanup_cfg at the end
40038         of the pass.
40039
40040 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
40041
40042         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40043         edges.
40044
40045 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40046
40047         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40048         decl attribute.
40049
40050 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40051             Tejas Belagod <Tejas.Belagod@arm.com>
40052
40053         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40054         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40055         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40056         Removed.
40057
40058 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40059             Tejas Belagod <Tejas.Belagod@arm.com>
40060
40061         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40062         (aarch64_reverse_mask): New decls.
40063         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40064         (insn_count): New mode_attr.
40065         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40066         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40067         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40068         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40069         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40070         (aarch64_simd_st4): New patterns.
40071         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40072         (aarch64_reverse_mask): New functions.
40073
40074 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40075
40076         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40077         Declare.
40078         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40079         addressing modes for BE.
40080         (aarch64_print_operand): Add 'R' specifier.
40081         (aarch64_simd_disambiguate_copy): Delete.
40082         (aarch64_simd_emit_reg_reg_move): New function.
40083         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40084         in define_splits for structural moves.
40085         (mov<mode>): Use less restrictive predicates.
40086         (*aarch64_mov<mode>): Simplify and only allow for LE.
40087         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40088
40089 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40090
40091         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40092
40093 2015-01-21  Richard Henderson  <rth@redhat.com>
40094
40095         PR target/64669
40096         * ccmp.c (used_in_cond_stmt_p): Remove.
40097         (expand_ccmp_expr): Don't use it.
40098
40099 2015-01-21  Nick Clifton  <nickc@redhat.com>
40100
40101         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40102         PARALLELs.
40103
40104 2015-01-21  Richard Biener  <rguenther@suse.de>
40105
40106         PR middle-end/64313
40107         * tree-core.h (builtin_info, builtin_info_type): Turn from
40108         an object with two arrays into an array of an object with
40109         decl and two flags, implicit_p and declared_p.
40110         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40111         set_builtin_decl, set_builtin_decl_implicit_p,
40112         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40113         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40114         * builtins.c (builtin_info): Adjust.
40115         * gimplify.c (gimplify_addr_expr): References to builtins
40116         that have been declared by the user makes them eligible for
40117         use by the compiler.  Call set_builtin_decl_implicit_p on them.
40118
40119 2015-01-20  Jeff Law  <law@redhat.com>
40120
40121         PR target/59946
40122         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40123         allow pc-relative addresses in operand predicates or constraints.
40124
40125 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
40126
40127         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40128         neon on aarch32 processors for stringops.
40129
40130 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40131
40132         PR ipa/63576
40133         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40134
40135 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40136
40137         PR lto/45375
40138         * ipa-inline.c: Include lto-streamer.h
40139         (report_inline_failed_reason): Output source file differences and
40140         flags on optimization/target node mismatch.
40141         (can_inline_edge_p): Consider caller to be the outer inline function;
40142         be less restrictive about matching opimize and optimize_size attributes.
40143         (inline_account_function_p): Break out from ...
40144         (inline_small_functions): ... here.
40145         * ipa-inline-transform.c (clone_inlined_nodes): Use
40146         inline_account_function_p.
40147         (inline_call): Use optimize attribution; use inline_account_function_p.
40148         (inline_transform): Use opt_for_fn.
40149         * ipa-inline.h (inline_account_function_p): Declare.
40150
40151 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
40152
40153         PR debug/64663
40154         * dwarf2out.c (decl_piece_node): Don't put bitsize into
40155         mode if bitsize <= 0.
40156         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40157         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40158         sizes and positions.
40159
40160 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
40161
40162         * config/nios2/nios2.c (nios2_asm_file_end): Implement
40163         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40164         needed.
40165         (TARGET_ASM_FILE_END): Define.
40166
40167 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40168
40169         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40170         (struct tune_params): Use the enum.
40171         * arm.c (arm_*_tune): Update.
40172         (arm_option_override): Update.
40173
40174 2015-01-20  Richard Biener  <rguenther@suse.de>
40175
40176         PR ipa/64684
40177         * ipa-reference.c (add_static_var): Inline ...
40178         (analyze_function): ... here after splitting out from ...
40179         (is_proper_for_analysis): ... this.
40180
40181 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
40182
40183         PR target/64149
40184         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40185         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40186         replace the conditional with it's true branch.
40187         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40188         (arm_lra_p): Remove.
40189
40190 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
40191
40192         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40193
40194 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40195
40196         * config/tilegx/mul-tables.c: Move symtab.h include after
40197         coretypes.h include.
40198         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40199         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40200         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40201         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40202         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40203
40204 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
40205
40206         PR bootstrap/64676
40207         Revert:
40208         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40209
40210         PR rtl-optimization/64081
40211         * loop-iv.c (def_pred_latch_p): New function.
40212         (latch_dominating_def): Allow specific cases with non-single
40213         definitions.
40214         (iv_get_reaching_def): Likewise.
40215         (check_complex_exit_p): New function.
40216         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40217         with exits not executing on any iteration.
40218
40219 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40220
40221         PR lto/45375
40222         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40223         to set branch cost.
40224
40225 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40226
40227         PR lto/45375
40228         * i386.c (gate): Check flag_expensive_optimizations and
40229         optimize_size.
40230         (ix86_option_override_internal): Drop optimize_size condition
40231         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40232         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40233         MASK_PREFER_AVX128.
40234         (ix86_avx256_split_vector_move_misalign,
40235         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40236         * sse.md (all uses of TARGET_PREFER_AVX128): Add
40237         optimize_insn_for_speed_p check.
40238
40239 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
40240
40241         * config/mips/mips.h (FP_ASM_SPEC): New define.
40242         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40243         instead.
40244
40245 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
40246
40247         PR target/53988
40248         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40249         nullptr for insn when reaching the first insn.
40250         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40251         (sh_insn_operands_modified_between_p): Add nullptr check.
40252         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
40253         sign extending mem load if the insn contains any UNSPEC or
40254         UNSPEC_VOLATILE.
40255
40256 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40257
40258         * params.def (inline-unit-growth): Drop to 15%.
40259         * invoke.texi (inline-unit-growth): Document change.
40260
40261 2015-01-19  Martin Liska  <mliska@suse.cz>
40262
40263         PR ipa/64668
40264         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40265         function for second argument of OBJ_TYPE_REF.
40266
40267 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40268
40269         PR ipa/64218
40270         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40271         whether function is an alias.
40272
40273 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40274
40275         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40276         cases.
40277
40278 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
40279
40280         PR rtl-optimization/64671
40281         * lra-remat.c (operand_to_remat): Don't consider jump and call
40282         insns.
40283
40284 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
40285
40286         PR target/59828
40287         * config/rs6000/default64.h: Include rs6000-cpus.def.
40288         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40289         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40290         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40291         and POWER8.
40292         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40293         POWER8.
40294         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40295         pseudo-op to specify assembler dialect.
40296
40297 2015-01-19  Martin Liska  <mliska@suse.cz>
40298
40299         PR ipa/64664
40300         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40301         Handle safe potentially removed nodes during filtering.
40302
40303 2015-01-19  Martin Liska  <mliska@suse.cz>
40304
40305         * doc/extend.texi (no_icf): Add new attribute description.
40306         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40307         where the pass attempts to merge a function with no_icf attribute.
40308
40309 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40310
40311         PR target/64532
40312         * doc/md.texi (ARM Options): Document register constraints.
40313
40314 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
40315             Andrew Pinski  <apinski@cavium.com>
40316
40317         PR target/64304
40318         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40319         (ashl<mode>3): Don't expand if operands[2] is not constant.
40320
40321 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40322
40323         PR target/64448
40324         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40325         Match xor-and-xor RTL pattern.
40326
40327 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40328
40329         PR rtl-optimization/64081
40330         * loop-iv.c (def_pred_latch_p): New function.
40331         (latch_dominating_def): Allow specific cases with non-single
40332         definitions.
40333         (iv_get_reaching_def): Likewise.
40334         (check_complex_exit_p): New function.
40335         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40336         with exits not executing on any iteration.
40337
40338 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
40339
40340         * common.opt (fgraphite): Fix a typo.
40341
40342 2015-01-19  Felix Yang  <felix.yang@huawei.com>
40343
40344         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40345         pattern.
40346         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40347         uminp, smax_nanp, smin_nanp): New builtins.
40348         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40349         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40350         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40351         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40352         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40353         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40354         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40355         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40356         vpminnms_f32): Rewrite using builtin functions.
40357
40358 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
40359
40360         PR libgomp/64625
40361         * omp-low.c (offload_symbol_decl): Remove variable.
40362         (get_offload_symbol_decl): Remove function.
40363         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40364         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40365         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40366         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40367         BUILT_IN_GOACC_UPDATE don't pass it at all.
40368
40369 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40370
40371         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40372         callers.
40373
40374 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40375
40376         * ipa-chkp.c (chkp_produce_thunks): Add early param
40377         to split thunks production into two passes.  Keep
40378         'always_inline' function bodies after the first pass.
40379         (pass_data_ipa_chkp_early_produce_thunks): New.
40380         (pass_ipa_chkp_early_produce_thunks): New.
40381         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40382         chkp_produce_thunks signature.
40383         (make_pass_ipa_chkp_early_produce_thunks): New.
40384         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40385         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40386         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40387
40388 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40389
40390         * cgraph.c (cgraph_node::dump): Dump profile flags.
40391
40392 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
40393
40394         PR target/64652
40395         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40396         reg appear first in the parallel.
40397
40398 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40399
40400         * ipa-reference.c (set_reference_optimization_summary,
40401         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40402         disabled.
40403         (ignore_module_statics): New static var.
40404         (propagate_bits): If ipa-reference is disabled, do not look into local
40405         properties.
40406         (analyze_function): Disable analysis when ipa_reference is disabled.
40407         (generate_summary): Do not dump when reference is disabled;
40408         collect vars accessed from functions with ipa-reference disabled.
40409         (get_read_write_all_from_node): When ipa-reference is disabled, use the
40410         node flags.
40411         (gate): Enable for LTO.
40412         (ignore_edge_p): New function.
40413         (propagate): Skip functions w/o ipa-reference analysis.
40414         * optc-save-gen.awk: Handle optimize_debug correctly.
40415         * opth-gen.awk: Likewise.
40416         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40417         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40418         fira-share-save-slots, fira-share-spill-slots,
40419         fmodulo-sched-allow-regmoves, fpartial-inlining,
40420         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40421         ftracer, ftree-parallelize-loops, fassociative-math,
40422         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40423         Optimization
40424         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40425         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40426         Optimization.
40427         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40428         Fix for IPA.
40429
40430 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40431
40432         PR ipa/64378
40433         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40434         flag correctly.
40435         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40436
40437 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
40438
40439         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40440         Remove duplicate option listings.
40441
40442 2015-01-18  Felix Yang  <felix.yang@huawei.com>
40443
40444         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40445         (autofdo_source_profile::get_callsite_total_count,
40446         function_instance::get_function_instance_by_decl,
40447         string_table::get_index, string_table::get_index_by_decl,
40448         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40449         Fix comment typos. Reformatting and minor code rearrangement.
40450
40451 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40452
40453         * config/rs6000/rs6000.md (probe_stack): Delete.
40454         (probe_stack_address): New.
40455
40456 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40457
40458         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40459         to test for 32-bit ABIs, not !TARGET_POWERPC64.
40460
40461 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40462
40463         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40464         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
40465         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
40466         snafu.
40467         (rs6000_libcall_value): Use the new function.
40468
40469 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
40470
40471         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40472
40473 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
40474
40475         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40476         implement a more precise life analysis for it during backward scan.
40477
40478 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
40479
40480         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40481
40482 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
40483
40484         PR rtl-optimization/52773
40485         * calls.c (emit_library_call_value): When pushing arguments use
40486         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40487         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
40488         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40489
40490 2015-01-17  Jeff Law  <law@redhat.com>
40491
40492         PR rtl-optimization/32790
40493         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40494         not ZERO_EXTEND in SET_DESTs.
40495
40496 2015-01-17  Alan Modra  <amodra@gmail.com>
40497
40498         * cprop.c (do_local_cprop): Revert last change.
40499
40500 2015-01-16  DJ Delorie  <dj@redhat.com>
40501             Nick Clifton  <nickc@redhat.com>
40502
40503         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40504         (addhi3_real): Likewise.  Fix [HL+0] syntax.
40505         (subqi3_real): Likewise.
40506         (subhi3_real): Likewise.
40507         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
40508         (cbranchhi4_real): Likewise.
40509         (cbranchhi4_real_inverted): Likewise.
40510         (cbranchsi4_real_lt): Likewise.
40511         (cbranchsi4_real_ge): Likewise.
40512         (cbranchsi4_real_ge): Likewise.
40513         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40514         (sub<mode>3_virt): Likewise.
40515         (cbranchqi4_virt): Likewise.
40516         (cbranchhi4_virt): Likewise.
40517         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40518         always use '[reg+imm]' even when imm is zero.
40519         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40520         (rl78_general_operand): New.
40521         (rl78_nonimmediate_operand): New.
40522         (rl78_nonfar_operand): Use them.
40523         (rl78_nonfar_nonimm_operand): Likewise.
40524         (rl78_stack_based_mem): Fix.
40525         * config/rl78/constraints.md (Ibqi): New.
40526         (IBqi): New.
40527         (Wsa): New.
40528         (Wsf): New.
40529         (Cs1): Fix.
40530         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40531         (iorqi3): Likewise.
40532         (xorqi3): Likewise.
40533         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40534
40535         * config/rl78/constrains (Qs8): New constraint.
40536         * config/rl78/rl78.c (rl78_flags_already_set): New function.
40537         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40538         * config/rl78/rl78-real.md (update_Z): New attribute.
40539         Update patterns to set it.
40540         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40541         shorter compare and branch sequence can be used.
40542         (cbranchhi4_real): Likewise.
40543         (cbranchhi4_real_inverted): Likewise.
40544
40545         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40546         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40547         address space.
40548         * config/rl78/rl78.c (rl78_get_name_encoding): New.
40549         (rl78_option_override): Allow -mes0 only if C.
40550         (characterize_address): Support subregs of symbol_refs.
40551         (rl78_addr_space_address_mode): Move.  Add __near.
40552         (rl78_far_p): Likewise.
40553         (rl78_addr_space_pointer_mode): Likewise.
40554         (rl78_as_legitimate_address): Likewise.
40555         (rl78_addr_space_subset_p): Likewise.
40556         (rl78_addr_space_convert): Likewise.
40557         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40558         symbols with -mes0.
40559         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
40560         addressing.
40561         (rl78_alloc_physical_registers_op1): Change logic to prefer
40562         symbol[BC] addressing.
40563         (frodata_section): New.
40564         (rl78_asm_init_sections): Initialize it.
40565         (rl78_select_section): Put __far readonly symbols in .frodata.
40566         (rl78_make_type_far): New.
40567         (rl78_insert_attributes): Force all readonly symbols to be
40568         __far when -mes0.
40569         (rl78_asm_out_integer): New.
40570         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40571         * config/rl78/rl78.opt (-mes0): New.
40572
40573         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40574         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40575         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40576         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40577         (rl78_saddr_p): New.
40578         (rl78_output_aligned_common): New.
40579         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40580         (rl78_handle_saddr_attribute): New.
40581         (rl78_handle_naked_attribute): New.
40582         (rl78_attribute_table): Add saddr.
40583         (rl78_print_operand_1): Don't print '!' on saddr operands.
40584         (rl78_print_operand_1): Strip encodings.
40585         (rl78_sfr_p): New.
40586         (rl78_strip_name_encoding): New.
40587         (rl78_attrlist_to_encoding): New.
40588         (rl78_encode_section_info): New.
40589         (rl78_asm_init_sections): New.
40590         (rl78_select_section): New.
40591         (rl78_output_labelref): New.
40592         (rl78_output_aligned_common): New.
40593         (rl78_asm_out_integer): New.
40594         (rl78_asm_ctor_dtor): New.
40595         (rl78_asm_constructor): New.
40596         (rl78_asm_destructor): New.
40597
40598         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40599         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40600         (transcode_memory_rtx): Update.
40601         (rl78_expand_epilogue): Use A_REG instead of 0.
40602
40603 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40604
40605         * config/arm/arm-protos.h (struct tune_params): New field
40606         sched_autopref_queue_depth.
40607         * config/arm/arm.c (sched-int.h): Include header.
40608         (arm_first_cycle_multipass_dfa_lookahead_guard,)
40609         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40610         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40611         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40612         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40613         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40614         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40615         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40616         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
40617         * config/arm/t-arm (arm.o): Update.
40618         * haifa-sched.c (update_insn_after_change): Update.
40619         (rank_for_schedule): Use auto-prefetcher model, if requested.
40620         (autopref_multipass_init): New static function.
40621         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40622         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40623         variable for debug dumps.
40624         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40625         (autopref_multipass_dfa_lookahead_guard): New global function that
40626         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40627         (init_h_i_d): Update.
40628         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40629         * sched-int.h (enum autopref_multipass_data_status): New const enum.
40630         (autopref_multipass_data_): Structure for auto-prefetcher data.
40631         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40632         (struct _haifa_insn_data:autopref_multipass_data): New field.
40633         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40634         (autopref_multipass_dfa_lookahead_guard): Declare.
40635
40636 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40637
40638         * rtlanal.c (get_base_term): Handle SCRATCH.
40639
40640 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40641
40642         * config/aarch64/aarch64.c
40643         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40644         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40645         * config/arm/arm.c
40646         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40647         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40648
40649 2015-01-17  Alan Modra  <amodra@gmail.com>
40650
40651         * cprop.c (do_local_cprop): Disallow replacement of fixed
40652         hard registers.
40653
40654 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40655
40656         PR target/62066
40657         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40658         early return 0.
40659
40660 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40661
40662         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40663         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40664
40665 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40666
40667         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40668         * config/arm/thumb1.md: ... Here.
40669
40670 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40671
40672         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40673         TImode for TARGET_32BIT.
40674
40675 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40676
40677         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40678         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40679         as ...
40680         (rs6000_abi_word_mode): New function.
40681
40682 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40683
40684         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40685         instead of UNITS_PER_WORD to describe the size of stack slots.
40686
40687 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40688
40689         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40690         as rs6000_promote_function_mode.  Move comment to there.
40691         (rs6000_promote_function_mode): New function.
40692
40693 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40694
40695         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40696         -mpowerpc64 is active.
40697
40698 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40699
40700         PR middle-end/64353
40701         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40702         virtuals on start.
40703
40704 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40705
40706         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40707         introduced in revision 219724.
40708
40709 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40710             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40711
40712         PR target/64263
40713         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40714         destination is not a GP reg.
40715         (*movdi_aarch64): Likewise.
40716
40717 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
40718
40719         PR target/64623
40720         * config/rs6000/default64.h: Revert ISA change.
40721
40722 2015-01-16  Richard Biener  <rguenther@suse.de>
40723
40724         PR middle-end/64614
40725         * tree-ssa-uninit.c: Include tree-cfg.h.
40726         (MAX_SWITCH_CASES): New define.
40727         (convert_control_dep_chain_into_preds): Handle switch statements.
40728         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40729         (normalize_one_pred_1): Do not split bit-manipulations.
40730         Record (x & CST).
40731
40732 2015-01-16  Richard Biener  <rguenther@suse.de>
40733
40734         PR tree-optimization/64568
40735         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40736         complex load rewriting for TARGET_MEM_REFs.
40737
40738 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
40739
40740         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40741
40742 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
40743
40744         PR target/64149
40745         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40746         variable.
40747         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40748         (aarch64_lra_p): Remove.
40749
40750 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40751
40752         PR target/64363
40753         * ipa-chkp.h (chkp_instrumentable_p): New.
40754         * ipa-chkp.c: Include tree-inline.h.
40755         (chkp_instrumentable_p): New.
40756         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40757         Fix processing of not instrumentable functions.
40758         (chkp_versioning): Use chkp_instrumentable_p. Warn about
40759         not instrumentable functions.
40760         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40761         chkp_instrumentable_p.
40762         * tree-inline.h (copy_forbidden): New.
40763         * tree-inline.c (copy_forbidden): Not static anymore.
40764
40765 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40766
40767         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40768         ptr1, ptr2 unused.
40769
40770 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40771
40772         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40773         type OP_OUT to OP_INOUT.
40774
40775 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40776
40777         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40778         (high x) y) to y if x and y have the same base.
40779
40780 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40781
40782         * config/arm/cortex-a57.md: New.
40783         * config/aarch64/aarch64.md: Include it.
40784         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40785         * config/aarch64/aarch64-tune.md: Regenerate.
40786
40787 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
40788
40789         PR target/64015
40790         * ccmp.c (expand_ccmp_next): New function.
40791         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40792         and compare insn sequence.
40793         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40794         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40795         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40796         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40797         (*ccmp_ior): Changed to ccmp_ior<mode>.
40798         (cmp<mode>): New pattern.
40799         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40800         parameters.
40801         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40802
40803 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
40804
40805         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40806         _mm256_bsrli_epi128): New.
40807         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40808
40809 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40810
40811         * expmed.c (store_bit_field_using_insv): Improve warning message.
40812         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40813
40814 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40815
40816         PR rtl-optimization/64011
40817         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40818         there is partial overflow.
40819
40820 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40821
40822         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40823         prototype.
40824         (nds32_expand_epilogue_v3pop): Likewise.
40825         * config/nds32/nds32.md (sibcall): Define this for sibling call
40826         optimization.
40827         (sibcall_register): Likewise.
40828         (sibcall_immediate): Likewise.
40829         (sibcall_value): Likewise.
40830         (sibcall_value_register): Likewise.
40831         (sibcall_value_immediate): Likewise.
40832         (sibcall_epilogue): Likewise.
40833         (epilogue): Pass false to indicate this is not a sibcall epilogue.
40834         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40835         (nds32_expand_epilogue_v3pop): Likewise.
40836
40837 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40838
40839         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40840         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40841         (return_internal): New.
40842         (return): Define this named pattern.
40843         (simple_return): Define this named pattern.
40844         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40845         pattern instead of unspec_volatile_func_return.
40846         (nds32_expand_epilogue_v3pop): Likewise.
40847         (nds32_can_use_return_insn): New function.
40848
40849 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40850
40851         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40852         * config/nds32/nds32.md (pop25return): New.
40853         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40854         pop25return pattern.
40855
40856 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40857
40858         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40859         -mforbid-fp-as-gp, and -mex9 options.
40860
40861 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40862
40863         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40864         remove -mgp-direct option.
40865
40866 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40867
40868         * doc/invoke.texi (--param early-inlining-insns): Update default value.
40869         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40870
40871 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40872
40873         * ipa-inline.c (inline_small_functions): Work around hints
40874         cache issue.
40875
40876 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
40877
40878         PR target/59710
40879         * doc/invoke.texi (Option Summary): Document new Nios II
40880         -mgpopt= syntax.
40881         (Nios II Options): Likewise.
40882         * config/nios2/nios2.opt: Add -mgpopt= option support.
40883         Modify existing -mgpopt and -mno-gpopt options to be aliases.
40884         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40885         * config/nios2/nios2.c (nios2_option_override): Adjust
40886         -mgpopt defaulting.
40887         (nios2_in_small_data_p): Return true for explicit small data
40888         sections even with -G0.
40889         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40890         option choices.
40891
40892 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40893
40894         PR ipa/64612
40895         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40896         of comdat locals.
40897         (inline_call): Fix removal of aliases.
40898
40899 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40900
40901         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40902         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40903         * opts.c (common_handle_option): Add -fsanitize=vptr.
40904         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40905         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40906         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40907         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40908         (ubsan_expand_vptr_ifn): New prototype.
40909         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40910         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40911         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40912         expand_LOOP_VECTORIZED): Make argument nameless, remove
40913         ATTRIBUTE_UNUSED.
40914         (expand_UBSAN_VPTR): New function.
40915         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40916         in fn spec.
40917         (UBSAN_VPTR): New internal function.
40918         * sanopt.c (tree_map_traits): Renamed to ...
40919         (sanopt_tree_map_traits): ... this.
40920         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40921         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40922         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
40923         (maybe_optimize_ubsan_vptr_ifn): New function.
40924         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40925         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
40926         -fsanitize=vptr.
40927         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40928         internal calls like pure functions for aliasing, even when they
40929         have other side-effects that prevent making them ECF_PURE.
40930         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40931         (ubsan_expand_vptr_ifn): New function.
40932
40933 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
40934
40935         PR rtl-optimization/64110
40936         * stmt.c (parse_output_constraint): Process '^' and '$'.
40937         (parse_input_constraint): Ditto.
40938         * lra-constraints.c (process_alt_operands): Process the new
40939         constraints.
40940         * ira-costs.c (record_reg_classes): Process the new constraint
40941         '^'.
40942         * genoutput.c (indep_constraints): Add '^' and '$'.
40943         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40944         * doc/md.texi: Add description of the new constraints.
40945
40946 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
40947             Bernd Schmidt  <bernds@codesourcery.com>
40948             Cesar Philippidis  <cesar@codesourcery.com>
40949             James Norris  <jnorris@codesourcery.com>
40950             Tom de Vries  <tom@codesourcery.com>
40951             Ilmir Usmanov  <i.usmanov@samsung.com>
40952             Dmitry Bocharnikov  <dmitry.b@samsung.com>
40953             Evgeny Gavrin  <e.gavrin@samsung.com>
40954             Jakub Jelinek  <jakub@redhat.com>
40955
40956         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40957         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40958         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40959         New function types.
40960         * builtins.c: Include "gomp-constants.h".
40961         (expand_builtin_acc_on_device): New function.
40962         (expand_builtin, is_inexpensive_builtin): Handle
40963         BUILT_IN_ACC_ON_DEVICE.
40964         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40965         New macros.
40966         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40967         flag_openmp.
40968         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40969         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40970         i386/intelmic-offload.h.
40971         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40972         to libgomp and its dependencies.
40973         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40974         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40975         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40976         * config/ia64/hpux.h (LIB_SPEC): Likewise.
40977         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40978         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40979         * doc/generic.texi: Update for OpenACC changes.
40980         * doc/gimple.texi: Likewise.
40981         * doc/invoke.texi: Likewise.
40982         * doc/sourcebuild.texi: Likewise.
40983         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40984         GF_OMP_FOR_KIND_OACC_LOOP.
40985         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40986         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40987         GF_OMP_TARGET_KIND_OACC_UPDATE,
40988         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40989         Dump more data.
40990         * gimple.c: Update comments for OpenACC changes.
40991         * gimple.def: Likewise.
40992         * gimple.h: Likewise.
40993         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40994         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40995         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40996         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40997         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40998         appropriate place.
40999         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41000         * gimplify.c: Include "gomp-constants.h".
41001         Update comments for OpenACC changes.
41002         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41003         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41004         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41005         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41006         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41007         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41008         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41009         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41010         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41011         OMP_CLAUSE_SEQ.
41012         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41013         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41014         OMP_CLAUSE_SET_MAP_KIND.
41015         (gimplify_oacc_cache): New function.
41016         (gimplify_omp_for): Handle OACC_LOOP.
41017         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41018         OACC_DATA.
41019         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41020         OACC_EXIT_DATA, OACC_UPDATE.
41021         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41022         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41023         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41024         (gimplify_body): Consider flag_openacc next to flag_openmp.
41025         * lto-streamer-out.c: Include "gomp-constants.h".
41026         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41027         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41028         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41029         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41030         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41031         (BUILT_IN_ACC_ON_DEVICE): New builtins.
41032         * omp-low.c: Include "gomp-constants.h".
41033         Update comments for OpenACC changes.
41034         (struct omp_context): Add reduction_map, gwv_below, gwv_this
41035         members.
41036         (extract_omp_for_data, use_pointer_for_field, install_var_field)
41037         (new_omp_context, delete_omp_context, scan_sharing_clauses)
41038         (create_omp_child_function, scan_omp_for, scan_omp_target)
41039         (check_omp_nesting_restrictions, lower_reduction_clauses)
41040         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41041         Update for OpenACC changes.
41042         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41043         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41044         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41045         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41046         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41047         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
41048         OMP_CLAUSE_MAP_*.
41049         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41050         Handle GF_OMP_FOR_KIND_OACC_LOOP.
41051         (expand_omp_target, lower_omp_target): Handle
41052         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41053         GF_OMP_TARGET_KIND_OACC_UPDATE,
41054         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41055         GF_OMP_TARGET_KIND_OACC_DATA.
41056         (pass_expand_omp::execute, execute_lower_omp)
41057         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41058         flag_openmp.
41059         (offload_symbol_decl): New variable.
41060         (oacc_get_reduction_array_id, oacc_max_threads)
41061         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41062         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41063         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41064         (oacc_gimple_assign, oacc_initialize_reduction_data)
41065         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41066         functions.
41067         (is_targetreg_ctx): Remove function.
41068         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41069         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41070         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41071         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41072         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41073         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41074         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41075         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41076         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41077         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41078         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41079         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41080         * tree-core.h: Update comments for OpenACC changes.
41081         (enum omp_clause_map_kind): Remove.
41082         (struct tree_omp_clause): Change type of map_kind member from enum
41083         omp_clause_map_kind to unsigned char.
41084         * tree-inline.c: Update comments for OpenACC changes.
41085         * tree-nested.c: Likewise.  Include "gomp-constants.h".
41086         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41087         (convert_tramp_reference_stmt, convert_gimple_call): Update for
41088         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41089         OMP_CLAUSE_SET_MAP_KIND.
41090         * tree-pretty-print.c: Include "gomp-constants.h".
41091         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41092         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41093         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41094         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41095         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41096         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
41097         instead of OMP_CLAUSE_MAP_*.
41098         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41099         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41100         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41101         * tree-streamer-in.c: Include "gomp-constants.h".
41102         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41103         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
41104         * tree-streamer-out.c: Include "gomp-constants.h".
41105         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41106         OMP_CLAUSE_MAP_*.
41107         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41108         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41109         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41110         * tree.c (omp_clause_num_ops): Update accordingly.
41111         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41112         Likewise.
41113         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41114         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41115         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41116         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41117         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41118         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41119         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41120         (OMP_CLAUSE_SET_MAP_KIND): New macro.
41121         * varpool.c (varpool_node::get_create): Consider flag_openacc next
41122         to flag_openmp.
41123         * config/i386/intelmic-offload.h: New file.
41124         * config/nvptx/offload.h: Likewise.
41125
41126 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41127
41128         * explow.h: Remove duplicate contents.
41129         * dojump.h: Likewise.
41130
41131 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
41132
41133         * arm.c (arm_xgene_tune): Add default initializer for instruction
41134         fusion.
41135
41136 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41137
41138         PR ipa/64068
41139         PR ipa/64559
41140         * ipa.c (symbol_table::remove_unreachable_nodes):
41141         Do not put abstract origins into boundary.
41142
41143 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
41144
41145         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41146         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41147
41148 2015-01-15  Steve Ellcey  <sellcey@mips.com>
41149
41150         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41151         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41152         builtins.def, and chkp-builtins.def.
41153
41154 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
41155
41156         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41157         ISA 2.7 (POWER8).
41158
41159 2015-01-15  Richard Biener  <rguenther@suse.de>
41160
41161         PR tree-optimization/61743
41162         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41163         information on PHIs for some simple cases.
41164
41165 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41166
41167         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41168         Include xgene1.md.
41169         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41170         * config/arm/arm-cores.def (xgene1): New entry.
41171         * config/arm/arm-tables.opt: Regenerate.
41172         * config/arm/arm-tune.md: Regenerate.
41173         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41174
41175 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41176
41177         * tree-if-conv.c: Include hash-map.h.
41178         (aggressive_if_conv): New variable.
41179         (fold_build_cond_expr): Add simplification of non-zero condition.
41180         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41181         destination block is not always executed.
41182         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41183         than two predecessors if AGGRESSIVE_IF_CONV is true.
41184         (if_convertible_stmt_p): Fix commentary.
41185         (all_preds_critical_p): New function.
41186         (has_pred_critical_p): New function.
41187         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41188         BB can have more than two predecessors and all incoming edges can be
41189         critical.
41190         (predicate_bbs): Skip predication for loop exit block, use build2_loc
41191         to compute predicate for true edge.
41192         (find_phi_replacement_condition): Delete this function.
41193         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41194         Allow interchange PHI arguments if EXTENDED is false.
41195         Change check that block containing reduction statement candidate
41196         is predecessor of phi-block since phi may have more than two arguments.
41197         (phi_args_hash_traits): New helper structure.
41198         (struct phi_args_hash_traits): New type.
41199         (phi_args_hash_traits::hash): New function.
41200         (phi_args_hash_traits::equal_keys): New function.
41201         (gen_phi_arg_condition): New function.
41202         (predicate_scalar_phi): Add handling of phi nodes with more than two
41203         arguments, delete COND and TRUE_BB arguments, insert body of
41204         find_phi_replacement_condition to predicate ordinary phi nodes.
41205         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41206         delete call of find_phi_replacement_condition and invoke
41207         predicate_scalar_phi with two arguments.
41208         (insert_gimplified_predicates): Add assert that non-predicated block
41209         don't have statements to insert.
41210         (ifcvt_split_critical_edges): New function.
41211         (ifcvt_split_def_stmt): Likewise.
41212         (ifcvt_walk_pattern_tree): Likewise.
41213         (stmt_is_root_of_bool_pattern): Likewise.
41214         (ifcvt_repair_bool_pattern): Likewise.
41215         (ifcvt_local_dce): Likewise.
41216         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41217         is copy of inner or outer loop force_vectorize field, invoke
41218         ifcvt_split_critical_edges, ifcvt_local_dce and
41219         ifcvt_repair_bool_pattern for aggressive if-conversion.
41220
41221 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
41222
41223         * config/aarch64/aarch64.md: Include xgene1.md.
41224         * config/aarch64/xgene1.md: New file.
41225
41226 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41227
41228         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41229         xgene1 (APM XGene-1) core definition.
41230         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41231         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41232         * doc/invoke.texi: Document -mcpu=xgene1.
41233
41234 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41235
41236         * dojump.h: New header file.
41237         * explow.h: Likewise.
41238         * expr.h: Remove includes.
41239         Move expmed.c prototypes to expmed.h.
41240         Move dojump.c prototypes to dojump.h.
41241         Move alias.c prototypes to alias.h.
41242         Move explow.c prototypes to explow.h.
41243         Move calls.c prototypes to calls.h.
41244         Move emit-rtl.c prototypes to emit-rtl.h.
41245         Move varasm.c prototypes to varasm.h.
41246         Move stmt.c prototypes to stmt.h.
41247         (saved_pending_stack_adjust): Move to dojump.h.
41248         (adjust_address): Move to explow.h.
41249         (adjust_address_nv): Move to emit-rtl.h.
41250         (adjust_bitfield_address): Likewise.
41251         (adjust_bitfield_address_size): Likewise.
41252         (adjust_bitfield_address_nv): Likewise.
41253         (adjust_automodify_address_nv): Likewise.
41254         * explow.c (expr_size): Move to expr.c.
41255         (int_expr_size): Likewise.
41256         (tree_expr_size): Likewise.
41257         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41258         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41259         * genemit.c (main): Generate includes statistics.h, real.h,
41260         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41261         stmt.h.
41262         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41263         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41264         explow.h, emit-rtl.h, stmt.h.
41265         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41266         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41267         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41268         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41269         emit-rtl.h, varasm.h, stmt.h.
41270         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41271         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41272         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41273         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41274         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41275         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41276         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41277         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41278         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41279         tm.h tree.h varasm.h vec.h wide-int.h.
41280         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41281         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41282         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41283         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41284         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41285         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41286         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41287         * loop-iv.c: Likewise.
41288         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41289         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41290         statistics.h stmt.h tree.h varasm.h wide-int.h.
41291         * lra-constraints.c: Likewise.
41292         * lra-eliminations.c: Likewise.
41293         * lra-lives.c: Likewise.
41294         * lra-remat.c: Likewise.
41295         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41296         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41297         statistics.h stmt.h tree.h varasm.h wide-int.h.
41298         * hw-doloop.c: Likewise.
41299         * ira-color.c: Likewise.
41300         * ira-emit.c: Likewise.
41301         * loop-doloop.c: Likewise.
41302         * loop-invariant.c: Likewise.
41303         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41304         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41305         statistics.h stmt.h tree.h varasm.h wide-int.h.
41306         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41307         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41308         statistics.h stmt.h tree.h varasm.h wide-int.h.
41309         * combine-stack-adj.c: Likewise.
41310         * cse.c: Likewise.
41311         * ddg.c: Likewise.
41312         * ifcvt.c: Likewise.
41313         * ira-costs.c: Likewise.
41314         * jump.c: Likewise.
41315         * lra-coalesce.c: Likewise.
41316         * lra-spills.c: Likewise.
41317         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41318         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41319         stmt.h varasm.h wide-int.h.
41320         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41321         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41322         varasm.h.
41323         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41324         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41325         statistics.h stmt.h varasm.h wide-int.h.
41326         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41327         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41328         varasm.h wide-int.h.
41329         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41330         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41331         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41332         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41333         statistics.h stmt.h.
41334         * config/tilepro/tilepro.c: Likewise.
41335         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41336         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41337         * config/pdp11/pdp11.c: Likewise.
41338         * config/xtensa/xtensa.c: Likewise.
41339         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41340         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41341         varasm.h.
41342         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41343         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41344         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41345         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41346         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41347         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41348         * rtl-chkp.c: Likewise.
41349         * tree-chkp-opt.c: Likewise.
41350         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41351         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41352         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41353         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41354         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41355         statistics.h stmt.h.
41356         * tree-vect-data-refs.c: Likewise.
41357         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41358         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41359         rtl.h statistics.h stmt.h varasm.h.
41360         * internal-fn.c: Likewise.
41361         * ipa-icf-gimple.c: Likewise.
41362         * lto-section-out.c: Likewise.
41363         * tree-data-ref.c: Likewise.
41364         * tree-nested.c: Likewise.
41365         * tree-outof-ssa.c: Likewise.
41366         * tree-predcom.c: Likewise.
41367         * tree-pretty-print.c: Likewise.
41368         * tree-scalar-evolution.c: Likewise.
41369         * tree-ssa-strlen.c: Likewise.
41370         * tree-vect-loop.c: Likewise.
41371         * tree-vect-patterns.c: Likewise.
41372         * tree-vect-slp.c: Likewise.
41373         * tree-vect-stmts.c: Likewise.
41374         * tsan.c: Likewise.
41375         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41376         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41377         stmt.h.
41378         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41379         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41380         statistics.h stmt.h varasm.h.
41381         * loop-unroll.c: Likewise.
41382         * ubsan.c: Likewise.
41383         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41384         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41385         stmt.h varasm.h.
41386         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41387         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41388         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41389         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41390         statistics.h stmt.h.
41391         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41392         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41393         statistics.h stmt.h varasm.h.
41394         * gimple-match-head.c: Likewise.
41395         * lto-cgraph.c: Likewise.
41396         * lto-section-in.c: Likewise.
41397         * lto-streamer-in.c: Likewise.
41398         * lto-streamer-out.c: Likewise.
41399         * tree-affine.c: Likewise.
41400         * tree-cfg.c: Likewise.
41401         * tree-cfgcleanup.c: Likewise.
41402         * tree-if-conv.c: Likewise.
41403         * tree-into-ssa.c: Likewise.
41404         * tree-ssa-alias.c: Likewise.
41405         * tree-ssa-copyrename.c: Likewise.
41406         * tree-ssa-dse.c: Likewise.
41407         * tree-ssa-forwprop.c: Likewise.
41408         * tree-ssa-live.c: Likewise.
41409         * tree-ssa-math-opts.c: Likewise.
41410         * tree-ssa-pre.c: Likewise.
41411         * tree-ssa-sccvn.c: Likewise.
41412         * tree-tailcall.c: Likewise.
41413         * tree-vect-generic.c: Likewise.
41414         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41415         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41416         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41417         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41418         * varasm.c: Likewise.
41419         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41420         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41421         varasm.h.
41422         * init-regs.c: Likewise.
41423         * ira.c: Likewise.
41424         * omp-low.c: Likewise.
41425         * stack-ptr-mod.c: Likewise.
41426         * tree-ssa-reassoc.c: Likewise.
41427         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41428         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41429         varasm.h.
41430         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41431         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41432         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41433         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41434         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41435         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41436         * tree-ssa-phiopt.c: Likewise.
41437         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41438         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41439         * config/fr30/fr30.c: Likewise.
41440         * config/frv/frv.c: Likewise.
41441         * expr.c: Likewise.
41442         * final.c: Likewise.
41443         * optabs.c: Likewise.
41444         * passes.c: Likewise.
41445         * simplify-rtx.c: Likewise.
41446         * stmt.c: Likewise.
41447         * toplev.c: Likewise.
41448         * var-tracking.c: Likewise.
41449         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41450         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41451         * lower-subreg.c: Likewise.
41452         * postreload-gcse.c: Likewise.
41453         * ree.c: Likewise.
41454         * reginfo.c: Likewise.
41455         * store-motion.c: Likewise.
41456         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41457         fixed-value.h hashtab.h real.h stmt.h varasm.h.
41458         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41459         fixed-value.h hashtab.h statistics.h stmt.h.
41460         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41461         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41462         * except.c: Likewise.
41463         * explow.c: Likewise.
41464         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41465         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41466         varasm.h.
41467         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41468         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41469         * tree-ssa-structalias.c: Likewise.
41470         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41471         fixed-value.h insn-config.h real.h statistics.h.
41472         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41473         fixed-value.h insn-config.h real.h statistics.h stmt.h.
41474         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41475         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41476         * cfgbuild.c: Likewise.
41477         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41478         fixed-value.h real.h rtl.h statistics.h stmt.h.
41479         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41480         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41481         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41482         fixed-value.h real.h statistics.h stmt.h.
41483         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41484         fixed-value.h real.h statistics.h stmt.h varasm.h.
41485         * cprop.c: Likewise.
41486         * modulo-sched.c: Likewise.
41487         * postreload.c: Likewise.
41488         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41489         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41490         statistics.h stmt.h varasm.h.
41491         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41492         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41493         rtl.h statistics.h stmt.h varasm.h.
41494         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41495         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41496         varasm.h.
41497         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41498         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41499         varasm.h.
41500         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41501         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41502         varasm.h.
41503         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41504         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41505         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41506         function.h real.h statistics.h stmt.h varasm.h.
41507         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41508         insn-config.h real.h statistics.h stmt.h.
41509         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41510         statistics.h stmt.h.
41511         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41512         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41513         statistics.h stmt.h varasm.h.
41514         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41515         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41516         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41517         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41518         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41519         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41520         statistics.h stmt.h varasm.h.
41521         * ipa-polymorphic-call.c: Likewise.
41522         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41523         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41524         statistics.h stmt.h.
41525         * config/c6x/c6x.c: Likewise.
41526         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41527         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41528         statistics.h stmt.h varasm.h.
41529         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41530         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41531         stmt.h varasm.h.
41532         * ipa-split.c: Likewise.
41533         * tree-eh.c: Likewise.
41534         * tree-ssa-dce.c: Likewise.
41535         * tree-ssa-loop-niter.c: Likewise.
41536         * tree-vrp.c: Likewise.
41537         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41538         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41539         stmt.h.
41540         * config/nds32/nds32-fp-as-gp.c: Likewise.
41541         * config/nds32/nds32-intrinsic.c: Likewise.
41542         * config/nds32/nds32-isr.c: Likewise.
41543         * config/nds32/nds32-md-auxiliary.c: Likewise.
41544         * config/nds32/nds32-memory-manipulation.c: Likewise.
41545         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41546         * config/nds32/nds32-predicates.c: Likewise.
41547         * config/nds32/nds32.c: Likewise.
41548         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41549         fixed-value.h hashtab.h real.h statistics.h.
41550         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41551         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41552         * config/arm/arm.c: Likewise.
41553         * config/avr/avr.c: Likewise.
41554         * config/bfin/bfin.c: Likewise.
41555         * config/h8300/h8300.c: Likewise.
41556         * config/i386/i386.c: Likewise.
41557         * config/ia64/ia64.c: Likewise.
41558         * config/iq2000/iq2000.c: Likewise.
41559         * config/m32c/m32c.c: Likewise.
41560         * config/m32r/m32r.c: Likewise.
41561         * config/m68k/m68k.c: Likewise.
41562         * config/mcore/mcore.c: Likewise.
41563         * config/mep/mep.c: Likewise.
41564         * config/mips/mips.c: Likewise.
41565         * config/mn10300/mn10300.c: Likewise.
41566         * config/moxie/moxie.c: Likewise.
41567         * config/pa/pa.c: Likewise.
41568         * config/rl78/rl78.c: Likewise.
41569         * config/rx/rx.c: Likewise.
41570         * config/s390/s390.c: Likewise.
41571         * config/sh/sh.c: Likewise.
41572         * config/sparc/sparc.c: Likewise.
41573         * config/spu/spu.c: Likewise.
41574         * config/stormy16/stormy16.c: Likewise.
41575         * config/v850/v850.c: Likewise.
41576         * config/vax/vax.c: Likewise.
41577         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41578         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41579         * config/msp430/msp430.c: Likewise.
41580         * predict.c: Likewise.
41581         * value-prof.c: Likewise.
41582         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41583         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41584         * config/microblaze/microblaze.c: Likewise.
41585         * config/nios2/nios2.c: Likewise.
41586         * config/rs6000/rs6000.c: Likewise.
41587         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41588         insn-config.h real.h rtl.h statistics.h stmt.h.
41589         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41590         insn-config.h real.h statistics.h stmt.h.
41591         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41592         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41593         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41594         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41595         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41596         fixed-value.h real.h statistics.h stmt.h.
41597         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41598         fixed-value.h statistics.h stmt.h.
41599         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41600         stmt.h.
41601
41602 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41603
41604         * gengtype.c (create_user_defined_type): Workaround
41605         -Wmaybe-uninitialized false positives.
41606         * cse.c (fold_rtx): Likewise.
41607         * loop-invariant.c (gain_for_invariant): Likewise.
41608
41609 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
41610
41611         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41612         set the memory attributes in all cases but clear MEM_EXPR if need be.
41613
41614 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41615
41616         PR tree-optimization/64434
41617         * cfgexpand.c (reorder_operands): New function.
41618         (expand_gimple_basic_block): Insert call of reorder_operands if
41619         optimized is true.
41620
41621 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
41622
41623         * config/mips/micromips.md (*swp): Remove explicit parallel.
41624         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41625         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41626         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41627         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41628         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41629         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41630         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41631         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41632         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41633         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41634         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41635         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41636         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41637         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41638         (mips_wrdsp): Likewise.
41639         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41640         parallel.
41641         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41642         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41643         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41644         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41645         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41646         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41647         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41648         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41649         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41650
41651 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41652
41653         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41654         (mips_print_operand): Support 'y' to print exact log2 in decimal
41655         of a const_int.
41656         * config/mips/mips.h (ISA_HAS_LSA): New define.
41657         (ISA_HAS_DLSA): Likewise.
41658         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41659         * config/mips/predicates.md (const_immlsa_operand): New predicate.
41660
41661 2015-01-15  Martin Liska  <mliska@suse.cz>
41662
41663         PR target/64377
41664         * optc-save-gen.awk: Add support for array types.
41665
41666 2015-01-15  Richard Biener  <rguenther@suse.de>
41667
41668         PR middle-end/64365
41669         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41670         for MEM_REF access functions with the same base can never partially
41671         overlap.
41672
41673 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
41674
41675         * common.opt: New option -fstack-protector-explicit.
41676         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41677         (stack_protect_decl_phase): Handle stack_protect attribute for
41678         explicit stack protection requests.
41679         (expand_used_vars): Similarly.
41680         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41681         * doc/extend.texi: Add documentation for "stack_protect" attribute.
41682         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41683
41684 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
41685
41686         PR target/53988
41687         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41688         reg-reg copies.
41689         (sh_extending_set_of_reg): New struct.
41690         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41691         sh_remove_reg_dead_or_unused_notes): New Declarations.
41692         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41693         sh_find_extending_set_of_reg, sh_split_tst_subregs,
41694         sh_extending_set_of_reg::use_as_extended_reg): New functions.
41695         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41696         convert to insn_and_split and use new function sh_split_tst_subregs.
41697
41698 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
41699
41700         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41701         option.
41702         (Optimization Options): Move -fuse-ld documentation to...
41703         (Link Options): ...here.
41704
41705 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41706
41707         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41708         offsets.
41709         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41710         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41711         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41712         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41713         instead of ZR for the memory operand of LL/SC.
41714         (compare_and_swap_12, sync_add<mode>): Likewise.
41715         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41716         (sync_new_<optab>_12, sync_nand_12): Likewise.
41717         (sync_old_nand_12, sync_new_nand_12): Likewise.
41718         (sync_sub<mode>, sync_old_add<mode>): Likewise.
41719         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41720         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41721         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41722         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41723         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41724         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41725         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41726         * doc/md.texi (ZC): Update description.
41727
41728 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41729
41730         * builtins.c (expand_builtin_atomic_exchange): Remove error when
41731         memory model is CONSUME.
41732         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41733         expand_builtin_atomic_store): Change invalid memory model errors to
41734         warnings.
41735         (expand_builtin_atomic_clear): Change invalid model errors to warnings
41736         and issue warning for CONSUME.
41737
41738 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
41739
41740         * lto-cgraph: Update function comments for
41741         lto_symtab_encoder_encode_*.
41742
41743 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41744
41745         * Makefile.in (site.exp): Do not set ENABLE_LTO.
41746
41747 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41748
41749         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41750         * lto-cgraph.c (select_what_to_stream): Remove argument, use
41751         lto_stream_offload_p instead.
41752         * lto-streamer.h (select_what_to_stream): Remove argument.
41753         * passes.c (ipa_write_summaries): Likewise.
41754         * tree-pass.h (ipa_write_summaries): Likewise.
41755
41756 2015-01-14  Richard Biener  <rguenther@suse.de>
41757
41758         PR tree-optimization/59354
41759         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41760         groups larger than the slp group size as having gaps.
41761
41762 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41763
41764         PR middle-end/59448
41765         * builtins.c (get_memmodel): Promote consume to acquire always.
41766
41767 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41768
41769         PR target/64386
41770         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41771         V32HImode.
41772
41773 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41774
41775         PR target/64393
41776         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41777         Enable AVX512BW.
41778         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41779         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41780         AVX512VBMI, as it implies AVX512BW.
41781
41782 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41783
41784         PR target/64387
41785         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41786         (vec_unpacks_hi_v16sf): Ditto.
41787
41788 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41789
41790         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41791         is not available.
41792
41793 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41794
41795         * doc/invoke.texi (mapcs): Mention deprecation.
41796         (mapcs-frame): Likewise.
41797
41798 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41799
41800         PR target/64453
41801         * config/arm/arm.c (callee_saved_reg_p): Define.
41802         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41803         register is callee saved instead of !call_used_regs[reg].
41804         (thumb1_compute_save_reg_mask): Likewise.
41805
41806 2015-01-14  Hale Wang  <hale.wang@arm.com>
41807
41808         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41809         Cortex-M7.
41810
41811 2015-01-14  Richard Biener  <rguenther@suse.de>
41812
41813         PR lto/64415
41814         * tree-inline.c (insert_debug_decl_map): Check destination
41815         function MAY_HAVE_DEBUG_STMTS.
41816         (insert_init_debug_bind): Likewise.
41817         (insert_init_stmt): Remove redundant check.
41818         (remap_gimple_stmt): Drop debug stmts if the destination
41819         function has var-tracking assignments disabled.
41820
41821 2015-01-14  Martin Liska  <mliska@suse.cz>
41822
41823         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41824         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41825
41826 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41827
41828         PR target/64460
41829         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41830         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41831
41832 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41833
41834         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41835         level from an ARCH; do not inject the default.
41836         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41837         MIPS_ISA_LEVEL_SPEC.
41838         (MIPS_ISA_NAN2008_SPEC): Update comment.
41839         (BASE_DRIVER_SELF_SPECS): Likewise.
41840         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41841         MIPS_DEFAULT_ISA_LEVEL_SPEC.
41842         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41843         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41844         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41845
41846 2015-01-14  Richard Biener  <rguenther@suse.de>
41847
41848         PR tree-optimization/64493
41849         PR tree-optimization/64495
41850         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41851         assign the proper vectorized PHI to the inner loop exit PHIs.
41852
41853 2015-01-14  Joey Ye  <joey.ye@arm.com>
41854
41855         * config/arm/arm.c (arm_compute_save_reg_mask):
41856         Do not save lr in case of tail call.
41857         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41858
41859 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
41860
41861         * tree-vrp.c (check_array_ref): Emit more warnings
41862         for warn_array_bounds >= 2.
41863         * common.opt: New option -Warray-bounds=.
41864         * doc/invoke.texi: Document -Warray-bounds=.
41865
41866 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
41867
41868         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41869         (mforbid-fp-as-gp): Remove.
41870         (mex9): Remove.
41871         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41872         (nds32_symbol_load_store_p): Remove.
41873         (nds32_fp_as_gp_check_available): Clean up implementation.
41874         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41875         cases.
41876         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41877         fp-as-gp and ex9 cases.
41878
41879 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41880
41881         * tree-profile.c (init_ic_make_global_vars): Drop workaround
41882         for bintuils bug 14342.
41883         (init_ic_make_global_vars): Likewise.
41884         (gimple_init_edge_profiler): Likewise.
41885         (gimple_gen_ic_func_profiler): Likewise.
41886
41887 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
41888
41889         * ipa-inline.c (inline_small_functions): Swap the operands in
41890         enum.
41891
41892 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41893
41894         PR ipa/64481
41895         * ipa-inline-analysis.c (node_growth_cache): Remove.
41896         (initialize_growth_caches): Do not initialize it.
41897         (free_growth_caches): Do not free it.
41898         (do_estimate_growth): Rename to ...
41899         (estimate_growth): ... this one; drop growth cache code.
41900         (growth_likely_positive): Always go the heuristics way.
41901         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41902         (reset_edge_caches): Do not reset node growth.
41903         (heap_edge_removal_hook): Do not maintain cache.
41904         (inline_small_functions): Likewise; strenghten sanity check.
41905         (ipa_inline): Do not maintain caches.
41906         * ipa-inline.h (node_growth_cache): Remove.
41907         (do_estimate_growth): Remove to ...
41908         (estimate_growth): this one; remove inline version.
41909         (reset_node_growth_cache): Remove.
41910
41911 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41912
41913         PR ipa/64565
41914         * ipa-inline.c (inline_small_functions): Update callee keys after
41915         resolving speculation
41916         (inline_small_functions): Always check monotonicity of the queue.
41917
41918 2015-01-13  Marek Polacek  <polacek@redhat.com>
41919
41920         PR middle-end/64391
41921         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41922
41923 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41924
41925         PR rtl-optimization/64286
41926         * ree.c (combine_reaching_defs): Move part of comment earlier,
41927         remove !SCALAR_INT_MODE_P check.
41928         (add_removable_extension): Don't add vector mode
41929         extensions if all uses of the source register aren't the same
41930         vector extensions.
41931
41932 2015-01-13  Renlin Li  <renlin.li@arm.com>
41933
41934         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41935         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41936
41937 2015-01-13  Martin Liska  <mliska@suse.cz>
41938
41939         * ipa-icf.c (sem_function::equals_private): Call new functions
41940         cl_target_option_print_diff and cl_optimization_print_diff.
41941         * optc-save-gen.awk (cl_target_option_print_diff): New function.
41942         (cl_optimization_print_diff): Likewise.
41943         * opth-gen.awk: Likewise.
41944
41945 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
41946
41947         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41948         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41949         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41950         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41951         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41952         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41953
41954 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41955
41956         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41957         instead of src mode.
41958
41959 2015-01-13  Richard Biener  <rguenther@suse.de>
41960
41961         PR lto/64373
41962         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41963         DECL_CONTEXT.
41964
41965 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41966
41967         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41968         volatile mems.
41969         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41970
41971 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41972
41973         PR middle-end/63974
41974         * cfgexpand.c (expand_computed_goto): Don't call
41975         convert_memory_address here.
41976
41977 2015-01-13  Richard Biener  <rguenther@suse.de>
41978
41979         PR tree-optimization/64406
41980         * tree-loop-distibution.c (pass_loop_distribution::execute):
41981         Reset the SCEV hashtable if we distributed anything.
41982
41983 2015-01-13  Richard Biener  <rguenther@suse.de>
41984
41985         PR tree-optimization/64404
41986         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41987         SLP types for CSEd loads.
41988
41989 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41990
41991         PR tree-optimization/64436
41992         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41993         merge of two symbolic numbers for a bitwise OR to ...
41994         (perform_symbolic_merge): This. Also fix computation of the range and
41995         end of the symbolic number corresponding to the result of a bitwise OR.
41996
41997 2015-01-13  Richard Biener  <rguenther@suse.de>
41998
41999         PR tree-optimization/64568
42000         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42001         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42002
42003 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42004
42005         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42006         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42007
42008 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42009
42010         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42011         target-specific symbol_ref flag.
42012         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42013         resides in rodata section.
42014         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42015         (nds32_encode_section_info): New function.
42016
42017 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42018
42019         * config/nds32/nds32.md (call): Use pseudo instruction bal which
42020         clobbers TA_REGNUM if large code model is specified.
42021         (call_register): Likewise.
42022         (call_immediate): Likewise.
42023         (call_value): Likewise.
42024         (call_value_register): Likewise.
42025         (call_value_immediate): Likewise.
42026
42027 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42028
42029         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42030         (TARGET_CMODEL_MEDIUM): New macro.
42031         (TARGET_CMODEL_LARGE): New macro.
42032         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42033         code model setting in assembly code.
42034
42035 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42036
42037         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42038         Remove MASK_GP_DIRECT flag.
42039         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42040         one of the multilib default options.
42041         * config/nds32/nds32.opt (mgp-direct): Remove.
42042         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42043         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
42044
42045 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42046
42047         * config/nds32/nds32.opt (mcmodel): Add new option.
42048         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42049         to describe code model.
42050
42051 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
42052
42053         PR target/64479
42054         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42055
42056 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
42057
42058         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42059         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42060         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42061         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42062         __builtin_sh_set_fpscr.
42063
42064 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42065
42066         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42067         after a funtion name just to indicate it is a function.
42068         ([-fsanitize-undefined-trap-on-error]): Likewise.
42069         ([-fdbg-cnt=]): Likewise.
42070         ([-mmemcpy]): Likewise.
42071         ([-mflush-func]): Likewise.
42072         ([-msynci]): Likewise.
42073
42074 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42075
42076         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42077         example.
42078
42079 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
42080
42081         PR tree-optimization/64563
42082         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42083         instead of != VR_VARYING.
42084
42085         PR target/64513
42086         * config/i386/i386.c (ix86_expand_prologue): Add
42087         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42088
42089         PR tree-optimization/64454
42090         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42091         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42092         for signed or [0, op1 - 1] for unsigned modulo.
42093         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42094         even if op1 does not satisfy integer_pow2p.
42095
42096         PR other/64370
42097         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42098
42099 2015-01-12  Jeff Law  <law@redhat.com>
42100
42101         PR target/64461
42102         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42103         (trunchiqi2, truncsihi2): Similarly.
42104
42105         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42106         rather than calling F.
42107
42108 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42109
42110         * tsan.c (instrument_expr): Use force_gimple_operand.
42111         Use may_be_nonaddressable_p instead of is_gimple_addressable.
42112
42113 2015-01-12  Richard Biener  <rguenther@suse.de>
42114
42115         PR tree-optimization/64530
42116         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42117         back dr1.
42118
42119 2015-01-12  Richard Biener  <rguenther@suse.de>
42120
42121         PR middle-end/64357
42122         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42123         latches properly.
42124
42125 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42126
42127         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42128         Cortex-A17 tuning parameters.
42129         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42130
42131 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42132
42133         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42134         * config/arm/arm.c (arm_macro_fusion_p): New function.
42135         (arm_macro_fusion_pair_p): Likewise.
42136         (TARGET_SCHED_MACRO_FUSION_P): Define.
42137         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42138         (ARM_FUSE_NOTHING): Likewise.
42139         (ARM_FUSE_MOVW_MOVT): Likewise.
42140         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42141         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42142         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42143         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42144         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42145         arm_cortex_a5_tune): Specify fuseable_ops value.
42146
42147 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
42148
42149         PR bootstrap/64561
42150         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42151         test for PIE with copy reloc.
42152         * configure: Regenerated.
42153
42154 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42155
42156         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42157         in gen_rtx_REG.
42158         (arm_tls_descseq_addr): Likewise.
42159         (arm_gen_movmemqi): Likewise.
42160         (arm_expand_epilogue_apcs_frame): Likewise.
42161         (arm_expand_epilogue): Likewise.
42162         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
42163         in gen_rtx_REG.
42164
42165 2015-01-12  Martin Liska  <mliska@suse.cz>
42166
42167         PR ipa/64550
42168         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42169         volatility for correct operands.
42170
42171 2015-01-12  Martin Liska  <mliska@suse.cz>
42172
42173         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42174         indication that a function is not leaf.
42175         (sem_function::compare_polymorphic_p): Likewise.
42176
42177 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42178
42179         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42180         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42181         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42182         fold-const.h, tree-check.h.
42183
42184 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42185
42186         PR ipa/63967
42187         PR ipa/64425
42188         * ipa-inline.c (compute_uninlined_call_time,
42189         compute_inlined_call_time): Use counts for extra precision when
42190         needed possible.
42191         (big_speedup_p): Fix formating.
42192         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42193         (relative_time_benefit): Remove.
42194         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42195         merge guessed and read profile paths.
42196         (inline_small_functions): Count only !optimize_size functions into
42197         initial size; be more lax about sanity check when profile is used;
42198         be sure to update inlined function profile when profile is read.
42199
42200 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42201
42202         PR ipa/63470
42203         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42204         cost when edge becomes direct.
42205         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42206         is resolved or when introducing new speculation.
42207
42208 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
42209
42210         PR ipa/64551
42211         PR ipa/64552
42212         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42213         '||' to fix typo issue.
42214
42215         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42216         accept and return NULL.
42217
42218 2015-01-12  Martin Liska  <mliska@suse.cz>
42219
42220         * cgraph.c (cgraph_edge::remove_callee): Move function to header
42221         file for being inlined.
42222         (cgraph_set_edge_callee): Delete.
42223         (cgraph_edge::redirect_callee): Move function to header file
42224         for being inlined.
42225         (cgraph_edge::make_direct): Use new function.
42226         (cgraph_edge::dump_edge_flags): New function created from
42227         static dump_edge_flags function.
42228         (cgraph_node::dump): Use new function.
42229         (cgraph_edge::verify_count_and_frequency): New function created
42230         from verify_edge_count_and_frequency.
42231         (cgraph_edge::verify_corresponds_to_fndecl): New function created
42232         from verify_edge_corresponds_to_fndecl.
42233         (verify_edge_corresponds_to_fndecl): Delete.
42234         (cgraph_node::verify_node): Use new function.
42235         * cgraph.h (cgraph_edge::set_callee): New function.
42236         (cgraph_edge::dump_edge_flags): Likewise.
42237         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42238
42239 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
42240
42241         * ipa-utils.c (estimate_function_body_sizes): Do not
42242         free node params when called late with early=true.
42243
42244 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
42245
42246         * doc/md.texi (Instruction Patterns): Rewrite text for
42247         clarity.
42248         (Example): Likewise.
42249
42250 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
42251
42252         * doc/invoke.texi (Option Summary): Break long lines.
42253         [(-fdiagnostics-color)]: Put long literal in @smallexample
42254         instead of inline.
42255         [(-fsanitize-recover)]: Likewise.
42256         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42257         [(-ffast-math)]: Likewise.
42258         [(--param max-inline-insns-recursive)]: Likewise.
42259         [(--param max-inline-recursive-depth)]: Likewise.
42260         [(-mno-text-section-literals)]: Likewise.
42261
42262 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
42263
42264         * doc/install.texi: Update for libgomp being renamed from "GNU
42265         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42266         Runtime Library".
42267         * doc/sourcebuild.texi: Likewise.
42268
42269 2015-01-10  Anthony Green  <green@moxielogic.com>
42270
42271         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42272         mul.x availability for moxiebox configuration.
42273
42274 2015-01-09  Anthony Green  <green@moxielogic.com>
42275
42276         * config/moxie/moxie.md: Tabify assembly output.
42277
42278 2015-01-09  Anthony Green  <green@moxielogic.com>
42279
42280         * config/moxie/moxie.md (CC_REG): Correct register definition.
42281
42282 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
42283
42284         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42285         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
42286         of log files.
42287
42288 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42289
42290         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42291
42292 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
42293             Jakub Jelinek  <jakub@redhat.com>
42294
42295         PR middle-end/64412
42296         * lto-streamer.h (lto_stream_offload_p): New declaration.
42297         * lto-streamer.c (lto_stream_offload_p): New variable.
42298         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42299         at the same time as section_name_prefix.
42300         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42301         if lto_stream_offload_p.
42302         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42303         stream TREE_TARGET_OPTION if lto_stream_offload_p.
42304         (write_ts_function_decl_tree_pointers): Don't
42305         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42306         * tree-streamer-in.c (unpack_value_fields): Don't stream
42307         TREE_TARGET_OPTION in if ACCEL_COMPILER.
42308         (lto_input_ts_function_decl_tree_pointers): Don't stream
42309         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42310         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42311         instead of section_name_prefix string comparisons.
42312
42313 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
42314
42315         PR rtl-optimization/64536
42316         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42317         tablejumps.
42318
42319 2015-01-09  Michael Collison  <michael.collison@linaro.org>
42320
42321         PR tree-optimization/64322
42322         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42323         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42324
42325 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42326
42327         PR rtl-optimization/64539
42328         * regcprop.c (kill_clobbered_values): Factor out of ...
42329         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
42330         instead of note_stores with kill_clobbered_value.
42331
42332 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42333
42334          * ginclude/unwind-arm-common.h: Revert previous commit.
42335
42336 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42337
42338         * config.gcc (arm*-*-freebsd*): New configuration.
42339         * config/arm/freebsd.h: New file.
42340         * config.host: Add extra components for arm*-*-freebsd*.
42341         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42342         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42343
42344 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42345
42346         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42347         for -mcpu=e6500.
42348         * config/rs6000/t-rtems: Add e6500 multilibs.
42349
42350 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42351
42352         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42353         MPC8540.
42354
42355 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42356
42357         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42358         MULTILIB_EXCEPTIONS.
42359
42360 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42361
42362         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42363         MULTILIB_EXCEPTIONS.
42364
42365 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42366
42367         * config/arm/t-rtems-eabi: Rename to...
42368         * config/arm/t-rtems: ...this.
42369         * config/arm/rtems-eabi.h: Rename to...
42370         * config/arm/rtems.h: ...this.
42371         * config.gcc (arm*-*-rtems*): Reflect changes above.
42372
42373 2015-01-09  Richard Biener  <rguenther@suse.de>
42374
42375         PR tree-optimization/64410
42376         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42377         on the LHS.
42378         (execute_update_addresses_taken): Deal with that.
42379         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42380         loads/stores for complex variables.
42381
42382 2015-01-09  Martin Liska  <mliska@suse.cz>
42383
42384         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42385         name comparison.
42386         (func_checker::compare_memory_operand): New function.
42387         (func_checker::compare_operand): Split case to newly
42388         added functions.
42389         (func_checker::compare_cst_or_decl): New function.
42390         (func_checker::compare_gimple_call): Identify
42391         memory operands.
42392         (func_checker::compare_gimple_assign): Likewise.
42393         * ipa-icf-gimple.h: New function.
42394
42395 2015-01-09  Martin Liska  <mliska@suse.cz>
42396
42397         PR ipa/64503
42398         * sreal.c (sreal::dump): Change unsigned format to signed for
42399         m_exp value.
42400         (sreal::to_double): Replace exp2 with scalbln.
42401
42402 2015-01-09  Martin Liska  <mliska@suse.cz>
42403
42404         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42405         * ipa-icf.c (sem_function::equals_private): Add support for target and
42406         (sem_item_optimizer::merge_classes): Remove redundant function
42407         optimization flags comparison.
42408         * tree.h (target_opts_for_fn): New function.
42409
42410 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42411
42412         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42413
42414 2015-01-09  Kito Cheng  <kito@0xlab.org>
42415
42416         PR rtl-optimization/64348
42417         * lra-constraints.c (split_reg): Fix caller-save store/restore
42418         instruction generation.
42419
42420 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
42421
42422         PR gcov-profile/61790
42423         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42424         long long.  Fallback to int64_t if host doesn't have long long and
42425         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
42426
42427 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42428
42429         PR tree-optimization/63989
42430         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42431         from 1000 to 10000.
42432         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42433         (get_stridx): If we don't have a record for certain SSA_NAME,
42434         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42435         constant offset, call get_stridx_plus_constant.
42436         (get_stridx_plus_constant): New function.
42437         (zero_length_string): Don't use get_stridx here.
42438
42439         PR target/55023
42440         PR middle-end/64388
42441         * dse.c (struct insn_info): Mention frame_read set also
42442         before reload for tail calls on some targets.
42443         (scan_insn): Revert 2014-12-22 change.  Set frame_read
42444         also before reload for tail calls if
42445         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
42446         instead of add_non_frame_wild_read for non-const/memset
42447         tail calls after reload.
42448
42449 2015-01-08  Jason Merrill  <jason@redhat.com>
42450
42451         * ubsan.c (do_ubsan_in_current_function): New.
42452         (pass_ubsan::gate): Use it.
42453         * ubsan.h: Declare it.
42454         * convert.c (convert_to_integer): Use it.
42455
42456 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42457
42458         PR target/64338
42459         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42460         compare_code when it is unconditionally overwritten afterwards.
42461         Use ix86_reverse_condition instead of reverse_condition.  Don't
42462         change code if *reverse_condition* returned UNKNOWN and don't
42463         swap ct/cf and negate diff in that case.
42464
42465 2015-01-08  Mike Stump  <mikestump@comcast.net>
42466
42467         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42468         (pass_tsan_O0::gate): Likewise.
42469         * extend.texi (Function Attributes): Add no_sanitize_thread
42470         documentation.
42471
42472 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
42473
42474         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42475         for registering builtins.
42476         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42477         add -fopenmp to the argv_obstack used when invoking
42478         compile_for_target.
42479
42480         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42481         add "-m32" or "-m64" to argv_obstack.
42482         (generate_host_descr_file): Likewise, when invoking host_compiler.
42483         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42484         ld.
42485
42486 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42487
42488         * config/sh/sh-mem.cc: Use constant as second operand when emitting
42489         tstsi_t insns.
42490
42491 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42492
42493         PR target/55212
42494         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42495         constant load if constant operand fits into I08.
42496
42497 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42498
42499         PR sanitizer/64336
42500         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42501         and TREE_THIS_VOLATILE for MEM_REFs.
42502         (build5_stat): Fix up initialization of TREE_READONLY and
42503         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42504
42505 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
42506
42507         PR target/64533
42508         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42509         of r for the second alternative of the destination operand.
42510
42511 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
42512
42513         PR target/36557
42514         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42515
42516 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42517
42518         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42519         keywords.
42520         ([-fivar-visibility], [-fvisibility]): Likewise.
42521
42522 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42523
42524         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42525         the file where @code, @command, etc is more appropriate.
42526
42527 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
42528
42529         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42530         of -mrecip= documentation.
42531
42532 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
42533
42534         PR target/64505
42535         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42536         correct reload handler if -m32 -mpowerpc64 is used.
42537
42538 2015-01-06  Tom de Vries  <tom@codesourcery.com>
42539
42540         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42541
42542 2015-01-08  Christian Bruel  <christian.bruel@st.com>
42543
42544         PR target/64507
42545         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42546
42547 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42548
42549         PR tree-optimization/63259
42550         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42551         if optab exists for 16bit byteswap.
42552
42553 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
42554
42555         * opts.c (common_handle_option): Add support for
42556         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42557         * doc/invoke.texi: Document -fno-sanitize=all,
42558         -f{,no-}sanitize-recover=all.  Document that
42559         -fsanitize=float-cast-overflow is not enabled
42560         by -fsanitize=undefined.  Fix up documentation
42561         of -f{,no-}sanitize-recover.
42562
42563 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
42564
42565         * config.gcc: Add Visium support.
42566         * configure.ac: Likewise.
42567         * configure: Regenerate.
42568         * doc/extend.texi (interrupt attribute): Add Visium.
42569         * doc/invoke.texi: Document Visium options.
42570         * doc/install.texi: Document Visium target.
42571         * doc/md.texi: Document Visium constraints.
42572         * common/config/visium: New directory.
42573         * config/visium: Likewise.
42574
42575 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42576
42577         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42578         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42579
42580 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42581
42582         * combine.c (combine_validate_cost): Do not count the cost of a
42583         split I2 twice.  Do not display it twice in the dump, either.
42584
42585 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42586
42587         Revert parts of r219199.
42588         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42589         <inttypes.h>.
42590         ([-Wtraditional]): Restore markup on <limits.h>.
42591
42592 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
42593
42594         PR c++/31397
42595         * doc/invoke.texi: Document -Wsuggest-override.
42596
42597 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
42598
42599         PR rtl-optimization/64287
42600         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42601         (process_options): Disable flag_ipa_ra if profiling.
42602
42603 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
42604
42605         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42606
42607 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
42608
42609         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42610         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42611         put under #if TARGET_LOOPS guard.
42612
42613 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
42614
42615         * config/i386/i386.c (output_387_binary_op): Use std::swap.
42616
42617 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
42618
42619         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42620         * rtl.h (refers_to_regno_p): Add overload.
42621         * cse.c: Use it.
42622         * bt-load.c: Likewise.
42623         * combine.c: Likewise.
42624         * df-scan.c: Likewise.
42625         * sched-deps.c: Likewise.
42626         * config/s390/s390.c: Likewise.
42627         * config/m32r/m32r.c: Likewise.
42628         * config/rs6000/spe.md: Likewise.
42629         * config/rs6000/rs6000.c: Likewise.
42630         * config/pa/pa.c: Likewise.
42631         * config/stormy16/stormy16.c: Likewise.
42632         * config/cris/cris.c: Likewise.
42633         * config/arc/arc.md: Likewise.
42634         * config/arc/arc.c: Likewise.
42635         * config/sh/sh.md: Likewise.
42636         * config/sh/sh.c: Likewise.
42637         * config/frv/frv.c: Likewise.
42638
42639 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42640
42641         PR sanitizer/64265
42642         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42643         call as cleanup of the whole body.
42644         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42645         * tsan.c (replace_func_exit): New function.
42646         (instrument_func_exit): Moved earlier.
42647         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42648         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42649         been found.
42650         (tsan_pass): Don't call instrument_func_exit.
42651         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42652         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42653         inlining.
42654
42655         PR sanitizer/64344
42656         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42657         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42658         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
42659         if the result is integer_zerop, return NULL_TREE.
42660         * convert.c (convert_to_integer): Pass expr as ARG.
42661
42662         PR tree-optimization/64465
42663         * tree-inline.c (redirect_all_calls): During inlining
42664         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42665         changed the stmt to a non-throwing call.
42666
42667 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42668
42669         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42670         etc markup throughout the file.
42671
42672 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42673
42674         Enable experimental TSAN support for Ada.
42675         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42676
42677 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42678
42679         PR tree-optimization/64494
42680         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42681         clear SSA_NAME_ANTI_RANGE_P flag.
42682
42683 2015-01-05  Marek Polacek  <polacek@redhat.com>
42684
42685         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42686
42687 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42688
42689         Update copyright years.
42690
42691         * gcc.c (process_command): Update copyright notice dates.
42692         * gcov-dump.c: Ditto.
42693         * gcov.c: Ditto.
42694         * doc/cpp.texi: Bump @copying's copyright year.
42695         * doc/cppinternals.texi: Ditto.
42696         * doc/gcc.texi: Ditto.
42697         * doc/gccint.texi: Ditto.
42698         * doc/gcov.texi: Ditto.
42699         * doc/install.texi: Ditto.
42700         * doc/invoke.texi: Ditto.
42701
42702         * auto-profile.c, auto-profile.h: Fix up Copyright line.
42703
42704 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
42705
42706         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42707         verb tense, etc.
42708         ([-fvtable-verify], [-fvtv-debug]): Likewise.
42709         ([-Wabi]): Likewise.
42710         ([-fmessage-length]): Likewise.
42711         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42712         ([-Wno-discarded-qualifiers]): Likewise.
42713         ([-Wnodiscarded-array-qualifiers]): Likewise.
42714         ([-Wno-virtual-move-assign]): Likewise.
42715         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42716         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42717         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42718         ([-fsanitize-undefined-trap-on-error]): Likewise.
42719         ([-floop-interchange]): Likewise.
42720         ([-ftree-coalesce-inlined-vars]): Likewise.
42721         ([-fvect-cost-model]): Likewise.
42722         ([-flto]): Likewise.
42723         ([--param]): Likewise.
42724         (Spec Files): Likewise.
42725         ([-mstrict-align]): Likewise.
42726         ([-mfix-cortex-a53-835769]): Likewise.
42727         ([-march], [-mtune]): Likewise.
42728         ([-mpic-register]): Likewise.
42729         ([-munaligned-access]): Likewise.
42730         ([-msp8]): Likewise.
42731         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42732         (AVR Built-in Macros): Likewise.
42733         ([-mpreferred-stack-boundary]): Likewise.
42734         ([-mtune-crtl]): Likewise.
42735         ([-mashf]): Likewise.
42736         ([-mmcu=]): Likewise.
42737         ([-minrt]): Likewise.
42738         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42739         ([-mupper-regs]): Likewise.
42740         ([-matomic-model]): Likewise.
42741         ([-mdiv]): Likewise.
42742         ([-mzdcbranch]): Likewise.
42743         ([-mdisable-callt]): Likewise.
42744         ([-msoft-float]): Likewise.
42745         ([-m8byte-align]): Likewise.
42746         ([-fstack-reuse]): Likewise.
42747
42748 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42749
42750         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42751         Fix markup, light copy-editing.
42752         ([-fauto-profile]): Rewrite to fix formatting and content
42753         problems.
42754
42755 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42756
42757         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42758         Copy-edit description.
42759         ([-fisolate-erroneous-paths-attribute]): Likewise.
42760         * common.opt (fisolate-erroneous-paths-dereference):
42761         Copy-edit description.
42762         (fisolate-erroneous-paths-attribute): Likewise.
42763
42764 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42765
42766         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42767         tidy grammar.
42768
42769 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42770
42771         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42772         ([-fvtv-debug]): Likewise.
42773         ([-Wc++-compat]): Likewise.
42774         ([-Wc++11-compat]): Likewise.
42775         ([-Wc++14-compat]): Likewise.
42776         ([-Wno-sized-deallocation]): Likewise.
42777         ([-femit-class-debug-always]): Likewise.
42778         ([-femit-struct-debug-detailed]): Likewise.
42779         ([-fno-keep-inline-dllexport]): Likewise.
42780         ([-fira-algorithm]): Likewise.
42781         ([-fira-region]): Likewise.
42782         ([-flra-remat]): Likewise.
42783         ([-fipa-ra]): Likewise.
42784         ([-fhoist-adjacent-loads]): Likewise.
42785         ([-fisolate-erroneous-paths-dereference]): Likewise.
42786         ([-fisolate-erroneous-paths-attribute]): Likewise.
42787         ([-ftree-switch-conversion]): Likewise.
42788         ([-ftree-tail-merge]): Likewise.
42789         ([-ftree-loop-if-convert]): Likewise.
42790         ([-ftree-loop-if-convert-stores]): Likewise.
42791         ([-ftree-loop-distribution]): Likewise.
42792         ([-ftree-loop-distribute-patterns]): Likewise.
42793         ([-flto-compression-level]): Likewise.
42794         ([-flto-report]): Likewise.
42795         ([-flto-report-wpa]): Likewise.
42796         ([-fuse-linker-plugin]): Likewise.
42797         ([-mfix-cortex-a53-835769]): Likewise.
42798         ([-mno-fix-cortex-a53-835769]): Likewise.
42799         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42800         explicit listing; add a note to the discussion indicating they
42801         exist.  Reorder table to group similar options.  Add missing
42802         @opindex entries.  Add @need commands throughout the table to
42803         allow it to be split across multiple pages.
42804         ([-m8bit-idiv]): Fix @opindex.
42805         ([-mavx256-split-unaligned-load]): Likewise.
42806         ([-mavx256-split-unaligned-store]): Likewise.
42807         ([-mstack-protector-guard]): Likewise.
42808         ([-mcpu=]): Likewise.
42809         ([-mcpu]): Likewise.
42810         ([-mpointer-size=]): Likewise.
42811
42812 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
42813
42814         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42815         instead of `m' constraint.  Likewise for unnamed movb comparison
42816         patterns using reg_before_reload_operand predicate.
42817         * config/pa/predicates.md (reg_before_reload_operand): Tighten
42818         predicate to reject register index and LO_SUM DLT memory forms
42819         after reload.
42820
42821 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42822
42823         * doc/invoke.texi (Option Summary): Fix spelling of
42824         -fdevirtualize-at-ltrans.
42825         ([-fdevirtualize]): Fix markup.
42826         ([-fdevirtualize-speculatively]): Fix typo.
42827         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
42828         implementor-speaky.
42829         * common.opt (fdevirtualize-at-ltrans): Likewise.
42830         * ipa-devirt.c: Fix typos in comments throughout the file.
42831         (ipa_devirt): Fix typos in format strings for dump output.
42832
42833 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42834
42835         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42836         discussion of defaults, light copy-editing.
42837
42838 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42839
42840         * tsan.c (instrument_expr): corrected previous checkin.
42841
42842 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42843
42844         Instrument bit field and unaligned accesses for TSAN.
42845         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42846         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42847         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42848         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42849         unaligned memory regions.
42850
42851 2015-01-01  Anthony Green  <green@moxielogic.com>
42852
42853         * config/moxie/predicates.md (moxie_general_movsrc_operand):
42854         Restrict move source register offsets to 16 bits.
42855 \f
42856 Copyright (C) 2015 Free Software Foundation, Inc.
42857
42858 Copying and distribution of this file, with or without modification,
42859 are permitted in any medium without royalty provided the copyright
42860 notice and this notice are preserved.