re PR ipa/67056 (Wrong code generated)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2
3         PR ipa/67056
4         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5         is negative we don't know the type.
6         (check_stmt_for_type_change): Skip constructors of non-polymorphic
7         types as those won't help devirutalization.
8
9 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10
11         * fold-const.c (operand_equal_p): Add code matching empty
12         constructors.
13
14 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
15
16         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
17         comments.
18         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
19         Add comments on sign of the result.
20         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
21         Recurse on operand #1 instead of operand #0.
22         <CEIL_MOD_EXPR>: Do not recurse.
23         <ROUND_MOD_EXPR>: Likewise.
24
25 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26
27         * cfgrtl.c (pass_free_cfg::execute): Adjust.
28         * final.c (dbr_sequence_length): Always define.
29         (shorten_branches): Adjust.
30         * genattr-common.c (main): Always define DELAY_SLOTS.
31         * genattr.c (main): Unconditionally declare functions and define
32         macros related to delay slots.
33         * genattrtab.c (write_eligible_delay): Adjust.
34         (main): Always write out delay slot functions.
35         * opts.c (default_options_table): Adjust.
36         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
37         (redirect_with_delay_list_safe_p): Likewise.
38         (fill_simple_delay_slots): Likewise.
39         (fill_slots_from_thread): Likewise.
40         (make_return_insns): Likewise.
41         (dbr_schedule): Likewise.
42         (rest_of_handle_delay_slots): Likewise.
43         (pass_delay_slots::gate): Likewise.
44         * toplev.c (process_options): Likewise.
45
46 2015-10-21  Richard Henderson  <rth@redhat.com>
47
48         * targhooks.c (default_addr_space_pointer_mode): Remove check
49         for generic address space.
50         (default_addr_space_address_mode): Likewise.
51         (default_addr_space_valid_pointer_mode): Likewise.
52         (default_addr_space_legitimate_address_p): Likewise.
53         (default_addr_space_legitimize_address): Likewise.
54         * target.def (addr_space.pointer_mode): Update documentation
55         of default behavior.
56         (addr_space.address_mode): Likewise.
57         * tm.texi: Update.
58
59         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
60         address spaces.
61
62 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
63
64         * builtins.c (fold_builtin_cabs): Delete.
65         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
66         * match.pd: Add rules previously handled by fold_builtin_cabs.
67
68 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
69
70         * fold-const.h (fold_strip_sign_ops): Delete.
71         * fold-const.c (fold_strip_sign_ops): Likewise.
72         (fold_unary_loc, fold_binary_loc): Remove calls to it.
73         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
74         (fold_builtin_ccos): Delete.
75         (fold_builtin_pow): Don't call fold_strip_sign_ops.
76         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
77         Remove fndecl argument.
78         (fold_builtin_1): Update calls accordingly.  Handle constant
79         cos, cosh, ccos and ccosh here.
80
81 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
82
83         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
84         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
85         * common.opt (fssa-backprop): New option.
86         * fold-const.h (negate_mathfn_p): Declare.
87         * fold-const.c (negate_mathfn_p): Make public.
88         * timevar.def (TV_TREE_BACKPROP): New.
89         * tree-pass.h (make_pass_backprop): Declare.
90         * passes.def (pass_backprop): Add.
91         * gimple-ssa-backprop.c: New file.
92
93 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
94             Sebastian Pop  <s.pop@samsung.com>
95
96         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Do not call
97         create_empty_if_region_on_edge when cond_expr is true.
98         (translate_isl_ast_node_for): Check whether a guard has been generated.
99
100 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
101
102         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
103         (operator=): Removed.
104         (dr_info): Make alias_set number the last argument with default value of invalid_alias_set.
105         * graphite-sese-to-poly.c (build_scop_drs): Update constructor of dr_info.
106         (rewrite_reductions_out_of_ssa): Iterate only through the basic blocks which are inside region.
107         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
108         * sese.h (struct sese_l): Removed assignment operator.
109         (split_region_for_bb): Removed dead code.
110
111 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
112
113         * graphite-poly.h (struct dr_info): Removed conversion constructor.
114         (struct scop): Renamed scop::region to scop::scop_info
115         (scop_set_region): Same.
116         (SCOP_REGION): Removed
117         (SCOP_CONTEXT): Removed.
118         (POLY_SCOP_P): Removed.
119         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
120         Rename scop->region to scop->scop_info.
121         (add_parameters_to_ivs_params): Same.
122         (graphite_regenerate_ast_isl): Same.
123         * graphite-poly.c (new_scop): Same.
124         (free_scop): Same.
125         (print_scop_params): Same.
126         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
127         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
128         (dot_all_scops_1): Rename scop->region to scop->scop_info.
129         (scop_detection::nb_pbbs_in_loops): Same.
130         (find_scop_parameters): Same.
131         (try_generate_gimple_bb): Same.
132         (gather_bbs::before_dom_children): Same.
133         (gather_bbs::after_dom_children): Same.
134         (build_scops): Same.
135         * graphite-sese-to-poly.c (build_scop_scattering): Same.
136         (extract_affine_chrec): Same.
137         (extract_affine): Same.
138         (set_scop_parameter_dim): Same.
139         (build_loop_iteration_domains): Same.
140         (create_pw_aff_from_tree): Same.
141         (add_param_constraints): Same.
142         (build_scop_iteration_domain): Same.
143         (build_scop_drs): Same.
144         (analyze_drs_in_stmts): Same.
145         (insert_out_of_ssa_copy_on_edge): Same.
146         (rewrite_close_phi_out_of_ssa):Same.
147         (rewrite_reductions_out_of_ssa):Same.
148         (handle_scalar_deps_crossing_scop_limits):Same.
149         (rewrite_cross_bb_scalar_deps):Same.
150         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
151         (build_poly_scop):Same.
152         (build_alias_set): Use pointer to dr_info.
153         * graphite.c (print_graphite_scop_statistics):
154         (graphite_transform_loops):
155         * sese.h (struct sese_l): Remove conversion constructor.
156
157 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
158
159         PR middle-end/67966
160         * tree.c (verify_type): Verify that TYPE_MODE match
161         between TYPE_CANONICAL and type.
162         * expr.c (store_expr_with_bounds): Revert my previous change.
163         * expmed.c (store_bit_field_1): Revert prevoius change.
164         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
165         to match for all types.
166
167 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
168
169         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
170         nesting.
171
172 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
173
174         * doc/tm.texi: Regenerated.
175         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
176         * stor-layout.c (layout_type): Use mode to get vector mask size.
177         * target.def (get_mask_mode): New.
178         * targhooks.c (default_get_mask_mode): New.
179         * targhooks.h (default_get_mask_mode): New.
180         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
181         for boolean vector.
182         * tree.c (MAX_BOOL_CACHED_PREC): New.
183         (nonstandard_boolean_type_cache): New.
184         (build_nonstandard_boolean_type): New.
185         (make_vector_type): Vector mask has no canonical type.
186         (build_truth_vector_type): New.
187         (build_same_sized_truth_vector_type): New.
188         (truth_type_for): Support vector masks.
189         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
190         (build_truth_vector_type): New.
191         (build_same_sized_truth_vector_type): New.
192         (build_nonstandard_boolean_type): New.
193         * tree-cfg.c (verify_gimple_comparison) Require boolean
194         vector type for vector comparison.
195         (verify_gimple_assign_ternary): Likewise.
196         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
197         condition operand.
198         * tree-vect-stmts.c (vectorizable_condition): Use boolean
199         vector type for vector comparison.
200         * tree-vect-generic.c (elem_op_func): Add new operand to hold
201         vector type.
202         (do_unop): Adjust to modified function type.
203         (do_binop): Likewise.
204         (do_plus_minus): Likewise.
205         (do_negate); Likewise.
206         (expand_vector_piecewise): Likewise.
207         (do_cond): Likewise.
208         (do_compare): Use comparison instead of condition.
209         (expand_vector_divmod): Use boolean vector type for comparison.
210         (expand_vector_operations_1): Skip scalar mask operations.
211
212 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
213
214         * omp-low.c (simd_clone_create): Set in_other_partition
215         for created clones.
216
217 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
218
219         * doc/extend.exp (Local Register Variables): Rewrite.
220
221 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
222
223         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
224         and x*x in cases where the operands are sign ops.  Extend these
225         rules to handle copysign as a sign op (including for cos, cosh
226         and pow, which already treated negate and abs as sign ops).
227
228 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
229
230         PR target/68018
231         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
232         for 64-bit MS_ABI targets also when default incoming stack boundary
233         is overriden.
234
235 2015-10-21  Richard Biener  <rguenther@suse.de>
236
237         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
238         cond stmts, enhanced and split out from ...
239         (vn_phi_eq): ... here.
240
241 2015-10-21  Richard Biener  <rguenther@suse.de>
242
243         PR middle-end/68031
244         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
245         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
246         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
247         make sure they are not registered for update.
248
249 2015-10-21  Richard Biener  <rguenther@suse.de>
250
251         PR tree-optimization/68026
252         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
253         unsigned VARYING values.
254
255 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
256
257         * asan.c (asan_emit_stack_protection): Don't pass local stack to
258         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
259         NULL and use local stack than.
260         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
261         in addition to __asan_init.
262         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
263         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
264         * asan.h (asan_intercepted_p): Handle new string builtins.
265         * ubsan.c (ubsan_use_new_style_p): New function.
266         (ubsan_instrument_float_cast): If location is unknown, assign
267         input_location to loc. Propagate loc to ubsan_create_data if
268         ubsan_use_new_style_p returned true.
269
270 2015-10-21  Jeff Law  <law@redhat.com>
271
272         * Makefile.in (OBJS): Remove sched-vis.c
273         * sched-vis.c: Removed.  Code moved into...
274         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
275         * rtl.h: Remove prototypes for functions now living in print-rtl.c
276         * print-rtl.h Add prototypes for new functions in print-rtl.c.
277         * auto-inc-dec.c: Include print-rtl.h
278         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
279         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
280
281         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
282         ATTRIBUTE_UNUSED.
283
284 2015-10-21  Richard Biener  <rguenther@suse.de>
285             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
286
287         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
288         to match.pd.
289         Move (a * (1 << b)) is (a << b) to match.pd.
290         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
291         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
292         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
293
294         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
295         New simplifier.
296         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
297         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
298         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
299         : New simplifier.
300         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
301         New simplifier.
302         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
303
304 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
305             Szabolcs Nagy  <szabolcs.nagy@arm.com>
306             Alan Modra  <amodra@gmail.com>
307
308         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
309         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
310         (LINK_SPEC): Add %(link_secure_plt).
311         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
312         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
313
314 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
315             Szabolcs Nagy  <szabolcs.nagy@arm.com>
316
317         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
318         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
319
320 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
321
322         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
323         New function.
324         (fusion_load_store): Use it.
325         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
326         ldp and stp in VD modes.
327         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
328         (store_pair<mode>, VD): Likewise.
329
330 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
331
332         PR rtl-optimization/67609
333         * lra-splill.c (lra_final_code_change): Don't remove all
334         sub-registers.
335
336 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
337
338         * simplify-rtx.c (simplify_binary_operation): If either operand was
339         a constant pool reference use them if all other simplifications failed.
340
341 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
342
343         * config/aarch64/aarch64.md
344         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
345         * config/aarch64/aarch64-simd.md
346         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
347         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
348         (aarch64_fpconst_pow_of_2): New function.
349         (aarch64_vec_fpconst_pow_of_2): Likewise.
350         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
351         prototype.
352         (aarch64_vec_fpconst_pow_of_2): Likewise.
353         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
354         (aarch64_fp_vec_pow2): Likewise.
355
356 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
357
358         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
359         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
360         * config/alpha/alpha.c (alpha_function_arg_advance): Update
361         ALPHA_ARG_SIZE usage.
362         (alpha_arg_partial_bytes): Ditto.
363
364 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
365
366         PR target/66810
367         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
368         error_mark_node decls.
369
370 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
371
372         PR target/67963
373         PR target/67985
374         * common/config/i386/i386-common.c (ix86_handle_option): Remove
375         OPT_miamcu handling.
376         * config/i386/i386.c (PTA_NO_80387): New macro.
377         (processor_alias_table): Add PTA_NO_80387 to lakemont.
378         (ix86_option_override_internal): Update MASK_80387 from
379         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
380         SSE math only if 80387 is supported.  Don't change
381         MASK_FLOAT_RETURNS.
382         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
383         80387 is supported.
384         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
385         if TARGET_80387 is true and TARGET_IAMCU is false.
386         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
387         is true and TARGET_IAMCU_P is false.
388
389 2015-10-20  Richard Biener  <rguenther@suse.de>
390
391         PR tree-optimization/68017
392         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
393
394 2015-10-20  Martin Liska  <mliska@suse.cz>
395
396         * cgraphclones.c (cgraph_node::create_virtual_clone):
397         Verify cgraph_node.local.versionable instead of calling
398         tree_versionable_function_p.
399         * ipa-cp.c (determine_versionability): Save the information
400         to ipa_node_params summary.
401         (ipcp_versionable_function_p): Use it.
402         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
403         (ipcp_generate_summary): Do not compute cgraph_node
404         versionability.
405         * ipa-inline-analysis.c (inline_generate_summary): Compute
406         versionability for all cgraph nodes.
407         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
408         ipa_node_params::versionability.
409         * ipa-prop.h (struct ipa_node_params): Declare it.
410
411 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
412
413         PR other/67868
414         * varasm.c (assemble_variable): Move special vtv handling to..
415         (handle_vtv_comdat_sections): .. here. New function.
416         (output_object_block): Handle vtv sections.
417
418 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
419
420         PR target/66912
421         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
422
423 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
424
425         * doc/extend.texi: Update documentation WRT inline functions.
426
427 2015-10-20  Alan Modra  <amodra@gmail.com>
428
429         PR go/66870
430         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
431         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
432         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
433
434 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
435
436         PR rtl-optimization/66790
437         * df.h (DF_MIR): New macro.
438         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
439         (DF_MIR_INFO_BB): New macro.
440         (DF_MIR_IN, DF_MIR_OUT): New macros.
441         (struct df_mir_bb_info): New.
442         (df_mir): New macro.
443         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
444         declarations.
445         (df_mir_get_bb_info): New.
446         * df-problems.c (struct df_mir_problem_data): New.
447         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
448         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
449         df_mir_confluence_0, df_mir_confluence_n,
450         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
451         df_mir_bottom_dump, df_mir_verify_solution_start,
452         df_mir_verify_solution_end): New.
453         (problem_MIR): New.
454         (df_mir_add_problem, df_mir_simulate_one_insn): New.
455         * timevar.def (TV_DF_MIR): New.
456         * ree.c: Include bitmap.h
457         (add_removable_extension): Add an INIT_REGS parameter.  Use it
458         to skip zero-extensions that may get an uninitialized register.
459         (find_removable_extensions): Compute must-initialized registers
460         using the MIR dataflow problem. Update the call to
461         add_removable_extension.
462         (find_and_remove_re): Call df_mir_add_problem.
463
464 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
465
466         * common/config/mn10300/mn10300-common.c
467         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
468         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
469
470 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
471
472         * doc/extend.texi (Explicit Register Variables): Simplify and
473         avoid unnecessary and confusion abbreviations.  Update cross
474         references.
475         doc/implement-c.tex: Update cross reference.
476
477 2015-10-19  Jeff Law  <law@redhat.com>
478
479         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
480         that create irreducible loops unless the path elimiantes a multiway
481         branch.
482
483 2015-10-19  Richard Biener  <rguenther@suse.de>
484
485         PR tree-optimization/67975
486         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
487         * tree-cfg.c (extract_true_false_controlled_edges): Split out
488         core worker from ...
489         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
490         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
491         instead of block number for PHIs with two or one args.
492         (vn_phi_eq): Compare edge predicates of PHIs that are in different
493         blocks.
494
495 2015-10-19  Richard Biener  <rguenther@suse.de>
496
497         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
498         (gimple_stmt_nonnegative_warnv_p): Use it.
499         * match.pd (CPROJ): New operator list.
500         (cproj (complex ...)): Move simplifications from ...
501         * builtins.c (fold_builtin_cproj): ... here.
502
503 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
504
505         * config/i386/i386.c (ix86_expand_vector_move): Use
506         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
507         alignment.
508
509 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
510
511         * doc/invoke.texi: Replace @optindex with @opindex.
512
513 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
514
515         PR target/67995
516         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
517         arch= is set,  clear all bits in x_ix86_isa_flags, except for
518         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
519
520 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
521
522         PR middle-end/68002
523         * common.opt (fkeep-static-functions): New option.
524         * doc/invoke.texi: Document it.
525         * cgraphunit.c (cgraph_node::finalize_function): Use it.
526
527 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
528
529         * sched-int.h (struct autopref_multipass_data_): Remove offset
530         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
531         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
532         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
533         (autopref_rank_data): New function.
534         (autopref_rank_for_schedule): Use it.
535         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
536
537 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
538
539         PR other/65800
540         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
541
542 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
543
544         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
545         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
546         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
547         (STANDARD_STARTFILE_PREFIX_1): New.
548         (STANDARD_STARTFILE_PREFIX_2): New.
549
550 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
551
552         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
553         (darwin_driver_init): Note a version-min when provided on the c/l.
554         * config/darwin.h (%darwin_minversion): Remove.
555         * config/i386/darwin.h: Likewise.
556         * config/rs6000/darwin.h: Likewise.
557         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
558         rather than an arbitrary constant.
559
560 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
561
562         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
563         PPC, detect conflicts between -arch and multilib settings.  Detect
564         and warn about conflicts between multiple -arch definitions.
565
566 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
567
568         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
569
570 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
571
572         * lra-constraints.c (add_next_usage_insn): Change argument type
573         from rtx to rtx_insn *.
574
575 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
576
577         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
578         for Lakemont.
579
580 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
581
582         * config/tilepro/gen-mul-tables.cc: Adjust include files.
583         * config/tilegx/mul-tables.c: Regenerate.
584         * config/tilepro/mul-tables.c: Regenerate.
585
586         * config/tilegx/tilegx-c.c: Adjust include files.
587         * config/tilegx/tilegx.c: Likewise.
588         * config/tilepro/tilepro-c.c: Likewise.
589         * config/tilepro/tilepro.c: Likewise.
590         * config/aarch64/aarch64-builtins.c: Likewise.
591         * config/aarch64/aarch64.c: Likewise.
592         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
593         * config/alpha/alpha.c: Likewise.
594         * config/arc/arc.c: Likewise.
595         * config/arm/aarch-common.c: Likewise.
596         * config/arm/arm-builtins.c: Likewise.
597         * config/arm/arm-c.c: Likewise.
598         * config/arm/arm.c: Likewise.
599         * config/avr/avr-c.c: Likewise.
600         * config/avr/avr-devices.c: Likewise.
601         * config/avr/avr-log.c: Likewise.
602         * config/avr/avr.c: Likewise.
603         * config/bfin/bfin.c: Likewise.
604         * config/c6x/c6x.c: Likewise.
605         * config/cr16/cr16.c: Likewise.
606         * config/cris/cris.c: Likewise.
607         * config/darwin-c.c: Likewise.
608         * config/darwin-driver.c: Likewise.
609         * config/darwin.c: Likewise.
610         * config/default-c.c: Likewise.
611         * config/epiphany/epiphany.c: Likewise.
612         * config/epiphany/mode-switch-use.c: Likewise.
613         * config/epiphany/resolve-sw-modes.c: Likewise.
614         * config/fr30/fr30.c: Likewise.
615         * config/frv/frv.c: Likewise.
616         * config/ft32/ft32.c: Likewise.
617         * config/glibc-c.c: Likewise.
618         * config/h8300/h8300.c: Likewise.
619         * config/i386/host-cygwin.c: Likewise.
620         * config/i386/host-mingw32.c: Likewise.
621         * config/i386/i386-c.c: Likewise.
622         * config/i386/i386.c: Likewise.
623         * config/i386/msformat-c.c: Likewise.
624         * config/i386/winnt-cxx.c: Likewise.
625         * config/i386/winnt-stubs.c: Likewise.
626         * config/i386/winnt.c: Likewise.
627         * config/ia64/ia64-c.c: Likewise.
628         * config/ia64/ia64.c: Likewise.
629         * config/iq2000/iq2000.c: Likewise.
630         * config/lm32/lm32.c: Likewise.
631         * config/m32c/m32c-pragma.c: Likewise.
632         * config/m32c/m32c.c: Likewise.
633         * config/m32r/m32r.c: Likewise.
634         * config/mcore/mcore.c: Likewise.
635         * config/mep/mep-pragma.c: Likewise.
636         * config/mep/mep.c: Likewise.
637         * config/microblaze/microblaze-c.c: Likewise.
638         * config/microblaze/microblaze.c: Likewise.
639         * config/mips/mips-tables.opt
640         * config/mips/mips.c: Likewise.
641         * config/mmix/mmix.c: Likewise.
642         * config/mn10300/mn10300.c: Likewise.
643         * config/moxie/moxie.c: Likewise.
644         * config/msp430/msp430-c.c: Likewise.
645         * config/msp430/msp430.c: Likewise.
646         * config/nds32/nds32-cost.c: Likewise.
647         * config/nds32/nds32-fp-as-gp.c: Likewise.
648         * config/nds32/nds32-intrinsic.c: Likewise.
649         * config/nds32/nds32-isr.c: Likewise.
650         * config/nds32/nds32-md-auxiliary.c: Likewise.
651         * config/nds32/nds32-memory-manipulation.c: Likewise.
652         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
653         * config/nds32/nds32-predicates.c: Likewise.
654         * config/nds32/nds32.c: Likewise.
655         * config/nios2/nios2.c: Likewise.
656         * config/nvptx/mkoffload.c: Likewise.
657         * config/nvptx/nvptx.c: Likewise.
658         * config/pa/pa.c: Likewise.
659         * config/pdp11/pdp11.c: Likewise.
660         * config/rl78/rl78-c.c: Likewise.
661         * config/rl78/rl78.c: Likewise.
662         * config/rs6000/host-darwin.c: Likewise.
663         * config/rs6000/rs6000-c.c: Likewise.
664         * config/rs6000/rs6000-linux.c: Likewise.
665         * config/rs6000/rs6000.c: Likewise.
666         * config/rx/rx.c: Likewise.
667         * config/s390/s390-c.c: Likewise.
668         * config/s390/s390.c: Likewise.
669         * config/sh/sh-c.c: Likewise.
670         * config/sh/sh-mem.cc: Likewise.
671         * config/sh/sh.c: Likewise.
672         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
673         * config/sh/sh_treg_combine.cc: Likewise.
674         * config/sol2-c.c: Likewise.
675         * config/sol2-cxx.c: Likewise.
676         * config/sol2-stubs.c: Likewise.
677         * config/sol2.c: Likewise.
678         * config/sparc/sparc-c.c: Likewise.
679         * config/sparc/sparc.c: Likewise.
680         * config/spu/spu-c.c: Likewise.
681         * config/spu/spu.c: Likewise.
682         * config/stormy16/stormy16.c: Likewise.
683         * config/v850/v850-c.c: Likewise.
684         * config/v850/v850.c: Likewise.
685         * config/vax/vax.c: Likewise.
686         * config/visium/visium.c: Likewise.
687         * config/vms/vms-c.c: Likewise.
688         * config/vms/vms.c: Likewise.
689         * config/vxworks.c: Likewise.
690         * config/winnt-c.c: Likewise.
691         * config/xtensa/xtensa.c: Likewise.
692
693 2015-10-16  Christian Bruel  <christian.bruel@st.com>
694
695         PR target/67745
696         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
697         (FUNCTION_BOUNDARY_P): New macro:
698         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
699         New hook.
700         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
701         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
702         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
703         * gcc/function.c (allocate_struct_function): Call
704         relayout_function hook.
705         * gcc/passes.c (rest_of_decl_compilation): Likewise.
706
707 2015-10-16  Christian Bruel  <christian.bruel@st.com>
708
709         PR target/67745
710         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
711         * config/arm/arm.c (arm_option_override_internal): Call
712         arm_override_options_after_change_1.
713         (arm_override_options_after_change): New function.
714         (arm_override_options_after_change_1): Likewise.
715         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
716
717 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
718
719         Revert:
720         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
721         empty constructors.
722
723 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
724
725         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
726         argument is an ADDR_EXPR.
727
728 2015-10-16  Richard Biener  <rguenther@suse.de>
729
730         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
731         and get rid of force_gimple_operand_gsi.
732         (gimple_fold_builtin_memory_chk): Likewise.
733         (gimple_fold_builtin_stxcpy_chk): Likewise.
734         (rewrite_to_defined_overflow): Likewise.
735         (gimple_convert_to_ptrofftype): New function.
736         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
737
738 2015-10-16  Richard Biener  <rguenther@suse.de>
739
740         * tree-nested.h (build_addr): Adjust prototype.
741         * tree-nested.c (build_addr): Remove context argument and use
742         mark_addressable.
743         (get_static_chain): Adjust calls to build_addr.
744         (convert_nl_goto_reference): Likewise.
745         (convert_tramp_reference_op): Likewise.
746         (finalize_nesting_tree_1): Likewise.
747         * value-prof.c (gimple_ic): Likewise.
748         * gimple-low.c (lower_builtin_setjmp): Likewise.
749         * tree-parloops.c (take_address_of): Likewise.
750         (create_call_for_reduction_1): Likewise.
751         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
752         (gimple_gen_ic_func_profiler): Likewise.
753
754 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
755
756         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
757         empty constructors.
758
759 2015-10-16  Michael Collison  <michael.collison@linaro.org>
760             Andrew Pinski <andrew.pinski@caviumnetworks.com>
761
762         * match.pd ((x < y) && (x < z) -> x < min (y,z),
763         (x > y) and (x > z) -> x > max (y,z))
764
765 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
766             Szabolcs Nagy  <szabolcs.nagy@arm.com>
767
768         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
769         (DYNAMIC_LINKER): Renamed to ...
770         (GLIBC_DYNAMIC_LINKER): This.
771         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
772
773 2015-10-15  Marek Polacek  <polacek@redhat.com>
774
775         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
776         gimple_call_builtin instead of is_gimple_call.
777
778 2015-10-15  Richard Biener  <rguenther@suse.de>
779
780         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
781
782 2015-10-15  Richard Biener  <rguenther@suse.de>
783
784         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
785         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
786         * tree-vect-loop.c (get_initial_def_for_induction): Drop
787         use of force_gimple_operand in favor of gimple_build.
788         Use vect_get_new_ssa_name.
789         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
790         (vectorizable_mask_load_store): Likewise.
791         (vectorizable_call): Likewise.
792         (vectorizable_store): Likewise.
793         (vectorizable_load): Likewise.
794         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
795
796 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
797
798         PR tree-optimization/67945
799         * tree-pass.h (PROP_gimple_opt_math): New property flag.
800         * generic-match-head.c (canonicalize_math_p): New function.
801         * gimple-match-head.c: Include tree-pass.h.
802         (canonicalize_math_p): New function.
803         * match.pd: Group math built-in rules into simplifications
804         and canonicalizations.  Guard the latter with canonicalize_math_p.
805         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
806         PROP_gimple_opt_math property.
807
808 2015-10-15  Marek Polacek  <polacek@redhat.com>
809
810         PR tree-optimization/67953
811         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
812
813 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
814
815         * config.gcc: Recognize "." in architecture base name for AArch64.
816
817 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
818
819         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
820         ROUND_UP macro.
821         * config/mips/mips.c (mips_setup_incoming_varargs): Use
822         ROUND_DOWN to calculate off.
823         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
824         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
825         rounded_size.
826
827 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
828
829         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
830
831 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
832             Torvald Riegel  <triegel@redhat.com>
833
834         PR target/67281
835         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
836         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
837         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
838         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
839         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
840         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
841         trechkpt, treclaim, tsr, ttest): New define_expands.
842         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
843         __TM_FENCE__ for htm.
844         * doc/extend.texi: Update documentation for htm builtins.
845
846 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
847
848         PR target/67967
849         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
850         REG_CFA_EXPRESSION to aligned SSE stores.
851
852 2015-10-14  Jeff Law  <law@redhat.com>
853
854         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
855         num_threaded_edges for successful FSM threads too.
856
857 2015-10-14  Richard Biener  <rguenther@suse.de>
858
859         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
860         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
861         (vect_get_vec_def_for_operand): Remove unused parameter.
862         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
863         (vect_create_epilog_for_reduction): Likewise.
864         (vectorizable_reduction): Likewise.
865         (vectorizable_live_operation): Likewise.
866         * tree-vect-patterns.c (type_conversion_p): Likewise.
867         (vect_recog_vector_vector_shift_pattern): Likewise.
868         (check_bool_pattern): Likewise.
869         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
870         (vect_analyze_slp_cost_1): Likewise.
871         * tree-vect-stmts.c (process_use): Likewise.
872         (vect_get_vec_def_for_operand): Do not handle reductions.
873         (vect_get_vec_defs): Adjust.
874         (vectorizable_mask_load_store): Likewise.
875         (vectorizable_call): Likewise.
876         (vectorizable_simd_clone_call): Likewise.
877         (vect_get_loop_based_defs): Likewise.
878         (vectorizable_conversion): Likewise.
879         (vectorizable_assignment): Likewise.
880         (vectorizable_shift): Likewise.
881         (vectorizable_operation): Likewise.
882         (vectorizable_store): Likewise.
883         (vectorizable_load): Likewise.
884         (vect_is_simple_cond): Likewise.
885         (vectorizable_condition): Likewise.
886         (vect_is_simple_use): Remove unused parameters.
887         (vect_is_simple_use_1): Adjust and rename.
888
889 2015-10-14  Richard Biener  <rguenther@suse.de>
890
891         PR tree-optimization/67915
892         * match.pd: Handle comparisons of addresses of STRING_CSTs.
893         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
894         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
895         stmt folding in favor of GIMPLE one.
896
897 2015-10-14  Marek Polacek  <polacek@redhat.com>
898
899         PR tree-optimization/67815
900         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
901         (reassociate_bb): Call it.
902
903 2015-10-14  Richard Biener  <rguenther@suse.de>
904
905         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
906         Reset info at start.
907         (vect_analyze_group_access_1): Add debug print.
908         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
909         (vect_compute_single_scalar_iteration_cost): ... to this.
910         (vect_analyze_loop_2): Adjust.
911         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
912         * tree-vectorizer.h: ... here.
913         (add_stmt_info_to_vec): Remove.
914         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
915
916 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
917
918         * targhooks.c (default_target_option_pragma_parse): Do not warn if
919         called on behalf of "#pragma GCC pop_options".
920
921 2015-10-14  Tom de Vries  <tom@codesourcery.com>
922
923         * cfganal.c (verify_no_unreachable_blocks): New function.
924         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
925         verify_no_unreachable_blocks.
926         cfganal.h (verify_no_unreachable_blocks): Declare.
927
928 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
929
930         * common.opt: Add flag_checking.
931         * system.h (CHECKING_P): Define.
932
933 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
934             Aldy Hernandez  <aldyh@redhat.com>
935             Ilya Verbin  <ilya.verbin@intel.com>
936
937         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
938         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
939         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
940         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
941         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
942         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
943         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
944         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
945         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
946         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
947         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
948         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
949         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
950         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
951         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
952         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
953         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
954         (struct cgraph_simd_clone_arg): Adjust comment.
955         * coretypes.h (struct gomp_ordered): New forward decl.
956         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
957         set critical clauses to it.
958         (gimple_build_omp_ordered): Return gomp_ordered * instead of
959         gimple *.  Add CLAUSES argument, set ordered clauses to it.
960         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
961         GIMPLE_OMP_ORDERED.
962         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
963         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
964         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
965         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
966         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
967         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
968         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
969         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
970         renumber
971         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
972         (gomp_critical): Add clauses field.
973         (gomp_ordered): New struct.
974         (is_a_helper <gomp_ordered *>::test): New inline.
975         (gimple_build_omp_critical): Add CLAUSES argument.
976         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
977         instead of gimple *.
978         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
979         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
980         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
981         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
982         inline functions.
983         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
984         (dump_gimple_omp_target): Handle enter data and exit data.
985         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
986         (dump_gimple_omp_critical): Print clauses.
987         (dump_gimple_omp_ordered): New function.
988         (dump_gimple_omp_task): Handle taskloop.
989         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
990         GIMPLE_OMP_ORDERED.
991         * gimple-walk.c (walk_gimple_op): Walk clauses on
992         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
993         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
994         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
995         (struct gimplify_omp_ctx): Add loop_iter_var,
996         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
997         and target_firstprivatize_array_bases fields.
998         (delete_omp_context): Release loop_iter_var.
999         (gimplify_bind_expr): Handle ORT_NONE.
1000         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1001         ORT_COMBINED_TARGET.
1002         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1003         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1004         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1005         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1006         ctx->target_map_scalars_firstprivate.
1007         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1008         data sharing clauses.  For data sharing clause with VLA decl
1009         on omp target/target data don't add firstprivate for the pointer.
1010         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1011         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1012         the addition of ORT_COMBINED_TARGET.
1013         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1014         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1015         pointers as zero length array sections and
1016         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1017         data sharing.
1018         (omp_check_private): Handle omp_member_access_dummy_var vars.
1019         (find_decl_expr): New function.
1020         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1021         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1022         Handle OMP_CLAUSE_GANG separately.  Handle
1023         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1024         clauses.  Diagnose linear clause on combined
1025         distribute {, parallel for} simd construct, unless it is the loop
1026         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1027         Handle map clauses with COMPONENT_REF.  Initialize
1028         ctx->target_map_scalars_firstprivate,
1029         ctx->target_firstprivatize_array_bases and
1030         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1031         linear clause even to target region if combined.  Remove
1032         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1033         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1034         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1035         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1036         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1037         For linear clause on worksharing loop combined with parallel add
1038         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1039         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1040         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1041         taskloop if needed.
1042         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1043         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1044         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1045         GOMP_MAP_POINTER.
1046         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1047         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1048         in target body.  Handle removal of struct mapping if struct is not
1049         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1050         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1051         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1052         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1053         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1054         clause appear together.  Handle
1055         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1056         clause if it has map-type-modifier always.  Handle
1057         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1058         clauses.
1059         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1060         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1061         callers.
1062         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1063         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1064         iterators in doacross loops.
1065         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1066         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1067         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1068         for the addition of ORT_COMBINED_TARGET.
1069         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1070         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1071         and OMP_TARGET_EXIT_DATA.
1072         (gimplify_omp_ordered): New function.
1073         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1074         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1075         Gimplify clauses on OMP_CRITICAL.
1076         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1077         expand_GOMP_SIMD_ORDERED_END): New functions.
1078         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1079         GOMP_SIMD_ORDERED_END): New internal functions.
1080         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1081         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1082         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1083         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1084         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1085         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1086         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1087         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1088         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1089         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1090         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1091         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1092         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1093         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1094         adjust type.
1095         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1096         GOMP_target_data_41, adjust type.
1097         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1098         GOMP_target_update_41, adjust type.
1099         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1100         field.
1101         (struct omp_for_data): Add ordered and simd_schedule fields.
1102         (omp_member_access_dummy_var, unshare_and_remap_1,
1103         unshare_and_remap, is_taskloop_ctx): New functions.
1104         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1105         (extract_omp_for_data): Handle taskloops and doacross loops
1106         and simd schedule modifier.
1107         (omp_adjust_chunk_size): New function.
1108         (get_ws_args_for): Use it.
1109         (lookup_sfield): Change first argument to splay_tree_key,
1110         add overload with first argument tree.
1111         (maybe_lookup_field): Likewise.
1112         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1113         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1114         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1115         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1116         taskloops and omp_member_access_dummy_var vars.
1117         (build_sender_ref): Change first argument to splay_tree_key,
1118         add overload with first argument tree.
1119         (install_var_field): For mask & 8 use &DECL_UID as key instead
1120         of the tree itself.
1121         (fixup_child_record_type): Const qualify *.omp_data_i.
1122         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1123         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1124         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1125         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1126         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1127         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1128         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1129         kinds.
1130         (add_taskreg_looptemp_clauses): New function.
1131         (scan_omp_parallel): Use it.
1132         (scan_omp_task): Likewise.
1133         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1134         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1135         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1136         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1137         sandwiched taskloop constructs.  Type check
1138         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1139         region.  Diagnose depend(source) or depend(sink:...) on
1140         target constructs or task/taskloop.
1141         (handle_simd_reference): Use get_name.
1142         (lower_rec_input_clauses): Likewise.  Ignore all
1143         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1144         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1145         before passing it to omp_clause_{default,copy}_ctor.  Handle
1146         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1147         lastprivate_firstprivate flag for linear that needs copyin and
1148         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1149         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1150         on taskloop lookup decl in outer context.  Pass true to
1151         build_outer_var_ref lastprivate argument.  Handle
1152         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1153         outside of outer taskloop for.
1154         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1155         OMP_CLAUSE_DECL.
1156         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1157         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1158         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1159         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1160         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1161         abstract origin.  Handle omp_member_access_dummy_var vars.
1162         (expand_parallel_call): Use expand_omp_build_assign.
1163         (expand_task_call): Handle taskloop construct expansion.  Add
1164         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1165         integers.  Add priority argument to GOMP_task* calls.  Or in
1166         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1167         GOMP_task call.
1168         (expand_omp_build_assign): Add prototype.  Add AFTER
1169         argument, if true emit statements after *GSI_P and continue linking.
1170         (expand_omp_taskreg): Adjust expand_task_call caller.
1171         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1172         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1173         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1174         of counts even for ordered loops.
1175         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1176         (expand_omp_ordered_source, expand_omp_ordered_sink,
1177         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1178         functions.
1179         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1180         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1181         (expand_omp_for_static_nochunk): Handle linear clauses on
1182         worksharing loop.  Adjust expand_omp_for_init_counts
1183         callers.
1184         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1185         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1186         expand_omp_for_init_counts callers.
1187         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1188         functions.
1189         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1190         Handle doacross loops.
1191         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1192         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1193         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1194         (expand_omp): Don't expand ordered depend constructs here, record
1195         ord_stmt instead for later expand_omp_for_generic.
1196         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1197         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1198         clause as stand-alone directive.
1199         (lower_omp_ordered_clauses): New function.
1200         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1201         don't lower anything.
1202         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1203         on taskloop for comparison.
1204         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1205         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1206         expansion for linear adjustments.
1207         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1208         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1209         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1210         to tree * pointing to the stmt's clauses.
1211         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1212         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1213         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1214         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1215         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1216         clauses.  Always use short kind and 8-bit align shift.
1217         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1218         (struct lower_omp_regimplify_operands_data): New type.
1219         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1220         New functions.
1221         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1222         gimple_regimplify_operands.
1223         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1224         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1225         clause as stand-alone directive.
1226         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1227         (simd_clone_mangle): Mangle the various linear kinds
1228         per the new ABI.
1229         (simd_clone_adjust_argument_types): Handle
1230         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1231         (simd_clone_init_simd_arrays): Don't do anything for uval.
1232         (simd_clone_adjust): Handle
1233         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1234         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1235         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1236         * omp-low.h (omp_member_access_dummy_var): New prototype.
1237         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1238         pass after all optimizations.
1239         * tree.c (omp_clause_code_name): Add entries for
1240         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1241         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1242         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1243         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1244         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1245         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1246         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1247         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1248         clauses.
1249         * tree-core.h (enum omp_clause_linear_kind): New.
1250         (struct tree_omp_clause): Change type of map_kind
1251         from unsigned char to unsigned int.  Add subcode.if_modifier
1252         and subcode.linear_kind fields.
1253         (enum omp_clause_code): Add
1254         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1255         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1256         (OMP_CLAUSE_REDUCTION): Document
1257         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1258         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1259         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1260         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1261         operand.
1262         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1263         operand.
1264         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1265         codes.
1266         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1267         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1268         char.
1269         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1270         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1271         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1272         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1273         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1274         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1275         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1276         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1277         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1278         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1279         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1280         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1281         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1282         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1283         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1284         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1285         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1286         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1287         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1288         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1289         (convert_local_omp_clauses): Likewise.
1290         * tree-pretty-print.c (dump_omp_clause): Handle
1291         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1292         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1293         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1294         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1295         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1296         GOMP_MAP_FORCE_DEALLOC.  Handle
1297         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1298         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1299         and clauses on OMP_ORDERED and OMP_CRITICAL.
1300         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1301         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1302         (vectorize_loops): Adjust comments.
1303         (pass_simduid_cleanup::execute): Likewise.
1304         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1305         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1306         * wide-int.h (wi::gcd): New.
1307
1308 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1311         (ix86_function_arg_advance): Ditto.
1312         (ix86_function_arg): Ditto.
1313         (ix86_gimplify_va_arg): Ditto.
1314         (ix86_class_max_nregs): Ditto.
1315         (inline_memory_move_cost): Ditto.
1316         (ix86_set_reg_reg_cost): Ditto.
1317         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1318
1319 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1320
1321         PR middle-end/67912
1322         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1323
1324 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1325
1326         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1327         ROUND_UP macro and UNITS_PER_WORD * 2.
1328         * config/sparc/sparc.c (sparc_compute_frame_size):
1329         Use ROUND_UP and ROUND_DOWN macros where applicable.
1330         (function_arg_record_value, function_arg_record_value_1)
1331         (function_arg_record_value_1): Ditto.
1332         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1333         alignment to double-word.
1334         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1335         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1336         rounded_size.
1337
1338 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1339
1340         * gcc/rtl.h (print_insn): Fix prototype.
1341
1342 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1343
1344         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1345         -1.  Add assert that returned entry matches phi argument.
1346         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1347         free_stmt_vec_info_vec ...
1348         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1349         with -1.
1350
1351 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1352
1353         PR tree-optimization/67909, 67947
1354         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1355         really skip the inner loop.
1356
1357 2015-10-13  Jeff Law  <law@redhat.com>
1358
1359         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1360         Allow single block jump threading paths.
1361
1362 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1363
1364         PR tree-optimization/67476
1365         * doc/invoke.texi (@item parloops-schedule): New item.
1366         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1367         * tree-parloops.c: Include params-enum.h.
1368         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1369
1370 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1371
1372         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1373         * params-enum.h: New file.
1374         * opts.c (handle_param): Handle case that param arg is a string.
1375         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1376         * params.c (find_param): New function, factored out of ...
1377         (set_param_value): ... here.
1378         (param_string_value_p): New function.
1379         * params.h (struct param_info): Add value_names field.
1380         (find_param, param_string_value_p): Declare.
1381
1382 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1383
1384         PR tree-optimization/67476
1385         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1386
1387 2015-10-13  Richard Biener  <rguenther@suse.de>
1388
1389         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1390         the data dependence vector.
1391         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1392         (vect_peeling_hash_get_lowest_cost): Likewise.
1393         (vect_enhance_data_refs_alignment): Adjust.
1394         (struct _vect_peel_info, struct _vect_peel_extended_info,
1395         struct peel_info_hasher): Move from ...
1396         * tree-vectorizer.h: ... here.
1397         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1398         (LOOP_VINFO_PEELING_HTAB): Likewise.
1399         (struct _loop_vec_info): Remove min_profitable_iters and
1400         peeling_htab members.
1401         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1402         here.
1403         (destroy_loop_vec_info): Adjust.
1404         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1405         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1406         to estimate alias versioning cost.
1407         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1408
1409 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1410
1411         * real.h (real_isinteger): Declare.
1412         * real.c (real_isinteger): New function.
1413         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1414         if y is an even integer.
1415
1416 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1417
1418         revert:
1419         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1420         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1421         counts when these are more informative.
1422
1423 2015-10-12  Jeff Law  <law@redhat.com>
1424
1425         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1426         (fsm_find_control_stmt_paths): Change name of first argument to
1427         more accurately relfect what it really is.  Handle simplification
1428         of GIMPLE_COND after finding a thread path for NAME.
1429         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1430         nontrivial conditions to be handled by FSM threader.
1431         (thread_through_normal_block): Extract the name to looup via
1432         FSM threader from COND_EXPR.
1433
1434         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1435         restriction that traced SSA_NAME is a user variable.
1436
1437 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1438
1439         PR tree-optimization/67476
1440         * omp-low.c (expand_omp_for_generic): Add missing phis.
1441
1442 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1443
1444         PR tree-optimization/67476
1445         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1446
1447 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1448
1449         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1450         tables: add tbl3 and tbx4.
1451         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1452         (aarch64_tbx4v8qi): New.
1453         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1454         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1455         Rewrite using builtin functions.
1456         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1457
1458 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1459
1460         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1461         ROUND_UP macro.
1462         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1463         Use ROUND_UP and ROUND_DOWN macros where applicable.
1464         (rs6000_darwin64_record_arg_flush): Ditto.
1465         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1466         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1467         rounded_size.
1468
1469 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1470
1471         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1472         (AARCH64_ROUND_DOWN): Ditto.
1473         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1474
1475 2015-10-12  Richard Biener  <rguenther@suse.de>
1476
1477         PR ipa/67783
1478         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1479         code that analyzes IVs on each stmt but in a cheaper way avoiding
1480         quadratic behavior.
1481
1482 2015-10-12  Nick Clifton  <nickc@redhat.com>
1483
1484         * config/msp430/msp430.c (msp430_mcu_names): Rename to
1485         msp430_mcu_data, add fields for ISA and hardware multiply
1486         support.  Import latest data from the devices.csv file.
1487         (msp430_override_option): Use the data from the new array.
1488         (msp430_use_f5_series_hwmult): Likewise.
1489         (use_32bit_hwmult): Likewise.
1490         (msp430_no_hwmult): Likewise.
1491         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1492         MCU names.
1493         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1494         not recognised then no hardware multiply support is assumed and
1495         that only the MSP430 ISA is allowed.
1496
1497 2015-10-12  Richard Biener  <rguenther@suse.de>
1498
1499         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1500         related code ...
1501         (vect_analyze_loop_2): ... here.
1502
1503 2015-10-11  Jason Merrill  <jason@redhat.com>
1504
1505         PR c++/67557
1506         * expr.c (store_field): Call store_constructor directly when
1507         storing a CONSTRUCTOR into a target smaller than its type.
1508         Guard against unsafe bitwise copy.
1509
1510 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1511
1512         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1513         counts when these are more informative.
1514
1515 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1516
1517         * tree-profile.c (tree_profiling): Do not clear
1518         pure/const when not instrumenting.
1519         (pass tree_profile): Add dump of symtab.
1520
1521 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1522
1523         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1524         addresses.
1525         (fold_addr_of_array_ref_difference): Likewise.
1526
1527 2015-10-11  Jeff Law  <law@redhat.com>
1528
1529         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1530         tree-ssa-threadbackward.c.
1531         (fsm_find_control_statement_thread_paths): Likewise.
1532         (thread_through_normal_block): Break out FSM bits and move them
1533         into a new function in tree-ssa-threadbackward.c.  Call new function
1534         instead.
1535         Minimize header file usage.
1536         * tree-ssa-threadbackward.h: New file.
1537         * tree-ssa-threadbackward.c: Likewise.
1538         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1539
1540 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
1541
1542         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1543
1544 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
1545
1546         PR rtl-optimization/67864
1547         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1548         fallthrough edges for conditional jumps.  Don't sort candidate
1549         edges if not optimizing for speed.
1550
1551 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1552
1553         * defaults.h (REVERSE_CONDITION): New default definition.
1554         * jump.c (reversed_comparison_code_parts): Adjust.
1555
1556 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1557
1558         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1559         check HARD_FRAME_POINTER_IS_ARG_POINTER.
1560
1561 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1562
1563         * defaults.h (FRAME_ADDR_RTX): New default definition.
1564         * builtins.c (expand_builtin_return_addr): Adjust.
1565
1566 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1567
1568         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1569         * builtins.c (expand_builtin_return_addr): Adjust.
1570
1571 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1572
1573         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1574         * builtins.c (expand_builtin_return_addr): Adjust.
1575         * doc/tm.texi: Likewise.
1576         * doc/tm.texi.in: Likewise.
1577         * except.c (expand_builtin_unwind_init): Likewise.
1578
1579 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1580
1581         * builtins.c (expand_builtin_return_addr): Adjust.
1582         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1583
1584 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1585
1586         * tree.c (type_with_interoperable_signedness): New.
1587         (gimple_canonical_types_compatible_p): Use it.
1588         * tree.h (type_with_interoperable_signedness): Declare
1589
1590 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1591
1592         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1593         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1594         when OEP_ADDRESS_OF is se.
1595
1596 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1597             Sebastian Pop  <s.pop@samsung.com>
1598
1599         * graphite-dependences.c (scop_get_dependences): Add dump of the
1600         data dependence graph.
1601         * graphite-poly.c (print_isl_union_map): New.
1602         (debug_isl_union_map): New.
1603         * graphite-poly.h (print_isl_union_map): Declare.
1604         (debug_isl_union_map): Declare.
1605
1606 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1607             Sebastian Pop  <s.pop@samsung.com>
1608
1609         * graphite-poly.c (print_iteration_domain): Remove verbosity.
1610         Remove OpenScop formatting.
1611         (print_iteration_domains): Same.
1612         (debug_iteration_domain): Same.
1613         (debug_iteration_domains): Same.
1614         (print_pdr): Same.
1615         (debug_pdr): Same.
1616         (dump_gbb_cases): Same.
1617         (dump_gbb_conditions): Same.
1618         (print_pdrs): Same.
1619         (debug_pdrs): Same.
1620         (print_pbb_body): Same.
1621         (print_pbb): Same.
1622         (print_scop_params): Same.
1623         (print_scop_context): Same.
1624         (print_scop): Same.
1625         (debug_pbb_domain): Same.
1626         (debug_pbb): Same.
1627         (debug_scop_context): Same.
1628         (debug_scop): Same.
1629         (debug_scop_params): Same.
1630         * graphite-poly.h: Same.
1631         * graphite.c (graphite_transform_loops): Same.
1632
1633 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1634
1635         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1636         call that isn't needed.
1637
1638 2015-10-09  Jeff Law  <law@redhat.com>
1639
1640         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1641         rather than moving each name to the freelist individually.
1642
1643 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
1644
1645         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1646         * frame-header-opt.c: New file.
1647         * config/mips/mips-proto.h (mips_register_frame_header_opt):
1648         Add prototype.
1649         * config/mips/mips.c (mips_compute_frame_info): Check
1650         optimize_call_stack flag.
1651         (mips_option_override): Register new frame_header_opt pass.
1652         (mips_frame_info, mips_int_mask, mips_shadow_set,
1653         machine_function): Move these types to...
1654         * config/mips/mips.h: here.
1655         (machine_function): Add does_not_use_frame_header and
1656         optimize_call_stack fields.
1657         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1658         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1659         Document new flags.
1660         * config/mips/mips.opt (mframe-header-opt): Add new option.
1661
1662 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
1663
1664         * config/i386/i386.c
1665         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1666         ROUND_DOWN where applicable.
1667
1668 2015-10-09  Jeff Law  <law@redhat.com>
1669
1670         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1671         correct statement.
1672
1673 2015-10-09  Renlin Li  <renlin.li@arm.com>
1674
1675         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1676         operands[0] and operands[2].
1677         (neon_vtrn<mode>_insn): Likewise.
1678         (neon_vzip<mode>_insn): Likewise.
1679
1680 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1681
1682         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1683         ((X & C2) << C1): Expand to...
1684         (X {&,^,|} C2 << C1): ...This.
1685         ((X & C2) >> C1): Expand to...
1686         (X {&,^,|} C2 >> C1): ...This.
1687
1688 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
1689
1690         PR target/67895
1691         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1692         Adjust embedded rounding/SAE specifier position.
1693         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1694         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1695         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1696         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1697         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1698         Likewise.
1699         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1700
1701 2015-10-09  Martin Jambor  <mjambor@suse.cz>
1702
1703         tree-optimization/67794
1704         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1705         between types of state,ents but accept original definitions as a
1706         parameter.
1707         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1708         iterate over definitions.
1709
1710 2015-10-09  James Norris  <jnorris@codesourcery.com>
1711
1712         * config/rs6000/rs6000.c (rs6000_offload_options): New.
1713         (TARGET_OFFLOAD_OPTIONS): New.
1714
1715 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
1716
1717         PR middle-end/67891
1718         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1719
1720         PR middle-end/67766
1721         * function.c (expand_function_end): Move return value
1722         promotion past the handling of PARALLELs and CONCATs.
1723
1724         PR rtl-optimization/67828
1725         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1726         (tree_may_unswitch_on): Don't unswitch on expressions
1727         involving undefined values.
1728
1729 2015-10-09  Richard Biener  <rguenther@suse.de>
1730
1731         * genmatch.c (print_operand): Fix formatting.
1732         (dt_node::append_simplify): Warn for multiple simplifiers
1733         that match the same pattern.
1734         * match.pd (log (exp @0)): Remove duplicates.
1735
1736 2015-10-09  Richard Biener  <rguenth@suse.de>
1737
1738         PR target/67366
1739         * gimple-fold.c (optabs-query.h): Include
1740         (gimple_fold_builtin_memory_op): Allow unaligned stores
1741         when movmisalign_optabs are available.
1742
1743 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1744
1745         PR target/67366
1746         * config/arm/arm.md (movmisalign<mode>): New.
1747         * config/arm/iterators.md (HSI): New.
1748
1749 2015-10-09  Richard Biener  <rguenther@suse.de>
1750
1751         PR tree-optimization/67891
1752         * gimple-match.h (gimple_simplified_result_is_gimple_val):
1753         New helper.
1754         (gimple_resimplify1): Declare.
1755         (gimple_resimplify2): Likewise.
1756         (gimple_resimplify3): Likewise.
1757         * gimple-match-head.c (gimple_resimplify1): Export.
1758         (gimple_resimplify2): Likewise.
1759         (gimple_resimplify3): Likewise.
1760         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1761         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1762         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1763         to avoid creating stmts without VN info.
1764
1765 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
1766
1767         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1768         of availability.
1769
1770 2015-10-08  Jeff Law  <law@redhat.com>
1771
1772         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1773         and release_ssa_name in two places.
1774         (gimple_stringop_fixed_value): Similarly.
1775
1776         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1777         release_defs.
1778
1779         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1780         unlink_stmt_vdef and release_ssa_name_fn.
1781
1782         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1783         release_defs.
1784
1785 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1786
1787         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1788         SSE register save area to 16 bytes only if the incoming stack
1789         boundary is no less than 16 bytes.
1790
1791 2015-10-08  Jeff Law  <law@redhat.com>
1792
1793         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1794         release_ssa_name.  Fix typo in comment.
1795
1796 2015-10-08  Nathan Sidwell  <nathan@acm.org>
1797
1798         * config/nvptx/nvptx.h (struct machine_function): Add comment.
1799         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1800         may return pointer as well as in memory.
1801         (nvptx_output_return): Likewise.
1802
1803 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1804
1805         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1806         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
1807         * match.pd: Add rules previously handled by fold_builtin_sqrt
1808         and fold_builtin_cbrt.
1809
1810 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1811
1812         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1813         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1814         * fold-const.h (tree_unary_nonnegative_warnv_p)
1815         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1816         (tree_expr_nonnegative_warnv_p): Add depth parameters.
1817         * fold-const.c: Include gimple-fold.h and params.h.
1818         (tree_ssa_name_nonnegative_warnv_p): New function.
1819         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
1820         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1821         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
1822         Add a depth parameter and increment it for recursive calls to
1823         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
1824         to handle SSA names.
1825         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
1826         (gimple_stmt_nonnegative_warnv_p): Declare.
1827         * tree-vrp.c (remove_range_assertions): Remove assert that condition
1828         cannot be proven false.
1829         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
1830         (gimple_stmt_nonnegative_warnv_p): Move to...
1831         * gimple-fold.c: ...here.  Add depth parameters and pass them
1832         down to the tree routines.  Accept statements that aren't
1833         assignments or calls but just return false for them.
1834         (gimple_val_nonnegative_real_p): Delete.
1835         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
1836         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
1837         Check HONOR_NANs first.
1838
1839 2015-10-08  Martin Jambor  <mjambor@suse.cz>
1840
1841         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
1842         unnecessary MIN.
1843
1844 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1845
1846         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
1847         in the tail of outer-loop.
1848
1849 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
1850
1851         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
1852         return UI_NONE.
1853
1854 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
1855
1856         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
1857         "cfghooks.h", add prototypes for introduced new functions.
1858         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
1859         checks on ability of loop unswitching to tree_unswitch_single_loop;
1860         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
1861         on innermost loop check.
1862         (tree_unswitch_single_loop): Add all required checks on ability of
1863         loop unswitching under zero recursive level guard.
1864         (tree_unswitch_outer_loop): New function.
1865         (find_loop_guard): Likewise.
1866         (empty_bb_without_guard_p): Likewise.
1867         (used_outside_loop_p): Likewise.
1868         (get_vop_from_header): Likewise.
1869         (hoist_guard): Likewise.
1870         (check_exit_phi): Likewise.
1871
1872 2015-10-08  Marek Polacek  <polacek@redhat.com>
1873
1874         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
1875         ops element.
1876
1877 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1878
1879         PR c/65345
1880         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
1881         create_tmp_var_raw instead of create_tmp_var.
1882
1883 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
1884
1885         * expr.c (store_expr_with_bounds): Handle aggregate moves from
1886         BLKmode.
1887         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
1888         to define gimple type system; compare aggregates only by size.
1889
1890 2015-10-07  Jeff Law  <law@redhat.com>
1891
1892         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
1893         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
1894         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
1895         unnecessarily.
1896
1897 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1898             Sebastian Pop  <s.pop@samsung.com>
1899
1900         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
1901         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
1902         (generate_isl_schedule): Same.
1903         * graphite-optimize-isl.c (scop_get_domains): Same.
1904         (apply_schedule_map_to_scop): Same.
1905         * graphite-poly.c (print_iteration_domains): Same.
1906         (remove_gbbs_in_scop): Same.
1907         (new_scop): Same.
1908         (free_scop): Same.
1909         (print_scop): Same.
1910         * graphite-poly.h (struct scop): Rename bbs to pbbs.
1911         (SCOP_BBS): Remove.
1912         * graphite-scop-detection.c (compare_bb_depths): Remove.
1913         (graphite_sort_dominated_info): Remove.
1914         (try_generate_gimple_bb): Move out of scop_detection.
1915         (all_non_dominated_preds_marked_p): Remove.
1916         (build_scop_bbs_1): Remove.
1917         (build_scop_bbs): Remove.
1918         (nb_pbbs_in_loops): Do not use SCOP_BBS.
1919         (find_scop_parameters): Same.
1920         (sese_dom_walker): Rename gather_bbs.
1921         (before_dom_children): Call try_generate_gimple_bb and collect gbb
1922         and pbb.
1923         (build_scops): Call gather_bbs.
1924         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
1925         (add_conditions_to_constraints): Same.
1926         (build_scop_iteration_domain): Same.
1927         (build_scop_drs): Same.
1928         (new_pbb_from_pbb): Same.
1929         * sese.c (new_sese_info): Create bbs.
1930         * sese.h (struct sese_info_t): Add bbs.
1931
1932 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
1933
1934         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
1935         encoding in 64-bit mode.
1936
1937 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
1938
1939         PR target/66697
1940         * config/i386/i386.c (ix86_option_override_internal): Always use
1941         8-byte minimum stack boundary in 64-bit mode.
1942         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
1943         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
1944         Add a REG_CFA_EXPRESSION note if needed.
1945         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
1946         (ix86_handle_force_align_arg_pointer_attribute): New.
1947         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
1948         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
1949         with ix86_handle_force_align_arg_pointer_attribute.
1950         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
1951
1952 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1953             Sebastian Pop  <s.pop@samsung.com>
1954
1955         * graphite-scop-detection.c (parameter_index_in_region): Remove
1956         use of SESE_ADD_PARAMS.
1957         (find_scop_parameters): Same.
1958         * sese.c (new_sese_info): Same.
1959         * sese.h (struct sese_info_t): Remove add_params.
1960         (SESE_ADD_PARAMS): Remove.
1961
1962 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
1963             Sebastian Pop  <s.pop@samsung.com>
1964
1965         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
1966         an sese_info_p.
1967         (copy_def): Same.
1968         (copy_internal_parameters): Same.
1969         (translate_isl_ast_to_gimple): Use an sese_l.
1970         (build_iv_mapping): Same.
1971         * graphite-poly.c (new_sese): Rename new_sese_info.
1972         (free_sese): Rename free_sese_info.
1973         * graphite-poly.h (struct scop): Use an sese_info_p.
1974         (scop_set_region): Same.
1975         * graphite-scop-detection.c (struct sese_l): Moved...
1976         (get_entry_bb): Moved...
1977         (get_exit_bb): Moved...
1978         (parameter_index_in_region_1): Use an sese_info_p.
1979         (parameter_index_in_region): Same.
1980         (scan_tree_for_params): Same.
1981         (find_params_in_bb): Same.
1982         (sese_dom_walker): Use an sese_l.
1983         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
1984         (reduction_phi_p): Same.
1985         (parameter_index_in_region_1): Use an sese_info_p.
1986         (propagate_expr_outside_region): Use an sese_l.
1987         * graphite.c: Replace uses of SCOP_REGION.
1988         * sese.c (sese_record_loop): Use an sese_info_p.
1989         (build_sese_loop_nests): Same.
1990         (sese_build_liveouts_use): Same.
1991         (sese_build_liveouts_bb): Same.
1992         (sese_build_liveouts_bb): Same.
1993         (sese_bad_liveouts_use): Same.
1994         (sese_reset_debug_liveouts_bb): Same.
1995         (sese_build_liveouts): Same.
1996         (new_sese): Renamed new_sese_info.
1997         (free_sese): Renamed free_sese_info.
1998         (set_rename): Use an sese_info_p.
1999         (graphite_copy_stmts_from_block): Same.
2000         (copy_bb_and_scalar_dependences): Same.
2001         (outermost_loop_in_sese_1): Use an sese_l.
2002         (outermost_loop_in_sese): Same.
2003         (if_region_set_false_region): Use an sese_info_p.
2004         (move_sese_in_condition): Same.
2005         (scalar_evolution_in_region): Use an sese_l.
2006         * sese.h (struct sese_l): ... here.
2007         (SESE_ENTRY): Remove.
2008         (SESE_ENTRY_BB): Remove.
2009         (SESE_EXIT): Remove.
2010         (SESE_EXIT_BB): Remove.
2011         (sese_contains_loop): Use an sese_info_p.
2012         (sese_nb_params): Same.
2013         (bb_in_sese_p): Use an sese_l.
2014         (stmt_in_sese_p): Same.
2015         (defined_in_sese_p): Same.
2016         (loop_in_sese_p): Same.
2017         (sese_loop_depth): Same.
2018         (struct ifsese_s): Use an sese_info_p.
2019         (gbb_loop_at_index): Use an sese_l.
2020         (nb_common_loops): Same.
2021         (scev_analyzable_p): Same.
2022
2023 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2024
2025         * config/i386/i386.c (ix86_conditional_register_usage): Use
2026         CALL_USED_REGISTERS_MASK.
2027         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2028
2029 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2030
2031         PR bootstrap/67385
2032         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2033         * configure: Regenerated.
2034
2035 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2036
2037         PR target/67850
2038         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2039         (ix86_set_current_function): This.
2040         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2041
2042 2015-10-07  Richard Biener  <rguenther@suse.de>
2043
2044         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2045         (vinfo_for_stmt): Adjust.
2046         (set_vinfo_for_stmt): Likewise.
2047         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2048         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2049         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2050         of inner loop.
2051         (vect_analyze_loop_1): Remove.
2052         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2053         inner loop when vectorizing an outer loop by splitting out from ...
2054         (vect_analyze_loop_form): ... here.
2055
2056 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2057
2058         PR c/65345
2059         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2060         Use create_tmp_var_raw instead of create_tmp_var.
2061
2062 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2063
2064         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2065         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2066         * real.c (CACHED_FRACTION): New helper macro.
2067         (dconst_third_ptr): Use it.
2068         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2069         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2070         dconst_sixth.
2071         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2072
2073 2015-10-06  Jeff Law  <law@redhat.com>
2074
2075         PR tree-optimization/67816
2076         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2077         from remove_jump_threads_starting_at.  Accept an edge rather than
2078         a basic block.
2079         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2080         (remove_jump_threads_including): Note edges that get removed from
2081         the CFG for later pruning of jump threading paths including them.
2082         (thread_through_all_blocks): Remove paths which include edges that
2083         have been removed.
2084         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2085         on each outgoing edges when optimizing away a control statement.
2086
2087 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2088
2089         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2090         in a vector instead of rtx_insn_list.
2091         (add_to_delay_list): Likewise.
2092         (delete_from_delay_slot): Likewise.
2093         (optimize_skip): Likewise.
2094         (redirect_with_delay_list_safe_p): Likewise.
2095         (check_annul_list_true_false): Likewise.
2096         (steal_delay_list_from_target): Likewise.
2097         (steal_delay_list_from_fallthrough): Likewise.
2098         (redundant_insn): Likewise.
2099         (fill_simple_delay_slots): Likewise.
2100         (fill_slots_from_thread): Likewise.
2101         (fill_eager_delay_slots): Likewise.
2102         (relax_delay_slots): Likewise.
2103
2104 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2105
2106         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2107         For -mgpopt=local, also exclude unintialized common symbols.
2108         * doc/invoke.texi (Nios II Options): Document the change.
2109
2110 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2111
2112         * config/aarch64/iterators.md (vwcore): Add missing cases for
2113          V4HF/V8HF modes.
2114
2115 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2116             Sebastian Pop  <s.pop@samsung.com>
2117
2118         * graphite-poly.c (new_scop): Initialize drs.
2119         * graphite-poly.h (struct dr_info): New.
2120         (struct scop): Add drs.
2121         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2122         (pdr_add_memory_accesses): Same.
2123         (build_poly_dr): Same.
2124         (build_alias_set): Same.
2125         (build_scop_drs): Same.
2126         (build_pbb_drs): Remove.
2127         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2128         * tree-data-ref.h (data_reference): Remove alias_set.
2129
2130 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2131             Sebastian Pop  <s.pop@samsung.com>
2132
2133         * graphite-poly.c (free_data_refs_aux): Remove.
2134         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2135         * graphite-poly.h (struct base_alias_pair): Remove.
2136         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2137         base_alias_pair and dr->aux.
2138         (build_alias_set): Same.
2139         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2140         * tree-data-ref.h (data_reference): Add alias_set.
2141
2142 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2143             Sebastian Pop  <s.pop@samsung.com>
2144
2145         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2146         Do not set PDR_BASE_OBJECT_SET.
2147         * graphite-poly.h (poly_dr): Same.
2148         (PDR_BASE_OBJECT_SET): Remove.
2149         (new_poly_dr): Update decl.
2150         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2151         new_poly_dr.
2152         (write_alias_graph_to_ascii_dimacs): Remove.
2153         (write_alias_graph_to_ascii_dot): Remove.
2154         (write_alias_graph_to_ascii_ecc): Remove.
2155         (dr_same_base_object_p): Remove.
2156         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2157         code.
2158         (build_base_obj_set_for_drs): Remove.
2159         (dump_alias_graphs): Remove.
2160         (build_scop_drs): Remove dead code.
2161
2162 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2163             Peter Bergner  <bergner@vnet.ibm.com>
2164
2165         PR target/67808
2166         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2167         allow registers, but provide insns for the combiner to create for
2168         loads from memory. Separate VSX code from non-VSX code. For
2169         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2170         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2171         so that registers come before memory operations. Drop support from
2172         converting DFmode to TFmode, if the DFmode value is in a GPR
2173         register.
2174         (extenddftf2_fprs): Likewise.
2175         (extenddftf2_internal): Likewise.
2176         (extenddftf2_vsx): Likewise.
2177         (extendsftf2): In the expander, only allow registers, but provide
2178         insns for the combiner to create for stores and loads.
2179
2180 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2181
2182         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2183         from the decl parameter.
2184
2185 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2186
2187         PR 67861
2188         * gimple-fold.c (gimple_fold_builtin): Add break after
2189         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2190
2191 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2192
2193         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2194         to scop->isl_context.
2195
2196 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2197
2198         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2199         (output_probe_stack_range): Rotate the loop and simplify.
2200         (thumb1_expand_prologue): Tweak sorry message.
2201         * config/arm/arm.md (probe_stack): Use bare string.
2202
2203 2015-10-06  Nick Clifton  <nickc@redhat.com>
2204
2205         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2206
2207 2015-10-06  Nick Clifton  <nickc@redhat.com>
2208
2209         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2210         (ATTR_PERSIST): New constant.
2211         (msp430_data_attr): New function - verifies an attribute that only
2212         applies to variables.
2213         (msp430_attributes): Add noinit and persistent attributes.
2214         (noinit_section): New variable.
2215         (presis_section): New variable.
2216         (TARGET_ASM_INIT_SECTIONS): Define.
2217         (msp430_init_sections): New function - initialises the noinit and
2218         persist section variables.
2219         (msp430_select_section): Add support for noinit and persist
2220         attributes.
2221         (msp430_section_type_flags): Likewise.
2222         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2223         and persistent attributes.
2224
2225 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2226             Sebastian Pop  <s.pop@samsung.com>
2227
2228         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2229         (no_violations): Remove.
2230         (subtract_commutative_associative_deps): Remove.
2231         (compute_deps): Do not call subtract_commutative_associative_deps.
2232         (transform_is_safe): Remove.
2233         (graphite_legal_transform): Remove.
2234         * graphite-poly.h (graphite_legal_transform): Remove.
2235
2236 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2237
2238         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2239         which are in this region are passed so gcc_assert and remove redundant
2240         computation.
2241         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2242         in region.
2243         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2244         gcc_assert on that and remove unnecessary computation.
2245         (sese_build_liveouts_use): Same.
2246
2247 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2248
2249         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2250         to scop->param_context.
2251         (scop_get_must_writes): Same.
2252         (scop_get_may_writes): Same.
2253         (scop_get_original_schedule): Same.
2254         (scop_get_transformed_schedule): Same.
2255         (subtract_commutative_associative_deps): Same.
2256         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2257         (generate_isl_context): Same.
2258         (generate_isl_schedule): Same.
2259         (scop_to_isl_ast): Same.
2260         (graphite_regenerate_ast_isl): Same.
2261         * graphite-optimize-isl.c (scop_get_domains): Same.
2262         (optimize_isl): Renamed scop->context to scop->param_context.
2263         * graphite-poly.c (new_poly_bb): Change the type of argument to
2264         gimple_poly_bb_p.
2265         (new_scop): Renamed scop->context to scop->param_context.
2266         (free_scop): Same.
2267         (print_scop_context): Same.
2268         * graphite-poly.h (new_poly_dr): Change the type of argument from
2269         void* to data_reference_p.
2270         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2271         (new_poly_bb): Change the type of argument from void* to
2272         gimple_poly_bb_p.
2273         (pbb_set_black_box): Same.
2274         (struct scop): Rename context to param_context, ctx to isl_context.
2275         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2276         Move declarations closer to assignment.
2277         (find_params_in_bb): Same.
2278         (find_scop_parameters): Same.
2279         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2280         Global to be used for statement IDs.
2281         (isl_id_for_pbb): Use ssa_name_version_typesize.
2282         (simple_copy_phi_p): Move declarations closer to assignment.
2283         (build_pbb_scattering_polyhedrons): Same.
2284         (build_scop_scattering): Same.
2285         (isl_id_for_ssa_name): Same.
2286         (extract_affine_name): Same.
2287         (extract_affine_int): Same.
2288         (extract_affine): Same.
2289         (set_scop_parameter_dim): Use renamed member.
2290         (build_loop_iteration_domains): Same.
2291         (add_param_constraints): Same.
2292         (build_scop_iteration_domain): Same.
2293         (pdr_add_data_dimensions): Same.
2294         (build_poly_dr): Same.
2295         (build_scop_drs): Move declarations closer to assignment.
2296         (analyze_drs_in_stmts): Same.
2297         (insert_out_of_ssa_copy): Same.
2298         (insert_out_of_ssa_copy_on_edge): Same.
2299         (propagate_expr_outside_region): Same.
2300         (rewrite_phi_out_of_ssa): Same.
2301         (rewrite_degenerate_phi): Same.
2302         (rewrite_reductions_out_of_ssa): Same.
2303         (rewrite_cross_bb_scalar_dependence): Same.
2304         (handle_scalar_deps_crossing_scop_limits): Same.
2305         (rewrite_cross_bb_scalar_deps): Same.
2306         * graphite.c (graphite_transform_loops): Use renamed member.
2307
2308 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2309
2310         PR c/65345
2311         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2312         create_tmp_var_raw instead of create_tmp_var.
2313
2314 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2315
2316         PR c/65345
2317         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2318         Use create_tmp_var_raw instead of create_tmp_var.
2319
2320 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2321
2322         PR target/67849
2323         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2324         split for upper-bank registers when target does not support
2325         AVX512VL.
2326         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2327         split when target does not support AVX512VL.
2328
2329 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2330
2331         PR c/65345
2332         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2333         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2334
2335 2015-10-06  Nick Clifton  <nickc@redhat.com>
2336
2337         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2338         multiplication.
2339
2340 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2341
2342         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2343         (case ${target}): Add znver1.
2344         * config/i386/cpuid.h(bit_CLZERO):  Define.
2345         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2346         -march=native recognize znver1 processors.
2347         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2348         znver1, clzero def_and_undef.
2349         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2350         (m_znver1): New definition.
2351         (m_AMD_MULTIPLE): Includes m_znver1.
2352         (processor_target_table): Add znver1 entry.
2353         (ix86_target_string) : Add clzero entry.
2354         (static const char *const cpu_names): Add znver1 entry.
2355         (ix86_option_override_internal): Add znver1 instruction sets.
2356         (PTA_CLZERO) :  New definition.
2357         (ix86_option_override_internal): Handle new clzerooption.
2358         (ix86_issue_rate): Add znver1.
2359         (ix86_adjust_cost): Add znver1.
2360         (ia32_multipass_dfa_lookahead): Add znver1.
2361         (has_dispatch): Add znver1.
2362         * config/i386/i386.h (TARGET_znver1): New definition.
2363         (TARGET_CLZERO): Define.
2364         (TARGET_CLZERO_P): Define.
2365         (struct ix86_size_cost): Add TARGET_ZNVER1.
2366         (enum processor_type): Add PROCESSOR_znver1.
2367         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2368         (set_attr znver1_decode): New definitions for znver1.
2369         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2370         (mclzero): New.
2371         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2372         for znver1.
2373         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2374         * config/i386/x86-tune.def:  Add znver1 tunings.
2375         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2376         * gcc/doc/invoke.texi: Add details about znver1
2377
2378 2015-10-06  Richard Biener  <rguenther@suse.de>
2379
2380         PR tree-optimization/67859
2381         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2382         discard not inserted stmts.
2383
2384 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2385
2386         * doc/extend.texi (Template Instantiation): Reorder options and
2387         de-emphasize -frepo.
2388         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2389         example instead of -frepo.
2390
2391 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2392
2393         PR c/65345
2394         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2395         use create_tmp_var_raw rather than create_tmp_var.
2396
2397 2015-10-06  Richard Biener  <rguenther@suse.de>
2398
2399         * tree-vectorizer.h (vec_info): New base class for...
2400         (_loop_vec_info): ... this and ...
2401         (_bb_vec_info): ... this.
2402         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2403         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2404         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2405         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2406         vect_destroy_datarefs): Adjust interface to take a vec_info *
2407         rather than both a loop_vec_info and a bb_vec_info argument.
2408         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2409         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2410         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2411         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2412         accordingly.
2413         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2414         (destroy_loop_vec_info, vect_analyze_loop_2,
2415         vect_is_simple_reduction_1, get_initial_def_for_induction,
2416         vect_create_epilog_for_reduction, vectorizable_reduction,
2417         vectorizable_live_operation, vect_transform_loop): Adjust.
2418         * tree-vect-patterns.c (type_conversion_p,
2419         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2420         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2421         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2422         check_bool_pattern, vect_recog_bool_pattern,
2423         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2424         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2425         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2426         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2427         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2428         (new_bb_vec_info): Initialize base classs.
2429         * tree-vect-stmts.c (record_stmt_cost, process_use,
2430         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2431         vectorizable_mask_load_store, vectorizable_call,
2432         vectorizable_simd_clone_call, vectorizable_conversion,
2433         vectorizable_assignment, vectorizable_shift,
2434         vectorizable_operation, vectorizable_store,
2435         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2436         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2437         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2438
2439 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2440
2441         PR c/65345
2442         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2443         create_tmp_var_raw rather than create_tmp_var.
2444
2445 2015-10-05  Marek Polacek  <polacek@redhat.com>
2446
2447         * tree-ssa-loop-im.c
2448         (move_computations_dom_walker::before_dom_children): Don't set
2449         SSA_NAME_ANTI_RANGE_P.
2450         * tree-ssa-phiopt.c (value_replacement): Likewise.
2451
2452 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2453             Sebastian Pop  <s.pop@samsung.com>
2454
2455         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2456
2457 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2458             Sebastian Pop  <s.pop@samsung.com>
2459
2460         * graphite-poly.c (new_gimple_poly_bb): ... here.
2461         (free_data_refs_aux): ... here.
2462         (free_gimple_poly_bb): ... here.
2463         (remove_gbbs_in_scop): ... here.
2464         (new_scop): Call new_sese.
2465         (free_scop): Call remove_gbbs_in_scop and free_sese.
2466         * graphite-poly.h (base_alias_pair): ... here.
2467         (new_gimple_poly_bb): Declare.
2468         (free_gimple_poly_bb): Declare.
2469         * graphite-scop-detection.c (parameter_index_in_region_1):
2470         (parameter_index_in_region): ... here.
2471         (scan_tree_for_params): ... here.
2472         (find_params_in_bb): ... here.
2473         (find_scop_parameters): ... here.
2474         (build_scops): Call find_scop_parameters.
2475         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2476         (free_scops): Move...
2477         (single_pred_cond_non_loop_exit): Move...
2478         (sese_dom_walker::before_dom_children): Move...
2479         (sese_dom_walker::after_dom_children): Move...
2480         (build_poly_scop): Move...
2481         * graphite-sese-to-poly.h (base_alias_pair): Move...
2482         * graphite.c (free_scops): ... here.
2483
2484 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2485             Sebastian Pop  <s.pop@samsung.com>
2486
2487         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2488         (trivially_empty_bb_p): Move...
2489         (same_close_phi_node): Move...
2490         (new_gimple_poly_bb): Move...
2491         (compare_bb_depths): Move...
2492         (graphite_sort_dominated_info): Move...
2493         (remove_duplicate_close_phi): Move...
2494         (make_close_phi_nodes_unique): Move...
2495         (canonicalize_loop_closed_ssa): Move...
2496         (canonicalize_loop_closed_ssa_form): Move...
2497         (loop_ivs_can_be_represented): Move...
2498         (single_pred_cond_non_loop_exit): Move...
2499         (graphite_can_represent_init): Move...
2500         (graphite_can_represent_scev): Move...
2501         (stmt_has_simple_data_refs_p): Move...
2502         (stmt_has_side_effects):  Move...
2503         (graphite_can_represent_stmt): Move...
2504         (scop_detection): ... here.
2505         (sese_dom_walker): ... and here.
2506         (build_scops): Call all moved functions.
2507         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2508         (all_non_dominated_preds_marked_p): Move...
2509         (build_scop_bbs_1): Move...
2510         (build_scop_bbs): Move...
2511         (set_scop_parameter_dim): Move...
2512         (nb_pbbs_in_loops): Move...
2513         (build_poly_scop): Do not call all the moved functions.
2514
2515 2015-10-05  Martin Jambor  <mjambor@suse.cz>
2516             Jan Hubicka  <hubicka@ucw.cz>
2517
2518         * ipa-cp.c (ipcp_alignment_lattice): New type.
2519         (ipcp_param_lattices): Use the above to represent alignment.
2520         (ipcp_alignment_lattice::print): New function.
2521         (print_all_lattices): Use it to print alignment information.
2522         (ipcp_alignment_lattice::top_p): New function.
2523         (ipcp_alignment_lattice::bottom_p): Likewise.
2524         (ipcp_alignment_lattice::set_to_bottom): Likewise.
2525         (ipcp_alignment_lattice::meet_with_1): Likewise.
2526         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2527         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2528         (initialize_node_lattices): Likewise.
2529         (propagate_alignment_accross_jump_function): Work with the new class
2530         for alignment lattices.
2531         (propagate_constants_accross_call): Pass only the alignment lattice to
2532         propagate_alignment_accross_jump_function.
2533         (ipcp_store_alignment_results): Work with the new class for alignment
2534         lattices.
2535
2536 2015-10-05  Marek Polacek  <polacek@redhat.com>
2537
2538         PR tree-optimization/67821
2539         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2540
2541 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
2542
2543         PR other/65021
2544         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2545         function to...
2546         (mkoffload_cleanup): ... this.  Adjust all users.
2547         (maybe_unlink): Look at save_temps and verbose flags instead of
2548         debug flag.
2549         (main): Parse "-save-temps" flag.
2550         (generate_target_descr_file, generate_target_offloadend_file)
2551         (generate_host_descr_file, prepare_target_image): Pass it on.
2552         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2553         (mkoffload_cleanup): New function.
2554         (maybe_unlink): Look at save_temps and verbose flags instead of
2555         debug flag.
2556         (main): Instead of calling utils_cleanup, register atexit handler
2557         for mkoffload_cleanup.
2558         (main): Parse "-save-temps" flag.
2559         (compile_native, main): Pass it on.
2560         * lto-wrapper.c (compile_offload_image): Likewise.
2561
2562 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2563
2564         * gimple.h (gimple_op_ptr): Require a non const gimple *.
2565         (gimple_assign_lhs_ptr): Likewise.
2566         (gimple_assign_rhs1_ptr): Likewise.
2567         (gimple_assign_rhs2_ptr): Likewise.
2568         (gimple_assign_rhs3_ptr): Likewise.
2569         (gimple_call_lhs_ptr): Likewise.
2570         (gimple_call_fn_ptr): Likewise.
2571         (gimple_call_chain_ptr): Likewise.
2572                 (gimple_call_arg_ptr): Likewise.
2573                 (gimple_cond_lhs_ptr): Likewise.
2574         (gimple_cond_rhs_ptr): Likewise.
2575         (gimple_switch_index_ptr): Likewise.
2576         (gimple_return_retval_ptr): Likewise.
2577
2578 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2579
2580         * gimple.h (gimple_asm_input_op_ptr): Remove.
2581         (gimple_asm_output_op_ptr): Likewise.
2582
2583 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2584
2585         * gimple.h (gimple_location_ptr): Remove.
2586         * tree-vrp.c (check_all_array_refs): Adjust.
2587
2588 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2589
2590         * tree-ssa-operands.c (build_uses): store tree * instead of
2591         tree.
2592         (finalize_ssa_uses): Adjust.
2593         (append_use): Likewise.
2594         (verify_ssa_operands): Likewise.
2595
2596 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2597
2598         * real.h (build_real_truncate): Declare.
2599         * tree.c (build_real_truncate): New function.
2600         (strip_float_extensions): Use it.
2601         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2602         (fold_builtin_hypot, fold_builtin_pow): Likewise.
2603         * match.pd: Likewise.
2604
2605 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2606            Jiong Wang  <jiong.wang@arm.com>
2607
2608         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2609
2610 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2611
2612         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2613         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2614         (aarch64_print_operand, aarch64_float_const_representable_p)
2615         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2616         instead of REAL_VALUE_FROM_CONST_DOUBLE.
2617         * config/arc/arc.c (arc_print_operand): Likewise.
2618         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2619         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2620         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2621         Likewise.
2622         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2623         (consttable_16): Likewise.
2624         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2625         * config/avr/avr.c (avr_print_operand): Likewise.
2626         * config/bfin/bfin.md: Likewise (in a define_split).
2627         * config/c6x/c6x.md: Likewise (in a define_split).
2628         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2629         (cr16_print_operand): Likewise.
2630         * config/cris/cris.c (cris_print_operand): Likewise.
2631         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2632         * config/fr30/fr30.c (fr30_print_operand): Likewise.
2633         (fr30_const_double_is_zero): Likewise.
2634         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2635         * config/frv/frv.md: Likewise (in a define_split).
2636         * config/frv/predicates.md (int_2word_operand): Likewise.
2637         * config/h8300/h8300.c (h8300_print_operand): Likewise.
2638         * config/i386/i386.c (standard_80387_constant_p): Likewise.
2639         (ix86_print_operand, ix86_split_to_parts): Likewise.
2640         * config/i386/i386.md: Likewise (in a define_split).
2641         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2642         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2643         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2644         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2645         (print_operand): Likewise.
2646         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2647         * config/mep/mep.md: Likewise (in define_split).
2648         * config/microblaze/microblaze.c (microblaze_const_double_ok)
2649         (print_operand): Likewise.
2650         * config/mips/mips.md (consttable_float): Likewise.
2651         * config/mmix/mmix.c (mmix_intval): Likewise.
2652         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2653         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2654         * config/pa/pa.c (pa_singlemove_string): Likewise.
2655         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2656         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2657         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2658         (output_toc): Likewise.
2659         * config/rs6000/rs6000.md: Likewise (in define_splits).
2660         * config/rx/rx.c (rx_print_operand): Likewise.
2661         * config/s390/s390.c (s390_output_pool_entry): Likewise.
2662         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2663         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2664         (and also in define_splits).
2665         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2666         (fp_high_losum_p): Likewise.
2667         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2668         (*movsf_high): Likewise.
2669         * config/spu/spu.c (const_double_to_hwint): Likewise.
2670         * config/v850/v850.c (const_double_split): Likewise.
2671         * config/vax/vax.c (vax_float_literal): Likewise.
2672         * config/visium/visium.c (visium_expand_copysign): Likewise.
2673         * config/visium/visium.md: Likewise (in define_split).
2674         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2675         * config/xtensa/xtensa.c (print_operand): Likewise.
2676         (xtensa_output_literal): Likewise.
2677         * cprop.c (implicit_set_cond_p): Likewise.
2678         * dwarf2out.c (insert_float): Likewise.
2679         * expmed.c (expand_mult, make_tree): Likewise.
2680         * expr.c (compress_float_constant): Likewise.
2681         * rtlanal.c (split_double): Likewise.
2682         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2683         (simplify_const_unary_operation, simplify_binary_operation_1)
2684         (simplify_const_binary_operation): Likewise.
2685         (simplify_const_relational_operation): Likewise.
2686         * varasm.c (output_constant_pool_2): Likewise.
2687
2688 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2689
2690         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2691         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2692         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2693         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2694         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2695         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2696         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2697         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2698         (ix86_emit_swsqrtsf): Likewise.
2699         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2700         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2701         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2702         * config/pa/pa.c (pa_expand_builtin): Likewise.
2703         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2704         (rs6000_scale_v2df): Likewise.
2705         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2706         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2707         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2708         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2709         (vec_ctul): Likewise.
2710         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2711         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2712         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2713         * cse.c (fold_rtx): Likewise.
2714         * emit-rtl.c (immed_double_const): Likewise (in comments).
2715         (init_emit_once): Likewise.
2716         * expr.c (compress_float_constant, expand_expr_real_1)
2717         (const_vector_from_tree): Likewise.
2718         * optabs.c (expand_float, expand_fix): Likewise.
2719         * reg-stack.c (reg_to_stack): Likewise.
2720         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2721         (simplify_const_unary_operation, simplify_binary_operation_1)
2722         (simplify_const_binary_operation, simplify_relational_operation)
2723         (simplify_immed_subreg): Likewise.
2724
2725 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2726
2727         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2728         * doc/tm.texi: Regenerate.
2729         * real.h (REAL_ARITHMETIC): Delete.
2730         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2731         (ix86_expand_round_sse4): Use real_arithmetic instead of
2732         REAL_ARITHMETIC.
2733         * config/i386/sse.md (round<mode>2): Likewise.
2734         * rtl.h (rtx_to_tree_code): Likewise (in comment).
2735         * explow.c (rtx_to_tree_code): Likewise (in comment).
2736         * match.pd: Likewise.
2737         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2738         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2739         (expand_pow_as_sqrts): Likewise.
2740         * tree-pretty-print.c (dump_generic_node): Remove code that
2741         was conditional on REAL_ARITHMETIC being undefined.
2742
2743 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2744
2745         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2746         * doc/tm.texi: Regenerate.
2747         * real.h (real_less): Declare.
2748         (REAL_VALUES_LESS): Delete.
2749         * real.c (real_less): New function.
2750         (real_compare): Use it.
2751         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2752         of REAL_VALUES_LESS.
2753         * config/microblaze/microblaze.c (microblaze_const_double_ok):
2754         Likewise.
2755         * fold-const.c (fold_convert_const_int_from_real): Likewise.
2756         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2757         (simplify_const_relational_operation): Likewise.
2758         * tree-call-cdce.c (check_pow): Likewise.
2759         (gen_conditions_for_pow_cst_base): Likewise.
2760
2761 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2762
2763         * real.h (REAL_VALUES_IDENTICAL): Delete.
2764         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2765         instead of REAL_VALUES_IDENTICAL.
2766         * fold-const.c (operand_equal_p): Likewise.
2767         * ipa-icf.c (sem_variable::equals): Likewise.
2768         * tree-complex.c (some_nonzerop): Likewise.
2769         (expand_complex_multiplication): Likewise.
2770         * tree.c (simple_cst_equal): Likewise.
2771         * varasm.c (compare_constant): Likewise.
2772
2773 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2774
2775         * real.h (real_equal): Declare.
2776         (REAL_VALUES_EQUAL): Delete.
2777         * real.c (real_equal): New function.
2778         (real_compare): Use it.
2779         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2780         * doc/tm.texi: Regenerate.
2781         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2782         real_equal instead of REAL_VALUES_EQUAL.
2783         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2784         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2785         (fp_const_from_val): Likewise.
2786         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2787         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2788         (floating_exact_log2): Likewise.
2789         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2790         * config/vax/vax.c (vax_float_literal): Likewise.
2791         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2792         * cprop.c (implicit_set_cond_p): Likewise.
2793         * expmed.c (expand_mult): Likewise.
2794         * fold-const.c (const_binop): Likewise.
2795         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2796         (simplify_const_binary_operation): Likewise.
2797         (simplify_const_relational_operation): Likewise.
2798         * tree-call-cdce.c (check_pow): Likewise.
2799         (gen_conditions_for_pow_cst_base): Likewise.
2800         * tree-inline.c (estimate_num_insns): Likewise.
2801         * tree-ssa-dom.c (record_equality): Likewise.
2802         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2803         (gimple_expand_builtin_pow): Likewise.
2804         (pass_optimize_widening_mul::execute): Likewise.
2805         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2806         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2807         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2808
2809 2015-10-05  Richard Biener  <rguenther@suse.de>
2810
2811         PR ipa/67783
2812         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2813         consider loop header PHI defs as IVs.
2814
2815 2015-10-05  Richard Biener  <rguenther@suse.de>
2816
2817         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
2818         call handling ...
2819         (create_expression_by_pieces): ... here and build GIMPLE
2820         calls directly.  Use gimple_build API and avoid force_gimple_operand.
2821         (insert_into_preds_of_block): Simplify.
2822         (do_regular_insertion): Add comment.
2823
2824 2015-10-04  Jason Merrill  <jason@redhat.com>
2825
2826         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
2827
2828 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
2829
2830         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
2831         check for general register.
2832         (ix86_emit_save_regs): Ditto.
2833         (ix86_emit_save_regs_using_mov): Ditto.
2834         (ix86_emit_restore_regs_using_pop): Ditto.
2835         (ix86_emit_restore_regs_using_mov): Ditto.
2836
2837 2015-10-03  Marek Polacek  <polacek@redhat.com>
2838
2839         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
2840         (insn-dfatab.o): Likewise.
2841
2842 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
2843
2844         * config.gcc (xtensa*-*-uclinux*): New configuration.
2845         * config/xtensa/uclinux.h: New file.
2846         * config/xtensa/uclinux.opt: New file.
2847
2848 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
2849
2850         * doc/cpp.texi (Standard Predefined Macros): Document value of
2851         __cplusplus for C++14.
2852
2853 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
2854
2855         * gcc.c (process_command): Use spec_machine rather than
2856         spec_host_machine to build tooldir_prefix2.
2857
2858 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2859             Bernd Schmidt  <bernds@codesourcery.com>
2860
2861         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
2862         (Token, Stmt): Remove structs.
2863         (decls, vars, fns): Remove variables.
2864         (alloc_comment, append_stmt, is_keyword): Remove macros.
2865         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
2866         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
2867         (parse_init, parse_file): Remove functions.
2868         (read_file): Accept a pointer to a length and store into it.
2869         (process): Don't try to parse the input file, just write it out as
2870         a string, but looking for maps.  Also write out the length.
2871         (main): Don't use "-S" to compile PTX code.
2872
2873 2015-10-02  Jeff Law  <law@redhat.com>
2874
2875         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
2876         fixups.
2877
2878 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
2879
2880         PR target/67822
2881         * config/nvptx/mkoffload.c (main): Scan the argument vector for
2882         -fopenmp, and skip generating an offloading image if specified.
2883
2884 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
2885
2886         * system.h (ROUND_UP): New macro definition.
2887         (ROUND_DOWN): Ditto.
2888         * ggc-page.c (ROUND_UP): Remove local macro definition.
2889         (PAGE_ALIGN): Implement using ROUND_UP macro.
2890
2891         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
2892         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
2893         to align values.
2894         (ix86_compute_frame_layout): Ditto.
2895         (ix86_expand_prologue): Ditto.
2896         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
2897         to round down values.
2898         (expand_set_or_movmem_via_rep): Ditto.
2899
2900 2015-10-02  Marek Polacek  <polacek@redhat.com>
2901
2902         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
2903
2904 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
2905
2906         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
2907         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
2908         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
2909         (free_gimple_bb): Renamed free_gimple_poly_bb.
2910         (try_generate_gimple_bb): Hoist loop invariant code.
2911         (analyze_drs_in_stmts): Same.
2912         (build_scop_drs): Call renamed functions.
2913         (new_pbb_from_pbb): Same.
2914         (scop_ivs_can_be_represented): Delete as functionality now moved to
2915         graphite-scop-detection.c
2916         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
2917
2918 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
2919
2920         * graphite-scop-detection.c (stmt_has_side_effects): New function
2921           outlined from stmt_simple_for_scop_p.
2922         (graphite_can_represent_stmt): Same.
2923         (stmt_simple_for_scop_p): Moved code out of this function for better
2924         readability.
2925
2926 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2927
2928         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
2929         F_AVX512IFMA.
2930         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
2931
2932 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2933
2934         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
2935
2936 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
2937
2938         PR rtl-optimization/67756
2939         * lra-constraints.c (match_reload): Add a new parameter.  Use it
2940         for creating a pseudo with the same value.
2941         (curr_insn_transform): Pass a new argument to match_reload.
2942
2943 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2944
2945         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
2946         (expand_vec_perm_even_odd_1): Handle V64QImode.
2947         (ix86_expand_vec_perm_const_1): Try expansion with
2948         expand_vec_perm_even_odd_trunc as well.
2949         * config/i386/sse.md (VI124_AVX512F): Rename to ...
2950         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
2951         to V54QI.
2952         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
2953         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
2954         to V32HI and V16SI.
2955         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
2956         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
2957         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
2958         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
2959         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
2960         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
2961
2962 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
2963
2964         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
2965         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
2966
2967 2015-10-02  Jason Merrill  <jason@redhat.com>
2968
2969         PR c/59218
2970         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
2971         (diagnose_tm_1_op): Also diagnose volatile accesses in
2972         transaction_safe function.
2973
2974 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
2975
2976         * system.h (malloc.h): Don't include obsolete header.
2977
2978 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2979
2980         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
2981         (TLS_SECTION_ASM_FLAG): Delete.
2982
2983 2015-10-02  Marek Polacek  <polacek@redhat.com>
2984
2985         PR c/64249
2986         * doc/invoke.texi: Document -Wduplicated-cond.
2987         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
2988         (insn-dfatab.o): Likewise.
2989         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
2990         warning.
2991
2992 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
2993
2994         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
2995         sequences.
2996
2997 2015-10-02  Renlin Li  <renlin.li@arm.com>
2998
2999         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3000
3001 2015-10-02  Renlin Li  <renlin.li@arm.com>
3002
3003         PR target/66776
3004         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3005
3006 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3007
3008         PR rtl-optimization/67786
3009         PR rtl-optimization/67787
3010         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3011         it modifies a reg used in the condition calculation.
3012
3013 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3014
3015         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3016         alternatives for reads from memory and moves from general-purpose
3017         registers.
3018         (*aarch64_combinez_be<mode>): Likewise.
3019
3020 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3021
3022         PR target/51726
3023         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3024         selectany within this function without need to keep attribute.
3025         (i386_pe_encode_section_info): Remove selectany-code.
3026
3027 2015-10-02  Richard Biener  <rguenther@suse.de>
3028
3029         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3030         (free_scc_vn): Use it.
3031         (visit_use): Remove dead code and refactor to use gassign
3032         and use less indentation.
3033
3034 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3035
3036         PR target/67788
3037         PR target/67789
3038         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3039         (rs6000_cannot_copy_insn_p): New function.
3040         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3041         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3042         (load_toc_v4_PIC_1_476): Ditto.
3043
3044 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3045
3046         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3047         so that this type can be pushed into a vec.
3048         (class scop_builder): use sese_l to collect scops.
3049         (get_scops): New getter function.
3050         (remove_intersecting_scops): Use sese_l instead of scops_p.
3051         (intersects): Same.
3052         (add_scop): Same.
3053         (subsumes): Same.
3054         (remove_subscops): Same.
3055         (build_scops): Add scops to vec<scops_p> once all the scops have been
3056         detected.
3057
3058 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3059
3060         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3061         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3062         (translate_isl_ast_node_user): Same.
3063         * graphite-poly.c (new_poly_bb): Same.
3064         * graphite-poly.h (gbb_from_bb): Same.
3065         * sese.h: Same.
3066         * graphite-sese-to-poly.c (new_gimple_bb):
3067         gimple_bb_p -> gimple_poly_bb_p
3068         (build_scop_scattering): Same.
3069         (find_params_in_bb): Same.
3070         (add_conditions_to_domain): Same.
3071         (sese_dom_walker::before_dom_children): Same.
3072         (analyze_drs_in_stmts): Same.
3073         (new_pbb_from_pbb): Same.
3074         (free_data_refs_aux): New pointer to type base_alias_pair.
3075         * graphite-sese-to-poly.h: Same.
3076         * sese.c (if_region_set_false_region): Fixed Indentation.
3077         (move_sese_in_condition): Same.
3078
3079 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3080             Aditya Kumar  <aditya.k7@samsung.com>
3081
3082         PR tree-optimization/66980
3083         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3084         when data reference analysis has failed.
3085
3086 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3087             Aditya Kumar  <aditya.k7@samsung.com>
3088
3089         PR tree-optimization/67754
3090         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3091         scev analysis on the same loop nest as analyze_drs_in_stmts.
3092         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3093         renamed...
3094         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3095         (analyze_drs_in_stmts): Same.
3096         * sese.c (outermost_loop_in_sese): ...here.
3097
3098 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3099             Aditya Kumar  <aditya.k7@samsung.com>
3100
3101         PR tree-optimization/67754
3102         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3103         recursion on the inner loops.
3104
3105 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3106
3107         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3108         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3109         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3110         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3111         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3112
3113 2015-10-01  Marek Polacek  <polacek@redhat.com>
3114
3115         PR c/65345
3116         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3117         create_tmp_var_raw rather than create_tmp_var.
3118
3119 2015-10-01  Marek Polacek  <polacek@redhat.com>
3120
3121         PR tree-optimization/67769
3122         * tree-ssa-phiopt.c (conditional_replacement): Call
3123         reset_flow_sensitive_info_in_bb.
3124         (minmax_replacement): Likewise.
3125         (abs_replacement): Likewise.
3126
3127 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3128
3129         * builtins.c: Don't include gomp-constants.h.
3130         (fold_builtin_1): Don't fold acc_on_device here.
3131         * gimple-fold.c: Include gomp-constants.h.
3132         (gimple_fold_builtin_acc_on_device): New.
3133         (gimple_fold_builtin): Call it.
3134
3135 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3136
3137         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3138         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3139
3140 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3141
3142         * config/arm/aarch-common-protos.h
3143         (aarch_accumulator_forwarding): New.
3144         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3145         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3146         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3147         * config/arm/cortex-a53.md: Rewrite.
3148
3149 2015-10-01  Richard Biener  <rguenther@suse.de>
3150
3151         * gimple-match.h (mprts_hook): Declare.
3152         * gimple-match.head.c (mprts_hook): Define.
3153         (maybe_push_res_to_seq): Use new hook.
3154         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3155         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3156         (vn_ssa_aux::has_constants): Remove.
3157         * tree-ssa-sccvn.c: Include gimple-match.h.
3158         (VN_INFO_GET): Assert we don't re-use SSA names.
3159         (vn_get_expr_for): Remove.
3160         (expr_has_constants): Likewise.
3161         (stmt_has_constants): Likewise.
3162         (simplify_binary_expression): Likewise.
3163         (simplify_unary_expression): Likewise.
3164         (vn_lookup_simplify_result): New hook.
3165         (visit_copy): Adjust.
3166         (visit_reference_op_call): Likewise.
3167         (visit_phi): Likewise.
3168         (visit_use): Likewise.
3169         (process_scc): Likewise.
3170         (init_scc_vn): Likewise.
3171         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3172         a gimple seq for inserted expressions.
3173         (try_to_simplify): Remove GENERIC stmt combining code.
3174         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3175         * tree-ssa-pre.c (eliminate_insert): Adjust.
3176         (eliminate_dom_walker::before_dom_children): Likewise.
3177
3178 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3179
3180         * doc/invoke.texi (Optimization Options): Add
3181         -freorder-blocks-algorithm=.
3182         (Optimize Options) <-O>: Add -freorder-blocks.
3183         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3184         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3185         <-freorder-blocks>: Also enabled at levels -O and -Os.
3186         <-freorder-blocks-algorithm=>: Document new option.
3187
3188 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3189
3190         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3191         with flag_reorder_blocks_algorithm.
3192         * common.opt (freorder-blocks-algorithm=): New flag.
3193         (reorder_blocks_algorithm): New enum.
3194         * flag-types.h (reorder_blocks_algorithm): New enum.
3195         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3196         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3197
3198 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3199
3200         * bb-reorder.c: Add intro comment.
3201         (reorder_basic_blocks_software_trace_cache): Print a header to
3202         the dump file.
3203         (edge_order): New function.
3204         (reorder_basic_blocks_simple): New function.
3205         (reorder_basic_blocks): Choose between the STC and the simple
3206         algorithms (always choose the former).
3207
3208 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3209
3210         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3211         function, factored out from ...
3212         (reorder_basic_blocks): ... here.
3213
3214 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3215
3216         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3217         __attribute__(()) string.  Move dumping of function attributes to before
3218         function name.
3219
3220 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3221
3222         PR target/66870
3223         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3224         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3225         based on gold linker version.
3226         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3227         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3228         * configure, config.in: Regenerate.
3229
3230 2015-10-01  Alan Modra  <amodra@gmail.com>
3231
3232         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3233         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3234         (rs6000_output_mi_thunk): Likewise.
3235
3236 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3237
3238         * config/nvptx/mkoffload.c (process): Change offload data format.
3239
3240 2015-09-30  Jeff Law  <law@redhat.com>
3241
3242         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3243         with constant conditions.
3244         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3245         (remove_ctrl_stmt_and_useless_edges): No longer static.
3246         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3247         (remove_ctrl_stmt_and_useless_edges): Likewise.
3248
3249 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3250             Cesar Philippidis  <cesar@codesourcery.com>
3251
3252         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3253         (TARGET_GOACC_VALIDATE_DIMS): Override.
3254         * target.def (TARGET_GOACC): New target hook prefix.
3255         (validate_dims): New hook.
3256         * targhooks.h (default_goacc_validate_dims): New.
3257         * omp-low.c (oacc_validate_dims): New.
3258         (execute_oacc_device_lower): New.
3259         (default_goacc_validate_dims): New.
3260         (pass_data_oacc_device_lower): New.
3261         (pass_oacc_device_lower): New pass.
3262         (make_pass_oacc_device_lower): New.
3263         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3264         * passes.def (pass_oacc_device_lower): Add it.
3265         * doc/tm.texi: Rebuilt.
3266         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3267         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3268
3269 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3270
3271         PR rtl-optimization/67037
3272         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3273
3274 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3275
3276         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3277         * passes.c: Include tree-ssanames.h.
3278         (execute_function_todo): Flush the pending free SSA_NAMEs after
3279         eliminating unreachable basic blocks.
3280         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3281         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3282         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3283         (flush_ssanames_freelist): New function.
3284         (release_ssaname_fn): Put released names on the queue.
3285         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3286         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3287
3288 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3289
3290         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3291         (generate_target_descr_file, generate_target_offloadend_file)
3292         (generate_host_descr_file, prepare_target_image): Pass it on.
3293         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3294         (compile_native, main): Pass it on.
3295         * lto-wrapper.c (compile_offload_image): Likewise.
3296
3297 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3298             Ilya Verbin  <ilya.verbin@intel.com>
3299             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3300
3301         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3302         (prepare_target_image, main): Refactor argv building to use
3303         obstacks.
3304
3305 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3306
3307         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3308         * config/spu/spu.c (spu_expand_atomic_op): New function.
3309         * config/spu/spu.md (AINT): New mode iterator.
3310         (ATOMIC): New code iterator.
3311         (atomic_name, atomic_pred): New code predicates.
3312         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3313         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3314         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3315         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3316
3317 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3318
3319         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3320         debug insns.
3321         (scalar_chain::convert_reg): Likewise.
3322
3323 2015-09-30  Richard Biener  <rguenther@suse.de>
3324
3325         * builtins.c: Add comment that no new simplifications should
3326         be added here.
3327
3328 2015-09-30  Marek Polacek  <polacek@redhat.com>
3329
3330         PR tree-optimization/67690
3331         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3332         reset_flow_sensitive_info_in_bb.
3333         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3334         * tree-ssanames.c: Include "gimple-iterator.h".
3335         (reset_flow_sensitive_info_in_bb): New function.
3336         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3337
3338 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3339
3340         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3341         variable, replacing it with...
3342         (offload_abi): ... this new variable.  Adjust all users.
3343         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3344
3345 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3346
3347         * configure.ac: Remove extraneous ;;.
3348         * configure: Regenerate.
3349
3350 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3351
3352         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3353         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3354         predicate, disallow register for operand 2.
3355
3356 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3357
3358         * graphite-dependences.c (scop_get_dependences): Moved in down
3359         in order to be visible to its caller.
3360         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3361
3362 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3363             Aditya Kumar  <aditya.k7@samsung.com>
3364
3365         PR tree-optimization/67754
3366         * graphite-optimize-isl.c (optimize_isl): Call
3367         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3368
3369 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3370
3371         * builtins.c (expand_builtin_acc_on_device): Delete.
3372         (expand_builtin): Don't call it.
3373         (fold_builtin_1): Fold acc_on_device.
3374
3375 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3376
3377         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3378         (ix86_nsaved_sseregs): Likewise.
3379
3380 2015-09-29  Jeff Law  <law@redhat.com>
3381
3382         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3383         computation of unused value.
3384
3385         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3386         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3387         inline macro expansion.
3388
3389         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3390
3391         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3392         (gen_shl_sext): Likewise.
3393         * config/sh/sh.md (divsi3): Likewise.
3394         (imm->ext_dest_operand splitter): Likewise.
3395
3396 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3397             Aditya Kumar  <aditya.k7@samsung.com>
3398
3399         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3400         (nb_data_writes_in_bb): Remove.
3401         (split_pbb): Remove.
3402         (split_reduction_stmt): Remove.
3403         (is_reduction_operation_p): Remove.
3404         (phi_contains_arg): Remove.
3405         (follow_ssa_with_commutative_ops): Remove.
3406         (detect_commutative_reduction_arg): Remove.
3407         (detect_commutative_reduction_assign): Remove.
3408         (follow_inital_value_to_phi): Remove.
3409         (edge_initial_value_for_loop_phi): Remove.
3410         (initial_value_for_loop_phi): Remove.
3411         (used_outside_reduction): Remove.
3412         (detect_commutative_reduction): Remove.
3413         (translate_scalar_reduction_to_array_for_stmt): Remove.
3414         (remove_phi): Remove.
3415         (dr_indices_valid_in_loop): Remove.
3416         (close_phi_written_to_memory): Remove.
3417         (translate_scalar_reduction_to_array): Remove.
3418         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3419         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3420         (rewrite_commutative_reductions_out_of_ssa): Remove.
3421         (build_poly_scop): Remove call to
3422         rewrite_commutative_reductions_out_of_ssa.
3423
3424 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3425
3426         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3427         Add new insn types for vector load and store pairs.
3428         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3429         types "neon_ldp{,_q}".
3430         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3431         "neon_ldp{,_q}".
3432         (neon_store_complex): Add insn types "neon_stp{,_q}".
3433         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3434         "neon_{ldp,stp}_q".
3435
3436 2015-09-29  Jeff Law  <law@redhat.com>
3437
3438         * config/rx/constraints.md (Int08): Fix undefined left shift
3439         behaviour.
3440         (Sint08, Sint16, Sint24): Likewise.
3441         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3442
3443         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3444         behaviour.
3445
3446         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3447         left shift behaviour.
3448         * config/msp430/constraints.md ('L' constraint): Similarly.
3449         ('Ys' constraint): Similarly.
3450
3451 2015-09-29  Richard Biener  <rguenther@suse.de>
3452
3453         PR tree-optimization/67170
3454         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3455         the translate function pointer parameter to get the
3456         bool whether to disambiguate only by reference.
3457         (walk_non_aliased_vuses): Likewise.
3458         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3459         (get_continuation_for_phi_1): Likewise.
3460         (get_continuation_for_phi): Likewise.
3461         (walk_non_aliased_vuses): Likewise.
3462         * tree-ssa-sccvn.c (const_parms): New bitmap.
3463         (vn_reference_lookup_3): Adjust for interface change.
3464         Disambiguate parameters pointing to readonly memory.
3465         (free_scc_vn): Free const_parms.
3466         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3467
3468 2015-09-29  Richard Biener  <rguenther@suse.de>
3469
3470         PR tree-optimization/67741
3471         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3472         builtin calls with correct signature.
3473
3474 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
3475
3476         PR target/65105
3477         * config/i386/i386.c: Include dbgcnt.h.
3478         (has_non_address_hard_reg): New.
3479         (convertible_comparison_p): New.
3480         (scalar_to_vector_candidate_p): New.
3481         (remove_non_convertible_regs): New.
3482         (scalar_chain): New.
3483         (scalar_chain::scalar_chain): New.
3484         (scalar_chain::~scalar_chain): New.
3485         (scalar_chain::add_to_queue): New.
3486         (scalar_chain::mark_dual_mode_def): New.
3487         (scalar_chain::analyze_register_chain): New.
3488         (scalar_chain::add_insn): New.
3489         (scalar_chain::build): New.
3490         (scalar_chain::compute_convert_gain): New.
3491         (scalar_chain::replace_with_subreg): New.
3492         (scalar_chain::replace_with_subreg_in_insn): New.
3493         (scalar_chain::emit_conversion_insns): New.
3494         (scalar_chain::make_vector_copies): New.
3495         (scalar_chain::convert_reg): New.
3496         (scalar_chain::convert_op): New.
3497         (scalar_chain::convert_insn): New.
3498         (scalar_chain::convert): New.
3499         (convert_scalars_to_vector): New.
3500         (pass_data_stv): New.
3501         (pass_stv): New.
3502         (make_pass_stv): New.
3503         (ix86_option_override): Created and register stv pass.
3504         (flag_opts): Add -mstv.
3505         (ix86_option_override_internal): Likewise.
3506         * config/i386/i386.md (SWIM1248x): New.
3507         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3508         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3509         (*anddi3_doubleword): New.
3510         (*zext<mode>_doubleword): New.
3511         (*zextsi_doubleword): New.
3512         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3513         (*<code>di3_doubleword): New.
3514         * config/i386/i386.opt (mstv): New.
3515         * dbgcnt.def (stv_conversion): New.
3516
3517 2015-09-29  Tom de Vries  <tom@codesourcery.com>
3518
3519         * tree-cfg.c (dump_function_to_file): Dump function attributes.
3520
3521 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3522
3523         PR target/67716
3524         * config/sh/sh.c (sh_override_options_after_change): New.
3525         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3526         (sh_option_override): Move align_loops, align_jumps and
3527         align_functions handling into sh_override_options_after_change.
3528
3529 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3530
3531         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3532         (nvptx_record_offload_symbol): Record function execution geometry.
3533         * config/nvptx/mkoffload.c (process): Include launch geometry in
3534         function data.
3535         * omp-low.c (oacc_launch_pack): New.
3536         (replace_oacc_fn_attrib): New.
3537         (set_oacc_fn_attrib): New.
3538         (get_oacc_fn_attrib): New.
3539         (expand_omp_target): Create keyed varargs for GOACC_parallel call
3540         generation.
3541         * omp-low.h (get_oacc_fn_attrib): Declare.
3542         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3543         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3544         * tree.h (OMP_CLAUSE_EXPR): New.
3545         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3546
3547 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3548             Sebastian Pop  <s.pop@samsung.com>
3549
3550         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3551
3552 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3553             Sebastian Pop  <s.pop@samsung.com>
3554
3555         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3556         * graphite-scop-detection.c (struct sese_l): New type.
3557         (get_entry_bb): API for getting entry bb of SESE.
3558         (get_exit_bb): API for getting exit bb of SESE.
3559         (class debug_printer): New type.  Simple printer in debug mode.
3560         (trivially_empty_bb_p): New.  Return true when BB is empty or
3561         contains only debug instructions.
3562         (graphite_can_represent_expr): Call scalar_evoution_in_region
3563         instead of analyze_scalar_evolution.  Pass in scop instead of only
3564         the scop entry.
3565         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3566         scop entry.
3567         (stmt_simple_for_scop_p): Same.
3568         (harmful_stmt_in_bb): Same.
3569         (graphite_can_represent_loop): Deleted.
3570         (struct scopdet_info): Deleted.
3571         (scopdet_basic_block_info): Deleted.
3572         (build_scops_1): Deleted.
3573         (bb_in_sd_region): Deleted.
3574         (find_single_entry_edge): Deleted.
3575         (find_single_exit_edge): Deleted.
3576         (create_single_entry_edge): Deleted.
3577         (sd_region_without_exit): Deleted.
3578         (create_single_exit_edge): Deleted.
3579         (unmark_exit_edges): Deleted.
3580         (mark_exit_edges): Deleted.
3581         (create_sese_edges): Deleted.
3582         (build_graphite_scops): Deleted.
3583         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3584         (build_scops): Use the new scop_builder to build scops.
3585         (dot_all_scops_1): Use the new pretty printer.  Print loop father
3586         as well.
3587         (loop_body_is_valid_scop): New.  Return true if loop body is a
3588         valid scop.
3589         (class scop_builder): New.  Builds SCoPs for polyhedral
3590         optimizations.
3591         (scop_builder): New constructor.
3592         (static sese_l invalid_sese): sese_l with invalid edges.
3593         (get_sese): Get an sese (from a loop) if possible, invalid_sese
3594         otherwise.
3595         (get_nearest_dom_with_single_entry): Get nearest dominator of a
3596         basic_block with single entry.  Return NULL if we get to the
3597         beginning of a function.
3598         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3599         a basic_block with single exit.  Return NULL if we get to the
3600         beginning of a function.
3601         (print_sese): Pretty-print SESE.
3602         (merge_sese): Merge two SESEs if possible and return the new SESE.
3603         (build_scop_depth): Start building the SCoP within a loop nest.
3604         (build_scop_breadth): Start building the SCoP at a single loop
3605         depth.  Merge adjacent SESEs if valid.
3606         (can_represent_loop_1): Returns true if Graphite can represent
3607         loop inside SCoP.  Helper for can_represent_loop.
3608         (can_represent_loop): Returns true if Graphite can represent LOOP
3609         and all its nested loops in SCoP.
3610         (loop_is_valid_scop): Returns true if LOOP and all its nests
3611         constitute a valid SCoP.
3612         (region_has_one_loop): Returns true of a region has only one loop.
3613         (add_scop): Add SCoP to the list of valid scops.  Removes an
3614         already existing scop if it intersects with or subsumed by this one.
3615         (harmful_stmt_in_region): Returns true if SCoP has any statment
3616         which cannot be represented by Graphite.
3617         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3618         (remove_subscops): Remove any SCoP from the list of already found
3619         SCoPs, if subsumed by S1.
3620         (intersects): Return true if region bounded by SCoPs S1 and S2
3621         intersect.
3622         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3623         * graphite.c (print_graphite_scop_statistics):
3624         (print_graphite_statistics): Print SCoP info while debugging.
3625         (graphite_initialize): Early exit in case number of loops in a
3626         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3627         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3628         (graphite_finalize):
3629         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3630         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3631         (recompute_all_dominators): Recalculate POST_DOMINATORS.
3632         * tree-cfg.c (print_loops): Print the function name while printing
3633         loops.
3634
3635 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3636             Sebastian Pop  <s.pop@samsung.com>
3637
3638         PR tree-optimization/67700
3639         * graphite-sese-to-poly.c (parameter_index_in_region): Call
3640         invariant_in_sese_p_rec.
3641         (extract_affine): Same.
3642         (rewrite_cross_bb_scalar_deps): Call update_ssa.
3643         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
3644         * sese.h (invariant_in_sese_p_rec): Declare.
3645
3646 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
3647
3648         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3649
3650 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
3651
3652         Revert:
3653         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3654                     Jiong Wang  <jiong.wang@arm.com>
3655
3656         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3657         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3658         (REG_CLASS_NAMES): Likewise.
3659         (REG_CLASS_CONTENTS): Likewise.
3660         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3661         (aarch64_register_move_cost): Likewise.
3662         (aarch64_load_symref_appropriately): Invoke the new added pattern if
3663         possible.
3664         * config/aarch64/constraints.md (Uc0): New constraint.
3665
3666 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
3667
3668         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3669
3670 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
3671
3672         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3673         SECTION_EXCLUDE in XO mapping class.
3674
3675 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
3676
3677         PR target/54236
3678         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3679         and handle ne and eq codes.
3680         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3681         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
3682         CONST_INT_P.  Use reverse_condition.
3683         (sh_split_treg_set_expr): Likewise.
3684
3685 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
3686
3687         * config/arm/types.md (type): Add rotate_imm.
3688         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3689         ROR immediate case.
3690         (*rorsi3_insn_uxtw): Likewise.
3691         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3692         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3693         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3694
3695 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3696
3697         PR rtl-optimization/67481
3698         * ifcvt.c (contains_ccmode_rtx_p): New function.
3699         (insn_valid_noce_process_p): Use it.
3700
3701 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3702
3703         PR rtl-optimization/67456
3704         PR rtl-optimization/67464
3705         PR rtl-optimization/67465
3706         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3707         move in the mode of x.  Handle combination of complex and simple
3708         block pairs as well as the case when one is empty.
3709
3710 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3711
3712         * doc/gimple.texi: Update references to gimple_statement_base.
3713         * gdbhooks.py: Likewise.
3714         * gimple.h: Likewise.
3715
3716 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3717
3718         * config/sparc/driver-sparc.c: map LEON to leon3
3719
3720 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3721
3722         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3723           and make it inverse to change default
3724         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3725           supervisor mode
3726         * doc/invoke.texi: Document change of default
3727
3728 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3729
3730         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3731         true on %f0 for a target without FPU.
3732         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3733         without FPU.
3734         (untyped_return): Do not load %f0 for a target without FPU.
3735
3736 2015-09-28  Andrew Pinski  <apinski@cavium.com>
3737
3738         * config/aarch64/aarch64.md (prefetch):
3739         Change the predicate of operand 0 to register_operand.
3740
3741 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
3742
3743         * config/i386/predicates.md (register_sse4nonimm_operand): New
3744         predicate.
3745         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3746         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3747         Use register_sse4nonimm_operand as operand 0 predicate.
3748         (*vec_extractv8hi_sse2): Remove insn pattern.
3749         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3750         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3751
3752 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
3753             Kaz Kojima  <kkojima@gcc.gnu.org>
3754
3755         PR target/67391
3756         * config/sh/sh-protos.h (sh_lra_p): Declare.
3757         * config/sh/sh.c (sh_lra_p): Make non-static.
3758         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3759         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
3760         Expand into addsi3_scr if operands[2] if needed.
3761         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
3762         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
3763         (addsi3_scr, *addsi3): New insn_and_split patterns.
3764
3765 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
3766
3767         PR rtl-optimization/64164
3768         PR tree-optimization/67312
3769         PR middle-end/67340
3770         PR middle-end/67490
3771         PR bootstrap/67597
3772         * cfgexpand.c (parm_in_stack_slot_p): Remove.
3773         (ssa_default_def_partition): Remove.
3774         (get_rtl_for_parm_ssa_default_def): Remove.
3775         (set_rtl): Check that RTL assignments match expectations.
3776         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
3777         default def location for params and results.  Record SSA names
3778         or types in REG and MEM attrs, respectively.
3779         (set_parm_rtl): New.
3780         (expand_one_ssa_partition): Drop logic that assigned MEMs with
3781         unassigned addresses.
3782         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3783         deferred stack alloc vars.
3784         (expand_used_vars): Skip partitions holding parm default defs.
3785         Move adjust_one_expanded_partition_var loop...
3786         (pass_expand::execute): ... here.  Drop redundant assert.
3787         Adjust comments before the final loop over all ssa names.
3788         Require assigned rtl of parms and results to match exactly.
3789         Reset its attributes to match them, not any other variables in
3790         the same partition.
3791         (expand_debug_expr): Use entry value for PARM's default defs
3792         only iff they have zero nondebug uses.
3793         * cfgexpand.h (parm_in_stack_slot_p): Remove.
3794         (get_rtl_for_parm_ssa_default_def): Remove.
3795         (set_parm_rtl): Declare.
3796         * doc/invoke.texi: Improve wording.
3797         * explow.c (promote_decl_mode): Fix promote_function_mode for
3798         result decls not by reference.
3799         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3800         bypass TYPE_MODE to get the actual vector mode.
3801         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
3802         2015-08-19's changes as follows.  Drop include of
3803         basic-block.h and df.h.
3804         (rtl_for_parm): Remove.
3805         (maybe_reset_rtl_for_parm): Remove.
3806         (parm_in_unassigned_mem_p): Remove.
3807         (use_register_for_decl): Add logic for RESULT_DECLs matching
3808         assign_parms' behavior.
3809         (split_complex_args): Revert.
3810         (assign_parms_augmented_arg_list): Revert.  Add comment
3811         referencing the logic above.
3812         (assign_parm_adjust_stack_rtl): Revert.
3813         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
3814         of SET_DECL_RTL.  Set up a REG if the parm demands so.
3815         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
3816         calls into a single set_parm_rtl.  Set up a temporary RTL
3817         temporarily for expand_assignment.
3818         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
3819         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
3820         (assign_bounds): Revert.
3821         (assign_parms): Revert.  Use set_parm_rtl.
3822         (allocate_struct_function): Relayout result and parms of
3823         non-abstruct functions.
3824         (expand_function_start): Revert.  Use set_parm_rtl.  If the
3825         result is not a hard reg, create a pseudo from the promoted
3826         mode of the default def.  Promote static chain mode.
3827         * tree-outof-ssa.c (remove_ssa_form): Drop unused
3828         partition_has_default_def.  Set up
3829         partitions_for_parm_default_defs.
3830         (finish_out_of_ssa): Remove partition_has_default_def.
3831         Release partitions_for_parm_default_defs.
3832         * tree-outof-ssa.h (struct ssaexpand): Remove
3833         partition_has_default_def.  Add
3834         partitions_for_parm_default_defs.
3835         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
3836         stor-layout.h.
3837         (build_ssa_conflict_graph): Fix conflict-detection of default
3838         defs of even unused default defs of params and results.
3839         (for_all_parms): New.
3840         (create_default_def): New.
3841         (register_default_def): New.
3842         (coalesce_with_default): New.
3843         (create_outofssa_var_map): Create default defs for all parms
3844         and results, and register their partitions.  Add GIMPLE_RETURN
3845         operands as coalesce candidates with results.  Add default
3846         defs of each parm or result as coalesce candidates with its
3847         other defs.  Mark each result def, and each default def of
3848         parms, as used_in_copy.
3849         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
3850         with the ssa names, even anonymous ones.  Drop
3851         parm_in_stack_slot_p calls.  Require same signedness and
3852         alignment.
3853         (coalesce_ssa_name): Add coalesce candidates for all defs of
3854         each parm and result, even unused ones.
3855         (parm_default_def_partition_arg): New type.
3856         (set_parm_default_def_partition): New.
3857         (get_parm_default_def_partitions): New.
3858         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
3859         * tree-ssa-live.c (partition_view_init): Regard unused defs of
3860         parms and results as used.
3861         (verify_live_on_entry): Don't error out just because they're
3862         not live.
3863
3864 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
3865
3866         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3867         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
3868         (output_fde): Don't output length for debug_frame on AIX.
3869         (output_call_frame_info): Don't output length for debug_frame on AIX.
3870         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
3871         HAVE_XCOFF_DWARF_EXTRAS.
3872         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
3873         HAVE_XCOFF_DWARF_EXTRAS.
3874         (output_compilation_unit_header): Don't output length on AIX.
3875         (output_pubnames): Don't output length on AIX.
3876         (output_aranges): Delete argument. Compute length locally. Don't
3877         output length on AIX.
3878         (output_line_info): Don't output length on AIX.
3879         (dwarf2out_finish): Don't compute aranges_length.
3880         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
3881         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
3882         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
3883         symbol decoration for AIX.
3884         (rs6000_xcoff_debug_unwind_info): New.
3885         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
3886         for SECTION_DEBUG.
3887         (rs6000_xcoff_declare_function_name): Emit different
3888         .function pseudo-op when DWARF2_DEBUG. Don't call
3889         xcoffout_declare_function for DWARF2_DEBUG.
3890         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
3891         Redefine.
3892         * config/rs6000/aix71.h: New.
3893         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
3894         locations support.
3895         * configure: Regenerate.
3896         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
3897         DWARF support.
3898
3899 2015-09-26  Jeff Law  <law@redhat.com>
3900
3901         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
3902         behaviour.
3903         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
3904         behaviour.
3905
3906         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
3907         behaviour
3908
3909         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
3910         undefined behaviour.
3911
3912         * config/cris/cris.md (asrandb): Fix left shift undefined
3913         behaviour.
3914         (asrandw): Likewise.
3915
3916 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
3917
3918         PR target/61578
3919         * lra-constarints.c (match_reload): Check presence of the input pseudo
3920         in the output operand.
3921
3922 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3923
3924         * doc/invoke.texi (-fsanitize): Minor wording tweak.
3925
3926 2015-09-25  Tobias Burnus  <burnus@net-b.de>
3927
3928         * doc/invoke.texi (-fsanitize): Update URLs.
3929
3930 2015-09-25  Teresa Johnson  <tejohnson@google.com>
3931
3932         * opts.c (finish_options): Unset -freorder-blocks-and-partition
3933         if not using profile.
3934
3935 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3936
3937         PR pretty-print/67567
3938         * pretty-print.c (pp_string): Add gcc_checking_assert.
3939         * pretty-print.h (output_buffer_append_r): Likewise.
3940
3941 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3942
3943         PR target/67675
3944         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
3945         addr2 individually.  Don't emit logical or insn if one is known to
3946         be aligned approriately.
3947         (sh_expand_cmpnstr): Likewise.
3948
3949 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
3950
3951         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
3952         __builtin_aarch64_fp[sc]r arguments into a register.
3953
3954 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3955
3956         * config.gcc (x86_archs): Replace lakemount with lakemont.
3957         (with_cpu): Likewise.
3958         (with_arch): Likewise.
3959         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3960         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
3961         __tune_lakemount__ with __tune_lakemont__.
3962         * config/i386/i386.c (lakemount_cost): Renamed to ...
3963         (lakemont_cost): This.
3964         (m_LAKEMOUNT): Renamed to ...
3965         (m_LAKEMONT): This.
3966         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
3967         (processor_target_table): Replace "lakemount" with "lakemont".
3968         (processor_alias_table): Likewise.
3969         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
3970         PROCESSOR_LAKEMONT.
3971         (ix86_adjust_cost): Likewise.
3972         (ia32_multipass_dfa_lookahead): Likewise.
3973         * config/i386/i386.h (processor_type): Likewise.
3974         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
3975         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
3976         Lakemount with Lakemont.
3977
3978 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3979
3980         * config.gcc (x86_archs): Replace iamcu with lakemount.
3981         (with_cpu): Likewise.
3982         (with_arch): Likewise.
3983         * doc/invoke.texi: Likewise.
3984         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
3985         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
3986         __tune_iamcu__ with __tune_lakemount__.
3987         * config/i386/i386.c (iamcu_cost): Renamed to ...
3988         (lakemount_cost): This.
3989         (m_IAMCU): Renamed to ...
3990         (m_LAKEMOUNT): This.
3991         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
3992         (processor_target_table): Replace "iamcu" with "lakemount".
3993         (processor_alias_table): Likewise.
3994         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
3995         PROCESSOR_LAKEMOUNT.
3996         (ix86_adjust_cost): Likewise.
3997         (ia32_multipass_dfa_lookahead): Likewise.
3998         * config/i386/i386.h (processor_type): Likewise.
3999         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4000
4001 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4002
4003         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4004         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4005         Declare.
4006         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4007         (pa_expand_compare_and_swap_loop): New.
4008         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4009         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4010         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4011         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4012         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4013         Revise.
4014
4015 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4016
4017         PR other/57195
4018         * read-md.c (read_name): Allow mode iterators inside angle
4019         brackets in rtl expressions.
4020
4021 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4022
4023         PR target/61578
4024         * ira-color.c (update_allocno_cost): Add parameter.
4025         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4026         parameter.
4027
4028 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4029
4030         PR driver/67640
4031         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4032         but the last one, which is moved to the front to be processed
4033         first.
4034         * opts.c (enable_warning_as_error): Reject options that do not
4035         control warnings.
4036
4037 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4038
4039         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4040
4041 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4042
4043         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4044         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4045         (aarch64_cannot_force_const_mem): Likewise.
4046         (aarch64_classify_address): Likewise.
4047         (aarch64_classify_symbolic_expression): Likewise.
4048         (aarch64_print_operand): Likewise.
4049         (aarch64_classify_symbol): Likewise.
4050         (aarch64_mov_operand_p): Likewise.
4051         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4052         (aarch64_mov_operand): Likewise.
4053
4054 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4055
4056         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4057         for info->spe_gp_size.
4058
4059 2015-09-24  Richard Biener  <rguenther@suse.de>
4060
4061         PR lto/67699
4062         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4063         abstract origins.
4064
4065 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4066
4067         * tree-object-size.c (plus_stmt_object_size)
4068         (cond_expr_object_size): Change the formal parameters from gimple
4069         to gimple *.
4070         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4071         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4072         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4073
4074 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4075
4076         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4077         Check for ld -type pie on Solaris 11.x and 12.
4078         * configure: Regenerate.
4079         * config.in: Regenerate.
4080
4081         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4082
4083         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4084         (STARTFILE_SPEC): Use it.
4085         (ENDFILE_CRTEND_SPEC): Define.
4086         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4087         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4088         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4089         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4090         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4091         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4092         (ENDFILE_ARCH_SPEC): Define.
4093         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4094
4095 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4096
4097         * configure.ac (gcc_cv_solaris_crts): New test.
4098         * configure. Regenerate.
4099         * config.in: Regenerate.
4100         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4101         HAVE_SOLARIS_CRTS variant.
4102
4103 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4104
4105         * tree-inline.h (count_insns_seq): Delete prototype.
4106         (estimate_num_insns_seq): Define prototype.
4107         * tree-inline.c (count_insns_seq): Delete.
4108         (estimate_num_insns_seq): Remove static qualifier.
4109         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4110         with estimate_num_insns_seq.
4111
4112 2015-09-24  Richard Biener  <rguenther@suse.de>
4113
4114         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4115         members.
4116         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4117         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4118         offset.
4119         (ao_ref_init_from_vn_reference): Record clique and base in the
4120         built base.
4121         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4122
4123 2015-09-24  Richard Biener  <rguenther@suse.de>
4124
4125         PR tree-optimization/48885
4126         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4127         as not including any restrict tags from other pointers.
4128
4129 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4130
4131         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4132         character when appending to offload_targets.
4133
4134         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4135         offload targets by commas, not colons.
4136         * config.in: Regenerate.
4137         * configure: Likewise.
4138         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4139         instead of setting up the default offload targets here...
4140         (process_command): ..., do it here.
4141         libgomp/
4142         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4143         targets are separated by commas.
4144         * config.h.in: Regenerate.
4145
4146 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4147             Nathan Sidwell  <nathan@codesourcery.com>
4148
4149         * omp-low.h (omp_reduction_init_op): Declare.
4150         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4151         (omp_reduction_init): ... here.  Call it.
4152         * tree-parloops.c (initialize_reductions): Use
4153         omp_reduction_init_op.
4154
4155 2015-09-23   Richard Biener  <rguenther@suse.de>
4156
4157         PR middle-end/67662
4158         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4159         undefined overflow unless they will cancel out.
4160
4161 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4162
4163         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4164         insn emit.
4165
4166 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4167
4168         PR c/49655
4169         * opts.h (write_langs): Declare.
4170         * opts-global.c (write_langs): Make it extern.
4171
4172 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4173
4174         PR target/67391
4175         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4176         overlapping regs when matching the pattern.
4177
4178 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4179
4180         * config/aarch64/aarch64-simd.md
4181         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4182         (aarch64_float_truncate_hi_v4sf_le): New.
4183         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4184
4185 2015-09-23  Richard Biener  <rguenther@suse.de>
4186
4187         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4188         representatives for all restrict qualified pointer destinations.
4189
4190 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4191
4192         * config/i386/i386.md (define_code_attr mshift): New.
4193         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4194         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4195         only.
4196         (define_insn "*k<logic><mode>"): Use new iterator name.
4197         (define_insn "*<mshift><mode>3"): New.
4198
4199 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4200
4201         PR middle-end/67649
4202         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4203         mark the block as accessible.
4204
4205 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4206
4207         * function.c (thread_prologue_and_epilogue_insns): Delete
4208         orig_entry_edge argument to try_shrink_wrapping.
4209         * shrink-wrap.c (can_get_prologue): New function.
4210         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4211         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4212         can_get_prologue where needed.  Remove code that finds a single
4213         edge for the prologue.  Remove code that tests if any reg clobbered
4214         by the prologue is live on the prologue edge.  Remove code that finds
4215         the new prologue edge after duplicating blocks.  Make a new prologue
4216         block and edge.
4217         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4218
4219 2015-09-22  Jeff Law  <law@redhat.com>
4220
4221         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4222         behavior.
4223
4224 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4225
4226         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4227         -Wtemplates, -Wnamespaces): Document.
4228
4229 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4230
4231         PR tree-optimization/67671
4232         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4233         pointer references as restrict.
4234
4235 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4236
4237         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4238         'reg + reloc' cases, allow first operand to be non-REG, and use
4239         force_reg() to enforce address pattern.
4240
4241 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4242
4243         PR target/67480
4244         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4245         (define_mode_iterator VI12_AVX_AVX512F): New.
4246         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4247         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4248         (define_insn "*<code><mode>3"): ... Into new pattern using
4249         VI12_AVX_AVX512F iterators without masking.
4250
4251 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4252
4253         * config.gcc: Support "skylake-avx512".
4254         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4255         PROCESSOR_SKYLAKE_AVX512.
4256         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4257         (processor_target_table): Add "skylake-avx512".
4258         (PTA_SKYLAKE_AVX512): Define.
4259         (ix86_option_override_internal): Add "skylake_avx512".
4260         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4261         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4262         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4263         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4264         * doc/invoke.texi (skylake-avx512): New.
4265
4266 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4267
4268         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4269         operand in pattern.
4270         (define_insn "kunpcksi"): Ditto.
4271         (define_insn "kunpckdi"): Ditto.
4272
4273 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4274
4275         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4276         iterator instead of fixed modes.
4277
4278 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4279
4280         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4281         Adjust declaration.
4282         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4283         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4284         out_result.  Update to support update-fetch operations.
4285         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4286         Adjust for change to aarch64_gen_atomic_ldop.
4287         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4288         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4289         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4290         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4291         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4292
4293 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4294
4295         * config/aarch64/aarch64-protos.h
4296         (aarch64_atomic_ldop_supported_p): Declare.
4297         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4298         (enum aarch64_atomic_load_op_code): New.
4299         (aarch64_emit_atomic_load_op): New.
4300         (aarch64_gen_atomic_ldop): Update to support load-operate
4301         patterns.
4302         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4303         to an expander.
4304         (aarch64_atomic_<atomic_optab><mode>): New.
4305         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4306         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4307         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4308         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4309
4310 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4311
4312         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4313         (UNSPECV_ATOMIC_LDOP_OR): New.
4314         (UNSPECV_ATOMIC_LDOP_BIC): New.
4315         (UNSPECV_ATOMIC_LDOP_XOR): New.
4316         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4317         (ATOMIC_LDOP): New.
4318         (atomic_ldop): New.
4319         (aarch64_atomic_load<atomic_ldop><mode>): New.
4320
4321 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4322
4323         * config/aarch64/aarch64.md
4324         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4325         pattern.
4326
4327 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4328
4329         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4330         Declare.
4331         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4332         (aarch64_gen_atomic_ldop): New.
4333         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4334         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4335         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4336         (atomic_exchange<mode>): Replace with an expander.
4337         (aarch64_atomic_exchange<mode>): New.
4338         (aarch64_atomic_exchange<mode>_lse): New.
4339         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4340         (aarch64_atomic_swp<mode>): New.
4341
4342 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4343
4344         * tree-inline.c (expand_call_inline): Use inform for extra note.
4345         Do not give a note with UNKNOWN_LOCATION.
4346         Replace input_location with gimple_location (stmt).
4347         Use true/false instead of TRUE/FALSE.
4348
4349 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4350
4351         PR tree-optimization/67666
4352         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4353         with single field non-conservative.
4354
4355 2015-09-21  David S. Miller  <davem@davemloft.net>
4356
4357         PR/67622
4358         Revert:
4359         2015-09-11  David S. Miller  <davem@davemloft.net>
4360
4361         * config/sparc/constraints.md: Make "U" constraint a real register
4362         constraint.
4363         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4364         (D_MODES, DF_MODES): Add missing cast.
4365         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4366         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4367         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4368         cost to 8.
4369         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4370         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4371         provide these insn when flag_pic.
4372
4373         2015-09-17  David S. Miller  <davem@davemloft.net>
4374
4375         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4376         Declare.
4377         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4378         function.
4379         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4380         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4381         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4382         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4383         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4384         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4385         provide when flag_pic.
4386
4387 2015-09-21  Jeff Law  <law@redhat.com>
4388
4389         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4390         behavior.
4391
4392 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4393
4394         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4395
4396 2015-09-21  Richard Biener  <rguenther@suse.de>
4397
4398         * passes.c (rest_of_decl_compilation): Do not call
4399         dwarf2out_early_global_decl for aliases.
4400
4401 2015-09-21  Richard Biener  <rguenther@suse.de>
4402
4403         PR debug/67664
4404         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4405         attribute parameter.  Early exit if either DW_AT_const_value
4406         or DW_AT_location are present already.
4407         (gen_variable_die): Adjust caller.
4408         (dwarf2out_late_global_decl): Likewise.
4409
4410 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4411
4412         PR target/67657
4413         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4414         sh_peephole_emit_move_insn): Add new functions.
4415         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4416         sh_peephole_emit_move_insn): Declere them.
4417         * config/sh/sh.md: Use them in various peephole2 patterns.
4418
4419 2015-09-21  Richard Biener  <rguenther@suse.de>
4420
4421         PR middle-end/67651
4422         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4423         address with -fno-delete-null-pointer-checks.
4424
4425 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4426
4427         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4428         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4429         (reduc_uplus_v16qi): Remove.
4430
4431         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4432         (reduc_<VEC_reduc_name>_v2df): Remove.
4433         (reduc_<VEC_reduc_name>_v4sf): Remove.
4434         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4435
4436         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4437         gen_ function by removing * prefix.
4438         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4439
4440 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4441
4442         PR middle-end/60832
4443         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4444         Print i_bound without converting it to a tree.
4445
4446 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4447
4448         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4449         operands[4] operands[5] swap with std::swap, removed tmp variable.
4450         (arm_evpc_neon_vzip): Replaced in0/in1 and
4451         out0/out1 swaps with std::swap, removed x variable.
4452         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4453         out0/out1 swaos with std::swap, removed x variable.
4454         (arm_expand_vec_perm_const_1): Replaced
4455         d->op0/d->op1 swap with std::swap, removed x variable.
4456         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4457         out0/out1 swaps with std::swap, removed x variable.
4458
4459 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4460
4461         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4462         sysroot/usr/lib/32api for additional win32 libraries,
4463         fixes failing Cygwin bootstrapping.
4464
4465 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4466
4467         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4468
4469 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4470
4471         PR target/67126
4472         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4473         (*mov_t_msb_neg): Rewrite negc pattern.
4474
4475 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4476
4477         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4478         immediate generation code.
4479
4480 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4481
4482         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4483         redundant immediate generation code.
4484
4485 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4486
4487         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4488         (AARCH64_NUM_BITMASKS): Remove.
4489         (aarch64_bitmasks_cmp): Remove.
4490         (aarch64_build_bitmask_table): Remove.
4491
4492 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4493
4494         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4495         slow immediate matching loops with a faster algorithm.
4496
4497 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4498
4499         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4500         faster algorithm.
4501
4502 2015-09-20  Jeff Law  <law@redhat.com>
4503
4504         PR tree-optimization/47679
4505         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4506         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4507         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4508         (thread_through_normal_block): Use record_temporary_equivalences.
4509
4510 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
4511
4512         * coretypes.h (gimple): Change typedef to be a forward declaration.
4513         * gimple.h (gimple_statement_base): rename to gimple.
4514         * (all functions and types using gimple): Adjust.
4515         * *.[ch]: Likewise.
4516
4517 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
4518             David Edelsohn  <dje.gcc@gmail.com>
4519
4520         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4521         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4522         (EH_FRAME_THROUGH_COLLECT2): Define.
4523         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4524         (ASM_OUTPUT_DWARF_PCREL): Define.
4525         (ASM_OUTPUT_DWARF_DATAREL): Define.
4526
4527 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
4528
4529         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4530         of TARGET_ELF32.
4531
4532 2015-09-18  Jeff Law  <law@redhat.com>
4533
4534         PR tree-optimization/47679
4535         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
4536         it here ...
4537         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4538         object.  Update constructor.
4539         (pass_dominator::execute):  Corresponding chagnes to declaration
4540         and initialization of avail_exprs_stack.  Update constructor call
4541         for dom_opt_dom_walker object.
4542         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
4543         it down to children as needed.
4544         (record_equivalences_from_incoming_edge): Likewise.
4545         (eliminate_redundant_computations): Likewise.
4546         (record_equivalences_from_stmt): Likewise.
4547         (simplify_stmt_for_jump_threading): Likewise.
4548         (record_temporary_equivalences): Likewise.
4549         (optimize_stmt): Likewise.
4550         (dom_opt_dom_walker::thread_across_edge): Update access to
4551         avail_exprs_stack object and pass it to children as needed.
4552         (dom_opt_dom_walker::before_dom_children): Similarly.
4553         (dom_opt_dom_walker::after_dom_children): Similarly.
4554         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4555         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4556         Add avail_expr_stack argument.  Pass it to children as needed.
4557         (dummy_simplify): Likewise.
4558         (simplify_control_stmt_condition): Likewise.
4559         (thread_around_empty_blocks): Likewise.
4560         (thread_through_normal_block): Likewise.
4561         (thread_across_edge): Likewise.
4562         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4563         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4564
4565         PR tree-optimization/47679
4566         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
4567         it here ...
4568         (dom_opt_dom_walker): New private member holding the const_and_copies
4569         object.  Update constructor.
4570         (pass_dominator::execute): Corresponding changes to declaration
4571         and initialization of const_and_copies.  Update constructor call
4572         for the dom_opt_dom_walker object.
4573         (record_temporary_equivalences): Accept const_and_copies argument
4574         pass it down to children as needed.
4575         (record_equality): Likewise.
4576         (record_equivalences_from_incoming_edge): Likewise.
4577         (cprop_into_successor_phis, optimize_stmt): Likewise.
4578         (eliminate_redundant_computations): Likewise.
4579         (dom_opt_dom_walker::thread_across_edge): Update access to
4580         const_and_copies object and pass it to children as needed.
4581         (dom_opt_dom_walker::before_dom_children): Similarly.
4582         (dom_opt_dom_walker::after_dom_children): Similarly.
4583
4584         PR tree-optimization/47679
4585         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
4586         it into the avail_exprs_stack class.
4587         (pass_dominator::execute): Corresponding changes to declaration
4588         and initialization of avail_exprs.  Pass avail_exprs to
4589         dump_dominator_optimization_stats.
4590         (record_cond): Extract avail_exprs from avail_exprs_stack.
4591         (lookup_avail_expr): Similarly.
4592         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
4593         position in file.
4594         (dump_dominator_optimization_stats): Make static and prototype.
4595         Add argument for the hash table to dump.
4596         (debug_dominator_optimization_stats): Remove.
4597         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4598         prototype.
4599         (debug_dominator_optimization_stats): Similarly.
4600         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4601         "void" in prototype for pop_to_marker method.  Add accessor method
4602         for the underlying avail_exprs table.
4603
4604         * tree-ssa-threadedge.c: Remove trailing whitespace.
4605
4606 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
4607
4608         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4609         unsigned.
4610         (pa_ldil_cint_p): Likewise.
4611         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4612         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4613         Update callers.
4614         * config/pa/pa.md: Likewise.
4615
4616 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
4617
4618         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4619         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4620         (diagnostic_show_locus): Likewise.
4621         (diagnostic_print_caret_line): Likewise.
4622         * diagnostic-show-locus.c: New file.
4623
4624 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
4625
4626         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4627         "back" parameter. Declare label in #if block.
4628
4629 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
4630
4631         PR middle-end/67619
4632         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4633         the address to a register.
4634
4635 2015-09-18  Jeff Law  <law@redhat.com>
4636
4637         PR tree-optimization/47679
4638         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4639         * tree-ssa-dom.c: Remove unnecessary header includes.
4640         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4641         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4642         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4643         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4644         (pass_phi_only_cprop::execute): Likewise.
4645         (make_pass_phi_only_cprop): Likewise.
4646         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
4647         uses of file scoped statics by passing the required objects
4648         as parameters wherever needed.
4649
4650 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
4651             David Edelsohn  <dje.gcc@gmail.com>
4652
4653         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4654         EH_FRAME_THROUGH_COLLECT2.
4655         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4656         DW_EH_PE_datarel.
4657         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4658         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
4659         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4660         * except.c (switch_to_exception_section): Use a read-only section
4661         even if EH_FRAME_SECTION_NAME is undefined.
4662         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4663         * collect2.c (write_c_file_stat): Provide dbase on AIX.
4664         (scan_prog_file): Don't export __dso_handle nor
4665         __gcc_unwind_dbase.
4666         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4667         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4668         (ASM_OUTPUT_DWARF_PCREL): Define.
4669         (ASM_OUTPUT_DWARF_DATAREL): Define.
4670         (EH_FRAME_THROUGH_COLLECT2): Define.
4671         (EH_FRAME_IN_DATA_SECTION): Delete.
4672         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4673         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4674         Declare.
4675         (rs6000_asm_output_dwarf_datarel): Declare.
4676         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4677         (rs6000_aix_asm_output_dwarf_datarel): New.
4678         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4679         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4680         (EH_FRAME_THROUGH_COLLECT2): Define.
4681         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4682         (EH_FRAME_THROUGH_COLLECT2): Define.
4683         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4684         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4685         (EH_FRAME_THROUGH_COLLECT2): New.
4686         (ASM_OUTPUT_DWARF_DATAREL): New.
4687         * doc/tm.texi: Regenerate.
4688
4689 2015-09-18  Richard Biener  <rguenther@suse.de>
4690
4691         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4692         we're in early phase.
4693         (schedule_generic_params_dies_gen): Likewise.
4694         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4695         work as possible, retaining unhandled cases.
4696         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4697         clear out generic_type_instances at the end.
4698         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4699         (dwarf2out_early_finish): ... here.  Do most of
4700         gen_remaining_tmpl_value_param_die_attribute here.
4701
4702 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
4703
4704         PR tree-optimization/67283
4705         * tree-sra.c (type_consists_of_records_p): Rename to...
4706         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4707         (completely_scalarize_record): Rename to...
4708         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4709         (scalarize_elem): New.
4710         (analyze_all_variable_accesses): Follow renamings.
4711
4712 2015-09-18  Richard Biener  <rguenther@suse.de>
4713
4714         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4715         in early-dwarf.
4716
4717 2015-09-18  Richard Biener  <rguenther@suse.de>
4718
4719         PR tree-optimization/66142
4720         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4721         treat MEM[&x] and x the same.
4722         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4723         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4724         when we simplified sth.
4725         (vn_reference_maybe_forwprop_address): Likewise.
4726         (valueize_refs_1): When we simplified through
4727         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4728         set valueized_anything to true.
4729         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4730         one ref kills the other instead of just a offset-based test.
4731         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4732         for the operand_equal_p test to compare bases and also compare
4733         sizes.
4734
4735 2015-09-17  Christian Bruel  <christian.bruel@st.com>
4736
4737         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4738
4739 2015-09-17  Richard Henderson  <rth@redhat.com>
4740
4741         PR libstdc++/65913
4742         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4743         pointers that encode the alignment of the object.
4744
4745 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4746
4747         PR rtl-optimization/66790
4748         * df-problems.c (LIVE): Amend documentation.
4749
4750 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
4751
4752         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4753         and optabs-tree.o.
4754         (GTFILES): Replace optabs.c with optabs-libfunc.c.
4755         * genopinit.c (main): Add an include guard to insn-opinit.h.
4756         Protect the rtx_code parts with NUM_RTX_CODE.
4757         * optabs.h: Split parts out to...
4758         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4759         * optabs.c: Split parts out to...
4760         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4761         * cilk-common.c: Include optabs-query.h rather than optabs.h.
4762         * fold-const.c: Likewise.
4763         * target-globals.c: Likewise.
4764         * tree-if-conv.c: Likewise.
4765         * tree-ssa-forwprop.c: Likewise.
4766         * tree-ssa-loop-prefetch.c: Likewise.
4767         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4768         Remove unncessary include files.
4769         * tree-ssa-phiopt.c: Likewise.
4770         * tree-ssa-reassoc.c: Likewise.
4771         * tree-switch-conversion.c: Likewise.
4772         * tree-vect-data-refs.c: Likewise.
4773         * tree-vect-generic.c: Likewise.
4774         * tree-vect-loop.c: Likewise.
4775         * tree-vect-patterns.c: Likewise.
4776         * tree-vect-slp.c: Likewise.
4777         * tree-vect-stmts.c: Likewise.
4778         * tree-vrp.c: Likewise.
4779         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4780         rather than optabs.h.
4781         * expr.c: Include optabs-tree.h.
4782         * function.c: Likewise.
4783
4784 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4785
4786         PR middle-end/65958
4787         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4788         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4789         * config/arm/arm.c: Include common/common-target.h.
4790         (use_return_insn): Return 0 if the static chain register was saved
4791         above a non-APCS frame.
4792         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4793         (struct scratch_reg): New.
4794         (get_scratch_register_on_entry): New function.
4795         (release_scratch_register_on_entry): Likewise.
4796         (arm_emit_probe_stack_range): Likewise.
4797         (output_probe_stack_range): Likewise.
4798         (arm_expand_prologue): Factor out code dealing with the IP register
4799         for nested function and adjust it for stack checking.
4800         Invoke arm_emit_probe_stack_range if static builtin stack checking
4801         is enabled.
4802         (thumb1_expand_prologue): Sorry out if static builtin stack checking
4803         is enabled.
4804         (arm_expand_epilogue): Add the saved static chain register, if any, to
4805         the amount of pre-pushed registers to pop.
4806         (arm_frame_pointer_required): Return true if static stack checking is
4807         enabled and we want to catch the exception with the EABI unwinder.
4808         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4809         (UNSPEC_PROBE_STACK_RANGE): Likewise.
4810         * config/arm/arm.md (probe_stack): New insn.
4811         (probe_stack_range): Likewise.
4812
4813 2015-09-17  Richard Biener  <rguenther@suse.de>
4814
4815         * genmatch.c (parser::parse_expr): Improve error message
4816         for mis-placed flags.
4817
4818 2015-09-17  Richard Biener  <rguenther@suse.de>
4819
4820         * passes.c (rest_of_decl_compilation): Always call early_global_decl
4821         debug hook when we created a varpool node.
4822         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
4823         dwarf2out_early_global_decl, when not just add location or
4824         value attributes to existing DIEs.
4825
4826 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
4827
4828         * config/aarch64/aarch64.md (copysigndf3): New.
4829         (copysignsf3): Likewise.
4830
4831 2015-09-17  David S. Miller  <davem@davemloft.net>
4832
4833         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
4834         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
4835         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4836         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4837         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4838         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4839         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4840         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4841         provide when flag_pic.
4842
4843 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4844
4845         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
4846         object_allocator change.
4847
4848 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4849
4850         PR tree-optimization/66388
4851         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
4852         (dump_iv): Dump no_overflow information.
4853         (alloc_iv): Initialize new field for struct iv.
4854         (mark_bivs): Count number of no_overflow bivs.
4855         (find_deriving_biv_for_expr, record_biv_for_address_use): New
4856         functions.
4857         (idx_find_step): Call new functions above.
4858         (add_candidate_1, add_candidate): New paramter.
4859         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
4860         (get_computation_aff): Simplify convertion of cand for BIV.
4861         (get_computation_cost_at): Step cand's base if necessary.
4862
4863 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
4864
4865         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
4866         parameter.
4867         (tree_simplify_using_condition): Ditto.
4868         (simplify_using_initial_conditions): Ditto.
4869         (loop_exits_before_overflow): Pass new argument to function
4870         simplify_using_initial_conditions.  Remove case for type conversions
4871         simplification.
4872         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
4873         parameter.
4874         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
4875         in iv base using loop initial conditions.
4876
4877 2015-09-16  Jeff Law  <law@redhat.com>
4878
4879         PR tree-optimization/47679
4880         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
4881         (free_all_edge_infos): Use it.
4882         (allocate_edge_info): Free preexisting edge info data.
4883         (pass_dominator::execute): Set up initial edge info structures.
4884         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
4885         thread_across_edge.
4886         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
4887         If non-null, then push/pop markers appropriately.
4888         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4889         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
4890         thread-across_edge.
4891
4892 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
4893
4894         * config/ft32/ft32.c: Fix the memory address space predicate.
4895
4896 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
4897
4898         PR target/67573
4899         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
4900         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
4901
4902 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4903
4904         * toplev.h (check_global_declaration): Remove declaration.
4905         * toplev.c (check_global_declaration): Move to ...
4906         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
4907         (analyze_functions): Update call.
4908
4909 2015-09-16  David S. Miller  <davem@davemloft.net>
4910
4911         * lra-constraints.c (simplify_operand_subreg): Do not assume that
4912         lowpart of a SUBREG has offset zero.
4913
4914 2015-09-16  Jeff Law  <law@redhat.com>
4915
4916         PR tree-optimization/47679
4917         * tree-ssa-dom.c (enum expr_kind): Moved from here to
4918         tree-ssa-scopedtables.h.
4919         (struct hashable_expr, class expr_hash_elt): Likewise.
4920         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
4921         Move associated methods into tree-ssa-scopedtables.c.
4922         (avail_expr_hash, initialize_expr_from_cond): Similarly.
4923         (hashable_expr_equal_p, add_expr_commutative): Likewise.
4924         (add_hashable_expr): Likewise.
4925         (record_cond): Delete element directly.
4926         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
4927         private copy ctor and assignment operator methods.
4928         (expr_elt_hasher): Inline trivial methods.
4929         (initialize_expr_from_cond): Prototype.
4930         * tree-ssa-scopedtables.c: Add necessary includes, functions and
4931         methods that were previously in tree-ssa-dom.c.  Improve various
4932         comments.
4933
4934 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
4935
4936         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
4937
4938 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
4939
4940         PR bootstrap/67587
4941         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4942         fixup_partitions.
4943
4944 2015-09-16  Richard Biener  <rguenther@suse.de>
4945
4946         PR middle-end/67253
4947         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
4948         location of possibly shared trees.
4949
4950 2015-09-16  Richard Biener  <rguenther@suse.de>
4951
4952         PR middle-end/67271
4953         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
4954
4955 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
4956
4957         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
4958         offset and size computations instead of HOST_WIDE_INT.
4959
4960 2015-09-16  Richard Biener  <rguenther@suse.de>
4961
4962         PR middle-end/67442
4963         * fold-const.c (extract_muldiv_1): Properly extend multiplication
4964         result before builting a tree via wide_int_to_tree.
4965
4966 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
4967
4968         * Makefile.in: Add memory-block.cc
4969         (pool_allocator::initialize): Use fixed block size.
4970         (pool_allocator::release): Use memory_block_pool.
4971         (pool_allocator::allocate): Likewise.
4972         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
4973         object pools.
4974         * cfg.c (initialize_original_copy_tables): Likewise.
4975         * cselib.c (elt_list_pool, elt_loc_list_pool,
4976         cselib_val_pool): Likewise.
4977         * df-problems.c (df_chain_alloc): Likewise.
4978         * df-scan.c (df_scan_alloc): Likewise.
4979         * dse.c (cse_store_info_pool, rtx_store_info_pool,
4980         read_info_type_pool, insn_info_type_pool, bb_info_pool,
4981         group_info_pool, deferred_change_pool): Likewise.
4982         * et-forest.c (et_nodes, et_occurrences): Likewise.
4983         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
4984         ipcp_agg_lattice_pool): Likewise.
4985         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
4986         * ipa-profile.c (histogram_pool): Likewise.
4987         * ipa-prop.c (ipa_refdesc_pool): Likewise.
4988         * ira-build.c (live_range_pool, allocno_pool, object_pool,
4989         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
4990         * ira-color.c (update_cost_record_pool): Likewise.
4991         * lra-lives.c (lra_live_range_pool): Likewise.
4992         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
4993         * memory-block.cc: New file.
4994         * memory-block.h: New file.
4995         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
4996         * sched-deps.c (sched_deps_init): Likewise.
4997         * sel-sched-ir.c (sched_lists_pool): Likewise.
4998         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
4999         * tree-sra.c (access_pool): Likewise.
5000         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5001         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5002         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5003         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5004         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5005         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5006         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5007         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5008
5009 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5010
5011         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5012         definition.
5013         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5014         call0 ABI.
5015
5016 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5017
5018         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5019         to pass TLS call argument, according to current ABI.
5020         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5021         callx0 for TLS call, according to current ABI.
5022
5023 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5024
5025         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5026         on stack restore statements.
5027         (decide_copy_try_finally): Do not consider a stack restore statement as
5028         coming from sources.
5029
5030 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5031
5032         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5033         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5034
5035 2015-09-15  Jeff Law  <law@redhat.com>
5036
5037         PR tree-optimization/47679
5038         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5039         methods and private members.
5040         (avail_exprs_stack): Similarly.  Change type of global
5041         from a pair of expr_hash_elt_t to the new class.
5042         (expr_elt_hasher::hash): Corresponding changes.
5043         (expr_elt_hasher::equal): Similarly.
5044         (avail_expr_hash): Similarly.
5045         (pass_dominator::execute): Similarly.
5046         (dom_opt_dom_walker::thread_across_edge): Similarly.
5047         (record_cond): Similarly.
5048         (dom_opt_dom_walker::before_dom_children): Similarly.
5049         (dom_opt_dom_walker::after_dom_children): Similarly.
5050         (lookup_avail_expr): Likewise.
5051         (initialize_hash_element): Now a expr_hash_elt constructor.
5052         (initialize_hash_element_from_expr): Similarly.
5053         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5054         (free_expr_hash_elt): Call dtor for the element.
5055         (remove_local_expressions_from_table): Now the "pop_to_marker"
5056         method in the available_exprs_stack class.
5057         (avail_expr_stack::record_expr): Method factored out.
5058         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5059         Fix formatting.
5060         (hashable_expr_equal_p): Fix formatting.
5061
5062 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5063
5064         * input.h (location_get_source_line): Drop "expanded_location"
5065         param in favor of a file and line number.
5066         * input.c (location_get_source_line): Likewise.
5067         (dump_location_info): Update for change in signature of
5068         location_get_source_line.
5069         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5070
5071 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5072
5073         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5074         Bump to 4KB for SJLJ exceptions.
5075         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5076         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5077         * doc/tm.texi: Regenerate.
5078
5079 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5080
5081         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5082         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5083         Update prototype.
5084
5085 2015-09-15  Richard Biener  <rguenther@suse.de>
5086
5087         PR tree-optimization/67470
5088         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5089         structure for PHI hoisting by inserting a forwarder block
5090         if appropriate.
5091
5092 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5093
5094         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5095         (arm_option_print): New function.
5096
5097 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5098
5099         PR target/52144
5100         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5101         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5102         Remove flags parameter.
5103         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5104         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5105         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5106         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5107         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5108         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5109         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5110         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5111
5112 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5113
5114         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5115
5116         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5117         AARCH64_VALID_SIMD_DREG_MODE.
5118
5119 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5120
5121         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5122         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5123         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5124         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5125         aarch64_ld4_lane<mode>): Combine together, making...
5126         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5127         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5128         aarch64_st4_lane<mode>): Combine together, making...
5129         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5130         * config/aarch64/iterators.md (nregs): Add comment.
5131
5132 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5133
5134         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5135         Change operand mode from <V_TWO_ELEM> to BLK.
5136         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5137         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5138         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5139         (aarch64_ld2_lane<mode>): Likewise.
5140         (aarch64_st2_lane<VQ:mode>): Likewise.
5141         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5142
5143 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5144
5145         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5146         Change operand mode from <V_FOUR_ELEM> to BLK.
5147         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5148         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5149         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5150         (aarch64_ld4_lane<mode>): Likewise.
5151         (aarch64_st4_lane<mode>): Likewise.
5152         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5153
5154 2015-09-15  Richard Biener  <rguenther@suse.de>
5155
5156         PR middle-end/67563
5157         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5158         transfer EH info from old to new stmt.
5159         (replace_call_with_value): Likewise.
5160         (replace_call_with_call_and_fold): Likewise.
5161         (gimple_fold_builtin_memory_op): Likewise.
5162         (gimple_fold_builtin_memset): Likewise.
5163         (gimple_fold_builtin_stpcpy): Likewise.
5164         (gimple_fold_call): Likewise.
5165
5166 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5167
5168         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5169         comment.
5170         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5171         (aarch64_simd_intEI_type_node): Likewise.
5172         (aarch64_simd_builtin_std_type): Remove EImode case.
5173         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5174         * config/aarch64/aarch64-modes.def: Remove EImode.
5175
5176 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5177
5178         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5179         Change operand mode from <V_THREE_ELEM> to BLK.
5180         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5181         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5182         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5183         (aarch64_ld3_lane<mode>): Likewise.
5184         (aarch64_st3_lane<mode>): Likewise.
5185         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5186
5187 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5188
5189         * config/aarch64/aarch64-simd.md
5190         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5191         Change all TImode operands to BLKmode.
5192         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5193         Change all EImode operands to BLKmode.
5194         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5195         Change all OImode operands to BLKmode.
5196
5197         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5198         and call set_mem_size.
5199         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5200
5201         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5202
5203 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5204
5205         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5206         to...
5207         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5208
5209         (vec_store_lanesci_lane<mode>): Rename to...
5210         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5211
5212         (vec_store_lanesxi_lane<mode>): Rename to...
5213         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5214
5215         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5216         aarch64_st4_lane<mode>): Follow renaming.
5217
5218 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5219
5220         * config/s390/s390.c (s390_const_operand_ok): Add missing
5221         brackets.
5222
5223 2015-09-15  Richard Biener  <rguenther@suse.de>
5224
5225         PR lto/67568
5226         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5227         initialize.
5228         * lto-streamer-out.c (clear_line_info): Likewise.
5229
5230 2015-09-15  Richard Biener  <rguenther@suse.de>
5231
5232         * doc/match-and-simplify.texi: Fix wording.
5233
5234 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5235
5236         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5237         unnecessary type conversion in op1.
5238
5239 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5240
5241         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5242         (dup_block_and_redirect): Delete function.
5243         (can_dup_for_shrink_wrapping): New function.
5244         (fix_fake_fallthrough_edge): New function.
5245         (try_shrink_wrapping): Rewrite function.
5246         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5247
5248 2015-09-14  Rich Felker  <dalias@libc.org>
5249
5250         * configure.ac: Change target pattern for sh TLS support
5251         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5252         * configure: Regenerate.
5253
5254 2015-09-14  Jeff Law  <law@redhat.com>
5255
5256         PR tree-optimization/47679
5257         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5258         type rather than void *.
5259
5260 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5261
5262         PR fortran/67460
5263         * diagnostic.c (diagnostic_initialize): Do not set
5264         some_warnings_are_errors.
5265         (diagnostic_finish): Use DK_WERROR count instead.
5266         (diagnostic_report_diagnostic): Do not set
5267         some_warnings_are_errors.
5268         * diagnostic.h (struct diagnostic_context): Remove
5269         some_warnings_are_errors.
5270
5271 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5272
5273         * config/sparc/predicates.md (const_all_ones_operand): Use
5274         CONSTM1_RTX to simplify definition.
5275
5276 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5277
5278         PR target/67061
5279         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5280         Handle call insns.
5281
5282 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5283
5284         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5285         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5286         OPT_fshow_column to handled saved option cases.
5287         (append_compiler_options): Do not skip the above added options.
5288
5289 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5290
5291         PR target/63304
5292         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5293         nopcrelative_literal_loads.
5294         (aarch64_classify_address): Likewise.
5295         (aarch64_constant_pool_reload_icode): Define.
5296         (aarch64_secondary_reload): Handle secondary reloads for
5297         literal pools.
5298         (aarch64_override_options): Handle nopcrelative_literal_loads.
5299         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5300         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5301         Define.
5302         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5303         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5304         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5305         predicate.
5306         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5307
5308 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5309
5310         PR middle-end/67401
5311         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5312         sync_compare_and_swap_optab libcall to target_oval.
5313
5314 2015-09-14  Marek Polacek  <polacek@redhat.com>
5315
5316         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5317         value.
5318         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5319
5320 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5321
5322         PR c/28901
5323         * toplev.c (check_global_declaration): Check and use
5324         warn_unused_const_variable.
5325         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5326         (-Wunused-variable): Remove non-constant. For C implies
5327         -Wunused-const-variable.
5328         (-Wunused-const-variable): New.
5329
5330 2015-09-14  Richard Biener  <rguenther@suse.de>
5331
5332         * doc/match-and-simplify.texi: Update for changed syntax
5333         of inner ifs and the new switch expression.
5334
5335 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5336
5337         * config/i386/haswell.md: New file describing Haswell pipeline.
5338         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5339         haswell-like processors.
5340         (ix86_reassociation_width): Increase reassociation width for 64-bit
5341         Haswell processor family.
5342         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5343
5344 2015-09-14  Richard Biener  <rguenther@suse.de>
5345
5346         * doc/match-and-simplify.texi: Fixup some formatting issues
5347         and document the 's' flag.
5348
5349 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5350             Eric Botcazou  <ebotcazou@adacore.com>
5351
5352         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5353         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5354         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5355         (TARGET_CPU_gr5): Likewise.
5356         (TARGET_CPU_gr6): Likewise.
5357         (MULTILIB_DEFAULTS): Likewise.
5358         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5359         for mcpu=gr5 and mcpu=gr6.
5360         (MULTILIB_DIRNAMES): Adjust accordingly.
5361
5362 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5363
5364         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5365         (mem_ref_p): Likewise.
5366         (outermost_indep_loop): Adjust.
5367         (mem_ref_in_stmt): Likewise.
5368         (determine_max_movement): Likewise.
5369         (mem_ref_alloc): Likewise.
5370         (record_mem_ref_loc): Likewise.
5371         (set_ref_stored_in_loop): Likewise.
5372         (mark_ref_stored): Likewise.
5373         (gather_mem_refs_stmt): Likewise.
5374         (mem_refs_may_alias_p): Likewise.
5375         (for_all_locs_in_loop): Likewise.
5376         (struct rewrite_mem_ref_loc): Likewise.
5377         (rewrite_mem_refs): Likewise.
5378         (struct first_mem_ref_loc_1): Likewise.
5379         (first_mem_ref_loc): Likewise.
5380         (struct sm_set_flag_if_changed): Likewise.
5381         (execute_sm_if_changed_flag_set): Likewise.
5382         (execute_sm): Likewise.
5383         (hoist_memory_references):
5384         (struct ref_always_accessed): Likewise.
5385         (ref_always_accessed_p): Likewise.
5386         (refs_independent_p): Likewise.
5387         (record_dep_loop): Likewise.
5388         (ref_indep_loop_p_1): Likewise.
5389         (ref_indep_loop_p_2): Likewise.
5390         (ref_indep_loop_p): Likewise.
5391         (can_sm_ref_p): Likewise.
5392         (find_refs_for_sm): Likewise.
5393         (tree_ssa_lim_finalize): Likewise.
5394
5395 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5396
5397         * dwarf2out.c (dw_attr_ref): Remove typedef.
5398         (dw_line_info_ref): Likewise.
5399         (pubname_ref): Likewise.
5400         (dw_ranges_ref): Likewise.
5401         (dw_ranges_by_label_ref): Likewise.
5402         (comdat_type_node_ref): Likewise.
5403         (get_AT): Adjust.
5404         (get_AT_low_pc): Likewise.
5405         (get_AT_hi_pc): Likewise.
5406         (get_AT_string): Likewise.
5407         (get_AT_flag): Likewise.
5408         (get_AT_unsigned): Likewise.
5409         (get_AT_ref): Likewise.
5410         (get_AT_file): Likewise.
5411         (remove_AT): Likewise.
5412         (print_die): Likewise.
5413         (check_die): Likewise.
5414         (die_checksum): Likewise.
5415         (attr_checksum_ordered): Likewise.
5416         (struct checksum_attributes): Likewise.
5417         (collect_checksum_attributes): Likewise.
5418         (die_checksum_ordered): Likewise.
5419         (same_die_p): Likewise.
5420         (is_declaration_die): Likewise.
5421         (clone_die): Likewise.
5422         (clone_as_declaration): Likewise.
5423         (copy_declaration_context): Likewise.
5424         (break_out_comdat_types): Likewise.
5425         (copy_decls_walk): Likewise.
5426         (output_location_lists): Likewise.
5427         (external_ref_hasher::hash): Likewise.
5428         (optimize_external_refs_1): Likewise.
5429         (build_abbrev_table): Likewise.
5430         (size_of_die): Likewise.
5431         (unmark_all_dies): Likewise.
5432         (size_of_pubnames): Likewise.
5433         (output_die_abbrevs): Likewise.
5434         (output_die): Likewise.
5435         (output_pubnames): Likewise.
5436         (add_ranges_num): Likewise.
5437         (add_ranges_by_labels): Likewise.
5438         (add_high_low_attributes): Likewise.
5439         (gen_producer_string): Likewise.
5440         (dwarf2out_set_name): Likewise.
5441         (new_line_info_table): Likewise.
5442         (prune_unused_types_walk_attribs): Likewise.
5443         (prune_unused_types_update_strings): Likewise.
5444         (prune_unused_types): Likewise.
5445         (resolve_addr): Likewise.
5446         (optimize_location_lists_1): Likewise.
5447         (index_location_lists): Likewise.
5448         (dwarf2out_finish): Likewise.
5449
5450 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5451
5452         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5453
5454 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5455
5456         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5457         (dump_asserts_for): Adjust.
5458         (register_new_assert_for): Likewise.
5459         (process_assert_insertions): Likewise.
5460         (insert_range_assertions): Likewise.
5461
5462 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5463
5464         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5465         and remove typedef.
5466         (new_temp_expr_table): Adjust.
5467         (free_temp_expr_table): Likewise.
5468         (version_to_be_replaced_p): Likewise.
5469         (make_dependent_on_partition): Likewise.
5470         (add_to_partition_kill_list): Likewise.
5471         (remove_from_partition_kill_list): Likewise.
5472         (add_dependence): Likewise.
5473         (finished_with_expr): Likewise.
5474         (process_replaceable): Likewise.
5475         (kill_expr): Likewise.
5476         (kill_virtual_exprs): Likewise.
5477         (mark_replaceable): Likewise.
5478         (find_replaceable_in_bb): Likewise.
5479         (find_replaceable_exprs): Likewise.
5480         (debug_ter): Likewise.
5481
5482 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5483
5484         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5485         (struct btr_user): Rename from btr_user_s.
5486         (struct btr_def): Rename from btr_def_s.
5487         (find_btr_def_group): Adjust.
5488         (add_btr_def): Likewise.
5489         (new_btr_user): Likewise.
5490         (note_other_use_this_block): Likewise.
5491         (compute_defs_uses_and_gen): Likewise.
5492         (link_btr_uses): Likewise.
5493         (build_btr_def_use_webs): Likewise.
5494         (block_at_edge_of_live_range_p): Likewise.
5495         (btr_def_live_range): Likewise.
5496         (combine_btr_defs): Likewise.
5497         (move_btr_def): Likewise.
5498         (migrate_btr_def): Likewise.
5499         (migrate_btr_defs): Likewise.
5500
5501 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5502
5503         * var-tracking.c (shared_hash_def): Rename to shared_hash.
5504         (shared_hash): Remove typedef.
5505         (struct dataflow_set): Adjust.
5506         (shared_hash_unshare): Likewise.
5507         (dataflow_set_merge): Likewise.
5508         (vt_initialize): Likewise.
5509         (vt_finalize): Likewise.
5510
5511 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5512
5513         * var-tracking.c (struct location_chain): Rename from
5514         location_chain_def.
5515         (struct variable_part): Adjust.
5516         (variable_htab_free): Likewise.
5517         (unshare_variable): Likewise.
5518         (get_init_value): Likewise.
5519         (get_addr_from_local_cache): Likewise.
5520         (drop_overlapping_mem_locs): Likewise.
5521         (val_reset): Likewise.
5522         (struct variable_union_info): Likewise.
5523         (variable_union): Likewise.
5524         (find_loc_in_1pdv): Likewise.
5525         (insert_into_intersection): Likewise.
5526         (intersect_loc_chains): Likewise.
5527         (canonicalize_loc_order_check): Likewise.
5528         (canonicalize_values_mark): Likewise.
5529         (canonicalize_values_star): Likewise.
5530         (canonicalize_vars_star): Likewise.
5531         (variable_merge_over_cur): Likewise.
5532         (remove_duplicate_values): Likewise.
5533         (variable_post_merge_new_vals): Likewise.
5534         (variable_post_merge_perm_vals): Likewise.
5535         (find_mem_expr_in_1pdv): Likewise.
5536         (dataflow_set_preserve_mem_locs): Likewise.
5537         (dataflow_set_remove_mem_locs): Likewise.
5538         (variable_part_different_p): Likewise.
5539         (onepart_variable_different_p): Likewise.
5540         (find_src_set_src): Likewise.
5541         (dump_var): Likewise.
5542         (set_slot_part): Likewise.
5543         (clobber_slot_part): Likewise.
5544         (delete_slot_part): Likewise.
5545         (vt_expand_var_loc_chain): Likewise.
5546         (emit_note_insn_var_location): Likewise.
5547         (vt_finalize): Likewise.
5548
5549 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5550
5551         * dse.c (store_info_t): Remove typedef.
5552         (group_info_t): Likewise.
5553         (const_group_info_t): Likewise.
5554         (deferred_change_t): Likewise.
5555         (get_group_info): Adjust.
5556         (free_store_info): Likewise.
5557         (canon_address): Likewise.
5558         (clear_rhs_from_active_local_stores): Likewise.
5559         (record_store): Likewise.
5560         (replace_read): Likewise.
5561         (check_mem_read_rtx): Likewise.
5562         (scan_insn): Likewise.
5563         (remove_useless_values): Likewise.
5564         (dse_step1): Likewise.
5565         (dse_step2_init): Likewise.
5566         (dse_step2_nospill): Likewise.
5567         (scan_stores_nospill): Likewise.
5568         (scan_reads_nospill): Likewise.
5569         (dse_step3_exit_block_scan): Likewise.
5570         (dse_step3): Likewise.
5571         (dse_step5_nospill): Likewise.
5572         (dse_step6): Likewise.
5573
5574 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5575
5576         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5577         (alias_set_entry): Remove typedef.
5578         (alias_set_subset_of): Adjust.
5579         (alias_sets_conflict_p): Likewise.
5580         (init_alias_set_entry): Likewise.
5581         (get_alias_set): Likewise.
5582         (new_alias_set): Likewise.
5583         (record_alias_subset): Likewise.
5584
5585 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
5586
5587         * doc/install.texi (Downloading the source): Mark up
5588         contrib/download_prerequisites properly and drop leading "./".
5589
5590 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5591
5592         * config/arc/arc.h: Remove define of STRUCT_VALUE.
5593         * config/lm32/lm32.h: Likewise.
5594         * config/mep/mep.h: Likewise.
5595         * config/visium/visium.h: Likewise.
5596         * system.h: Poison STRUCT_VALUE macro.
5597
5598 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
5599
5600         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5601         CONSTANT_P operands.
5602
5603 2015-09-11  David S. Miller  <davem@davemloft.net>
5604
5605         * config/sparc/constraints.md: Make "U" constraint a real register
5606         constraint.
5607         * config/sparc/sparc.c (TARGET_LRA_P): Define.
5608         (D_MODES, DF_MODES): Add missing cast.
5609         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5610         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5611         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5612         cost to 8.
5613         * config/sparc/sparc.h (PROMOTE_MODE): Define.
5614         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5615         provide these insn when flag_pic.
5616
5617 2015-09-11  Jeff Law  <law@redhat.com>
5618
5619         PR tree-optimization/47679
5620         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5621         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5622         member with m_.  Update inline member functions as necessary.  Add
5623         toplevel comment.
5624         * tree-ssa-scopedtables.c: Update const_and_copies's member
5625         functions to use m_ prefix to access the stack.
5626
5627 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5628
5629         * graphite-optimize-isl.c (disable_tiling): Remove.
5630         (get_schedule_for_band): Do not use disable_tiling.
5631         (get_prevector_map): Delete function.
5632         (enable_polly_vector): Remove.
5633         (get_schedule_for_band_list): Remove dead code.
5634
5635 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5636
5637         * graphite-optimize-isl.c (get_tile_map): Refactor.
5638         (get_schedule_for_band): Same.
5639         (getScheduleForBand): Same.
5640         (get_prevector_map): Same.
5641         (get_schedule_for_band_list): Same.
5642         (get_schedule_map): Same.
5643         (get_single_map): Same.
5644         (apply_schedule_map_to_scop): Same.
5645         (optimize_isl): Same.
5646
5647 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5648
5649         PR target/63304
5650         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5651         (movtf): Delete.
5652         * config/aarch64/iterators.md (GPF_TF_F16): New.
5653         (GPF_F16): Delete.
5654
5655 2015-09-10  Nathan Sidwell  <nathan@acm.org>
5656
5657         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5658         (nvptx_reorg): Adjust comments.
5659
5660 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
5661
5662         PR bootstrap/67363
5663         * configure.ac: Check if setenv and unsetenv are declared.
5664         * configure: Rebuild.
5665         * config.in: Rebuild.
5666         * system.h: Declare setenv and unsetenv if not declared.
5667
5668 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5669
5670         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5671         commentary to simplify permute mask adjustment equation.
5672         (special_handling_values): Add SH_VPERM.
5673         (const_load_sequence_p): New function.
5674         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5675         the mask loaded from the constant pool.
5676         (adjust_vperm): New function.
5677         (handle_special_swappables): Call adjust_vperm.
5678         (dump_swap_insn_table): Handle SH_VPERM.
5679
5680 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5681
5682         * shrink-wrap.c (requires_stack_frame_p): Remove static.
5683         * shrink-wrap.h (requires_stack_frame_p): Put back.
5684
5685 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
5686
5687         * reload1.c (elimination_costs_in_insn): Locally turn
5688         -Wmaybe-uninitialized into a warning.
5689
5690 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
5691
5692         * shrink-wrap.c (requires_stack_frame_p): Make static.
5693         (prepare_shrink_wrap): Likewise.
5694         (dup_block_and_redirect): Likewise.
5695         * shrink-wrap.h: Remove declarations of those functions.
5696
5697 2015-09-10  Mark Wielaard  <mjw@redhat.com>
5698
5699         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5700
5701 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
5702
5703         PR target/67506
5704         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5705         missing simplify_gen_subreg.
5706
5707 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5708
5709         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5710         the vector element is bigger than 64 bit.
5711
5712 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5713
5714         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5715         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5716
5717 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5718
5719         * config/s390/s390.c: Add V1TImode to constant pool modes.
5720
5721 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5722
5723         PR target/67439
5724         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5725         predicate.  Set predicable_short_it attr to "no".
5726
5727 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
5728
5729         PR rtl-optimization/67421
5730         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5731         left wide shift tranformation.
5732
5733 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
5734
5735         * common/config/arc/arc-common.c: Remove references to A5.
5736         * config/arc/arc-opts.h: Likewise.
5737         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5738         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5739         * config/arc/t-arc-newlib: Likewise.
5740
5741 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
5742
5743         * config/arc/arc.md (length): Fix attribute length for conditional
5744         executed instructions with long immediate.
5745
5746 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5747
5748         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5749         type for second alternative.
5750
5751 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
5752
5753         * doc/invoke.texi (Downloading GCC): Mention
5754         contrib/download_prerequisites script.
5755
5756 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
5757
5758         PR c++/67523
5759         * gimplify.c (gimplify_omp_for): If inner stmt is not found
5760         for combined loop, assert seen_error () and return GS_ERROR.
5761
5762         PR middle-end/67521
5763         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5764         if decl is already in outer->variables.
5765
5766         PR middle-end/67517
5767         * gimplify.c (gimplify_scan_omp_clauses): Instead of
5768         asserting that decl is not specified in octx->variables,
5769         break out of the loop if it is.
5770
5771         PR c++/67514
5772         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5773         iterator is not explicitly determined, but is defined inside
5774         of the combined workshare region, handle it like if it has
5775         DECL_EXPR in OMP_FOR_PRE_BODY.
5776
5777 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5778
5779         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5780         (*cmp<mode>): Add assembler spacing.
5781         (setcc_int<mode>, set_cc_float<mode>): Likewise.
5782         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5783         level.
5784         (write_func_decl_from_insn): Refactor argument loops & comma emission.
5785         (nvptx_expand_call): Likewise.
5786         (nvptx_output_call_insn): Likewise.
5787         (nvptx_reorg_subreg): Add spacing.
5788
5789 2015-09-09  Marek Polacek  <polacek@redhat.com>
5790
5791         PR middle-end/67512
5792         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5793         for comparisons.
5794
5795 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5796
5797         PR c++/53184
5798         * doc/invoke.texi ([Wsubobject-linkage]): Document.
5799
5800 2015-09-09  Tom de Vries  <tom@codesourcery.com>
5801
5802         * params-list.h: Add missing copyright notice.
5803
5804 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5805
5806         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5807         sel_truesi, not andsi.
5808
5809 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5810
5811         * config/arm/arm.md (*subsi3_compare0): Rename to...
5812         (subsi3_compare0): ... This.
5813         (modsi3): New define_expand.
5814         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5815         when operand is power of 2.
5816
5817 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5818
5819         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
5820         (*neg<mode>2_compare0): Rename to...
5821         (neg<mode>2_compare0): ... This.
5822         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
5823         Move check for speed inside the if-then-elses.  Reflect
5824         CSNEG sequence in MOD by power of 2 case.
5825
5826 2015-09-09  Alan Modra  <amodra@gmail.com>
5827
5828         PR target/67378
5829         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
5830         reload replacement for PRE_MODIFY address reg.
5831
5832 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
5833
5834         PR tree-optimization/53852
5835         * config.in: Regenerate.
5836         * configure: Regenerate.
5837         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
5838         * graphite-optimize-isl.c (optimize_isl): Stop computation when
5839         PARAM_MAX_ISL_OPERATIONS is reached.
5840         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
5841         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
5842         result equal to isl_stat_ok as the status now can be isl_error_quota.
5843         (subtract_commutative_associative_deps): Same.
5844         (compute_deps): Same.
5845
5846 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
5847             Sebastian Pop  <s.pop@samsung.com>
5848
5849         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5850         Return the parameter if it was saved in corresponding
5851         parameter_rename_map of the region.
5852         (copy_def): Copy def from sese region to the newly created region.
5853         (copy_internal_parameters): Copy all the internal parameters defined
5854         within a region to the newly created region.
5855         (graphite_regenerate_ast_isl): Copy parameters to the new region before
5856         translating isl to gimple.
5857         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
5858         the loop-nest does not have any data-references.
5859         (build_graphite_scops): Create a scop only when there is at least one
5860         loop inside it.
5861         (contains_only_close_phi_nodes): Deleted.
5862         (print_graphite_scop_statistics): Deleted
5863         (print_graphite_statistics): Deleted
5864         (limit_scops): Deleted.
5865         (build_scops): Removed call to limit_scops.
5866         * sese.c (new_sese): Construct.
5867         (free_sese): Destruct.
5868         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
5869         added.
5870         (set_rename): Pass sese region so that parameters inside the region can
5871         be added to its parameter_rename_map.
5872         (rename_uses): Pass sese region.
5873         (graphite_copy_stmts_from_block): Do not copy parameters that have been
5874         generated in the header of the scop. For each SSA_NAME in the
5875         parameter_rename_map rename its usage.
5876         (invariant_in_sese_p_rec): Return false if tree t is defined outside
5877         sese region.
5878         (scalar_evolution_in_region): If the tree t is invariant just return t.
5879         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
5880         struct sese to keep track of all the parameters which need renaming.
5881         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
5882         any data-refs.
5883         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
5884
5885 2015-09-08  Tom de Vries  <tom@codesourcery.com>
5886
5887         * Makefile.in (generated_files): Add params.list.
5888         (params.list, s-params.list): Add rule.
5889         * params.h (enum compiler_param): Include params-list.h.  Move define
5890         DEFPARAM, include params.def and undef DEFPARAM ...
5891         * params-list.h: ... here.  New file.
5892
5893 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
5894
5895         * pretty-print.h (printer_fn): Fix typo in comment.
5896
5897 2015-09-07  Jeff Law  <law@redhat.com>
5898
5899         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
5900
5901 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5902
5903         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
5904         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
5905         (arm_neon_fp16_hw): New.
5906
5907 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5908
5909         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
5910         UNITS_PER_WORD >= 4.
5911
5912 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5913
5914         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
5915         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
5916         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
5917         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
5918         (aarch64_float_extend_lo_v2df): Rename to...
5919         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
5920
5921         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
5922         (float_extend_lo): Add v4sf.
5923
5924         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
5925         * config/aarch64/iterators.md (VQ_HSF): New iterator.
5926         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
5927         (Vwide): New mode_attr.
5928
5929 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5930
5931         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
5932         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
5933         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
5934         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
5935         V4HF and V8HF variants to iterator.
5936
5937         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
5938
5939         * config/aarch64/iterators.md (VDQF_F16): New.
5940         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
5941
5942 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5943
5944         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
5945         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
5946         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
5947         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
5948         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
5949         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
5950         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
5951         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
5952         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
5953         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
5954         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
5955         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
5956         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
5957         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
5958         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
5959         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
5960         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
5961         vld1q_dup_f16): New.
5962
5963 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5964
5965         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
5966         Reparameterize to...
5967         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
5968         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
5969         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
5970
5971         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
5972         v8hf variant.
5973         (float_truncate_lo_): Use BUILTIN_VDF iterator.
5974
5975         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
5976
5977         * config/aarch64/iterators.md (VDF, Vdtype): New.
5978         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
5979
5980 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
5981
5982         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
5983         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
5984         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
5985         Add __builtin_aarch64_simd_hf.
5986         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
5987         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
5988         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
5989         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
5990         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
5991         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
5992         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
5993         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
5994         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
5995
5996         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
5997         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
5998         (VDC, Vdbl): Add V4HF.
5999
6000 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6001
6002         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6003         V4HFmode and V8HFmode.
6004         (aarch64_split_simd_move): Add case for V8HFmode.
6005         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6006         (aarch64_simd_builtin_std_type): Handle HFmode.
6007         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6008
6009         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6010         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6011         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6012
6013         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6014         Float16x8_t.
6015
6016         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6017         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6018         New typedefs.
6019         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6020         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6021         vst1q_lane_f16): New.
6022         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6023         (VALLDI_F16, VALL_F16): New.
6024         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6025         Add cases for V4HF and V8HF.
6026         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6027
6028 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6029
6030         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6031         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6032         vld4_dup): Add v4hf variant.
6033         (vget_high, vget_low): Add v8hf variant.
6034         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6035         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6036         v4hf and v8hf variants.
6037
6038         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6039         (VDX): Add V4HF.
6040         (V_DOUBLE): Add case for V4HF.
6041         (VQX): Add V8HF.
6042         (V_HALF): Add case for V8HF.
6043         (VDQX): Add V4HF, V8HF.
6044         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6045         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6046
6047         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6048         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6049         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6050         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6051         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6052         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6053         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6054         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6055         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6056
6057         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6058         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6059         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6060         Change VDX to VD_RE.
6061
6062         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6063         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6064         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6065
6066         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6067         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6068         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6069         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6070         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6071         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6072         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6073         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6074         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6075
6076 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6077
6078         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6079         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6080         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6081         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6082         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6083         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6084         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6085         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6086         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6087         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6088         New.
6089
6090 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6091
6092         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6093
6094         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6095
6096         * config/arm/arm-builtins.c (v8hf_UP): New.
6097         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6098
6099         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6100
6101         * config/arm/arm_neon.h (float16x8_t): New typedef.
6102
6103 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6104
6105         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6106         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6107         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6108         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6109         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6110         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6111         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6112         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6113         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6114         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6115
6116 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6117
6118         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6119         non-alphanumeric characters in the symbol name.
6120
6121 2015-09-07  Marek Polacek  <polacek@redhat.com>
6122
6123         PR inline-asm/67448
6124         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6125         a memory input.
6126
6127 2015-09-07  Marek Polacek  <polacek@redhat.com>
6128
6129         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6130
6131 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6132
6133         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6134         not warn.
6135
6136 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6137
6138         PR middle-end/67452
6139         * tree-ssa-live.c: Include cfgloop.h.
6140         (remove_unused_locals): Clear loop->simduid if simduid is about
6141         to be removed from cfun->local_decls.
6142
6143 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6144
6145         PR target/65210
6146         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6147         attribute as well.
6148
6149 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6150
6151         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6152
6153 2015-09-04  Jeff Law  <law@redhat.com>
6154
6155         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6156         unnecessary constructor.  It's now trivial and implemented inside...
6157         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6158         constructor.  Add comments to various methods.  Remove unused
6159         private fields.
6160         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6161         * tree-vrp.c (identify_jump_threads): Likewise.
6162         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6163         indentation issues.
6164         (thread_across_edge): Similarly.
6165         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6166         arguments in constructor call.
6167
6168 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6169
6170         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6171         temp path contains a '-'.
6172
6173 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6174             Petr Murzin  <petr.murzin@intel.com>
6175             Kirill Yukhin  <kirill.yukhin@intel.com>
6176
6177         * config/i386/i386-builtin-types.def
6178         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6179         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6180         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6181         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6182         * config/i386/i386.c
6183         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6184         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6185         IX86_BUILTIN_SCATTERALTDIV16SI.
6186         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6187         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6188         __builtin_ia32_scatteraltdiv8si.
6189         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6190         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6191         IX86_BUILTIN_SCATTERALTDIV16SI.
6192         (ix86_vectorize_builtin_scatter): New.
6193         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6194         ix86_vectorize_builtin_scatter.
6195
6196 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6197             Petr Murzin  <petr.murzin@intel.com>
6198             Kirill Yukhin  <kirill.yukhin@intel.com>
6199
6200         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6201         * doc/tm.texi: Regenerate.
6202         * target.def: Add scatter builtin.
6203         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6204         for loads/stores in case of gather/scatter accordingly.
6205         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6206         STMT_VINFO_GATHER_P(S).
6207         (vect_check_gather): Rename to ...
6208         (vect_check_gather_scatter): this.
6209         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6210         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6211         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6212         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6213         variable and new checkings for it accordingly.
6214         * tree-vect-stmts.c
6215         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6216         STMT_VINFO_GATHER_P(S).
6217         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6218         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6219
6220 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6221
6222         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6223         define_insn.
6224         (mulv16qi3): New define_expand.
6225
6226 2015-09-03  Martin Sebor  <msebor@redhat.com>
6227
6228         PR c/66516
6229         * doc/extend.texi (Other Builtins): Document when the address
6230         of a built-in function can be taken.
6231
6232 2015-09-03  Richard Biener  <rguenther@suse.de>
6233
6234         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6235         (dwarf2out_early_finish): ... here.
6236         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6237         flush_limbo_die_list.  Assert we have no deferred asm names.
6238
6239 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6240
6241         * optabs.c (expand_binop): Don't create a broadcast vector with a
6242         source element wider than the inner mode.
6243
6244 2015-09-03  Richard Biener  <rguenther@suse.de>
6245
6246         * varasm.c (output_constant): Use fold_convert instead of
6247         wide_int_to_tree.
6248
6249 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6250
6251         PR tree-optimization/65637
6252         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6253         fin_bb has 2 predecessors.
6254
6255 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6256
6257         PR tree-optimization/65637
6258         * omp-low.c (find_phi_with_arg_on_edge): New function.
6259         (expand_omp_for_static_chunk): Fix inner loop phi.
6260
6261 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6262
6263         PR tree-optimization/65637
6264         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6265         that head is NULL.
6266
6267 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6268
6269         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6270
6271 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6272
6273         * doc/invoke.texi (parloops-chunk-size): Add item.
6274         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6275         * tree-parloops.c: Include params.h.
6276         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6277         param parloops-chunk-size is used.
6278
6279 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6280
6281         PR middle-end/67351
6282         * fold-const.c (fold_binary_loc) : Move
6283         Transform (x >> c) << c into x & (-1<<c) or
6284         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6285         types using simplify and match.
6286         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6287         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6288
6289 2015-09-03  Richard Biener  <rguenther@suse.de>
6290
6291         PR ipa/66705
6292         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6293         (create_variable_info_for_1): Use ctor_for_analysis instead
6294         of get_constructor.
6295         (create_variable_info_for): Likewise.
6296
6297 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6298
6299         PR ipa/67280
6300         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6301         in new callgraph edge.
6302
6303 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6304
6305         PR target/59810
6306         PR target/63652
6307         PR target/63653
6308         * config/aarch64/aarch64-simd.md
6309         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6310         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6311         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6312         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6313
6314 2015-09-02  Alan Modra  <amodra@gmail.com>
6315
6316         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6317         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6318         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6319
6320 2015-09-02  Alan Modra  <amodra@gmail.com>
6321
6322         PR target/67417
6323         * config/rs6000/predicates.md (current_file_function_operand): Don't
6324         return true for weak symbols.
6325         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6326
6327 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6328             Andrew Bennett  <andrew.bennett@imgtec.com>
6329
6330         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6331         * config/mips/mips-protos.h: Add definitions for
6332         mips_output_jump and mips_output_equal_conditional_branch
6333         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6334         JIC instruction.
6335         (mips_emit_compare): Add support for the MIPS R6 conditional
6336         compact branches.
6337         (mips_process_sync_loop): Likewise.
6338         (mips_output_order_conditional_branch): Likewise.
6339         (mips16_build_call_stub): Change MIPS_CALL to
6340         mips_output_jump.
6341         (mips_print_operand_punctuation): Update 's' case to only
6342         apply to micromips r2.
6343         (mips_adjust_insn_length): Add support for forbidden slot
6344         hazards.
6345         (mips_avoid_hazard): Likewise.
6346         (mips_reorg_process_insns): Likewise.
6347         (mips_output_jump): New function.
6348         (mips_output_equal_conditional_branch): Likewise.
6349         (mips_output_conditional_branch): Use jrc/bc if compact
6350         branch support is enabled.  Ensure the forbidden slots
6351         between the two branch instructions is filled with a nop.
6352         (mips_option_override): Add support to process the compact
6353         branch option and set the correct defaults.  Prevent
6354         non-explict relocs being using for MIPS R6.
6355         (mips_trampoline_init): Add compact branch support.
6356         (mips_mult_zero_zero_cost): Allow zero initialisation of
6357         accumulators with TARGET_DSP.
6358         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6359         (TARGET_CB_MAYBE): New define.
6360         (TARGET_CB_ALWAYS): New define.
6361         (ISA_HAS_DELAY_SLOTS): New define.
6362         (ISA_HAS_COMPACT_BRANCHES): New define.
6363         (ISA_HAS_JRC): New define.
6364         (MIPS_BRANCH_C): New define.
6365         (MIPS_CALL): Removed.
6366         (MICROMIPS_J): Removed.
6367         * config/mips/mips.md (compact_form): New attr.
6368         (hazard): Add support for forbidden slots.
6369         (define_delay): Add support for compact branches.
6370         (*branch_order<mode>): Likewise.
6371         (*branch_order<mode>_inverted): Likewise.
6372         (*branch_equality<mode>): Likewise.
6373         (*branch_equality<mode>_inverted): Likewise.
6374         (*jump_absolute): Likewise.
6375         (*jump_pic): Likewise.
6376         (indirect_jump): Use mips_output_jump to produce assembly output.
6377         (tablejump_<mode>"): Likewise.
6378         (*<optab>"): Likewise.
6379         (<optab>_internal): Likewise.
6380         (sibcall_internal): Likewise.
6381         (sibcall_value_internal): Likewise.
6382         (sibcall_value_multiple_internal): Likewise.
6383         (call_internal): Likewise.
6384         (call_split): Likewise.
6385         (call_internal_direct): Likewise.
6386         (call_direct_split): Likewise.
6387         (call_value_internal): Likewise.
6388         (call_value_split): Likewise.
6389         (call_value_internal_direct): Likewise.
6390         (call_value_direct_split): Likewise.
6391         (call_value_multiple_internal): Likewise.
6392         (call_value_multiple_split): Likewise.
6393         (mips_get_fcsr_mips16_<mode>): Likewise.
6394         (mips_set_fcsr_mips16_<mode>): Likewise.
6395         (tls_get_tp_mips16_<mode>): Likewise.
6396         * config/mips/mips.opt: Add -mcompact-branches option.
6397         * config/mips/predicates.md (order_operator): Ensure the
6398         conditional compact branches are only used if the ISA them.
6399         * doc/invoke.texi: Document -mcompact-branches option.
6400
6401 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6402
6403         PR target/61578
6404         * lra-lives.c (process_bb_lives): Process move pseudos with the
6405         same value for copies and preferences
6406         * lra-constraints.c (match_reload): Create match reload pseudo
6407         with the same value from single dying input pseudo.
6408
6409 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6410
6411         PR target/67405
6412         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6413
6414 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6415
6416         * trans-mem.c: Add contributed-by.
6417         * trans-mem.h: Same.
6418
6419 2015-09-01  Richard Biener  <rguenther@suse.de>
6420
6421         * expr.c (expand_expr_real_1): For expanding TERed defs
6422         set the current location to that of the def if not UNKNOWN.
6423
6424 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6425
6426         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6427
6428 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6429
6430         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6431         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6432         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6433         Include rtl-iter.h.
6434         (noce_simple_bbs): New function.
6435         (noce_try_move): Bail if basic blocks are not simple.
6436         (noce_try_store_flag): Likewise.
6437         (noce_try_store_flag_constants): Likewise.
6438         (noce_try_addcc): Likewise.
6439         (noce_try_store_flag_mask): Likewise.
6440         (noce_try_cmove): Likewise.
6441         (noce_try_minmax): Likewise.
6442         (noce_try_abs): Likewise.
6443         (noce_try_sign_mask): Likewise.
6444         (noce_try_bitop): Likewise.
6445         (bbs_ok_for_cmove_arith): New function.
6446         (noce_emit_all_but_last): Likewise.
6447         (noce_emit_insn): Likewise.
6448         (noce_emit_bb): Likewise.
6449         (noce_try_cmove_arith): Handle non-simple basic blocks.
6450         (insn_valid_noce_process_p): New function.
6451         (contains_mem_rtx_p): Likewise.
6452         (bb_valid_for_noce_process_p): Likewise.
6453         (noce_process_if_block): Allow non-simple basic blocks
6454         where appropriate.
6455
6456 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6457
6458         * tree-ssa-dom.c (record_equivalences_from_phis,
6459         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6460         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6461
6462 2015-09-01  Nick Clifton  <nickc@redhat.com>
6463
6464         * config/msp430/msp430.opt (mcpu): Fix typo.
6465
6466 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6467
6468         * config/aarch64/aarch64.c (aarch64_set_current_function):
6469         Re-layout any vector parameters have non-simd layout.
6470         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6471         Delete.
6472         (aarch64_simd_expand_args): Delete call to the above.
6473
6474 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
6475
6476         * doc/invoke.texi (asan-stack): Add space before option.
6477
6478 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6479
6480         * tree.h (zerop): New function.
6481         * tree.c (zerop): Likewise.
6482         (element_precision): Handle expressions.
6483         * match.pd (define_predicates): Add zerop.
6484         (x <= +Inf): Fix comment.
6485         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6486         * fold-const.c (fold_binary_loc): ... here. Remove.
6487
6488 2015-08-31  Richard Biener  <rguenther@suse.de>
6489
6490         PR middle-end/67381
6491         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6492
6493 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6494
6495         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6496         (CEXPI): New operator list.
6497         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6498         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6499         Converted from ...
6500         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6501
6502 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6503
6504         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6505         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6506         parameter.
6507         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6508         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6509         (rewrite_into_loop_closed_ssa): ... here.
6510         (replace_uses_in_dominated_bbs): Remove function.
6511         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6512         rewrite_into_loop_closed_ssa_1.
6513
6514 2015-08-31  Michael Matz  <matz@suse.de>
6515
6516         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6517         enter entry and exit blocks for reverse post order.
6518
6519 2015-08-31  Richard Biener  <rguenther@suse.de>
6520
6521         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6522         (lto_location_cache::current_sysp): Likewise.
6523         (output_block::current_sysp): Likewise.
6524         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6525         (lto_location_cache::apply_location_cache): Properly record
6526         system header locations.
6527         (lto_location_cache::input_location): Input whether a file
6528         is a system header.
6529         * lto-streamer-out.c (lto_output_location): Stream whether a file
6530         is a system header.
6531
6532 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6533
6534         PR bootstrap/67363
6535         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6536
6537 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6538
6539         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6540         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6541         Improve function header comments.
6542
6543 2015-08-30  Michael Collison  <michael.collison@linaro.org>
6544
6545         PR other/67320
6546         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6547         standard names
6548
6549 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6550
6551         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6552         special_handling bitfield.
6553         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6554         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6555         that represents a general xxpermdi.
6556         (insn_is_swappable_p): Add handling for vec_concat of two
6557         doublewords, which maps to a specific xxpermdi.
6558         (adjust_xxpermdi): New function.
6559         (adjust_concat): Likewise.
6560         (handle_special_swappables): Call adjust_xxpermdi and
6561         adjust_concat.
6562         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6563
6564 2015-08-30  Rich Felker <dalias@libc.org>
6565
6566         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6567         case instead of sh[123456ble]-*-*.
6568
6569 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6570
6571         * ira.c (print_unform_and_important_classes,
6572         print_translated_classes): Remove reg_class_names static array.
6573         (print_unform_and_important_classes): Rename to ...
6574         (print_uniform_and_important_classes): ... this.
6575         (ira_debug_allocno_classes): Update accordingly.
6576
6577 2015-08-29  Tom de Vries  <tom@codesourcery.com>
6578
6579         PR tree-optimization/46193
6580         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6581         clause.
6582
6583 2015-08-28  Jeff Law  <law@redhat.com>
6584
6585         PR lto/66752
6586         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6587         unable to find X NE 0 in the tables, return X as the simplified
6588         condition.
6589         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6590         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6591         to VISISTED_BBS.
6592         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6593         after removing the control flow statement and unnecessary edges.
6594
6595 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
6596
6597         Revert:
6598         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6599
6600         PR tree-optimization/67283
6601         * tree-sra.c (type_consists_of_records_p): Rename to...
6602         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6603
6604         (completely_scalarize_record): Rename to...
6605         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6606         code to:
6607         (scalarize_elem): New.
6608
6609 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
6610
6611         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6612         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6613         (aarch64_symbol_type): Likewise.
6614         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6615         Likewise.
6616         (aarch64_expand_mov_immediate): Likewise.
6617         (aarch64_print_operand): Likewise.
6618         (aarch64_classify_tls_symbol): Likewise.
6619
6620 2015-08-28  Richard Biener  <rguenther@suse.de>
6621
6622         * cgraphunit.c (symbol_table::compile): Move early debug generation
6623         and finish...
6624         (symbol_table::finalize_compilation_unit): ... back here and
6625         add a !seen_error () guard.
6626
6627 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6628
6629         * toplev.c (process_options): Do not use flag_loop_block,
6630         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
6631         flag_loop_optimize_isl.
6632
6633 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6634
6635         * Makefile.in (OBJS): Remove graphite-blocking.o and
6636         graphite-interchange.o.
6637         * common.opt (floop-strip-mine, floop-interchange, floop-block):
6638         Alias of floop-nest-optimize.
6639         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6640         Document as alias of -floop-nest-optimize.
6641         * graphite-blocking.c: Remove.
6642         * graphite-interchange.c: Remove.
6643         * graphite-optimize-isl.c: Include dumpfile.h.
6644         (getScheduleForBand): Add dump for tiled loops.  Use
6645         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6646         * graphite-poly.c (scop_max_loop_depth): Remove.
6647         (print_scattering_function_1): Remove.
6648         (print_scattering_function): Remove.
6649         (print_scattering_functions): Remove.
6650         (debug_scattering_function): Remove.
6651         (debug_scattering_functions): Remove.
6652         (apply_poly_transforms): Remove use of flag_loop_block,
6653         flag_loop_strip_mine, and flag_loop_interchange.
6654         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6655         PBB_ORIGINAL.
6656         (print_pdr_access_layout): Remove.
6657         (print_pdr): Print ISL representation.
6658         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6659         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6660         (free_scop): Same.
6661         (openscop_print_pbb_domain): Remove.
6662         (print_pbb): Remove call to print_scattering_function.
6663         (openscop_print_scop_context): Remove.
6664         (print_scop_context): Do not print matrices anymore.
6665         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6666         SCOP_TRANSFORMED_SCHEDULE.
6667         (print_isl_set): Add printing of a new line.
6668         (print_isl_map): Same.
6669         (print_isl_aff): Same.
6670         (print_isl_constraint): Same.
6671         (loop_to_lst): Remove.
6672         (scop_to_lst): Remove.
6673         (lst_indent_to): Remove.
6674         (print_lst): Remove.
6675         (debug_lst): Remove.
6676         (dot_lst_1): Remove.
6677         (dot_lst): Remove.
6678         (reverse_loop_at_level): Remove.
6679         (reverse_loop_for_pbbs): Remove.
6680         * graphite-poly.h (pdr_dim_iter_domain): Remove.
6681         (pdr_nb_params): Remove.
6682         (pdr_alias_set_dim): Remove.
6683         (pdr_subscript_dim): Remove.
6684         (pdr_iterator_dim): Remove.
6685         (pdr_parameter_dim): Remove.
6686         (same_pdr_p): Remove.
6687         (struct poly_scattering): Remove.
6688         (struct poly_bb): Remove _original, _transformed, _saved.
6689         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6690         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6691         (PBB_NB_LOCAL_VARIABLES): Remove.
6692         (PBB_NB_SCATTERING_TRANSFORM): Remove.
6693         (schedule_to_scattering): Remove.
6694         (number_of_write_pdrs): Remove.
6695         (pbb_dim_iter_domain): Remove.
6696         (pbb_nb_params): Remove.
6697         (pbb_nb_scattering_orig): Remove.
6698         (pbb_nb_scattering_transform): Remove.
6699         (pbb_nb_dynamic_scattering_transform): Remove.
6700         (pbb_nb_local_vars): Remove.
6701         (pbb_iterator_dim): Remove.
6702         (pbb_parameter_dim): Remove.
6703         (psco_scattering_dim): Remove.
6704         (psct_scattering_dim): Remove.
6705         (psct_local_var_dim): Remove.
6706         (psco_iterator_dim): Remove.
6707         (psct_iterator_dim): Remove.
6708         (psco_parameter_dim): Remove.
6709         (psct_parameter_dim): Remove.
6710         (psct_dynamic_dim): Remove.
6711         (psct_static_dim): Remove.
6712         (psct_add_local_variable): Remove.
6713         (new_lst_loop): Remove.
6714         (new_lst_stmt): Remove.
6715         (free_lst): Remove.
6716         (copy_lst): Remove.
6717         (lst_add_loop_under_loop): Remove.
6718         (lst_depth): Remove.
6719         (lst_dewey_number): Remove.
6720         (lst_dewey_number_at_depth): Remove.
6721         (lst_pred): Remove.
6722         (lst_succ): Remove.
6723         (lst_find_pbb): Remove.
6724         (find_lst_loop): Remove.
6725         (lst_find_first_pbb): Remove.
6726         (lst_empty_p): Remove.
6727         (lst_find_last_pbb): Remove.
6728         (lst_contains_p): Remove.
6729         (lst_contains_pbb): Remove.
6730         (lst_create_nest): Remove.
6731         (lst_remove_from_sequence): Remove.
6732         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6733         (lst_niter_for_loop): Remove.
6734         (pbb_update_scattering): Remove.
6735         (lst_update_scattering_under): Remove.
6736         (lst_update_scattering): Remove.
6737         (lst_insert_in_sequence): Remove.
6738         (lst_replace): Remove.
6739         (lst_substitute_3): Remove.
6740         (lst_distribute_lst): Remove.
6741         (lst_remove_all_before_including_pbb): Remove.
6742         (lst_remove_all_before_excluding_pbb): Remove.
6743         (struct scop): Remove original_schedule, transformed_schedule, and
6744         saved_schedule.
6745         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6746         (SCOP_SAVED_SCHEDULE): Remove.
6747         (poly_scattering_new): Remove.
6748         (poly_scattering_free): Remove.
6749         (poly_scattering_copy): Remove.
6750         (store_scattering_pbb): Remove.
6751         (store_lst_schedule): Remove.
6752         (restore_lst_schedule): Remove.
6753         (store_scattering): Remove.
6754         (restore_scattering_pbb): Remove.
6755         (restore_scattering): Remove.
6756         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6757         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
6758         compute the scattering polyhedron dimension from the dimension of
6759         pbb->domain.
6760         (build_scop_scattering): Update call to
6761         build_pbb_scattering_polyhedrons.
6762         (build_poly_scop): Remove call to scop_to_lst.
6763         * graphite.c (graphite_transform_loops): Add call to print_scop.
6764         (gate_graphite_transforms): Remove use of flag_loop_block,
6765         flag_loop_interchange, and flag_loop_strip_mine.
6766
6767 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6768
6769         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6770         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6771         -floop-nest-optimize.
6772         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6773         (generate_luj_sepclass): Remove.
6774         (generate_luj_options): Remove.
6775         (set_options): Remove opt_luj.
6776         (scop_to_isl_ast): Remove opt_luj.
6777         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6778         flag_loop_unroll_jam.
6779         (getPrevectorMap_full): Remove.
6780         (getScheduleForBandList): Remove map_sepcl.
6781         (getScheduleMap): Same.
6782         (apply_schedule_map_to_scop): Remove sepcl.
6783         (optimize_isl): Same.
6784         * graphite-poly.c (apply_poly_transforms): Remove check for
6785         flag_loop_unroll_jam.
6786         (new_poly_bb): Remove map_sepclass.
6787         * graphite-poly.h (struct poly_bb): Same.
6788         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6789         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6790         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6791         * toplev.c (process_options): Remove flag_loop_unroll_jam.
6792
6793 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
6794
6795         PR target/67317
6796         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6797         (addqi3_cc): Ditto.
6798         (UNSPEC_ADD_CARRY): Remove.
6799         (addqi3_cconly_overflow): New expander.
6800         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6801         Adjust for changed add<mode>3_carry.
6802         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6803         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6804         (<plusminus_insn><mode>3_carry): Remove expander.
6805         (*<plusminus_insn><mode>3_carry): Split insn pattern to
6806         add<mode>3_carry and sub<mode>3_carry.
6807         (plusminus_carry_mnemonic): Remove code attribute.
6808         (add<mode>3_carry): Canonicalize insn pattern.
6809         (*addsi3_carry_zext): Ditto.
6810         (sub<mode>3_carry): Ditto.
6811         (*subsi3_carry_zext): Ditto.
6812         (adcx<mode>3): Remove insn pattern.
6813         (addcarry<mode>): New insn pattern.
6814         (subborrow<mode>): Ditto.
6815         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6816         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
6817         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
6818         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
6819         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
6820         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
6821         Rewrite expander to not clobber carry flag chains.
6822
6823 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
6824
6825         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
6826         instead of a rotate.
6827
6828 2015-08-27  Marek Polacek  <polacek@redhat.com>
6829
6830         PR middle-end/67005
6831         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
6832         an entry into an irreducible region.
6833
6834 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6835
6836         * configure: Regenerate.
6837
6838 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6839
6840         PR tree-optimization/67283
6841         * tree-sra.c (type_consists_of_records_p): Rename to...
6842         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6843
6844         (completely_scalarize_record): Rename to...
6845         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
6846         (scalarize_elem): New.
6847
6848 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6849
6850         * tree-sra.c (completely_scalarize_var): Rename to...
6851         (create_total_scalarization_access): ... Here. Drop call to
6852         completely_scalarize_record.
6853
6854         (analyze_all_variable_accesses): Replace completely_scalarize_var
6855         with create_total_scalarization_access and completely_scalarize_record.
6856
6857 2015-08-27  Alan Modra  <amodra@gmail.com>
6858
6859         PR target/67356
6860         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
6861         for operand 1.
6862
6863 2015-08-27  Richard Biener  <rguenther@suse.de>
6864
6865         * passes.c (rest_of_decl_compilation): Guard early_global_decl
6866         call with !seen_error ().
6867         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
6868         early debug generation and finish...
6869         (symbol_table::compile): ... here to put it after a !seen_error ()
6870         guard.
6871
6872 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6873
6874         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
6875         Solaris 12+.
6876
6877 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6878             Andre Vieira  <andre.simoesdiasvieira@arm.com>
6879
6880         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
6881         (*cb<optab><mode>1): Likewise.
6882         (*tb<optab><mode>1): Likewise.
6883         (*cb<optab><mode>1): Likewise.
6884         * config/aarch64/iterators.md (inv_cb): New code attribute.
6885         (inv_tb): Likewise.
6886         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
6887         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
6888
6889 2015-08-27  Richard Biener  <rguenther@suse.de>
6890
6891         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
6892
6893 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6894
6895         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
6896         trap to fix ICE.
6897
6898 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6899
6900         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
6901         Add declaration.
6902
6903         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
6904         comment.
6905         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
6906         floating point in VSX registers.
6907         (rs6000_output_move_128bit): Always print out the set insn if we
6908         can't generate an appropriate 128-bit move.
6909         (rs6000_generate_compare): Add support for IEEE 128-bit floating
6910         point in VSX registers comparisons.
6911         (rs6000_expand_float128_convert): Likewise.
6912
6913         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
6914         predicate for only GPR hard registers.
6915
6916         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
6917         modes to iterators. Add new iterators for moving 128-bit values in
6918         scalar FPR registers and VSX registers.
6919         (FMOVE128): Likewise.
6920         (FMOVE128_FPR): Likewise.
6921         (FMOVE128_GPR): Likewise.
6922         (FMOVE128_VSX): Likewise.
6923         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
6924         in VSX registers.
6925         (IFKF): Likewise.
6926         (IBM128): Likewise.
6927         (TFIFKF): Likewise.
6928         (RELOAD): Add IEEE 128-bit floating point modes.
6929         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
6930         floating point in VSX registers modes.
6931         (signbit<mode>2, IBM128 iterator): Likewise.
6932         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
6933         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6934         (negtf2): Likewise.
6935         (neg<mode>2, TFIFKF iterator): Likewise.
6936         (negtf2_internal): Likewise.
6937         (abstf2): Likewise.
6938         (abs<mode>2, TFIFKF iterator): Likewise.
6939         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
6940         VSX insn support for negate, absolute value, and negative absolute
6941         value.
6942         (ieee_128bit_vsx_neg<mode>2): Likewise.
6943         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6944         (ieee_128bit_vsx_abs<mode>2): Likewise.
6945         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6946         (ieee_128bit_vsx_nabs<mode>2): Likewise.
6947         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6948         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
6949         floating point in VSX registers.
6950         (unpack<mode>_dm): Likewise.
6951         (unpack<mode>_nodm): Likewise.
6952         (pack<mode>): Likewise.
6953         (unpackv1ti): Likewise.
6954         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
6955         (packv1ti): Likewise.
6956         (pack<mode>, FMOVE128_VSX iterator): Likewise.
6957         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
6958         registers.
6959         (extenddftf2_internal): Likewise.
6960         (trunctfdf2): Likewise.
6961         (trunctfdf2_internal2): Likewise.
6962         (fix_trunc_helper): Likewise.
6963         (fix_trunctfdi2"): Likewise.
6964         (floatditf2): Likewise.
6965         (floatuns<mode>tf2): Likewise.
6966         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6967         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6968         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6969         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6970         (float<SDI:mode><IFKF:mode>2): Likewise.
6971         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6972
6973 2015-08-26  Renlin Li  <renlin.li@arm.com>
6974
6975         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
6976
6977 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6978             Jiong Wang  <jiong.wang@arm.com>
6979
6980         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
6981         (tlsie_tiny_<mode>): New define_insn.
6982         (tlsie_tiny_sidi): Likewise.
6983         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
6984         SYMBOL_TINY_TLSIE.
6985         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
6986         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6987         SYMBOL_TINY_TLSIE.
6988         (aarch64_expand_mov_immediate): Likewise.
6989         (aarch64_print_operand): Likewise.
6990         (arch64_classify_tls_symbol): Likewise.
6991
6992 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
6993
6994         * config/arm/arm-arches.def: Replace single value flags with
6995         an initializer built from ARM_FSET_MAKE_CPU1.
6996         * config/arm/arm-cores.def: Likewise.
6997         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
6998         derivation from the ARM_CORE macro definition, use the given value
6999         instead.
7000         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7001         ARM_ARCH macro definition, use the given value instead.
7002
7003 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7004
7005         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7006         feature set.
7007         (struct builtin_description): Replace field mask with field
7008         features.
7009         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7010         (IWMMXT2_BUILTIN): Likewise.
7011         (IWMMXT2_BUILTIN2): Likewise.
7012         (FP_BUILTIN): Likewise.
7013         (CRC32_BUILTIN): Likewise.
7014         (CRYPTO_BUILTIN): Likewise.
7015         (iwmmx_mbuiltin): Likewise.
7016         (iwmmx2_mbuiltin): Likewise.
7017         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7018         struct builtin_description.
7019
7020 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7021
7022         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7023         (struct builtin_description): Change type of mask to unsigned
7024         long.
7025         * config/arm/arm-protos.h (insn_flags): Declare as type
7026         arm_feature_set.
7027         (tune_flags): Likewise.
7028         * config/arm/arm.c (feature_count): New.
7029         (insn_flags): Define as type arm_feature_set.
7030         (tune_flags): Likewise.
7031         (struct processors): Define field flags as type arm_feature_set.
7032         (all_cores): Update for change to struct processors.
7033         (all_architectures): Likewise.
7034         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7035         macros.
7036         (arm_option_override_internal): Likewise.
7037         (arm_option_override): Likewise.
7038
7039 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7040             Jiong Wang  <jiong.wang@arm.com>
7041
7042         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7043         tls size for tiny, small, large memory model.
7044         (aarch64_load_symref_appropriately): Support new symbol types.
7045         (aarch64_expand_mov_immediate): Likewise.
7046         (aarch64_print_operand): Likewise.
7047         (aarch64_classify_tls_symbol): Likewise.
7048         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7049         (aarch64_symbol_type): Likewise.
7050         * config/aarch64/aarch64.md (tlsle): Deleted.
7051         (tlsle12_<mode>): New define_insn.
7052         (tlsle24_<mode>): Likewise.
7053         (tlsle32_<mode>): Likewise.
7054         (tlsle48_<mode>): Likewise.
7055         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7056         "aarch64_tlsle32".
7057
7058 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7059
7060         * config/arm/arm-protos.h (FL_NONE): New.
7061         (FL_ANY): New.
7062         (arm_feature_set): New.
7063         (ARM_FSET_MAKE): New.
7064         (ARM_FSET_MAKE_CPU1): New.
7065         (ARM_FSET_MAKE_CPU2): New.
7066         (ARM_FSET_CPU1): New.
7067         (ARM_FSET_CPU2): New.
7068         (ARM_FSET_EMPTY): New.
7069         (ARM_FSET_ANY): New.
7070         (ARM_FSET_HAS_CPU1): New.
7071         (ARM_FSET_HAS_CPU2): New.
7072         (ARM_FSET_HAS_CPU): New.
7073         (ARM_FSET_ADD_CPU1): New.
7074         (ARM_FSET_ADD_CPU2): New.
7075         (ARM_FSET_DEL_CPU1): New.
7076         (ARM_FSET_DEL_CPU2): New.
7077         (ARM_FSET_UNION): New.
7078         (ARM_FSET_INTER): New.
7079         (ARM_FSET_XOR): New.
7080         (ARM_FSET_EXCLUDE): New.
7081         (AFM_FSET_IS_EMPTY): New.
7082         (ARM_FSET_CPU_SUBSET): New.
7083
7084 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7085
7086         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7087         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7088         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7089         Likewise.
7090         (aarch64_expand_mov_immediate): Likewise.
7091         (aarch64_print_operand): Likewise.
7092         (aarch64_classify_symbol): Likewise.
7093
7094 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7095
7096         * config/aarch64/aarch64.opt (mtls-size): New entry.
7097         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7098         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7099         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7100
7101 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7102
7103         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7104         ARM_CORE entry.  Fix some white-space.
7105         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7106         ARM_CORE definition.
7107
7108 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7109
7110         * fold-const.c (fold_binary_loc) : Move Optimize
7111         root(x)*root(y) as root(x*y) to match.pd.
7112         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7113         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7114         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7115         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7116         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7117         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7118         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7119         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7120         (rdiv @0 (exps:s @1)) : New simplifier.
7121
7122 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7123
7124         * gcc.c (driver::finalize): Only assign to extra_specs if
7125         [EXTRA_SPECS].
7126
7127 2015-08-25  Marek Polacek  <polacek@redhat.com>
7128
7129         PR middle-end/67330
7130         * varasm.c (declare_weak): Return after giving an error.
7131
7132 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7133
7134         * gcc-main.c (main): Add params to driver ctor.
7135         * gcc.c (class env_manager): New.
7136         (env): New global.
7137         (env_manager::init): New.
7138         (env_manager::get): New.
7139         (env_manager::xput): New.
7140         (env_manager::restore): New.
7141         Poison getenv and putenv.
7142         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7143         (target_system_root): Update initialization to use
7144         DEFAULT_TARGET_SYSTEM_ROOT.
7145         (struct spec_list): Add field "default_ptr".
7146         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7147         (init_spec): Likewise.
7148         (set_spec): Clear field "default_ptr".
7149         (read_specs): Free "spec" and "buffer".
7150         (xputenv): Reimplement in terms of env_manager.
7151         (process_command): Replace ::getenv calls with calls to the
7152         env_manager singleton.
7153         (process_brace_body): Free string in three places.
7154         (driver::driver): New.
7155         (driver::~driver): New.
7156         (used_arg): Convert from a function to...
7157         (class used_arg_t): ...this class, and...
7158         (used_arg): ...this new global instance.
7159         (used_arg_t::finalize): New function.
7160         (getenv_spec_function): Add "const" to local "value".  Replace
7161         ::getenv call with call to the env_manager singleton.
7162         (path_prefix_reset): New function.
7163         (driver::finalize): New function.
7164         * gcc.h (driver::driver): New.
7165         (driver::~driver): New.
7166         (driver::finalize): New.
7167
7168 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7169
7170         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7171         target doesn't have one.
7172
7173 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7174
7175         PR target/67346
7176         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7177
7178 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7179
7180         PR target/67344
7181         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7182         a define_insn, remove second alternative.
7183
7184 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7185             Joseph Myers  <joseph@codesourcery.com>
7186
7187         * gcc.c (struct switchstr): Expand comment.
7188
7189 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7190
7191         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7192         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7193
7194 2015-08-25  Richard Biener  <rguenther@suse.de>
7195
7196         PR middle-end/67306
7197         * genmatch.c (expr::gen_transform): Verify the result of
7198         builtin_decl_implicit.
7199         (dt_simplify::gen_1): Likewise.
7200
7201 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7202
7203         * config/arm/constraints.md: Also list Cs and US ARM-specific
7204         constraints as used.
7205
7206 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7207
7208         PR target/66609
7209         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7210         UNSPEC_PCREL.
7211         (nonpic_symbol_mentioned_p): Likewise.
7212         (sh_delegitimize_address): Likewise.
7213         (sh_function_ok_for_sibcall): Take into account weak symbols.
7214         (sh_expand_sym_label2reg): New.
7215         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7216         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7217         (call_pcrel): Use sh_expand_sym_label2reg.
7218         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7219         (symPCREL_label2reg) New expand.
7220
7221 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7222
7223         * graphite-poly.c: Change type of region from void* to sese.
7224         * graphite-poly.h (struct scop): Changing the type of scop::region
7225         from void* to sese. Change accessor macro accordingly.
7226         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7227
7228 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7229
7230         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7231         Constrain only on INTEGER_TYPE.
7232
7233 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7234
7235         PR target/67211
7236         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7237         -mefficient-unaligned-vsx on ISA 2.7.
7238
7239         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7240         option to a masked option.
7241
7242         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7243         logic for -mefficient-unaligned-vsx so that it is set via an arch
7244         ISA option, instead of being set if -mtune=power8 is set. Move
7245         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7246         near other default option handling.
7247
7248 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7249
7250         * genflags.c (gen_macro): Delete.
7251         (gen_proto): Don't create GEN.*CALL.* macros.
7252         * gensupport.h (get_file_location): Declare.
7253         * gensupport.c (rtx_locs): New variable.
7254         (read_md_rtx): Record rtx locations.
7255         (get_file_location): New function.
7256         * target-insns.def (call, call_pop, call_value, call_value_pop)
7257         (sibcall, sibcall_value): New patterns.
7258         * gentarget-def.c (parse_argument): New function.
7259         (def_target_insn): Use it.  Handle optional operands.  Raise an
7260         error if an .md pattern has the wrong number of operands for the
7261         pattern name.  Remove the names of unused operands from the prototype.
7262         * builtins.c (expand_builtin_apply): Use targetm functions
7263         instead of HAVE_call_value and GEN_CALL_VALUE.
7264         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7265         and sibcall_value_pop.
7266         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7267         of GEN_CALL.
7268         * config/alpha/alpha.md (untyped_call): Likewise.
7269         * config/iq2000/iq2000.md (untyped_call): Likewise.
7270         * config/m68k/m68k.md (untyped_call): Likewise.
7271         * config/mips/mips.md (untyped_call): Likewise.
7272         * config/pa/pa.md (untyped_call): Likewise.
7273         * config/rs6000/rs6000.md (untyped_call): Likewise.
7274         * config/sparc/sparc.md (untyped_call): Likewise.
7275         * config/tilegx/tilegx.md (untyped_call): Likewise.
7276         * config/tilepro/tilepro.md (untyped_call): Likewise.
7277         * config/visium/visium.md (untyped_call): Likewise.
7278         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7279         gen_call_value instead of GEN_CALL_VALUE.
7280         * config/arm/arm.md (untyped_call): Likewise.
7281         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7282         GEN_CALL.
7283
7284 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7285
7286         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7287         (have_cbranchcc4): New variable.
7288         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7289         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7290         (if_convert): Initialize have_cbranchcc4.
7291
7292 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7293
7294         * builtins.c (expand_cmpstrn): Rename to...
7295         (expand_cmpstrn_or_cmpmem): ...this.
7296         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7297         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7298         Remove mode argument.
7299         (expand_builtin): Update accordingly.
7300
7301 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7302
7303         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7304         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7305         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7306         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7307         Add predicates for operands 0 and 3.
7308         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7309         operand.
7310         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7311         immediate_operand to nonmemory_operand.
7312
7313 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7314
7315         * df-scan.c (df_insn_info_init_fields): New function, split out
7316         from...
7317         (df_insn_create_insn_record): ...here.
7318         (df_insn_info_free_fields): New function, split out from...
7319         (df_insn_info_delete): ...here.
7320         (df_insn_rescan): Use the new functions instead of freeing and
7321         reallocating the df_insn_info.
7322
7323 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7324
7325         * doc/install.texi (Binaries): Remove links no longer valid.
7326
7327 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7328
7329         * config/nvptx/mkoffload.c (process): Replace
7330         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7331
7332 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7333
7334         PR target/67329
7335         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7336
7337 2015-08-24  Renlin Li  <renlin.li@arm.com>
7338
7339         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7340         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7341         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7342         * config/arm/constraints.md ("j"): Add check for high code.
7343
7344 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7345
7346         PR tree-optimization/65468
7347         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7348         chunk_size is one.
7349
7350 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7351
7352         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7353         change to nvptx_type_from_mode call. Use arg_promotion for both
7354         split and non-split args.
7355
7356 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7357
7358         * target-insns.def (movstr): New pattern.
7359         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7360         (expand_movstr): Use targetm rather than HAVE_movstr/
7361         CODE_FOR_movstr.
7362
7363 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7364
7365         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7366         cast syntax.
7367
7368 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7369
7370         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7371         AARCH64_EXTRA_TUNING_OPTION.
7372         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7373         New enum.
7374         (aarch64_extra_tuning_flags): Base the shifted value on the index
7375         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7376         * config/aarch64/aarch64.c: Remove the last argument to
7377         AARCH64_EXTRA_TUNING_OPTION.
7378
7379 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7380
7381         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7382         decls.
7383         (nvptx_declare_function_name): Insert formatting tabs for
7384         consistency.
7385
7386 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7387
7388         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7389         parm_decl, rather than generating a dummy default def in cfun.
7390         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7391         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7392         (move_stmt_op): Handle PARM_DECl.
7393         (gather_ssa_name_hash_map_from): New function.
7394         (move_sese_region_to_fn): Add default defs for function params, and add
7395         them to vars_map.  Release copied ssa names.
7396         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7397
7398 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7399
7400         * doc/sourcebuild.texi: Rename vect_no_int_max with
7401         vect_no_int_min_max.  Update description.
7402
7403 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7404
7405          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7406         * config/aarch64/aarch64-protos.h
7407         (aarch64_fusion_pairs_index): New enum.
7408         (aarch64_fusion_pairs): Base the shifted value on the index instead
7409         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7410         of the argument to AARCH64_FUSION_PAIR.
7411         * config/aarch64/aarch64.c: Remove the last argument to
7412         AARCH64_FUSION_PAIR.
7413
7414 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7415
7416         * dominance.c (new_zero_array): Define.
7417         (dom_info): Redefine as class with proper encapsulation.
7418         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7419         Add new members.
7420         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7421         allocations/deallocations.  Pass function as parameter (instead of
7422         using cfun).
7423         (dom_info::get_idom): Define accessor method.
7424         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7425         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7426         (calculate_dominance_info): Adjust to use dom_info class.
7427         (verify_dominators): Likewise.
7428
7429 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7430
7431         * print-rtl.c (print_rtx): Check the correct range for
7432         flag_dump_unnumbered_links to behave as documented.
7433
7434         PR rtl-optimization/67227
7435         PR rtl-optimization/64164
7436         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7437         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7438         identical gimple_reg exprs.
7439
7440 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7441
7442         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7443         expansion.
7444         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7445         crtl->stack_alignment_needed to determine alignment.
7446         (nvptx_get_drap_rtx): New.
7447         (TARGET_GET_DRAP_RTX): Override.
7448         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7449
7450 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7451
7452         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7453
7454 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7455
7456         * configure.ac: Remove uwin* cases.
7457         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7458         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7459         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7460         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7461         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7462         i[34567]86-*-uwin*, powerpc-*-beos*.
7463
7464 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7465
7466         * gencodes.c (gencodes): Print the comma for the preceding
7467         enum value rather than the current one.  Use aliased enum values
7468         rather than #defines for compiled-out patterns.
7469         (main): Update accordingly.  Replace LAST_INSN_CODE with
7470         NUM_INSN_CODES.
7471         * lra.c (insn_code_data): Update accordingly.
7472         (finish_insn_code_data_once, get_static_insn_data): Likewise.
7473         * recog.h (target_recog): Likewise.
7474         (preprocess_insn_constraints): Change parameter to unsigned int.
7475         * recog.c (preprocess_insn_constraints): Likewise.
7476         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7477         * tree-vect-stmts.c (vectorizable_operation): Simplify.
7478
7479 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7480
7481         PR rtl-optimization/61657
7482         * loop-iv.c (iv_number_of_iterations): Declare up and down as
7483         unsigned.  Remove superflous uint64_t cast.
7484
7485 2014-08-21  Felix Yang  <felix.yang@huawei.com>
7486             Jiji Jiang  <jiangjiji@huawei.com>
7487
7488         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7489         argument and get builtin function code directly from CALL.
7490         (gimple_stringop_fixed_value): Modified accordingly.
7491         (gimple_stringops_transform, gimple_stringops_values_to_profile):
7492         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7493
7494 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7495
7496         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7497
7498 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7499
7500         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7501         to match.pd.
7502         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7503         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7504         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7505         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7506         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7507         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7508         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7509         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7510         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7511         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7512
7513         * match.pd (SIN ) : New Operator.
7514         (TAN) : New Operator.
7515         (mult (SQRT@1 @0) @1) : New simplifier.
7516         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7517         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7518         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7519         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7520         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7521         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7522         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7523         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7524         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7525         (rdiv @0 (POW:s @1 @2)) : New simplifier.
7526
7527 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
7528
7529         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7530         loop if EXPR is simplified to const value.
7531
7532 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
7533
7534         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7535         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7536
7537 2015-08-21  Richard Biener  <rguenther@suse.de>
7538
7539         PR middle-end/67285
7540         * gimple-fold.c (replace_stmt_with_simplification): Assert
7541         seq is empty when replacing a call with itself but different
7542         arguments.
7543         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7544         a call require that it is const.
7545
7546 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7547
7548         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7549         * builtins.c (get_object_alignment_2): Adjust.
7550         * varasm.c (align_variable): Likewise.
7551         (get_variable_align): Likewise.
7552         (build_constant_desc): Likewise.
7553         (force_const_mem): Likewise.
7554         * doc/tm.texi.in: Likewise.
7555         * doc/tm.texi: Regenerate.
7556
7557 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7558
7559         * genconfig.c (main): Always define HAVE_cc0.
7560         * recog.c (rest_of_handle_peephole2): Adjust.
7561
7562 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7563
7564         * reorg.c (relax_delay_slots): Don't use #if to check value of
7565         HAVE_cc0.
7566
7567 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7568
7569         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7570         * targhooks.c (default_have_conditional_execution): Adjust.
7571
7572 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7573
7574         * rtl.h (rtvec_all_equal_p): Declare.
7575         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7576         * rtl.c (rtvec_all_equal_p): New function.
7577         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7578         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7579         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7580         * config/arm/arm.c (neon_vdup_constant): Likewise.
7581         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7582         * config/tilegx/constraints.md (W, Y): Likewise.
7583         * config/tilepro/constraints.md (W, Y): Likewise.
7584         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7585         (classify_immediate): Use unwrap_const_vec_duplicate.
7586         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7587         (reg_or_v2s8bit_operand): Likewise.
7588         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7589         (reg_or_v4s8bit_operand): Likewise.
7590
7591 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7592
7593         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7594         (vec_shasigma_be): New #define.
7595         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7596         (VPMSUMH): Likewise.
7597         (VPMSUMW): Likewise.
7598         (VPMSUMD): Likewise.
7599         (VPMSUM): New BU_P8V_OVERLOAD_2.
7600         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7601         entries for VEC_MADD and VEC_VPMSUM.
7602
7603 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
7604
7605         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7606         Multiply argument avr_n_flash by 64 to match unit of "KiB".
7607         (avr_pgm_check_var_decl): Same.
7608
7609 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
7610
7611         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7612         initialization of HFmode scalar type (float16_t) to...
7613         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7614         code.
7615
7616         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7617
7618         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7619         having an -mfp16-format.
7620
7621 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7622
7623         * config/i386/predicates.md (vector_all_ones_operand): Use
7624         CONSTM1_RTX to simplify definition.
7625
7626 2015-08-20  Richard Biener  <rguenther@suse.de>
7627
7628         * toplev.c (compile_file): Remove loop calling late_global_decl
7629         on all symbols.
7630         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7631         on decls we assembled.
7632
7633 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
7634
7635         * common/config/aarch64/aarch64-common.c
7636         (AARCH64_CPU_NAME_LENGTH): Delete.
7637         (aarch64_option_extension): New.
7638         (all_extensions): Likewise.
7639         (processor_name_to_arch): Likewise.
7640         (arch_to_arch_name): Likewise.
7641         (all_cores): New.
7642         (all_architectures): Likewise.
7643         (aarch64_get_extension_string_for_isa_flags): Likewise.
7644         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7645         architecture names.
7646         * config/aarch64/aarch64-protos.h
7647         (aarch64_get_extension_string_for_isa_flags): New.
7648         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7649         (aarch64_option_print): Get the string to print from
7650         aarch64_get_extension_string_for_isa_flags.
7651         (aarch64_declare_function_name): Likewise.
7652         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7653         (MCPU_TO_MARCH_SPEC): This.
7654         (ASM_CPU_SPEC): Use it.
7655         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7656         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7657         (EXTRA_SPEC_FUNCTIONS): Use it.
7658
7659 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
7660
7661         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7662         expansion when !ISA_HAS_LWL_LWR.
7663         (mips_block_move_straight): Update the size of elements copied to
7664         account for alignment when !ISA_HAS_LWL_LWR.
7665         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7666
7667 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7668
7669         * expr.c (expand_expr_real_2): Check gimple statement during
7670         LSHIFT_EXPR expand.
7671
7672 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
7673
7674         * common.opt (fstack-protector): Initialize to -1.
7675         (fstack-protector-all): Likewise.
7676         (fstack-protector-strong): Likewise.
7677         (fstack-protector-explicit): Likewise.
7678         * configure.ac: Add --enable-default-ssp.
7679         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
7680         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7681         -1.
7682         * doc/install.texi: Document --enable-default-ssp.
7683         * config.in: Regenerated.
7684         * configure: Likewise.
7685
7686 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
7687
7688         PR rtl-optimization/64164
7689         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7690         (parm_in_stack_slot_p): ... this.  Disregard mode, what
7691         matters is whether the parm will live in a pseudo or a stack
7692         slot.
7693         (expand_one_ssa_partition): Deal with params without a default
7694         def.  Disregard mode.
7695         * cfgexpand.h: Renamed function declaration.
7696         * tree-ssa-coalesce.c: Adjust.
7697         * function.c (split_complex_args): Allocate stack slot for
7698         unassigned parms before splitting.
7699         (parm_in_unassigned_mem_p): New.  Use it instead of
7700         parm_maybe_byref_p throughout this file.
7701         (assign_parm_setup_block): Use it.  Accept pseudos in the
7702         expand-assigned rtl.
7703         (assign_parm_setup_reg): Drop BLKmode requirement.
7704         (assign_parm_setup_stack): Allocate and fill in the address of
7705         unassigned MEM parms.
7706
7707 2015-08-19  David Sherwood  <david.sherwood@arm.com>
7708
7709         * genmodes.c (emit_mode_unit_size_inline): New function.
7710         (emit_mode_unit_precision_inline): New function.
7711         (emit_insn_modes_h): Emit new #define.  Emit new functions.
7712         (emit_mode_unit_size): New function.
7713         (emit_mode_unit_precision): New function.
7714         (emit_mode_adjustments): Add mode_unit_size adjustments.
7715         (emit_insn_modes_c): Emit new arrays.
7716         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7717         use new inline methods.
7718
7719 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7720
7721         * config/aarch64/aarch64.c (bit_count): Delete prototype
7722         and definition.
7723         (aarch64_print_operand): Use popcount_hwi instead of the above.
7724
7725 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7726
7727         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7728         comment.
7729
7730 2015-08-19  Marek Polacek  <polacek@redhat.com>
7731
7732         PR middle-end/67133
7733         * gimple-ssa-isolate-paths.c
7734         (insert_trap_and_remove_trailing_statements): Rename to ...
7735         (insert_trap): ... this.  Don't remove trailing statements; split
7736         block instead.
7737         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7738
7739 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
7740
7741         PR other/67042
7742         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7743         conditionalize the whole on __GNUC__.  Add fallback code
7744         depending neither on undefined nor implementation-defined behaviour.
7745
7746 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7747
7748         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7749         whitespaces with tab.
7750
7751 2015-08-19  Florian Weimer  <fweimer@redhat.com>
7752
7753         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7754         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7755         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7756         Move Name_Ids instantiation to the Prj.Proc package, to avoid
7757         trampolines.
7758
7759 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7760
7761         * config/arm/arm.c (bounds_check): Use %wd print format
7762         for HOST_WIDE_INT arguments.
7763
7764 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7765
7766         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7767         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7768         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7769         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7770         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7771         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7772         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7773         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7774         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7775         typedefs.
7776
7777 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
7778
7779         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7780         function.c, graphite-scop-detection.c, haifa-sched.c,
7781         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7782         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7783         varasm.c: Remove typedefs of structs.
7784
7785 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7786
7787         * config/rs6000/altivec.h (vec_adde): New define.
7788         (vec_addec): Likewise.
7789         (vec_double): Likewise.
7790         (vec_bperm): Likewise.
7791         (vec_gb): Likewise.
7792         * config/rs6000/rs6000-builtin.def (ADDE): New
7793         BU_ALTIVEC_OVERLOAD_3.
7794         (ADDEC): Likewise.
7795         (DOUBLE): New BU_VSX_OVERLOAD_1.
7796         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7797         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7798         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7799         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7800         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7801         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7802         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7803         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7804         and P8V_BUILTIN_VEC_VBPERMQ.
7805
7806 2015-08-18  Jason Merrill  <jason@redhat.com>
7807
7808         * print-tree.c (print_node): Handle TREE_BINFO.
7809
7810 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7811
7812         PR middle-end/36757
7813         * builtins.c (expand_builtin_signbit): Add asserts to make sure
7814         we can expand BUILT_IN_SIGNBIT inline.
7815         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7816         * doc/extend.texi: Document the type-generic __builtin_signbit.
7817
7818 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
7819
7820         PR rtl-optimization/67218
7821         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
7822         (simplify_unary_operation_1): Use it.
7823
7824 2015-08-18  Marek Polacek  <polacek@redhat.com>
7825
7826         PR middle-end/67222
7827         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
7828         if the call isn't valid.
7829         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
7830         gimple_call_builtin_p.
7831         (call_may_clobber_ref_p_1): Likewise.
7832         (stmt_kills_ref_p): Likewise.
7833
7834 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7835
7836         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
7837         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
7838         (mips_hard_regno_scratch_ok): Likewise.
7839         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7840         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
7841
7842 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
7843
7844         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
7845         (determine_value_range): Call refine_value_range_using_guard for
7846         each loop initial condition to improve value range.
7847
7848 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
7849
7850         * config/i386/i386.c: Remove include of fibheap.h.
7851
7852 2015-08-17  Richard Biener  <rguenther@suse.de>
7853
7854         PR tree-optimization/67221
7855         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
7856         (sccvn_dom_walker::before_dom_children): Mark backedges of
7857         non-executable blocks as not executable.
7858
7859 2015-08-17  David Sherwood  <david.sherwood@arm.com>
7860
7861         * config/arm/arm.c (neon_element_bits): Replace call to
7862         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
7863         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
7864         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
7865         (neon_vdup_lane<mode>): Likewise.
7866         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
7867         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
7868         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
7869         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
7870         * config/spu/spu.c (arith_immediate_p): Likewise.
7871         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7872         * expr.c (expand_expr_real_2): Likewise.
7873         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
7874         * simplify-rtx.c (simplify_immed_subreg): Likewise.
7875         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
7876         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
7877         New variable.
7878         * fold-const.c (fold_binary_loc): Replace call to
7879         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
7880         GET_MODE_UNIT_PRECISION (m).
7881
7882 2015-08-17  Mike Stump  <mikestump@comcast.net>
7883
7884         * config/arm/arm.c (arm_block_move_unaligned_straight):
7885         Emit normal move instead of unaligned load when source or destination
7886         are appropriately aligned.
7887
7888 2015-08-17  Richard Biener  <rguenther@suse.de>
7889             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7890
7891         PR middle-end/16107
7892         * match.pd (div (coss (op @0) : New simplifier.
7893
7894 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
7895
7896         PR rtl-optimization/64164
7897         PR bootstrap/66978
7898         PR middle-end/66983
7899         PR rtl-optimization/67000
7900         PR middle-end/67034
7901         PR middle-end/67035
7902         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7903         * tree-ssa-copyrename.c: Removed.
7904         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7905         -ftree-coalesce-vars.
7906         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7907         * common.opt (ftree-copyrename): Ignore.
7908         (ftree-coalesce-inlined-vars): Likewise.
7909         * doc/invoke.texi: Remove the ignored options above.
7910         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7911         * tree-ssa-coalesce.h: ... here.
7912         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7913         headers required by it.
7914         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7915         across variables when flag_tree_coalesce_vars.  Check register
7916         use and promoted modes to allow coalescing.  Do not coalesce
7917         maybe-byref parms with SSA_NAMEs of other variables, or
7918         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
7919         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7920         with its member functions to tree-ssa-coalesce.c.
7921         (var_map_base_init): Likewise.  Renamed to
7922         compute_samebase_partition_bases.
7923         (partition_view_normal): Drop want_bases parameter.
7924         (partition_view_bitmap): Likewise.
7925         * tree-ssa-live.h: Adjust declarations.
7926         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
7927         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7928         default defs at the entry point.
7929         (dump_part_var_map): New.
7930         (compute_optimized_partition_bases): New, called by...
7931         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7932         of compute_samebase_partition_bases.  Adjust.
7933         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7934         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
7935         (ssa_default_def_partition): New.
7936         (get_rtl_for_parm_ssa_default_def): New.
7937         (align_local_variable, add_stack_var): Support anonymous SSA
7938         names.
7939         (defer_stack_allocation): Likewise.  Declare earlier.
7940         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7941         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7942         Do no record deferred-allocation marker in
7943         SA.partition_to_pseudo.
7944         (expand_stack_vars): Adjust check for the marker in it.
7945         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7946         redundant MEM attr setting.
7947         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7948         from...
7949         (expand_one_stack_var): ... this.  New wrapper to check and
7950         skip already expanded SSA partitions.
7951         (record_alignment_for_reg_var): New, factored out of...
7952         (expand_one_var): ... this.
7953         (expand_one_ssa_partition): New.
7954         (adjust_one_expanded_partition_var): New.
7955         (expand_one_register_var): Check and skip already expanded SSA
7956         partitions.
7957         (expand_used_vars): Don't create DECLs for anonymous SSA
7958         names.  Expand all SSA partitions, then adjust all SSA names.
7959         (pass::execute): Replace the loops that set
7960         SA.partition_to_pseudo from partition leaders and cleared
7961         DECL_RTL for multi-location variables, and that which used to
7962         rename vars and set attrs, with one that clears DECL_RTL and
7963         checks that PARMs and RESULTs default_defs match DECL_RTL.
7964         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7965         * emit-rtl.c: Include stor-layout.h.
7966         (set_reg_attrs_for_parm): Handle NULL decl.
7967         (set_reg_attrs_for_decl_rtl): Take mode from expression if
7968         it's not a DECL.
7969         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
7970         rather than its possibly-NULL DECL.
7971         * explow.c (promote_ssa_mode): New.
7972         * explow.h (promote_ssa_mode): Declare.
7973         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7974         (read_complex_part): Export.
7975         * expr.h (read_complex_part): Declare.
7976         * cfgexpand.h (parm_maybe_byref_p): Declare.
7977         * function.c: Include cfgexpand.h.
7978         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7979         (use_register_for_parm_decl): Wrapper for the above to
7980         special-case the result_ptr.
7981         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7982         (split_complex_args): Take assign_parm_data_all argument.
7983         Pass it to rtl_for_parm.  Set up rtl and context for split
7984         args.  Reset complex parm before fetching its default decl
7985         rtl.
7986         (assign_parms_unsplit_complex): Use the default-def complex
7987         parm rtl if it matches the components.
7988         (assign_parms_augmented_arg_list): Adjust.
7989         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7990         multiple locations.  Recognize split complex args.
7991         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7992         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7993         (assign_parm_setup_block): Prefer SSA-assigned location, and
7994         fill in its address if the memory location of a maybe-byref
7995         parm was not assigned by cfgexpand.
7996         (assign_parm_setup_reg): Likewise.  Adjust its mode as
7997         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
7998         sure passed_pointer parms don't need conversion.  Copy address
7999         or value as needed.
8000         (assign_parm_setup_stack): Prefer SSA-assigned location.
8001         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8002         rtl before testing for pointer bounds.  Special-case result_ptr.
8003         (expand_function_start): Maybe reset DECL_RTL of result.
8004         Prefer SSA-assigned location for result and static chain.
8005         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8006         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8007         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8008         anonymous SSA names.  Use promote_ssa_mode.
8009         (get_temp_reg): Likewise.
8010         (remove_ssa_form): Adjust.
8011         * stor-layout.c (layout_decl): Don't set mem attributes of
8012         non-MEMs.
8013         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8014         and get its reg_usage for reg invalidation.
8015         (compute_bb_dataflow): Pass it insn.
8016         (emit_notes_in_bb): Likewise.
8017
8018 2015-08-14  Marek Polacek  <polacek@redhat.com>
8019
8020         * tree-core.h (tree_base): Fix typo.
8021
8022 2015-08-14  Marek Polacek  <polacek@redhat.com>
8023
8024         PR middle-end/67133
8025         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8026         nonnull argument position is not outside function arguments.
8027
8028 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8029
8030         PR target/67143
8031         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8032         'lconst_atomic' with 'const_atomic'.
8033         (atomic_fetch_<optab><mode>): Likewise.
8034         (atomic_<optab>_fetch<mode>): Likewise.
8035         * config/aarch64/iterators.md (lconst-atomic): Move below
8036         'const_atomic'.
8037         (const_atomic): New.
8038
8039 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8040             Bernd Schmidt  <bernds@codesourcery.com>
8041
8042         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8043         debug options.
8044         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8045         (DWARF2_DEBUGGING_INFO): Don't define.
8046         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8047         * toplev.c (process_options): Add a case for it.
8048         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8049         (dwarf2out_init): Skip most initializations if
8050         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8051         case.
8052         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8053         DWARF2_LINENO_DEBUGGING_INFO.
8054         * opts.c (set_debug_level): Likewise.
8055
8056 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8057
8058         * config/arm/types.md (is_neon_type): Add missing types.
8059
8060 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8061
8062         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8063         for skylake.
8064         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8065         (processor_alias_table): Add skylake description.
8066         (enum processor_model): Add skylake processor.
8067         (arch_names_table): Add skylake record.
8068         * doc/invoke.texi: Add skylake item.
8069
8070 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8071
8072         * ira-int.h: Include recog.h.
8073         * ira-build.c: Don't include recog.h.
8074         * ira-color.c: Likewise.
8075         * ira-conflicts.c: Likewise.
8076         * ira-costs.c: Likewise.
8077         * ira-emit.c: Likewise.
8078         * ira-lives.c: Likewise.
8079         * ira.c: Likewise.
8080         * sched-deps.c: Likewise.
8081         * sel-sched.c: Likewise.
8082         * target-globals.c: Likewise.
8083
8084 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8085
8086         PR bootstrap/55035
8087         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8088         compiler that the n_dups and n_operands loop bounds are invariant.
8089
8090 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8091
8092         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8093         expressions in A and B.
8094
8095 2015-08-13  Richard Biener  <rguenther@suse.de>
8096
8097         * tree.c (nonnull_arg_p): Move from ...
8098         * tree-vrp.c (nonnull_arg_p): ... here.
8099         * tree.h (nonnull_arg_p): Declare.
8100         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8101         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8102         Properly initialize static chain and by-reference result pointer.
8103         (run_scc_vn): Adjust.
8104
8105 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8106
8107         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8108         TUNE_I6400.
8109
8110 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8111
8112         * config/aarch64/aarch64-protos.h
8113         (aarch64_gen_atomic_cas): Declare.
8114         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8115         Choose appropriate instruction pattern for the target.
8116         (aarch64_gen_atomic_cas): New.
8117         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8118         (atomic_compare_and_swap<mode>_1): Rename to
8119         aarch64_compare_and_swap<mode>.  Fix some indentation.
8120         (aarch64_compare_and_swap<mode>_lse): New.
8121         (aarch64_atomic_cas<mode>): New.
8122
8123 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8124
8125         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8126         (TARGET_LSE): New.
8127
8128 2015-08-13  Richard Biener  <rguenther@suse.de>
8129
8130         PR tree-optimization/67191
8131         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8132         assert we value-numbered last stmts operand because it can validly
8133         trigger for unreachable code.
8134
8135 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8136
8137         PR rtl-optimization/67103
8138         * ifcvt.c (noce_try_store_flag_constants): Move
8139         x = (-(test != 0) & (b - a)) + a transformation to...
8140         (noce_try_cmove): ... Here.  Try it if normal conditional
8141         move fails.
8142
8143 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8144
8145         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8146         pseudo-processors.
8147         * config/mips/mips.md (processor): Remove w32 and w64.
8148
8149 2015-08-13  Richard Biener  <rguenther@suse.de>
8150
8151         PR tree-optimization/66502
8152         PR tree-optimization/67167
8153         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8154         backedge arguments.
8155         (vn_phi_lookup): Adjust.
8156         (vn_phi_insert): Likewise.
8157         (visit_phi): Prefer to value-number to another PHI node
8158         over value-numbering to a PHI argument.
8159         (init_scc_vn): Mark DFS back edges.
8160
8161 2015-08-13  Richard Biener  <rguenther@suse.de>
8162
8163         * gimple.h (gcall::code_): New constant static member.
8164         (gcond::code_): Likewise.
8165         * gimple.c (gcall::code_): Define.
8166         (gcond::code_): Likewise.
8167         (is_a_helper <const gcond *>): Add.
8168         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8169         and forward to a new gcall overload with less checking and a
8170         cheaper way to access the operand.
8171         (gimple_call_lhs_ptr): Likewise.
8172         (gimple_call_set_lhs): Likewise.
8173         (gimple_call_internal_p): Likewise.
8174         (gimple_call_with_bounds_p): Likewise.
8175         (gimple_call_set_with_bounds): Likewise.
8176         (gimple_call_internal_fn): Likewise.
8177         (gimple_call_set_ctrl_altering): Likewise.
8178         (gimple_call_ctrl_altering_p): Likewise.
8179         (gimple_call_fntype): Likewise.
8180         (gimple_call_fn): Likewise.
8181         (gimple_call_fn_ptr): Likewise.
8182         (gimple_call_set_fndecl): Likewise.
8183         (gimple_call_fndecl): Likewise.
8184         (gimple_call_chain): Likewise.
8185         (gimple_call_num_args): Likewise.
8186         (gimple_call_arg): Likewise.
8187         (gimple_call_arg_ptr): Likewise.
8188         (gimple_call_set_arg): Likewise.
8189         (gimple_call_noreturn_p): Likewise.
8190         (gimple_cond_code): Likewise.
8191         (gimple_cond_lhs): Likewise.
8192         (gimple_cond_rhs): Likewise.
8193         (gimple_has_lhs): Reduce checking.
8194
8195 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8196
8197         PR middle-end/25529
8198         * match.pd (div (mult @0 @1) @1) : New simplifier.
8199
8200 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8201
8202         PR target/67071
8203         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8204         predicate to allow construction of vector constants using the
8205         VSLDOI vector shift instruction.
8206
8207         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8208         declaration.
8209
8210         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8211         the number of bytes to be shifted left and filled in with either
8212         all zero or all one bits.
8213         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8214         methods exist.
8215         (output_vec_const_move): On power8, generate XXLORC to generate
8216         a vector constant with all 1's. Do a split if we need to use a
8217         VSLDOI instruction.
8218
8219         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8220         properly test for the MSB.
8221
8222         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8223         vector constants that can be created with VSLDOI.
8224
8225 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8226
8227         revert:
8228         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8229         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8230         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8231         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8232         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8233         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8234         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8235         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8236         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8237
8238 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8239
8240         * config/xtensa/constraints.md (define_constraint "Y"): New
8241         constraint.
8242         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8243         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8244         * config/xtensa/predicates.md (move_operand): Match constants
8245         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8246         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8247         immediate references to TLS data.
8248         (xtensa_emit_move_sequence): Don't force constants to memory in
8249         the presence of TARGET_AUTO_LITPOOLS.
8250         (print_operand): Add 'y' format, same as default, but capable of
8251         printing SF mode constants as well.
8252         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8253         (movsf_internal): Add movi pattern that loads literal.
8254         (movsf, movdf): Don't force constants to memory in the presence
8255         of TARGET_AUTO_LITPOOLS.
8256         (movdf_internal): Add 'Y' constraint.
8257         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8258         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8259
8260 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8261
8262         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8263         Update comment.
8264         * config/arm/arm.c (ARM_FPU): Update macro.
8265         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8266         (TARGET_FP16): Likewise.
8267         (TARGET_CRYPTO): Likewise.
8268         (TARGET_NEON): Likewise.
8269         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8270         field features.
8271
8272 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8273
8274         PR other/67092
8275         PR other/67098
8276         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8277         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8278         accordingly.  Mention default for --with-stage1-ldflags.
8279
8280 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8281
8282         * config/arm/arm.h (arm_fpu_feature_set): New.
8283         (ARM_FPU_FSET_HAS): New.
8284         (FPU_FL_NONE): New.
8285         (FPU_FL_NEON): New.
8286         (FPU_FL_FP16): New.
8287         (FPU_FL_CRYPTO): New.
8288
8289 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8290
8291         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8292         after -mcmodel=large -fPIC sorry.
8293
8294 2015-08-12  Richard Biener  <rguenther@suse.de>
8295
8296         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8297         comparison operand order and commutative ternary op operand order.
8298         (sccvn_dom_walker::cond_stack): New state to track temporary
8299         expressions.
8300         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8301         no longer valid.
8302         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8303         expression.
8304         (sccvn_dom_walker::record_conds): Add a temporary conditional
8305         expressions and all related expressions also true/false.
8306         (sccvn_dom_walker::before_dom_children): Record temporary
8307         expressions based on the controlling condition of a single
8308         predecessor.  When trying to simplify a conditional statement
8309         lookup expressions we might have inserted earlier.
8310
8311 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8312
8313         PR target/67127
8314         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8315         to ARM core registers.
8316
8317 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8318
8319         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8320         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8321
8322 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8323
8324         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8325         line with comments.
8326         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8327
8328 2015-08-12  Richard Biener  <rguenther@suse.de>
8329
8330         * gimple.h (remove_pointer): New trait.
8331         (GIMPLE_CHECK2): New inline template function.
8332         (gassign::code_): New constant static member.
8333         (is_a_helper<const gassign *>): Add.
8334         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8335         and forward to a new gassign overload with less checking and a
8336         cheaper way to access the operand.
8337         (gimple_assign_lhs_ptr): Likewise.
8338         (gimple_assign_set_lhs): Likewise.
8339         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8340         Likewise.
8341         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8342         Likewise.
8343         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8344         Likewise.
8345         (gimple_assign_rhs_code): Likewise.
8346         * gimple.c (gassign::code_): Define.
8347
8348 2015-08-12  Richard Biener  <rguenther@suse.de>
8349
8350         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8351         Eliminate edges marked as not executable by SCCVN.
8352         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8353         (cond_dom_walker): Rename to sccvn_dom_walker.
8354         (sccvn_dom_walker::before_dom_children): Value-number defs
8355         of all stmts.
8356         (run_scc_vn): Remove loop value-numbering all SSA names.
8357         Drop not visited SSA names to varying.
8358
8359 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8360
8361         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8362         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8363         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8364         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8365         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8366         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8367         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8368         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8369         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8370
8371 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8372
8373         PR target/66954
8374         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8375         to enum feature_priority and feature_list.
8376         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8377         and isa_names_table.
8378
8379 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8380
8381         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8382         vect_induction_def.
8383
8384 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8385
8386         PR c/66098
8387         PR c/66711
8388         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8389         account when deciding what was the command-line status.
8390
8391 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8392
8393         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8394
8395         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8396         we're not the only contributor to target phi.
8397
8398 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8399
8400         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8401         FIXED_REG0.
8402
8403 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8404
8405         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8406
8407 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8408
8409         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8410         with CPU_SLM.
8411         * config/i386/i386.md (cpu): Remove knl.
8412
8413 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8414
8415         PR libgomp/65742
8416         PR middle-end/66332
8417         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8418         open-coded sequence.
8419         * omp-low.c (oacc_process_reduction_data): Remove handline of
8420         GOMP_DEVICE_HOST_NONSHM.
8421
8422         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8423         GET_MODE_INNER changes.
8424
8425 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8426             Ilya Verbin  <ilya.verbin@intel.com>
8427
8428         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8429
8430 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8431
8432         * doc/options.texi (EnabledBy): Document that the argument must be
8433         a Common option.
8434         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8435         Not enabled by -Wall.
8436         * optc-gen.awk: Give nicer error messages. Detect if the argument
8437         of EnabledBy is not a Common option.
8438         * common.opt (Wnull-dereference): Not enabled by -Wall.
8439         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8440
8441 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8442
8443         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8444         model == 0x4f as Broadwell.
8445
8446 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8447
8448         PR rtl-optimization/67028
8449         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8450         Add test to see if a const_int fits in the new mode.
8451
8452 2015-08-07  DJ Delorie  <dj@redhat.com>
8453
8454         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8455
8456 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8457
8458         PR rtl-optimization/67029
8459         * ira-color.c: Include "recog.h" before including "ira-int.h".
8460         * target-globals.c: Likewise.
8461         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8462         adds an alternative_mask argument and use it instead of
8463         preferred_alternatives.
8464         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8465         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8466         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8467         (sched_analyze_insn): Update call to
8468         ira_implicitly_set_insn_hard_regs.
8469         * sel-sched.c: Include "ira-int.h" after including "ira.h".
8470         (implicit_clobber_conflict_p): Update call to
8471         ira_implicitly_set_insn_hard_regs.
8472
8473 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8474
8475         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8476
8477 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8478
8479         PR target/67002
8480         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8481         currently_expanding_to_rtl is set.
8482
8483 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
8484
8485         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8486         * configure: Regenerate.
8487
8488 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8489             Jiong Wang  <jiong.wang@arm.com>
8490
8491         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8492         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8493         (REG_CLASS_NAMES): Likewise.
8494         (REG_CLASS_CONTENTS): Likewise.
8495         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8496         (aarch64_register_move_cost): Likewise.
8497         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8498         possible.
8499         * config/aarch64/constraints.md (Uc0): New constraint.
8500
8501 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8502
8503         * config/aarch64/constraints.md (Usf): Add the test of
8504         aarch64_is_noplt_call_p.
8505
8506 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8507
8508         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8509         declaration.
8510         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8511         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8512         (call_symbol): Likewise.
8513
8514 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8515
8516         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8517         for vectorizing multiplication patterns.
8518         * tree-vectorizer.h: Adjust the number of patterns.
8519
8520 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8521
8522         * config/i386/sse.md (*vec_concatv2df): Declare added
8523         alternatives as sselog type.
8524
8525 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8526
8527         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8528         all GPRs.
8529
8530 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8531
8532         * config/s390/s390.c (s390_expand_tbegin): Expand either
8533         tbegin_1_z13 or tbegin_1 depending on VX flag.
8534         * config/s390/s390.md ("tbegin_1_z13"): New expander.
8535
8536 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8537
8538         * config/s390/s390.opt: Clarify description for -mzvector
8539         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8540         -mzvector.
8541
8542 2015-08-06  Richard Biener  <rguenther@suse.de>
8543
8544         * gimple.h (gimple_call_set_fn): Access op member directly.
8545         (gimple_call_chain_ptr): Likewise.
8546         (gimple_call_set_chain): Likewise.
8547         (gimple_cond_lhs_ptr): Likewise.
8548         (gimple_cond_set_lhs): Likewise.
8549         (gimple_cond_rhs_ptr): Likewise.
8550         (gimple_cond_set_rhs): Likewise.
8551         (gimple_cond_true_label): Likewise.
8552         (gimple_cond_set_true_label): Likewise.
8553         (gimple_cond_set_false_label): Likewise.
8554         (gimple_cond_false_label): Likewise.
8555         (gimple_label_label): Likewise.
8556         (gimple_label_set_label): Likewise.
8557         (gimple_goto_set_dest): Likewise.
8558         (gimple_asm_input_op): Likewise.
8559         (gimple_asm_input_op_ptr): Likewise.
8560         (gimple_asm_set_input_op): Likewise.
8561         (gimple_asm_output_op): Likewise.
8562         (gimple_asm_output_op_ptr): Likewise.
8563         (gimple_asm_set_output_op): Likewise.
8564         (gimple_asm_clobber_op): Likewise.
8565         (gimple_asm_set_clobber_op): Likewise.
8566         (gimple_asm_label_op): Likewise.
8567         (gimple_asm_set_label_op): Likewise.
8568         (gimple_switch_index): Likewise.
8569         (gimple_switch_index_ptr): Likewise.
8570         (gimple_return_retval_ptr): Likewise.
8571         (gimple_return_retval): Likewise.
8572         (gimple_return_set_retval): Likewise.
8573         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
8574         (gimple_switch_label): Likewise.
8575         (gimple_switch_set_label): Likewise.
8576
8577 2015-08-06  Richard Biener  <rguenther@suse.de>
8578
8579         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8580         bool comparison canonicalization and restrict to integers.
8581
8582 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
8583
8584         * coretypes.h (enum symbol_visibility): Relocate here.
8585         * flag-types.h (enum symbol_visibility): Remove.
8586         * tree-core.h (enum symbol_visibility): Remove.
8587
8588 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
8589
8590         PR target/66870
8591         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8592         for no_split_stack function attribute along with
8593         flag_split_stack.
8594         (rs6000_expand_split_stack_prologue): Likewise.
8595
8596 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8597             Jeff Law  <law@redhat.com>
8598
8599         PR c/16351
8600         * doc/invoke.texi (Wnull-dereference): New.
8601         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8602         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8603         Warn for potential NULL dereferences.
8604         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8605         * ubsan.c (instrument_nonnull_arg): Call
8606         infer_nonnull_range_by_attribute.
8607         (instrument_nonnull_return): Likewise.
8608         * common.opt (Wnull-dereference); New.
8609         * gimple.c (infer_nonnull_range): Remove bool arguments.
8610         (infer_nonnull_range_by_dereference): New.
8611         (infer_nonnull_range_by_attribute): New.
8612         * gimple.h: Update declarations.
8613
8614 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8615
8616         * gensupport.c (sequence_num): Replace with...
8617         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8618         ...these new variables.
8619         (init_rtx_reader_args_cb): Update accordingly.
8620         (get_num_code_insns): Likewise.
8621         (read_md_rtx): Rework to use a while loop and get_c_test.
8622         Use the new counters.  Remove redundant DEFINE_SUBST case.
8623         * genoutput.c (gen_split): Delete.
8624         (main): Don't call it.
8625
8626 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8627
8628         * gensupport.h (get_c_test): Declare.
8629         * gensupport.c (get_c_test): New function.
8630         * genconditions.c (main): Use it.
8631         * genrecog.c (validate_pattern): Likewise.
8632         (match_pattern_1): Likewise.  Remove c_test argument.
8633         (match_pattern): Update accordingly and remove c_test argument.
8634         (main): Update accordingly.
8635
8636 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8637
8638         * gensupport.h (get_num_insn_codes): Declare.
8639         * gensupport.c (get_num_insn_codes): New function.
8640         * genattrtab.c (optimize_attrs): Rename max_insn_code to
8641         num_insn_codes.
8642         (main): Likewise.  Use get_num_insn_codes.
8643         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8644
8645 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8646
8647         PR middle-end/66311
8648         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8649         is zero- rather than sign-extended.
8650
8651 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8652
8653         * target-insns.def (can_extend): Delete.
8654
8655 2015-08-05  Richard Biener  <rguenther@suse.de>
8656
8657         PR tree-optimization/67121
8658         * tree-if-conv.c (combine_blocks): Clear range-info produced
8659         by stmts no longer executed conditionally.
8660
8661 2015-08-05  Nick Clifton  <nickc@redhat.com>
8662
8663         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8664         to allow identical far pointers to remain.
8665
8666 2015-08-05  Richard Biener  <rguenther@suse.de>
8667
8668         PR middle-end/67120
8669         * match.pd: Compare address bases with == if they are decls
8670         or SSA names, not operand_equal_p.  Otherwise fail.
8671
8672 2015-08-05  Richard Biener  <rguenther@suse.de>
8673
8674         PR tree-optimization/67055
8675         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8676         NULL gimple_block.
8677
8678         * g++.dg/torture/pr67055.C: New testcase.
8679
8680 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8681
8682         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8683         noavx512vl.
8684         (define_attr "enabled"): Handle avx521vl and noavx512vl.
8685         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8686         AVX-512 alternative out of SSE.
8687         (define_insn "*vec_concatv2df"): Ditto.
8688
8689 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8690
8691         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8692         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8693         CODE_FOR_avx_ptestv4di.
8694         * config/i386/sse.md (define_mode_iterator V_AVX): New.
8695         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8696         (define_insn "avx_ptest256"): Merge this ...
8697         (define_insn "sse4_1_ptest"): And this ...
8698         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8699
8700 2015-08-05  Richard Biener  <rguenther@suse.de>
8701
8702         PR tree-optimization/67109
8703         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8704         against too big groups.  Print whether this is a load or store
8705         group.  Rename from ...
8706         (vect_analyze_group_access): ... this which is now a wrapper
8707         dissolving an invalid group.
8708         (vect_analyze_data_ref_accesses): Print whether this is a load
8709         or store group.
8710
8711 2015-08-05  Richard Biener  <rguenther@suse.de>
8712
8713         PR middle-end/67107
8714         * match.pd: Guard const_binop result checking against NULL_TREE
8715         result.
8716
8717 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
8718
8719         * cse.c (cse_insn): Restoring old behaviour for src_eqv
8720          when dest and value in the REG_EQUAL are same and dest
8721          is STRICT_LOW_PART.
8722
8723 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
8724
8725         * config/moxie/moxie.h (PRINT_OPERAND,
8726           PRINT_OPERAND_ADDRESS): Remove macros.
8727         * config/moxie/moxie-protos.h (moxie_print_operand,
8728           moxie_print_operand_address): Remove declaration.
8729         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8730           TARGET_PRINT_OPERAND_ADDRESS): Define.
8731           (moxie_print_operand, moxie_print_operand_address): Make static.
8732
8733 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8734
8735         PR target/66731
8736         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8737         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8738
8739 2015-08-04  Richard Biener  <rguenther@suse.de>
8740
8741         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8742         generated code.
8743         (dt_operand::gen_gimple_expr): Adjust.
8744
8745 2015-08-04  Richard Biener  <rguenther@suse.de>
8746
8747         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8748         bool compares on RHS.
8749         * match.pd: Add X ==/!= !X is false/true pattern.
8750
8751 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
8752
8753         * config/aarch64/aarch64.c: Change inner loop statement cost
8754         to be consistent with other targets.
8755
8756 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
8757
8758         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8759         targets.
8760
8761 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8762
8763         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8764         (machine_function): Remove pseudos field.
8765
8766 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8767
8768         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8769         Exit early and use target_option_current_node if processing current
8770         pragma.
8771
8772 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8773
8774         * doc/extend.texi (AArch64 Function Attributes): New node.
8775         (AArch64 Pragmas): Likewise.
8776
8777 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8778
8779         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8780         Initialize simd builtins if TARGET_SIMD.
8781         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8782         Make sure that the builtins are initialized only once no matter how
8783         many times the function is called.
8784         (aarch64_init_builtins): Unconditionally initialize crc builtins.
8785         (aarch64_relayout_simd_param): New function.
8786         (aarch64_simd_expand_args): Use above during argument expansion.
8787         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8788         simd builtins if TARGET_SIMD.
8789         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8790         prototype.
8791         (aarch64_relayout_simd_types): Likewise.
8792
8793 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8794
8795         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8796         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8797         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8798         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8799         static keyword.
8800         (aarch64_reset_previous_fndecl): New function.
8801         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8802         the string.
8803         * config/aarch64/aarch64-c.c: New file.
8804         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8805         Push and pop options at beginning and end.  Remove ifdef
8806         __ARM_FEATURE_CRC32.
8807         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8808         Add pragma +nothing+simd and +nothing+crypto where appropriate.
8809         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8810         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8811         Define prototype.
8812         (aarch64_register_pragmas): Likewise.
8813         (aarch64_reset_previous_fndecl): Likewise.
8814         (aarch64_process_target_attr): Likewise.
8815         (aarch64_override_options_internal): Likewise.
8816
8817 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8818
8819         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
8820         New function.
8821         (aarch64_can_inline_p): Likewise.
8822         (TARGET_CAN_INLINE_P): Define.
8823
8824 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8825
8826         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
8827         Remove static.  Handle OPT_mgeneral_regs_only,
8828         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
8829         OPT_momit_leaf_frame_pointer.
8830         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
8831         (aarch64_attr_opt_type): New enum.
8832         (aarch64_attribute_info): New struct.
8833         (aarch64_handle_attr_arch): New function.
8834         (aarch64_handle_attr_cpu): Likewise.
8835         (aarch64_handle_attr_tune): Likewise.
8836         (aarch64_handle_attr_isa_flags): Likewise.
8837         (aarch64_attributes): New table.
8838         (aarch64_process_one_target_attr): New function.
8839         (num_occurences_in_str): Likewise.
8840         (aarch64_process_target_attr): Likewise.
8841         (aarch64_option_valid_attribute_p): Likewise.
8842         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8843         * config/aarch64/aarch64-protos.h: Include input.h
8844         (aarch64_handle_option): Declare prototype.
8845
8846 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8847
8848         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
8849         * config/aarch64/aarch64.c: Include target-globals.h
8850         (aarch64_previous_fndecl): New variable.
8851         (aarch64_set_current_function): New function.
8852         (TARGET_SET_CURRENT_FUNCTION): Define.
8853
8854 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8855
8856         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
8857         (explicit_arch): Likewise.
8858         (x_aarch64_isa_flags): Likewise.
8859         (mgeneral-regs-only): Mark as Save.
8860         (mfix-cortex-a53-835769): Likewise.
8861         (mcmodel=): Likewise.
8862         (mstrict-align): Likewise.
8863         (momit-leaf-frame-pointer): Likewise.
8864         (mtls-dialect): Likewise.
8865         (master=): Likewise.
8866         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
8867         (aarch64_isa_flags): Remove extern declaration.
8868         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
8869         to indicate success or failure.
8870         (aarch64_validate_march): Likewise.
8871         (aarch64_validate_mtune): Likewise.
8872         (aarch64_isa_flags): Delete.
8873         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
8874         instead of aarch64_isa_flags.
8875         (aarch64_get_tune_cpu): New function.
8876         (aarch64_get_arch): Likewise.
8877         (aarch64_override_options): Use above and set up explicit_tune_core
8878         and explicit_arch.
8879         (aarch64_print_extension): Move earlier in file.  Add isa_flags
8880         argument and use that instead of the global aarch64_isa_flags.
8881         (aarch64_option_save): New function.
8882         (aarch64_option_restore): Likewise.
8883         (aarch64_option_print): Likewise.
8884         (aarch64_declare_function_name): Likewise.
8885         (aarch64_start_file): Delete.
8886         (TARGET_ASM_FILE_START): Do not define.
8887         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
8888         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
8889         Declare prototype.
8890
8891 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8892
8893         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
8894         flag_omit_leaf_frame_pointer to 2.
8895
8896 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8897
8898         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
8899         define to 0 or 1.
8900         (TARGET_FIX_ERR_A53_835769): New macro.
8901         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8902         handling of opts->x_aarch64_fix_a53_err835769.
8903         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
8904         than aarch64_fix_a53_err835769.
8905         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
8906         * config/aarch64/aarch64-linux.h: Likewise.
8907
8908 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
8909
8910         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
8911         ix86_expand_int_movcc as boolean.
8912
8913 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8914
8915         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
8916         (aarch64_cpu_string): Likewise.
8917         (aarch64_tune_string): Likewise.
8918         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
8919         (aarch64_parse_extension): Return aarch64_parse_opt_result.
8920         Add extra argument to put result into.
8921         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
8922         (aarch64_parse_cpu): Add arguments to put results into. Return
8923         aarch64_parse_opt_result.
8924         (aarch64_parse_tune): Likewise.
8925         (aarch64_override_options_after_change_1): New function.
8926         (aarch64_override_options_internal): New function.
8927         (aarch64_validate_mcpu): Likewise.
8928         (aarch64_validate_march): Likewise.
8929         (aarch64_validate_mtune): Likewise.
8930         (aarch64_override_options): Update to reflect above changes.
8931         Move some logic into aarch64_override_options_internal.
8932         Initialize target_option_default_node and target_option_current_node.
8933         (aarch64_override_options_after_change): Move logic into
8934         aarch64_override_options_after_change_1 and call it with global_options.
8935         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
8936         flag values from that.
8937
8938 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8939
8940         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8941         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
8942         * config/aarch64/aarch64.c (struct processor): Add arch field.
8943         (all_architectures): Handle above, move above all_cores.
8944         (all_cores): Handle above.
8945         (aarch64_parse_arch): Handle above changes.
8946         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
8947         above.  Update comments.
8948         (armv8.1-a): Likewise.
8949         * config/aarch64/aarch64-cores.def: Update according to above.
8950         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
8951         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
8952         aarch64_arch_driver_info.
8953
8954 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8955
8956         * config/aarch64/aarch64.c (struct processor): Add ident field.
8957         Rename core sched_core.
8958         (all_cores): Handle above changes.
8959         (all_architectures): Likewise.
8960         (aarch64_parse_arch): Likewise.
8961         (aarch64_override_options): Likewise.
8962
8963 2015-08-04  Richard Biener  <rguenther@suse.de>
8964
8965         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
8966         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
8967         comparisons embedded in [VEC_]COND_EXPRs.
8968
8969 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
8970
8971         * tree-if-conv.c: Fix various typos in comments.
8972         * tree-vect-stmts.c: Likewise.
8973
8974 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8975
8976         PR tree-optimization/67043
8977         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
8978         preheader after hoisting invariant in it.
8979         (find_defs): Force recomputation of all luids.
8980
8981 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
8982
8983         * config/rs6000/htm.md (tabort.): Restrict the source operand to
8984         using a base register.
8985
8986 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
8987
8988         * main.c (main): Pass in NULL for toplev's external_timer.
8989         * timevar.c: Include coretypes.h.
8990         (class timer::named_items): New.
8991         (timer::named_items::named_items): New.
8992         (timer::named_items::~named_items): New.
8993         (timer::named_items::push): New.
8994         (timer::named_items::pop): New.
8995         (timer::named_items::print): New.
8996         (timer::timer): Initialize field "m_jit_client_items".
8997         (timer::~timer): New.
8998         (timer::push): Move bulk of implementation to...
8999         (timer::push_internal): ...here.  New function.
9000         (timer::pop): Move bulk of implementation to...
9001         (timer::pop_internal): ...here.  New function.
9002         (timer::push_client_item): New.
9003         (timer::pop_client_item): New.
9004         (timer::print_row): New function, taken from timer::print.
9005         (timer::print): Print "GCC items" header if we also have client
9006         items.  Move row-printing to timer::print_row.  Print any client
9007         items.
9008         (timer::get_topmost_item_name): New method.
9009         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9010         (TV_JIT_CLIENT_CODE): New.
9011         * timevar.h (timer::push_client_item): New declaration.
9012         (timer::pop_client_item): New declaration.
9013         (timer::get_topmost_item_name): New method.
9014         (timer::push_internal): New declaration.
9015         (timer::pop_internal): New declaration.
9016         (timer::print_row): New declaration.
9017         (timer::named_items): New declaration.
9018         (timer::m_jit_client_items): New field.
9019         (timer): Add friend class named_items.
9020         (auto_timevar::auto_timevar): Add timer param.
9021         (auto_timevar::~auto_timevar): Use field "m_timer".
9022         (auto_timevar::m_timer): New field.
9023         * toplev.c (initialize_rtl): Add g_timer as param when
9024         constructing auto_timevar instance.
9025         (toplev::toplev): Add "external_timer" param, and use it to
9026         initialize the "g_timer" global if non-NULL.
9027         (toplev::~toplev): If this created "g_timer", delete it.
9028         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9029         with "external_timer" timer *.
9030
9031 2015-08-03  Alexander Basov <coohpt@gmail.com>
9032
9033         PR middle-end/64744
9034         PR middle-end/48470
9035         PR middle-end/43404
9036         * cfgexpand.c (expand_one_var): Add check if stack is going to
9037         be used in naked function.
9038         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9039         whether expression should not reside in MEM.
9040         * function.c (use_register_for_decl): Do not use registers for
9041         non-register things (volatile, float, BLKMode) in naked functions.
9042
9043 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9044
9045         PR target/67060
9046         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9047         Adjust splits to match new pattern.
9048
9049 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9050
9051         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9052         (VEC_M): Likewise.
9053         (VEC_N): Likewise.
9054         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9055         point in VSX registers.
9056
9057         * config/rs6000/constraints.md (wb constraint): Document unused
9058         w<x> constraint.
9059         (we constraint): Likewise.
9060         (wo constraint): Likewise.
9061         (wp constraint): New constraint for IEEE 128-bit floating point in
9062         VSX registers.
9063         (wq constraint): Likewise.
9064
9065         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9066         IEEE 128-bit floating point in VSX registers.
9067         (easy_scalar_constant): Likewise.
9068
9069         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9070         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9071         registers.
9072         (rs6000_init_hard_regno_mode_ok): Likewise.
9073
9074         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9075         floating point in VSX registers.
9076         (VSX_L): Likewise.
9077         (VSX_M): Likewise.
9078         (VSX_M2): Likewise.
9079         (VSm): Likewise.
9080         (VSs): Likewise.
9081         (VSr): Likewise.
9082         (VSa): Likewise.
9083         (VSv): Likewise.
9084         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9085         IEEE 128-bit floating point in VSX registers on little endian.
9086         (vsx_le_undo_permute_<mode>): Likewise.
9087         (vsx_le_perm_load_<mode>): Likewise.
9088         (vsx_le_perm_store_<mode>): Likewise.
9089         (splitters for IEEE 128-bit fp moves): Likewise.
9090
9091         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9092         wq constraints.
9093
9094         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9095         floating point in VSX registers.
9096         (VM2): Likewise.
9097
9098         * doc/md.text (Machine Constraints): Document wp and wq
9099         constraints on PowerPC.
9100
9101 2015-08-03  Jeff Law  <law@redhat.com>
9102
9103         PR middle-end/66314
9104         PR gcov-profile/66899
9105         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9106         iterate over the jump threading paths when an element in the
9107         jump threading paths array is eliminated.
9108
9109 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9110
9111         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9112
9113 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9114
9115         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9116         is_use_properly_guarded the variable def_preds.  Free its
9117         contents before returning.
9118         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9119         (is_use_properly_guarded): Replace local variable def_preds with
9120         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9121         the empty vector.
9122
9123 2015-08-03  Richard Biener  <rguenther@suse.de>
9124
9125         * genmatch.c (simplify::for_subst_vec): New member.
9126         (binary_ok): New helper for for lowering.
9127         (lower_for): Delay substituting operators into result expressions
9128         if we can merge the results eventually again.
9129         (capture_info::walk_result): Adjust for user_id appearing as
9130         result expression operator.
9131         (expr::gen_transform): Likewise.
9132         (dt_simplify::gen_1): Likewise.
9133         (dt_simplify::gen): Pass not substituted operators to tail
9134         functions or initialize local variable with it.
9135         (decision_tree::gen): Adjust function signature.
9136         * match.pd: Fix tests against global code and add default
9137         cases to switch stmts.
9138
9139 2015-08-03  Richard Biener  <rguenther@suse.de>
9140
9141         * genmatch.c (dt_simplify::gen): Create captures array
9142         with an initializer.
9143
9144 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9145
9146         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9147         the host compiler is affected by placement new aliasing bug.
9148         * configure: Regenerate.
9149         * Makefile.in (ALIASING_FLAGS): New variable.
9150         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9151
9152 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9153
9154         PR target/66731
9155         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9156         (negmulsf3_vfp): Likewise.
9157         (muldf3negdf_vfp): Disable for -frounding-math.
9158         (mulsf3negsf_vfp): Likewise.
9159         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9160         fix MULT cost with -frounding-math.
9161
9162 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9163
9164         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9165         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9166         explicit.  Prefer to add the flag whenever possible.
9167         (noce_process_if_block): Try noce_try_store_flag_constants before
9168         noce_try_cmove.
9169
9170 2015-08-03  Richard Biener  <rguenther@suse.de>
9171
9172         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9173         New hash-map to record equivalent transforms.
9174         (dt_node::analyze): Populate the equivalent transforms hash-map.
9175         (dt_simplify::info): Add reference to hash-map entry.
9176         (dt_simplify::gen): If we have split out a function for the
9177         transform, generate a call to it.
9178         (sinfo_hashmap_traits::hash): New function.
9179         (compare_op): New helper function for ...
9180         (sinfo_hashmap_traits::equal_keys): ... this new function.
9181         (decision_tree::gen): Split out common equivalent transforms
9182         into functions.
9183
9184 2015-08-03  Richard Biener  <rguenther@suse.de>
9185
9186         * gimple-fold.c (fold_gimple_assign): Remove folding of
9187         the comparison in COND_EXPRs.
9188
9189 2015-08-03  Richard Biener  <rguenther@suse.de>
9190
9191         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9192         on the rhs of assignments first simplify the embedded
9193         GENERIC condition.
9194
9195 2015-08-03  Richard Biener  <rguenther@suse.de>
9196
9197         PR tree-optimization/66917
9198         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9199         field.
9200         (DR_VECT_AUX): New macro.
9201         (set_dr_misalignment): Adjust.
9202         (dr_misalignment): Likewise.
9203         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9204         Compute whether the base is at least element aligned.
9205         * tree-vect-stmts.c (ensure_base_align): Adjust.
9206         (vectorizable_store): If the base is not element aligned
9207         preserve alignment of the original access if misalignment is unknown.
9208         (vectorizable_load): Likewise.
9209
9210 2015-08-02  Martin Sebor  <msebor@redhat.com>
9211
9212         * c-family/c.opt (-Wframe-address): New warning option.
9213         * doc/invoke.texi (Wframe-address): Document it.
9214         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9215         Clarify possible effects of calling the functions with non-zero
9216         arguments and mention -Wframe-address.
9217         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9218
9219 2015-08-01  Michael Collison  <michael.collison@linaro.org
9220             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9221
9222         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9223         (*arm_umin_cmp): Likewise.
9224
9225 2015-08-01  Caroline Tice  <cmtice@google.com>
9226
9227         PR 66521
9228         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9229         global variables.
9230         (vtbl_find_mangled_name):  New function.
9231         (vtbl_register_mangled_name):  New function.
9232         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9233         mangled name in mangled name vectors.
9234         (find_or_create_vtbl_map_node):  Ditto.
9235         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9236         update recursion_depth on function entry; pass it to every recursive
9237         call; automatically exit if depth > 25 (give up looking at that point).
9238         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9239         var_is_used_for_virtual_call_p.
9240         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9241         global variable decls.
9242         (vtbl_register_mangled_name): New extern function decl.
9243
9244 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9245
9246         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9247         function.
9248         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9249         Declare.
9250         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9251         operation_no_trapping_overflow.  Allow non-overflow operations.
9252         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9253         operations.
9254
9255 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9256
9257         PR target/67049
9258         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9259
9260 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9261
9262         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9263         Enable for TARGET_32BIT.
9264         (*if_move_neg): Likewise.
9265
9266 2015-07-31  Nick Clifton  <nickc@redhat.com>
9267
9268         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9269         Returns true for __model__.
9270         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9271
9272 2015-07-31  Alan Modra  <amodra@gmail.com>
9273
9274         PR target/66870
9275         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9276         (rs6000_emit_prologue): Set it.
9277         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9278
9279 2015-07-31  Richard Biener  <rguenther@suse.de>
9280
9281         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9282         -> X == (C1 ^ C2) which is already implemented in match.pd.
9283         Remove redundant dispatching to fold_relational_const.
9284         Move unordered self and NaN compares ...
9285         * match.pd: ... as patterns here.  Remove some stray captures
9286         and add a comment.
9287
9288 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9289
9290         * config/i386/i386.c
9291         (bdesc_special_args): Convert mask type from signed to unsigned for
9292         masked builtins.
9293         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9294         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9295         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9296         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9297         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9298         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9299         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9300         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9301         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9302         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9303         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9304         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9305         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9306         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9307         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9308         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9309         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9310         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9311         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9312         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9313         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9314         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9315         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9316         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9317         * config/i386/i386-builtin-types.def
9318         (V16QI_FTYPE_V16SI): Remove.
9319         (V8DF_FTYPE_V8SI): Ditto.
9320         (V8HI_FTYPE_V8DI): Ditto.
9321         (V8SI_FTYPE_V8DI): Ditto.
9322         (V8SF_FTYPE_V8DF): Ditto.
9323         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9324         (V16HI_FTYPE_V16SI): Ditto.
9325         (V16SF_FTYPE_V16HI): Ditto.
9326         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9327         (V16SF_FTYPE_V16SI): Ditto.
9328         (V4DI_FTYPE_V4DI): Ditto.
9329         (V16SI_FTYPE_V16SF): Ditto.
9330         (V16SF_FTYPE_FLOAT): Ditto.
9331         (V8DF_FTYPE_DOUBLE): Ditto.
9332         (V8DI_FTYPE_INT64): Ditto.
9333         (V8DI_FTYPE_V4DI): Ditto.
9334         (V16QI_FTYPE_V8DI): Ditto.
9335         (UINT_FTYPE_V4SF): Ditto.
9336         (UINT64_FTYPE_V4SF): Ditto.
9337         (UINT_FTYPE_V2DF): Ditto.
9338         (UINT64_FTYPE_V2DF): Ditto.
9339         (V16SI_FTYPE_V16SI): Ditto.
9340         (V8DI_FTYPE_V8DI): Ditto.
9341         (V16SI_FTYPE_PV4SI): Ditto.
9342         (V16SF_FTYPE_PV4SF): Ditto.
9343         (V8DI_FTYPE_PV2DI): Ditto.
9344         (V8DF_FTYPE_PV2DF): Ditto.
9345         (V4DI_FTYPE_PV2DI): Ditto.
9346         (V4DF_FTYPE_PV2DF): Ditto.
9347         (V16SI_FTYPE_PV2SI): Ditto.
9348         (V16SF_FTYPE_PV2SF): Ditto.
9349         (V8DI_FTYPE_PV4DI): Ditto.
9350         (V8DF_FTYPE_PV4DF): Ditto.
9351         (V8SF_FTYPE_FLOAT): Ditto.
9352         (V4SF_FTYPE_FLOAT): Ditto.
9353         (V4DF_FTYPE_DOUBLE): Ditto.
9354         (V8SF_FTYPE_PV4SF): Ditto.
9355         (V8SI_FTYPE_PV4SI): Ditto.
9356         (V4SI_FTYPE_PV2SI): Ditto.
9357         (V8SF_FTYPE_PV2SF): Ditto.
9358         (V8SI_FTYPE_PV2SI): Ditto.
9359         (V16SF_FTYPE_PV8SF): Ditto.
9360         (V16SI_FTYPE_PV8SI): Ditto.
9361         (V8DI_FTYPE_V8SF): Ditto.
9362         (V4DI_FTYPE_V4SF): Ditto.
9363         (V2DI_FTYPE_V4SF): Ditto.
9364         (V64QI_FTYPE_QI): Ditto.
9365         (V32HI_FTYPE_HI): Ditto.
9366         (V8UHI_FTYPE_V8UHI): Ditto.
9367         (V16UHI_FTYPE_V16UHI): Ditto.
9368         (V32UHI_FTYPE_V32UHI): Ditto.
9369         (V2UDI_FTYPE_V2UDI): Ditto.
9370         (V4UDI_FTYPE_V4UDI): Ditto.
9371         (V8UDI_FTYPE_V8UDI): Ditto.
9372         (V4USI_FTYPE_V4USI): Ditto.
9373         (V8USI_FTYPE_V8USI): Ditto.
9374         (V16USI_FTYPE_V16USI): Ditto.
9375         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9376         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9377         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9378         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9379         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9380         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9381         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9382         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9383         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9384         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9385         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9386         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9387         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9388         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9389         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9390         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9391         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9392         (V16SI_FTYPE_V16SI_SI): Ditto.
9393         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9394         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9395         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9396         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9397         (QI_FTYPE_QI): Ditto.
9398         (SI_FTYPE_SI): Ditto.
9399         (DI_FTYPE_DI): Ditto.
9400         (QI_FTYPE_QI_QI): Ditto.
9401         (QI_FTYPE_QI_INT): Ditto.
9402         (HI_FTYPE_HI_INT): Ditto.
9403         (SI_FTYPE_SI_INT): Ditto.
9404         (DI_FTYPE_DI_INT): Ditto.
9405         (HI_FTYPE_V16QI_V16QI): Ditto.
9406         (SI_FTYPE_V32QI_V32QI): Ditto.
9407         (DI_FTYPE_V64QI_V64QI): Ditto.
9408         (QI_FTYPE_V8HI_V8HI): Ditto.
9409         (HI_FTYPE_V16HI_V16HI): Ditto.
9410         (SI_FTYPE_V32HI_V32HI): Ditto.
9411         (QI_FTYPE_V4SI_V4SI): Ditto.
9412         (QI_FTYPE_V8SI_V8SI): Ditto.
9413         (QI_FTYPE_V2DI_V2DI): Ditto.
9414         (QI_FTYPE_V4DI_V4DI): Ditto.
9415         (QI_FTYPE_V8DI_V8DI): Ditto.
9416         (HI_FTYPE_V16SI_V16SI): Ditto.
9417         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9418         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9419         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9420         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9421         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9422         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9423         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9424         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9425         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9426         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9427         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9428         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9429         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9430         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9431         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9432         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9433         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9434         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9435         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9436         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9437         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9438         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9439         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9440         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9441         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9442         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9443         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9444         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9445         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9446         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9447         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9448         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9449         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9450         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9451         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9452         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9453         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9454         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9455         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9456         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9457         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9458         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9459         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9460         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9461         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9462         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9463         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9464         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9465         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9466         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9467         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9468         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9469         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9470         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9471         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9472         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9473         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9474         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9475         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9476         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9477         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9478         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9479         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9480         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9481         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9482         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9483         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9484         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9485         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9486         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9487         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9488         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9489         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9490         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9491         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9492         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9493         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9494         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9495         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9496         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9497         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9498         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9499         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9500         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9501         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9502         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9503         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9504         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9505         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9506         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9507         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9508         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9509         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9510         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9511         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9512         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9513         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9514         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9515         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9516         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9517         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9518         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9519         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9520         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9521         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9522         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9523         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9524         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9525         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9526         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9527         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9528         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9529         (HI_FTYPE_HI): Ditto.
9530         (HI_FTYPE_V16QI): Ditto.
9531         (SI_FTYPE_V32QI): Ditto.
9532         (DI_FTYPE_V64QI): Ditto.
9533         (QI_FTYPE_V8HI): Ditto.
9534         (HI_FTYPE_V16HI): Ditto.
9535         (SI_FTYPE_V32HI): Ditto.
9536         (QI_FTYPE_V4SI): Ditto.
9537         (QI_FTYPE_V8SI): Ditto.
9538         (HI_FTYPE_V16SI): Ditto.
9539         (QI_FTYPE_V2DI): Ditto.
9540         (QI_FTYPE_V4DI): Ditto.
9541         (QI_FTYPE_V8DI): Ditto.
9542         (V16QI_FTYPE_HI): Ditto.
9543         (V32QI_FTYPE_SI): Ditto.
9544         (V64QI_FTYPE_DI): Ditto.
9545         (V8HI_FTYPE_QI): Ditto.
9546         (V16HI_FTYPE_HI): Ditto.
9547         (V32HI_FTYPE_SI): Ditto.
9548         (V4SI_FTYPE_QI): Ditto.
9549         (V4SI_FTYPE_HI): Ditto.
9550         (V8SI_FTYPE_QI): Ditto.
9551         (V8SI_FTYPE_HI): Ditto.
9552         (V2DI_FTYPE_QI): Ditto.
9553         (V4DI_FTYPE_QI): Ditto.
9554         (HI_FTYPE_HI_HI): Ditto.
9555         (SI_FTYPE_SI_SI): Ditto.
9556         (DI_FTYPE_DI_DI): Ditto.
9557         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9558         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9559         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9560         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9561         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9562         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9563         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9564         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9565         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9566         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9567         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9568         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9569         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9570         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9571         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9572         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9573         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9574         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9575         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9576         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9577         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9578         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9579         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9580         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9581         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9582         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9583         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9584         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9585         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9586         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9587         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9588         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9589         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9590         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9591         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9592         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9593         (V16SI_FTYPE_HI): Ditto.
9594         (V8DI_FTYPE_QI): Ditto.
9595         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9596         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9597         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9598         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9599         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9600         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9601         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9602         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9603         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9604         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9605         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9606         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9607         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9608         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9609         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9610         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9611         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9612         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9613         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9614         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9615         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9616         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9617         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9618         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9619         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9620         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9621         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9622         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9623         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9624         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9625         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9626         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9627         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9628         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9629         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9630         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9631         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9632         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9633         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9634         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9635         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9636         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9637         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9638         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9639         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9640         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9641         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9642         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9643         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9644         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9645         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9646         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9647         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9648         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9649         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9650         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9651         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9652         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9653         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9654         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9655         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9656         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9657         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9658         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9659         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9660         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9661         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9662         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9663         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9664         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9665         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9666         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9667         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9668         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9669         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9670         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9671         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9672         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9673         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9674         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9675         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9676         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9677         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9678         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9679         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9680         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9681         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9682         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9683         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9684         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9685         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9686         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9687         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9688         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9689         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9690         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9691         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9692         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9693         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9694         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9695         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9696         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9697         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9698         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9699         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9700         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9701         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9702         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9703         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9704         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9705         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9706         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9707         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9708         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9709         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9710         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9711         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9712         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9713         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9714         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9715         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9716         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9717         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9718         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9719         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9720         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9721         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9722         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9723         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9724         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9725         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9726         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9727         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9728         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9729         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9730         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9731         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9732         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9733         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9734         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9735         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9736         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9737         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9738         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9739         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9740         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9741         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9742         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9743         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9744         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9745         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9746         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9747         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9748         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9749         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9750         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9751         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9752         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9753         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9754         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9755         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9756         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9757         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9758         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9759         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9760         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9761         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9762         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9763         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9764         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9765         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9766         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9767         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9768         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9769         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9770         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9771         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9772         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9773         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9774         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9775         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9776         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9777         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9778         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9779         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9780         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9781         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9782         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9783         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9784         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9785         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9786         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9787         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9788         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9789         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9790         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9791         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9792         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9793         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9794         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9795         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9796         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9797         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9798         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9799         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9800         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9801         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9802         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9803         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9804         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9805         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9806         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9807         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9808         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9809         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9810         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9811         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9812         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9813         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9814         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9815         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9816         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
9817         (QI_FTYPE_V8DF_INT_QI): Ditto.
9818         (QI_FTYPE_V4DF_INT_QI): Ditto.
9819         (QI_FTYPE_V2DF_INT_QI): Ditto.
9820         (HI_FTYPE_V16SF_INT_HI): Ditto.
9821         (QI_FTYPE_V8SF_INT_QI): Ditto.
9822         (QI_FTYPE_V4SF_INT_QI): Ditto.
9823         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
9824
9825 2015-07-31  Richard Biener  <rguenther@suse.de>
9826
9827         * gimple-fold.c (fold_gimple_assign): Remove folding of
9828         GIMPLE_BINARY_RHS.
9829
9830 2015-07-31  Tom de Vries  <tom@codesourcery.com>
9831
9832         PR tree-optimization/66846
9833         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
9834         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
9835         (expand_omp_target) [ENABLE_CHECKING]: Same.
9836         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
9837         cfun if !LOOPS_NEED_FIXUP.
9838         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
9839         that omp_for already has its own loop struct.
9840         * tree-parloops.c (create_phi_for_local_result)
9841         (create_call_for_reduction): Handle simple latch bb.
9842         (create_parallel_loop): Add simple latch bb to preserve
9843         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
9844         (gen_parallel_loop): Remove call to cancel_loop_tree.
9845         (parallelize_loops): Skip loops that are inner loops of parallelized
9846         loops.
9847         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
9848         verify_loop_structure.
9849
9850 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9851
9852         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
9853         * config/v850/v850.md (RV_REGNUM): New constants.
9854         * config/v850/v850.c (v850_libcall_value): New functions.
9855         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
9856         (TARGET_LIBCALL_VALUE): Define.
9857
9858 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
9859
9860         * rtl.h (lowpart_subreg): Move in file.
9861         * loop-iv.c (lowpart_subreg): Move to...
9862         * simplify-rtx.c (lowpart_subreg): ...here.
9863           (simplify_binary_operation_1): Use lowpart_subreg instead of
9864           simplify_gen_subreg.
9865         * expr.c (expand_expr_real_2): Ditto.
9866         * emit-rtl.c (gen_lowpart_common): Ditto.
9867         * combine.c (gen_lowpart_for_combine): Ditto.
9868         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
9869           expand_debug_source_expr): Ditto.
9870
9871 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
9872
9873         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
9874         (expand_builtin_atomic_clear): Remove support for atomic_clear
9875         pattern.
9876
9877 2015-07-30  Richard Biener  <rguenther@suse.de>
9878
9879         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
9880         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
9881         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
9882         redundant operand canonicalization.
9883
9884 2015-07-30  David Sherwood  <david.sherwood@arm.com>
9885
9886         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
9887         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
9888         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
9889         * config/arm/arm.c (neon_valid_immediate): Likewise.
9890         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
9891         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
9892         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
9893         (expand_vec_perm_vpshufb2_vpermq): Likewise.
9894         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
9895         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
9896         * config/i386/sse.md
9897         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
9898         (*ssse3_palignr<mode>_perm): Likewise.
9899         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
9900         * config/spu/spu.c (arith_immediate_p): Likewise.
9901         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9902         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
9903
9904 2015-07-30  Richard Biener  <rguenther@suse.de>
9905
9906         * genmatch.c (decision_tree::gen_gimple): Merge with ...
9907         (decision_tree::gen_generic): ... this into ...
9908         (decision_tree::gen): ... this.
9909         (main): Adjust callers.
9910
9911 2015-07-30  Richard Biener  <rguenther@suse.de>
9912
9913         * genmatch.c (verbose): New global.
9914         (warning_at): Add overload with source_location.
9915         (capture_info::capture_info): Add bool whether generating gimple
9916         or generic.  Add gimple member.
9917         (capture_info::cinfo): Add capture member.
9918         (capture_info::walk_match): Record capture.  Warn on
9919         non-captured leafs.
9920         (capture_info::walk_c_expr): Add more fragments captures cannot
9921         escape through.  Warn on escaped captures.
9922         (dt_simplify::gen_1): Warn on operands we force to have no
9923         side-effects.
9924         (main): Initialize verbose.
9925         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
9926
9927 2015-07-30  Richard Biener  <rguenther@suse.de>
9928
9929         PR middle-end/67053
9930         * match.pd: Allow both operands to independently have conversion
9931         when simplifying compares of addresses.
9932
9933 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
9934
9935         PR target/66217
9936         PR target/67045
9937         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
9938         around those cases that need one.
9939
9940 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
9941
9942         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
9943
9944 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
9945
9946         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
9947         New.  Copied from config/i386/gnu-user.h.
9948         (ASM_COMMENT_START): Likewise.
9949         (DBX_REGISTER_NUMBER): Likewise.
9950
9951 2015-07-29  Richard Biener  <rguenther@suse.de>
9952
9953         * gimple-fold.c (fold_gimple_cond): Remove.
9954         (fold_stmt_1): Do not call it.
9955
9956 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
9957
9958         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
9959         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
9960
9961         * config/aarch64/aarch64-modes.def: Add HFmode.
9962
9963         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9964         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
9965
9966         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
9967         aarch64_promoted_type): New.
9968
9969         (aarch64_float_const_representable_p): Disable HFmode.
9970         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
9971         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
9972         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
9973
9974         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
9975         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
9976
9977         * config/aarch64/iterators.md (GPF_F16): New.
9978
9979 2015-07-29  Richard Biener  <rguenther@suse.de>
9980
9981         * match.pd: Merge address comparison patterns and make them
9982         handle some more cases.
9983
9984 2015-07-29  Richard Biener  <rguenther@suse.de>
9985
9986         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
9987         (parser::parse_capture): Add bool argument on whether to reject
9988         unknown captures.
9989         (parser::parse_expr): Adjust.
9990         (parser::parse_op): Likewise.
9991         (parser::parse_pattern): Likewise.
9992
9993 2015-07-29  Richard Biener  <rguenther@suse.de>
9994
9995         * gimple-fold.c (has_use_on_stmt): New function.
9996         (replace_stmt_with_simplification): Use it to allow
9997         abnormals originally referenced in the stmt.
9998         (fold_stmt_1): Canonicalize operand order.
9999
10000 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10001
10002         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10003         GET_MODE_INNER unconditionally.
10004         * config/spu/spu.c (arith_immediate_p): Likewise.
10005         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10006         * expmed.c (synth_mult): Remove check for VOIDmode result from
10007         GET_MODE_INNER.
10008         (expand_mult_const): Likewise.
10009         * fold-const.c (fold_binary_loc): Replace call to element_precision
10010         with call to GET_MODE_PRECISION.
10011         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10012         m->name.
10013         (emit_mode_inner): Likewise.
10014         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10015         result check.
10016         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10017         (GET_MODE_UNIT_PRECISION): Likewise.
10018         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10019         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10020         * stor-layout.c (bitwise_type_for_mode): Update assert.
10021         (element_precision): Remove.
10022
10023 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10024
10025         * target-insns.def (reload_load_address): New targetm instruction
10026         pattern.
10027         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10028
10029 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10030
10031         * target-insns.def (atomic_test_and_set): New targetm instruction
10032         pattern.
10033         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10034         HAVE_*/gen_* interface.
10035
10036 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10037
10038         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10039         patterns.
10040         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10041         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10042         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10043         * rtlanal.c (nonzero_bits1): Likewise.
10044         (num_sign_bit_copies1): Likewise.
10045
10046 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10047
10048         * target-insns.def (eh_return): New targetm instruction pattern.
10049         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10050         interface.
10051         * function.c (thread_prologue_and_epilogue_insns): Remove
10052         preprocessor condition.
10053
10054 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10055
10056         * target-insns.def (indirect_jump): New targetm instruction pattern.
10057         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10058         interface.
10059
10060 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10061
10062         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10063         instead of nonimmediate_operand.  Remove C condiition.
10064
10065 2015-07-28  Richard Biener  <rguenther@suse.de>
10066
10067         * match.pd: Add more simplification of address comparisons.
10068
10069 2015-07-28  Richard Biener  <rguenther@suse.de>
10070
10071         * match.pd: Re-order two cases in comparison with max/min
10072         value simplification to make it apply for bools.
10073
10074 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10075
10076         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10077         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10078         (aarch64_rtx_costs): Properly strip extend or extract before
10079         passing down to rtx costs again.
10080
10081 2015-07-28  Nick Clifton  <nickc@redhat.com>
10082
10083         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10084         Optimizes the case where -mes0 is active and a constant symbolic
10085         address is used.
10086         * config/rl78/rl78-protos.h: Prototype the new function.
10087         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10088
10089 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10090
10091         * tree-parloops.c (reduc_stmt_res): New function.
10092         (initialize_reductions, add_field_for_reduction)
10093         (create_phi_for_local_result, create_loads_for_reductions)
10094         (create_stores_for_reduction, build_new_reduction): Handle case that
10095         reduc_stmt is a phi.
10096         (gather_scalar_reductions): Allow double_reduc reductions.
10097
10098 2015-07-28  Richard Biener  <rguenther@suse.de>
10099
10100         * fold-const.c (fold_comparison): Remove equality folding
10101         of decl addresses ...
10102         * match.pd: ... here and merge with existing pattern.
10103
10104 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10105
10106         PR tree-optimization/66828
10107         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10108         from int64_t to uint64_t.
10109
10110 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10111
10112         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10113         as valid only in the error message of the driver, not in the
10114         messages of the language compilers.
10115
10116 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10117
10118         * tree-parloops.c (gather_scalar_reductions): Simplify function
10119         structure.
10120
10121 2015-07-27  Marek Polacek  <polacek@redhat.com>
10122
10123         * ipa-devirt.c (types_same_for_odr): Fix typo.
10124
10125 2015-07-27  Jason Merrill  <jason@redhat.com>
10126
10127         PR debug/66468
10128         * dwarf2out.c (gen_inlined_subroutine_die): Check
10129         cgraph_function_possibly_inlined_p.
10130
10131 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10132
10133         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10134         Place integer variant first.
10135         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10136
10137 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10138
10139         PR/63870
10140         * config/arm/arm-builtins.c (enum arm_builtins):
10141         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10142         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10143         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10144         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10145         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10146
10147 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10148
10149         PR/63870
10150         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10151         Add qualifier_lane_index.
10152         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10153         (arm_getlane_qualifiers): Use qualifier_lane_index.
10154         (arm_lanemac_qualifiers): Rename to...
10155         (arm_mac_n_qualifiers): ...this.
10156         (LANEMAC_QUALIFIERS): Rename to...
10157         (MAC_N_QUALIFIERS): ...this.
10158         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10159         (arm_setlane_qualifiers): Use qualifier_lane_index.
10160         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10161         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10162         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10163         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10164
10165         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10166         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10167         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10168         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10169         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10170         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10171         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10172         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10173         qualifiers to TERNOP_IMM.
10174         (vdup_lane): Change qualifiers to GETLANE.
10175         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10176         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10177         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10178         vqdmlsl_n): Change qualifiers to MAC_N.
10179
10180         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10181         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10182         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10183         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10184         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10185         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10186         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10187         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10188         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10189         Remove call to neon_lane_bounds.
10190
10191 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10192
10193         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10194         Place integer variant first.
10195
10196 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10197
10198         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10199         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10200         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10201         for armv6kz targets.
10202         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10203         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10204         (FL_FOR_ARCH6ZK): Remove.
10205         (FL_FOR_ARCH6KZ): New.
10206         (arm_arch6zk): New declaration.
10207         * config/arm/arm-tables.opt: Regenerate.
10208         * config/arm/arm.c (arm_arch6kz): New.
10209         (arm_option_override): Set arm_arch6kz.
10210         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10211         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10212         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10213
10214 2015-07-27  Marek Polacek  <polacek@redhat.com>
10215
10216         PR c++/66555
10217         PR c/54979
10218         * doc/invoke.texi: Document -Wtautological-compare.
10219
10220 2015-07-27  Richard Biener  <rguenther@suse.de>
10221
10222         * genmatch.c (decision_tree::gen_gimple): Split out large
10223         subtrees into separate functions.
10224         (decision_tree::gen_generic): Likewise.
10225
10226 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10227
10228         * config/alpha/alpha.c: Use SUBREG_P predicate.
10229         * config/alpha/predicates.md: Ditto.
10230
10231 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10232
10233         * config.host (s390*-*-*): Include driver-native.c only when
10234         building with s390* as host *and* target.
10235
10236 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10237
10238         PR target/66930
10239         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10240         T bit register modified_between_p check.
10241
10242 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10243
10244         * config/i386/i386.c: Use SUBREG_P predicate.
10245         * config/i386/i386.md: Ditto.
10246         * config/i386/sse.md: Ditto.
10247         * config/i386/predicates.md: Ditto.
10248
10249 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10250
10251         PR target/67004
10252         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10253         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10254
10255 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10256
10257         * Makefile.in: Remove use of TREEBROWSER.
10258         * config.in: Regenerated.
10259         * configure: Regenerated.
10260         * configure.ac: Remove definition of TREEBROWSER.
10261         * tree-browser.c: Removed.
10262         * tree-browser.def: Removed.
10263
10264 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10265
10266         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10267         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10268         Graphite.
10269         (scopdet_basic_block_info): Print when a loop or bb cannot be
10270         represented in Graphite.
10271
10272 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10273
10274         PR target/66648
10275         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10276         execution guard when min_size is less than size_needed.
10277
10278 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10279
10280         * doc/install.texi: Document supported versions of ISL.
10281
10282 2015-07-25  Jeff Law  <law@redhat.com>
10283
10284         Revert:
10285         PR lto/66752
10286         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10287         unable to find X NE 0 in the tables, return X as the simplified
10288         condition.
10289         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10290         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10291         to VISISTED_BBS.  */
10292         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10293         after removing the control flow statement and unnecessary edges.
10294
10295 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10296
10297         Revert:
10298         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10299
10300         PR rtl-optimization/64164
10301         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10302         * tree-ssa-copyrename.c: Removed.
10303         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10304         -ftree-coalesce-vars.
10305         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10306         * common.opt (ftree-copyrename): Ignore.
10307         (ftree-coalesce-inlined-vars): Likewise.
10308         * doc/invoke.texi: Remove the ignored options above.
10309         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10310         * tree-ssa-coalesce.h: ... here.
10311         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10312         headers required by it.
10313         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10314         across variables when flag_tree_coalesce_vars.  Check register
10315         use and promoted modes to allow coalescing.  Moved to
10316         tree-ssa-coalesce.c.
10317         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10318         with its member functions to tree-ssa-coalesce.c.
10319         (var_map_base_init): Likewise.  Renamed to
10320         compute_samebase_partition_bases.
10321         (partition_view_normal): Drop want_bases parameter.
10322         (partition_view_bitmap): Likewise.
10323         * tree-ssa-live.h: Adjust declarations.
10324         * tree-ssa-coalesce.c: Include explow.h.
10325         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10326         default defs at the entry point.
10327         (dump_part_var_map): New.
10328         (compute_optimized_partition_bases): New, called by...
10329         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10330         of compute_samebase_partition_bases.  Adjust.
10331         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10332         * cfgexpand.c (leader_merge): New.
10333         (get_rtl_for_parm_ssa_default_def): New.
10334         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10335         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10336         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10337         redundant MEM attr setting.
10338         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10339         from...
10340         (expand_one_stack_var): ... this.  New wrapper to check and
10341         skip already expanded SSA partitions.
10342         (record_alignment_for_reg_var): New, factored out of...
10343         (expand_one_var): ... this.
10344         (expand_one_ssa_partition): New.
10345         (adjust_one_expanded_partition_var): New.
10346         (expand_one_register_var): Check and skip already expanded SSA
10347         partitions.
10348         (expand_used_vars): Don't create DECLs for anonymous SSA
10349         names.  Expand all SSA partitions, then adjust all SSA names.
10350         (pass::execute): Replace the loops that set
10351         SA.partition_to_pseudo from partition leaders and cleared
10352         DECL_RTL for multi-location variables, and that which used to
10353         rename vars and set attrs, with one that clears DECL_RTL and
10354         checks that PARMs and RESULTs default_defs match DECL_RTL.
10355         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10356         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10357         * explow.c (promote_ssa_mode): New.
10358         * explow.h (promote_ssa_mode): Declare.
10359         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10360         * function.c: Include cfgexpand.h.
10361         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10362         (use_register_for_parm_decl): Wrapper for the above to
10363         special-case the result_ptr.
10364         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10365         (split_complex_args): Take assign_parm_data_all argument.
10366         Pass it to rtl_for_parm.  Set up rtl and context for split
10367         args.
10368         (assign_parms_augmented_arg_list): Adjust.
10369         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10370         multiple locations.  Recognize split complex args.
10371         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10372         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10373         (assign_parm_setup_block): Prefer SSA-assigned location.
10374         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10375         if stack_parm is NULL.
10376         (assign_parm_setup_stack): Prefer SSA-assigned location.
10377         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10378         rtl before testing for pointer bounds.  Special-case result_ptr.
10379         (expand_function_start): Maybe reset DECL_RTL of result.
10380         Prefer SSA-assigned location for result and static chain.
10381         Factor out DECL_RESULT and SET_DECL_RTL.
10382         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10383         anonymous SSA names.  Use promote_ssa_mode.
10384         (get_temp_reg): Likewise.
10385         (remove_ssa_form): Adjust.
10386         * stor-layout.c (layout_decl): Don't set mem attributes of
10387         non-MEMs.
10388         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10389         and get its reg_usage for reg invalidation.
10390         (compute_bb_dataflow): Pass it insn.
10391         (emit_notes_in_bb): Likewise.
10392
10393 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10394
10395         * config/i386/i386.c (ix86_va_start): Remove
10396         unneeded !TARGET_64BIT check.
10397         (ix86_gimplify_va_arg): Ditto.
10398
10399 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10400
10401         * graphite-sese-to-poly.c (build_poly_scop): Always call
10402         rewrite_commutative_reductions_out_of_ssa.
10403
10404 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10405
10406         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10407         flag_associative_math to FLOAT_TYPE_P.  Honour
10408         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10409
10410 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10411
10412         PR c++/64079
10413         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10414         and "%qD" in warning_at instead of "%q+D" in warning.
10415
10416 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10417
10418         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10419         (ix86_function_abi): Cleanup.
10420
10421 2015-07-24  Michael Darling  <darlingm@gmail.com>
10422
10423         PR other/66259
10424         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10425         * configure: Likewise
10426         * configure.ac: Likewise
10427         * doc/install.texi: Likewise
10428         * doc/tm.texi: Likewise
10429         * doc/tm.texi.in: Likewise
10430
10431 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10432
10433         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10434         manually swapping values.
10435         * cse.c (fold_rtx): Likewise.
10436         * lra-eliminations.c (form_sum): Likewise.
10437
10438 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10439
10440         PR target/64003
10441         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10442         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10443         (*jcc_1, *jcc_2, jump, simple_return_internal)
10444         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10445         Set length_nobnd attribute instead of length attribute.
10446         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10447         (length_nobnd): Remove attribute.
10448         (length): Remove length_nobnd processing.
10449
10450 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10451
10452         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10453         for clarity. Broken out of ...
10454         (omp_notice_variable): ... here.
10455
10456 2015-07-24  Gary Funck  <gary@intrepid.com>
10457
10458         PR middle-end/66984
10459         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10460         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10461
10462 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10463
10464         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10465         exit-first loop transform.
10466
10467 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10468
10469         PR 66714
10470         * tree-cfg.c (struct replace_decls_d): New struct.
10471         (replace_block_vars_by_duplicates_1): New function.
10472         (replace_block_vars_by_duplicates): Use it to replace the decls
10473         in the value exprs by duplicates.
10474
10475 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10476
10477         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10478         -shared, -symbolic, -rdynamic.
10479
10480 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10481
10482         PR target/65711
10483         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10484         -dynamic-linker within %{!static %{!shared, and -rdynamic within
10485         %{!static.
10486
10487 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10488
10489         PR ipa/66566
10490         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10491         edge summary is available.
10492
10493 2015-07-24  Richard Biener  <rguenther@suse.de>
10494
10495         * genmatch.c (struct dt_node): Add statistic fields.
10496         (dt_node::analyze): New method.
10497         (decision_tree::gen_gimple): Call analyze on the root node
10498         and print statistics to stderr.
10499         (decision_tree::gen_generic): Likewise.
10500
10501 2015-07-24  Richard Biener  <rguenther@suse.de>
10502
10503         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10504         against the highest or lowest possible integer ...
10505         * match.pd: ... as patterns here.
10506
10507 2015-07-24  Richard Biener  <rguenther@suse.de>
10508
10509         * genmatch.c (struct capture_info): Add same_as field.
10510         (capture_info::capture_info): Initialize same_as.
10511         (capture_info::walk_match): Compute same_as.
10512         (capture_info::walk_result): Compute stuff for the leader.
10513         (capture_info::walk_c_expr): Likewise.
10514         (dt_simplify::gen_1): Only look at leaders when deciding
10515         to force no side-effects or emit side-effects of omitted operands.
10516
10517 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10518
10519         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10520         reg note to the GPR -> FPR save instructions.
10521
10522 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10523
10524         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10525         cheaper.
10526         (s390_expand_insv): Don't generate risbg pattern for constant zero
10527         sources.
10528         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10529         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
10530         splitters.
10531
10532 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10533
10534         * config/s390/s390.c (s390_reorg): Clean up handling of processors
10535         with
10536         -mtune=
10537         (s390_issue_rate): Likewise.
10538         (s390_sched_reorder): Likewise.
10539         (s390_sched_variable_issue): Likewise.
10540         (s390_loop_unroll_adjust): Likewise.
10541         (s390_option_override):  Likewise.
10542
10543 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10544
10545         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10546         processor capabilities with -march=native.
10547         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10548         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
10549         (S390_TARGET_BITS_STRING): Macro to simplify specs.
10550
10551 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10552
10553         * config/s390/s390.c (s390_issue_rate): Handle
10554         PROCESSOR_2094_Z9_EC.
10555         (s390_option_override): Likewise.
10556         (s390_adjust_priority): Likewise.
10557
10558 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10559
10560         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10561         when cross compiling.
10562
10563 2015-07-24  Richard Biener  <rguenther@suse.de>
10564
10565         * fold-const.c (maybe_canonicalize_comparison_1): Move
10566         A code CST canonicalization ...
10567         * match.pd: ... to a pattern here.
10568
10569 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
10570
10571         Revert:
10572         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10573         PR target/63521
10574         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10575         (HONOR_REG_ALLOC_ORDER): Define.
10576
10577 2015-07-24  Richard Biener  <rguenther@suse.de>
10578
10579         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10580         * fold-const.c (fold_comparison): Move parameter does not
10581         alias &local simplification ...
10582         * match.pd: ... as a pattern here.
10583
10584 2015-07-24  Richard Biener  <rguenther@suse.de>
10585
10586         * gimple-fold.c (replace_stmt_with_simplification): Special-case
10587         valueizing call operands.
10588         * gimple-match-head.c (maybe_push_res_to_seq): Take
10589         number of call arguments from ops array.
10590         (do_valueize): New function.
10591         (gimple_simplify): Return true if valueization changed
10592         any operand even if the result didn't simplify further.
10593
10594 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10595
10596         PR middle-end/25530
10597         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10598
10599 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10600
10601         PR middle-end/25529
10602         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10603
10604 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10605
10606         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10607         instruction.
10608
10609 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10610
10611         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10612         clean up.
10613
10614 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
10615
10616         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10617         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
10618         targets here.
10619         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10620         ms_va_list_type_node initialization.
10621
10622 2015-07-23  Jeff Law  <law@redhat.com>
10623
10624         PR lto/66752
10625         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10626         unable to find X NE 0 in the tables, return X as the simplified
10627         condition.
10628         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10629         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10630         to VISISTED_BBS.  */
10631         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10632         after removing the control flow statement and unnecessary edges.
10633
10634 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10635
10636         * tree-pass.h (get_current_pass_name): Removed.
10637
10638 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10639
10640         PR rtl-optimization/64164
10641         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10642         * tree-ssa-copyrename.c: Removed.
10643         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10644         -ftree-coalesce-vars.
10645         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10646         * common.opt (ftree-copyrename): Ignore.
10647         (ftree-coalesce-inlined-vars): Likewise.
10648         * doc/invoke.texi: Remove the ignored options above.
10649         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10650         * tree-ssa-coalesce.h: ... here.
10651         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10652         headers required by it.
10653         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10654         across variables when flag_tree_coalesce_vars.  Check register
10655         use and promoted modes to allow coalescing.  Moved to
10656         tree-ssa-coalesce.c.
10657         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10658         with its member functions to tree-ssa-coalesce.c.
10659         (var_map_base_init): Likewise.  Renamed to
10660         compute_samebase_partition_bases.
10661         (partition_view_normal): Drop want_bases parameter.
10662         (partition_view_bitmap): Likewise.
10663         * tree-ssa-live.h: Adjust declarations.
10664         * tree-ssa-coalesce.c: Include explow.h.
10665         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10666         default defs at the entry point.
10667         (dump_part_var_map): New.
10668         (compute_optimized_partition_bases): New, called by...
10669         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10670         of compute_samebase_partition_bases.  Adjust.
10671         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10672         * cfgexpand.c (leader_merge): New.
10673         (get_rtl_for_parm_ssa_default_def): New.
10674         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10675         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10676         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10677         redundant MEM attr setting.
10678         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10679         from...
10680         (expand_one_stack_var): ... this.  New wrapper to check and
10681         skip already expanded SSA partitions.
10682         (record_alignment_for_reg_var): New, factored out of...
10683         (expand_one_var): ... this.
10684         (expand_one_ssa_partition): New.
10685         (adjust_one_expanded_partition_var): New.
10686         (expand_one_register_var): Check and skip already expanded SSA
10687         partitions.
10688         (expand_used_vars): Don't create DECLs for anonymous SSA
10689         names.  Expand all SSA partitions, then adjust all SSA names.
10690         (pass::execute): Replace the loops that set
10691         SA.partition_to_pseudo from partition leaders and cleared
10692         DECL_RTL for multi-location variables, and that which used to
10693         rename vars and set attrs, with one that clears DECL_RTL and
10694         checks that PARMs and RESULTs default_defs match DECL_RTL.
10695         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10696         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10697         * explow.c (promote_ssa_mode): New.
10698         * explow.h (promote_ssa_mode): Declare.
10699         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10700         * function.c: Include cfgexpand.h.
10701         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10702         (use_register_for_parm_decl): Wrapper for the above to
10703         special-case the result_ptr.
10704         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10705         (split_complex_args): Take assign_parm_data_all argument.
10706         Pass it to rtl_for_parm.  Set up rtl and context for split
10707         args.
10708         (assign_parms_augmented_arg_list): Adjust.
10709         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10710         multiple locations.  Recognize split complex args.
10711         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10712         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10713         (assign_parm_setup_block): Prefer SSA-assigned location.
10714         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10715         if stack_parm is NULL.
10716         (assign_parm_setup_stack): Prefer SSA-assigned location.
10717         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10718         rtl before testing for pointer bounds.  Special-case result_ptr.
10719         (expand_function_start): Maybe reset DECL_RTL of result.
10720         Prefer SSA-assigned location for result and static chain.
10721         Factor out DECL_RESULT and SET_DECL_RTL.
10722         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10723         anonymous SSA names.  Use promote_ssa_mode.
10724         (get_temp_reg): Likewise.
10725         (remove_ssa_form): Adjust.
10726         * stor-layout.c (layout_decl): Don't set mem attributes of
10727         non-MEMs.
10728         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10729         and get its reg_usage for reg invalidation.
10730         (compute_bb_dataflow): Pass it insn.
10731         (emit_notes_in_bb): Likewise.
10732
10733 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
10734
10735         PR target/66217
10736         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10737         prototype.
10738         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10739         (rs6000_emit_2insn_and): Handle dot forms.
10740         * config/rs6000/rs6000.md (and<mode>3): Adjust.
10741         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
10742         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10743
10744 2015-07-23  Richard Biener  <rguenther@suse.de>
10745
10746         * generic-match-head.c: Include cgraph.h.
10747         * gimple-match-head.c: Likewise.
10748         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10749         SSA names.
10750         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10751         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
10752         pattern.
10753
10754 2015-07-23  Richard Biener  <rguenther@suse.de>
10755
10756         * gimple-fold.c (fold_gimple_cond): Do not require folding
10757         results to pass valid_gimple_rhs_p.
10758         * tree-cfg.h (fold_cond_expr_cond): Remove.
10759         * tree-cfg.c (fold_cond_expr_cond): Likewise.
10760         (make_edges): Do not call it.
10761         * tree-inline.c (tree_function_versioning): Likewise.
10762
10763 2015-07-23  Tom de Vries  <tom@codesourcery.com>
10764
10765         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10766         vect_force_simple_reduction.
10767         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10768         (vect_is_simple_reduction_1): Add and handle
10769         need_wrapping_integral_overflow parameter.
10770         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10771         need_wrapping_integral_overflow parameter.
10772         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10773         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10774         decl.
10775
10776 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
10777
10778         PR tree-optimization/66926,66951
10779         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10780         INNER_LOOP and fix up condition for renaming virtual operands.
10781
10782 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10783
10784         * combine.c (try_combine): Use std::swap instead of manually
10785         swapping.
10786
10787 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
10788
10789         * config/mips/i6400.md: New file.
10790         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10791         (mips64r6): Likewise.
10792         (i6400): Define.
10793         * config/mips/mips-tables.opt: Regenerate.
10794         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10795         (mips_issue_rate): Add support for i6400.
10796         (mips_multipass_dfa_lookahead): Likewise.
10797         * config/mips/mips.h (TUNE_I6400): Define.
10798         * config/mips/mips.md: Include i6400.md.
10799         (processor): Add i6400.
10800         * doc/invoke.texi (-march=@var{arch}): Add i6400.
10801
10802 2015-07-23  Richard Biener  <rguenther@suse.de>
10803
10804         PR middle-end/66916
10805         * match.pd: Guard widen and sign-change comparison simplification
10806         with single_use.
10807
10808 2015-07-23  Richard Biener  <rguenther@suse.de>
10809
10810         PR tree-optimization/66945
10811         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10812         ::before_dom_children): Force the propagators idea of
10813         non-executable edges to materialize, not what the folder
10814         chooses.
10815
10816 2015-07-23  Richard Biener  <rguenther@suse.de>
10817
10818         * gimple.h (gimple_cond_make_false): Use 0 != 0.
10819         (gimple_cond_make_true): Use 1 != 0.
10820
10821 2015-07-22  DJ Delorie  <dj@redhat.com>
10822
10823         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
10824         slashes.
10825
10826         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
10827         (ashrhi3): Likewise.
10828         (lshrhi3): Likewise.
10829         (movhi): Take advantage of zero-extend to load small constants.
10830         (movpsi): Likewise.
10831         (and<mode>3): Likewise.
10832         (zero_extendqihi2): Likewise.
10833         (zero_extendqisi2): New.
10834         * config/msp430/constraints.md (N,O): New.
10835         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
10836
10837 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
10838
10839         PR target/66954
10840         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
10841         to enum feature_priority and feature_list.
10842         (fold_builtin_cpu): Add F_AES to enum processor_features
10843         and isa_names_table.
10844
10845 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
10846
10847         PR driver/66737
10848         * config/i386/linux-common.h (MPX_SPEC): Use linker option
10849         for 64bit target only.
10850
10851 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10852
10853         * config/nvptx/nvptx.c: Expand some comments.
10854
10855 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
10856
10857         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
10858         (cortex_a53_advsimd): ...This.
10859
10860 2015-07-22  Richard Biener  <rguenther@suse.de>
10861
10862         * genmatch.c (expr::gen_transform): Clarify error message
10863         and display location.
10864
10865 2015-07-22  Richard Biener  <rguenther@suse.de>
10866
10867         * genmatch.c (struct operand): Add location member.
10868         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
10869         constructors.
10870         (struct simplify): Remove match_location and result_location
10871         members.
10872         (elsehwere): Adjust.
10873
10874 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
10875
10876         * config/mips/m5100.md: New file.
10877         * config/mips/mips-cpus.def (m5100, m5101): Define.
10878         * config/mips/mips-tables.opt: Regenerate.
10879         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
10880         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
10881         -march=m5101 to -mips32r5.
10882         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
10883         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
10884         !-msoft-float.
10885         * config/mips/mips.md: Include m5100.md.
10886         (processor): Add m5100.
10887         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
10888
10889 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
10890
10891         * config/mips/mips-cpus.def (interaptiv): Define.
10892         * config/mips/mips-tables.opt: Regenerate.
10893         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
10894         -mips32r2.
10895         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
10896         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
10897
10898 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10899
10900         PR target/63521
10901         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10902         (HONOR_REG_ALLOC_ORDER): Define.
10903
10904 2015-07-22  Richard Biener  <rguenther@suse.de>
10905
10906         PR tree-optimization/66952
10907         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
10908         blocks we end up executing unconditionally reset all SSA
10909         info such as range and alignment.
10910         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
10911         * tree-ssanames.c (reset_flow_sensitive_info): New function.
10912
10913 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10914
10915         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
10916         typo in attribute.
10917
10918 2015-07-22  Richard Biener  <rguenther@suse.de>
10919
10920         * genmatch.c (parser::parse_result): Properly handle
10921         match with result operands and conditions.
10922
10923 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
10924
10925         PR target/63870
10926         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10927         Add qualifier_struct_load_store_lane_index.
10928         (aarch64_types_loadstruct_lane_qualifiers): Use
10929         qualifier_struct_load_store_lane_index for lane index argument for
10930         last argument.
10931         (aarch64_types_storestruct_lane_qualifiers): Ditto.
10932         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10933         (aarch64_simd_expand_args): Add new argument describing mode of
10934         builtin. Check lane bounds for arguments with
10935         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10936         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
10937         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
10938         (aarch64_simd_expand_builtin): Handle arguments with
10939         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
10940         aarch64_simd_expand_args.
10941         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
10942         vst[234]_lane with BUILTIN_VALLDIF.
10943         * config/aarch64/aarch64-simd.md:
10944         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
10945         endianness reversal on lane index.
10946         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
10947         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
10948         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
10949         (vec_store_lanesci_lane<mode>): Ditto.
10950         (vec_store_lanesxi_lane<mode>): Ditto.
10951         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
10952         reversal of lane index.
10953         (aarch64_ld3_lane<mode>): Ditto.
10954         (aarch64_ld4_lane<mode>): Ditto.
10955         (aarch64_st2_lane<mode>): Ditto.
10956         (aarch64_st3_lane<mode>): Ditto.
10957         (aarch64_st4_lane<mode>): Ditto.
10958         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
10959         to qmode. Add new mode parameter. Update uses.
10960         (__LD3_LANE_FUNC): Ditto.
10961         (__LD4_LANE_FUNC): Ditto.
10962         (__ST2_LANE_FUNC): Ditto.
10963         (__ST3_LANE_FUNC): Ditto.
10964         (__ST4_LANE_FUNC): Ditto.
10965
10966 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
10967
10968         * doc/invoke.texi (Language Independent Options): Rename node to
10969         Diagnostic Message Formatting Options.
10970
10971 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
10972
10973         PR ipa/66424.
10974         * lra-remat.c (operand_to_remat): Prevent using insns with input
10975         subregs processed separately by IRA.
10976
10977 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
10978
10979         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
10980         straight loops.
10981         (single_imm_use): Check for iterator node.
10982         (num_imm_uses): Likewise.
10983         * tree-ssa-operands.c (has_zero_uses_1): Delete.
10984         (single_imm_use_1): Check for iterator node.
10985
10986 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
10987             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10988
10989         * configure.ac: Add check for new options in isl-0.15.
10990         * config.in, configure: Rebuilt.
10991         * graphite-blocking.c: Include <isl/constraint.h>
10992         * graphite-interchange.c,  graphite-poly.c: Likewise.
10993         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
10994         * graphite.c: Likewise.
10995         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
10996         <isl/union_set.h>.
10997         * graphite-dependences.c: Include <isl/constraint.h>.
10998         (max_number_of_out_dimensions): Returns isl_stat.
10999         (extend_schedule_1): Likewise
11000         (extend_schedule): Corresponding changes.
11001         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11002         <isl/union_set.h>.
11003         (getSingleMap): Change return type of isl_stat.
11004         (optimize_isl): Conditionally use
11005         isl_options_set_schedule_serialize_sccs.
11006         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11007         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11008
11009 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11010
11011         PR target/66956
11012         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11013         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11014
11015 2015-07-21  Richard Biener  <rguenther@suse.de>
11016
11017         PR tree-optimization/66948
11018         * genmatch.c (capture_info::walk_match): Also recurse to
11019         captures.  Properly compute expr state from captures of
11020         captures.
11021         * match.pd: Add single-use guards to
11022         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11023
11024 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11025
11026         * config/nvptx/mkoffload.c (process): Add static destructor call.
11027
11028 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11029
11030         PR middle-end/66915
11031         * match.pd (A - B -> A + (-B)): Don't allow folding
11032         when type if a fixed-point type.
11033
11034 2015-07-20  DJ Delorie  <dj@redhat.com>
11035
11036         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11037         (iorqi3_real): Likewise for set1.
11038
11039 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11040
11041         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11042         for !TARGET_64BIT.
11043
11044 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11045
11046         * graphite-isl-ast-to-gimple.c:
11047         Refactor so that each function can access 'region'. This will help
11048         maintain a parameter rename_map within a region.
11049
11050 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11051
11052         * config/rs6000/rs6000.md (*lt0_disi): New.
11053
11054 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11055
11056         PR target/66217
11057         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11058         "available letters" comment.
11059         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11060         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11061         and_2rld_operand):  Delete.
11062         (and_operand): Adjust.
11063         (rotate_mask_operator): New.
11064         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11065         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11066         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11067         extract_ME): Delete.
11068         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11069         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11070         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11071         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11072         rs6000_emit_2insn_and): New.
11073         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11074         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11075         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11076         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11077         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11078         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11079         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11080         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11081         rs6000_emit_2insn_and): New.
11082         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11083         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11084         handling.
11085         <NOT>: Don't fall through to next case.
11086         <AND>: Handle the various rotate-and-mask cases directly.
11087         <IOR>: Always cost as one insn.
11088         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11089         (and<mode>3): Adjust expander for the new patterns.
11090         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11091         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11092         (*and<mode>3_imm_dot_shifted): New.
11093         (*and<mode>3_mask): Delete, rewrite as ...
11094         (and<mode>3_mask): ... New.
11095         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11096         (andsi3_internal0_nomc): Delete.
11097         (*andsi3_internal6): Delete.
11098         (*and<mode>3_2insn): New.
11099         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11100         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11101         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11102         *insvdi_internal3): Delete.
11103         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11104         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11105         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11106         *ior<mode>_mask): New.
11107         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11108         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11109         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11110         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11111         Delete.
11112         (ashr<mode>3): Delete expander.
11113         (*ashr<mode>3): Rename to ...
11114         (ashr<mode>3): ... This.
11115         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11116         (*rotldi3_internal4, *rotldi3_internal5 and split,
11117         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11118         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11119         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11120         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11121         (splitter for loading a mask): Adjust.
11122         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11123
11124 2015-07-20  Marek Polacek  <polacek@redhat.com>
11125
11126         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11127         output_add_clobbers, output_added_clobbers_hard_reg_p,
11128         gen_rtx_scratch): Remove declarations.
11129
11130 2015-07-20  Marek Polacek  <polacek@redhat.com>
11131
11132         PR c++/55095
11133         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11134
11135 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11136
11137         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11138         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11139
11140 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11141
11142         * combine.c (combine_simplify_rtx): Move simplification step
11143         before various transformations/substitutions.
11144
11145 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11146
11147         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11148         (struct int_traits): Likewise.
11149
11150 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11151
11152         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11153         function to vmsdbgout_function_decl.
11154
11155 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11156
11157         PR target/66922
11158         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11159         from misaligned positions.
11160         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11161
11162 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11163
11164         PR middle-end/46851
11165         PR middle-end/60340
11166         * Makefile.in: Removed omega.o.
11167         * common.opt: Document flag fcheck-data-deps as deprecated.
11168         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11169         its associated params: omega-max-vars, omega-max-geqs,
11170         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11171         omega-max-keys, omega-eliminate-redundant-constraints.
11172         * doc/loop.texi: Remove all the section on Omega.
11173         * graphite-blocking.c: Include missing params.h: it used to be
11174         included through tree-data-ref.h and omega.h.
11175         * graphite-isl-ast-to-gimple.c: Same.
11176         * graphite-optimize-isl.c: Same.
11177         * graphite-sese-to-poly.c: Same.
11178         * graphite.c: Same.
11179         * omega.c: Remove.
11180         * omega.h: Remove.
11181         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11182         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11183         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11184         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11185         * passes.def: Remove pass_check_data_deps.
11186         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11187         (dump_conflict_function): Same.
11188         (dump_subscript): Same.
11189         (print_direction_vector): Same.
11190         (print_dir_vectors): Same.
11191         (print_lambda_vector): Same.
11192         (print_dist_vectors): Same.
11193         (dump_data_dependence_relation): Same.
11194         (dump_data_dependence_relations): Same.
11195         (dump_dist_dir_vectors): Same.
11196         (dump_ddrs): Same.
11197         (init_omega_eq_with_af): Removed.
11198         (omega_extract_distance_vectors): Removed.
11199         (omega_setup_subscript): Removed.
11200         (init_omega_for_ddr_1): Removed.
11201         (init_omega_for_ddr): Removed.
11202         (ddr_consistent_p): Removed.
11203         (compute_affine_dependence): Do not use omega to check data
11204         dependences.
11205         (compute_data_dependences_for_bb): Removed.
11206         (analyze_all_data_dependences): Removed.
11207         (tree_check_data_deps): Removed.
11208         * tree-data-ref.h: Do not include omega.h.
11209         (compute_data_dependences_for_bb): Removed.
11210         (tree_check_data_deps): Removed.
11211         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11212         (make_pass_check_data_deps): Removed.
11213         * tree-ssa-phiopt.c: Include params.h.
11214         * tree-vect-data-refs.c: Same.
11215         * tree-vect-slp.c: Same.
11216
11217 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11218
11219         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11220         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11221         (mem->fpreg splitters): Ditto.
11222         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11223         Disable DFmode for TARGET_64BIT.
11224
11225 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11226
11227         PR target/66906
11228         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11229         chain on the stack.
11230
11231 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11232
11233         * config/nvptx/mkoffload.c (process): Constify host data.
11234         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11235         Constify host data.
11236         (generate_host_descr_file): Likewise.
11237
11238 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11239             Sebastian Pop  <s.pop@samsung.com>
11240
11241         PR middle-end/61929
11242         * graphite-dependences.c (add_pdr_constraints): Renamed
11243         pdr->extent to pdr->subscript_sizes.
11244         * graphite-interchange.c (build_linearized_memory_access): Add
11245         back all gcc_assert's that the "isl_int to isl_val conversion"
11246         patch has removed.  Refactored.
11247         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11248         * graphite-poly.c (new_poly_dr): Same.
11249         (free_poly_dr): Same.
11250         * graphite-poly.h (struct poly_dr): Same.
11251         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11252         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11253         * graphite-scop-detection.h: Fix space.
11254         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11255         back all gcc_assert's removed by a previous patch.
11256         (wrap): Remove the_isl_ctx global variable that the same patch has
11257         added.
11258         (build_loop_iteration_domains): Same.
11259         (add_param_constraints): Same.
11260         (pdr_add_data_dimensions): Same.  Refactored.
11261         (build_poly_dr): Renamed extent to subscript_sizes.
11262
11263 2015-07-17  Marek Polacek  <polacek@redhat.com>
11264
11265         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11266         * match.pd: ... here.
11267
11268 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11269
11270         * config/nvptx/mkoffload.c (process): Constify target data.
11271         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11272         Constify target data.
11273         (generate_target_offloadend_file): Likewise.
11274
11275 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11276
11277         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11278         to allow renaming of PHI arguments on edges incoming from outer
11279         loop header, add corresponding check before start PHI iterator.
11280         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11281         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11282         with true force_vectorize.  Set-up dominator for outer loop too.
11283         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11284         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11285         was marked with force_vectorize and has restricted cfg.
11286         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11287         inner loop.
11288         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11289         do peeling for outer loops.
11290
11291 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11292             Matthias Klose  <doko@ubuntu.com>
11293
11294         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11295         build-sysroot, sysroot from the `Miscenalleous configure options' to
11296         the `Directories' section and strip trailing `/' from with_sysroot.
11297         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11298         * configure: Regenerated.
11299
11300 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11301
11302         PR target/66824
11303         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11304         (TARGET_HARD_DF_REGS): Ditto.
11305         (TARGET_HARD_XF_REGS): Ditto.
11306         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11307         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11308         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11309         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11310         (*movsf_internal): Add alternatives 16 and 17. Enable
11311         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11312
11313 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11314
11315         PR rtl-optimization/66891
11316         * calls.c (expand_call): Wrap precompute_register_parameters with
11317         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11318
11319 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11320
11321         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11322         Define target data struct and initialize it.
11323
11324 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11325
11326         PR rtl-optimization/66626
11327         * ira.h (emit-rtl.h): Include.
11328         (non_spilled_static_chain_regno_p): New.
11329         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11330         unless it is non spilled static chain pseudo.
11331         (assign_hard_rego): Spill memory profitable allocno unless it is
11332         non spilled static chain pseudo.
11333         (allocno_spill_priority_compare): Put non spilled static chain
11334         pseudo at the end of sorted array.
11335         (improve_allocation): Do nothing if we have static chain and
11336         non-local goto.
11337         (allocno__priority_compare_func): Put non spilled static chain
11338         pseudo at the beginning of sorted array.
11339         (move_spill_restore): Ignore non spilled static chain pseudo.
11340         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11341         to non spilled static chain pseudo.
11342         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11343         pseudo at the beginning of sorted array.
11344         (spill_for): Spill non spilled static chain pseudo last.
11345         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11346         check for equivalence.
11347
11348 2015-07-16  Martin Liska  <mliska@suse.cz>
11349
11350         PR ipa/66896.
11351         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11352         dst_ctx if it does not exist.
11353
11354 2015-07-16  Martin Liska  <mliska@suse.cz>
11355
11356         * hash-set.h (remove): New function.
11357         (iterator): New iteration class for hash_set.
11358
11359 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11360
11361         * genattrtab.c (make_canonical): Add a file_location parameter.
11362         Use fatal_at rather than fatal.
11363         (get_attr_value): Likewise.  Update call to make_canonical.
11364         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11365         (make_internal_attr): Update calls accordingly.
11366
11367 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11368
11369         * read-md.h (message_with_line, error_with_line): Delete.
11370         * read-md.c (message_with_line, error_with_line): Delete.
11371         * gensupport.h: Include read-md.h.
11372         (md_rtx_info): New structure.
11373         (read_md_rtx): Use it.  Return a bool success value.
11374         * gensupport.c (read_md_rtx): Likewise.
11375         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11376         (main): Update after interface changes.
11377         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11378         (main): Update after interface changes.
11379         * genattrtab.c (insn_code_number): Delete.
11380         (optimize_attrs): Add a max_insn_code parameter and use it instead
11381         of insn_code_number.
11382         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11383         Use *_at rather than *_with_line functions.
11384         (gen_insn): Likewise.
11385         (gen_delay): Likewise.
11386         (gen_insn_reserv): Likewise.
11387         (gen_bypass): Take an md_rtx_info rather than an rtx.
11388         (main): Update after interface changes.  Use a local max_insn_code
11389         variable instead of insn_code_number.
11390         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11391         an rtx.  Use fatal_at rather than fatal.
11392         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11393         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11394         (gen_absence_set, gen_final_absence_set, gen_automaton)
11395         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11396         (main): Update after interface changes.
11397         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11398         and code number.
11399         (main): Update after interface changes.
11400         * genconditions.c (main): Use new read_md_rtx interface.
11401         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11402         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11403         (main): Update after interface changes.
11404         * genemit.c (insn_code_number, insn_index_number): Delete.
11405         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11406         Use fatal_at rather than fatal.
11407         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11408         rather than fatal.
11409         (gen_split): Likewise.
11410         (main): Update after interface changes.
11411         * genextract.c (line_no): Delete.
11412         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11413         Update call to walk_rtx.
11414         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11415         rather than message_with_line.
11416         (walk_rtx): Add an md_rtx_info argument.  Update call to
11417         VEC_safe_set_locstr.
11418         (main): Update after interface changes.
11419         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11420         and lineno.  Use error_at rather than separate message_with_line
11421         calls and have_error assignments.
11422         (main): Update after interface changes.
11423         * genmddump.c (main): Use new read_md_rtx interface.
11424         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11425         (main): Update after interface changes.
11426         * genoutput.c (next_code_number): Delete.
11427         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11428         (gen_peephole, gen_expand, gen_split): Likewise.
11429         (note_constraint): Likewise.  Use *_at rather than *_with_line
11430         functions.
11431         (main): Update after interface changes.
11432         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11433         rtx and lineno.
11434         (main): Update after interface changes.
11435         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11436         than an rtx and lineno.
11437         (process_define_constraint): Likewise.
11438         (process_define_register_constraint): Likewise.
11439         (main): Update after interface changes.
11440         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11441         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11442         Use *_at rather than *_with_line functions.
11443         (match_pattern_2): Likewise.
11444         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11445         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11446         Use *_at rather than *_with_line functions.
11447         * gentarget-def.c (add_insn): New function.
11448         (main): Use it.  Use new read_md_rtx interface.
11449
11450 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11451
11452         * gensupport.h (compute_test_codes): Take a file_location rather
11453         than a line number.
11454         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11455         rather than *_with_line functions.
11456         (process_define_predicate): Update call to compute_test_codes.
11457         * genpreds.c (validate_exp): Take a file_location rather than a
11458         line number.  Use *_at functions rather than *_with_line functions.
11459         (process_define_predicate): Update call to validate_exp.
11460         (constraint_data): Replace lineno field with a file_location.
11461         (add_constraint): Take a file_location rather than a line number.
11462         Use *_at functions rather than *_with_line functions.  Fix error
11463         message for address constraints.  Update after changes to
11464         validate_exp, constraint_data and compute_test_codes.
11465         (process_define_constraint): Update accordingly.
11466         (process_define_register_constraint): Likewise.
11467
11468 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11469
11470         * genoutput.c (data): Use a file_location to record the source
11471         position.
11472         (nothing): Delete.
11473         (idata, idata_end): Remove initialization.
11474         (constraint_data): Replace lineno with a file_location.
11475         (output_insn_data): Update after changes to data.
11476         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11477         (scan_operands): Likewise, using *_at rather than *_with_line
11478         functions.
11479         (process_template): Likewise.
11480         (validate_insn_alternatives): Likewise.
11481         (validate_insn_operands): Likewise.
11482         (validate_optab_operands): Likewise.
11483         (init_insn_for_nothing): Initialize idata and idata_end.
11484         (note_constraint): Update after changes to constraint_data,
11485         using at rather than with_line functions.
11486         (mdep_constraint_len): Take a file_location rather than a
11487         line number.  Use at rather than with_line functions.
11488
11489 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11490
11491         * read-md.h (fatal_at): Declare.
11492         * read-md.c (fatal_at): New function.
11493         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11494         to record the source position.
11495         (check_attr_test): Take a file_location instead of a line number.
11496         Use fatal_at instead of fatal.
11497         (check_attr_value): Update after above changes, using "at"
11498         rather than "with_line" reporting functions.
11499         (convert_set_attr_alternative): Likewise.
11500         (gen_attr): Likewise.
11501         (check_defs): Likewise.  Don't assign to read_md_filename.
11502         (gen_insn): Update initialization after above changes.
11503         (gen_delay): Likewise.
11504         (write_insn_cases): Print the filename for a define_peephole.
11505         (gen_insn_reserv): Take a line number as argument and update
11506         the call to check_attr_test.
11507         (main): Pass a line number to gen_insn_reserv.
11508
11509 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11510
11511         * read-md.h (file_location): New structure.
11512         (directive_handler_t): Take a file_location rather than a line number.
11513         (message_at, error_at): Declare.
11514         (read_skip_construct): Delete.
11515         * read-md.c (message_with_line_1): Replace with...
11516         (message_at_1): ...this new function.
11517         (message_at, error_at): New functions.
11518         (message_with_line, error_with_line): Update to use message_at_1.
11519         (handle_enum): Take a file_location rather than a line number
11520         and use error_at for error reporting.
11521         (handle_include): Likewise.
11522         (read_skip_construct): Likewise.  Make static.
11523         (handle_file): Update after above changes.  Pass a file_location
11524         rather than a line number to handle_directive.
11525         * gensupport.c (queue_elem): Replace separate filename and lineno
11526         with a file_location.
11527         (queue_pattern): Replace filename and lineno arguments with a
11528         file_location.  Update after change to queue_elem.
11529         (process_define_predicate): Replace lineno argument with a
11530         file_location and use error_at for error reporting.  Update
11531         after above changes.
11532         (process_rtx): Likewise.
11533         (subst_pattern_match): Likewise.
11534         (get_alternatives_number): Likewise.
11535         (alter_predicate_for_insn): Likewise.
11536         (rtx_handle_directive): Likewise.
11537         (is_predicable): Update after above changes, using error_at rather
11538         than error_with_line.
11539         (has_subst_attribute): Likewise.
11540         (identify_predicable_attribute): Likewise.
11541         (alter_attrs_for_subst_insn): Likewise.
11542         (process_one_cond_exec): Likewise.
11543         (process_substs_on_one_elem): Likewise.
11544         (process_define_subst): Likewise.
11545         (check_define_attr_duplicates): Likewise.
11546         (read_md_rtx): Update after change to queue_elem.
11547
11548 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11549
11550         * genoutput.c (next_index_number): Delete.
11551         (data): Remove index_number.
11552         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11553         (main): Remove manipulation of next_index_number.
11554
11555 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11556
11557         * genattrtab.c (check_attr_value): Remove handling of null attrs.
11558         (make_canonical): Likewise.
11559
11560 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
11561
11562         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11563         instead of adjust_address_nv.
11564         (restore_stack_nonlocal): Likewise.
11565         (nonlocal_goto): Likewise.
11566
11567 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11568
11569         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11570         not have a corresponding loop header phi.
11571
11572 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11573
11574         * tree-parloops.c (create_loads_for_reductions): Handle case that
11575         reduction is unused.
11576
11577 2015-07-16  Richard Biener  <rguenther@suse.de>
11578
11579         PR tree-optimization/66894
11580         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11581         about deriving NE_EXPR from truncated values.
11582
11583 2015-07-16  Martin Liska  <mliska@suse.cz>
11584
11585         * alloc-pool.h
11586         (object_allocator): Add new class.
11587         (pool_allocator::initialize): Use the underlying class.
11588         (pool_allocator::allocate): Likewise.
11589         (pool_allocator::remove): Likewise.
11590         (operator new): A new generic allocator.
11591         * asan.c (struct asan_mem_ref): Remove unused members.
11592         (asan_mem_ref_new): Replace new operator with
11593         object_allocator::allocate.
11594         (free_mem_ref_resources): Change deallocation.
11595         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11596         with object_allocator.
11597         * config/sh/sh.c (add_constant): Replace new operator with
11598         object_allocator::allocate.
11599         (sh_reorg): Change call to a release method.
11600         * cselib.c (struct elt_list): Remove unused members.
11601         (new_elt_list): Replace new operator with
11602         object_allocator::allocate.
11603         (new_elt_loc_list): Likewise.
11604         (new_cselib_val): Likewise.
11605         (unchain_one_elt_list): Change delete operator with remove method.
11606         (unchain_one_elt_loc_list): Likewise.
11607         (unchain_one_value): Likewise.
11608         (cselib_finish): Release newly added static allocators.
11609         * cselib.h (struct cselib_val): Remove unused members.
11610         (struct elt_loc_list): Likewise.
11611         * df-problems.c (df_chain_alloc): Replace pool_allocator with
11612         object_allocator.
11613         * df-scan.c (struct df_scan_problem_data): Likewise.
11614         (df_scan_alloc): Likewise.
11615         * df.h (struct dataflow): Likewise.
11616         * dse.c (struct read_info_type): Likewise.
11617         (struct insn_info_type): Likewise.
11618         (struct dse_bb_info_type): Likewise.
11619         (struct group_info): Likewise.
11620         (struct deferred_change): Likewise.
11621         (get_group_info): Likewise.
11622         (delete_dead_store_insn): Likewise.
11623         (free_read_records): Likewise.
11624         (replace_read): Likewise.
11625         (check_mem_read_rtx): Likewise.
11626         (scan_insn): Likewise.
11627         (dse_step1): Likewise.
11628         (dse_step7): Likewise.
11629         * et-forest.c (struct et_occ): Remove unused members.
11630         (et_new_occ): Use allocate instead of new operator.
11631         (et_new_tree): Likewise.
11632         (et_free_tree): Call release method explicitly.
11633         (et_free_tree_force): Likewise.
11634         (et_free_pools): Likewise.
11635         (et_split): Use remove instead of delete operator.
11636         * et-forest.h (struct et_node): Remove unused members.
11637         * ipa-cp.c: Change pool_allocator to object_allocator.
11638         * ipa-inline-analysis.c: Likewise.
11639         * ipa-profile.c: Likewise.
11640         * ipa-prop.c: Likewise.
11641         * ipa-prop.h: Likewise.
11642         * ira-build.c (initiate_cost_vectors): Cast return value.
11643         (ira_allocate_cost_vector): Likewise.
11644         * ira-color.c (struct update_cost_record): Remove unused members.
11645         * lra-int.h (struct lra_live_range): Likewise.
11646         (struct lra_copy): Likewise.
11647         (struct lra_insn_reg): Likewise.
11648         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11649         * lra.c (new_insn_reg): Replace new operator with allocate method.
11650         (free_insn_regs): Same for operator delete.
11651         (finish_insn_regs): Release new static allocator.
11652         (finish_insn_recog_data): Likewise.
11653         (lra_free_copies): Replace delete operator with remove method.
11654         (lra_create_copy): Replace operator new with allocate method.
11655         (invalidate_insn_data_regno_info): Same for remove method.
11656         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11657         (free_debug_insn_changes): Replace delete operator with remove method.
11658         (replace_oldest_value_reg): Replace operator new with allocate method.
11659         (pass_cprop_hardreg::execute): Release new static variable.
11660         * sched-deps.c (sched_deps_init): Change pool_allocator to
11661         object_allocator.
11662         * sel-sched-ir.c: Likewise.
11663         * sel-sched-ir.h: Likewise.
11664         * stmt.c (expand_case): Likewise.
11665         (expand_sjlj_dispatch_table): Likewise.
11666         * tree-sra.c (struct access): Remove unused members.
11667         (struct assign_link): Likewise.
11668         (sra_deinitialize): Release newly added static pools.
11669         (create_access_1):Replace operator new with allocate method.
11670         (build_accesses_from_assign): Likewise.
11671         (create_artificial_child_access): Likewise.
11672         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11673         pool_allocator to object_allocator.
11674         * tree-ssa-pre.c: Likewise.
11675         * tree-ssa-reassoc.c: Likewise.
11676         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11677         * tree-ssa-strlen.c: Likewise.
11678         * tree-ssa-structalias.c: Likewise.
11679         * var-tracking.c (onepart_pool_allocate): New function.
11680         (unshare_variable): Use the newly added function.
11681         (variable_merge_over_cur): Likewise.
11682         (variable_from_dropped): Likewise.
11683         (variable_was_changed): Likewise.
11684         (set_slot_part): Likewise.
11685         (emit_notes_for_differences_1): Likewise.
11686         (vt_finalize): Release newly added static pools.
11687
11688 2015-07-16  Martin Jambor  <mjambor@suse.cz>
11689
11690         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
11691         all uses.  Fix two typos in its general comment.
11692         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
11693
11694 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
11695
11696         * config/i386/linux-common.h (LINK_MPX): New.
11697         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11698         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11699         indicating '-z bndplt' support by linker.
11700         * configure: Regenerate.
11701         * config.in: Regenerate.
11702
11703 2015-07-16  Richard Biener  <rguenther@suse.de>
11704
11705         * fold-const.c (fold_widened_comparison): Remove.
11706         (fold_sign_changed_comparison): Likewise.
11707         (fold_comparison): Move widened and sign-changed comparison
11708         simplification ...
11709         * match.pd: ... to patterns here.
11710         * generic-match-head.c: Include target.h.
11711         * gimple-match-head.c: Likewise.
11712
11713 2015-07-16  Richard Biener  <rguenther@suse.de>
11714
11715         * tree-ssa-dom.c (dom_valueize): New function.
11716         (record_temporary_equivalences): Also record equivalences
11717         for dominating stmts that have uses of equivalences we are
11718         about to record.
11719
11720 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
11721
11722         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11723         add_autoinc_candidates.
11724         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11725         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11726         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11727         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11728         Call new function.
11729         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11730         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11731         Remove parameter struct iv*.  Call add_autoinc_candidates here.
11732         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11733         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11734         Call new function.
11735         (find_iv_candidates): Call new functions.
11736
11737 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11738
11739         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11740         uninitialized-variable warning.
11741
11742 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11743
11744         PR target/65249
11745         * config/sh/sh.md (movdi): Split simple reg move to two movsi
11746         when the destination is R0.
11747
11748 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
11749
11750         PR target/66866
11751         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11752         * config/i386/i386.c (ix86_expand_pextr): New function.
11753         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
11754         for non-lowpart subregs.
11755         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11756         (insv<mode>): Use SWI248 mode iterator.
11757         (insv<mode>_1): Ditto.
11758
11759 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11760             Sebastian Pop  <s.pop@samsung.com>
11761
11762         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11763         iterator to use_stmt.
11764
11765 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11766             Sebastian Pop <s.pop@samsung.com>
11767
11768         * graphite-scop-detection.c (build_scops_1): Discard scops for
11769         which entry==exit.
11770
11771 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11772             Sebastian Pop <s.pop@samsung.com>
11773
11774         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11775         case of a return statement in scop.
11776
11777 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11778             Sebastian Pop <s.pop@samsung.com>
11779
11780         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11781         INTEGER_TYPE parameters.
11782         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11783         VECTOR_CST in scan_tree_for_params.
11784         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11785
11786 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11787
11788         * gimple-pretty-print.h: Don't include pretty-print.h.
11789         * tree-streamer.h: Don't include lto-streamer.h.
11790         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11791         * gimple-streamer-in.c: Remove redundant includes.
11792         * gimple-streamer-out.c: Likewise.
11793         * ipa-devirt.c: Likewise.
11794         * ipa-icf.c: Likewise.
11795         * ipa-inline-analysis.c: Likewise.
11796         * ipa-polymorphic-call.c: Likewise.
11797         * ipa-profile.c: Likewise.
11798         * ipa-prop.c: Likewise.
11799         * ipa-pure-const.c: Likewise.
11800         * lto-cgraph.c: Likewise.
11801         * lto-streamer-in.c: Likewise.
11802         * lto-streamer-out.c: Likewise.
11803         * lto-streamer.c: Likewise.
11804         * tree-streamer-in.c: Likewise.
11805         * tree-streamer-out.c: Likewise.
11806         * tree-streamer.c: Likewise.
11807
11808 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11809
11810         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11811         include input.h.
11812         * opts.c: Remove multiline #include comment.
11813
11814 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11815
11816         * config/nvptx/mkoffload.c (process): Add C++ protection to
11817         emitted code.
11818
11819 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11820
11821         PR target/66854
11822         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
11823         null before IEEE 128-bit floating point support patch.
11824
11825 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11826
11827         * simplify-rtx.c (simplify_ternary_operation): Add simplification
11828         for (!c) != {0,...,0} ? a : b for vector modes.
11829
11830 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
11831             Martin Jambor  <mjambor@suse.cz>
11832
11833         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
11834         struct func_body_info* instead of struct ipa_node_params*, expecting
11835         fbi->info to be filled in.  Replace throughout.  Adjust call to
11836         ipa_load_from_parm_agg.
11837         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
11838         instead of struct ipa_node_params*.  Adjust calls to other functions
11839         so that they pass either fbi or fbi->info.
11840         (set_switch_stmt_execution_predicate): Likewise.
11841         (will_be_nonconstant_predicate): Likewise.
11842         (compute_bb_predicates): Likewise.
11843         (estimate_function_body_sizes): Move asserts earlier.  Fill in
11844         struct func_body_info, replace parms_info with fbi.info.  Adjust
11845         calls to functions that now accept struct func_body_info.
11846         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
11847         (struct func_body_info): Likewise.
11848         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
11849         remove static.  Adjust callers.
11850         (ipa_load_from_parm_agg): Remove.
11851         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
11852         (func_body_info): Likewise.
11853         (ipa_load_from_parm_agg): Adjust prototype.
11854
11855 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11856
11857         * gensupport.c (rtx_handle_directive): Adjust.
11858         * read-rtl.c (apply_iterators): Take vector to add rtxs to
11859         instead of expr list rtx.
11860         (add_define_attr_for_define_subst): Likewise.
11861         (add_define_subst_attr): Likewise.
11862         (read_subst_mapping): Likewise.
11863         (read_rtx): Likewise.
11864         * rtl.h (read_rtx): Adjust.
11865
11866 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11867
11868         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
11869
11870 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11871
11872         PR target/58066
11873         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
11874         (*tls_local_dynamic_base_64_<mode>): Ditto.
11875         (*tls_local_dynamic_base_64_largepic): Ditto.
11876         (tls_global_dynamic_64_<mode>): Update expander pattern.
11877         (tls_local_dynamic_base_64_<mode>): Ditto.
11878
11879 2015-07-15  Richard Biener  <rguenther@suse.de>
11880
11881         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
11882         and bool_var == 1 -> bool_var simplifications ...
11883         * match.pd: ... to patterns here.  Factor out negate_expr_p
11884         cases from the A - B -> A + (-B) patterns as negate_expr_p
11885         predicate and add a -(A + B) -> (-B) - A pattern.
11886
11887 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11888
11889         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
11890
11891 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
11892             Robert Suchanek  <robert.suchanek@imgtec.com>
11893
11894         * config/mips/mips.c (mips_int_mask): New enum.
11895         (mips_shadow_set): Likewise.
11896         (int_mask): New variable.
11897         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
11898         (machine_function): Add int_mask and use_shadow_register_set.
11899         (mips_attribute_table): Add attribute handlers for interrupt and
11900         use_shadow_register_set.
11901         (mips_interrupt_mask): New static function.
11902         (mips_handle_interrupt_attr): Likewise.
11903         (mips_handle_use_shadow_register_set_attr): Likewise.
11904         (mips_use_shadow_register_set): Change return type to enum
11905         mips_shadow_set.  Add argument handling for use_shadow_register_set
11906         attribute.
11907         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
11908         compare with mips_shadow_set enum.
11909         (mips_compute_frame_info): Add interrupt mask and
11910         use_shadow_register_set to per-function information structure.
11911         Add a stack slot for EPC unconditionally.
11912         (mips_expand_prologue): Compare use_shadow_register_set value
11913         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
11914         masked interrupt register but in EIC mode use K0 and save Cause in K0.
11915         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
11916         copying the stack pointer from the shadow register set.
11917         * config/mips/mips.h (SR_IM0): New define.
11918         * config/mips/mips.md (mips_rdpgpr): Rename to...
11919         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
11920         * doc/extend.texi (Declaring Attributes of Functions): Document
11921         optional arguments for interrupt and use_shadow_register_set
11922         attributes.
11923
11924 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
11925
11926         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
11927         interrupt attribute.
11928         (mips_expand_prologue): Disable the floating point unit in an ISR.
11929         * config/mips/mips.h (SR_COP1): New define.
11930
11931 2015-07-15  Richard Biener  <rguenther@suse.de>
11932
11933         * genmatch.c (parser::peek, parser::peek_ident): Add argument
11934         to tell how many tokens to peek ahead (default 1).
11935         (parser::eat_token, parser::eat_ident): Return token consumed.
11936         (parser::parse_result): Parse new switch statement.
11937         * match.pd: Use case statements where appropriate.
11938
11939 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11940
11941         PR rtl-optimization/58066
11942         * calls.c (expand_call): Precompute register parameters before stack
11943         alignment is performed.
11944
11945 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
11946
11947         PR rtl-optimization/66838
11948         * postreload.c (reload_cse_move2add): Also process
11949         CALL_INSN_FUNCTION_USAGE when resetting information of
11950         call-clobbered registers.
11951
11952 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11953             Cesar Philippidis  <cesar@codesourcery.com>
11954             Chung-Lin Tang  <cltang@codesourcery.com>
11955
11956         * config/nios2/constraints.md (U, v): New constraints.
11957         * config/nios2/predicates.md (rdprs_dcache_operand): New.
11958         (ldstex_memory_operand): New.
11959         * config/nios2/sync.md: New file.
11960         * config/nios2/nios2.md (unspecv): Add new builtin function
11961         UNSPECV codes.
11962         (rdprs, flushd, flushda, wrpie, eni): New patterns.
11963         (top-level): Include sync.md.
11964         * config/nios2/nios2.c (N2_FTYPES): Add function types for
11965         new builtins.
11966         (N2_BUILTINS): Add arch field setting, add new builtins.
11967         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
11968         for arch field.
11969         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
11970         Also handle ldex/stex/ldsex/stsex builtins.
11971         (nios2_expand_rdprs_builtin): New function.
11972         (nios2_expand_cache_builtin): New function.
11973         (nios2_expand_wrpie_builtin): New function.
11974         (nios2_expand_eni_builtin): New function.
11975         (nios2_expand_builtin): Add arch field handling and new builtin
11976         cases.
11977         * doc/extend.texi (Altera Nios II Built-in Functions): Document
11978         new builtins.
11979         * doc/md.texi (Machine Constraints): Document U and v constraints.
11980
11981 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
11982             Cesar Philippidis  <cesar@codesourcery.com>
11983             Chung-Lin Tang  <cltang@codesourcery.com>
11984
11985         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
11986         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
11987         callee_save_reg_size and uses_anonymous_args fields.
11988         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
11989         (nios2_create_cfa_notes): New function.
11990         (nios2_adjust_stack): New function for adjusting stack.
11991         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
11992         Use nios2_adjust_stack.
11993         (nios2_expand_epilogue): Likewise.
11994         (nios2_expand_return): New function.
11995         (nios2_can_use_return_insn): Update for CDX pop.n usage.
11996         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
11997         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
11998         * config/nios2/nios2.md (return): Use nios2_expand_return.
11999
12000 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12001             Cesar Philippidis  <cesar@codesourcery.com>
12002             Chung-Lin Tang  <cltang@codesourcery.com>
12003
12004         * config/nios2/predicates.md (pop_operation): New.
12005         (ldwm_operation, stwm_operation): New.
12006         (nios2_hard_register_operand): New.
12007         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12008         (ldstwm_operation_p): Declare.
12009         (gen_ldstwm_peep): Declare.
12010         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12011         (base_reg_adjustment_p): New.
12012         (pop_operation_p): New.
12013         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12014         (nios2_ldstwm_regset_p): New.
12015         (ldstwm_operation_p): New.
12016         (gen_ldst): New.
12017         (nios2_ldst_parallel): New.
12018         (struct ldswm_operand): Declare.
12019         (compare_ldstwm_operands): New.
12020         (can_use_cdx_ldstw): New.
12021         (gen_ldstwm_peep): New.
12022         * config/nios2/nios2-ldstwm.sml: New.
12023         * config/nios2/nios2.md: Include ldstwm.md.
12024         * config/nios2/ldstwm.md: Generated.
12025
12026 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12027             Cesar Philippidis  <cesar@codesourcery.com>
12028             Chung-Lin Tang  <cltang@codesourcery.com>
12029
12030         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12031         (REG_ALLOC_ORDER): Define.
12032         (ADJUST_REG_ALLOC_ORDER): Define.
12033         (HONOR_REG_ALLOC_ORDER): Define.
12034         (CDX_REG_P): Define.
12035         (ANDCLEAR_INT): Define.
12036         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12037         (nios2_label_align): Declare.
12038         (nios2_cdx_narrow_form_p): Declare.
12039         (nios2_adjust_reg_alloc_order): Declare.
12040         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12041         operation.
12042         (nios2_large_unspec_reloc_p): New function, split from...
12043         (nios2_legitimate_pic_operand_p): ...here.
12044         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12045         (nios2_print_operand_punct_valid_p): New.
12046         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12047         (split_mem_address): New.
12048         (split_alu_insn): New.
12049         (cdxreg): New.
12050         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12051         (enum nios2_add_insn_kind): New.
12052         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12053         (nios2_add_insn_classify): New.
12054         (nios2_add_insn_asm): New.
12055         (nios2_cdx_narrow_form_p): New.
12056         (label_align, min_labelno, max_labelno): New.
12057         (nios2_reorg): New.
12058         (nios2_label_align): New.
12059         (nios2_adjust_reg_alloc_order): New.
12060         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12061         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12062         * config/nios2/constraints.md (P): New constraint.
12063         * config/nios2/predicates.md (const_and_operand): New.
12064         (and_operand): New.
12065         (stack_memory_operand): New.
12066         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12067         (length): Update to use nios2_cdx_narrow_form_p().
12068         (type): Add new insn type values.
12069         (control, alu, st, ld, shift): Update insn reservations with
12070         new insn type values.
12071         (*high, *lo_sum): Define new insn patterns for constant generation.
12072         (movqi_internal, movhi_internal, movsi_internal): Reduce
12073         alternatives, update asm template to handle CDX variants, update
12074         type attributes.
12075         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12076         template, update type attributes.
12077         (extendhisi2, extendqi<mode>2): Likewise.
12078         (addsi3): Change to use function for asm string.
12079         (subsi3): Add CDX notation to asm template, update type attributes.
12080         (negsi3, one_cmplsi3): Likewise.
12081         (andsi3): New pattern, specialized from logical patterns.
12082         (<code>si3): Remove and case, combine alternatives, update asm
12083         template.
12084         (<shift_op>si3): Add CDX notation, update type attributes.
12085         (rotrsi3): Update type attribute.
12086         (*merge, extzv, insv): New insn patterns.
12087         (return): Change to define_expand.
12088         (simple_return): Add CDX notation, update type attributes.
12089         (indirect_jump): Add CDX notation.
12090         (jump): Update asm cases, update length attribute expression.
12091         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12092         (nios2_cbranch): Update asm cases and length attribute expression
12093         to handle CDX variants.
12094         (nios2_cmp<code>): Update asm template.
12095         (nop): Add CDX notation, update type attributes.
12096         (trap): Add CDX notation.
12097         (ctrapsi4): Update asm cases and length attribute expression to
12098         handle CDX variant.
12099         * doc/md.texi (Machine Constraints): Document P constraint.
12100
12101 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12102             Cesar Philippidis  <cesar@codesourcery.com>
12103             Chung-Lin Tang  <cltang@codesourcery.com>
12104
12105         * config/nios2/nios2.h (SMALL_INT12): New macro.
12106         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12107         (nios2_valid_addr_expr_p): Use it.
12108         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12109         with implicit "io" instructions on R2.
12110         * config/nios2/constraints.md (w): New constraint.
12111         * config/nios2/predicates.md (ldstio_memory_operand): New.
12112         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12113         operand predicate and constraint.
12114         (ld<bh>io_signed, st<bhw>io>): Likewise.
12115         * doc/md.texi (Machine Constraints): Document w constraint.
12116
12117 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12118             Cesar Philippidis  <cesar@codesourcery.com>
12119             Chung-Lin Tang  <cltang@codesourcery.com>
12120
12121         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12122         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12123         Nios II architecture level.
12124         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12125         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12126         (OPTION_DEFAULT_SPECS): Define.
12127         (ASM_SPEC): Add -march= spec strings.
12128         * config/nios2/nios2.c (nios2_option_override): Check for
12129         conflicts involving new options.
12130         * config.gcc (nios2*-*-*): Support --with-arch=.
12131         * doc/invoke.texi (Option Summary, Nios II Options): Document
12132         -march=, -mbmx, and -mcdx.
12133
12134 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12135
12136         PR rtl-optimization/66626
12137         * lra-constraints.c (lra_constraints): Prevent equivalence
12138         substitution for static chain pseudo in functions with nonlocal
12139         goto.
12140
12141 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12142
12143         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12144         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12145         -fstack-limit-symbol as well as -fstack-limit-register.
12146         (nios2_expand_prologue): Emit only a single stack limit check,
12147         even if multiple stack adjustments are required.
12148         (nios2_option_override): Diagnose unsupported combination of -fpic
12149         and -stack-limit-symbol.
12150
12151 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12152
12153         * Makefile.in (top_srcdir): New.
12154         * configure.ac: Use AM_ZLIB.
12155         * configure: Regeneated.
12156
12157 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12158
12159         PR target/66840
12160         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12161
12162 2015-07-14  Richard Biener  <rguenther@suse.de>
12163
12164         PR tree-optimization/66863
12165         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12166         what we record for conversion use stmt lhs inequalities.
12167
12168 2015-07-14  Richard Biener  <rguenther@suse.de>
12169
12170         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12171         (decision_tree::gen_gimple): Likewise.
12172
12173 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12174
12175         * gcc.c (greater_than_spec_func): Declare forward.
12176         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12177         -ftree-parallelize-loops={0,1}.
12178         (static_spec_functions): Add greater_than_spec_func function with name
12179         "gt".
12180         (greater_than_spec_func): New function.
12181
12182 2015-07-14  Richard Biener  <rguenther@suse.de>
12183
12184         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12185         wideing type conversion case from record_equivalences_from_incoming_edge
12186         and use record_equality to record equivalences.
12187         (record_equivalences_from_incoming_edge): Call
12188         record_temporary_equivalences.
12189
12190 2015-07-14  Richard Biener  <rguenther@suse.de>
12191
12192         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12193         (struct if_expr): New.
12194         (struct with_expr): Likewise.
12195         (is_a_helper): Add helpers for if_expr and with_expr.
12196         (struct simplify): Add simplify_kind enum and member.  Remove
12197         ifexpr_vec member.
12198         (simplify::simplify): Adjust.
12199         (lower_commutative): Adjust.
12200         (lower_opt_convert): Likewise.
12201         (lower_cond): Likewise.
12202         (replace_id): Handle with_expr and if_expr.
12203         (lower_for): Adjust.
12204         (dt_simplify::gen_1): New recursive worker, split out from ...
12205         (dt_simplify::gen): ... here.  Deal with if and with expansion
12206         recursively.
12207         (capture_info::capture_info): Take context argument
12208         (capture_info::walk_result): Only analyze specific result.
12209         (parser::parse_result): New function.
12210         (parser::parse_simplify): Adjust to parse ifs with then end
12211         else case.
12212         (parser::parse_if): Simplify.
12213         (parser::parse_pattern): Pass down simplify kind.
12214         * match.pd: Convert if structure to new syntax.
12215
12216 2015-07-13  Marek Polacek  <polacek@redhat.com>
12217
12218         * rtl.c (rtx_equal_p_cb): Fix typo.
12219
12220 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12221
12222         * omega.h: Don't include config.h, don't include params.h again if
12223         omega.h has already been included.
12224         * graphite-poly.h: Include sese.h.
12225         * graphite.c: Don't include sese.h, remove needless includes and
12226         minimize includes outside #ifdef HAVE_isl block.
12227         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12228         and wrap entire file in #ifdef HAVE_isl
12229         * graphite-dependences.c: Likewise.
12230         * graphite-interchange.c: Likewise.
12231         * graphite-isl-ast-to-gimple.c: Likewise.
12232         * graphite-optimize-isl.c: Likewise.
12233         * graphite-poly.c: Likewise.
12234         * graphite-scop-detection.c: Likewise.
12235         * graphite-sese-to-poly.c: Likewise.
12236
12237 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12238
12239         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12240
12241 2015-07-13  Renlin Li  <renlin.li@arm.com>
12242
12243         PR rtl/66556
12244         * simplify-rtx.c (simplify_const_relational_operation): Add
12245         side_effects_p checks.
12246
12247 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12248
12249         * bitmap.h: Fix double word typos.
12250         * builtins.c: Same.
12251         * calls.c: Same.
12252         * cfgloopmanip.c: Same.
12253         * cgraph.c: Same.
12254         * cgraph.h: Same.
12255         * cgraphclones.c: Same.
12256         * combine.c: Same.
12257         * config/aarch64/aarch64-protos.h: Same.
12258         * config/aarch64/aarch64.c: Same.
12259         * config/aarch64/aarch64.md: Same.
12260         * config/arm/arm.md: Same.
12261         * config/arm/arm1020e.md: Same.
12262         * config/arm/arm1026ejs.md: Same.
12263         * config/arm/arm926ejs.md: Same.
12264         * config/arm/fa526.md: Same.
12265         * config/arm/fa606te.md: Same.
12266         * config/arm/fa626te.md: Same.
12267         * config/arm/fa726te.md: Same.
12268         * config/arm/fmp626.md: Same.
12269         * config/darwin.c: Same.
12270         * config/epiphany/epiphany.c: Same.
12271         * config/frv/frv.c: Same.
12272         * config/ft32/ft32.c: Same.
12273         * config/gnu-user.h: Same.
12274         * config/h8300/constraints.md: Same.
12275         * config/i386/i386.c: Same.
12276         * config/i386/i386.md: Same.
12277         * config/iq2000/iq2000.md: Same.
12278         * config/mips/mips.c: Same.
12279         * config/mmix/mmix.md: Same.
12280         * config/moxie/moxie.c: Same.
12281         * config/nds32/nds32.md: Same.
12282         * config/pa/pa.h: Same.
12283         * config/rs6000/aix.h: Same.
12284         * config/rs6000/rs6000.h: Same.
12285         * config/sh/sh.c: Same.
12286         * config/tilegx/tilegx.md: Same.
12287         * config/tilepro/gen-mul-tables.cc: Same.
12288         * cse.c: Same.
12289         * dbxout.c: Same.
12290         * doc/invoke.texi: Same.
12291         * dse.c: Same.
12292         * dwarf2out.c: Same.
12293         * final.c: Same.
12294         * gcc.c: Same.
12295         * genmatch.c: Same.
12296         * gimplify.c: Same.
12297         * hash-table.h: Same.
12298         * internal-fn.c: Same.
12299         * ipa-cp.c: Same.
12300         * ipa-devirt.c: Same.
12301         * ipa-icf.c: Same.
12302         * ipa-icf.h: Same.
12303         * ipa-profile.c: Same.
12304         * ipa-prop.c: Same.
12305         * ipa-prop.h: Same.
12306         * ira.c: Same.
12307         * omp-low.c: Same.
12308         * reg-stack.c: Same.
12309         * regcprop.c: Same.
12310         * reorg.c: Same.
12311         * rtl.h: Same.
12312         * sbitmap.h: Same.
12313         * tree-eh.c: Same.
12314         * tree-inline.c: Same.
12315         * tree-sra.c: Same.
12316         * tree-ssa-dom.c: Same.
12317         * tree-ssa-loop-ivopts.c: Same.
12318         * tree-ssa-structalias.c: Same.
12319         * tree-ssa-tail-merge.c: Same.
12320         * tree-ssa-ter.c: Same.
12321         * tree-ssa-threadupdate.c: Same.
12322         * tree-ssa-uninit.c: Same.
12323         * tree-ssanames.c: Same.
12324         * tree-vect-loop-manip.c: Same.
12325         * tree-vrp.c: Same.
12326         * tree.c: Same.
12327         * valtrack.c: Same.
12328         * vec.h: Same.
12329
12330 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12331
12332         PR middle-end/66726
12333         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12334         tree_ssa_phiopt_worker): Call it.
12335
12336 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12337
12338         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12339         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12340         REG_EQUAL note.
12341
12342 2015-07-11  Marek Polacek  <polacek@redhat.com>
12343
12344         PR middle-end/66353
12345         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12346         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12347         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12348         rather than bb_has_abnormal_call_pred.
12349         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12350         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12351         rather than bb_has_abnormal_call_pred.
12352
12353 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12354
12355         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12356         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12357         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12358         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12359         v850_legitimate_address_p): New functions.
12360         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12361
12362 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12363
12364         PR target/66819
12365         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12366         indirect sibcall with register arguments if register available
12367         for argument passing.
12368         (init_cumulative_args): Set cfun->machine->arg_reg_available
12369         to (cum->nregs > 0) or to true if function has a variable
12370         argument list.
12371         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12372         to false if cum->nregs <= 0.
12373         * config/i386/i386.h (machine_function): Add arg_reg_available.
12374
12375 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12376
12377         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12378         and gen_higpart instead of gen_rtx_SUBREG.
12379         * config/i386/i386.md
12380         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12381         (read-modify peephole2): Use gen_lowpart instead of
12382         gen_rtx_SUBREG for operand 5.
12383
12384 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12385
12386         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12387         generated files.
12388         * config/tilepro/mul-tables.c: Regenerate.
12389         * config/tilegx/mul-tables.c: Regenerate.
12390
12391 2015-07-10  Richard Biener  <rguenther@suse.de>
12392
12393         * fold-const.c (distribute_bit_expr): Remove.
12394         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12395         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12396         to A & (B | C) and simplifying A << C1 << C2 to ...
12397         * match.pd: ... patterns here.
12398
12399 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12400
12401         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12402         Mark mem as READONLY and NOTRAP for PIC symbol.
12403
12404 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12405
12406         * gimple-predict.h: New file.
12407         (gimple_predict_predictor, gimple_predict_set_predictor,
12408         gimple_predict_outcome, gimple_predict_set_outcome,
12409         gimple_build_predict): Relocate here.
12410         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12411         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12412         gimple-predict.h.
12413         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12414         * basic-block.h: Don't include cfghooks.h.
12415         * backend.h: Don't include predict.h.
12416         * cfghooks.h: Include predict.h.
12417         * gimple-pretty-print.c: Include gimple-predict.h.
12418         * gimplify.c: Likwise.
12419         * predict.c: Adjust includes.
12420         * tree-inline.c: Likewise.
12421         * asan.c: Likewise.
12422         * auto-inc-dec.c: Likewise.
12423         * auto-profile.c: Likewise.
12424         * bb-reorder.c: Likewise.
12425         * builtins.c: Likewise.
12426         * caller-save.c: Likewise.
12427         * calls.c: Likewise.
12428         * cfganal.c: Likewise.
12429         * cfgbuild.c: Likewise.
12430         * cfg.c: Likewise.
12431         * cfgcleanup.c: Likewise.
12432         * cfgexpand.c: Likewise.
12433         * cfghooks.c: Likewise.
12434         * cfgloopanal.c: Likewise.
12435         * cfgloop.c: Likewise.
12436         * cfgloopmanip.c: Likewise.
12437         * cfgrtl.c: Likewise.
12438         * cgraph.c: Likewise.
12439         * cgraphunit.c: Likewise.
12440         * combine.c: Likewise.
12441         * cprop.c: Likewise.
12442         * cse.c: Likewise.
12443         * dce.c: Likewise.
12444         * dojump.c: Likewise.
12445         * dse.c: Likewise.
12446         * except.c: Likewise.
12447         * expmed.c: Likewise.
12448         * expr.c: Likewise.
12449         * final.c: Likewise.
12450         * fold-const.c: Likewise.
12451         * function.c: Likewise.
12452         * fwprop.c: Likewise.
12453         * gcc-plugin.h: Likewise.
12454         * gcse.c: Likewise.
12455         * genattrtab.c: Likewise.
12456         * genemit.c: Likewise.
12457         * gengtype.c: Likewise.
12458         * genopinit.c: Likewise.
12459         * genoutput.c: Likewise.
12460         * genpreds.c: Likewise.
12461         * genrecog.c: Likewise.
12462         * gimple-fold.c: Likewise.
12463         * gimple-iterator.c: Likewise.
12464         * gimple-ssa-isolate-paths.c: Likewise.
12465         * gimple-ssa-strength-reduction.c: Likewise.
12466         * graph.c: Likewise.
12467         * graphite-blocking.c: Likewise.
12468         * graphite.c: Likewise.
12469         * graphite-dependences.c: Likewise.
12470         * graphite-interchange.c: Likewise.
12471         * graphite-isl-ast-to-gimple.c: Likewise.
12472         * graphite-optimize-isl.c: Likewise.
12473         * graphite-poly.c: Likewise.
12474         * graphite-scop-detection.c: Likewise.
12475         * graphite-sese-to-poly.c: Likewise.
12476         * haifa-sched.c: Likewise.
12477         * ifcvt.c: Likewise.
12478         * internal-fn.c: Likewise.
12479         * ipa-cp.c: Likewise.
12480         * ipa-profile.c: Likewise.
12481         * ipa-split.c: Likewise.
12482         * ipa-utils.c: Likewise.
12483         * ira-build.c: Likewise.
12484         * ira-color.c: Likewise.
12485         * ira-conflicts.c: Likewise.
12486         * ira-costs.c: Likewise.
12487         * ira-emit.c: Likewise.
12488         * ira-lives.c: Likewise.
12489         * jump.c: Likewise.
12490         * loop-doloop.c: Likewise.
12491         * loop-init.c: Likewise.
12492         * loop-invariant.c: Likewise.
12493         * loop-unroll.c: Likewise.
12494         * lower-subreg.c: Likewise.
12495         * lra-assigns.c: Likewise.
12496         * lra.c: Likewise.
12497         * lra-coalesce.c: Likewise.
12498         * lra-constraints.c: Likewise.
12499         * lra-lives.c: Likewise.
12500         * lto-cgraph.c: Likewise.
12501         * lto-streamer-in.c: Likewise.
12502         * mode-switching.c: Likewise.
12503         * modulo-sched.c: Likewise.
12504         * omp-low.c: Likewise.
12505         * optabs.c: Likewise.
12506         * passes.c: Likewise.
12507         * postreload.c: Likewise.
12508         * postreload-gcse.c: Likewise.
12509         * profile.c: Likewise.
12510         * recog.c: Likewise.
12511         * regstat.c: Likewise.
12512         * reload1.c: Likewise.
12513         * reorg.c: Likewise.
12514         * rtlanal.c: Likewise.
12515         * sched-ebb.c: Likewise.
12516         * sel-sched-ir.c: Likewise.
12517         * sese.c: Likewise.
12518         * shrink-wrap.c: Likewise.
12519         * simplify-rtx.c: Likewise.
12520         * stmt.c: Likewise.
12521         * store-motion.c: Likewise.
12522         * tracer.c: Likewise.
12523         * trans-mem.c: Likewise.
12524         * tree-call-cdce.c: Likewise.
12525         * tree-cfg.c: Likewise.
12526         * tree-cfgcleanup.c: Likewise.
12527         * tree-chkp.c: Likewise.
12528         * tree-complex.c: Likewise.
12529         * tree-eh.c: Likewise.
12530         * tree-if-conv.c: Likewise.
12531         * tree-loop-distribution.c: Likewise.
12532         * tree-outof-ssa.c: Likewise.
12533         * tree-parloops.c: Likewise.
12534         * tree-predcom.c: Likewise.
12535         * tree-pretty-print.c: Likewise.
12536         * tree-profile.c: Likewise.
12537         * tree-sra.c: Likewise.
12538         * tree-ssa.c: Likewise.
12539         * tree-ssa-coalesce.c: Likewise.
12540         * tree-ssa-dce.c: Likewise.
12541         * tree-ssa-dom.c: Likewise.
12542         * tree-ssa-forwprop.c: Likewise.
12543         * tree-ssa-ifcombine.c: Likewise.
12544         * tree-ssa-loop-ch.c: Likewise.
12545         * tree-ssa-loop-im.c: Likewise.
12546         * tree-ssa-loop-ivcanon.c: Likewise.
12547         * tree-ssa-loop-ivopts.c: Likewise.
12548         * tree-ssa-loop-manip.c: Likewise.
12549         * tree-ssa-loop-prefetch.c: Likewise.
12550         * tree-ssa-loop-unswitch.c: Likewise.
12551         * tree-ssa-math-opts.c: Likewise.
12552         * tree-ssa-phiopt.c: Likewise.
12553         * tree-ssa-pre.c: Likewise.
12554         * tree-ssa-reassoc.c: Likewise.
12555         * tree-ssa-sink.c: Likewise.
12556         * tree-ssa-tail-merge.c: Likewise.
12557         * tree-ssa-threadedge.c: Likewise.
12558         * tree-ssa-threadupdate.c: Likewise.
12559         * tree-switch-conversion.c: Likewise.
12560         * tree-tailcall.c: Likewise.
12561         * tree-vect-data-refs.c: Likewise.
12562         * tree-vect-loop.c: Likewise.
12563         * tree-vect-loop-manip.c: Likewise.
12564         * tree-vectorizer.c: Likewise.
12565         * tree-vrp.c: Likewise.
12566         * ubsan.c: Likewise.
12567         * value-prof.c: Likewise.
12568         * varasm.c: Likewise.
12569         * var-tracking.c: Likewise.
12570         * config/aarch64/aarch64-builtins.c: Likewise.
12571         * config/aarch64/aarch64.c: Likewise.
12572         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12573         * config/alpha/alpha.c: Likewise.
12574         * config/arc/arc.c: Likewise.
12575         * config/arm/arm.c: Likewise.
12576         * config/avr/avr.c: Likewise.
12577         * config/bfin/bfin.c: Likewise.
12578         * config/c6x/c6x.c: Likewise.
12579         * config/cr16/cr16.c: Likewise.
12580         * config/cris/cris.c: Likewise.
12581         * config/darwin.c: Likewise.
12582         * config/darwin-c.c: Likewise.
12583         * config/epiphany/epiphany.c: Likewise.
12584         * config/epiphany/mode-switch-use.c: Likewise.
12585         * config/epiphany/resolve-sw-modes.c: Likewise.
12586         * config/fr30/fr30.c: Likewise.
12587         * config/frv/frv.c: Likewise.
12588         * config/ft32/ft32.c: Likewise.
12589         * config/h8300/h8300.c: Likewise.
12590         * config/i386/i386.c: Likewise.
12591         * config/i386/winnt.c: Likewise.
12592         * config/ia64/ia64.c: Likewise.
12593         * config/iq2000/iq2000.c: Likewise.
12594         * config/lm32/lm32.c: Likewise.
12595         * config/m32c/m32c.c: Likewise.
12596         * config/m32r/m32r.c: Likewise.
12597         * config/m68k/m68k.c: Likewise.
12598         * config/mcore/mcore.c: Likewise.
12599         * config/mep/mep.c: Likewise.
12600         * config/microblaze/microblaze.c: Likewise.
12601         * config/mips/mips.c: Likewise.
12602         * config/mmix/mmix.c: Likewise.
12603         * config/mn10300/mn10300.c: Likewise.
12604         * config/moxie/moxie.c: Likewise.
12605         * config/msp430/msp430.c: Likewise.
12606         * config/nds32/nds32.c: Likewise.
12607         * config/nds32/nds32-cost.c: Likewise.
12608         * config/nds32/nds32-fp-as-gp.c: Likewise.
12609         * config/nds32/nds32-intrinsic.c: Likewise.
12610         * config/nds32/nds32-isr.c: Likewise.
12611         * config/nds32/nds32-md-auxiliary.c: Likewise.
12612         * config/nds32/nds32-memory-manipulation.c: Likewise.
12613         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12614         * config/nds32/nds32-predicates.c: Likewise.
12615         * config/nios2/nios2.c: Likewise.
12616         * config/nvptx/nvptx.c: Likewise.
12617         * config/pa/pa.c: Likewise.
12618         * config/pdp11/pdp11.c: Likewise.
12619         * config/rl78/rl78.c: Likewise.
12620         * config/rs6000/rs6000.c: Likewise.
12621         * config/rx/rx.c: Likewise.
12622         * config/s390/s390.c: Likewise.
12623         * config/sh/sh.c: Likewise.
12624         * config/sh/sh-mem.cc: Likewise.
12625         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12626         * config/sh/sh_treg_combine.cc: Likewise.
12627         * config/sparc/sparc.c: Likewise.
12628         * config/spu/spu.c: Likewise.
12629         * config/stormy16/stormy16.c: Likewise.
12630         * config/tilegx/tilegx.c: Likewise.
12631         * config/tilepro/tilepro.c: Likewise.
12632         * config/v850/v850.c: Likewise.
12633         * config/vax/vax.c: Likewise.
12634         * config/visium/visium.c: Likewise.
12635         * config/xtensa/xtensa.c: Likewise.
12636
12637 2015-07-10  Richard Biener  <rguenther@suse.de>
12638
12639         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12640         (decision_tree::gen_gimple): Likewise.
12641         (decision_tree::gen_generic): Likewise.
12642
12643 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12644
12645         PR target/66813
12646         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12647         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12648
12649 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
12650
12651         PR middle-end/66820
12652         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12653         or ORT_TASK contexts.
12654         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12655         is non-zero.
12656
12657 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12658
12659         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12660         above function.
12661
12662 2015-07-10  Tom de Vries  <tom@codesourcery.com>
12663
12664         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12665         insert nit + 1 bound.
12666
12667 2015-07-10  Richard Biener  <rguenther@suse.de>
12668
12669         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12670         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12671         (if_convertible_loop_p_1): For this always compute bb predicates.
12672         (if_convertible_loop_p): And free them.
12673
12674 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12675
12676         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12677         in dump message.
12678
12679 2015-07-10  Richard Biener  <rguenther@suse.de>
12680
12681         PR tree-optimization/66823
12682         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12683         inverted predicate.
12684
12685 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
12686
12687         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12688         to handle mips[32|64]r3 and mips[32|64]r5.
12689
12690 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
12691
12692         PR middle-end/66633
12693         * tree-nested.c (get_static_chain): Or in a flag into
12694         info->static_chain_added.
12695         (get_frame_field, get_nonlocal_debug_decl): Likewise.
12696         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12697         2015-07-01 changes.
12698         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12699         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12700         add it to clauses.
12701
12702         PR tree-optimization/66718
12703         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12704         field.
12705         (vect_simd_lane_linear): New function.
12706         (vectorizable_simd_clone_call): Support using linear arguments for
12707         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12708
12709 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12710
12711         PR target/66821
12712         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12713
12714 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12715
12716         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12717         Use machine mode, not enum machine_mode in the prototype.
12718
12719         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12720         classify 128-bit floating point support.
12721         (FLOAT128_IBM_P): Likewise.
12722         (FLOAT128_VECTOR_P): Likewise.
12723         (FLOAT128_2REG_P): Likewise.
12724         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12725         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12726         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12727         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12728
12729         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12730         tests against TFmode/TDmode, since those modes do not use VSX
12731         addresses.
12732         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12733         support.
12734         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12735         tests against TFmode, etc.
12736         (invalid_e500_subreg): Add tests against IFmode/KFmode.
12737         (reg_offset_addressing_ok_p): Likewise.
12738         (rs6000_legitimate_offset_address_p): Likewise.
12739         (rs6000_legitimize_address): Likewise.
12740         (rs6000_legitimize_reload_address): Likewise.
12741         (rs6000_legitimate_address_p): Clean up tests against TFmode and
12742         TDmode to use the new helper macros, which will include IFmode and
12743         KFmode.
12744         (rs6000_emit_move): Likewise.
12745         (rs6000_darwin64_record_arg_recurse): Likewise.
12746         (print_operand): Likewise.
12747         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12748         that uses a single vector register as a vector and not as a
12749         floating point register in terms of the calling sequence.
12750         (rs6000_discover_homogeneous_aggregate): Likewise.
12751         (rs6000_return_in_memory): Likewise.
12752         (init_cumulative_args): Likewise.
12753         (rs6000_function_arg_boundary): Likewise.
12754         (rs6000_function_arg_advance_1): Likewise.
12755         (rs6000_function_arg): Likewise.
12756         (rs6000_pass_by_reference): Likewise.
12757         (rs6000_gimplify_va_arg): Likewise.
12758         (rs6000_secondary_reload_memory): Use machine_mode not enum
12759         machine mode.
12760         (rs6000_split_multireg_move): Use new helper macros.
12761         (spe_func_has_64bit_regs_p): Likewise.
12762         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12763         (output_toc): Use new helper macros.
12764         (rs6000_register_move_cost): Likewise.
12765         (rs6000_function_value): Add IEEE 128-bit floating point calling
12766         sequence support.
12767         (rs6000_libcall_value): Likewise.
12768         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12769         floating point support.
12770         (rs6000_vector_mode_supported_p): Likewise.
12771
12772 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
12773
12774         PR rtl-optimization/66782
12775         * lra-int.h (struct lra_insn_recog_data): Add comment about
12776         clobbered hard regs for arg_hard_regs.
12777         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12778         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12779         Add condition for processing used hard regs.
12780         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12781         Process clobbered hard regs.
12782
12783 2015-07-09  Michael Matz  <matz@suse.de>
12784
12785         * genmatch.c (fprintf_indent): New function.
12786         (operand::gen_transform): Add indent parameter.
12787         (expr::gen_transform, c_expr::gen_transform,
12788         capture::gen_transform): Ditto and use fprintf_indent.
12789         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12790         (dt_operand::gen, dt_operand::gen_predicate,
12791         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12792         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12793         (decision_tree::gen_gimple): Adjust calls and indent generated
12794         code.
12795         (decision_tree::gen_generic): Ditto.
12796         (write_predicate): Ditto.
12797
12798 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12799
12800         PR target/66814
12801         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12802         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12803         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12804         {GENERAL,SSE,MMX}_REG_P where appropriate.
12805
12806 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12807
12808         * lto-streamer.h: Don't include target.h and alloc-pool.h.
12809         * builtins.c: Adjust includes.
12810         * gimple.c: Likewise.
12811         * ipa-icf.c: Likewise.
12812         * lto-opts.c: Likewise.
12813         * ipa-reference.c: Likewise.
12814         * lto-section-out.c: Likewise.
12815         * lto-streamer-in.c: Likewise.
12816         * lto-streamer-out.c: Likewise.
12817         * opts-global.c: Likewise.
12818         * symtab.c: Likewise.
12819         * tree-chkp.c: Likewise.
12820         * tree-ssa-live.c: Likewise.
12821         * tree-streamer-in.c: Likewise.
12822         * tree-streamer-out.c: Likewise.
12823         * config/darwin.c: Likewise.
12824         * config/i386/winnt.c: Likewise.
12825
12826 2015-07-09  Richard Biener  <rguenther@suse.de>
12827
12828         * genmatch.c (struct expr): Add force_single_use flag.
12829         (expr::expr): Add copy constructor.
12830         (capture_info::walk_match): Gather force_single_use captures.
12831         (expr::gen_transform): Use possibly NULLified sequence.
12832         (dt_simplify::gen): Apply single-use restrictions by NULLifying
12833         seq if any constrained expr is not single-use.
12834         (parser::parse_expr): Refactor to allow multiple flags.  Handle
12835         's' flag to force an expression have a single-use if the pattern
12836         simplifies to more than one statement.
12837         * match.pd: Convert most single_use conditionals to :s flags.
12838
12839 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12840
12841         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
12842         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12843         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
12844
12845 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12846
12847         * flags.h: Don't include flag-types.h or options.h.
12848         * opts-common.c: Adjust includes.
12849         * opts-global.c: Likewise.
12850         * common/config/epiphany/epiphany-common.c: Likewise.
12851
12852 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12853
12854         PR target/66818
12855         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
12856         for IA MCU.
12857
12858 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12859
12860         PR target/66817
12861         * config/i386/i386.c (ix86_return_in_memory): Return true
12862         if int_size_in_bytes returns negative for IA MCU.
12863
12864 2015-07-09  Marek Polacek  <polacek@redhat.com>
12865
12866         PR tree-optimization/66718
12867         * Makefile.in (OBJS): Add gimple-laddress.o.
12868         * passes.def: Schedule pass_laddress.
12869         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
12870         * tree-pass.h (make_pass_laddress): Declare.
12871         * gimple-laddress.c: New file.
12872
12873 2015-07-09  Richard Biener  <rguenther@suse.de>
12874
12875         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
12876
12877 2015-07-09  Richard Biener  <rguenther@suse.de>
12878
12879         PR tree-optimization/66807
12880         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
12881
12882 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
12883
12884         * function.c (stack_protect_epilogue): Use if rather than switch for
12885         check targetm.have_stack_protect_test.
12886
12887 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12888
12889         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
12890         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
12891         * config/arc/arc.h: Likewise.
12892         * config/arm/arm.h: Likewise.
12893         * config/bfin/bfin.h: Likewise.
12894         * config/epiphany/epiphany.h: Likewise.
12895         * config/frv/frv.h: Likewise.
12896         * config/ia64/ia64.h: Likewise.
12897         * config/iq2000/iq2000.h: Likewise.
12898         * config/lm32/lm32.h: Likewise.
12899         * config/m32r/m32r.h: Likewise.
12900         * config/mcore/mcore.h: Likewise.
12901         * config/mep/mep.h: Likewise.
12902         * config/microblaze/microblaze.h: Likewise.
12903         * config/mips/mips.h: Likewise.
12904         * config/mmix/mmix.h: Likewise.
12905         * config/mn10300/mn10300.h: Likewise.
12906         * config/nds32/nds32.h: Likewise.
12907         * config/nios2/nios2.h: Likewise.
12908         * config/pa/pa.h: Likewise.
12909         * config/rl78/rl78.h: Likewise.
12910         * config/sh/sh.h: Likewise.
12911         * config/sparc/sparc.h: Likewise.
12912         * config/stormy16/stormy16.h: Likewise.
12913         * config/tilegx/tilegx.h: Likewise.
12914         * config/tilepro/tilepro.h: Likewise.
12915         * config/v850/v850.h: Likewise.
12916         * config/xtensa/xtensa.h: Likewise.
12917         * doc/tm.texi: Regenerate.
12918         * doc/tm.texi.in: Adjust.
12919         * combine.c (simplify_set): Likewise.
12920         (simplify_comparison): Likewise.
12921         * expr.c (store_constructor): Likewise.
12922         * internal-fn.c (expand_arith_overflow): Likewise.
12923         * reload.c (push_reload): Likewise.
12924         (find_reloads): Likewise.
12925         (find_reloads_subreg_address): Likewise.
12926         * reload1.c (eliminate_regs_1): Likewise.
12927         * rtlanal.c (nonzero_bits1): Likewise.
12928         (num_sign_bit_copies1): Likewise.
12929         * simplify-rtx.c (simplify_truncation): Likewise.
12930
12931 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12932
12933         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
12934         of AUTO_INC_DEC with the preprocessor.
12935         * combine.c (combine_instructions): Likewise.
12936         (can_combine_p): Likewise.
12937         (try_combine): Likewise.
12938         * emit-rtl.c (try_split): Likewise.
12939         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12940         * lower-subreg.c (resolve_simple_move): Likewise.
12941         * lra.c (update_inc_notes): Likewise.
12942         * recog.c (asm_operand_ok): Likewise.
12943         (constrain_operands): Likewise.
12944         * regrename.c (scan_rtx_address): Likewise.
12945         * reload.c (update_auto_inc_notes): Likewise.
12946         (reg_inc_found_and_valid_p): Likewise.
12947         * reload1.c (reload): Likewise.
12948         (emit_input_reload_insns): Likewise.
12949         (delete_output_reload): Likewise.
12950         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12951         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12952
12953 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12954
12955         * rtl.h: Always define AUTO_INC_DEC.
12956         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
12957         * combine.c (combine_instructions): Likewise.
12958         (can_combine_p): Likewise.
12959         (try_combine): Likewise.
12960         * emit-rtl.c (try_split): Likewise.
12961         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12962         * lower-subreg.c (resolve_simple_move): Likewise.
12963         * lra.c (update_inc_notes): Likewise.
12964         * recog.c (asm_operand_ok): Likewise.
12965         (constrain_operands): Likewise.
12966         * regrename.c (scan_rtx_address): Likewise.
12967         * reload.c (update_auto_inc_notes): Likewise.
12968         (find_equiv_reg): Likewise.
12969         * reload1.c (reload): Likewise.
12970         (reload_as_needed): Likewise.
12971         (choose_reload_regs): Likewise.
12972         (emit_input_reload_insns): Likewise.
12973         (delete_output_reload): Likewise.
12974         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12975         * valtrack.c (cleanup_auto_inc_dec): Likewise.
12976
12977 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12978
12979         * combine.c (can_combine_def_p): Don't check the value of
12980         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
12981         (combinable_i3pat): Likewise.
12982         (mark_used_regs_combine): Likewise.
12983         * regrename.c (rename_chains): Likewise.
12984         * reload.c (find_reloads_address): Likewise.
12985         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12986
12987 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12988
12989         * combine.c (update_rsp_from_reg_equal): Don't check if
12990         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
12991         (reg_nonzero_bits_for_combine): Likewise.
12992         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
12993         1.
12994         * config/frv/frv.h: Likewise.
12995         * config/lm32/lm32.h: Likewise.
12996         * config/mep/mep.h: Likewise.
12997         * config/mips/mips.h: Likewise.
12998         * config/rs6000/rs6000.h: Likewise.
12999         * config/sh/sh.h: Likewise.
13000         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13001         * config/tilepro/tilepro.h: Likewise.
13002         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13003         * doc/tm.texi: Regenerate.
13004         * doc/tm.texi.in: Adjust.
13005         * rtlanal.c (nonzero_bits1): Likewise.
13006
13007 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13008
13009         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13010         with the preprocessor.
13011         (combine_instructions): Likewise.
13012         (try_combine): Likewise.
13013         (subst): Likewise.
13014         (distribute_notes): Likewise.
13015
13016 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13017
13018         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13019         defined.
13020         (simplify_set): Likewise.
13021         * cse.c (cse_insn): Likewise.
13022         * fold-const.c (fold_single_bit_test): Likewise.
13023         (fold_unary_loc): Likewise.
13024         * postreload.c (reload_cse_simplify_set): Likewise.
13025         (reload_cse_simplify_operands): Likewise.
13026
13027 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13028
13029         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13030         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13031
13032 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13033
13034         PR target/66746
13035         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13036         __iamcu__ is defined.
13037
13038 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13039
13040         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13041
13042 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13043
13044         PR target/66523
13045         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13046         names from preservation.
13047
13048 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13049
13050         PR target/66806
13051         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13052         change for IAMCU.
13053         (function_arg_advance_32): Don't pass vectors in registers for
13054         IAMCU.
13055         (function_arg_32): Likewise.
13056         (ix86_return_in_memory): Don't return vectors in registers for
13057         IAMCU.
13058
13059 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13060
13061         PR middle-end/66334
13062         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13063         hard regno live at the start of BB with incoming abnormal edges.
13064         * lra-lives.c (process_bb_lives): Ditto.
13065
13066 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13067
13068         PR libgomp/65099
13069         * config/nvptx/mkoffload.c (main): Create an offload image only in
13070         64-bit configurations.
13071
13072 2015-07-08  Martin Liska  <mliska@suse.cz>
13073
13074         PR bootstrap/66744
13075         * tree-sra.c (create_access_1): Call ctor without brackets.
13076         (create_artificial_child_access): Likewise.
13077
13078 2015-07-08  Richard Biener  <rguenther@suse.de>
13079
13080         PR tree-optimization/66793
13081         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13082         Properly split the block after stmts ending it.
13083
13084 2015-07-08  Richard Biener  <rguenther@suse.de>
13085
13086         PR tree-optimization/66794
13087         * passes.c (execute_function_todo): Assert that post-dominators
13088         are not computed.
13089         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13090         Free post-dominators.
13091
13092 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13093
13094         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13095         with early exit.
13096
13097 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13098
13099         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13100         more than or equal 8 and less than 32 when optimizing for size.
13101
13102 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13103
13104         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13105         COSTS_N_INSNS (1) and increment it appropriately throughout the
13106         function.
13107
13108 2015-07-08  Richard Biener  <rguenther@suse.de>
13109
13110         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13111
13112 2015-07-08  Alan Modra  <amodra@gmail.com>
13113
13114         * target.def (rtx_costs): Remove "code" param, add "mode".
13115         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13116         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13117         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13118         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13119         call.  Track mode when given in rtx.
13120         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13121         (default_address_cost): Pass Pmode to rtx_cost.
13122         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13123         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13124         with NULL set.
13125         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13126         (notreg_cost): Add mode param.  Use it.
13127         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13128         mode param and pass to set_src_cost.  Update all calls.
13129         (hash_scan_set): Formatting.
13130         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13131         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13132         * hooks.h: Ditto.
13133         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13134         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13135         emit_store_flag): Update set_src_cost and rtx_cost calls.
13136         * auto-inc-dec.c (attempt_change): Likewise.
13137         * calls.c (precompute_register_parameters): Likewise.
13138         * combine.c (expand_compound_operation, make_extraction,
13139         force_to_mode, distribute_and_simplify_rtx): Likewise.
13140         * dojump.c (prefer_and_bit_test): Likewise.
13141         * dse.c (find_shift_sequence): Likewise.
13142         * expr.c (compress_float_constant): Likewise.
13143         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13144         * ifcvt.c (noce_try_sign_mask): Likewise.
13145         * loop-doloop.c (doloop_optimize): Likewise.
13146         * loop-invariant.c (create_new_invariant): Likewise.
13147         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13148         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13149         lshift_cheap_p): Likewise.
13150         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13151         try_replace_in_use, reload_cse_move2add): Likewise.
13152         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13153         Likewise.
13154         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13155         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13156         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13157         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13158         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13159         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13160         to rtx_cost calls.
13161         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13162         * config/arc/arc.c (arc_rtx_costs): Likewise.
13163         * config/arm/arm.c (arm_rtx_costs): Likewise.
13164         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13165         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13166         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13167         * config/cris/cris.c (cris_rtx_costs): Likewise.
13168         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13169         * config/frv/frv.c (frv_rtx_costs): Likewise.
13170         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13171         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13172         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13173         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13174         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13175         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13176         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13177         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13178         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13179         * config/mep/mep.c (mep_rtx_cost): Likewise.
13180         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13181         * config/mips/mips.c (mips_rtx_costs): Likewise.
13182         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13183         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13184         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13185         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13186         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13187         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13188         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13189         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13190         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13191         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13192         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13193         * config/s390/s390.c (s390_rtx_costs): Likewise.
13194         * config/sh/sh.c (sh_rtx_costs): Likewise.
13195         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13196         * config/spu/spu.c (spu_rtx_costs): Likewise.
13197         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13198         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13199         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13200         * config/v850/v850.c (v850_rtx_costs): Likewise.
13201         * config/vax/vax.c (vax_rtx_costs): Likewise.
13202         * config/visium/visium.c (visium_rtx_costs): Likewise.
13203         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13204         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13205         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13206         mode to rtx_cost calls.
13207         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13208         calls.
13209         (aarch64_rtx_costs_wrapper): Update.
13210         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13211         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13212         rtx_cost calls.
13213         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13214         and rtx_cost calls.
13215         (avr_operand_rtx_cost): Similarly.
13216         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13217         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13218         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13219         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13220         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13221         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13222         rtx_cost.
13223         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13224         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13225         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13226         * doc/tm.texi: Regenerate.
13227
13228 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13229
13230         * tree-core.h: Include symtab.h.
13231         * rtl.h: Include hard-reg-set.h but not flags.h.
13232         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13233         hard-reg-set.h is always included.
13234         * regs.h: Don't include hard-reg-set.h or rtl.h.
13235         * cfg.h: Include dominance.h.
13236         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13237         * backend.h: New.  Aggregate commonly used backend header files.
13238         * gimple-ssa.h: Don't include tree-hasher.h.
13239         * ssa.h: New.  Aggregate commonly used SSA header files.
13240         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13241         * sel-sched-ir.h: Flatten includes.
13242         * lra-int.h: Flatten completely.
13243         * sel-sched-dump.h: Flatten includes.
13244         * ira-int.h: Flatten includes.
13245         * gimple-streamer.h: Remove all includes.
13246         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13247         * resource.h: Flatten hard-reg-set.h and df.h.
13248         * sched-int.h: Flatten insn-arrt.h and df.h.
13249         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13250         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13251         * genattrtab.c (write_header): Adjust generated includes.
13252         * genautomata.c (main): Likewise.
13253         * genconditions.c (write-header): Likewise.
13254         * genemit.c (main): Likewise.
13255         * gengtype.c (open_base_files): Likewise.
13256         * genopinit.c (main): Likewise.
13257         * genoutput.c (output_prologue): Likewise.
13258         * genpeep.c (main): Likewise.
13259         * genpreds.c (write_insn_preds_c): Likewise.
13260         * genrecog.c (write_header): Likewise.
13261         * alias.c: Adjust includes.
13262         * asan.c: Likewise.
13263         * attribs.c: Likewise.
13264         * auto-inc-dec.c: Likewise.
13265         * auto-profile.c: Likewise.
13266         * bb-reorder.c: Likewise.
13267         * bt-load.c: Likewise.
13268         * builtins.c: Likewise.
13269         * caller-save.c: Likewise.
13270         * calls.c: Likewise.
13271         * ccmp.c: Likewise.
13272         * cfg.c: Likewise.
13273         * cfganal.c: Likewise.
13274         * cfgbuild.c: Likewise.
13275         * cfgcleanup.c: Likewise.
13276         * cfgexpand.c: Likewise.
13277         * cfghooks.c: Likewise.
13278         * cfgloop.c: Likewise.
13279         * cfgloopanal.c: Likewise.
13280         * cfgloopmanip.c: Likewise.
13281         * cfgrtl.c: Likewise.
13282         * cgraph.c: Likewise.
13283         * cgraphbuild.c: Likewise.
13284         * cgraphclones.c: Likewise.
13285         * cgraphunit.c: Likewise.
13286         * cilk-common.c: Likewise.
13287         * combine-stack-adj.c: Likewise.
13288         * combine.c: Likewise.
13289         * compare-elim.c: Likewise.
13290         * convert.c: Likewise.
13291         * coverage.c: Likewise.
13292         * cppbuiltin.c: Likewise.
13293         * cprop.c: Likewise.
13294         * cse.c: Likewise.
13295         * cselib.c: Likewise.
13296         * data-streamer-in.c: Likewise.
13297         * data-streamer-out.c: Likewise.
13298         * data-streamer.c: Likewise.
13299         * dbxout.c: Likewise.
13300         * dce.c: Likewise.
13301         * ddg.c: Likewise.
13302         * debug.c: Likewise.
13303         * df-core.c: Likewise.
13304         * df-problems.c: Likewise.
13305         * df-scan.c: Likewise.
13306         * dfp.c: Likewise.
13307         * dojump.c: Likewise.
13308         * dominance.c: Likewise.
13309         * domwalk.c: Likewise.
13310         * double-int.c: Likewise.
13311         * dse.c: Likewise.
13312         * dumpfile.c: Likewise.
13313         * dwarf2asm.c: Likewise.
13314         * dwarf2cfi.c: Likewise.
13315         * dwarf2out.c: Likewise.
13316         * emit-rtl.c: Likewise.
13317         * et-forest.c: Likewise.
13318         * except.c: Likewise.
13319         * explow.c: Likewise.
13320         * expmed.c: Likewise.
13321         * expr.c: Likewise.
13322         * final.c: Likewise.
13323         * fixed-value.c: Likewise.
13324         * fold-const.c: Likewise.
13325         * function.c: Likewise.
13326         * fwprop.c: Likewise.
13327         * gcc-plugin.h: Likewise.
13328         * gcse-common.c: Likewise.
13329         * gcse.c: Likewise.
13330         * generic-match-head.c: Likewise.
13331         * ggc-page.c: Likewise.
13332         * gimple-builder.c: Likewise.
13333         * gimple-expr.c: Likewise.
13334         * gimple-fold.c: Likewise.
13335         * gimple-iterator.c: Likewise.
13336         * gimple-low.c: Likewise.
13337         * gimple-match-head.c: Likewise.
13338         * gimple-pretty-print.c: Likewise.
13339         * gimple-ssa-isolate-paths.c: Likewise.
13340         * gimple-ssa-strength-reduction.c: Likewise.
13341         * gimple-streamer-in.c: Likewise.
13342         * gimple-streamer-out.c: Likewise.
13343         * gimple-walk.c: Likewise.
13344         * gimple.c: Likewise.
13345         * gimplify-me.c: Likewise.
13346         * gimplify.c: Likewise.
13347         * godump.c: Likewise.
13348         * graph.c: Likewise.
13349         * graphite-blocking.c: Likewise.
13350         * graphite-dependences.c: Likewise.
13351         * graphite-interchange.c: Likewise.
13352         * graphite-isl-ast-to-gimple.c: Likewise.
13353         * graphite-optimize-isl.c: Likewise.
13354         * graphite-poly.c: Likewise.
13355         * graphite-scop-detection.c: Likewise.
13356         * graphite-sese-to-poly.c: Likewise.
13357         * graphite.c: Likewise.
13358         * haifa-sched.c: Likewise.
13359         * hw-doloop.c: Likewise.
13360         * ifcvt.c: Likewise.
13361         * init-regs.c: Likewise.
13362         * internal-fn.c: Likewise.
13363         * ipa-chkp.c: Likewise.
13364         * ipa-comdats.c: Likewise.
13365         * ipa-cp.c: Likewise.
13366         * ipa-devirt.c: Likewise.
13367         * ipa-icf-gimple.c: Likewise.
13368         * ipa-icf.c: Likewise.
13369         * ipa-inline-analysis.c: Likewise.
13370         * ipa-inline-transform.c: Likewise.
13371         * ipa-inline.c: Likewise.
13372         * ipa-polymorphic-call.c: Likewise.
13373         * ipa-profile.c: Likewise.
13374         * ipa-prop.c: Likewise.
13375         * ipa-pure-const.c: Likewise.
13376         * ipa-ref.c: Likewise.
13377         * ipa-reference.c: Likewise.
13378         * ipa-split.c: Likewise.
13379         * ipa-utils.c: Likewise.
13380         * ipa-visibility.c: Likewise.
13381         * ipa.c: Likewise.
13382         * ira-build.c: Likewise.
13383         * ira-color.c: Likewise.
13384         * ira-conflicts.c: Likewise.
13385         * ira-costs.c: Likewise.
13386         * ira-emit.c: Likewise.
13387         * ira-lives.c: Likewise.
13388         * ira.c: Likewise.
13389         * jump.c: Likewise.
13390         * langhooks.c: Likewise.
13391         * lcm.c: Likewise.
13392         * loop-doloop.c: Likewise.
13393         * loop-init.c: Likewise.
13394         * loop-invariant.c: Likewise.
13395         * loop-iv.c: Likewise.
13396         * loop-unroll.c: Likewise.
13397         * lower-subreg.c: Likewise.
13398         * lra-assigns.c: Likewise.
13399         * lra-coalesce.c: Likewise.
13400         * lra-constraints.c: Likewise.
13401         * lra-eliminations.c: Likewise.
13402         * lra-lives.c: Likewise.
13403         * lra-remat.c: Likewise.
13404         * lra-spills.c: Likewise.
13405         * lra.c: Likewise.
13406         * lto-cgraph.c: Likewise.
13407         * lto-compress.c: Likewise.
13408         * lto-opts.c: Likewise.
13409         * lto-section-in.c: Likewise.
13410         * lto-section-out.c: Likewise.
13411         * lto-streamer-in.c: Likewise.
13412         * lto-streamer-out.c: Likewise.
13413         * lto-streamer.c: Likewise.
13414         * mcf.c: Likewise.
13415         * mode-switching.c: Likewise.
13416         * modulo-sched.c: Likewise.
13417         * omega.c: Likewise.
13418         * omp-low.c: Likewise.
13419         * optabs.c: Likewise.
13420         * opts-global.c: Likewise.
13421         * passes.c: Likewise.
13422         * plugin.c: Likewise.
13423         * postreload-gcse.c: Likewise.
13424         * postreload.c: Likewise.
13425         * predict.c: Likewise.
13426         * print-rtl.c: Likewise.
13427         * print-tree.c: Likewise.
13428         * profile.c: Likewise.
13429         * real.c: Likewise.
13430         * realmpfr.c: Likewise.
13431         * recog.c: Likewise.
13432         * ree.c: Likewise.
13433         * reg-stack.c: Likewise.
13434         * regcprop.c: Likewise.
13435         * reginfo.c: Likewise.
13436         * regrename.c: Likewise.
13437         * regstat.c: Likewise.
13438         * reload.c: Likewise.
13439         * reload1.c: Likewise.
13440         * reorg.c: Likewise.
13441         * resource.c: Likewise.
13442         * rtl-chkp.c: Likewise.
13443         * rtlanal.c: Likewise.
13444         * rtlhooks.c: Likewise.
13445         * sanopt.c: Likewise.
13446         * sched-deps.c: Likewise.
13447         * sched-ebb.c: Likewise.
13448         * sched-rgn.c: Likewise.
13449         * sched-vis.c: Likewise.
13450         * sdbout.c: Likewise.
13451         * sel-sched-dump.c: Likewise.
13452         * sel-sched-ir.c: Likewise.
13453         * sel-sched.c: Likewise.
13454         * sese.c: Likewise.
13455         * shrink-wrap.c: Likewise.
13456         * simplify-rtx.c: Likewise.
13457         * stack-ptr-mod.c: Likewise.
13458         * stmt.c: Likewise.
13459         * stor-layout.c: Likewise.
13460         * store-motion.c: Likewise.
13461         * stringpool.c: Likewise.
13462         * symtab.c: Likewise.
13463         * target-globals.c: Likewise.
13464         * targhooks.c: Likewise.
13465         * toplev.c: Likewise.
13466         * tracer.c: Likewise.
13467         * trans-mem.c: Likewise.
13468         * tree-affine.c: Likewise.
13469         * tree-browser.c: Likewise.
13470         * tree-call-cdce.c: Likewise.
13471         * tree-cfg.c: Likewise.
13472         * tree-cfgcleanup.c: Likewise.
13473         * tree-chkp-opt.c: Likewise.
13474         * tree-chkp.c: Likewise.
13475         * tree-chrec.c: Likewise.
13476         * tree-complex.c: Likewise.
13477         * tree-data-ref.c: Likewise.
13478         * tree-dfa.c: Likewise.
13479         * tree-diagnostic.c: Likewise.
13480         * tree-dump.c: Likewise.
13481         * tree-eh.c: Likewise.
13482         * tree-emutls.c: Likewise.
13483         * tree-if-conv.c: Likewise.
13484         * tree-inline.c: Likewise.
13485         * tree-into-ssa.c: Likewise.
13486         * tree-iterator.c: Likewise.
13487         * tree-loop-distribution.c: Likewise.
13488         * tree-nested.c: Likewise.
13489         * tree-nrv.c: Likewise.
13490         * tree-object-size.c: Likewise.
13491         * tree-outof-ssa.c: Likewise.
13492         * tree-parloops.c: Likewise.
13493         * tree-phinodes.c: Likewise.
13494         * tree-predcom.c: Likewise.
13495         * tree-pretty-print.c: Likewise.
13496         * tree-profile.c: Likewise.
13497         * tree-scalar-evolution.c: Likewise.
13498         * tree-sra.c: Likewise.
13499         * tree-ssa-address.c: Likewise.
13500         * tree-ssa-alias.c: Likewise.
13501         * tree-ssa-ccp.c: Likewise.
13502         * tree-ssa-coalesce.c: Likewise.
13503         * tree-ssa-copy.c: Likewise.
13504         * tree-ssa-copyrename.c: Likewise.
13505         * tree-ssa-dce.c: Likewise.
13506         * tree-ssa-dom.c: Likewise.
13507         * tree-ssa-dse.c: Likewise.
13508         * tree-ssa-forwprop.c: Likewise.
13509         * tree-ssa-ifcombine.c: Likewise.
13510         * tree-ssa-live.c: Likewise.
13511         * tree-ssa-loop-ch.c: Likewise.
13512         * tree-ssa-loop-im.c: Likewise.
13513         * tree-ssa-loop-ivcanon.c: Likewise.
13514         * tree-ssa-loop-ivopts.c: Likewise.
13515         * tree-ssa-loop-manip.c: Likewise.
13516         * tree-ssa-loop-niter.c: Likewise.
13517         * tree-ssa-loop-prefetch.c: Likewise.
13518         * tree-ssa-loop-unswitch.c: Likewise.
13519         * tree-ssa-loop.c: Likewise.
13520         * tree-ssa-math-opts.c: Likewise.
13521         * tree-ssa-operands.c: Likewise.
13522         * tree-ssa-phiopt.c: Likewise.
13523         * tree-ssa-phiprop.c: Likewise.
13524         * tree-ssa-pre.c: Likewise.
13525         * tree-ssa-propagate.c: Likewise.
13526         * tree-ssa-reassoc.c: Likewise.
13527         * tree-ssa-sccvn.c: Likewise.
13528         * tree-ssa-scopedtables.c: Likewise.
13529         * tree-ssa-sink.c: Likewise.
13530         * tree-ssa-strlen.c: Likewise.
13531         * tree-ssa-structalias.c: Likewise.
13532         * tree-ssa-tail-merge.c: Likewise.
13533         * tree-ssa-ter.c: Likewise.
13534         * tree-ssa-threadedge.c: Likewise.
13535         * tree-ssa-threadupdate.c: Likewise.
13536         * tree-ssa-uncprop.c: Likewise.
13537         * tree-ssa-uninit.c: Likewise.
13538         * tree-ssa.c: Likewise.
13539         * tree-ssanames.c: Likewise.
13540         * tree-stdarg.c: Likewise.
13541         * tree-streamer-in.c: Likewise.
13542         * tree-streamer-out.c: Likewise.
13543         * tree-streamer.c: Likewise.
13544         * tree-switch-conversion.c: Likewise.
13545         * tree-tailcall.c: Likewise.
13546         * tree-vect-data-refs.c: Likewise.
13547         * tree-vect-generic.c: Likewise.
13548         * tree-vect-loop-manip.c: Likewise.
13549         * tree-vect-loop.c: Likewise.
13550         * tree-vect-patterns.c: Likewise.
13551         * tree-vect-slp.c: Likewise.
13552         * tree-vect-stmts.c: Likewise.
13553         * tree-vectorizer.c: Likewise.
13554         * tree-vrp.c: Likewise.
13555         * tree.c: Likewise.
13556         * tsan.c: Likewise.
13557         * ubsan.c: Likewise.
13558         * valtrack.c: Likewise.
13559         * value-prof.c: Likewise.
13560         * var-tracking.c: Likewise.
13561         * varasm.c: Likewise.
13562         * varpool.c: Likewise.
13563         * vmsdbgout.c: Likewise.
13564         * vtable-verify.c: Likewise.
13565         * web.c: Likewise.
13566         * wide-int.cc: Likewise.
13567         * xcoffout.c: Likewise.
13568         * config/aarch64/aarch64-builtins.c: Likewise.
13569         * config/aarch64/aarch64.c: Likewise.
13570         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13571         * config/alpha/alpha.c: Likewise.
13572         * config/arc/arc.c: Likewise.
13573         * config/arm/aarch-common.c: Likewise.
13574         * config/arm/arm-builtins.c: Likewise.
13575         * config/arm/arm-c.c: Likewise.
13576         * config/arm/arm.c: Likewise.
13577         * config/avr/avr-c.c: Likewise.
13578         * config/avr/avr-log.c: Likewise.
13579         * config/avr/avr.c: Likewise.
13580         * config/bfin/bfin.c: Likewise.
13581         * config/c6x/c6x.c: Likewise.
13582         * config/cr16/cr16.c: Likewise.
13583         * config/cris/cris.c: Likewise.
13584         * config/darwin-c.c: Likewise.
13585         * config/darwin.c: Likewise.
13586         * config/epiphany/epiphany.c: Likewise.
13587         * config/epiphany/mode-switch-use.c: Likewise.
13588         * config/epiphany/resolve-sw-modes.c: Likewise.
13589         * config/fr30/fr30.c: Likewise.
13590         * config/frv/frv.c: Likewise.
13591         * config/ft32/ft32.c: Likewise.
13592         * config/h8300/h8300.c: Likewise.
13593         * config/i386/i386-c.c: Likewise.
13594         * config/i386/i386.c: Likewise.
13595         * config/i386/msformat-c.c: Likewise.
13596         * config/i386/winnt-cxx.c: Likewise.
13597         * config/i386/winnt-stubs.c: Likewise.
13598         * config/i386/winnt.c: Likewise.
13599         * config/ia64/ia64-c.c: Likewise.
13600         * config/ia64/ia64.c: Likewise.
13601         * config/iq2000/iq2000.c: Likewise.
13602         * config/lm32/lm32.c: Likewise.
13603         * config/m32c/m32c-pragma.c: Likewise.
13604         * config/m32c/m32c.c: Likewise.
13605         * config/m32r/m32r.c: Likewise.
13606         * config/m68k/m68k.c: Likewise.
13607         * config/mcore/mcore.c: Likewise.
13608         * config/mep/mep-pragma.c: Likewise.
13609         * config/mep/mep.c: Likewise.
13610         * config/microblaze/microblaze-c.c: Likewise.
13611         * config/microblaze/microblaze.c: Likewise.
13612         * config/mips/mips.c: Likewise.
13613         * config/mmix/mmix.c: Likewise.
13614         * config/mn10300/mn10300.c: Likewise.
13615         * config/moxie/moxie.c: Likewise.
13616         * config/msp430/msp430-c.c: Likewise.
13617         * config/msp430/msp430.c: Likewise.
13618         * config/nds32/nds32-cost.c: Likewise.
13619         * config/nds32/nds32-fp-as-gp.c: Likewise.
13620         * config/nds32/nds32-intrinsic.c: Likewise.
13621         * config/nds32/nds32-isr.c: Likewise.
13622         * config/nds32/nds32-md-auxiliary.c: Likewise.
13623         * config/nds32/nds32-memory-manipulation.c: Likewise.
13624         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13625         * config/nds32/nds32-predicates.c: Likewise.
13626         * config/nds32/nds32.c: Likewise.
13627         * config/nios2/nios2.c: Likewise.
13628         * config/nvptx/nvptx.c: Likewise.
13629         * config/pa/pa.c: Likewise.
13630         * config/pdp11/pdp11.c: Likewise.
13631         * config/rl78/rl78-c.c: Likewise.
13632         * config/rl78/rl78.c: Likewise.
13633         * config/rs6000/rs6000-c.c: Likewise.
13634         * config/rs6000/rs6000.c: Likewise.
13635         * config/rx/rx.c: Likewise.
13636         * config/s390/s390-c.c: Likewise.
13637         * config/s390/s390.c: Likewise.
13638         * config/sh/sh-c.c: Likewise.
13639         * config/sh/sh-mem.cc: Likewise.
13640         * config/sh/sh.c: Likewise.
13641         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13642         * config/sh/sh_treg_combine.cc: Likewise.
13643         * config/sol2-c.c: Likewise.
13644         * config/sol2-cxx.c: Likewise.
13645         * config/sol2-stubs.c: Likewise.
13646         * config/sol2.c: Likewise.
13647         * config/sparc/sparc-c.c: Likewise.
13648         * config/sparc/sparc.c: Likewise.
13649         * config/spu/spu-c.c: Likewise.
13650         * config/spu/spu.c: Likewise.
13651         * config/stormy16/stormy16.c: Likewise.
13652         * config/tilegx/mul-tables.c: Likewise.
13653         * config/tilegx/tilegx-c.c: Likewise.
13654         * config/tilegx/tilegx.c: Likewise.
13655         * config/tilepro/mul-tables.c: Likewise.
13656         * config/tilepro/tilepro-c.c: Likewise.
13657         * config/tilepro/tilepro.c: Likewise.
13658         * config/v850/v850-c.c: Likewise.
13659         * config/v850/v850.c: Likewise.
13660         * config/vax/vax.c: Likewise.
13661         * config/visium/visium.c: Likewise.
13662         * config/vms/vms-c.c: Likewise.
13663         * config/vms/vms.c: Likewise.
13664         * config/vxworks.c: Likewise.
13665         * config/xtensa/xtensa.c: Likewise.
13666
13667 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
13668
13669         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13670         Remove operand constraints.  Change operand 2 predicate to
13671         nonmemory operand.  Limit const_int values to mode bitsize.  Only
13672         allow const_int values less than 32 when optimizing for size.
13673         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13674         Remove operand constraints.
13675         (*bt<mode>): Use SImode for const_int values less than 32.
13676         (regmode): Remove mode attribute.
13677
13678 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
13679
13680         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13681         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13682           moxie_legitimate_address_p): New functions.
13683           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13684
13685 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13686
13687         PR tree-optimization/66642
13688         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13689         header comment.  Rename split_edge variable to edge_at_split.  Split
13690         exit edge to create new loop exit bb.  Insert loop exit phis in new
13691         loop exit bb.
13692
13693 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13694
13695         * tree-cfg.c (get_virtual_phi): New function.
13696         * tree-cfg.h (get_virtual_phi): Declare.
13697         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13698         (rewrite_virtuals_into_loop_closed_ssa): New function.
13699         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13700         Declare.
13701         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13702         (transform_to_exit_first_loop_alt): Use
13703         rewrite_virtuals_into_loop_closed_ssa.
13704
13705 2015-07-07  Richard Biener  <rguenther@suse.de>
13706
13707         * fold-const.c (fold_binary_loc): Move
13708         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13709         * match.pd: ... here.
13710         Add (X * C1) % C2 -> 0 simplification pattern derived from
13711         extract_muldiv_1.
13712
13713 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13714
13715         PR target/66780
13716         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13717         change for target/65249.
13718
13719 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
13720
13721         * symtab.c (address_matters_1): Fix typo in comment above.
13722         (can_increase_alignment_p): Likewise.
13723
13724 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13725
13726         * function.c (free_after_compilation): Clear PROP_cfg in
13727         f->curr_properties.
13728
13729 2015-07-07  Richard Biener  <rguenther@suse.de>
13730
13731         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13732         add which use to.
13733         (add_control_edge): Remove excessive vertical space in dumping.
13734         (process_ssa_edge_worklist): Simulate at most one statement and
13735         return whether we did.  Do not simulate PHIs if they are in a
13736         BB not yet simulated.
13737         (ssa_propagate): Adjust to always drain the BB worklist whenever
13738         a BB is available there, likewise the VARYING edges list before
13739         the interesting edge list.
13740
13741 2015-07-07  Christian Bruel  <christian.bruel@st.com>
13742
13743         PR target/52144
13744         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13745
13746 2015-07-07  Richard Biener  <rguenther@suse.de>
13747
13748         PR middle-end/66739
13749         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13750         A - B.
13751
13752 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13753
13754         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
13755         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
13756         Copy operand 0 to a temporary if !ext_register_operand.  Remove
13757         ancient extract_bit_field workaround.
13758         (insv<mode>_1): Rename from mov<mode>_insv_1.
13759         (*insvqi): Rename from *movqi_insv_2.
13760         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13761         for renamed insvsi_1.
13762         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13763
13764 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13765
13766         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
13767         call to nvptx_reorg_subreg.
13768
13769 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
13770
13771         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13772         * graphite-dependencies.c, graphite-interchange.c,
13773         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13774         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13775         Likewise.
13776
13777 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
13778
13779         * match.pd: Remove element_mode inside HONOR_*.
13780         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13781         (~X | X -> -1, ~X ^ X -> -1): Merge.
13782         * tree.c (build_each_one_cst): New function.
13783         * tree.h (build_each_one_cst): Likewise.
13784
13785 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13786
13787         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13788         PROCESSOR_IAMCU.
13789
13790 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
13791
13792         * config.gcc <mips*-*-*>: Add fused-madd.opt.
13793         * config/mips/mips.opt (mfused-madd): Remove.
13794         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13795         * config/mips/mips.h (TARGET_MIPS8000): New.
13796         (ISA_HAS_FP_MADD4_MSUB4): Remove.
13797         (ISA_HAS_FP_MADDF_MSUBF): Remove.
13798         (ISA_HAS_FP_MADD3_MSUB3): Remove.
13799         (ISA_HAS_NMADD4_NMSUB4): Remove.
13800         (ISA_HAS_NMADD3_NMSUB3): Remove.
13801         (ISA_HAS_FUSED_MADD4): New.
13802         (ISA_HAS_UNFUSED_MADD4): New.
13803         (ISA_HAS_FUSED_MADDF): New.
13804         (ISA_HAS_FUSED_MADD3): New.
13805         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13806         (*fma<mode>4_madd3) New.
13807         (*fma<mode>4_madd4) New.
13808         (*fma<mode>4_maddf) New.
13809         (fms<mode>4) New.
13810         (*fms<mode>4_msub3) New.
13811         (*fms<mode>4_msub4) New.
13812         (fnma<mode>4) New.
13813         (*fnma<mode>4_nmadd3) New.
13814         (*fnma<mode>4_nmadd4) New.
13815         (fnms<mode>4) New.
13816         (*fnms<mode>4_nmsub3) New.
13817         (*fnms<mode>4_nmsub4) New.
13818         (*madd4<mode>) Modify to be unfused only.
13819         (*msub4<mode>) Modify to be unfused only.
13820         (*nmadd4<mode>) Modify to be unfused only.
13821         (*nmsub4<mode>) Modify to be unfused only.
13822         (*madd3<mode>) Remove.
13823         (*msub3<mode>) Remove.
13824         (*nmadd3<mode>) Remove.
13825         (*nmsub3<mode>) Remove.
13826         (*nmadd3<mode>_fastmath) Remove.
13827         (*nmsub3<mode>_fastmath) Remove.
13828         (*nmadd4<mode>_fastmath) Update condition.
13829         (*nmsub4<mode>_fastmath) Update condition.
13830
13831 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13832
13833         PR target/65956
13834         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
13835         alignment attribute, exploring one level down for records and arrays.
13836
13837 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13838
13839         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
13840         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
13841         Copy operand 1 to a temporary if !ext_register_operand.  Remove
13842         ancient extract_bit_field workaround.
13843         (*extv<mode>): Rename from *mov<mode>_extv_1.
13844         (*extvqi): Rename from *movqi_extv_1.
13845         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
13846         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
13847         to a temporary if !ext_register_operand.  Remove ancient
13848         extract_bit_field workaround.
13849         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
13850         (*extzvqi): Rename from *movqi_extzv_2.
13851         (*testqi_ext_3): Remove modes from const_int_operand predicated
13852         operands.  Add "n" constraint.
13853         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
13854         operand.  Add "J" constraint.
13855         (*btsq, *btrq, *btcq peephole2s): Remove mode from
13856         const_0_to_63 predicated operand.
13857         (regmode): New insn attribute.
13858         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
13859         to nonmemory_operand.  Use regmode insn attribute.
13860         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
13861         (*jcc_bt<mode>_mask): Remove mode from operand 3.
13862         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
13863         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
13864         operands.  Use "N" constraint instead of "n".
13865
13866 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
13867
13868         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
13869
13870 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13871
13872         PR target/66749
13873         * config/i386/i386.c (iamcu_cost): New.
13874         (m_IAMCU): Likewise.
13875         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
13876         (processor_target_table): Add an entry for "iamcu".
13877         (processor_alias_table): Likewise.
13878         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
13879         (ix86_adjust_cost): Likewise.
13880         (ia32_multipass_dfa_lookahead): Likewise.
13881         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
13882         * config/i386/x86-tune.def: Updated for m_IAMCU.
13883
13884 2015-07-06  Richard Biener  <rguenther@suse.de>
13885
13886         PR tree-optimization/66772
13887         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
13888         values are available in the PHI node BB when there are
13889         still unexecutable edges.
13890
13891 2015-07-06  Richard Biener  <rguenther@suse.de>
13892
13893         PR tree-optimization/66767
13894         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13895         Make sure to build the alignment test on a SSA name without
13896         final alignment info valid only if the alignment test
13897         evaluates to true.
13898
13899 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
13900
13901         PR target/66620
13902         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
13903         loop start when inserting LSETUP.
13904
13905 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13906
13907         PR target/53383
13908         * config/i386/i386.c (ix86_option_override_internal): Allow
13909         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
13910
13911 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13912
13913         * read-md.c (decimal_string): Rename to ...
13914         (md_decimal_string): ... this.
13915         (handle_enum): Reflect this.
13916
13917 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13918
13919         PR target/66731
13920         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
13921
13922 2015-07-06  Richard Biener  <rguenther@suse.de>
13923
13924         PR middle-end/66759
13925         * match.pd: Add missing constraint of y to REAL_CST in
13926         REAL_CST - x CMP y to y - CST CMP x simplification.
13927
13928 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
13929
13930         PR tree-optimization/66757
13931         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
13932
13933 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
13934             Sandra Loosemore <sandra@codesourcery.com>
13935
13936         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
13937         Delete extern declaration.
13938         (gprel_constant_p): Add extern declaration.
13939         * config/nios2/constraints.md ("S"): Use gprel_constant_p
13940         instead of nios2_symbol_ref_in_small_data_p.
13941         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
13942         (nios2_symbol_ref_in_small_data_p): Make static.
13943         (gprel_constant_p): Make non-static.
13944
13945 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
13946
13947         * doc/fragments.texi (Target Fragment): Convert debian.org
13948         link to use https.
13949         * doc/install.texi (Configuration): Ditto.
13950
13951 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
13952
13953         PR tree-optimization/66718
13954         * tree-vect-stmts.c (vectorizable_call): Replace uses of
13955         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
13956
13957         PR tree-optimization/66718
13958         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
13959         vectorizable_load, vectorizable_condition): Move vectype,
13960         nunits, ncopies computation after checking what kind of statement
13961         stmt is.
13962
13963 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13964
13965         * target-insns.def (extv, extzv, insv): New targetm instruction
13966         patterns.
13967         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
13968         interface.
13969         * recog.c (simplify_while_replacing): Likewise.
13970
13971 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13972
13973         * target-insns.def (doloop_begin, doloop_end): New targetm
13974         instruction patterns.
13975         * loop-init.c: Include target.h.
13976         (pass_loop2::gate): Use the new targetm patterns instead of
13977         HAVE_*/gen_* interface.
13978         (pass_rtl_doloop::gate): Likewise.
13979         (pass_rtl_doloop::execute): Remove preprocessor condition.
13980         * hw-doloop.c: Build unconditionally.
13981         * loop-doloop.c: Likewise.
13982         (doloop_optimize): Use the new targetm patterns instead of
13983         HAVE_*/gen_* interface.
13984         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
13985         * modulo-sched.c (doloop_register_get): Likewise.
13986
13987 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13988
13989         * target-insns.def (clear_cache): New targetm instruction pattern.
13990         * builtins.c (expand_builtin___clear_cache): Use it instead of
13991         HAVE_*/gen_* interface.
13992
13993 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
13994
13995         * target-insns.def (allocate_stack, check_stack, probe_stack)
13996         (probe_stack_address, split_stack_prologue, split_stack_space_check):
13997         New targetm instruction patterns.
13998         * explow.c (allocate_dynamic_stack_space): Use them instead of
13999         HAVE_*/gen_* interface.
14000         (emit_stack_probe): Likewise.
14001         (probe_stack_range): Likewise.
14002         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14003
14004 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14005
14006         * target-insns.def (stack_protect_set, stack_protect_test): New
14007         targetm instruction patterns.
14008         * cfgexpand.c (stack_protect_prologue): Use them instead of
14009         HAVE_*/gen_* interface.
14010         * function.c (stack_protect_epilogue): Likewise.
14011
14012 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14013
14014         * expr.h (gen_move_insn_uncast): Delete.
14015         * expr.c (gen_move_insn_uncast): Delete.
14016
14017 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14018
14019         * target-insns.def (restore_stack_block, restore_stack_function)
14020         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14021         (save_stack_nonlocal): New targetm instruction patterns.
14022         * builtins.c (expand_builtin_apply): Use them instead of
14023         HAVE_*/gen_* interface.
14024         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14025
14026 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14027
14028         * target-insns.def (trap): New targetm instruction pattern.
14029         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14030         interface.
14031         * explow.c (allocate_dynamic_stack_space): Likewise.
14032         * ifcvt.c (find_if_header): Likewise.
14033
14034 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14035
14036         * target-insns.def (prefetch): New targetm instruction pattern.
14037         * tree-ssa-loop-prefetch.c: Include targeth.
14038         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14039         of HAVE_*/gen_* interface.
14040         * builtins.c (expand_builtin_prefetch): Likewise.
14041         * toplev.c (process_options): Likewise.
14042
14043 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14044
14045         * target-insns.def (untyped_call, untyped_return): New targetm
14046         instruction patterns.
14047         * builtins.c (expand_builtin_apply): Use them instead of
14048         HAVE_*/gen_* interface.
14049         (result_vector): Define unconditionally.
14050
14051 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14052
14053         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14054         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14055         (nonlocal_goto_receiver): New targetm instruction patterns.
14056         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14057         of HAVE_*/gen_* interface.
14058         (expand_builtin_setjmp_receiver): Likewise.
14059         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14060         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14061
14062 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14063
14064         * target.def: Add code_for_* hooks.
14065         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14066         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14067         * target-insns.def (casesi, tablejump): New targetm instruction
14068         patterns.
14069         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14070         (do_tablejump): Likewise.
14071         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14072         (expand_sjlj_dispatch_table): Likewise.
14073         * targhooks.c (default_case_values_threshold): Likewise.
14074
14075 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14076
14077         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14078         Use rtx_insn * instead of rtx.
14079         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14080         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14081         (nios2_call_tls_get_addr): Likewise.
14082         (nios2_emit_expensive_div): Likewise.
14083         (nios2_emit_move_sequence): Change return type to bool.
14084         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14085         Change return type to bool.
14086
14087 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14088
14089         PR target/66747
14090         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14091
14092 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14093
14094         PR target/66114
14095         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14096         of register_operand.  Remove constraint.
14097
14098 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14099
14100         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14101         the first argument.
14102
14103 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14104
14105         * attribs.c (decl_attributes): Guard inform with the return value
14106         of the preceding warning.
14107
14108 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14109
14110         * doc/invoke.texi (moverride): Move to correct section.
14111
14112 2015-07-03  Richard Biener  <rguenther@suse.de>
14113
14114         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14115         Copy from tree.c
14116         (dt_operand::gen_gimple_expr): After valueizing operands
14117         re-canonicalize operand order for commutative tree codes.
14118
14119 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14120
14121         PR target/66746.
14122         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14123         is defined.
14124         (__crc32w): Likewise.
14125         (__crc32d): Likewise.
14126         (__rdpmc): Likewise.
14127         (__rdtscp): Likewise.
14128         (_rdpmc): Likewise.
14129         (_rdtscp): Likewise.
14130         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14131         is defined.
14132
14133 2015-07-03  Richard Biener  <rguenther@suse.de>
14134
14135         * fold-const.c (fold_mathfn_compare): Remove.
14136         (fold_inf_compare): Likewise.
14137         (fold_comparison): Move floating point comparison simplifications...
14138         * match.pd: ... to patterns here.  Introduce simple_comparisons
14139         operator list and use it for patterns formerly in fold_comparison.
14140
14141 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14142
14143         PR tree-optimization/66119
14144         * toplev.c (process_options): Don't set up default values for
14145         the sra_max_scalarization_size_{speed,size} parameters.
14146         * tree-sra (analyze_all_variable_accesses): If no values
14147         have been set for the sra_max_scalarization_size_{speed,size}
14148         parameters, call get_move_ratio to get target defaults.
14149
14150 2015-07-03  Richard Biener  <rguenther@suse.de>
14151
14152         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14153         * match.pd: ... here.
14154
14155 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14156
14157         PR target/37072
14158         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14159         is not actually the default on FreeBSD.
14160
14161 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14162
14163         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14164         definition.
14165         (CMPGE_8HI): Likewise.
14166         (CMPGE_4SI): Likewise.
14167         (CMPGE_2DI): Likewise.
14168         (CMPGE_U16QI): Likewise.
14169         (CMPGE_U8HI): Likewise.
14170         (CMPGE_U4SI): Likewise.
14171         (CMPGE_U2DI): Likewise.
14172         (CMPLE_16QI): Likewise.
14173         (CMPLE_8HI): Likewise.
14174         (CMPLE_4SI): Likewise.
14175         (CMPLE_2DI): Likewise.
14176         (CMPLE_U16QI): Likewise.
14177         (CMPLE_U8HI): Likewise.
14178         (CMPLE_U4SI): Likewise.
14179         (CMPLE_U2DI): Likewise.
14180         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14181         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14182         ALTIVEC_BUILTIN_VEC_CMPLE.
14183         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14184         floating-point vector modes.
14185         (vector_nlt<mode>): New define_expand.
14186         (vector_nltu<mode>): Likewise.
14187         (vector_ngt<mode>): Likewise.
14188         (vector_ngtu<mode>): Likewise.
14189
14190 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14191
14192         PR rtl-optimization/66706
14193         * combine.c (make_compound_operation): If an AND of SUBREG of
14194         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14195
14196 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14197
14198         * tree-pass.h (make_pass_ch_vect): New.
14199         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14200
14201         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14202         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14203         make_pass_ch_vect): New.
14204         (pass_ch): Extend ch_base.
14205
14206         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14207         (ch_base::copy_headers): ...here.
14208
14209 2015-07-02  Richard Biener  <rguenther@suse.de>
14210
14211         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14212         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14213         (fold_binary_loc): Implement (T)ptr & CST in terms of
14214         get_pointer_alignment_1.
14215         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14216         Make sure to build the alignment test on a SSA name without
14217         final alignment info valid only after the prologue.
14218
14219 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14220
14221         * config/cris/cris.md ("epilogue"): Remove condition.
14222         ("prologue"): Ditto.
14223
14224 2015-07-02  Richard Biener  <rguenther@suse.de>
14225
14226         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14227         parameter to record a condition that is false.
14228         (record_conditions): When recording an extra NE_EXPR that is
14229         true also record a EQ_EXPR that is false.
14230
14231 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14232
14233         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14234         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14235         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14236         (set_iv, find_interesting_uses_address, add_candidate_1): New
14237         argument to alloc_iv.
14238         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14239         duplicate struct iv.
14240         (free_loop_data): Don't free struct iv explicitly.
14241         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14242
14243 2015-07-01  DJ Delorie  <dj@redhat.com>
14244
14245         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14246         (LIB_SPEC): Add.
14247         (SUPPORTS_DISCRIMINATOR): Define.
14248
14249 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14250
14251         PR bootstrap/66685
14252         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14253         there are no CALLs in the same pattern.
14254
14255 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14256
14257         PR rtl-optimization/61047
14258         * rtlanal.c (get_initial_register_offset): New function.
14259         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14260
14261 2015-07-01  Richard Biener  <rguenther@suse.de>
14262
14263         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14264         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14265         ~X CMP C -> X CMP' ~C to ...
14266         * match.pd: ... patterns here.
14267
14268 2015-07-01  Nick Clifton  <nickc@redhat.com>
14269
14270         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14271         a 16-bit value into a 20-bit memory slot.
14272
14273 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14274
14275         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14276         "aarch64_tiny", "aarch64_small", "aarch64_large",
14277         "aarch64_little_endian", "aarch64_big_endian".
14278
14279 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14280
14281         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14282         Document "aarch64_small_fpic".
14283
14284 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14285
14286         * configure.ac: Add check for aarch64 assembler -fpic relocation
14287         modifier support.
14288         * configure: Regenerate.
14289         * config.in: Regenerate.
14290         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14291         to -fPIC if not support of -fpic relocation modifier in assembler.
14292
14293 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14294
14295         PR bootstrap/66685
14296         * rtl.c (classify_insn): Handle returns in PARALLELs.
14297
14298 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14299
14300         PR middle-end/66633
14301         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14302         to true if the function is nested and if not optimizing.
14303         (convert_local_omp_clauses): Initialize need_frame to true if the
14304         function contains nested functions and if not optimizing.
14305
14306 2015-07-01  Richard Biener  <rguenther@suse.de>
14307
14308         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14309         (X & Y) ^ Y -> ~X & Y transforms to ...
14310         * match.pd: ... here.
14311
14312 2015-07-01  Richard Biener <rguenther@suse.de>
14313
14314         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14315         of converts to avoid uninteresting noise from the conversion
14316         simplifying patterns.
14317
14318 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14319
14320         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14321         gcc_assert evaluating its argument for side-effect.
14322
14323 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14324
14325         PR target/64833
14326         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14327         flag_pic is set.
14328
14329 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14330
14331         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14332         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14333         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14334         to the inner DFS walk.
14335
14336 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14337
14338         * target-insns.def (jump): New targetm instruction pattern.
14339         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14340         instead of gen_jump.
14341         (fix_up_crossing_landing_pad): Likewise.
14342         (add_labels_and_missing_jumps): Likewise.
14343         (fix_crossing_conditional_branches): Likewise.
14344         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14345         (force_nonfallthru_and_redirect): Likewise.
14346         * cse.c (cse_insn): Likewise.
14347         * expmed.c (expand_divmod): Likewise.
14348         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14349         * haifa-sched.c (init_before_recovery): Likewise.
14350         (sched_create_recovery_edges): Likewise.
14351         * ifcvt.c (find_cond_trap): Likewise.
14352         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14353         (expand_float, expand_fix): Likewise.
14354         * stmt.c (emit_jump): Likewise.
14355
14356 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14357
14358         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14359         (HAVE_store_multiple, gen_store_multiple): Delete.
14360         * target-insns.def (load_multiple, store_multiple): New targetm
14361         instruction patterns.
14362         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14363         of HAVE_*/gen_* interface.
14364
14365 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14366
14367         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14368         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14369         (gen_mem_signal_fence): Delete.
14370         * target-insns.def (mem_signal_fence, mem_thread_fence)
14371         (memory_barrier): New targetm instruction patterns.
14372         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14373         interface.
14374         (expand_mem_signal_fence): Likewise.
14375
14376 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14377
14378         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14379         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14380         targetm instruction patterns.
14381         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14382         interface.
14383         * calls.c (expand_call): Likewise.
14384         * cfgrtl.c (cfg_layout_finalize): Likewise.
14385         * df-scan.c (df_get_entry_block_def_set): Likewise.
14386         (df_get_exit_block_use_set): Likewise.
14387         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14388         * final.c (final_start_function): Likewise.
14389         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14390         (reposition_prologue_and_epilogue_notes): Likewise.
14391         * reorg.c (find_end_label): Likewise.
14392         * toplev.c (process_options): Likewise.
14393
14394 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14395
14396         * typed-splay-tree.h: New file.
14397
14398 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14399
14400         PR debug/66691
14401         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14402         (lra_substitute_pseudo_within_insn): Ditto.
14403         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14404         of constant.
14405         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14406         to lra_substitute_pseudo.
14407         * lra-lives.c (process_bb_lives): Add an argument to
14408         lra_substitute_pseudo_within_insn call.
14409         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14410         argument to lra_substitute_pseudo and
14411         lra_substitute_pseudo_within_insn calls.
14412         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14413
14414 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14415
14416         * configure: Regenerated.
14417
14418 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14419
14420         * config.gcc: Support i[34567]86-*-elfiamcu target.
14421         * config/i386/iamcu.h: New.
14422         * config/i386/i386.opt: Add -miamcu.
14423         * doc/invoke.texi: Document -miamcu.
14424         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14425         off x87/MMX/SSE/AVX codegen for -miamcu.
14426         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14427         __iamcu/__iamcu__ for -miamcu.
14428         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14429         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14430         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14431         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14432         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14433         MCU by default.  Default long double to 64-bit for Intel MCU.
14434         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14435         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14436         AVX is turned on.
14437         (function_arg_advance_32): Pass value whose size is no larger
14438         than 8 bytes in registers for Intel MCU.
14439         (function_arg_32): Likewise.
14440         (ix86_return_in_memory): Return value whose size is no larger
14441         than 8 bytes in registers for Intel MCU.
14442         (iamcu_alignment): New function.
14443         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14444         true.
14445         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14446         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14447         true.
14448
14449 2015-06-30  Marek Polacek  <polacek@redhat.com>
14450
14451         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14452         both operands of the resulting expression.
14453
14454         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14455         the final expression with the operand's type and then convert
14456         it to the type of the expression.
14457
14458 2015-06-30  Richard Biener  <rguenther@suse.de>
14459
14460         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14461         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14462         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14463         * match.pd: ... to patterns here.
14464
14465 2015-06-30  Richard Biener  <rguenther@suse.de>
14466
14467         PR tree-optimization/66704
14468         * tree-vect-data-refs.c (vect_setup_realignment): Use
14469         make_ssa_name for non-SSA name source.
14470
14471 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14472
14473         PR middle-end/66702
14474         * omp-low.c (simd_clone_adjust): Handle addressable linear
14475         or uniform parameters or non-gimple type uniform parameters.
14476
14477 2015-06-30  Richard Biener  <rguenther@suse.de>
14478
14479         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14480         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14481         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14482         * match.pd: ... here.
14483         Add a few cases of A - B -> A + (-B) when B "easily" negates.
14484         Move (x & y) | x -> x and friends before
14485         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14486
14487 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14488
14489         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14490         -mfix-ut699 is not specified.
14491         (leon3_load): Rename into...
14492         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
14493         is specified.
14494
14495 2015-06-30  Marek Polacek  <polacek@redhat.com>
14496
14497         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14498         * match.pd: ... here.
14499
14500 2015-06-30  Richard Biener  <rguenther@suse.de>
14501
14502         * target-insns.def (canonicalize_funcptr_for_compare): Add.
14503         * fold-const.c (build_range_check): Replace uses of
14504         HAVE_canonicalize_funcptr_for_compare.
14505         (fold_widened_comparison): Likewise.
14506         (fold_sign_changed_comparison): Likewise.
14507         * dojump.c: Include "target.h".
14508         (do_compare_and_jump): Replace uses of
14509         HAVE_canonicalize_funcptr_for_compare and
14510         gen_canonicalize_funcptr_for_compare.
14511         * expr.c (do_store_flag): Likewise.
14512
14513 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14514
14515         PR tree-optimization/66652
14516         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14517         max_loop_iterations to determine if nit + 1 overflows.
14518
14519 2015-06-30  Richard Biener  <rguenther@suse.de>
14520
14521         * tree-vrp.c (register_edge_assert_for_2): Also register
14522         asserts for dominating conversion results.
14523
14524 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
14525
14526         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14527         field in struct iv.
14528
14529 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
14530
14531         PR target/66509
14532         * configure.ac: Fix filds and fildq test for 64-bit.
14533         * configure: Regenerated.
14534
14535 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
14536
14537         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14538         (nvptx_reorg): Here.  Keep the non-subreg pieces.
14539
14540 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14541
14542         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14543         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14544
14545 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
14546
14547         * config/i386/i386.md (*jcc_1): Use %! in asm template.
14548         Set attribute "length_nobnd" instead of "length".
14549         (*jcc_2): Ditto.
14550         (jump): Ditto.
14551         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14552
14553 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
14554
14555         * config/nios2/nios2.c (nios2_delegitimize_address): Make
14556         assert less restrictive.
14557
14558 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14559
14560         PR fortran/66605
14561         * cgraphunit.c (cgraph_node::finalize_function): Do not call
14562         do_warn_unused_parameter.
14563         * function.c (do_warn_unused_parameter): Move from here.
14564         * function.h (do_warn_unused_parameter): Do not declare.
14565
14566 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14567
14568         PR target/65697
14569         * gcc.target/arm/armv-sync-comp-swap.c: New.
14570         * gcc.target/arm/armv-sync-op-acquire.c: New.
14571         * gcc.target/arm/armv-sync-op-full.c: New.
14572         * gcc.target/arm/armv-sync-op-release.c: New.
14573
14574 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14575
14576         PR target/65697
14577         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14578         initial acquire barrier with final barrier.
14579
14580 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14581
14582         PR target/65697
14583         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14584         initial acquire barrier with final barrier.
14585
14586 2015-06-29  Richard Henderson  <rth@redhat.com>
14587
14588         * config/i386/constraints.md (Bf): New constraint.
14589         * config/i386/i386-c.c (ix86_target_macros): Define
14590         __GCC_ASM_FLAG_OUTPUTS__.
14591         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14592         as flags outputs.
14593         * doc/extend.texi (FlagOutputOperands): Document them.
14594
14595 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
14596
14597         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14598         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14599         unspec name.
14600         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14601         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14602         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14603         (aarch64_symbol_context): Ditto.
14604         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14605         and use new pattern name.
14606         (aarch64_expand_mov_immediate): Ditto.
14607         (aarch64_print_operand): Ditto.
14608         (aarch64_classify_tls_symbol): Ditto.
14609
14610 2015-06-29  Marek Polacek  <polacek@redhat.com>
14611             Marc Glisse  <marc.glisse@inria.fr>
14612
14613         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14614         * match.pd: ... pattern here.
14615
14616 2015-06-29  Tom de Vries  <tom@codesourcery.com>
14617
14618         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14619         function structure.
14620
14621 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14622
14623         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14624         feature description, split out the native option, add a link to
14625         the feature documentation, rearrange and slightly rewrite text.
14626         (Aarch64 options, -mcpu): Likewise.
14627         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
14628         +rdma implies Adv. SIMD.
14629
14630 2015-06-29  Marek Polacek  <polacek@redhat.com>
14631
14632         PR c/66322
14633         * function.c (stack_protect_epilogue): Remove a cast to int.
14634         * doc/invoke.texi: Update -Wswitch-bool description.
14635
14636 2015-06-29  Richard Biener  <rguenther@suse.de>
14637
14638         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14639         * fold-const.c (fold_binary_loc): Move &A - &B simplification
14640         via ptr_difference_const ...
14641         * match.pd: ... here.
14642         When matching (X ^ Y) == Y also match with swapped operands.
14643
14644 2015-06-29  Richard Biener  <rguenther@suse.de>
14645
14646         * lto-streamer.h (LTO_major_version): Bump to 5.
14647
14648 2015-06-29  Richard Biener  <rguenther@suse.de>
14649
14650         PR tree-optimization/66677
14651         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14652         STMT_VINFO_VEC_STMT clobbering less strict.
14653
14654 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
14655
14656         PR middle-end/64130
14657         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14658         division, compute max and min when value ranges for dividend and
14659         divisor are available.
14660
14661 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
14662             Sandra Loosemore <sandra@codesourcery.com>
14663
14664         * regrename.h (regrename_do_replace): Change to return bool.
14665         * regrename.c (rename_chains): Check return value of
14666         regname_do_replace.
14667         (regrename_do_replace): Re-validate the modified insns and
14668         return bool status.
14669         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14670         Update to match rename_chains changes.
14671         * config/c6x/c6x.c (try_rename_operands): Assert that
14672         regrename_do_replace returns true.
14673
14674 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
14675
14676         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14677         operand 2 here.  Use copy_addr_to_reg to copy non-index
14678         register operand 2 to a temporary.
14679         (<mode>_stx): Ditto for operand 1.
14680         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14681         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14682         (ix86_store_bounds): Ditto.
14683
14684 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
14685
14686         * print-tree.c (print_node) [TREE_VEC]: Print its length.
14687
14688 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
14689
14690         * gimple.c (gimple_call_set_fndecl): Remove.
14691         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14692         build1_loc directly instead of build_fold_addr_expr_loc.
14693
14694 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14695
14696         * hash-map.h (hash_map::traverse): Use the definition of the
14697         Key typedef rather than the typedef itself.
14698
14699 2015-06-26  Martin Jambor  <mjambor@suse.cz>
14700
14701         PR debug/66301
14702         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14703         NULL instead of calling dump_enabled_p.
14704
14705 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14706
14707         * config/aarch64/aarch64.opt: (override): New.
14708         * doc/invoke.texi (override): Document.
14709         * config/aarch64/aarch64.c (aarch64_flag_desc): New
14710         (aarch64_fusible_pairs): Likewise.
14711         (aarch64_tuning_flags): Likewise.
14712         (aarch64_tuning_override_function): Likewise.
14713         (aarch64_tuning_override_functions): Likewise.
14714         (aarch64_parse_one_option_token): Likewise.
14715         (aarch64_parse_boolean_options): Likewise.
14716         (aarch64_parse_fuse_string): Likewise.
14717         (aarch64_parse_tune_string): Likewise.
14718         (aarch64_parse_one_override_token): Likewise.
14719         (aarch64_parse_override_string): Likewise.
14720         (aarch64_override_options): Parse the -override string if it
14721         is present.
14722
14723 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14724
14725         * config/aarch64/aarch64-protos.h (tune_params): Remove
14726         const from members.
14727         (aarch64_tune_params): Remove const, change to no longer be
14728         a pointer.
14729         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14730         change to no longer be a pointer, initialize to generic_tunings.
14731         (aarch64_min_divisions_for_recip_mul): Change dereference of
14732         aarch64_tune_params to member access.
14733         (aarch64_reassociation_width): Likewise.
14734         (aarch64_rtx_mult_cost): Likewise.
14735         (aarch64_address_cost): Likewise.
14736         (aarch64_branch_cost): Likewise.
14737         (aarch64_rtx_costs): Likewise.
14738         (aarch64_register_move_cost): Likewise.
14739         (aarch64_memory_move_cost): Likewise.
14740         (aarch64_sched_issue_rate): Likewise.
14741         (aarch64_builtin_vectorization_cost): Likewise.
14742         (aarch64_override_options): Take a copy of the selected tuning
14743         struct in to aarch64_tune_params, rather than just setting
14744         a pointer, change dereferences of aarch64_tune_params to member
14745         accesses.
14746         (aarch64_override_options_after_change): Change dereferences of
14747         aarch64_tune_params to member access.
14748         (aarch64_macro_fusion_p): Likewise.
14749         (aarch_macro_fusion_pair_p): Likewise.
14750         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14751
14752 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14753
14754         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14755         (aarch64_tune_flags): Likewise.
14756         (AARCH64_TUNE_FMA_STEERING): Likewise.
14757         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14758         to AARCH64_FL_USE_FMA_STEERING_PASS.
14759         (cortex-a57.cortex-a53): Likewise.
14760         (cortex-a72): Use cortexa72_tunings.
14761         (cortex-a72.cortex-a53): Likewise.
14762         (exynos-m1): Likewise.
14763         * config/aarch64/aarch64-protos.h (tune_params): Add
14764         a field: extra_tuning_flags.
14765         * config/aarch64/aarch64-tuning-flags.def: New.
14766         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14767         (aarch64_extra_tuning_flags): Likewise.
14768         (aarch64_tune_params): Declare here.
14769         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14770         (cortexa53_tunings): Likewise.
14771         (cortexa57_tunings): Likewise.
14772         (thunderx_tunings): Likewise.
14773         (xgene1_tunings): Likewise.
14774         (cortexa72_tunings): New.
14775         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14776          (gate): Check against aarch64_tune_params.
14777         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14778         aarch64-protos.h.
14779
14780 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14781
14782         * config/aarch64/aarch64-fusion-pairs.def: New.
14783         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14784         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14785         aarch64_fusion_pairs.
14786         (AARCH64_FUSE_MOV_MOVK): Likewise.
14787         (AARCH64_FUSE_ADRP_ADD): Likewise.
14788         (AARCH64_FUSE_MOVK_MOVK): Likewise.
14789         (AARCH64_FUSE_ADRP_LDR): Likewise.
14790         (AARCH64_FUSE_CMP_BRANCH): Likewise.
14791
14792 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14793
14794         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14795         SYMBOL_SMALL_GOT_28K.
14796         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14797         relocation modifiers.
14798         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14799         (ldr_got_small_28k_<mode>): New.
14800         (ldr_got_small_28k_sidi): New.
14801         * config/aarch64/iterators.md (got_modifier): New mode iterator.
14802         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14803         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14804         SYMBOL_SMALL_GOT_28K.
14805         (aarch64_rtx_costs): Add costs for new instruction sequences.
14806         (initialize_aarch64_code_model): Initialize new model.
14807         (aarch64_classify_symbol): Recognize new model and new symbol classification.
14808         (aarch64_asm_preferred_eh_data_format): Support new model.
14809         (aarch64_load_symref_appropriately): Generate new instruction
14810         sequences for -fpic.
14811         (TARGET_USE_PSEUDO_PIC_REG): New definition.
14812         (aarch64_use_pseudo_pic_reg): New function.
14813
14814 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14815
14816         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
14817         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
14818         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
14819         (aarch64_expand_mov_immediate): Ditto.
14820         (aarch64_print_operand): Ditto.
14821         (aarch64_classify_symbol): Ditto.
14822
14823 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
14824
14825         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
14826
14827 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
14828
14829         PR bootstrap/66638
14830         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
14831         assertion failed.  Remove assertion itself.
14832
14833 2015-06-26  Richard Biener  <rguenther@suse.de>
14834
14835         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
14836         and -A CMP CST -> A CMP -CST which is redundant with a pattern
14837         in match.pd.
14838         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
14839         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
14840         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
14841         * match.pd: ... patterns here.
14842
14843 2015-06-26  Marek Polacek  <polacek@redhat.com>
14844
14845         * match.pd ((x | y) & ~(x & y) -> x ^ y,
14846         (x | y) & (~x ^ y) -> x & y): New patterns.
14847
14848 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14849
14850         * rtl.h (emit): Add an optional boolean parameter to control
14851         whether barriers are emitted.
14852         * emit-rtl.c (emit): Likewise.
14853         * gensupport.c (get_emit_function): Return null rather than "emit".
14854         * genemit.c (gen_emit_seq): Handle the null return value.
14855         Don't emit barriers after the final instruction in the sequence.
14856         * gentarget-def.c (main): Don't emit barriers after the instruction.
14857
14858 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14859
14860         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
14861         TARGET_UNIFIED_ASM.
14862
14863 2015-06-26  Richard Biener  <rguenther@suse.de>
14864
14865         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
14866
14867 2015-06-26  Richard Biener  <rguenther@suse.de>
14868
14869         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
14870         irrespective on whether the inner operation has a single use
14871         of both off are constant.
14872
14873 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
14874             Segher Boessenkool  <segher@kernel.crashing.org>
14875
14876         PR target/66412
14877         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
14878         before doing PUT_MODE or PUT_CODE on operands to avoid
14879         in-place RTX modification.
14880
14881 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14882
14883         * gentarget-def.c (def_target_insn): Cast return of strtol to
14884         unsigned int.
14885
14886 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14887
14888         * gimple.h (gimple_call_set_fn): Move inline function.
14889         * gimple.c (gimple_call_set_fn): Relocate here.
14890
14891 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
14892
14893         PR target/65979
14894         PR target/66611
14895         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
14896         the replacement insn will work.
14897
14898 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14899
14900         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
14901         by default.
14902
14903 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
14904
14905         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
14906         * cgraph.h: Include ipa-ref.h and plugin-api.h.
14907         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
14908         (symtab_node::address_can_be_compared_p): Move function.
14909         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
14910         definition here.
14911         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
14912         * auto-profile.c: Likewise.
14913         * bb-reorder.c: Likewise.
14914         * builtins.c: Likewise.
14915         * calls.c: Likewise.
14916         * cfgexpand.c: Likewise.
14917         * cgraphbuild.c: Likewise.
14918         * cgraphclones.c: Likewise.
14919         * cgraphunit.c: Likewise.
14920         * combine.c: Likewise.
14921         * coverage.c: Likewise.
14922         * data-streamer-in.c: Likewise.
14923         * data-streamer-out.c: Likewise.
14924         * data-streamer.c: Likewise.
14925         * dbxout.c: Likewise.
14926         * dwarf2out.c: Likewise.
14927         * except.c: Likewise.
14928         * expr.c: Likewise.
14929         * final.c: Likewise.
14930         * fold-const.c: Likewise.
14931         * ggc-page.c: Likewise.
14932         * gimple-fold.c: Likewise.
14933         * gimple-iterator.c: Likewise.
14934         * gimple-pretty-print.c: Likewise.
14935         * gimple-streamer-in.c: Likewise.
14936         * gimple-streamer-out.c: Likewise.
14937         * gimple.c: Likewise.
14938         * gimplify.c: Likewise.
14939         * ipa-chkp.c: Likewise.
14940         * ipa-comdats.c: Likewise.
14941         * ipa-cp.c: Likewise.
14942         * ipa-devirt.c: Likewise.
14943         * ipa-icf-gimple.c: Likewise.
14944         * ipa-icf.c: Likewise.
14945         * ipa-inline-analysis.c: Likewise.
14946         * ipa-inline-transform.c: Likewise.
14947         * ipa-inline.c: Likewise.
14948         * ipa-polymorphic-call.c: Likewise.
14949         * ipa-profile.c: Likewise.
14950         * ipa-prop.c: Likewise.
14951         * ipa-pure-const.c: Likewise.
14952         * ipa-ref.c: Likewise.
14953         * ipa-reference.c: Likewise.
14954         * ipa-split.c: Likewise.
14955         * ipa-utils.c: Likewise.
14956         * ipa-visibility.c: Likewise.
14957         * ipa.c: Likewise.
14958         * langhooks.c: Likewise.
14959         * lto-cgraph.c: Likewise.
14960         * lto-compress.c: Likewise.
14961         * lto-opts.c: Likewise.
14962         * lto-section-in.c: Likewise.
14963         * lto-section-out.c: Likewise.
14964         * lto-streamer-in.c: Likewise.
14965         * lto-streamer-out.c: Likewise.
14966         * lto-streamer.c: Likewise.
14967         * omp-low.c: Likewise.
14968         * opts-global.c: Likewise.
14969         * passes.c: Likewise.
14970         * predict.c: Likewise.
14971         * print-tree.c: Likewise.
14972         * profile.c: Likewise.
14973         * ree.c: Likewise.
14974         * sanopt.c: Likewise.
14975         * stor-layout.c: Likewise.
14976         * symtab.c: Likewise.
14977         * toplev.c: Likewise.
14978         * trans-mem.c: Likewise.
14979         * tree-cfg.c: Likewise.
14980         * tree-chkp.c: Likewise.
14981         * tree-eh.c: Likewise.
14982         * tree-emutls.c: Likewise.
14983         * tree-inline.c: Likewise.
14984         * tree-nested.c: Likewise.
14985         * tree-parloops.c: Likewise.
14986         * tree-pretty-print.c: Likewise.
14987         * tree-profile.c: Likewise.
14988         * tree-sra.c: Likewise.
14989         * tree-ssa-alias.c: Likewise.
14990         * tree-ssa-live.c: Likewise.
14991         * tree-ssa-loop-ivcanon.c: Likewise.
14992         * tree-ssa-loop-ivopts.c: Likewise.
14993         * tree-ssa-pre.c: Likewise.
14994         * tree-ssa-sccvn.c: Likewise.
14995         * tree-ssa-strlen.c: Likewise.
14996         * tree-ssa-structalias.c: Likewise.
14997         * tree-streamer-in.c: Likewise.
14998         * tree-streamer-out.c: Likewise.
14999         * tree-streamer.c: Likewise.
15000         * tree-switch-conversion.c: Likewise.
15001         * tree-tailcall.c: Likewise.
15002         * tree-vect-data-refs.c: Likewise.
15003         * tree-vect-stmts.c: Likewise.
15004         * tree-vectorizer.c: Likewise.
15005         * tree.c: Likewise.
15006         * tsan.c: Likewise.
15007         * ubsan.c: Likewise.
15008         * value-prof.c: Likewise.
15009         * varasm.c: Likewise.
15010         * varpool.c: Likewise.
15011         * config/arm/arm.c: Likewise.
15012         * config/bfin/bfin.c: Likewise.
15013         * config/c6x/c6x.c: Likewise.
15014         * config/cris/cris.c: Likewise.
15015         * config/darwin-c.c: Likewise.
15016         * config/darwin.c: Likewise.
15017         * config/i386/i386.c: Likewise.
15018         * config/i386/winnt.c: Likewise.
15019         * config/microblaze/microblaze.c: Likewise.
15020         * config/mips/mips.c: Likewise.
15021         * config/rs6000/rs6000.c: Likewise.
15022         * config/rx/rx.c: Likewise.
15023         * config/s390/s390.c: Likewise.
15024         * config/tilegx/mul-tables.c: Likewise.
15025
15026 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15027
15028         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15029         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15030         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15031         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15032         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15033         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15034         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15035         config/microblaze/microblaze.c, config/mips/mips.c,
15036         config/mmix/mmix.c, config/mn10300/mn10300.c,
15037         config/moxie/moxie.c, config/msp430/msp430.c,
15038         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15039         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15040         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15041         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15042         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15043         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15044         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15045         target-def.h include.
15046         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15047
15048 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15049
15050         * Makefile.in (TARGET_DEF): Add target-insns.def.
15051         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15052         (build/gentarget-def.o): New rule.
15053         (genprogrtl): Add target-def.
15054         * target-insns.def, gentarget-def.c: New files.
15055         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15056         based on the contents of target-insns.def.
15057         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15058         (HAVE_return, gen_return): Delete.
15059         * target-def.h: Include insn-target-def.h.
15060         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15061         instead of direct calls.  Rely on them to do the appropriate assertions.
15062         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15063         (convert_jumps_to_returns): Use targetm interface instead of
15064         direct calls.
15065         (thread_prologue_and_epilogue_insns): Likewise.
15066         * reorg.c (find_end_label, dbr_schedule): Likewise.
15067         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15068         * shrink-wrap.c (convert_to_simple_return): Likewise.
15069         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15070
15071 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15072
15073         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15074         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15075         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15076         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15077         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15078         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15079         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15080         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15081         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15082         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15083         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15084         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15085         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15086         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15087         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15088         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15089         includes to end.
15090
15091 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15092
15093         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15094         (unbounded_int_hashmap_traits::key_type): Likewise.
15095         * hash-map.h (hash_map): Get the key type from the traits.
15096         * hash-traits.h (default_hash_traits): By default, inherit from the
15097         template parameter.
15098         * alias.c (alias_set_traits): Delete.
15099         (alias_set_entry_d::children): Use alias_set_hash as the first
15100         template parameter.
15101         (record_alias_subset): Update accordingly.
15102         * except.c (tree_hash_traits): Delete.
15103         (type_to_runtime_map): Use tree_hash as the first template parameter.
15104         (init_eh): Update accordingly.
15105         * genmatch.c (capture_id_map_hasher): Delete.
15106         (cid_map_t): Use nofree_string_hash as first template parameter.
15107         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15108         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15109         Use symbol_compare_hash as the first template parameter in
15110         subdivide_hash_map.
15111         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15112         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15113         template parameter.
15114         * passes.c (pass_registry_hasher): Delete.
15115         (name_to_pass_map): Use nofree_string_hash as the first template
15116         parameter.
15117         (register_pass_name): Update accordingly.
15118         * sanopt.c (sanopt_tree_map_traits): Delete.
15119         (sanopt_tree_triplet_map_traits): Delete.
15120         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15121         template parameter.
15122         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15123         the first template parameter.
15124         * sese.c (rename_map_hasher): Delete.
15125         (rename_map_type): Use tree_ssa_name_hash as the first template
15126         parameter.
15127         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15128         (function_summary::m_map): Use map_hash as the first template
15129         parameter.
15130         (function_summary::release): Update accordingly.
15131         * tree-if-conv.c (phi_args_hash_traits): Delete.
15132         (predicate_scalar_phi): Use tree_operand_hash as the first template
15133         parameter to phi_arg_map.
15134         * tree-inline.h (dependence_hasher): Delete.
15135         (copy_body_data::dependence_map): Use dependence_hash as the first
15136         template parameter.
15137         * tree-inline.c (remap_dependence_clique): Update accordingly.
15138         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15139         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15140         parameter.
15141         (addr_stridxptr): Update accordingly.
15142         * value-prof.c (profile_id_traits): Delete.
15143         (cgraph_node_map): Use profile_id_hash as the first template
15144         parameter.
15145         (init_node_map): Update accordingly.
15146         * config/alpha/alpha.c (string_traits): Delete.
15147         (machine_function::links): Use nofree_string_hash as the first
15148         template parameter.
15149         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15150         * config/m32c/m32c.c (pragma_traits): Delete.
15151         (pragma_htab): Use nofree_string_hash as the first template parameter.
15152         (m32c_note_pragma_address): Update accordingly.
15153         * config/mep/mep.c (pragma_traits): Delete.
15154         (pragma_htab): Use nofree_string_hash as the first template parameter.
15155         (mep_note_pragma_flag): Update accordingly.
15156         * config/mips/mips.c (mips16_flip_traits): Delete.
15157         (mflip_mips16_htab): Use nofree_string_hash as the first template
15158         parameter.
15159         (mflip_mips16_use_mips16_p): Update accordingly.
15160         (local_alias_traits): Delete.
15161         (mips16_local_aliases): Use nofree_string_hash as the first template
15162         parameter.
15163         (mips16_local_alias): Update accordingly.
15164
15165 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15166
15167         * hash-map-traits.h (default_hashmap_traits): Delete.
15168
15169 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15170
15171         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15172         (unbounded_int_hashmap_traits): Likewise.
15173         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15174
15175 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15176
15177         * ipa-icf.h (symbol_compare_hash): New class.
15178         (symbol_compare_hashmap_traits): Use it.
15179         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15180         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15181         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15182         default_hashmap_traits.
15183         * sanopt.c (sanopt_tree_triplet_hash): New class.
15184         (sanopt_tree_triplet_map_traits): Use it.
15185
15186 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15187
15188         * gengtype-parse.c (require_template_declaration): Allow '+' in
15189         template parameters.  Consolidate cases.
15190         * hash-traits.h (int_hash): New class.
15191         * alias.c (alias_set_hash): New structure.
15192         (alias_set_traits): Use it.
15193         * symbol-summary.h (function_summary::map_hash): New class.
15194         (function_summary::summary_hashmap_traits): Use it.
15195         * tree-inline.h (dependence_hash): New class.
15196         (dependence_hasher): Use it.
15197         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15198         * value-prof.c (profile_id_hash): New class.
15199         (profile_id_traits): Use it.
15200
15201 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15202
15203         * config/mips/mips.c (mips16_flip_traits): Use it.
15204         (local_alias_traits, mips16_local_aliases): Convert from a map of
15205         rtxes to a map of symbol names.
15206         (mips16_local_alias): Update accordingly.
15207
15208 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15209
15210         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15211         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15212         * passes.c (pass_registry_hasher): Likewise.
15213         * config/alpha/alpha.c (string_traits): Likewise.
15214         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15215         * config/m32c/m32c.c (pragma_traits): Likewise.
15216         * config/mep/mep.c (pragma_traits): Likewise.
15217
15218 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15219
15220         * tree-hash-traits.h (tree_hash): New class.
15221         * except.c: Include tree-hash-traits.h.
15222         (tree_hash_traits): Use tree_hash.
15223
15224 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15225
15226         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15227         * sese.c: Include tree-hash-traits.h.
15228         (rename_map_hasher): Use tree_ssa_name_hasher.
15229
15230 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15231
15232         * tree-hash-traits.h (tree_decl_hash): New class.
15233         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15234         (stridxlist_hash_traits): Use tree_decl_hash.
15235
15236 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15237
15238         * tree-hash-traits.h: New file.
15239         (tree_operand_hash): New class.
15240         * sanopt.c: Include tree-hash-traits.h.
15241         (sanopt_tree_map_traits): Use tree_operand_hash.
15242         * tree-if-conv.c: Include tree-hash-traits.h.
15243         (phi_args_hash_traits): Use tree_operand_hash.
15244         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15245         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15246
15247 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15248
15249         * hash-map-traits.h: Include hash-traits.h.
15250         (simple_hashmap_traits): New class.
15251         * mem-stats.h (hash_map): Change the default traits to
15252         simple_hashmap_traits<default_hash_traits<Key> >.
15253
15254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15255
15256         * hash-table.h: Update comments.
15257
15258 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15259
15260         * hash-traits.h (default_hash_traits): New structure.
15261         * hash-set.h (default_hashset_traits): Delete.
15262         (hash_set): Use default_hash_traits<Key> instead of
15263         default_hashset_traits.  Delete hash_entry type and use Key directly.
15264         * ipa-devirt.c (pair_traits): Delete.
15265         (default_hash_traits <type_pair>): Override.
15266         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15267         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15268
15269 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15270
15271         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15272
15273 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15274
15275         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15276         (has_is_empty, is_empty_helper): Delete.
15277         (has_mark_deleted, mark_deleted_helper): Delete.
15278         (has_mark_empty, mark_empty_helper): Delete.
15279         (hash_table::is_deleted): Call the Descriptor unconditionally.
15280         (hash_table::is_empty): Likewise.
15281         (hash_table::mark_deleted): Likewise.
15282         (hash_table::mark_empty): Likewise.
15283
15284 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15285
15286         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15287         redundant typedefs and members.
15288         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15289         redundant typedefs.
15290         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15291         * ipa-devirt.c (odr_name_hasher): Likewise.
15292         (polymorphic_call_target_hasher): Likewise.
15293         * ira-costs.c (cost_classes_hasher): Likewise.
15294         * statistics.c (stats_counter_hasher): Likewise.
15295         * trans-mem.c (log_entry_hasher): Likewise.
15296         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15297         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15298         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15299         * var-tracking.c (variable_hasher): Likewise.
15300         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15301         Remove redundant typedefs and members.
15302
15303 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15304
15305         * hash-traits.h (ggc_cache_hasher): Rename to...
15306         (ggc_cache_remove): ...this and remove typedefs.
15307         (ggc_cache_ptr_hash): New class.
15308         * hash-table.h: Update commentary.
15309         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15310         rather than ggc_cache_hasher.
15311         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15312         (const_double_hasher, const_fixed_hasher): Likewise.
15313         * function.c (insn_cache_hasher): Likewise.
15314         * trans-mem.c (tm_wrapper_hasher): Likewise.
15315         * tree.h (tree_decl_map_cache_hasher): Likewise.
15316         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15317         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15318         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15319         * varasm.c (tm_clone_hasher): Likewise.
15320         * config/i386/i386.c (dllimport_hasher): Likewise.
15321         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15322         (tree_hasher): Likewise.
15323
15324 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15325
15326         * hash-traits.h (ggc_hasher): Rename to...
15327         (ggc_remover): ...this and remove typedefs.
15328         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15329         (ggc_ptr_hash): New class.
15330         * hash-table.h: Update comment.
15331         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15332         ggc_hasher.
15333         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15334         (tree_descriptor_hasher): Likewise.
15335         * cgraph.c (function_version_hasher): Likewise.
15336         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15337         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15338         (dw_loc_list_hasher, addr_hasher): Likewise.
15339         * function.h (used_type_hasher): Likewise.
15340         * function.c (temp_address_hasher): Likewise.
15341         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15342         * libfuncs.h (libfunc_hasher): Likewise.
15343         * lto-streamer.h (decl_state_hasher): Likewise.
15344         * optabs.c (libfunc_decl_hasher): Likewise.
15345         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15346         * varasm.c (section_hasher, object_block_hasher): Likewise.
15347         (const_rtx_desc_hasher): Likewise.
15348         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15349         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15350
15351 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15352
15353         * hash-traits.h (free_ptr_hash): New class.
15354         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15355         rather than typed_free_remove.  Remove redudant typedefs.
15356         (external_ref_hasher): Likewise.
15357         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15358         (ehspec_hasher): Likewise.
15359         * ggc-common.c (saving_hasher): Likewise.
15360         * gimplify.c (gimplify_hasher): Likewise.
15361         * haifa-sched.c (delay_i2_hasher): Likewise.
15362         * loop-invariant.c (invariant_expr_hasher): Likewise.
15363         * loop-iv.c (biv_entry_hasher): Likewise.
15364         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15365         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15366         * tree-cfg.c (locus_discrim_hasher): Likewise.
15367         * tree-eh.c (finally_tree_hasher): Likewise.
15368         * tree-into-ssa.c (var_info_hasher): Likewise.
15369         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15370         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15371         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15372         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15373         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15374         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15375         (shared_bitmap_hasher): Likewise.
15376         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15377         * tree-vectorizer.h (peel_info_hasher): Likewise.
15378         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15379         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15380
15381 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15382
15383         * hash-table.h: Update comments.
15384         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15385         (nofree_ptr_hash): New class.
15386         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15387         than typed_noop_remove.  Remove redudant typedefs.
15388         * attribs.c (attribute_hasher): Likewise.
15389         * cfg.c (bb_copy_hasher): Likewise.
15390         * cselib.c (cselib_hasher): Likewise.
15391         * dse.c (invariant_group_base_hasher): Likewise.
15392         * dwarf2cfi.c (trace_info_hasher): Likewise.
15393         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15394         (comdat_type_hasher, loc_list_hasher): Likewise.
15395         * gcse.c (pre_ldst_expr_hasher): Likewise.
15396         * genmatch.c (id_base): Likewise.
15397         * genrecog.c (test_pattern_hasher): Likewise.
15398         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15399         * haifa-sched.c (delay_i1_hasher): Likewise.
15400         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15401         * ipa-icf.h (congruence_class_group_hash): Likewise.
15402         * ipa-profile.c (histogram_hash): Likewise.
15403         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15404         * lto-streamer.h (string_slot_hasher): Likewise.
15405         * lto-streamer.c (tree_entry_hasher): Likewise.
15406         * plugin.c (event_hasher): Likewise.
15407         * postreload-gcse.c (expr_hasher): Likewise.
15408         * store-motion.c (st_expr_hasher): Likewise.
15409         * tree-sra.c (uid_decl_hasher): Likewise.
15410         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15411         (ssa_name_var_hash): Likewise.
15412         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15413         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15414         * tree-ssa-pre.c (pre_expr_d): Likewise.
15415         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15416         * vtable-verify.h (registration_hasher): Likewise.
15417         * vtable-verify.c (vtbl_map_hasher): Likewise.
15418         * config/arm/arm.c (libcall_hasher): Likewise.
15419         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15420         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15421         * config/sol2.c (comdat_entry_hasher): Likewise.
15422         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15423         (print_fold_checksum, fold_checksum_tree): Likewise.
15424         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15425         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15426         (fold_build_call_array_loc): Likewise.
15427         * tree-ssa-ccp.c (gimple_htab): Likewise.
15428         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15429         rather than pointer_type.
15430
15431 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15432
15433         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15434         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15435
15436 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15437
15438         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15439         (ggc_hasher::ggc_mx): Likewise.
15440         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15441         that duplicate ggc_hasher ones.
15442
15443 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15444
15445         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15446         (gt_cleare_cache): Check here for deleted and empty entries.
15447         Replace handle_cache_entry with a call to keep_cache_entry.
15448         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15449         (ggc_cache_hasher::keep_cache_entry): New function.
15450         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15451         (tm_wrapper_hasher::keep_cache_entry): New function.
15452         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15453         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15454         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15455         (type_cache_hasher::keep_cache_entry): New function.
15456         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15457         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15458         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15459         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15460         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15461         (tm_clone_hasher::keep_cache_entry): New function.
15462         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15463         (dllimport_hasher::keep_cache_entry): New function.
15464
15465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15466
15467         * hash-table.h: Include hash-traits.h.
15468         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15469         (ggc_cache_hasher): Move to...
15470         * hash-traits.h: ...this new file.
15471
15472 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15473
15474         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15475         struct cl_optimization.
15476         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15477         * tree.c (make_node_stat): Allocate cl_optimization struct.
15478         (copy_node_stat): Allocate and copy cl_optimization struct.
15479
15480 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15481
15482         * function.h (struct incoming_args): Move struct.
15483         (pass_by_reference, reference_callee_copied): Remove prototypes.
15484         * emit-rtl.h (struct incoming_args): Relocate struct here.
15485         * calls.h (pass_by_reference, reference_callee_copied): Relocate
15486         prototypes here.
15487         * function.c (pass_by_reference, reference_callee_copied): Move.
15488         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15489         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15490         * ipa-chkp.c: Include calls.h.
15491
15492 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
15493
15494         * alias.h (alias_set_type): Move typedef.
15495         * coretypes.h (alias_set_type): Relocate typedef here.
15496         * rtl.h: Don't include alias.h.
15497
15498 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15499
15500         * cgraph.h (cgraph_rtl_info): Move to rtl.h
15501         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15502         and instance.
15503         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15504         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15505         doesn't exist.
15506         * calls.c: Include hard-reg-set.h before rtl.h.
15507         * ira.c: Likewise.
15508
15509 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15510             Vladimir Makarov  <vmakarov@redhat.com>
15511
15512         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15513         Add assert.
15514
15515 2015-06-25  Richard Biener  <rguenther@suse.de>
15516
15517         * fold-const.c (fold_binary_loc): Move simplification of
15518         (X <<>> C1) & C2 ...
15519         * match.pd: ... here.
15520
15521 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15522
15523         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15524
15525 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15526
15527         * match.pd: Add patterns for vec_conds between 1 and 0.
15528
15529 2015-06-25  Richard Biener  <rguenther@suse.de>
15530
15531         * tree-vect-stmts.c (vectorizable_conversion): Do not set
15532         STMT_VINFO_VEC_STMT for SLP.
15533         (vectorizable_store): Likewise.
15534         (vectorizable_load): Likewise.
15535         (vect_transform_stmt): Catch SLP vectorization clobbering
15536         STMT_VINFO_VEC_STMT.
15537
15538 2015-06-25  Richard Biener  <rguenther@suse.de>
15539
15540         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15541         dumping.
15542         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15543         cleanup resulting dead code and parameters.
15544         (vect_transform_slp_perm_load): Adjust.
15545
15546 2015-06-25  Nick Clifton  <nickc@redhat.com>
15547
15548         * config/bfin/bfin.c (bfin_expand_prologue): Set
15549         current_function_static_stack_size if flag_stack_usage_info is set.
15550         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15551         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15552         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15553         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15554
15555 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15556
15557         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15558         comment that the generated IV is unsigned.
15559
15560 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15561
15562         PR target/29693
15563         * config/arm/arm.c (arm_dbx_register_number): Return
15564         DWARF_FRAME_REGISTERS by default.
15565
15566 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15567
15568         * dominance.c (calculate_dominance_info): Fix verify_dominators call
15569         argument.  Call verify_dominator when reusing dominator info.
15570
15571 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15572
15573         PR target/66563
15574         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15575         an additional element of the unspec vector.  Modify indices
15576         of operands.
15577         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15578         * config/sh/sh.c (prepare_move_operands): Pass incremented
15579         const_int to gen_GOTaddr2picreg.
15580         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15581
15582 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15583
15584         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15585         Condition on TARGET_FLOAT.
15586
15587 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15588
15589         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15590         and (no)crypto.
15591
15592 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15593
15594         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15595
15596         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15597         aarch64_err_no_fpadvsimd.
15598
15599         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15600         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15601         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15602         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15603         Turn error into assert, test TARGET_FLOAT.
15604         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15605         TARGET_FLOAT.
15606
15607 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
15608
15609         PR debug/66482
15610         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15611
15612 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15613
15614         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15615
15616 2015-06-24  Renlin Li <renlin.li@arm.com>
15617
15618         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15619         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15620
15621 2015-06-24  Richard Biener  <rguenther@suse.de>
15622
15623         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15624         (main): Likewise.
15625         (lower_opt_convert): Support lowering of conditional view_convert.
15626         (parser::parse_operation): Likewise.
15627         (parser::parse_for): Likewise.
15628
15629 2015-06-24  Renlin Li  <renlin.li@arm.com>
15630
15631         * varasm.c (emit_local): Use unsigned int for align variable.
15632
15633 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15634
15635         PR target/63408
15636         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15637         for negative numbers.
15638
15639 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15640
15641         PR rtl-optimization/66306
15642         * reload.c (find_reloads): Swap the match_dup info for
15643         commutative operands.
15644
15645 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15646
15647         * config/s390/vx-builtins.md
15648         ("vec_scatter_element<mode>_<non_vec_int>")
15649         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15650         attribute with bhfgq.
15651
15652 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15653
15654         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15655
15656 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15657
15658         * config/s390/s390-builtin-types.def: Add flag to indicate the
15659         options under which the function type is needed.
15660         * config/s390/s390-builtins.def: Add flag to indicate the options
15661         under which the builtin is enabled.
15662         * config/s390/s390-builtins.h: Add flags parameter to macro
15663         definitions.
15664         (bflags_for_builtin): New function.
15665         (flags_for_builtin): Renamed to ...
15666         (opflags_for_builtin): ... this.
15667         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15668         flags_for_builtin to bflags_for_builtin and
15669         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15670         * config/s390/s390.c: Add initialization of bflags_builtin and
15671         opflags_builtin arrays.
15672         Remove code for flags_builtin.
15673         (s390_init_builtins): Only create builtin function types if one of
15674         their flags is active.
15675         Only create builtins if all of their flags are active.
15676         (s390_expand_builtin): Rename flags_for_builtin to
15677         opflags_for_builtin.
15678
15679 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15680
15681         * config/s390/vecintrin.h: Remove internal builtins.
15682
15683 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15684
15685         * config/s390/s390.c (s390_secondary_reload): Fix check for
15686         GENERAL_REGS register class.
15687
15688 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15689
15690         * config/s390/s390.c (s390_support_vector_misalignment): Call
15691         default implementation for !TARGET_VX.
15692
15693 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15694
15695         * config/s390/s390.c (s390_legitimate_constant_p): Add
15696         TARGET_VX check.
15697
15698 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15699
15700         * config/s390/s390.c (s390_vector_abi): New variable definition.
15701         (s390_check_type_for_vector_abi): New function.
15702         (TARGET_ASM_FILE_END): New macro definition.
15703         (s390_asm_file_end): New function.
15704         (s390_function_arg): Call s390_check_type_for_vector_abi.
15705         (s390_gimplify_va_arg): Likewise.
15706         * configure: Regenerate.
15707         * configure.ac: Check for .gnu_attribute Binutils feature.
15708
15709 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
15710
15711         PR target/65803
15712         * config/bfin/bfin.c (hwloop_optimize): Initialize
15713         JUMP_LABEL for newly created jump.
15714
15715 2015-06-23  Tristan Gingold  <gingold@adacore.com>
15716
15717         * collect-utils.c (collect_wait): Unlink the response file here
15718         instead of...
15719         (do_wait): ...here.
15720         (utils_cleanup): ...and here.
15721
15722 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
15723
15724         * df-scan.c: Don't include target-def.h.
15725         * targhooks.c: Likewise.
15726         * config/arm/arm-c.c: Likewise.
15727         * config/i386/i386-c.c: Likewise.
15728         * config/nds32/nds32-cost.c: Likewise.
15729         * config/nds32/nds32-fp-as-gp.c: Likewise.
15730         * config/nds32/nds32-intrinsic.c: Likewise.
15731         * config/nds32/nds32-isr.c: Likewise.
15732         * config/nds32/nds32-md-auxiliary.c: Likewise.
15733         * config/nds32/nds32-memory-manipulation.c: Likewise.
15734         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15735         * config/nds32/nds32-predicates.c: Likewise.
15736
15737 2015-06-23  Richard Biener  <rguenther@suse.de>
15738
15739         PR tree-optimization/66636
15740         * tree-vect-stmts.c (vectorizable_store): Properly compute the
15741         def type for further defs for strided stores.
15742
15743 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
15744
15745         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15746         conditional selects.
15747         (setcc_int<mode>, setcc_float<mode>): Reformat.
15748
15749 2015-06-23  Marek Polacek  <polacek@redhat.com>
15750
15751         * match.pd ((x + y) - (x | y) -> x & y,
15752         (x + y) - (x & y) -> x | y): New patterns.
15753
15754 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
15755
15756         PR 65711
15757         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15758         '-dynamic-linker' within %{!shared: ...}.
15759
15760 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
15761
15762         PR target/66560
15763         * config/i386/predicates.md (addsub_vm_operator): New predicate.
15764         (addsub_vs_operator): Ditto.
15765         (addsub_vs_parallel): Ditto.
15766         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15767         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15768         Put minus RTX before plus and adjust vec_merge selector.
15769         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15770         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15771         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15772         (addsub vec_merge splitters): New combiner splitters.
15773         (addsub vec_select/vec_concat splitters): Ditto.
15774
15775 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
15776
15777         PR tree-optimization/66449
15778         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15779         POINTER_PLUS_EXPR for pointers.
15780
15781 2015-06-23  Alan Modra  <amodra@gmail.com>
15782
15783         * rtlanal.c (commutative_operand_precedence): Correct comments.
15784         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15785         declaration.  Return an int.  Distinguish REG,REG return from
15786         others.
15787         (struct simplify_plus_minus_op_data): Make local to function.
15788         (simplify_plus_minus): Don't set canonicalized if merely sorting
15789         registers.  Avoid packing ops if nothing changes.  White space fixes.
15790
15791 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
15792
15793         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15794         -fdump-ada-spec is passed but not if -fsyntax-only is.
15795
15796 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
15797
15798         PR bootstrap/63740
15799         * lra-lives.c (process_bb_lives): Check insn copying the same
15800         reload pseudo and don't create a copy for it.
15801
15802 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15803
15804         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15805         for cond_stmt.
15806
15807 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15808
15809         * builtins.def (DEF_GOMP_BUILTIN): Test
15810         'flag_tree_parallelize_loops > 1' instead of
15811         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
15812
15813 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15814
15815         * dominance.c (calculate_dominance_info): Verify dominators if
15816         early-out.
15817
15818 2015-06-22  Marek Polacek  <polacek@redhat.com>
15819
15820         * match.pd ((x ^ y) ^ (x | y) -> x & y,
15821         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
15822         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
15823         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
15824
15825 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
15826
15827         PR target/65871
15828         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
15829         cost of embedded comparison.
15830
15831 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15832
15833         PR target/65914
15834         * config/rs6000/predicates.md (altivec_register_operand): Permit
15835         virtual stack registers.
15836         (vsx_register_operand): Likewise.
15837         (vfloat_operand): Likewise.
15838         (vint_operand): Likewise.
15839         (vlogical_operand): Likewise.
15840
15841 2015-06-22  Richard Biener  <rguenther@suse.de>
15842
15843         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
15844         and single_scalar_iteration_cost members.
15845         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
15846         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
15847         (vect_get_single_scalar_iteration_cost): Remove.
15848         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15849         Use LOOP_VINFO_SCALAR_ITERATION_COST.
15850         * tree-vect-loop.c (destroy_loop_vec_info): Free
15851         scalar_cost_vec.
15852         (vect_get_single_scalar_iteration_cost): Compute result into
15853         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
15854         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
15855         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
15856         (vect_estimate_min_profitable_iters): Use them.
15857
15858 2015-06-22  Christian Bruel  <christian.bruel@st.com>
15859
15860         PR target/52144
15861         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
15862         (TARGET_INSERT_ATTRIBUTES): Define.
15863         (thumb_flipper): New var.
15864         * config/arm/arm.opt (-mflip-thumb): New switch.
15865
15866 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15867             Martin Liska  <mliska@suse.cz>
15868
15869         PR ipa/65908
15870         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
15871         construction of arg_types.
15872         (sem_function::sem_function): Likewise.
15873         (sem_function::~sem_function): Remove destruction of arg_types.
15874         (sem_function::compatible_parm_types_p): New function.
15875         (sem_function::equals_wpa): Reorg matching of return values
15876         and parameter types.
15877         (sem_function::equals_private): Reorg mathcing of argument types.
15878         (sem_function::parse_tree_args): Remove.
15879         * ipa-icf.h (init_wpa): Do not call it.
15880         (parse_tree_args): Remove.
15881         (compatible_parm_types_p): Declare.
15882         (result_type): Remove.
15883         (arg_types): Remove.
15884
15885 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
15886
15887         PR ipa/66351
15888         * ipa-polymorphic-call.c
15889         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
15890         initializing alias oracle; fix formating; set base_alias_set if it
15891         is known.
15892
15893 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
15894
15895         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
15896         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
15897         (find_inc): Likewise.
15898         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
15899         swapping.
15900         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
15901         * df-scan.c (df_swap_refs): Remove.
15902         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
15903         * dominance.c (link_roots): Use std::swap instead of manually swapping.
15904         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
15905         * fold-const.c (fold_relational_const): Likewise.
15906         * genattrtab.c (simplify_test_exp): Likewise.
15907         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
15908         gimple_simplify): Likewise.
15909         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
15910         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
15911         * ipa-devirt.c (add_type_duplicate): Likewise.
15912         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
15913         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
15914         * lra.c (lra_create_copy): Likewise.
15915         * lto-streamer-out.c (DFS::DFS): Likewise.
15916         * modulo-sched.c (get_sched_window): Likewise.
15917         * omega.c (omega_pretty_print_problem): Likewise.
15918         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
15919         * reload1.c (reloads_unique_chain_p): Likewise.
15920         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
15921         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
15922         use std::swap.
15923         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
15924         manually swapping.
15925         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
15926         predicate_mem_writes): Likewise.
15927         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
15928         * tree-predcom.c (combine_chains): Likewise.
15929         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
15930         refs_may_alias_p_1): Likewise.
15931         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
15932         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15933         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
15934         number_of_iterations_cond): Likewise.
15935         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15936         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15937         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
15938         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
15939         * tree-vrp.c (extract_range_from_binary_expr_1,
15940         extract_range_from_unary_expr_1): Likewise.
15941
15942 2015-06-20  Marek Polacek  <polacek@redhat.com>
15943
15944         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
15945
15946 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15947
15948         PR target/66591
15949         * config/sh/sh.c (prepare_move_operands): Replace subreg
15950         index term with R0 for base and index addressing.
15951
15952 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
15953
15954         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
15955         op1 is an fp zero.
15956         (movsf_aarch64): Change condition from register_operand to
15957         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
15958         load1.  Change type for alternative 7 to store1.
15959         (movdf_aarch64): Likewise.
15960
15961 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
15962
15963         * config/vax/vax.md: Adjust sign/zero extend patterns to
15964         handle SUBREGs in operands[1].
15965
15966 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15967
15968         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
15969         of manually swapping.
15970         (expand_vec_perm_interleave2): Likewise.
15971
15972 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
15973
15974         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
15975         reuse bounds created for abnormal ssa names.
15976
15977 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
15978
15979         * config/nvptx/nvptx.md (allocate_stack): Rename to...
15980         (allocate_stack_<mode>): ... this, and add :P on both
15981         match_operand and unspec.
15982         (allocate_stack): New expander.
15983
15984 2015-06-19  Christian Bruel  <christian.bruel@st.com>
15985
15986         PR target/66541
15987         PR target/52144
15988         * config/arm/arm.c (arm_set_current_function): Handle
15989         explicit default options.
15990
15991 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
15992
15993         * config/i386/i386.md (*movsicc_noc_zext): New insn.
15994         (zero-extended cmove with mem peephole2): New pattern.
15995         (cmove with mem peephole2): Merge patterns.
15996
15997 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
15998
15999         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16000
16001 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16002
16003         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16004         * config/mips/mips.md (*madd4<mode>): Ditto.
16005         (*nmadd3<mode>) Ditto.
16006         (*nmadd4<mode>_fastmath): Ditto.
16007         (*nmadd3<mode>_fastmath): Ditto.
16008         (*nmsub4<mode>): Ditto.
16009         (*nmsub3<mode>): Ditto.
16010         (*nmsub4<mode>_fastmath): Ditto.
16011         (*nmsub3<mode>_fastmath): Ditto.
16012
16013 2015-06-18  Michael Matz  <matz@suse.de>
16014
16015         PR middle-end/66253
16016         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16017         grouped strided stores.
16018         (vectorizable_load): Don't use the DR from first_stmt in
16019         the non-SLP grouped strided case.
16020
16021 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16022
16023         PR target/66569
16024         * function.c (assign_bounds): Add arguments assign_regs,
16025         assign_special, assign_bt.
16026         (assign_parms): For vararg functions handle bounds in BT
16027         and special slots after incoming vararg bounds.
16028
16029 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16030
16031         PR middle-end/66568
16032         * cfgexpand.c (expand_return): Handle missing bounds.
16033         (expand_gimple_stmt_1): Likewise.
16034         * tree-chkp.c (chkp_expand_zero_bounds): New.
16035         * tree-chkp.h (chkp_expand_zero_bounds): New.
16036
16037 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16038
16039         PR middle-end/66567
16040         * ipa-chkp.c (chkp_maybe_create_clone): Require
16041         functions to be instrumentable.
16042         * tree-chkp.c (chkp_replace_function_pointer): Use
16043         chkp_instrumentable_p instead of attribute check.
16044
16045 2015-06-18  Richard Biener  <rguenther@suse.de>
16046
16047         PR tree-optimization/66510
16048         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16049         number of vector loads for SLP permuted loads.
16050         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16051         check the stride for loop vectorization.
16052         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16053         vectorization factor.
16054         (vect_analyze_group_access): If the group size is not a power
16055         of two require a epilogue loop.
16056         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16057         compute and optimizing and alias test pruning after final
16058         vectorization factor computation.
16059         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16060         vector alignment.
16061         (vect_transform_slp_perm_load): Properly compute the original
16062         number of vector load stmts.
16063
16064 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16065
16066         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16067         "unlikely character , in @var" warning.
16068
16069 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16070
16071         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16072         (ix86_function_arg_advance): Ditto.
16073         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16074
16075 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16076
16077         * function.h (struct rtl_data): Remove struct and accessor macros.
16078         * emit-rtl.h (struct rtl_data): Relocate to here.
16079         * Makefile.in (GTFILES): Add emit-rtl.h.
16080         * df-core.c: Include emit-rtl.h.
16081         * genattrtab.c: Likewise.
16082         * genconditions.c: Likewise.
16083         * genpreds.c: Likewise.
16084         * genrecog.c: Likewise.
16085         * regcprop.c: Likewise.
16086         * resource.c: Likewise.
16087         * sched-rgn.c: Likewise.
16088         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16089         * config/i386/winnt.c: Likewise.
16090
16091 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16092
16093         PR middle-end/66429
16094         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16095         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16096         and has_force_vectorize_loops flags from cfun into
16097         child_cfun.
16098         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16099         if simduid is non-NULL.
16100         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16101         * passes.def (pass_simduid_cleanup): Add new pass after loop
16102         passes.
16103         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16104         indirection from htab argument's type.
16105         (shrink_simd_arrays): New function.
16106         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16107         Don't call adjust_simduid_builtins if there are no loops.
16108         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16109         (pass_simduid_cleanup::execute): New method.
16110         (make_pass_simduid_cleanup): New function.
16111
16112 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16113
16114         * tree-core.h (tree_target_option): Make opts field a pointer to a
16115         cl_target_option instead of an instance of the struct.
16116         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16117         the structure.
16118         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16119         TARGET_OPTION_NODE.
16120         (copy_node_stat): Allocate and copy struct cl_target_option.
16121
16122 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16123
16124         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16125         Remove conditional exposure of prototypes.
16126         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16127         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16128         definitions in tree.h with functions.
16129         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16130         anon_aggrname_p.
16131         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16132
16133 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16134
16135         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16136         (*cmp<mode>_signed): ... this.
16137         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16138         (*cmp<mode>_unsigned): ... this.  Remove %b.
16139
16140 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16141
16142         * coretypes.h: Include input.h and as-a.h.
16143         * rtl.h: Include input.h and as-a.h for generator files.
16144         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16145         * vec.c: Don't include diagnostic-core.h.
16146         * alias.c: Do not include input.h, line-map.h or is-a.h.
16147         * asan.c: Likewise.
16148         * attribs.c: Likewise.
16149         * auto-inc-dec.c: Likewise.
16150         * auto-profile.c: Likewise.
16151         * bb-reorder.c: Likewise.
16152         * bt-load.c: Likewise.
16153         * builtins.c: Likewise.
16154         * caller-save.c: Likewise.
16155         * calls.c: Likewise.
16156         * ccmp.c: Likewise.
16157         * cfg.c: Likewise.
16158         * cfganal.c: Likewise.
16159         * cfgbuild.c: Likewise.
16160         * cfgcleanup.c: Likewise.
16161         * cfgexpand.c: Likewise.
16162         * cfghooks.c: Likewise.
16163         * cfgloop.c: Likewise.
16164         * cfgloop.h: Likewise.
16165         * cfgloopanal.c: Likewise.
16166         * cfgloopmanip.c: Likewise.
16167         * cfgrtl.c: Likewise.
16168         * cgraph.c: Likewise.
16169         * cgraphbuild.c: Likewise.
16170         * cgraphclones.c: Likewise.
16171         * cgraphunit.c: Likewise.
16172         * cilk-common.c: Likewise.
16173         * combine-stack-adj.c: Likewise.
16174         * combine.c: Likewise.
16175         * compare-elim.c: Likewise.
16176         * convert.c: Likewise.
16177         * coverage.c: Likewise.
16178         * cppbuiltin.c: Likewise.
16179         * cprop.c: Likewise.
16180         * cse.c: Likewise.
16181         * cselib.c: Likewise.
16182         * data-streamer-in.c: Likewise.
16183         * data-streamer-out.c: Likewise.
16184         * data-streamer.c: Likewise.
16185         * dbxout.c: Likewise.
16186         * dce.c: Likewise.
16187         * ddg.c: Likewise.
16188         * debug.c: Likewise.
16189         * df-core.c: Likewise.
16190         * df-problems.c: Likewise.
16191         * df-scan.c: Likewise.
16192         * df.h: Likewise.
16193         * dfp.c: Likewise.
16194         * diagnostic-core.h: Likewise.
16195         * diagnostic.c: Likewise.
16196         * dojump.c: Likewise.
16197         * dominance.c: Likewise.
16198         * domwalk.c: Likewise.
16199         * double-int.c: Likewise.
16200         * dse.c: Likewise.
16201         * dumpfile.c: Likewise.
16202         * dumpfile.h: Likewise.
16203         * dwarf2asm.c: Likewise.
16204         * dwarf2cfi.c: Likewise.
16205         * dwarf2out.c: Likewise.
16206         * emit-rtl.c: Likewise.
16207         * et-forest.c: Likewise.
16208         * except.c: Likewise.
16209         * explow.c: Likewise.
16210         * expmed.c: Likewise.
16211         * expr.c: Likewise.
16212         * final.c: Likewise.
16213         * fixed-value.c: Likewise.
16214         * fold-const.c: Likewise.
16215         * function.c: Likewise.
16216         * fwprop.c: Likewise.
16217         * gcc-plugin.h: Likewise.
16218         * gcse.c: Likewise.
16219         * generic-match-head.c: Likewise.
16220         * ggc-page.c: Likewise.
16221         * gimple-builder.c: Likewise.
16222         * gimple-expr.c: Likewise.
16223         * gimple-fold.c: Likewise.
16224         * gimple-iterator.c: Likewise.
16225         * gimple-low.c: Likewise.
16226         * gimple-match-head.c: Likewise.
16227         * gimple-pretty-print.c: Likewise.
16228         * gimple-ssa-isolate-paths.c: Likewise.
16229         * gimple-ssa-strength-reduction.c: Likewise.
16230         * gimple-streamer-in.c: Likewise.
16231         * gimple-streamer-out.c: Likewise.
16232         * gimple-streamer.h: Likewise.
16233         * gimple-walk.c: Likewise.
16234         * gimple.c: Likewise.
16235         * gimplify-me.c: Likewise.
16236         * gimplify.c: Likewise.
16237         * godump.c: Likewise.
16238         * graph.c: Likewise.
16239         * graphite-blocking.c: Likewise.
16240         * graphite-dependences.c: Likewise.
16241         * graphite-interchange.c: Likewise.
16242         * graphite-isl-ast-to-gimple.c: Likewise.
16243         * graphite-optimize-isl.c: Likewise.
16244         * graphite-poly.c: Likewise.
16245         * graphite-scop-detection.c: Likewise.
16246         * graphite-sese-to-poly.c: Likewise.
16247         * graphite.c: Likewise.
16248         * haifa-sched.c: Likewise.
16249         * hw-doloop.c: Likewise.
16250         * ifcvt.c: Likewise.
16251         * init-regs.c: Likewise.
16252         * input.c: Likewise.
16253         * internal-fn.c: Likewise.
16254         * ipa-chkp.c: Likewise.
16255         * ipa-comdats.c: Likewise.
16256         * ipa-cp.c: Likewise.
16257         * ipa-devirt.c: Likewise.
16258         * ipa-icf-gimple.c: Likewise.
16259         * ipa-icf.c: Likewise.
16260         * ipa-inline-analysis.c: Likewise.
16261         * ipa-inline-transform.c: Likewise.
16262         * ipa-inline.c: Likewise.
16263         * ipa-polymorphic-call.c: Likewise.
16264         * ipa-profile.c: Likewise.
16265         * ipa-prop.c: Likewise.
16266         * ipa-pure-const.c: Likewise.
16267         * ipa-ref.c: Likewise.
16268         * ipa-reference.c: Likewise.
16269         * ipa-split.c: Likewise.
16270         * ipa-utils.c: Likewise.
16271         * ipa-visibility.c: Likewise.
16272         * ipa.c: Likewise.
16273         * ira-build.c: Likewise.
16274         * ira-color.c: Likewise.
16275         * ira-conflicts.c: Likewise.
16276         * ira-costs.c: Likewise.
16277         * ira-emit.c: Likewise.
16278         * ira-lives.c: Likewise.
16279         * ira.c: Likewise.
16280         * jump.c: Likewise.
16281         * langhooks.c: Likewise.
16282         * lcm.c: Likewise.
16283         * loop-doloop.c: Likewise.
16284         * loop-init.c: Likewise.
16285         * loop-invariant.c: Likewise.
16286         * loop-iv.c: Likewise.
16287         * loop-unroll.c: Likewise.
16288         * lower-subreg.c: Likewise.
16289         * lra-assigns.c: Likewise.
16290         * lra-coalesce.c: Likewise.
16291         * lra-constraints.c: Likewise.
16292         * lra-eliminations.c: Likewise.
16293         * lra-lives.c: Likewise.
16294         * lra-remat.c: Likewise.
16295         * lra-spills.c: Likewise.
16296         * lra.c: Likewise.
16297         * lto-cgraph.c: Likewise.
16298         * lto-compress.c: Likewise.
16299         * lto-opts.c: Likewise.
16300         * lto-section-in.c: Likewise.
16301         * lto-section-out.c: Likewise.
16302         * lto-streamer-in.c: Likewise.
16303         * lto-streamer-out.c: Likewise.
16304         * lto-streamer.c: Likewise.
16305         * mcf.c: Likewise.
16306         * mode-switching.c: Likewise.
16307         * modulo-sched.c: Likewise.
16308         * omega.c: Likewise.
16309         * omp-low.c: Likewise.
16310         * optabs.c: Likewise.
16311         * opts-global.c: Likewise.
16312         * opts.h: Likewise.
16313         * passes.c: Likewise.
16314         * plugin.c: Likewise.
16315         * postreload-gcse.c: Likewise.
16316         * postreload.c: Likewise.
16317         * predict.c: Likewise.
16318         * pretty-print.h: Likewise.
16319         * print-rtl.c: Likewise.
16320         * print-tree.c: Likewise.
16321         * profile.c: Likewise.
16322         * real.c: Likewise.
16323         * realmpfr.c: Likewise.
16324         * recog.c: Likewise.
16325         * ree.c: Likewise.
16326         * reg-stack.c: Likewise.
16327         * regcprop.c: Likewise.
16328         * reginfo.c: Likewise.
16329         * regrename.c: Likewise.
16330         * regstat.c: Likewise.
16331         * reload.c: Likewise.
16332         * reload1.c: Likewise.
16333         * reorg.c: Likewise.
16334         * resource.c: Likewise.
16335         * rtl-chkp.c: Likewise.
16336         * rtl-error.c: Likewise.
16337         * rtlanal.c: Likewise.
16338         * rtlhooks.c: Likewise.
16339         * sanopt.c: Likewise.
16340         * sched-deps.c: Likewise.
16341         * sched-ebb.c: Likewise.
16342         * sched-rgn.c: Likewise.
16343         * sched-vis.c: Likewise.
16344         * sdbout.c: Likewise.
16345         * sel-sched-dump.c: Likewise.
16346         * sel-sched-ir.c: Likewise.
16347         * sel-sched.c: Likewise.
16348         * sese.c: Likewise.
16349         * shrink-wrap.c: Likewise.
16350         * simplify-rtx.c: Likewise.
16351         * stack-ptr-mod.c: Likewise.
16352         * statistics.c: Likewise.
16353         * stmt.c: Likewise.
16354         * stor-layout.c: Likewise.
16355         * store-motion.c: Likewise.
16356         * streamer-hooks.c: Likewise.
16357         * stringpool.c: Likewise.
16358         * symtab.c: Likewise.
16359         * target-globals.c: Likewise.
16360         * targhooks.c: Likewise.
16361         * toplev.c: Likewise.
16362         * tracer.c: Likewise.
16363         * trans-mem.c: Likewise.
16364         * tree-affine.c: Likewise.
16365         * tree-browser.c: Likewise.
16366         * tree-call-cdce.c: Likewise.
16367         * tree-cfg.c: Likewise.
16368         * tree-cfgcleanup.c: Likewise.
16369         * tree-chkp-opt.c: Likewise.
16370         * tree-chkp.c: Likewise.
16371         * tree-chrec.c: Likewise.
16372         * tree-complex.c: Likewise.
16373         * tree-data-ref.c: Likewise.
16374         * tree-dfa.c: Likewise.
16375         * tree-diagnostic.c: Likewise.
16376         * tree-dump.c: Likewise.
16377         * tree-eh.c: Likewise.
16378         * tree-emutls.c: Likewise.
16379         * tree-if-conv.c: Likewise.
16380         * tree-inline.c: Likewise.
16381         * tree-into-ssa.c: Likewise.
16382         * tree-iterator.c: Likewise.
16383         * tree-loop-distribution.c: Likewise.
16384         * tree-nested.c: Likewise.
16385         * tree-nrv.c: Likewise.
16386         * tree-object-size.c: Likewise.
16387         * tree-outof-ssa.c: Likewise.
16388         * tree-parloops.c: Likewise.
16389         * tree-phinodes.c: Likewise.
16390         * tree-predcom.c: Likewise.
16391         * tree-pretty-print.c: Likewise.
16392         * tree-profile.c: Likewise.
16393         * tree-scalar-evolution.c: Likewise.
16394         * tree-sra.c: Likewise.
16395         * tree-ssa-address.c: Likewise.
16396         * tree-ssa-alias.c: Likewise.
16397         * tree-ssa-ccp.c: Likewise.
16398         * tree-ssa-coalesce.c: Likewise.
16399         * tree-ssa-copy.c: Likewise.
16400         * tree-ssa-copyrename.c: Likewise.
16401         * tree-ssa-dce.c: Likewise.
16402         * tree-ssa-dom.c: Likewise.
16403         * tree-ssa-dse.c: Likewise.
16404         * tree-ssa-forwprop.c: Likewise.
16405         * tree-ssa-ifcombine.c: Likewise.
16406         * tree-ssa-live.c: Likewise.
16407         * tree-ssa-loop-ch.c: Likewise.
16408         * tree-ssa-loop-im.c: Likewise.
16409         * tree-ssa-loop-ivcanon.c: Likewise.
16410         * tree-ssa-loop-ivopts.c: Likewise.
16411         * tree-ssa-loop-manip.c: Likewise.
16412         * tree-ssa-loop-niter.c: Likewise.
16413         * tree-ssa-loop-prefetch.c: Likewise.
16414         * tree-ssa-loop-unswitch.c: Likewise.
16415         * tree-ssa-loop.c: Likewise.
16416         * tree-ssa-math-opts.c: Likewise.
16417         * tree-ssa-operands.c: Likewise.
16418         * tree-ssa-phiopt.c: Likewise.
16419         * tree-ssa-phiprop.c: Likewise.
16420         * tree-ssa-pre.c: Likewise.
16421         * tree-ssa-propagate.c: Likewise.
16422         * tree-ssa-reassoc.c: Likewise.
16423         * tree-ssa-sccvn.c: Likewise.
16424         * tree-ssa-scopedtables.c: Likewise.
16425         * tree-ssa-sink.c: Likewise.
16426         * tree-ssa-strlen.c: Likewise.
16427         * tree-ssa-structalias.c: Likewise.
16428         * tree-ssa-tail-merge.c: Likewise.
16429         * tree-ssa-ter.c: Likewise.
16430         * tree-ssa-threadedge.c: Likewise.
16431         * tree-ssa-threadupdate.c: Likewise.
16432         * tree-ssa-uncprop.c: Likewise.
16433         * tree-ssa-uninit.c: Likewise.
16434         * tree-ssa.c: Likewise.
16435         * tree-ssanames.c: Likewise.
16436         * tree-stdarg.c: Likewise.
16437         * tree-streamer-in.c: Likewise.
16438         * tree-streamer-out.c: Likewise.
16439         * tree-streamer.c: Likewise.
16440         * tree-switch-conversion.c: Likewise.
16441         * tree-tailcall.c: Likewise.
16442         * tree-vect-data-refs.c: Likewise.
16443         * tree-vect-generic.c: Likewise.
16444         * tree-vect-loop-manip.c: Likewise.
16445         * tree-vect-loop.c: Likewise.
16446         * tree-vect-patterns.c: Likewise.
16447         * tree-vect-slp.c: Likewise.
16448         * tree-vect-stmts.c: Likewise.
16449         * tree-vectorizer.c: Likewise.
16450         * tree-vrp.c: Likewise.
16451         * tree.c: Likewise.
16452         * tsan.c: Likewise.
16453         * ubsan.c: Likewise.
16454         * valtrack.c: Likewise.
16455         * value-prof.c: Likewise.
16456         * var-tracking.c: Likewise.
16457         * varasm.c: Likewise.
16458         * varpool.c: Likewise.
16459         * vmsdbgout.c: Likewise.
16460         * vtable-verify.c: Likewise.
16461         * web.c: Likewise.
16462         * wide-int.cc: Likewise.
16463         * xcoffout.c: Likewise.
16464         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16465         * common/common-targhooks.c: Likewise.
16466         * config/aarch64/aarch64-builtins.c: Likewise.
16467         * config/aarch64/aarch64.c: Likewise.
16468         * config/alpha/alpha.c: Likewise.
16469         * config/arc/arc.c: Likewise.
16470         * config/arm/aarch-common.c: Likewise.
16471         * config/arm/arm-builtins.c: Likewise.
16472         * config/arm/arm-c.c: Likewise.
16473         * config/arm/arm.c: Likewise.
16474         * config/avr/avr-c.c: Likewise.
16475         * config/avr/avr-log.c: Likewise.
16476         * config/avr/avr.c: Likewise.
16477         * config/bfin/bfin.c: Likewise.
16478         * config/c6x/c6x.c: Likewise.
16479         * config/cr16/cr16.c: Likewise.
16480         * config/cris/cris.c: Likewise.
16481         * config/darwin-c.c: Likewise.
16482         * config/darwin.c: Likewise.
16483         * config/default-c.c: Likewise.
16484         * config/epiphany/epiphany.c: Likewise.
16485         * config/epiphany/mode-switch-use.c: Likewise.
16486         * config/epiphany/resolve-sw-modes.c: Likewise.
16487         * config/fr30/fr30.c: Likewise.
16488         * config/frv/frv.c: Likewise.
16489         * config/ft32/ft32.c: Likewise.
16490         * config/glibc-c.c: Likewise.
16491         * config/h8300/h8300.c: Likewise.
16492         * config/i386/i386-c.c: Likewise.
16493         * config/i386/i386.c: Likewise.
16494         * config/i386/msformat-c.c: Likewise.
16495         * config/i386/winnt-cxx.c: Likewise.
16496         * config/i386/winnt-stubs.c: Likewise.
16497         * config/i386/winnt.c: Likewise.
16498         * config/ia64/ia64-c.c: Likewise.
16499         * config/ia64/ia64.c: Likewise.
16500         * config/iq2000/iq2000.c: Likewise.
16501         * config/lm32/lm32.c: Likewise.
16502         * config/m32c/m32c-pragma.c: Likewise.
16503         * config/m32c/m32c.c: Likewise.
16504         * config/m32r/m32r.c: Likewise.
16505         * config/m68k/m68k.c: Likewise.
16506         * config/mcore/mcore.c: Likewise.
16507         * config/mep/mep-pragma.c: Likewise.
16508         * config/mep/mep.c: Likewise.
16509         * config/microblaze/microblaze-c.c: Likewise.
16510         * config/microblaze/microblaze.c: Likewise.
16511         * config/mips/mips.c: Likewise.
16512         * config/mmix/mmix.c: Likewise.
16513         * config/mn10300/mn10300.c: Likewise.
16514         * config/moxie/moxie.c: Likewise.
16515         * config/msp430/msp430-c.c: Likewise.
16516         * config/msp430/msp430.c: Likewise.
16517         * config/nds32/nds32-cost.c: Likewise.
16518         * config/nds32/nds32-fp-as-gp.c: Likewise.
16519         * config/nds32/nds32-intrinsic.c: Likewise.
16520         * config/nds32/nds32-isr.c: Likewise.
16521         * config/nds32/nds32-md-auxiliary.c: Likewise.
16522         * config/nds32/nds32-memory-manipulation.c: Likewise.
16523         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16524         * config/nds32/nds32-predicates.c: Likewise.
16525         * config/nds32/nds32.c: Likewise.
16526         * config/nios2/nios2.c: Likewise.
16527         * config/nvptx/nvptx.c: Likewise.
16528         * config/pa/pa.c: Likewise.
16529         * config/pdp11/pdp11.c: Likewise.
16530         * config/rl78/rl78-c.c: Likewise.
16531         * config/rl78/rl78.c: Likewise.
16532         * config/rs6000/rs6000-c.c: Likewise.
16533         * config/rs6000/rs6000.c: Likewise.
16534         * config/rx/rx.c: Likewise.
16535         * config/s390/s390-c.c: Likewise.
16536         * config/s390/s390.c: Likewise.
16537         * config/sh/sh-c.c: Likewise.
16538         * config/sh/sh-mem.cc: Likewise.
16539         * config/sh/sh.c: Likewise.
16540         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16541         * config/sh/sh_treg_combine.cc: Likewise.
16542         * config/sol2-c.c: Likewise.
16543         * config/sol2-cxx.c: Likewise.
16544         * config/sol2-stubs.c: Likewise.
16545         * config/sol2.c: Likewise.
16546         * config/sparc/sparc-c.c: Likewise.
16547         * config/sparc/sparc.c: Likewise.
16548         * config/spu/spu-c.c: Likewise.
16549         * config/spu/spu.c: Likewise.
16550         * config/stormy16/stormy16.c: Likewise.
16551         * config/tilegx/mul-tables.c: Likewise.
16552         * config/tilegx/tilegx-c.c: Likewise.
16553         * config/tilegx/tilegx.c: Likewise.
16554         * config/tilepro/mul-tables.c: Likewise.
16555         * config/tilepro/tilepro-c.c: Likewise.
16556         * config/tilepro/tilepro.c: Likewise.
16557         * config/v850/v850-c.c: Likewise.
16558         * config/v850/v850.c: Likewise.
16559         * config/vax/vax.c: Likewise.
16560         * config/visium/visium.c: Likewise.
16561         * config/vms/vms-c.c: Likewise.
16562         * config/vms/vms.c: Likewise.
16563         * config/vxworks.c: Likewise.
16564         * config/winnt-c.c: Likewise.
16565         * config/xtensa/xtensa.c: Likewise.
16566
16567 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
16568
16569         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16570         function.
16571         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16572
16573 2015-06-17  Richard Biener  <rguenther@suse.de>
16574
16575         PR tree-optimization/66251
16576         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16577         stmts for SLP strided stores.
16578
16579         Revert
16580         2015-05-22  Richard Biener  <rguenther@suse.de>
16581
16582         PR tree-optimization/66251
16583         * tree-vect-stmts.c (vectorizable_conversion): Properly
16584         set STMT_VINFO_VEC_STMT even for the SLP case.
16585
16586         2015-05-26  Michael Matz  <matz@suse.de>
16587
16588         PR middle-end/66251
16589         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16590         STMT_VINFO_VEC_STMT, also with SLP.
16591
16592 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
16593
16594         PR target/56766
16595         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16596         (*avx_addsubv4df3_1s): Ditto.
16597         (*sse3_addsubv2df3_1): Ditto.
16598         (*sse3_addsubv2df3_1s): Ditto.
16599         (*avx_addsubv8sf3_1): Ditto.
16600         (*avx_addsubv8sf3_1s): Ditto.
16601         (*sse3_addsubv4sf3_1): Ditto.
16602         (*sse3_addsubv4sf3_1s): Ditto.
16603
16604 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
16605
16606         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16607         (SYSROOT_SUFFIX_SPEC): Update.
16608         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16609         (STARTFILE_PREFIX_SPEC): Update.
16610         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16611         (MULTILIB_REQUIRED): New.
16612         (MULTILIB_OSDIRNAMES): New.
16613         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16614         (MULTILIB_REQUIRED): New.
16615         (MULTILIB_OSDIRNAMES): New.
16616
16617 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
16618
16619         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16620         * config/aarch64/aarch64-options-extensions.def: Update "fP",
16621         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
16622         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16623         (AARCH64_FL_PAN): New.
16624         (AARCH64_FL_LOR): New.
16625         (AARCH64_FL_RDMA): New.
16626         (AARCH64_FL_FOR_ARCH8_1): New.
16627         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16628         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16629
16630 2015-06-16  Martin Liska  <mliska@suse.cz>
16631
16632         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16633         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16634         guard.
16635
16636 2015-06-16  Richard Biener  <rguenther@suse.de>
16637
16638         * tree-vect-stmts.c (vectorizable_store): Adjust.
16639         (vectorizable_load): Likewise.
16640         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16641         Simplify.
16642         (vect_create_data_ref_ptr): Likewise.
16643         (bump_vector_ptr): Adjust.
16644
16645 2015-06-16  Richard Biener  <rguenther@suse.de>
16646
16647         * tree-vect-stmts.c (vectorizable_load): Properly start loads
16648         with the first element if this is grouped loads.
16649
16650 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
16651
16652         * config/arm/arm-protos.h (struct tune_params): Rename
16653         log_op_non_sc to log_op_non_short_circuit, and rename enum
16654         values to expand SC to SHORT_CIRCUIT.
16655         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16656         to LOG_OP_NON_SHORT_CIRCUIT.
16657         (arm_fastmul_tune):Likewise
16658         (arm_strongarm_tune): Likewise.
16659         (arm_xscale_tune): Likewise.
16660         (arm_9e_tune): Likewise.
16661         (arm_marvell_pj4_tune): Likewise.
16662         (arm_v6t2_tune): Likewise.
16663         (arm_cortex_tune): Likewise.
16664         (arm_cortex_a8_tune): Likewise.
16665         (arm_cortex_a7_tune): Likewise.
16666         (arm_cortex_a15_tune): Likewise.
16667         (arm_cortex_a53_tune): Likewise.
16668         (arm_cortex_a57_tune): Likewise.
16669         (arm_xgene1_tune): Likewise.
16670         (arm_cortex_a5_tune): Likewise.
16671         (arm_cortex_a9_tune): Likewise.
16672         (arm_cortex_a12_tune): Likewise.
16673         (arm_v7m_tune): Likewise.
16674         (arm_cortex_m7_tune): Likewise.
16675         (arm_v6m_tune): Likewise.
16676         (arm_fa726te_tune): Likewise.
16677
16678 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
16679
16680         * altivec.md: Delete UNSPEC_VMLADDUHM.
16681         (mulv4si3_p8): New pattern.
16682         (mulv4si3): Use it for POWER8.
16683         (mulv8hi3): Use vmladduhm with zero addend.
16684         (altivec_vmladduhm): Descriptive RTL.
16685
16686 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
16687
16688         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16689         to use neon_move instead of mov_imm.
16690         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16691         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16692
16693         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16694         aarch64_float_const_zero_rtx_p check before TFmode check.
16695         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16696         an fp zero.
16697         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
16698         code and attributes to match.  Change condition from register_operand
16699         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
16700         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
16701         to store2.
16702
16703 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
16704
16705         PR debug/66535
16706         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16707         there is no parent.
16708
16709 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
16710
16711         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16712         HOST_WIDE_INT parameter.
16713
16714 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
16715
16716         PR ipa/66181
16717         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16718         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16719         TYPE_NO_FORCE_BLK.
16720         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16721
16722 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
16723
16724         * rtl.h (classify_insn): Declare.
16725         * emit-rtl.c (classify_insn): Move to...
16726         * rtl.c: ...here and add generator support.
16727         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16728         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16729         * genemit.c (gen_emit_seq): New function.
16730         (gen_expand, gen_split): Use it.
16731
16732 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
16733
16734         * tree.c (make_vector_stat): Fix comment to state that the
16735         function returns a VECTOR_CST.
16736
16737 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
16738
16739         * gensupport.h (add_implicit_parallel): Declare.
16740         * genrecog.c (add_implicit_parallel): Move to...
16741         * gensupport.c (add_implicit_parallel): ...here.
16742         (process_one_cond_exec): Use it.
16743         * genemit.c (gen_insn): Likewise.
16744
16745 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
16746
16747         PR bootstrap/66448
16748         * passes.c (rest_of_decl_compilation): Do not register globals for
16749         early debug if they are declared in built-ins.
16750
16751 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
16752
16753         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16754
16755 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16756
16757         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16758         manually swapping.
16759         (noce_try_cmove_arith): Likewise.
16760         (noce_get_alt_condition): Likewise.
16761
16762 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16763
16764         * common/config/i386/i386-common.c
16765         (OPTION_MASK_ISA_MWAITX_SET): New.
16766         (ix86_handle_option): Handle mwaitx.
16767         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16768         (x86_64-*-*): Likewise.
16769         * config/i386/mwaitxintrin.h: New header.
16770         * config/i386/cpuid.h (bit_MWAITX):  Define.
16771         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16772         MWAITX support.
16773         * config/i386/i386.opt (mwaitx): New.
16774         * config/i386/i386-builtin-types.def
16775         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16776         * config/i386/i386-c.c: Define __MWAITX__ if needed.
16777         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16778         (PTA_MWAITX): New.
16779         (ix86_option_override_internal): Handle new option.
16780         (processor_alias_table): Added PTA_MWAITX.
16781         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16782         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16783         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16784         IX86_BUILTIN_MONITORX  built-ins.
16785         * config/i386/i386.h (TARGET_MWAITX): New.
16786         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16787         UNSPEC_MONITORX.
16788         (mwaitx):  New pattern.
16789         (monitorx_<mode>): New pattern.
16790         * config/i386/x86intrin.h: Include mwaitxintrin.h.
16791         * doc/extend.texi: Document monitorx and mwaitx builtins.
16792         * doc/invoke.texi: Document -mmwaitx option.
16793
16794 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
16795
16796         * emit-rtl.c (need_atomic_barrier_p): Mask model with
16797         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
16798
16799 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16800
16801         * dbxout.c (xcoff_debug_hooks): Provide a function for
16802         register_main_translation_unit hook.
16803
16804 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16805
16806         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16807         variants cases from switch.
16808         (rs6000_post_atomic_barrier): Same.
16809         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16810         (rs6000_expand_atomic_exchange): Same.
16811         (rs6000_expand_atomic_op): Same.
16812         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16813         SYNC variants cases from switch.
16814         (atomic_load): Same.
16815         (atomic_store): Same.
16816
16817 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
16818
16819         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
16820         CONST_INT for goto.
16821
16822 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
16823
16824         PR bootstrap/66448
16825         * dwarf2out.c (check_die): Check for common duplicate attributes.
16826         (add_location_or_const_value_attribute): Do not add duplicate
16827         attributes.
16828         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
16829         time around.
16830         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
16831         (gen_type_die_with_usage): Call check_die.
16832         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
16833
16834 2015-06-11  Jason Merrill  <jason@redhat.com>
16835
16836         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
16837         dies.
16838
16839 2015-06-11  Marek Polacek  <polacek@redhat.com>
16840
16841         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
16842
16843 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
16844
16845         PR bootstrap/66252
16846         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
16847         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
16848         (*addx_extend_sp32): Fix pasto.
16849         (*subx_extend): Rename into...
16850         (*subx_extend_sp32): ...this.
16851         (*adddi3_extend_sp32): Add earlyclobber.
16852         (*subdi3_insn_sp32): Likewise.
16853         (*subdi3_extend_sp32): Likewise.
16854         (*and_not_di_sp32): Likewise.
16855         (*or_not_di_sp32): Likewise.
16856         (*xor_not_di_sp32): Likewise.
16857         (*negdi2_sp32): Likewise.
16858         (*one_cmpldi2_sp32): Likewise.
16859
16860 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
16861
16862         * debug.h (struct gcc_debug_hooks): Add a
16863         register_main_translation_unit hook.
16864         * debug.c (do_nothing_debug_hooks): Provide a function for this
16865         new hook.
16866         * dbxout.c (dbx_debug_hooks): Likewise.
16867         * sdbout.c (sdb_debug_hooks): Likewise.
16868         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16869         * dwarf2out.c (main_translation_unit): New global variable.
16870         (dwarf2out_register_main_translation_unit): New function
16871         implementing the new hook.
16872         (dwarf2_debug_hooks): Assign
16873         dwarf2out_register_main_translation_unit to this new hook.
16874         (dwarf2out_init): Associate any main translation unit to
16875         comp_unit_die ().
16876
16877 2015-06-11  Marek Polacek  <polacek@redhat.com>
16878
16879         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
16880
16881 2015-06-11  Marek Polacek  <polacek@redhat.com>
16882
16883         * match.pd: Use single_use throughout.
16884
16885 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16886
16887         * config/arm/arm.c (arm_option_params_internal): When optimising
16888         for speed set max_insns_skipped when arm_restrict_it.
16889
16890 2015-06-11  Christian Bruel  <christian.bruel@st.com>
16891
16892         PR target/52144
16893         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
16894          macros in ...
16895         (arm_cpu_builtins): New function.
16896         (arm_pragma_target_parse): Call arm_cpu_builtins.
16897         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
16898         (arm_register_target_pragmas): Likewise.
16899         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
16900          Call arm_register_target_pragmas.
16901         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
16902         (arm_pragma_target_parse): Likewise.
16903
16904 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16905
16906         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
16907         of the second operand.
16908
16909 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
16910
16911         PR target/66473
16912         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
16913         to prepare mask operand for AVX512 modes.
16914
16915 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16916
16917         PR target/66474
16918         * doc/md.texi (Machine Constraints): Document that on the PowerPC
16919         if you use a constraint that targets a VSX register, you must use
16920         %x<n> in the template.
16921
16922 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
16923
16924         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
16925         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
16926         (define_insn "trap"): New definition.
16927
16928 2015-06-10  Richard Biener  <rguenther@suse.de>
16929
16930         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
16931         out from ...
16932         (vect_supported_load_permutation_p): ... here.  Handle
16933         supportable permutations in reductions.
16934         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
16935         for vectorizing strided group loads.
16936
16937 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
16938
16939         PR target/66470
16940         * config/i386/i386.c (ix86_split_long_move): For collisions
16941         involving direct tls segment refs, move the UNSPEC_TP possibly
16942         wrapped in ZERO_EXTEND out of the address for lea, to each of
16943         the memory loads.
16944
16945 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16946
16947         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
16948         dmb sy. Adjust tabs.
16949
16950 2015-06-10  Tom de Vries  <tom@codesourcery.com>
16951
16952         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
16953
16954 2015-06-10  Martin Liska  <mliska@suse.cz>
16955
16956         PR bootstrap/66471
16957         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
16958         all enum values in mem_alloc_origin.
16959         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
16960         name.
16961         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
16962         * bitmap.c (bitmap_register): Likewise.
16963         (dump_bitmap_statistics): Likewise.
16964         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
16965         (ggc_record_overhead): Likewise.
16966         * hash-map.h: Likewise.
16967         * hash-set.h: Likewise.
16968         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
16969         * hash-table.h: Likewise.
16970         * vec.c (vec_prefix::register_overhead): Likewise.
16971         (vec_prefix::release_overhead): Likewise.
16972         (dump_vec_loc_statistics): Likewise.
16973
16974 2015-06-09  Christian Bruel  <christian.bruel@st.com>
16975
16976         PR target/52144
16977         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
16978         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
16979         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
16980         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
16981         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
16982         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
16983         (arm_valid_target_attribute_p): Likewise.
16984         (arm_set_current_function, arm_can_inline_p): Likewise.
16985         (arm_valid_target_attribute_rec): Likewise.
16986         (arm_previous_fndecl): New variable.
16987         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
16988         (TARGET_CAN_INLINE_P): Define.
16989         (arm_asm_trampoline_template): Emit mode.
16990         (arm_file_start): Don't set unified syntax.
16991         (arm_declare_function_name): Set unified syntax and mode.
16992         (arm_option_override): Init target_option_default_node.
16993         and target_option_current_node.
16994         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
16995         (*call_symbol): Likewise.
16996         * doc/extend.texi: Document ARM/Thumb target attribute.
16997         * doc/invoke.texi: Likewise.
16998
16999 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17000
17001         Revert:
17002         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17003         PR rtl-optimization/64164
17004         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17005         * tree-ssa-copyrename.c: Removed.
17006         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17007         -ftree-coalesce-vars.
17008         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17009         * common.opt (ftree-copyrename): Ignore.
17010         (ftree-coalesce-inlined-vars): Likewise.
17011         * doc/invoke.texi: Remove the ignored options above.
17012         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17013         * tree-ssa-coalesce.h: ... here.
17014         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17015         headers required by it.
17016         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17017         across variables when flag_tree_coalesce_vars.  Check register
17018         use and promoted modes to allow coalescing.  Moved to
17019         tree-ssa-coalesce.c.
17020         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17021         with its member functions to tree-ssa-coalesce.c.
17022         (var_map_base_init): Likewise.  Renamed to
17023         compute_samebase_partition_bases.
17024         (partition_view_normal): Drop want_bases parameter.
17025         (partition_view_bitmap): Likewise.
17026         * tree-ssa-live.h: Adjust declarations.
17027         * tree-ssa-coalesce.c: Include explow.h.
17028         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17029         default defs at the entry point.
17030         (dump_part_var_map): New.
17031         (compute_optimized_partition_bases): New, called by...
17032         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17033         of compute_samebase_partition_bases.  Adjust.
17034         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17035         * cfgexpand.c (leader_merge): New.
17036         (get_rtl_for_parm_ssa_default_def): New.
17037         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17038         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17039         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17040         redundant MEM attr setting.
17041         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17042         from...
17043         (expand_one_stack_var): ... this.  New wrapper to check and
17044         skip already expanded SSA partitions.
17045         (record_alignment_for_reg_var): New, factored out of...
17046         (expand_one_var): ... this.
17047         (expand_one_ssa_partition): New.
17048         (adjust_one_expanded_partition_var): New.
17049         (expand_one_register_var): Check and skip already expanded SSA
17050         partitions.
17051         (expand_used_vars): Don't create DECLs for anonymous SSA
17052         names.  Expand all SSA partitions, then adjust all SSA names.
17053         (pass::execute): Replace the loops that set
17054         SA.partition_to_pseudo from partition leaders and cleared
17055         DECL_RTL for multi-location variables, and that which used to
17056         rename vars and set attrs, with one that clears DECL_RTL and
17057         checks that PARMs and RESULTs default_defs match DECL_RTL.
17058         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17059         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17060         * explow.c (promote_ssa_mode): New.
17061         * explow.h (promote_ssa_mode): Declare.
17062         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17063         * function.c: Include cfgexpand.h.
17064         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17065         (use_register_for_parm_decl): Wrapper for the above to
17066         special-case the result_ptr.
17067         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17068         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17069         multiple locations.
17070         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17071         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17072         (assign_parm_setup_block): Prefer SSA-assigned location.
17073         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17074         if stack_parm is NULL.
17075         (assign_parm_setup_stack): Prefer SSA-assigned location.
17076         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17077         rtl before testing for pointer bounds.  Special-case result_ptr.
17078         (expand_function_start): Maybe reset DECL_RTL of result.
17079         Prefer SSA-assigned location for result and static chain.
17080         Factor out DECL_RESULT and SET_DECL_RTL.
17081         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17082         anonymous SSA names.  Use promote_ssa_mode.
17083         (get_temp_reg): Likewise.
17084         (remove_ssa_form): Adjust.
17085         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17086         and get its reg_usage for reg invalidation.
17087         (compute_bb_dataflow): Pass it insn.
17088         (emit_notes_in_bb): Likewise.
17089         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17090         fail assert on conversion between unsigned types.
17091
17092 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17093
17094         PR tree-optimization/65460
17095         * omp-low.c (expand_omp_target): Set parallelized_function on
17096         cgraph_node for child_fn.
17097
17098 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17099
17100         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17101         parallelized_function before add_new_function.
17102
17103 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17104
17105         * gcc-plugin.h: Move decls to plugin.h and include it.
17106         * plugin.h: Relocate decls from gcc-plugin.h
17107         * ggc-page.c: Include required header files.
17108         * passes.c: Likewise.
17109         * cgraphunit.c: Likewise.
17110
17111 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17112
17113         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17114
17115 2015-06-09  Jason Merrill  <jason@redhat.com>
17116
17117         PR bootstrap/66448
17118         * toplev.c (check_global_declaration): Don't warn about a clone.
17119
17120 2015-06-09  Marek Polacek  <polacek@redhat.com>
17121
17122         PR tree-optimization/66299
17123         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17124         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17125         patterns.
17126
17127 2015-06-09  Richard Biener  <rguenther@suse.de>
17128
17129         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17130         (vect_analyze_slp_instance): Instead do not falsely drop
17131         load permutations.
17132
17133 2015-06-09  Richard Biener  <rguenther@suse.de>
17134
17135         PR middle-end/66423
17136         * match.pd: Handle A % (unsigned)(1 << B).
17137
17138 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17139
17140         * varasm.c (output_object_block_htab): Remove.
17141         (output_object_block_compare): New.
17142         (output_object_blocks): Sort named object_blocks before outputting
17143         them.
17144
17145 2015-06-09  Richard Biener  <rguenther@suse.de>
17146
17147         PR tree-optimization/66419
17148         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17149         consider GROUP_GAP when detecting a perfect subchain.
17150
17151 2015-06-09  Nick Clifton  <nickc@redhat.com>
17152
17153         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17154         place read only data in the .frodata section.
17155
17156 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17157
17158         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17159         (atomic_store<mode>): Likewise.
17160
17161 2015-06-09  Richard Biener  <rguenther@suse.de>
17162
17163         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17164
17165 2015-06-09  Richard Biener  <rguenther@suse.de>
17166
17167         PR middle-end/66413
17168         * tree-inline.c (insert_init_debug_bind): Unshare value.
17169
17170 2015-06-09  Richard Biener  <rguenther@suse.de>
17171
17172         PR tree-optimization/66396
17173         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17174         Rename virtual operands.
17175
17176 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17177
17178         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17179         always return false.
17180
17181 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17182
17183         PR rtl-optimization/64164
17184         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17185         * tree-ssa-copyrename.c: Removed.
17186         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17187         -ftree-coalesce-vars.
17188         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17189         * common.opt (ftree-copyrename): Ignore.
17190         (ftree-coalesce-inlined-vars): Likewise.
17191         * doc/invoke.texi: Remove the ignored options above.
17192         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17193         * tree-ssa-coalesce.h: ... here.
17194         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17195         headers required by it.
17196         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17197         across variables when flag_tree_coalesce_vars.  Check register
17198         use and promoted modes to allow coalescing.  Moved to
17199         tree-ssa-coalesce.c.
17200         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17201         with its member functions to tree-ssa-coalesce.c.
17202         (var_map_base_init): Likewise.  Renamed to
17203         compute_samebase_partition_bases.
17204         (partition_view_normal): Drop want_bases parameter.
17205         (partition_view_bitmap): Likewise.
17206         * tree-ssa-live.h: Adjust declarations.
17207         * tree-ssa-coalesce.c: Include explow.h.
17208         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17209         default defs at the entry point.
17210         (dump_part_var_map): New.
17211         (compute_optimized_partition_bases): New, called by...
17212         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17213         of compute_samebase_partition_bases.  Adjust.
17214         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17215         * cfgexpand.c (leader_merge): New.
17216         (get_rtl_for_parm_ssa_default_def): New.
17217         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17218         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17219         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17220         redundant MEM attr setting.
17221         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17222         from...
17223         (expand_one_stack_var): ... this.  New wrapper to check and
17224         skip already expanded SSA partitions.
17225         (record_alignment_for_reg_var): New, factored out of...
17226         (expand_one_var): ... this.
17227         (expand_one_ssa_partition): New.
17228         (adjust_one_expanded_partition_var): New.
17229         (expand_one_register_var): Check and skip already expanded SSA
17230         partitions.
17231         (expand_used_vars): Don't create DECLs for anonymous SSA
17232         names.  Expand all SSA partitions, then adjust all SSA names.
17233         (pass::execute): Replace the loops that set
17234         SA.partition_to_pseudo from partition leaders and cleared
17235         DECL_RTL for multi-location variables, and that which used to
17236         rename vars and set attrs, with one that clears DECL_RTL and
17237         checks that PARMs and RESULTs default_defs match DECL_RTL.
17238         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17239         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17240         * explow.c (promote_ssa_mode): New.
17241         * explow.h (promote_ssa_mode): Declare.
17242         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17243         * function.c: Include cfgexpand.h.
17244         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17245         (use_register_for_parm_decl): Wrapper for the above to
17246         special-case the result_ptr.
17247         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17248         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17249         multiple locations.
17250         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17251         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17252         (assign_parm_setup_block): Prefer SSA-assigned location.
17253         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17254         if stack_parm is NULL.
17255         (assign_parm_setup_stack): Prefer SSA-assigned location.
17256         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17257         rtl before testing for pointer bounds.  Special-case result_ptr.
17258         (expand_function_start): Maybe reset DECL_RTL of result.
17259         Prefer SSA-assigned location for result and static chain.
17260         Factor out DECL_RESULT and SET_DECL_RTL.
17261         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17262         anonymous SSA names.  Use promote_ssa_mode.
17263         (get_temp_reg): Likewise.
17264         (remove_ssa_form): Adjust.
17265         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17266         and get its reg_usage for reg invalidation.
17267         (compute_bb_dataflow): Pass it insn.
17268         (emit_notes_in_bb): Likewise.
17269         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17270         fail assert on conversion between unsigned types.
17271
17272 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17273
17274         PR debug/58315
17275         * tree-inline.c (reset_debug_binding): New.
17276         (reset_debug_bindings): Likewise.
17277         (expand_call_inline): Call it.
17278
17279 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17280
17281         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17282         TYPE_STRING_FLAG.
17283
17284 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17285
17286         * lto-streamer-out.c (lto_output_location): Stream
17287         reserved locations correctly.
17288         * lto-streamer-in.c (lto_output_location): Likewise.
17289
17290 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17291
17292         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17293         * ggc.h: Don't include statistics.h>
17294         * hash-map.h: Remove all includes.
17295         * hash-set.h: Likewise.
17296         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17297         the include list. Remove <new>.
17298         * inchash.h: Remove all includes.
17299         * mem-stats.h: Likewise.
17300         * vec.h: No special processing for generators or ggc.
17301         * alias.c : Adjust include files.
17302         * alloc-pool.c : Likewise.
17303         * alloc-pool.h : Likewise.
17304         * asan.c : Likewise.
17305         * attribs.c : Likewise.
17306         * auto-inc-dec.c : Likewise.
17307         * auto-profile.c : Likewise.
17308         * bb-reorder.c : Likewise.
17309         * bitmap.c : Likewise.
17310         * bitmap.h : Likewise.
17311         * bt-load.c : Likewise.
17312         * builtins.c : Likewise.
17313         * caller-save.c : Likewise.
17314         * calls.c : Likewise.
17315         * ccmp.c : Likewise.
17316         * cfg.c : Likewise.
17317         * cfganal.c : Likewise.
17318         * cfgbuild.c : Likewise.
17319         * cfgcleanup.c : Likewise.
17320         * cfgexpand.c : Likewise.
17321         * cfghooks.c : Likewise.
17322         * cfgloop.c : Likewise.
17323         * cfgloop.h : Likewise.
17324         * cfgloopanal.c : Likewise.
17325         * cfgloopmanip.c : Likewise.
17326         * cfgrtl.c : Likewise.
17327         * cgraph.c : Likewise.
17328         * cgraphbuild.c : Likewise.
17329         * cgraphclones.c : Likewise.
17330         * cgraphunit.c : Likewise.
17331         * cilk-common.c : Likewise.
17332         * combine-stack-adj.c : Likewise.
17333         * combine.c : Likewise.
17334         * compare-elim.c : Likewise.
17335         * context.c : Likewise.
17336         * convert.c : Likewise.
17337         * coverage.c : Likewise.
17338         * cppbuiltin.c : Likewise.
17339         * cprop.c : Likewise.
17340         * cse.c : Likewise.
17341         * cselib.c : Likewise.
17342         * data-streamer-in.c : Likewise.
17343         * data-streamer-out.c : Likewise.
17344         * data-streamer.c : Likewise.
17345         * data-streamer.h : Likewise.
17346         * dbxout.c : Likewise.
17347         * dce.c : Likewise.
17348         * ddg.c : Likewise.
17349         * debug.c : Likewise.
17350         * df-core.c : Likewise.
17351         * df-problems.c : Likewise.
17352         * df-scan.c : Likewise.
17353         * df.h : Likewise.
17354         * dfp.c : Likewise.
17355         * dojump.c : Likewise.
17356         * dominance.c : Likewise.
17357         * domwalk.c : Likewise.
17358         * double-int.c : Likewise.
17359         * dse.c : Likewise.
17360         * dumpfile.c : Likewise.
17361         * dwarf2asm.c : Likewise.
17362         * dwarf2cfi.c : Likewise.
17363         * dwarf2out.c : Likewise.
17364         * emit-rtl.c : Likewise.
17365         * et-forest.c : Likewise.
17366         * except.c : Likewise.
17367         * except.h : Likewise.
17368         * explow.c : Likewise.
17369         * expmed.c : Likewise.
17370         * expr.c : Likewise.
17371         * final.c : Likewise.
17372         * fixed-value.c : Likewise.
17373         * fold-const.c : Likewise.
17374         * function.c : Likewise.
17375         * fwprop.c : Likewise.
17376         * gcc-plugin.h : Likewise.
17377         * gcc.c : Likewise.
17378         * gcse-common.c : Likewise.
17379         * gcse.c : Likewise.
17380         * genattrtab.c : Likewise.
17381         * genautomata.c : Likewise.
17382         * genconditions.c : Likewise.
17383         * genemit.c : Likewise.
17384         * generic-match-head.c : Likewise.
17385         * genextract.c : Likewise.
17386         * gengtype-state.c : Likewise.
17387         * gengtype.c : Likewise.
17388         * genhooks.c : Likewise.
17389         * genmatch.c : Likewise.
17390         * genmodes.c : Likewise.
17391         * genrecog.c : Likewise.
17392         * gensupport.c : Likewise.
17393         * ggc-common.c : Likewise.
17394         * ggc-internal.h : Likewise.
17395         * ggc-none.c : Likewise.
17396         * ggc-page.c : Likewise.
17397         * gimple-builder.c : Likewise.
17398         * gimple-expr.c : Likewise.
17399         * gimple-fold.c : Likewise.
17400         * gimple-iterator.c : Likewise.
17401         * gimple-low.c : Likewise.
17402         * gimple-match-head.c : Likewise.
17403         * gimple-pretty-print.c : Likewise.
17404         * gimple-ssa-isolate-paths.c : Likewise.
17405         * gimple-ssa-strength-reduction.c : Likewise.
17406         * gimple-ssa.h : Likewise.
17407         * gimple-streamer-in.c : Likewise.
17408         * gimple-streamer-out.c : Likewise.
17409         * gimple-streamer.h : Likewise.
17410         * gimple-walk.c : Likewise.
17411         * gimple.c : Likewise.
17412         * gimplify-me.c : Likewise.
17413         * gimplify.c : Likewise.
17414         * godump.c : Likewise.
17415         * graph.c : Likewise.
17416         * graphds.c : Likewise.
17417         * graphite-blocking.c : Likewise.
17418         * graphite-dependences.c : Likewise.
17419         * graphite-interchange.c : Likewise.
17420         * graphite-isl-ast-to-gimple.c : Likewise.
17421         * graphite-optimize-isl.c : Likewise.
17422         * graphite-poly.c : Likewise.
17423         * graphite-scop-detection.c : Likewise.
17424         * graphite-sese-to-poly.c : Likewise.
17425         * graphite.c : Likewise.
17426         * haifa-sched.c : Likewise.
17427         * hard-reg-set.h : Likewise.
17428         * hw-doloop.c : Likewise.
17429         * ifcvt.c : Likewise.
17430         * inchash.c : Likewise.
17431         * incpath.c : Likewise.
17432         * init-regs.c : Likewise.
17433         * input.c : Likewise.
17434         * internal-fn.c : Likewise.
17435         * ipa-chkp.c : Likewise.
17436         * ipa-comdats.c : Likewise.
17437         * ipa-cp.c : Likewise.
17438         * ipa-devirt.c : Likewise.
17439         * ipa-icf-gimple.c : Likewise.
17440         * ipa-icf.c : Likewise.
17441         * ipa-inline-analysis.c : Likewise.
17442         * ipa-inline-transform.c : Likewise.
17443         * ipa-inline.c : Likewise.
17444         * ipa-polymorphic-call.c : Likewise.
17445         * ipa-profile.c : Likewise.
17446         * ipa-prop.c : Likewise.
17447         * ipa-pure-const.c : Likewise.
17448         * ipa-ref.c : Likewise.
17449         * ipa-reference.c : Likewise.
17450         * ipa-split.c : Likewise.
17451         * ipa-utils.c : Likewise.
17452         * ipa-visibility.c : Likewise.
17453         * ipa.c : Likewise.
17454         * ira-build.c : Likewise.
17455         * ira-color.c : Likewise.
17456         * ira-conflicts.c : Likewise.
17457         * ira-costs.c : Likewise.
17458         * ira-emit.c : Likewise.
17459         * ira-lives.c : Likewise.
17460         * ira.c : Likewise.
17461         * jump.c : Likewise.
17462         * langhooks.c : Likewise.
17463         * lcm.c : Likewise.
17464         * libfuncs.h : Likewise.
17465         * lists.c : Likewise.
17466         * loop-doloop.c : Likewise.
17467         * loop-init.c : Likewise.
17468         * loop-invariant.c : Likewise.
17469         * loop-iv.c : Likewise.
17470         * loop-unroll.c : Likewise.
17471         * lower-subreg.c : Likewise.
17472         * lra-assigns.c : Likewise.
17473         * lra-coalesce.c : Likewise.
17474         * lra-constraints.c : Likewise.
17475         * lra-eliminations.c : Likewise.
17476         * lra-lives.c : Likewise.
17477         * lra-remat.c : Likewise.
17478         * lra-spills.c : Likewise.
17479         * lra.c : Likewise.
17480         * lto-cgraph.c : Likewise.
17481         * lto-compress.c : Likewise.
17482         * lto-opts.c : Likewise.
17483         * lto-section-in.c : Likewise.
17484         * lto-section-out.c : Likewise.
17485         * lto-streamer-in.c : Likewise.
17486         * lto-streamer-out.c : Likewise.
17487         * lto-streamer.c : Likewise.
17488         * lto-streamer.h : Likewise.
17489         * mcf.c : Likewise.
17490         * mode-switching.c : Likewise.
17491         * modulo-sched.c : Likewise.
17492         * omega.c : Likewise.
17493         * omp-low.c : Likewise.
17494         * optabs.c : Likewise.
17495         * opts-global.c : Likewise.
17496         * opts.h : Likewise.
17497         * passes.c : Likewise.
17498         * plugin.c : Likewise.
17499         * postreload-gcse.c : Likewise.
17500         * postreload.c : Likewise.
17501         * predict.c : Likewise.
17502         * print-rtl.c : Likewise.
17503         * print-tree.c : Likewise.
17504         * profile.c : Likewise.
17505         * read-md.c : Likewise.
17506         * read-md.h : Likewise.
17507         * read-rtl.c : Likewise.
17508         * real.c : Likewise.
17509         * realmpfr.c : Likewise.
17510         * recog.c : Likewise.
17511         * ree.c : Likewise.
17512         * reg-stack.c : Likewise.
17513         * regcprop.c : Likewise.
17514         * reginfo.c : Likewise.
17515         * regrename.c : Likewise.
17516         * regstat.c : Likewise.
17517         * reload.c : Likewise.
17518         * reload1.c : Likewise.
17519         * reorg.c : Likewise.
17520         * resource.c : Likewise.
17521         * rtl-chkp.c : Likewise.
17522         * rtl.c : Likewise.
17523         * rtl.h : Likewise.
17524         * rtlanal.c : Likewise.
17525         * rtlhash.c : Likewise.
17526         * rtlhash.h : Likewise.
17527         * rtlhooks.c : Likewise.
17528         * sanopt.c : Likewise.
17529         * sched-deps.c : Likewise.
17530         * sched-ebb.c : Likewise.
17531         * sched-rgn.c : Likewise.
17532         * sched-vis.c : Likewise.
17533         * sdbout.c : Likewise.
17534         * sel-sched-dump.c : Likewise.
17535         * sel-sched-ir.c : Likewise.
17536         * sel-sched-ir.h : Likewise.
17537         * sel-sched.c : Likewise.
17538         * sese.c : Likewise.
17539         * shrink-wrap.c : Likewise.
17540         * shrink-wrap.h : Likewise.
17541         * simplify-rtx.c : Likewise.
17542         * stack-ptr-mod.c : Likewise.
17543         * statistics.c : Likewise.
17544         * stmt.c : Likewise.
17545         * stor-layout.c : Likewise.
17546         * store-motion.c : Likewise.
17547         * stringpool.c : Likewise.
17548         * symtab.c : Likewise.
17549         * target-globals.c : Likewise.
17550         * targhooks.c : Likewise.
17551         * tlink.c : Likewise.
17552         * toplev.c : Likewise.
17553         * tracer.c : Likewise.
17554         * trans-mem.c : Likewise.
17555         * tree-affine.c : Likewise.
17556         * tree-affine.h : Likewise.
17557         * tree-browser.c : Likewise.
17558         * tree-call-cdce.c : Likewise.
17559         * tree-cfg.c : Likewise.
17560         * tree-cfgcleanup.c : Likewise.
17561         * tree-chkp-opt.c : Likewise.
17562         * tree-chkp.c : Likewise.
17563         * tree-chrec.c : Likewise.
17564         * tree-complex.c : Likewise.
17565         * tree-data-ref.c : Likewise.
17566         * tree-dfa.c : Likewise.
17567         * tree-diagnostic.c : Likewise.
17568         * tree-dump.c : Likewise.
17569         * tree-eh.c : Likewise.
17570         * tree-eh.h : Likewise.
17571         * tree-emutls.c : Likewise.
17572         * tree-hasher.h : Likewise.
17573         * tree-if-conv.c : Likewise.
17574         * tree-inline.c : Likewise.
17575         * tree-inline.h : Likewise.
17576         * tree-into-ssa.c : Likewise.
17577         * tree-iterator.c : Likewise.
17578         * tree-loop-distribution.c : Likewise.
17579         * tree-nested.c : Likewise.
17580         * tree-nrv.c : Likewise.
17581         * tree-object-size.c : Likewise.
17582         * tree-outof-ssa.c : Likewise.
17583         * tree-parloops.c : Likewise.
17584         * tree-phinodes.c : Likewise.
17585         * tree-predcom.c : Likewise.
17586         * tree-pretty-print.c : Likewise.
17587         * tree-profile.c : Likewise.
17588         * tree-scalar-evolution.c : Likewise.
17589         * tree-sra.c : Likewise.
17590         * tree-ssa-address.c : Likewise.
17591         * tree-ssa-alias.c : Likewise.
17592         * tree-ssa-ccp.c : Likewise.
17593         * tree-ssa-coalesce.c : Likewise.
17594         * tree-ssa-copy.c : Likewise.
17595         * tree-ssa-copyrename.c : Likewise.
17596         * tree-ssa-dce.c : Likewise.
17597         * tree-ssa-dom.c : Likewise.
17598         * tree-ssa-dse.c : Likewise.
17599         * tree-ssa-forwprop.c : Likewise.
17600         * tree-ssa-ifcombine.c : Likewise.
17601         * tree-ssa-live.c : Likewise.
17602         * tree-ssa-loop-ch.c : Likewise.
17603         * tree-ssa-loop-im.c : Likewise.
17604         * tree-ssa-loop-ivcanon.c : Likewise.
17605         * tree-ssa-loop-ivopts.c : Likewise.
17606         * tree-ssa-loop-manip.c : Likewise.
17607         * tree-ssa-loop-niter.c : Likewise.
17608         * tree-ssa-loop-prefetch.c : Likewise.
17609         * tree-ssa-loop-unswitch.c : Likewise.
17610         * tree-ssa-loop.c : Likewise.
17611         * tree-ssa-math-opts.c : Likewise.
17612         * tree-ssa-operands.c : Likewise.
17613         * tree-ssa-phiopt.c : Likewise.
17614         * tree-ssa-phiprop.c : Likewise.
17615         * tree-ssa-pre.c : Likewise.
17616         * tree-ssa-propagate.c : Likewise.
17617         * tree-ssa-reassoc.c : Likewise.
17618         * tree-ssa-sccvn.c : Likewise.
17619         * tree-ssa-scopedtables.c : Likewise.
17620         * tree-ssa-sink.c : Likewise.
17621         * tree-ssa-strlen.c : Likewise.
17622         * tree-ssa-structalias.c : Likewise.
17623         * tree-ssa-tail-merge.c : Likewise.
17624         * tree-ssa-ter.c : Likewise.
17625         * tree-ssa-threadedge.c : Likewise.
17626         * tree-ssa-threadupdate.c : Likewise.
17627         * tree-ssa-uncprop.c : Likewise.
17628         * tree-ssa-uninit.c : Likewise.
17629         * tree-ssa.c : Likewise.
17630         * tree-ssanames.c : Likewise.
17631         * tree-stdarg.c : Likewise.
17632         * tree-streamer-in.c : Likewise.
17633         * tree-streamer-out.c : Likewise.
17634         * tree-streamer.c : Likewise.
17635         * tree-streamer.h : Likewise.
17636         * tree-switch-conversion.c : Likewise.
17637         * tree-tailcall.c : Likewise.
17638         * tree-vect-data-refs.c : Likewise.
17639         * tree-vect-generic.c : Likewise.
17640         * tree-vect-loop-manip.c : Likewise.
17641         * tree-vect-loop.c : Likewise.
17642         * tree-vect-patterns.c : Likewise.
17643         * tree-vect-slp.c : Likewise.
17644         * tree-vect-stmts.c : Likewise.
17645         * tree-vectorizer.c : Likewise.
17646         * tree-vectorizer.h : Likewise.
17647         * tree-vrp.c : Likewise.
17648         * tree.c : Likewise.
17649         * tsan.c : Likewise.
17650         * ubsan.c : Likewise.
17651         * valtrack.c : Likewise.
17652         * valtrack.h : Likewise.
17653         * value-prof.c : Likewise.
17654         * var-tracking.c : Likewise.
17655         * varasm.c : Likewise.
17656         * varpool.c : Likewise.
17657         * vec.c: Likewise.
17658         * vmsdbgout.c : Likewise.
17659         * vtable-verify.c : Likewise.
17660         * vtable-verify.h : Likewise.
17661         * web.c : Likewise.
17662         * wide-int.cc : Likewise.
17663         * xcoffout.c : Likewise.
17664         * config/aarch64/aarch64-builtins.c : Likewise.
17665         * config/aarch64/aarch64.c : Likewise.
17666         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17667         * config/alpha/alpha.c : Likewise.
17668         * config/arc/arc.c : Likewise.
17669         * config/arm/aarch-common.c : Likewise.
17670         * config/arm/arm-builtins.c : Likewise.
17671         * config/arm/arm-c.c : Likewise.
17672         * config/arm/arm.c : Likewise.
17673         * config/avr/avr-c.c : Likewise.
17674         * config/avr/avr-log.c : Likewise.
17675         * config/avr/avr.c : Likewise.
17676         * config/bfin/bfin.c : Likewise.
17677         * config/c6x/c6x.c : Likewise.
17678         * config/cr16/cr16.c : Likewise.
17679         * config/cris/cris.c : Likewise.
17680         * config/darwin-c.c : Likewise.
17681         * config/darwin.c : Likewise.
17682         * config/default-c.c : Likewise.
17683         * config/epiphany/epiphany.c : Likewise.
17684         * config/epiphany/mode-switch-use.c : Likewise.
17685         * config/epiphany/resolve-sw-modes.c : Likewise.
17686         * config/fr30/fr30.c : Likewise.
17687         * config/frv/frv.c : Likewise.
17688         * config/ft32/ft32.c : Likewise.
17689         * config/glibc-c.c : Likewise.
17690         * config/h8300/h8300.c : Likewise.
17691         * config/i386/i386-c.c : Likewise.
17692         * config/i386/i386.c : Likewise.
17693         * config/i386/msformat-c.c : Likewise.
17694         * config/i386/winnt-cxx.c : Likewise.
17695         * config/i386/winnt-stubs.c : Likewise.
17696         * config/i386/winnt.c : Likewise.
17697         * config/ia64/ia64-c.c : Likewise.
17698         * config/ia64/ia64.c : Likewise.
17699         * config/iq2000/iq2000.c : Likewise.
17700         * config/lm32/lm32.c : Likewise.
17701         * config/m32c/m32c-pragma.c : Likewise.
17702         * config/m32c/m32c.c : Likewise.
17703         * config/m32r/m32r.c : Likewise.
17704         * config/m68k/m68k.c : Likewise.
17705         * config/mcore/mcore.c : Likewise.
17706         * config/mep/mep-pragma.c : Likewise.
17707         * config/mep/mep.c : Likewise.
17708         * config/microblaze/microblaze-c.c : Likewise.
17709         * config/microblaze/microblaze.c : Likewise.
17710         * config/mips/mips.c : Likewise.
17711         * config/mmix/mmix.c : Likewise.
17712         * config/mn10300/mn10300.c : Likewise.
17713         * config/moxie/moxie.c : Likewise.
17714         * config/msp430/msp430-c.c : Likewise.
17715         * config/msp430/msp430.c : Likewise.
17716         * config/nds32/nds32-cost.c : Likewise.
17717         * config/nds32/nds32-fp-as-gp.c : Likewise.
17718         * config/nds32/nds32-intrinsic.c : Likewise.
17719         * config/nds32/nds32-isr.c : Likewise.
17720         * config/nds32/nds32-md-auxiliary.c : Likewise.
17721         * config/nds32/nds32-memory-manipulation.c : Likewise.
17722         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17723         * config/nds32/nds32-predicates.c : Likewise.
17724         * config/nds32/nds32.c : Likewise.
17725         * config/nios2/nios2.c : Likewise.
17726         * config/nvptx/nvptx.c : Likewise.
17727         * config/pa/pa.c : Likewise.
17728         * config/pdp11/pdp11.c : Likewise.
17729         * config/rl78/rl78-c.c : Likewise.
17730         * config/rl78/rl78.c : Likewise.
17731         * config/rs6000/rs6000-c.c : Likewise.
17732         * config/rs6000/rs6000.c : Likewise.
17733         * config/rx/rx.c : Likewise.
17734         * config/s390/s390-c.c : Likewise.
17735         * config/s390/s390.c : Likewise.
17736         * config/sh/sh-c.c : Likewise.
17737         * config/sh/sh-mem.cc : Likewise.
17738         * config/sh/sh.c : Likewise.
17739         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17740         * config/sh/sh_treg_combine.cc : Likewise.
17741         * config/sol2-c.c : Likewise.
17742         * config/sol2-cxx.c : Likewise.
17743         * config/sol2-stubs.c : Likewise.
17744         * config/sol2.c : Likewise.
17745         * config/sparc/sparc-c.c : Likewise.
17746         * config/sparc/sparc.c : Likewise.
17747         * config/spu/spu-c.c : Likewise.
17748         * config/spu/spu.c : Likewise.
17749         * config/stormy16/stormy16.c : Likewise.
17750         * config/tilegx/mul-tables.c : Likewise.
17751         * config/tilegx/tilegx-c.c : Likewise.
17752         * config/tilegx/tilegx.c : Likewise.
17753         * config/tilepro/mul-tables.c : Likewise.
17754         * config/tilepro/tilepro-c.c : Likewise.
17755         * config/tilepro/tilepro.c : Likewise.
17756         * config/v850/v850-c.c : Likewise.
17757         * config/v850/v850.c : Likewise.
17758         * config/vax/vax.c : Likewise.
17759         * config/visium/visium.c : Likewise.
17760         * config/vms/vms-c.c : Likewise.
17761         * config/vms/vms.c : Likewise.
17762         * config/vxworks.c : Likewise.
17763         * config/winnt-c.c : Likewise.
17764         * config/xtensa/xtensa.c : Likewise.
17765
17766 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17767
17768         PR lto/65378
17769         * ipa-utils.h (warn_types_mismatch): Update prototype.
17770         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17771         parameters.
17772         (type_mismatch_p): New function.
17773         (warn_types_mismatch): Reorg to work better on non-C++ types.
17774         (odr_types_equivalent_p): Add loc1/loc2 parameters.
17775         (add_type_duplicate): Update.
17776
17777 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17778
17779         PR rtl-optimization/66444
17780         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17781         call_used_regs.
17782
17783 2015-06-08  Richard Biener  <rguenther@suse.de>
17784
17785         PR tree-optimization/66422
17786         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17787         block after inserted gcc_unreachable.
17788
17789 2015-06-08  Nick Clifton  <nickc@redhat.com>
17790
17791         * config/rx/rx.c (rx_function_value): Do not promote vector types.
17792         (rx_promote_function_mode): Likewise.
17793         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17794
17795 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
17796
17797         * genattrtab.c (insn_alternatives): Change type from int *
17798         to uint64_t *.
17799         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17800         (get_attr_value): Change type of num_alt to uint64_t.
17801         (compute_alternative_mask): Change return type from
17802         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17803         (make_alternative_compare, mk_attr_alt): Change argument type
17804         from int to uint64_t.
17805         (simplify_test_exp): Change type of i from int to uint64_t.
17806         Shift ((uint64_t) 1) instead of 1 up.
17807         (main): Adjust oballocvec first argument from int to uint64_t.
17808         Shift ((uint64_t) 1) instead of 1 up.
17809
17810 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
17811
17812         PR other/65366
17813         * gdbhooks.py: Import sys.
17814         (intptr): New function.  Replace int(...) by intptr(...).
17815
17816 2015-06-08  Richard Biener  <rguenther@suse.de>
17817
17818         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
17819         adjustment for gaps at the end of a SLP load group properly.
17820         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
17821         all permutations we can generate.
17822         (vect_transform_slp_perm_load): Use the correct group-size.
17823
17824 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
17825
17826         * genmatch.c (expr::gen_transform): For conditions, guess the type
17827         from the second operand.
17828
17829 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17830
17831         PR tree-optimization/66442
17832         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
17833         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
17834         if the loop latch is not a singleton.  Use
17835         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
17836
17837 2015-06-08  Marek Polacek  <polacek@redhat.com>
17838
17839         PR sanitizer/66452
17840         * toplev.c (check_global_declaration): Don't warn about artificial
17841         decls.
17842
17843 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17844
17845         PR tree-optimization/66436
17846         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
17847         dump file.
17848         * gimplify.c: Add tree-dump.h include.
17849         (gimplify_function_tree): Dump function to gimple dump file.
17850         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
17851         dump file.
17852
17853 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17854
17855         PR tree-optimization/66435
17856         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
17857         function.
17858
17859 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
17860
17861         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
17862         of ptr_type_node to not be ptr_to_node.
17863         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
17864         TREE_TYPE of pointers.
17865         * gimple-expr.c (useless_type_conversion): Reorder the check for
17866         function pointers and TYPE_CANONICAL.
17867
17868 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
17869
17870         PR bootstrap/66319
17871         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
17872         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
17873         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
17874         later.
17875         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
17876         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
17877         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
17878         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
17879         and non iso if unix2003.
17880
17881 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
17882
17883         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
17884
17885 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
17886
17887         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
17888         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
17889         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
17890         except.c, final.c, function.c, gcse-common.c, genemit.c,
17891         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
17892         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
17893         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
17894         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
17895         more derived ones.
17896
17897 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
17898
17899         * combine.c (combine_split_insns): Remove cast.
17900         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
17901         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
17902         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
17903         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
17904         * genemit.c (gen_split): Change return type of generated functions to
17905         rtx_insn.
17906         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
17907         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
17908         gen_peephole2_* functions.
17909         (print_subroutine, main): Likewise.
17910         * recog.c (peephole2_optimize): Remove cast.
17911         (peep2_next_insn): Promote return type to rtx_insn.
17912         * recog.h (peep2_next_insn): Fix prototype.
17913         * rtl.h (try_split, split_insns): Likewise.
17914
17915 2015-06-06  DJ Delorie  <dj@redhat.com>
17916
17917         * config/msp430/msp430.c (msp430_asm_integer): Support addition
17918         and subtraction too.
17919
17920 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
17921
17922         PR target/66410
17923         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
17924         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
17925         instead of Snd.  Disparage Sid/z alternative with '^'.
17926
17927 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
17928
17929         * dwarf2out.c: Remove deferred_locations*.
17930         (dwarf2_debug_hooks): Add early_finish hook.
17931         Remove global_decl hook.
17932         Add early_global_decl and late_global_decl hook.
17933         New global early_dwarf.
17934         New structure set_early_dwarf.
17935         (output_die): Indicate whether a DIE was generated early
17936         when generating assembly with -dA.
17937         (struct limbo_die_struct): Document created_for field.
17938         Remove file_table_last_lookup.
17939         (remove_AT): Return TRUE if successful.
17940         (remove_child_TAG): Clear die_parent.
17941         (reparent_child): New function abstracted from...
17942         (splice_child_die): ...here.
17943         (new_die): ICE if a DIE ends up in limbo too late.
17944         (check_die): New.
17945         (defer_location): Remove.
17946         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
17947         (fill_variable_array_bounds): New.
17948         (decl_start_label): Call fill_variable_array_bounds.
17949         (gen_formal_parameter_die): Rewrite to reuse previously generated
17950         DIEs.
17951         (gen_subprogram_die): Same.
17952         (gen_variable_die): Same.
17953         (gen_const_die): Same.
17954         (gen_label_die): Same.
17955         (gen_lexical_block_die): Same.
17956         (decl_will_get_specification_p): New.
17957         (local_function_static): New.
17958         (gen_struct_or_union_type_die): Fill in variable-length fields.
17959         (gen_typedef_die): Fill in variable-length typedefs.
17960         (gen_tagged_type_die): Gracefully return on error_mark_node.
17961         Handle re-entrancy.
17962         (gen_type_die_with_usage): Handle variable-length types.
17963         Remove duplicate code for ARRAY_TYPE case.
17964         (process_scope_var): Only process imported modules during early
17965         dwarf.
17966         (dwarf2out_early_global_decl): New.
17967         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
17968         (dwarf2out_type_decl): Set early_dwarf while calling
17969         dwarf2out_decl.
17970         (dwarf2out_decl): Verify that we did not recreate a previously
17971         generated DIE.
17972         Do not return on DECL_EXTERNALs in VAR_DECLs.
17973         Abstract some code to local_function_static.
17974         (lookup_filename): Remove use of file_table_last_lookup.
17975         Gracefully exit on missing file_name.
17976         (dwarf2out_finish): Verify limbo list.
17977         Remove deferred_locations_list use.
17978         Move deferred_asm_name and limbo flushing to...
17979         (dwarf2out_early_finish): ...here.  New.
17980         (dwarf2out_c_finalize): Remove set of deferred_location_list,
17981         deferred_asm_name, and file_table_last_lookup.
17982         * cgraph.h (referred_to_p): Add default argument.
17983         * cgraphunit.c (referred_to_p): Add and handle include_self
17984         argument.
17985         (analyze_functions): Add first_time argument.
17986         Call check_global_declaration for all symbols.
17987         Call late_global_decl for nodes for moribund nodes.
17988         (finalize_compilation_unit): Add new argument to
17989         analyze_functions.
17990         Call early_global_decl for functions.
17991         Call early_finish debug hook.
17992         * dbxout.c (dbxout_early_global_decl): New.
17993         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
17994         (dbx_debug_hooks): Add new hooks.
17995         (xcoff_debug_hooks): Same.
17996         * debug.c (do_nothing_debug_hooks): Add early_finish field.
17997         Add early and late debug hooks.
17998         Remove global_decl hook.
17999         * debug.h (struct gcc_debug_hooks): Add early_finish,
18000         early_global_decl, and late_global_decl fields.
18001         Remove global_decl field.
18002         Document gcc_debug_hooks.
18003         * gengtype.c (output_typename): Remove.
18004         * godump.c (go_early_global_decl): New.
18005         (go_late_global_decl): New.
18006         (go_global_decl): Remove.
18007         (dump_go_spec_init): Remove global_decl.  Add
18008         {early,late}_global_decl.
18009         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18010         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18011         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18012         (write_global_declarations): Remove.
18013         (global_decl_processing): New.
18014         * langhooks.h (struct lang_hooks_for_decls): Remove
18015         final_write_globals field.
18016         Add post_compilation_parsing_cleanups field.
18017         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18018         * sdbout.c: Add early and late_global_decl hooks.  Remove
18019         sdbout_global_decl hook.
18020         Add early_finish field for sdb_debug_hooks.
18021         (sdbout_global_decl): Remove.
18022         (sdbout_early_global_decl): New.
18023         (sdbout_late_global_decl): New.
18024         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18025         * toplev.c (check_global_declaration): Rename from
18026         check_global_declaration_1.
18027         Adapt to use symtab infrastructure.
18028         (check_global_declarations): Remove.
18029         (emit_debug_global_declarations): Remove.
18030         (compile_file): Remove call to final_write_globals langhook.
18031         Run the actual compilation process.
18032         Perform any post compilation parser cleanups.
18033         Generate late debug info.
18034         * toplev.h (check_global_declaration): New.
18035         (check_global_declaration_1): Remove.
18036         (check_global_declarations): Remove.
18037         (write_global_declarations): Remove.
18038         (emit_debug_global_declarations): Remove.
18039         (global_decl_processing): New.
18040         * tree-core.h (struct tree_block): Add DIE field.
18041         * tree.h (BLOCK_DIE): New.
18042         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18043         throughout.
18044         (vmsdbgout_early_global_decl): New.
18045         (vmsdbgout_late_global_decl): New.
18046         Add early_finish debug hook field to vmsdbg_debug_hooks.
18047         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18048         Add early and late_global_decl debug hooks.
18049
18050 2015-06-05  Julian Brown  <julian@codesourcery.com>
18051             Sandra Loosemore  <sandra@codesourcery.com>
18052
18053         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18054         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18055         to print-sysroot-suffix.sh script.
18056
18057 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18058
18059         merge from gomp4 branch:
18060         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18061
18062         PR tree-optimization/65443
18063         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18064         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18065         (try_transform_to_exit_first_loop_alt): New function.
18066         (transform_to_exit_first_loop): Use
18067         try_transform_to_exit_first_loop_alt.
18068
18069 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18070
18071         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18072         emit_cmp_and_jump_insns with the mode of target.
18073
18074 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18075
18076         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18077
18078 2015-06-04  DJ Delorie  <dj@redhat.com>
18079
18080         * config/msp430/msp430.md (movsi_s): New.  Special case for
18081         storing a 20-bit symbol into a 32-bit register.
18082         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18083         * config/msp430/predicates.md (msp430_symbol_operand): New.
18084
18085 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18086
18087         * c-family/c-common.c (noplt): New attribute.
18088         (handle_noplt_attribute): New handler.
18089         * calls.c (prepare_call_address): Check for noplt
18090         attribute.
18091         * config/i386/i386.c (ix86_expand_call): Check
18092         for noplt attribute.
18093         (ix86_nopic_noplt_attribute_p): New function.
18094         (ix86_output_call_insn): Output indirect call for non-pic
18095         no plt calls.
18096         * doc/extend.texi (noplt): Document new attribute.
18097         * doc/invoke.texi: Document new attribute.
18098
18099 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18100
18101         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18102         real.h, and fixed-value.h when included in host source files.
18103         * double-int.h: Remove redundant #includes listed above.
18104         * fixed-value.h: Likewise.
18105         * real.h: Likewise.
18106         * wide-int.h: Likewise.
18107         * inchash.h: Likewise.
18108         * rtl.h: Add some include files When included from a generator file.
18109         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18110         * internal-fn.h: Don't include coretypes.h.
18111         * alias.c: Adjust includes for restructured coretypes.h.
18112         * asan.c: Likewise.
18113         * attribs.c: Likewise.
18114         * auto-inc-dec.c: Likewise.
18115         * auto-profile.c: Likewise.
18116         * bb-reorder.c: Likewise.
18117         * bt-load.c: Likewise.
18118         * builtins.c: Likewise.
18119         * caller-save.c: Likewise.
18120         * calls.c: Likewise.
18121         * ccmp.c: Likewise.
18122         * cfg.c: Likewise.
18123         * cfganal.c: Likewise.
18124         * cfgbuild.c: Likewise.
18125         * cfgcleanup.c: Likewise.
18126         * cfgexpand.c: Likewise.
18127         * cfghooks.c: Likewise.
18128         * cfgloop.c: Likewise.
18129         * cfgloop.h: Likewise.
18130         * cfgloopanal.c: Likewise.
18131         * cfgloopmanip.c: Likewise.
18132         * cfgrtl.c: Likewise.
18133         * cgraph.c: Likewise.
18134         * cgraphbuild.c: Likewise.
18135         * cgraphclones.c: Likewise.
18136         * cgraphunit.c: Likewise.
18137         * cilk-common.c: Likewise.
18138         * combine-stack-adj.c: Likewise.
18139         * combine.c: Likewise.
18140         * compare-elim.c: Likewise.
18141         * convert.c: Likewise.
18142         * coverage.c: Likewise.
18143         * cppbuiltin.c: Likewise.
18144         * cprop.c: Likewise.
18145         * cse.c: Likewise.
18146         * cselib.c: Likewise.
18147         * data-streamer-in.c: Likewise.
18148         * data-streamer-out.c: Likewise.
18149         * data-streamer.c: Likewise.
18150         * dbxout.c: Likewise.
18151         * dce.c: Likewise.
18152         * ddg.c: Likewise.
18153         * debug.c: Likewise.
18154         * df-core.c: Likewise.
18155         * df-problems.c: Likewise.
18156         * df-scan.c: Likewise.
18157         * df.h: Likewise.
18158         * dfp.c: Likewise.
18159         * dojump.c: Likewise.
18160         * dominance.c: Likewise.
18161         * domwalk.c: Likewise.
18162         * double-int.c: Likewise.
18163         * dse.c: Likewise.
18164         * dumpfile.c: Likewise.
18165         * dwarf2asm.c: Likewise.
18166         * dwarf2cfi.c: Likewise.
18167         * dwarf2out.c: Likewise.
18168         * dwarf2out.h: Likewise.
18169         * emit-rtl.c: Likewise.
18170         * et-forest.c: Likewise.
18171         * except.c: Likewise.
18172         * explow.c: Likewise.
18173         * expmed.c: Likewise.
18174         * expr.c: Likewise.
18175         * final.c: Likewise.
18176         * fixed-value.c: Likewise.
18177         * fold-const.c: Likewise.
18178         * function.c: Likewise.
18179         * fwprop.c: Likewise.
18180         * gcc-plugin.h: Likewise.
18181         * gcse.c: Likewise.
18182         * generic-match-head.c: Likewise.
18183         * ggc-page.c: Likewise.
18184         * gimple-builder.c: Likewise.
18185         * gimple-expr.c: Likewise.
18186         * gimple-fold.c: Likewise.
18187         * gimple-iterator.c: Likewise.
18188         * gimple-low.c: Likewise.
18189         * gimple-match-head.c: Likewise.
18190         * gimple-pretty-print.c: Likewise.
18191         * gimple-ssa-isolate-paths.c: Likewise.
18192         * gimple-ssa-strength-reduction.c: Likewise.
18193         * gimple-streamer-in.c: Likewise.
18194         * gimple-streamer-out.c: Likewise.
18195         * gimple-streamer.h: Likewise.
18196         * gimple-walk.c: Likewise.
18197         * gimple.c: Likewise.
18198         * gimplify-me.c: Likewise.
18199         * gimplify.c: Likewise.
18200         * godump.c: Likewise.
18201         * graph.c: Likewise.
18202         * graphite-blocking.c: Likewise.
18203         * graphite-dependences.c: Likewise.
18204         * graphite-interchange.c: Likewise.
18205         * graphite-isl-ast-to-gimple.c: Likewise.
18206         * graphite-optimize-isl.c: Likewise.
18207         * graphite-poly.c: Likewise.
18208         * graphite-scop-detection.c: Likewise.
18209         * graphite-sese-to-poly.c: Likewise.
18210         * graphite.c: Likewise.
18211         * haifa-sched.c: Likewise.
18212         * hooks.h: Likewise.
18213         * hw-doloop.c: Likewise.
18214         * ifcvt.c: Likewise.
18215         * incpath.c: Likewise.
18216         * init-regs.c: Likewise.
18217         * internal-fn.c: Likewise.
18218         * ipa-chkp.c: Likewise.
18219         * ipa-comdats.c: Likewise.
18220         * ipa-cp.c: Likewise.
18221         * ipa-devirt.c: Likewise.
18222         * ipa-icf-gimple.c: Likewise.
18223         * ipa-icf.c: Likewise.
18224         * ipa-inline-analysis.c: Likewise.
18225         * ipa-inline-transform.c: Likewise.
18226         * ipa-inline.c: Likewise.
18227         * ipa-polymorphic-call.c: Likewise.
18228         * ipa-profile.c: Likewise.
18229         * ipa-prop.c: Likewise.
18230         * ipa-pure-const.c: Likewise.
18231         * ipa-ref.c: Likewise.
18232         * ipa-reference.c: Likewise.
18233         * ipa-split.c: Likewise.
18234         * ipa-utils.c: Likewise.
18235         * ipa-visibility.c: Likewise.
18236         * ipa.c: Likewise.
18237         * ira-build.c: Likewise.
18238         * ira-color.c: Likewise.
18239         * ira-conflicts.c: Likewise.
18240         * ira-costs.c: Likewise.
18241         * ira-emit.c: Likewise.
18242         * ira-lives.c: Likewise.
18243         * ira.c: Likewise.
18244         * jump.c: Likewise.
18245         * langhooks.c: Likewise.
18246         * lcm.c: Likewise.
18247         * loop-doloop.c: Likewise.
18248         * loop-init.c: Likewise.
18249         * loop-invariant.c: Likewise.
18250         * loop-iv.c: Likewise.
18251         * loop-unroll.c: Likewise.
18252         * lower-subreg.c: Likewise.
18253         * lra-assigns.c: Likewise.
18254         * lra-coalesce.c: Likewise.
18255         * lra-constraints.c: Likewise.
18256         * lra-eliminations.c: Likewise.
18257         * lra-lives.c: Likewise.
18258         * lra-remat.c: Likewise.
18259         * lra-spills.c: Likewise.
18260         * lra.c: Likewise.
18261         * lto-cgraph.c: Likewise.
18262         * lto-compress.c: Likewise.
18263         * lto-opts.c: Likewise.
18264         * lto-section-in.c: Likewise.
18265         * lto-section-out.c: Likewise.
18266         * lto-streamer-in.c: Likewise.
18267         * lto-streamer-out.c: Likewise.
18268         * lto-streamer.c: Likewise.
18269         * mcf.c: Likewise.
18270         * mode-switching.c: Likewise.
18271         * modulo-sched.c: Likewise.
18272         * omega.c: Likewise.
18273         * omp-low.c: Likewise.
18274         * optabs.c: Likewise.
18275         * opts-global.c: Likewise.
18276         * passes.c: Likewise.
18277         * plugin.c: Likewise.
18278         * postreload-gcse.c: Likewise.
18279         * postreload.c: Likewise.
18280         * predict.c: Likewise.
18281         * print-rtl.c: Likewise.
18282         * print-tree.c: Likewise.
18283         * profile.c: Likewise.
18284         * real.c: Likewise.
18285         * realmpfr.c: Likewise.
18286         * realmpfr.h: Likewise.
18287         * recog.c: Likewise.
18288         * ree.c: Likewise.
18289         * reg-stack.c: Likewise.
18290         * regcprop.c: Likewise.
18291         * reginfo.c: Likewise.
18292         * regrename.c: Likewise.
18293         * regs.h: Likewise.
18294         * regstat.c: Likewise.
18295         * reload.c: Likewise.
18296         * reload1.c: Likewise.
18297         * reorg.c: Likewise.
18298         * resource.c: Likewise.
18299         * rtl-chkp.c: Likewise.
18300         * rtlanal.c: Likewise.
18301         * rtlhooks.c: Likewise.
18302         * sanopt.c: Likewise.
18303         * sched-deps.c: Likewise.
18304         * sched-ebb.c: Likewise.
18305         * sched-rgn.c: Likewise.
18306         * sched-vis.c: Likewise.
18307         * sdbout.c: Likewise.
18308         * sel-sched-dump.c: Likewise.
18309         * sel-sched-ir.c: Likewise.
18310         * sel-sched.c: Likewise.
18311         * sese.c: Likewise.
18312         * shrink-wrap.c: Likewise.
18313         * shrink-wrap.h: Likewise.
18314         * simplify-rtx.c: Likewise.
18315         * stack-ptr-mod.c: Likewise.
18316         * statistics.c: Likewise.
18317         * stmt.c: Likewise.
18318         * stor-layout.c: Likewise.
18319         * store-motion.c: Likewise.
18320         * stringpool.c: Likewise.
18321         * symtab.c: Likewise.
18322         * target-globals.c: Likewise.
18323         * targhooks.c: Likewise.
18324         * toplev.c: Likewise.
18325         * tracer.c: Likewise.
18326         * trans-mem.c: Likewise.
18327         * tree-affine.c: Likewise.
18328         * tree-affine.h: Likewise.
18329         * tree-browser.c: Likewise.
18330         * tree-call-cdce.c: Likewise.
18331         * tree-cfg.c: Likewise.
18332         * tree-cfgcleanup.c: Likewise.
18333         * tree-chkp-opt.c: Likewise.
18334         * tree-chkp.c: Likewise.
18335         * tree-chrec.c: Likewise.
18336         * tree-complex.c: Likewise.
18337         * tree-data-ref.c: Likewise.
18338         * tree-dfa.c: Likewise.
18339         * tree-diagnostic.c: Likewise.
18340         * tree-dump.c: Likewise.
18341         * tree-eh.c: Likewise.
18342         * tree-emutls.c: Likewise.
18343         * tree-if-conv.c: Likewise.
18344         * tree-inline.c: Likewise.
18345         * tree-into-ssa.c: Likewise.
18346         * tree-iterator.c: Likewise.
18347         * tree-loop-distribution.c: Likewise.
18348         * tree-nested.c: Likewise.
18349         * tree-nrv.c: Likewise.
18350         * tree-object-size.c: Likewise.
18351         * tree-outof-ssa.c: Likewise.
18352         * tree-parloops.c: Likewise.
18353         * tree-phinodes.c: Likewise.
18354         * tree-predcom.c: Likewise.
18355         * tree-pretty-print.c: Likewise.
18356         * tree-pretty-print.h: Likewise.
18357         * tree-profile.c: Likewise.
18358         * tree-scalar-evolution.c: Likewise.
18359         * tree-sra.c: Likewise.
18360         * tree-ssa-address.c: Likewise.
18361         * tree-ssa-alias.c: Likewise.
18362         * tree-ssa-ccp.c: Likewise.
18363         * tree-ssa-coalesce.c: Likewise.
18364         * tree-ssa-copy.c: Likewise.
18365         * tree-ssa-copyrename.c: Likewise.
18366         * tree-ssa-dce.c: Likewise.
18367         * tree-ssa-dom.c: Likewise.
18368         * tree-ssa-dse.c: Likewise.
18369         * tree-ssa-forwprop.c: Likewise.
18370         * tree-ssa-ifcombine.c: Likewise.
18371         * tree-ssa-live.c: Likewise.
18372         * tree-ssa-loop-ch.c: Likewise.
18373         * tree-ssa-loop-im.c: Likewise.
18374         * tree-ssa-loop-ivcanon.c: Likewise.
18375         * tree-ssa-loop-ivopts.c: Likewise.
18376         * tree-ssa-loop-manip.c: Likewise.
18377         * tree-ssa-loop-niter.c: Likewise.
18378         * tree-ssa-loop-prefetch.c: Likewise.
18379         * tree-ssa-loop-unswitch.c: Likewise.
18380         * tree-ssa-loop.c: Likewise.
18381         * tree-ssa-loop.h: Likewise.
18382         * tree-ssa-math-opts.c: Likewise.
18383         * tree-ssa-operands.c: Likewise.
18384         * tree-ssa-phiopt.c: Likewise.
18385         * tree-ssa-phiprop.c: Likewise.
18386         * tree-ssa-pre.c: Likewise.
18387         * tree-ssa-propagate.c: Likewise.
18388         * tree-ssa-reassoc.c: Likewise.
18389         * tree-ssa-sccvn.c: Likewise.
18390         * tree-ssa-scopedtables.c: Likewise.
18391         * tree-ssa-sink.c: Likewise.
18392         * tree-ssa-strlen.c: Likewise.
18393         * tree-ssa-structalias.c: Likewise.
18394         * tree-ssa-tail-merge.c: Likewise.
18395         * tree-ssa-ter.c: Likewise.
18396         * tree-ssa-threadedge.c: Likewise.
18397         * tree-ssa-threadupdate.c: Likewise.
18398         * tree-ssa-uncprop.c: Likewise.
18399         * tree-ssa-uninit.c: Likewise.
18400         * tree-ssa.c: Likewise.
18401         * tree-ssanames.c: Likewise.
18402         * tree-stdarg.c: Likewise.
18403         * tree-streamer-in.c: Likewise.
18404         * tree-streamer-out.c: Likewise.
18405         * tree-streamer.c: Likewise.
18406         * tree-switch-conversion.c: Likewise.
18407         * tree-tailcall.c: Likewise.
18408         * tree-vect-data-refs.c: Likewise.
18409         * tree-vect-generic.c: Likewise.
18410         * tree-vect-loop-manip.c: Likewise.
18411         * tree-vect-loop.c: Likewise.
18412         * tree-vect-patterns.c: Likewise.
18413         * tree-vect-slp.c: Likewise.
18414         * tree-vect-stmts.c: Likewise.
18415         * tree-vectorizer.c: Likewise.
18416         * tree-vrp.c: Likewise.
18417         * tree.c: Likewise.
18418         * tsan.c: Likewise.
18419         * ubsan.c: Likewise.
18420         * valtrack.c: Likewise.
18421         * value-prof.c: Likewise.
18422         * var-tracking.c: Likewise.
18423         * varasm.c: Likewise.
18424         * varpool.c: Likewise.
18425         * vmsdbgout.c: Likewise.
18426         * vtable-verify.c: Likewise.
18427         * web.c: Likewise.
18428         * wide-int-print.cc: Likewise.
18429         * wide-int-print.h: Likewise.
18430         * wide-int.cc: Likewise.
18431         * xcoffout.c: Likewise.
18432         * config/aarch64/aarch64-builtins.c: Likewise.
18433         * config/aarch64/aarch64.c: Likewise.
18434         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18435         * config/alpha/alpha.c: Likewise.
18436         * config/arc/arc.c: Likewise.
18437         * config/arm/aarch-common.c: Likewise.
18438         * config/arm/arm-builtins.c: Likewise.
18439         * config/arm/arm-c.c: Likewise.
18440         * config/arm/arm.c: Likewise.
18441         * config/avr/avr-c.c: Likewise.
18442         * config/avr/avr-log.c: Likewise.
18443         * config/avr/avr.c: Likewise.
18444         * config/bfin/bfin.c: Likewise.
18445         * config/c6x/c6x.c: Likewise.
18446         * config/cr16/cr16.c: Likewise.
18447         * config/cris/cris.c: Likewise.
18448         * config/darwin-c.c: Likewise.
18449         * config/darwin.c: Likewise.
18450         * config/default-c.c: Likewise.
18451         * config/epiphany/epiphany.c: Likewise.
18452         * config/epiphany/mode-switch-use.c: Likewise.
18453         * config/epiphany/resolve-sw-modes.c: Likewise.
18454         * config/fr30/fr30.c: Likewise.
18455         * config/frv/frv.c: Likewise.
18456         * config/ft32/ft32.c: Likewise.
18457         * config/glibc-c.c: Likewise.
18458         * config/h8300/h8300.c: Likewise.
18459         * config/i386/i386-c.c: Likewise.
18460         * config/i386/i386.c: Likewise.
18461         * config/i386/msformat-c.c: Likewise.
18462         * config/i386/winnt-cxx.c: Likewise.
18463         * config/i386/winnt-stubs.c: Likewise.
18464         * config/i386/winnt.c: Likewise.
18465         * config/ia64/ia64-c.c: Likewise.
18466         * config/ia64/ia64.c: Likewise.
18467         * config/iq2000/iq2000.c: Likewise.
18468         * config/lm32/lm32.c: Likewise.
18469         * config/m32c/m32c-pragma.c: Likewise.
18470         * config/m32c/m32c.c: Likewise.
18471         * config/m32r/m32r.c: Likewise.
18472         * config/m68k/m68k.c: Likewise.
18473         * config/mcore/mcore.c: Likewise.
18474         * config/mep/mep-pragma.c: Likewise.
18475         * config/mep/mep.c: Likewise.
18476         * config/microblaze/microblaze-c.c: Likewise.
18477         * config/microblaze/microblaze.c: Likewise.
18478         * config/mips/mips.c: Likewise.
18479         * config/mmix/mmix.c: Likewise.
18480         * config/mn10300/mn10300.c: Likewise.
18481         * config/moxie/moxie.c: Likewise.
18482         * config/msp430/msp430-c.c: Likewise.
18483         * config/msp430/msp430.c: Likewise.
18484         * config/nds32/nds32-cost.c: Likewise.
18485         * config/nds32/nds32-fp-as-gp.c: Likewise.
18486         * config/nds32/nds32-intrinsic.c: Likewise.
18487         * config/nds32/nds32-isr.c: Likewise.
18488         * config/nds32/nds32-md-auxiliary.c: Likewise.
18489         * config/nds32/nds32-memory-manipulation.c: Likewise.
18490         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18491         * config/nds32/nds32-predicates.c: Likewise.
18492         * config/nds32/nds32.c: Likewise.
18493         * config/nios2/nios2.c: Likewise.
18494         * config/nvptx/nvptx.c: Likewise.
18495         * config/pa/pa.c: Likewise.
18496         * config/pdp11/pdp11.c: Likewise.
18497         * config/rl78/rl78-c.c: Likewise.
18498         * config/rl78/rl78.c: Likewise.
18499         * config/rs6000/rs6000-c.c: Likewise.
18500         * config/rs6000/rs6000.c: Likewise.
18501         * config/rx/rx.c: Likewise.
18502         * config/s390/s390-c.c: Likewise.
18503         * config/s390/s390.c: Likewise.
18504         * config/sh/sh-c.c: Likewise.
18505         * config/sh/sh-mem.cc: Likewise.
18506         * config/sh/sh.c: Likewise.
18507         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18508         * config/sh/sh_treg_combine.cc: Likewise.
18509         * config/sol2-c.c: Likewise.
18510         * config/sol2-cxx.c: Likewise.
18511         * config/sol2-stubs.c: Likewise.
18512         * config/sol2.c: Likewise.
18513         * config/sparc/sparc-c.c: Likewise.
18514         * config/sparc/sparc.c: Likewise.
18515         * config/spu/spu-c.c: Likewise.
18516         * config/spu/spu.c: Likewise.
18517         * config/stormy16/stormy16.c: Likewise.
18518         * config/tilegx/mul-tables.c: Likewise.
18519         * config/tilegx/tilegx-c.c: Likewise.
18520         * config/tilegx/tilegx.c: Likewise.
18521         * config/tilepro/mul-tables.c: Likewise.
18522         * config/tilepro/tilepro-c.c: Likewise.
18523         * config/tilepro/tilepro.c: Likewise.
18524         * config/v850/v850-c.c: Likewise.
18525         * config/v850/v850.c: Likewise.
18526         * config/vax/vax.c: Likewise.
18527         * config/visium/visium.c: Likewise.
18528         * config/vms/vms-c.c: Likewise.
18529         * config/vms/vms.c: Likewise.
18530         * config/vxworks.c: Likewise.
18531         * config/winnt-c.c: Likewise.
18532         * config/xtensa/xtensa.c: Likewise.
18533         * common/config/bfin/bfin-common.c: Likewise.
18534
18535 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
18536
18537         * tree.h (tree_code_for_canonical_type_merging): New function.
18538         * tree.c (gimple_canonical_types_compatible_p): Use
18539         tree_code_for_canonical_type_merging..
18540
18541 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18542
18543         PR c++/66192
18544         PR target/66200
18545         * doc/tm.texi: Regenerate.
18546         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18547         * target.def (TARGET_RELAXED_ORDERING): Likewise.
18548         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18549         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18550         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18551         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18552         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18553         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18554         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18555
18556 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18557
18558         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18559         register fma steering pass.
18560         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18561         AARCH64_TUNE_FMA_STEERING.
18562
18563 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
18564
18565         * tree.c (verify_type_variant): Verify that type and variant is
18566         compatible.
18567         (gimple_canonical_types_compatible_p): Look for main variants.
18568
18569 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18570
18571         * config.gcc (powerpc*-*-*): Add support for a new configure
18572         option --with-advance-toolchain=<xxx> which overrides using the
18573         default header files, libraries and dynamic linker.
18574
18575         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18576         specs to support the configure --with-advance-toolchain=<xxx>
18577         option.
18578         (INCLUDE_EXTRA_SPEC): Likewise.
18579         (LINK_OS_EXTRA_SPEC32): Likewise.
18580         (LINK_OK_EXTRA_SPEC64): Likewise.
18581         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18582         (DYNAMIC_LINKER_PREFIX): Likewise.
18583         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18584         toolchain support.
18585         (GLIBC_DYNAMIC_LINKER32): Likewise.
18586         (GLIBC_DYNAMIC_LINKER64): Likewise.
18587         (LINK_OS_LINUX_SPEC32): Likewise.
18588         (LINK_OS_LINUX_SPEC64): Likewise.
18589
18590         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18591         configuration option.
18592
18593 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
18594
18595         PR target/66275
18596         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18597         to determine current function ABI.
18598         (ix86_function_value_regno_p): Ditto.
18599
18600 2015-06-03  Martin Liska  <mliska@suse.cz>
18601
18602         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18603         * bitmap.h (struct bitmap_usage): Likewise.
18604         * ggc-common.c (struct ggc_usage): Likewise.
18605         * mem-stats.h (struct mem_location): Likewise.
18606         (struct mem_usage): Likewise.
18607         * vec.c (struct vec_usage): Likewise.
18608
18609 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
18610
18611         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18612         -Bsymbolic.
18613
18614 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
18615
18616         * doc/plugins.texi (enum plugin_event): New event.
18617         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18618         and PLUGIN_FINISH_FUNCTION.
18619         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18620         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18621
18622 2015-06-03  Richard Biener  <rguenther@suse.de>
18623
18624         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18625         compute GROUP_GAP for the first element.
18626         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18627         on in-group gaps.
18628
18629 2015-06-03  Nick Clifton  <nickc@redhat.com>
18630
18631         * config/rl78/rl78-real.md: Add peepholes to avoid a register
18632         copy when calling a function.
18633         * config/rl78/rl78.c (need_to_save): Do not push the frame
18634         pointer in an interrupt handler prologue if it is never used.
18635
18636 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18637
18638         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18639
18640 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18641
18642         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18643         reference when cloning alias node.
18644
18645 2015-06-03  Martin Liska  <mliska@suse.cz>
18646
18647         * alloc-pool.h (struct pool_usage): Correct space padding.
18648         * ggc-page.c (ggc_print_statistics): Align columns in a report.
18649         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18650         * tree.c (dump_tree_statistics): Align columns in a report.
18651
18652 2015-06-03  Martin Liska  <mliska@suse.cz>
18653
18654         * alloc-pool.c (allocate_pool_descriptor): Remove.
18655         (struct pool_output_info): Likewise.
18656         (print_alloc_pool_statistics): Likewise.
18657         (dump_alloc_pool_statistics): Likewise.
18658         * alloc-pool.h (struct pool_usage): New struct.
18659         (pool_allocator::initialize): Change usage of memory statistics
18660         to a new interface.
18661         (pool_allocator::release): Likewise.
18662         (pool_allocator::allocate): Likewise.
18663         (pool_allocator::remove): Likewise.
18664         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18665         for a pool allocator.
18666         * mem-stats.h (struct mem_location): Add new ctor.
18667         (struct mem_usage): Add counter for number of
18668         instances.
18669         (mem_alloc_description::register_descriptor): New overload of
18670         * mem-stats.h (mem_location::to_string): New function.
18671         * bitmap.h (struct bitmap_usage): Use this new function.
18672         * ggc-common.c (struct ggc_usage): Likewise.
18673         the function.
18674
18675 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18676
18677         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18678         of GCC_INSN_FLAGS_H block.
18679
18680 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18681
18682         * explow.c (plus_constant): Update check after force_const_mem call
18683         to see if the value returned is not a NULL_RTX.
18684
18685 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18686
18687         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18688         remove instumentation thunks calling reachable functions.
18689         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18690         * lto/lto-partition.c (privatize_symbol_name_1): New.
18691         (privatize_symbol_name): Privatize both decl and orig_decl
18692         names for instrumented functions.
18693         * cgraph.c (cgraph_node::verify_node): Add transparent
18694         alias chain check for instrumented node.
18695
18696 2015-06-03  Marek Polacek  <polacek@redhat.com>
18697
18698         PR c/64223
18699         PR c/29358
18700         * tree.c (attribute_value_equal): Handle attribute format.
18701         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18702
18703 2015-06-03  Richard Biener  <rguenther@suse.de>
18704
18705         PR tree-optimization/63916
18706         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18707         Forward-propagate non-invariant addresses by splicing their
18708         reference ops if the result isn't going to be used by PRE.
18709         (vn_reference_lookup_3): Remove pointless assert.
18710
18711 2015-06-03  Richard Biener  <rguenther@suse.de>
18712
18713         PR tree-optimization/66375
18714         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18715         add to the evolution before following SSA edges.
18716
18717 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
18718
18719         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18720         (dump_use, dump_cand, find_induction_variables): Pass new argument
18721         to dump_iv.
18722         (record_use): Preserve the ssa name information in IV.
18723
18724 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18725
18726         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18727         NO_MODE_TEST.
18728         (add_mode_tests): Don't add mode tests if the predicate only
18729         accepts scalar constant integers.  Otherwise, allow the mode
18730         of "op" to be VOIDmode if the predicate does accept such integers.
18731
18732 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
18733
18734         PR target/66258
18735         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18736         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18737         (aarch64_secondary_reload): Likewise
18738         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18739         to !TARGET_FLOAT.
18740         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18741         Likewise.
18742
18743 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
18744             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18745
18746         PR target/65768
18747         * cprop.c (try_replace_reg): Check cost of constants before propagating.
18748
18749 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18750
18751         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18752         provide access to the IBM extended double floating point mode if
18753         long double is IEEE 128-bit floating point.
18754         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18755         point if long double is the IBM extended double type.
18756
18757         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18758         enable adding IEEE 128-bit floating point support.
18759         (-mfloat128-software): Likewise.
18760         (-mfloat128-sw): Likewise.
18761
18762         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18763         128-bit floating point types to occupy any register if
18764         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
18765         -mfloat128-software is enabled.
18766         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18767         support.
18768         (rs6000_option_override_internal): Add -mfloat128-* support.
18769         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18770
18771         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18772         and float128 type nodes.
18773         (ieee128_float_type_node): Likewise.
18774         (ibm128_float_type_node): Likewise.
18775
18776 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18777
18778         PR target/66136
18779         * config/aarch64/geniterators.sh: Rewrite in awk.
18780
18781 2015-06-02  Martin Liska  <mliska@suse.cz>
18782
18783         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18784         values to avoid -Wmaybe-uninitialized errors.
18785
18786 2015-06-02  Richard Biener  <rguenther@suse.de>
18787
18788         PR debug/65549
18789         * dwarf2out.c (lookup_context_die): New function.
18790         (resolve_addr): Avoid forcing a full DIE for the
18791         target of a DW_TAG_GNU_call_site during late compilation.
18792         Instead create a stub DIE without a type if we have a
18793         context DIE present.
18794
18795 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
18796
18797         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18798
18799 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18800
18801         PR tree-optimization/48052
18802         * cfgloop.h (struct control_iv): New.
18803         (struct loop): New field control_ivs.
18804         * tree-ssa-loop-niter.c : Include "stor-layout.h".
18805         (number_of_iterations_lt): Set no_overflow information.
18806         (number_of_iterations_exit): Init control iv in niter struct.
18807         (record_control_iv): New.
18808         (estimate_numbers_of_iterations_loop): Call record_control_iv.
18809         (loop_exits_before_overflow): New.  Interface factored out of
18810         scev_probably_wraps_p.
18811         (scev_probably_wraps_p): Factor loop niter related code into
18812         loop_exits_before_overflow.
18813         (free_numbers_of_iterations_estimates_loop): Free control ivs.
18814         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18815
18816 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
18817
18818         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
18819         the target doesn't belong to the current function.
18820
18821 2015-06-02  Marek Polacek  <polacek@redhat.com>
18822
18823         PR middle-end/66345
18824         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
18825         get_maxval_strlen does not produce an INTEGER_CST.
18826
18827 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
18828
18829         * config/arc/constraints.md: Use lower-case names in match_code.
18830         * config/mmix/constraints.md: Likewise.
18831
18832 2015-06-02  Richard Biener  <rguenther@suse.de>
18833
18834         PR tree-optimization/65961
18835         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
18836         check and clarify dump message.
18837         (vect_build_slp_tree): If all children are built up from scalars
18838         build up the parent from scalars instead.
18839         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
18840
18841 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
18842
18843         PR other/65366
18844         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
18845         instead of print ... .
18846
18847 2015-06-02  Alan Modra  <amodra@gmail.com>
18848
18849         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
18850         2014-08-11 change.
18851
18852 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18853
18854         PR tree-optimization/52563
18855         PR tree-optimization/62173
18856         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
18857         (alloc_iv, set_iv): New parameter.
18858         (determine_biv_step): Delete.
18859         (find_bivs): Inline original determine_biv_step.  Pass new
18860         argument to set_iv.
18861         (idx_find_step): Use no_overflow information for conversion.
18862         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
18863         resolve_mixers handle folded_casts.
18864         (instantiate_scev_name): Change bool parameter to bool pointer.
18865         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
18866         (instantiate_array_ref, instantiate_scev_not): Ditto.
18867         (instantiate_scev_3, instantiate_scev_2): Ditto.
18868         (instantiate_scev_1, instantiate_scev_r): Ditto.
18869         (instantiate_scev_convert, ): Change parameter.  Pass argument
18870         to chrec_convert_aggressive.
18871         (instantiate_scev): Change argument.
18872         (resolve_mixers): New parameter and set it.
18873         (scev_const_prop): New argument.
18874         * tree-scalar-evolution.h (resolve_mixers): New parameter.
18875         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
18876         of chrec_conert_1.
18877         (chrec_convert): New parameter.  Move definition below.
18878         (chrec_convert_aggressive): New parameter and set it.  Call
18879         convert_affine_scev.
18880         * tree-chrec.h (chrec_convert): New parameter.
18881         (chrec_convert_aggressive): Ditto.
18882
18883 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18884
18885         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
18886         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
18887         the LHS of a no-return call if its type has variable size.
18888         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18889         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
18890
18891 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
18892
18893         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
18894         * config.in: Regenerate.
18895
18896 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
18897
18898         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
18899         consecutive accesses within outer-loop with force_vectorize
18900         for references with zero step in inner-loop.
18901
18902 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18903
18904         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
18905         rather than from gcc/build directory.
18906
18907 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18908
18909         PR target/65697
18910         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
18911         for __sync memory models, emit initial loads and final barriers as
18912         appropriate.
18913
18914 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
18915
18916         PR target/65697
18917         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
18918         (aarch64_split_atomic_op): Check for __sync memory models, emit
18919         appropriate initial loads and final barriers.
18920
18921 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
18922
18923         * Makefile.in: Fix gcov dependencies that should
18924         not point to a build folder.
18925
18926 2015-06-01  Richard Biener  <rguenther@suse.de>
18927
18928         Revert
18929         2015-05-29  Richard Biener  <rguenther@suse.de>
18930
18931         PR tree-optimization/66314
18932         * tree-ssa-threadupdate.c (create_block_for_threading): Add
18933         parameter that says which loop the new block belongs to.
18934         (ssa_create_duplicates): Blocks duplicated for the threaded
18935         path belong to the loop of the thread destination.
18936
18937 2015-06-01  Martin Liska  <mliska@suse.cz>
18938
18939         * sched-deps.c: Include pool-alloc.h before
18940         cselib.h header file is included.
18941
18942 2015-06-01  Richard Biener  <rguenther@suse.de>
18943
18944         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
18945         functions.
18946
18947 2015-06-01  Martin Liska  <mliska@suse.cz>
18948
18949         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
18950         a function local variable.
18951
18952 2015-06-01  Martin Liska  <mliska@suse.cz>
18953
18954         * alloc-pool.c (create_alloc_pool): Remove.
18955         (empty_alloc_pool): Likewise.
18956         (free_alloc_pool): Likewise.
18957         (free_alloc_pool_if_empty): Likewise.
18958         (pool_alloc): Likewise.
18959         (pool_free): Likewise.
18960         * alloc-pool.h: Remove old declarations.
18961
18962 2015-06-01  Martin Liska  <mliska@suse.cz>
18963
18964         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
18965         (ira_create_object): Likewise.
18966         (ira_create_allocno): Likewise.
18967         (ira_create_live_range): Likewise.
18968         (copy_live_range): Likewise.
18969         (ira_finish_live_range): Likewise.
18970         (ira_free_allocno_costs): Likewise.
18971         (finish_allocno): Likewise.
18972         (finish_allocnos): Likewise.
18973         (initiate_prefs): Likewise.
18974         (ira_create_pref): Likewise.
18975         (finish_pref): Likewise.
18976         (finish_prefs): Likewise.
18977         (initiate_copies): Likewise.
18978         (ira_create_copy): Likewise.
18979         (finish_copy): Likewise.
18980         (finish_copies): Likewise.
18981         (finish_prefs): Likewise.
18982
18983 2015-06-01  Martin Liska  <mliska@suse.cz>
18984
18985         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
18986         (allocate_and_init_ipcp_value): Likewise.
18987         (ipcp_lattice::add_value): Likewise.
18988         (merge_agg_lats_step): Likewise.
18989         (ipcp_driver): Likewise.
18990         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
18991         (ipa_free_all_structures_after_iinln): Likewise.
18992         * ipa-prop.h: Likewise.
18993
18994 2015-06-01  Martin Liska  <mliska@suse.cz>
18995
18996         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
18997         pool allocator.
18998         (set_hint_predicate): Likewise.
18999         (inline_summary_alloc): Likewise.
19000         (reset_inline_edge_summary): Likewise.
19001         (reset_inline_summary): Likewise.
19002         (set_cond_stmt_execution_predicate): Likewise.
19003         (set_switch_stmt_execution_predicate): Likewise.
19004         (compute_bb_predicates): Likewise.
19005         (estimate_function_body_sizes): Likewise.
19006         (inline_free_summary): Likewise.
19007
19008 2015-06-01  Martin Liska  <mliska@suse.cz>
19009
19010         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19011         (ipa_edge_duplication_hook): Likewise.
19012         (ipa_free_all_structures_after_ipa_cp): Likewise.
19013         (ipa_free_all_structures_after_iinln): Likewise.
19014
19015 2015-06-01  Martin Liska  <mliska@suse.cz>
19016
19017         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19018         (ipa_profile_generate_summary): Likewise.
19019         (ipa_profile_read_summary): Likewise.
19020         (ipa_profile): Likewise.
19021
19022 2015-06-01  Martin Liska  <mliska@suse.cz>
19023
19024         * tree-ssa-structalias.c (new_var_info): Use new type-based
19025         pool allocator.
19026         (new_constraint): Likewise.
19027         (init_alias_vars): Likewise.
19028         (delete_points_to_sets): Likewise.
19029
19030 2015-06-01  Martin Liska  <mliska@suse.cz>
19031
19032         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19033         (free_strinfo): Likewise.
19034         (pass_strlen::execute): Likewise.
19035
19036 2015-06-01  Martin Liska  <mliska@suse.cz>
19037
19038         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19039         pool allocator.
19040         (vn_reference_insert_pieces): Likewise.
19041         (vn_phi_insert): Likewise.
19042         (visit_reference_op_call): Likewise.
19043         (copy_phi): Likewise.
19044         (copy_reference): Likewise.
19045         (process_scc): Likewise.
19046         (allocate_vn_table): Likewise.
19047         (free_vn_table): Likewise.
19048
19049 2015-06-01  Martin Liska  <mliska@suse.cz>
19050
19051         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19052         pool allocator.
19053         (add_repeat_to_ops_vec): Likewise.
19054         (get_ops): Likewise.
19055         (maybe_optimize_range_tests): Likewise.
19056         (init_reassoc): Likewise.
19057         (fini_reassoc): Likewise.
19058
19059 2015-06-01  Martin Liska  <mliska@suse.cz>
19060
19061         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19062         pool allocator.
19063         (bitmap_set_new): Likewise.
19064         (get_or_alloc_expr_for_constant): Likewise.
19065         (get_or_alloc_expr_for): Likewise.
19066         (phi_translate_1): Likewise.
19067         (compute_avail): Likewise.
19068         (init_pre): Likewise.
19069         (fini_pre): Likewise.
19070
19071 2015-06-01  Martin Liska  <mliska@suse.cz>
19072
19073         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19074         (delete_dep_node): Likewise.
19075         (create_deps_list): Likewise.
19076         (free_deps_list): Likewise.
19077         (sched_deps_init): Likewise.
19078         (sched_deps_finish): Likewise.
19079
19080 2015-06-01  Martin Liska  <mliska@suse.cz>
19081
19082         * regcprop.c (free_debug_insn_changes): Use new type-based
19083         pool allocator.
19084         (replace_oldest_value_reg): Likewise.
19085         (pass_cprop_hardreg::execute): Likewise.
19086
19087 2015-06-01  Martin Liska  <mliska@suse.cz>
19088
19089         * ira-build.c (initiate_cost_vectors): Use new type-based
19090         pool allocator.
19091         (ira_allocate_cost_vector): Likewise.
19092         (ira_free_cost_vector): Likewise.
19093         (finish_cost_vectors): Likewise.
19094
19095 2015-06-01  Martin Liska  <mliska@suse.cz>
19096
19097         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19098         pool allocator.
19099         (free_sched_pools): Likewise.
19100         * sel-sched-ir.h (_list_alloc): Likewise.
19101         (_list_remove): Likewise.
19102
19103 2015-06-01  Martin Liska  <mliska@suse.cz>
19104
19105         * stmt.c (add_case_node): Use new type-based pool allocator.
19106         (expand_case): Likewise.
19107         (expand_sjlj_dispatch_table): Likewise.
19108
19109 2015-06-01  Martin Liska  <mliska@suse.cz>
19110
19111         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19112         (free_bb): Likewise.
19113         (pass_cse_reciprocals::execute): Likewise.
19114
19115 2015-06-01  Martin Liska  <mliska@suse.cz>
19116
19117         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19118         (sra_deinitialize) Likewise.
19119         (create_access_1) Likewise.
19120         (build_accesses_from_assign) Likewise.
19121         (create_artificial_child_access) Likewise.
19122
19123 2015-06-01  Martin Liska  <mliska@suse.cz>
19124
19125         * dse.c (get_group_info):Use new type-based pool allocator.
19126         (dse_step0) Likewise.
19127         (free_store_info) Likewise.
19128         (delete_dead_store_insn) Likewise.
19129         (free_read_records) Likewise.
19130         (record_store) Likewise.
19131         (replace_read) Likewise.
19132         (check_mem_read_rtx) Likewise.
19133         (scan_insn) Likewise.
19134         (dse_step1) Likewise.
19135         (dse_step7) Likewise.
19136
19137 2015-06-01  Martin Liska  <mliska@suse.cz>
19138
19139         * df-scan.c (struct df_scan_problem_data):Use new type-based
19140         pool allocator.
19141         (df_scan_free_internal) Likewise.
19142         (df_scan_alloc) Likewise.
19143         (df_grow_reg_info) Likewise.
19144         (df_free_ref) Likewise.
19145         (df_insn_create_insn_record) Likewise.
19146         (df_mw_hardreg_chain_delete) Likewise.
19147         (df_insn_info_delete) Likewise.
19148         (df_free_collection_rec) Likewise.
19149         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19150         (df_sort_and_compress_mws) Likewise.
19151         (df_ref_create_structure) Likewise.
19152         (df_ref_record) Likewise.
19153
19154 2015-06-01  Martin Liska  <mliska@suse.cz>
19155
19156         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19157         (df_chain_unlink_1) Likewise.
19158         (df_chain_unlink) Likewise.
19159         (df_chain_remove_problem) Likewise.
19160         (df_chain_alloc) Likewise.
19161         (df_chain_free) Likewise.
19162         * df.h (struct dataflow) Likewise.
19163
19164 2015-06-01  Martin Liska  <mliska@suse.cz>
19165
19166         * cselib.c (new_elt_list):Use new type-based pool allocator.
19167         (new_elt_loc_list) Likewise.
19168         (unchain_one_elt_list) Likewise.
19169         (unchain_one_elt_loc_list) Likewise.
19170         (unchain_one_value) Likewise.
19171         (new_cselib_val) Likewise.
19172         (cselib_init) Likewise.
19173         (cselib_finish) Likewise.
19174
19175 2015-06-01  Martin Liska  <mliska@suse.cz>
19176
19177         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19178         (sh_reorg) Likewise.
19179
19180 2015-06-01  Martin Liska  <mliska@suse.cz>
19181
19182         * cfg.c (initialize_original_copy_tables):Use new type-based
19183         pool allocator.
19184         (free_original_copy_tables) Likewise.
19185         (copy_original_table_clear) Likewise.
19186         (copy_original_table_set) Likewise.
19187
19188 2015-06-01  Martin Liska  <mliska@suse.cz>
19189
19190         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19191         pool allocator.
19192         (asan_mem_ref_new) Likewise.
19193         (free_mem_ref_resources) Likewise.
19194
19195 2015-06-01  Martin Liska  <mliska@suse.cz>
19196
19197         * var-tracking.c (variable_htab_free):Use new type-based
19198         pool allocator.
19199         (attrs_list_clear) Likewise.
19200         (attrs_list_insert) Likewise.
19201         (attrs_list_copy) Likewise.
19202         (shared_hash_unshare) Likewise.
19203         (shared_hash_destroy) Likewise.
19204         (unshare_variable) Likewise.
19205         (var_reg_delete_and_set) Likewise.
19206         (var_reg_delete) Likewise.
19207         (var_regno_delete) Likewise.
19208         (drop_overlapping_mem_locs) Likewise.
19209         (variable_union) Likewise.
19210         (insert_into_intersection) Likewise.
19211         (canonicalize_values_star) Likewise.
19212         (variable_merge_over_cur) Likewise.
19213         (dataflow_set_merge) Likewise.
19214         (remove_duplicate_values) Likewise.
19215         (variable_post_merge_new_vals) Likewise.
19216         (dataflow_set_preserve_mem_locs) Likewise.
19217         (dataflow_set_remove_mem_locs) Likewise.
19218         (variable_from_dropped) Likewise.
19219         (variable_was_changed) Likewise.
19220         (set_slot_part) Likewise.
19221         (clobber_slot_part) Likewise.
19222         (delete_slot_part) Likewise.
19223         (loc_exp_insert_dep) Likewise.
19224         (notify_dependents_of_changed_value) Likewise.
19225         (emit_notes_for_differences_1) Likewise.
19226         (vt_emit_notes) Likewise.
19227         (vt_initialize) Likewise.
19228         (vt_finalize) Likewise.
19229
19230 2015-06-01  Martin Liska  <mliska@suse.cz>
19231
19232         * ira-color.c (init_update_cost_records):Use new type-based
19233         pool allocator.
19234         (get_update_cost_record) Likewise.
19235         (free_update_cost_record_list) Likewise.
19236         (finish_update_cost_records) Likewise.
19237         (initiate_cost_update) Likewise.
19238
19239 2015-06-01  Martin Liska  <mliska@suse.cz>
19240
19241         * lra.c (init_insn_regs): Use new type-based pool allocator.
19242         (new_insn_reg) Likewise.
19243         (free_insn_reg) Likewise.
19244         (free_insn_regs) Likewise.
19245         (finish_insn_regs) Likewise.
19246         (init_insn_recog_data) Likewise.
19247         (init_reg_info) Likewise.
19248         (finish_reg_info) Likewise.
19249         (lra_free_copies) Likewise.
19250         (lra_create_copy) Likewise.
19251         (invalidate_insn_data_regno_info) Likewise.
19252
19253 2015-06-01  Martin Liska  <mliska@suse.cz>
19254
19255         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19256         (free_live_range_list) Likewise.
19257         (create_live_range) Likewise.
19258         (copy_live_range) Likewise.
19259         (lra_merge_live_ranges) Likewise.
19260         (remove_some_program_points_and_update_live_ranges) Likewise.
19261         (lra_live_ranges_init) Likewise.
19262         (lra_live_ranges_finish) Likewise.
19263
19264 2015-06-01  Martin Liska  <mliska@suse.cz>
19265
19266         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19267         (et_new_tree): Likewise.
19268         (et_free_tree): Likewise.
19269         (et_free_tree_force): Likewise.
19270         (et_free_pools): Likewise.
19271         (et_split): Likewise.
19272
19273 2015-06-01  Martin Liska  <mliska@suse.cz>
19274
19275         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19276         to header file.
19277         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19278         (pool_allocator::release): Likewise.
19279         (inline pool_allocator::release_if_empty): Likewise.
19280         (inline pool_allocator::~pool_allocator): Likewise.
19281         (pool_allocator::allocate): Likewise.
19282         (pool_allocator::remove): Likewise.
19283
19284 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19285
19286         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19287         in comment.
19288
19289 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19290
19291         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19292         to fusible_ops.
19293         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19294         (arm_macro_fusion_p): Likewise.
19295         (arm_macro_fusion_pair_p): Likewise.
19296
19297 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19298
19299         * config/aarch64/aarch64-protos.h (tune_params): Rename
19300         fuseable_ops to fusible_ops.
19301         * config/aarch64/aarch64.c (generic_tunings): Rename
19302         fuseable_ops to fusible_ops.
19303         (cortexa53_tunings): Likewise.
19304         (cortexa57_tunings): Likewise.
19305         (thunderx_tunings): Likewise.
19306         (xgene1_tunings): Likewise.
19307         (aarch64_macro_fusion_p): Likewise.
19308         (aarch64_macro_fusion_pair_p): Likewise.
19309
19310 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19311
19312         * config/s390/driver-native.c: New file.
19313         * config/s390/x-native: New file.
19314         * config.host: Add new files for s390.
19315         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19316         and -march=native
19317         * config.gcc: Likewise.
19318         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19319         * config/s390/s390-opts.h (enum processor_type): Ditto.
19320         * config/s390/s390.c (s390_option_override): Catch unhandled
19321         PROCESSOR_NATIVE
19322
19323 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19324
19325         PR target/65527
19326         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19327         redirection for instrumented calls.
19328         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19329         (append_compiler_options): Append -fcheck-pointer-bounds.
19330         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19331         (chkp_redirect_edge): New.
19332         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19333         (chkp_redirect_edge): New.
19334
19335 2015-06-01  Richard Biener  <rguenther@suse.de>
19336
19337         PR tree-optimization/66280
19338         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19339         def-use walking.
19340
19341 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19342
19343         * config/aarch64/aarch64.md
19344         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19345         logic_shift_imm.
19346
19347 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19348
19349         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19350         Remove obsolete kludge.
19351
19352 2015-06-01  Richard Biener  <rguenther@suse.de>
19353
19354         * tree-ssa-reassoc.c (get_rank): Simplify.
19355
19356 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19357
19358         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19359         * configure: Regenerated.
19360
19361 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19362
19363         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19364         issue (add space between string literal and macro).
19365         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19366
19367 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19368
19369         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19370         implict or explicit -fPIE or -fpie.
19371
19372 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19373
19374         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19375
19376 2015-05-28  DJ Delorie  <dj@redhat.com>
19377
19378         * expmed.c (extract_bit_field_1): Avoid clobbering a
19379         yet-to-be-used base/index register.
19380
19381 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19382
19383         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19384         (alias_stats): Add num_universal.
19385         (alias_set_subset_of): Special case pointers; be ready for NULL
19386         children.
19387         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19388         children.
19389         (init_alias_set_entry): Break out from ...
19390         (record_alias_subset): ... here; propagate new fields;
19391         allocate children only when really needed.
19392         (get_alias_set): Do less generous pointer globbing.
19393         (dump_alias_stats_in_alias_c): Update statistics.
19394
19395 2015-05-30  Alan Modra  <amodra@gmail.com>
19396
19397         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19398         correct block for use of r12.
19399         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19400
19401 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19402
19403         PR target/66215
19404         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19405         with -mhotpatch=.
19406
19407 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19408
19409         PR tree-optimization/66142
19410         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19411         virtual phis that feed themselves.
19412
19413 2015-05-29  Richard Biener  <rguenther@suse.de>
19414
19415         PR tree-optimization/66314
19416         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19417         parameter that says which loop the new block belongs to.
19418         (ssa_create_duplicates): Blocks duplicated for the threaded
19419         path belong to the loop of the thread destination.
19420
19421 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19422
19423         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19424         to cleanup-saved-temps.
19425         * doc/sourcebuild.texi (Clean up generated test files): Expand
19426         introduction.
19427         (dg-keep-saved-temps): Document new proc.
19428         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19429         cleanup-saved-temps): Remove.
19430
19431 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19432
19433         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19434         gcc_AC_CHECK_DECLS.
19435         * configure: Regenerate.
19436
19437 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19438
19439         * config/nios2/linux.h (CPP_SPEC): Define.
19440
19441 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19442
19443         * config/microblaze/linux.h (CPP_SPEC): Define.
19444
19445 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19446
19447         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19448         -pthread is specified.
19449
19450 2015-05-28  Richard Biener  <rguenther@suse.de>
19451
19452         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19453         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19454         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19455         after pattern recog.
19456         (vect_create_epilog_for_reduction): Properly handle reductions
19457         with patterns.
19458         (vectorizable_reduction): Likewise.
19459         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19460         reduction chains.
19461         (vect_get_constant_vectors): Create the correct number of
19462         initial values for reductions.
19463         (vect_schedule_slp_instance): Handle reduction chains that are
19464         type changing properly.
19465         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19466
19467 2015-05-28  Richard Biener  <rguenther@suse.de>
19468
19469         PR tree-optimization/66142
19470         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19471         values better in memcpy destination handling.  Handle non-aliasing
19472         we discover here.
19473
19474 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
19475
19476         PR target/63810
19477         * config/darwin-c.c (version_components): New global enum.
19478         (parse_version, version_as_legacy_macro)
19479         (version_as_modern_macro, macosx_version_as_macro): New functions.
19480         (version_as_macro): Remove.
19481         (darwin_cpp_builtins): Use new function.
19482
19483 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
19484
19485         * builtins.c (expand_builtin_acc_on_device): Mark parameters
19486         with ATTRIBUTE_UNUSED.
19487
19488 2015-05-28  Julian Brown  <julian@codesourcery.com>
19489
19490         PR libgomp/65742
19491
19492         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19493         sequence for !ACCEL_COMPILER.
19494
19495 2015-05-28  Nick Clifton  <nickc@redhat.com>
19496
19497         * config/rx/rx.c (push_regs): New function.  Extracts code from...
19498         (rx_expand_prologue): ... here.  Use push_regs to push even small
19499         spans of registers.
19500         (pop_regs): New function.
19501         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
19502         registers.
19503
19504 2015-05-28  Richard Biener  <rguenther@suse.de>
19505
19506         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19507         member.
19508         (SLP_INSTANCE_BODY_COST_VEC): Remove.
19509         (vect_update_slp_costs_according_to_vf): Likewise.
19510         (vect_slp_analyze_operations): Update prototype.
19511         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19512         vect_update_slp_costs_according_to_vf, adjust.
19513         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19514         (vect_analyze_slp_cost_1): Likewise.
19515         (vect_analyze_slp_cost): Likewise.  Properly deal with
19516         widening reduction ops.  Commit body costs.
19517         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
19518         cost for loops from here.
19519         (vect_slp_analyze_operations): But do it from here when
19520         the vectorization factor is known and stmts are analyzed.
19521         (vect_bb_vectorization_profitable_p): Simplify.
19522         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19523         (vect_update_slp_costs_according_to_vf): Remove.
19524
19525 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
19526             H.J. Lu  <hongjiu.lu@intel.com>
19527
19528         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19529         (BUILD_CFLAGS): Likewise.
19530         (BUILD_CXXFLAGS): Likewise.
19531         (LINKER): Add @NO_PIE_FLAG@.
19532         (BUILD_LDFLAGS): Likewise.
19533         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19534         --enable-default-pie.
19535         * common.opt (fPIE): Initialize to -1.
19536         (fpie): Likewise.
19537         (no-pie): New option.
19538         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19539         * configure.ac: Add --enable-default-pie.
19540         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
19541         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
19542         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
19543         * gcc.c (NO_PIE_SPEC): New.
19544         (PIE_SPEC): Likewise.
19545         (NO_FPIE1_SPEC): Likewise.
19546         (FPIE1_SPEC): Likewise.
19547         (NO_FPIE2_SPEC): Likewise.
19548         (FPIE2_SPEC): Likewise.
19549         (NO_FPIE2_SPEC): Likewise.
19550         (FPIE_SPEC): Likewise.
19551         (NO_FPIE_SPEC): Likewise.
19552         (NO_FPIC1_SPEC): Likewise.
19553         (FPIC1_SPEC): Likewise.
19554         (NO_FPIC2_SPEC): Likewise.
19555         (FPIC2_SPEC): Likewise.
19556         (NO_FPIC2_SPEC): Likewise.
19557         (FPIC_SPEC): Likewise.
19558         (NO_FPIC_SPEC): Likewise.
19559         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19560         (FPIE1_OR_FPIC1_SPEC): Likewise.
19561         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19562         (FPIE2_OR_FPIC2_SPEC): Likewise.
19563         (NO_FPIE_AND_FPIC_SPEC): Likewise.
19564         (FPIE_OR_FPIC_SPEC): Likewise.
19565         (LD_PIE_SPEC): Likewise.
19566         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
19567         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19568         * config/darwin.h (PIE_SPEC): Renamed to ...
19569         (DARWIN_PIE_SPEC): This.
19570         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19571         * config/darwin9.h (PIE_SPEC): Renamed to ...
19572         (DARWIN_PIE_SPEC): This.
19573         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19574         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19575         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19576         FPIE2_OR_FPIC2_SPEC.
19577         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19578         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19579         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19580         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19581         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19582         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19583         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19584         * config/m32r/m32r.h (ASM_SPEC): Likewise.
19585         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19586         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19587         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19588         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19589         * config/sparc/linux.h (ASM_SPEC): Likewise.
19590         * config/sparc/linux64.h (ASM_SPEC): Likewise.
19591         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19592         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19593         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19594         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19595         * config/sparc/sparc.h (ASM_SPEC): Likewise.
19596         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19597         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19598         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19599         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19600         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19601         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19602         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19603         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19604         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19605         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19606         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19607         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19608         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19609         * config/vax/linux.h (ASM_SPEC): Likewise.
19610         * doc/install.texi: Document --enable-default-pie.
19611         * doc/invoke.texi: Document -no-pie.
19612         * config.in: Regenerated.
19613         * configure: Likewise.
19614
19615 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19616
19617         PR rtl-optimization/66168
19618         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19619         can_move_invariant_reg.
19620
19621 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
19622
19623         PR target/66148
19624         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19625         REG_EQUAL note when doing insert.
19626
19627         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19628         instead of "%d" for 'o' operand.
19629
19630 2015-05-27  Nathan Sidwell  <nathan@acm.org>
19631
19632         PR c++/66270
19633         * tree.c (build_pointer_type_for_mode): Canonical type does not
19634         inherit can_alias_all.
19635         (build_reference_type_for_mode): Likewise.
19636
19637 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19638
19639         * expr.h (array_at_struct_end_p): Move to...
19640         (array_ref_element_size): Likewise.
19641         (component_ref_field_offset): Likewise.
19642         * tree.h (array_ref_element_size): ...here.
19643         (array_at_struct_end_p): Likewise.
19644         (component_ref_field_offset): Likewise.
19645         * expr.c (array_ref_element_size): Move to...
19646         (array_ref_low_bound): Likewise.
19647         (array_at_struct_end_p): Likewise.
19648         (array_ref_up_bound): Likewise.
19649         (component_ref_field_offset): Likewise.
19650         * tree.c (array_ref_element_size): ...here.
19651         (array_ref_low_bound): Likewise.
19652         (array_ref_up_bound): Likewise.
19653         (array_at_struct_end_p): Likewise.
19654         (component_ref_field_offset): Likewise.
19655
19656 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19657             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19658
19659         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19660
19661 2015-05-27  Jason Merrill  <jason@redhat.com>
19662
19663         PR bootstrap/66304
19664         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19665         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19666         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19667
19668 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
19669
19670         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19671         is true.
19672
19673         * statistics.c (statistics_fini_pass): Print pass name.
19674
19675 2015-05-27  Richard Biener  <rguenther@suse.de>
19676
19677         PR tree-optimization/66272
19678         Revert parts of
19679         2014-08-15  Richard Biener  <rguenther@suse.de>
19680
19681         PR tree-optimization/62031
19682         * tree-data-ref.c (dr_analyze_indices): Do not set
19683         DR_UNCONSTRAINED_BASE.
19684         (dr_may_alias_p): All indirect accesses have to go the
19685         formerly DR_UNCONSTRAINED_BASE path.
19686         * tree-data-ref.h (struct indices): Remove
19687         unconstrained_base member.
19688         (DR_UNCONSTRAINED_BASE): Remove.
19689
19690 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
19691
19692         * dwarf2out.c: Remove block_map.
19693         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19694         (gen_lexical_block_die): Same.
19695         (dwarf2out_function_decl): Remove block_map use.
19696         (dwarf2out_c_finalize): Same.
19697         * tree-core.h (struct tree_block): Add die field.
19698         * tree.h (BLOCK_DIE): New.
19699
19700 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19701
19702         PR target/65358
19703         * expr.c (memory_load_overlap): New function.
19704         (emit_push_insn): When pushing partial args to the stack would
19705         clobber the register part load the overlapping part into a pseudo
19706         and put it into the hard reg after pushing.  Change return type
19707         to bool.  Add bool argument.
19708         * expr.h (emit_push_insn): Change return type to bool.
19709         Add bool argument.
19710         * calls.c (expand_call): Cancel sibcall optimization when encountering
19711         partial argument on targets with ARGS_GROW_DOWNWARD and
19712         !STACK_GROWS_DOWNWARD.
19713         (emit_library_call_value_1): Update callsite of emit_push_insn.
19714         (store_one_arg): Likewise.
19715
19716 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19717
19718         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19719
19720 2015-05-27  Martin Liska  <mliska@suse.cz>
19721
19722         * Makefile.in: Add additional dependencies related to memory report
19723         enhancement.
19724         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19725         * bitmap.c (struct bitmap_descriptor_d): Remove.
19726         (struct loc): Likewise.
19727         (struct bitmap_desc_hasher): Likewise.
19728         (bitmap_desc_hasher::hash): Likewise.
19729         (bitmap_desc_hasher::equal): Likewise.
19730         (get_bitmap_descriptor): Likewise.
19731         (bitmap_register): User new memory descriptor API.
19732         (register_overhead): Likewise.
19733         (bitmap_find_bit): Register nsearches and search_iter statistics.
19734         (struct bitmap_output_info): Remove.
19735         (print_statistics): Likewise.
19736         (dump_bitmap_statistics): Use new memory descriptor.
19737         * bitmap.h (struct bitmap_usage): New class.
19738         * genmatch.c: Extend header file inclusion.
19739         * genpreds.c: Likewise.
19740         * ggc-common.c (struct ggc_usage): New class.
19741         (struct ggc_loc_desc_hasher): Remove.
19742         (ggc_loc_desc_hasher::hash): Likewise.
19743         (ggc_loc_desc_hasher::equal): Likewise.
19744         (struct ggc_ptr_hash_entry): Likewise.
19745         (struct ptr_hash_hasher): Likewise.
19746         (ptr_hash_hasher::hash): Likewise.
19747         (ptr_hash_hasher::equal): Likewise.
19748         (make_loc_descriptor): Likewise.
19749         (ggc_prune_ptr): Likewise.
19750         (dump_ggc_loc_statistics): Use new memory descriptor.
19751         (ggc_record_overhead): Likewise.
19752         (ggc_free_overhead): Likewise.
19753         (final_cmp_statistic): Remove.
19754         (cmp_statistic): Likewise.
19755         (ggc_add_statistics): Liekwise.
19756         (ggc_prune_overhead_list): Likewise.
19757         * hash-map-traits.h: New file.
19758         * hash-map.h (struct default_hashmap_traits): Move the traits to a
19759         separate header file.
19760         * hash-set.h: Pass memory statistics info to ctor.
19761         * hash-table.c (void dump_hash_table_loc_statistics): New function.
19762         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19763         (hash_table::~hash_table): Register memory release operation.
19764         (hash_table::alloc_entries): Handle memory allocation operation.
19765         (hash_table::expand): Likewise.
19766         * inchash.c (iterative_hash_hashval_t): Move implementation to header
19767         file.
19768         (iterative_hash_host_wide_int): Likewise.
19769         * inchash.h (class hash): Likewise.
19770         * mem-stats-traits.h: New file.
19771         * mem-stats.h: New file.
19772         (mem_location): Add new class.
19773         (mem_usage): Likewise.
19774         (mem_alloc_description): Likewise.
19775         * sese.c: Add new header file inclusision.
19776         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19777         and hash_set.
19778         * tree-sra.c: Add new header file inclusision.
19779         * vec.c (struct vec_descriptor): Remove.
19780         (hash_descriptor): Likewise.
19781         (struct vec_usage): Likewise.
19782         (struct ptr_hash_entry): Likewise.
19783         (hash_ptr): Likewise.
19784         (eq_ptr): Likewise.
19785         (vec_prefix::register_overhead): Use new memory descriptor API.
19786         (vec_prefix::release_overhead): Likewise.
19787         (add_statistics): Remove.
19788         (dump_vec_loc_statistics): Use new memory descriptor API.
19789         * vec.h (struct vec_prefix): Likewise.
19790         (va_heap::reserve): Likewise.
19791         (va_heap::release): Likewise.
19792         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19793
19794 2015-05-27  Richard Biener  <rguenther@suse.de>
19795
19796         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19797         earlier and remove ??? comment.
19798         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19799         and got called from loop analysis bail out.  Always pass the SLP
19800         node to the vectorizable_* functions.
19801         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19802         the premature SLP check here.
19803         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19804         detected SLP stmts.
19805         (vect_detect_hybrid_slp_1): Likewise.
19806
19807 2015-05-26  Jeff Law  <law@redhat.com>
19808
19809         * combine.c (find_split_point): Verify that the shift count is a
19810         constant when choosing (plus (ashift ...)) as a split point.
19811
19812         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19813         No functional changes.
19814
19815 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
19816
19817         * ipa-polymorphic-call.c
19818         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
19819         case when call target is already known.
19820
19821 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
19822
19823         PR target/65979
19824         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
19825         take into account the case that operands[1] and operands[2]
19826         are the same register.
19827
19828 2015-05-26  Michael Matz  <matz@suse.de>
19829
19830         PR middle-end/66251
19831
19832         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
19833         stores.
19834         (vect_create_vectorized_demotion_stmts): Always set
19835         STMT_VINFO_VEC_STMT, also with SLP.
19836         (vectorizable_store): Handle strided group stores.
19837
19838 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19839
19840         PR target/66049
19841         * config/aarch64/aarch64.md
19842         (*adds_shift_imm_<mode>):  New pattern.
19843         (*subs_shift_imm_<mode>):  Likewise.
19844         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
19845         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
19846         (*add_uxt<mode>_shift2): Likewise.
19847         (*add_uxtsi_shift2_uxtw): Likewise.
19848         (*sub_uxt<mode>_shift2): Likewise.
19849         (*sub_uxtsi_shift2_uxtw): Likewise.
19850
19851 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
19852
19853         * config/rs6000/constraints.md (Y, U): Use match_test.
19854
19855 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19856
19857         PR target/52144
19858         * config/arm/arm.c (arm_option_check_internal)
19859         (arm_option_params_internal): Check opts->target_flags to set macros.
19860         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19861         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
19862         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19863         (builtin_define): Replaced with def_or_undef_macro.
19864         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
19865         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
19866         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
19867         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
19868         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
19869         (TARGET_ARM_FEATURE_LDREX_P)
19870         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
19871         * config/arm/arm-c.c (def_or_undef_macro): New function.
19872         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
19873
19874 2015-05-26  Christian Bruel  <christian.bruel@st.com>
19875
19876         * c-common.h (builtin_define_with_int_value)
19877         (builtin_define_type_sizeof): Declare.
19878         * c-cppbuiltin.c (builtin_define_with_int_value)
19879         (builtin_define_type_sizeof): Externalize.
19880         (builtin_define_std): Cleanup declaration.
19881         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
19882         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
19883         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
19884         (builtin_define, builtin_assert): New macros.
19885
19886 2015-05-26  Richard Biener  <rguenther@suse.de>
19887
19888         PR tree-optimization/66142
19889         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
19890         MEM_REFs for the same base address.
19891
19892 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19893
19894         PR ipa/66181
19895         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
19896
19897 2015-05-26  Jason Merrill  <jason@redhat.com>
19898
19899         * configure.ac: Set CXXFLAGS for ISL test.
19900         * configure: Regenerate.
19901
19902         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
19903         strstr and basename.
19904         * configure: Regenerate.
19905
19906 2015-05-26  Richard Biener  <rguenther@suse.de>
19907
19908         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
19909         X % C -> X & (C - 1) for C being a power-of two to ...
19910         * match.pd: ... patterns.
19911
19912 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
19913
19914         * match.pd (swapped_tcc_comparison): New operator list.
19915         (-A CMP -B): New simplification.
19916         * fold-const.c (fold_comparison): Remove corresponding code.
19917
19918 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19919
19920         * caller-save.c (init_caller_save): Base temporary register numbers
19921         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
19922         * cfgloopanal.c (init_set_costs): Likewise.
19923         * dojump.c (prefer_and_bit_test): Likewise.
19924         * expr.c (init_expr_target): Likewise.
19925         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19926         * lower-subreg.c (init_lower_subreg): Likewise.
19927         * postreload.c (reload_cse_regs_1): Likewise.
19928
19929 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19930
19931         * gensupport.h (compute_test_codes): Declare.
19932         * gensupport.c (compute_predicate_codes): Rename to...
19933         (compute_test_codes): ...this.  Generalize error message.
19934         (process_define_predicate): Update accordingly.
19935         * genpreds.c (compute_maybe_allows): Delete.
19936         (add_constraint): Use compute_test_codes to determine whether
19937         something can accept a SUBREG, REG or MEM.
19938
19939 2015-05-26  Torvald Riegel  <triegel@redhat.com>
19940
19941         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
19942         'memory model' to align with C++11; fix description of memory orders;
19943         fix a few typos.
19944
19945 2015-05-26  Richard Biener  <rguenther@suse.de>
19946
19947         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
19948         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
19949         detect whether we apply SLP.  Remove call to
19950         vect_update_slp_costs_according_to_vf.
19951         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
19952         vect_update_slp_costs_according_to_vf from here.  Dispatch
19953         to vect_slp_analyze_operations to analyze SLP stmts.
19954         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
19955         unused bb_vec_info parameter, adjust assert.
19956         (vect_slp_analyze_operations): Pass in the slp instance tree
19957         instead of bb_vec_info.
19958         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
19959         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
19960
19961 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19962
19963         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
19964         Q_REGS.  Expand comment.
19965         (REG_CLASS_NAMES): Ditto.
19966         (REG_CLASS_CONTENTS): Ditto.
19967
19968 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
19969
19970         PR target/66274
19971         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
19972         when LEGACY_INT_REGNO_P is processed.
19973
19974 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
19975
19976         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
19977
19978 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19979
19980         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
19981         register if not marked dead/unused, before return.
19982
19983 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19984
19985         PR lto/66180
19986         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
19987         is set; check for assembler name at LTO time.
19988         (type_in_anonymous_namespace): Remove hacks, check that all
19989         anonymous types are called "<anon>"
19990         (odr_type_p): Simplify; add check for "<anon>"
19991         (odr_subtypes_equivalent): Add odr_type_p check.
19992         * tree.c (need_assembler_name_p): Even anonymous namespace needs
19993         assembler name.
19994
19995 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
19996
19997         * ipa-utils.h (method_class_type): Remove.
19998         * cgraphunit.c (walk_polymorphic_call_targets): Use
19999         TYPE_METHOD_BASETYPE.
20000         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20001         on main variants only.
20002         (method_class_type): Remove.
20003         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20004         (build_type_inheritance_graph): Likewise.
20005         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20006         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20007         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20008
20009 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20010
20011         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20012         is_typedef_decl, typedef_variant_p): Constify.
20013         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20014         is_typedef_decl, typedef_variant_p): Constify.
20015
20016 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20017
20018         * defaults.h (gen_tablejump): New function.
20019         (HAVE_tablejump): Add default value.
20020         * expr.c: Adjust.
20021         * stmt.c: Likewise.
20022
20023 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20024
20025         * defaults.h (gen_store_multiple): New function.
20026         (HAVE_store_multiple): Add default value.
20027         * expr.c (move_block_from_reg): Adjust.
20028
20029 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20030
20031         * defaults.h (gen_load_multiple): New function.
20032         (HAVE_load_multiple): Add default value.
20033         * expr.c (move_block_to_reg): Adjust.
20034
20035 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20036
20037         * defaults.h (gen_mem_signal_fence): New function.
20038         (HAVE_mem_signal_fence): Add default value.
20039         * optabs.c: Adjust.
20040
20041 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20042
20043         * defaults.h (gen_memory_barrier): New function.
20044         (HAVE_memory_barrier): Add default value.
20045         * optabs.c: Adjust.
20046
20047 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20048
20049         * defaults.h (gen_mem_thread_fence): New function.
20050         (HAVE_mem_thread_fence): Add default definition.
20051         * optabs.c: Adjust.
20052
20053 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20054
20055         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20056         instead of if it is defined.
20057         (combine_simplify_rtx): Likewise.
20058         * lra-constraints.c (process_address_1): Likewise.
20059         * config/darwin.c: Adjust.
20060         * genconfig.c (main): Always define HAVE_lo_sum.
20061
20062 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20063
20064         * genmatch.c (parser::parse_operation): Reject expanding
20065         operator-list inside 'for'.
20066
20067 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20068
20069         * genmatch.c (parser::parse_for): Reject iterator if used as
20070         operator-list.
20071
20072 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20073
20074         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20075         after end of id-list.
20076
20077 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20078
20079         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20080         we do not try to compute canonical type for type that does not need
20081         alias set.
20082         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20083         FUNCITON_TYPE.
20084         * tree.h (type_with_alias_set_p): New.
20085
20086 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20087
20088         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20089         function attributes.
20090         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20091
20092 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20093
20094         * Makefile.in (check_gcc_parallelize): Delete.
20095         (lang_checks_parallelized): Update comment.
20096
20097 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20098
20099         PR rtl-optimization/66237
20100         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20101         location of an "as_a" cast.
20102
20103 2015-05-22  Jeff Law  <law@redhat.com>
20104
20105         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20106         (peepholes with non-canonical RTL sources): Remove.
20107         (peepholes for indexed stores of FP regs in integer modes): Match and
20108         generate canonical RTL.
20109
20110 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20111
20112         PR tree-optimization/63387
20113         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20114         ((x ord x) & (y ord y) -> (x ord y),
20115         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20116         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20117         vectors like scalars.
20118
20119 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20120
20121         * convert.c (convert_to_integer, convert_to_vector): Include the
20122         types in the error message.
20123
20124 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20125
20126         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20127         simplifications.
20128
20129 2015-05-22  Jeff Law  <law@redhat.com>
20130
20131         * config/pa/pa.md (integer_indexed_store splitters): Use
20132         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20133         insns -- adjusting the constant 2nd operand accordingly.
20134
20135         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20136         (plus (ashift X log2) Y) if it is a split point.
20137
20138         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20139         out of hppa_legitimize_address to handle both forms of a multiply
20140         by 2, 4 or 8.
20141         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20142         Always generate the ASHIFT variant as the result is not directly
20143         used in a MEM.  Update comments and refactor slightly to improve
20144         readability.
20145
20146 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20147
20148         PR target/65491
20149         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20150         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20151         (aarch64_composite_type_p): Return false if given type and mode are
20152         for a short vector.
20153
20154 2015-05-22  Richard Biener  <rguenther@suse.de>
20155
20156         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20157         member.
20158         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20159         patterns when determining whether SLP is pure.
20160         (vect_is_slp_reduction): Remove check for pattern stmts.
20161         (vect_is_simple_reduction_1): Remove dead code.
20162         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20163         (vect_get_and_check_slp_defs): Pass in the stmt number.
20164         Allow the first def in a reduction to be not a pattern stmt when
20165         the rest of the stmts def are patterns.
20166         (vect_build_slp_tree_1): Allow tcc_expression codes like
20167         SAD_EXPR and DOT_PROD_EXPR.
20168         (vect_build_slp_tree): Adjust.
20169         (vect_analyze_slp): Refactor and move BB vect error message ...
20170         (vect_slp_analyze_bb_1): ... here.
20171
20172 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20173
20174         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20175         for CSWTCH temporary.
20176
20177 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20178
20179         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20180         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20181         unknown unspecs.
20182
20183 2015-05-22  Richard Biener  <rguenther@suse.de>
20184
20185         PR tree-optimization/66251
20186         * tree-vect-stmts.c (vectorizable_conversion): Properly
20187         set STMT_VINFO_VEC_STMT even for the SLP case.
20188
20189 2015-05-22  Marek Polacek  <polacek@redhat.com>
20190
20191         * doc/extend.texi: Use @pxref instead of @xref.
20192
20193 2015-05-22  hiraditya  <hiraditya@msn.com>
20194
20195         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20196         redundant if.
20197
20198 2015-05-22  Richard Biener  <rguenther@suse.de>
20199
20200         PR tree-optimization/65701
20201         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20202         Move peeling cost models into one place.  Peel for alignment
20203         for single loads only if an aligned load is cheaper than
20204         an unaligned load.
20205
20206 2015-05-22  Marek Polacek  <polacek@redhat.com>
20207
20208         PR c/47043
20209         * doc/extend.texi (Enumerator Attributes): New section.
20210         Document syntax of enumerator attributes.
20211
20212 2015-05-22  Richard Biener  <rguenther@suse.de>
20213
20214         * tree-vect-loop.c (get_reduction_op): New function.
20215         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20216         Make ready for BB reductions.
20217         (vect_create_epilog_for_reduction): Use get_reduction_op.
20218         (vectorizable_reduction): Init reduc_index to a valid value.
20219         Adjust vect_model_reduction_cost call.
20220         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20221         operand for reduction defaults.  Add SAD_EXPR support.
20222         Assert we have a neutral op for SLP reductions.
20223         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20224         walking pattern stmt ops only recurse to SSA names.
20225
20226 2015-05-22  Richard Biener  <rguenther@suse.de>
20227
20228         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20229         assert with guard, remove check on detected reduction.
20230         (vect_recog_sad_pattern): Likewise.
20231         (vect_recog_widen_sum_pattern): Likewise.
20232
20233 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20234
20235         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20236         __always_inline__ attribute.
20237         (vaesdq_u8): Likewise.
20238         (vaesmcq_u8): Likewise.
20239         (vaesimcq_u8): Likewise.
20240         (vsha1cq_u32): Likewise.
20241         (vsha1mq_u32): Likewise.
20242         (vsha1pq_u32): Likewise.
20243         (vsha1h_u32): Likewise.
20244         (vsha1su0q_u32): Likewise.
20245         (vsha1su1q_u32): Likewise.
20246         (vsha256hq_u32): Likewise.
20247         (vsha256h2q_u32): Likewise.
20248         (vsha256su0q_u32): Likewise.
20249         (vsha256su1q_u32): Likewise.
20250         (vmull_p64): Likewise.
20251         (vmull_high_p64): Likewise.
20252
20253 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20254
20255         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20256         preprocessor.
20257         * output.h: Likewise.
20258         * genconfig.c (main): Alwways define HAVE_peephole.
20259         * genpeep.c: Don't emit checks of HAVE_peephole.
20260
20261 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20262
20263         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20264         check HAVE_conditional_move with the preprocessor.
20265
20266 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20267
20268         * genconfig.c (main): Always define HAVE_conditional_move.
20269         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20270         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20271         is defined.
20272
20273 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20274
20275         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20276         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20277         and FRAME_POINTER_REGNUM with the preprocessor.
20278
20279 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20280
20281         * defaults.h: Add default for STACK_PUSH_CODE.
20282         * expr.c: Don't redefine STACK_PUSH_CODE.
20283         * recog.c: Likewise.
20284
20285 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20286
20287         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20288         sched-deps.c: Use if instead of preprocessor checks with
20289         STACK_GROWS_DOWNWARD.
20290
20291 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20292
20293         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20294         is defined.
20295         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20296         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20297         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20298         * doc/tm.texi: Regenerate.
20299
20300 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20301
20302         PR target/66232
20303         * config/i386/constraints.md (Bg): New constraint for GOT memory
20304         operand.
20305         * config/i386/i386.md (*call_got_x32): New pattern.
20306         (*call_value_got_x32): Likewise.
20307         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20308
20309 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20310
20311         PR tree-optimization/66233
20312         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20313         Simplify.
20314
20315 2015-05-21  Jeff Law  <law@redhat.com>
20316
20317         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20318         than MULT for shadd sequences.
20319
20320 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20321
20322         * alias.c (alias_stats): New static var.
20323         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20324         (dump_alias_stats_in_alias_c): New function.
20325         * alias.h (dump_alias_stats_in_alias_c): Declare.
20326         * tree-ssa-alias.c (dump_alias_stats): Call it.
20327
20328 2015-05-08  Michael Matz  <matz@suse.de>
20329
20330         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20331         to strided_p.
20332         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20333         (STMT_VINFO_STRIDED_P): ... this.
20334         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20335         (vect_verify_datarefs_alignment): Likewise.
20336         (vect_enhance_data_refs_alignment): Likewise.
20337         (vect_analyze_data_ref_access): Likewise.
20338         (vect_analyze_data_refs): Accept strided stores.
20339         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20340         (vect_model_load_cost): Adjust for macro rename.
20341         (vectorizable_mask_load_store): Likewise.
20342         (vectorizable_load): Likewise.
20343         (vectorizable_store): Open code strided stores.
20344
20345 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20346
20347         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20348         Document sqrt_insn.
20349
20350 2015-05-21  Richard Biener  <rguenther@suse.de>
20351
20352         PR c++/66211
20353         * match.pd: Guard pattern optimzing (int)(float)int
20354         conversions to apply only on GIMPLE.
20355
20356 2015-05-21  Jeff Law  <law@redhat.com>
20357
20358         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20359         multiply-accumulate/shift-add insn generation.
20360
20361 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20362
20363         PR target/54236
20364         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20365         operands[1] are the same.
20366
20367 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20368
20369         PR middle-end/66221
20370         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20371         build_distinct_type_copy to copy bounds.
20372
20373 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20374
20375         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20376         Change to unsigned int.
20377
20378 2015-05-20  Jeff Law  <law@redhat.com>
20379
20380         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20381         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20382         (pa_shadd_constant_p): Allow constants for shadd insns rather
20383         than valid scaling constants for memory addresses.
20384         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20385         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20386         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20387         (shift-add insns using ASHIFT): New patterns.
20388
20389 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20390
20391         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20392         feasible.
20393         (fix_up_fall_thru_edges): Likewise.
20394         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20395         from to rtx_insn to rtx_code_label where feasible.
20396         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20397         gen_move_insn (returned type changed to rtx_insn).
20398         * builtins.c (expand_errno_check): Fix arguments of
20399         do_compare_rtx_and_jump (now expects rtx_code_label).
20400         (expand_builtin_acc_on_device): Likewise.
20401         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20402         invert_jump (now exprects rtx_jump_insn).
20403         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20404         (construct_init_block): Use rtx_code_label.
20405         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20406         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20407         calling redirect_jump.
20408         (patch_jump_insn): Likewise.
20409         (redirect_branch_edge): Likewise.
20410         (force_nonfallthru_and_redirect): Likewise.
20411         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20412         when suitable.
20413         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20414         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20415         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20416         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20417         to store the value retured by gen_label_rtx.
20418         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20419         rtx_jump_insn.
20420         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20421         (split_branches): Fix calls of redirect_jump.
20422         * dojump.c (jumpifnot): Promote argument type from rtx to
20423         rtx_code_label.
20424         (jumpifnot_1): Likewise.
20425         (jumpif): Likewise.
20426         (jumpif_1): Likewise.
20427         (do_jump_1): Likewise.
20428         (do_jump): Likewise. Use rtx_code_label when feasible.
20429         (do_jump_by_parts_greater_rtx): Likewise.
20430         (do_jump_by_parts_zero_rtx): Likewise.
20431         (do_jump_by_parts_equality_rtx): Likewise.
20432         (do_compare_rtx_and_jump): Likewise.
20433         * dojump.h: Update function prototypes.
20434         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20435         returns rtx_insn).
20436         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20437         rtx_jump_insn.
20438         (emit_label_before): Likewise.
20439         (emit_jump_insn_after_noloc): Likewise.
20440         (emit_jump_insn_after_setloc): Likewise.
20441         (emit_jump_insn_after): Likewise
20442         (emit_jump_insn_before_setloc): Likewise.
20443         (emit_jump_insn_before): Likewise.
20444         (emit_label_before): Promote return type to rtx_code_label.
20445         (emit_label): Likewise.
20446         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20447         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20448         gen_move_insn.
20449         (emit_stack_restore): Likewise.
20450         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20451         (do_cmp_and_jump): Likewise.
20452         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20453         from rtx to rtx_code_label.
20454         (gen_move_insn_uncast): New function.
20455         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20456         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20457         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20458         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20459         invert_jump_1 and redirect_jump_1.
20460         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20461         do_compare_rtx_and_jump.
20462         (expand_addsub_overflow): Likewise.
20463         (expand_neg_overflow): Likewise.
20464         (expand_mul_overflow): Likewise.
20465         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20466         return value of gen_move_insn.
20467         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20468         * loop-doloop.c (add_test): Use rtx_code_label.
20469         (doloop_modify): Likewise.
20470         (doloop_optimize): Likewise.
20471         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20472         * lra-constraints.c (emit_spill_move): Remove cast of value returned
20473         by gen_move_insn.
20474         (inherit_reload_reg): Add cast when calling dump_insn_slim.
20475         (split_reg): Likewise.
20476         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20477         gen_move_insn.
20478         * optabs.c (expand_binop_directly): Remove casts of values returned by
20479         maybe_gen_insn.
20480         (expand_unop_direct): Likewise.
20481         (expand_abs): Likewise.
20482         (maybe_emit_unop_insn): Likewise.
20483         (maybe_gen_insn): Promote return type to rtx_insn.
20484         * optabs.h: Update prototype of maybe_gen_insn.
20485         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20486         redundant cast.
20487         * recog.c (struct peep2_insn_data): Promote type of insn field to
20488         rtx_insn.
20489         (peep2_reinit_state): Use NULL instead of NULL_RTX.
20490         (peep2_attempt): Remove casts of insn in peep2_insn_data.
20491         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20492         * recog.h (struct insn_gen_fn): Promote return types of function
20493         pointers and operator ().from rtx to rtx_insn.
20494         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20495         (fill_eager_delay_slots): Likewise.
20496         (relax_delay_slots): Likewise.
20497         (make_return_insns): Likewise.
20498         (dbr_schedule): Likewise.
20499         (optimize_skips): Likewise.
20500         (reorg_redirect_jump): Likewise.
20501         (fill_slots_from_thread): Likewise.
20502         * reorg.h: Update prototypes.
20503         * resource.c (find_dead_or_set_registers): Use dyn_cast to
20504         rtx_jump_insn instead of check.  Use it's jump_target method.
20505         * rtl.h (rtx_jump_insn::jump_label): Define new method.
20506         (rtx_jump_insn::jump_target): Define new method.
20507         (rtx_jump_insn::set_jump_target): Define new method.
20508         * rtlanal.c (tablejump_p): Promote type of one local variable.
20509         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20510         (sched_analyze_insn): Likewise.
20511         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20512         (print_insn): Likewise.
20513         * stmt.c (label_rtx): Promote return type to rtx_insn.
20514         (force_label_rtx): Likewise.
20515         (jump_target_rtx): Define new function.
20516         (expand_label): Use it, get rid of one cast.
20517         (expand_naked_return): Promote rtx to rtx_code_label.
20518         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20519         (expand_case): Use rtx_code_label instread of rtx where feasible.
20520         (expand_sjlj_dispatch_table): Likewise.
20521         (emit_case_nodes): Likewise.
20522         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
20523         * store-motion.c (insert_store): Make use of new return type of
20524         gen_move_insn and remove a cast.
20525         (replace_store_insn): Likewise.
20526
20527 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
20528
20529         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20530         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20531
20532 2015-05-20  Jeff Law  <law@redhat.com>
20533
20534         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20535         dispose of the jump thread path when the jump threading
20536         opportunity is cancelled.
20537
20538 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20539
20540         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20541         when printing the caret character.
20542
20543 2015-05-20  Marek Polacek  <polacek@redhat.com>
20544
20545         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20546
20547 2015-05-20  Marek Polacek  <polacek@redhat.com>
20548
20549         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20550         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20551         * gimple-fold.c (canonicalize_bool): Likewise.
20552         (same_bool_result_p): Likewise.
20553         * tree-if-conv.c (parse_predicate): Likewise.
20554
20555 2015-05-20  Marek Polacek  <polacek@redhat.com>
20556
20557         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20558         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20559
20560 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20561
20562         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20563         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20564         values.
20565
20566 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
20567
20568         * config/mips/mips.h (micromips_globals): Declare.
20569
20570 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
20571
20572         * timevar.def (TV_INITIALIZE_RTL): New.
20573         * toplev.c (initialize_rtl): Use an auto_timevar to account this
20574         function's time to TV_INITIALIZE_RTL.
20575
20576 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20577
20578         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20579         gimple_build_nop calls.
20580         (chkp_find_bounds_for_elem): Likewise.
20581         (chkp_get_zero_bounds): Likewise.
20582         (chkp_get_none_bounds): Likewise.
20583         (chkp_get_bounds_by_definition): Likewise.
20584         (chkp_generate_extern_var_bounds): Likewise.
20585         (chkp_get_bounds_for_decl_addr): Likewise.
20586         (chkp_get_bounds_for_string_cst): Likewise.
20587
20588 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
20589
20590         PR tree-optimization/65447
20591         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20592         (dump_use, dump_uses): Support to dump sub use.
20593         (record_use): New parameters to support sub use.  Remove call to
20594         dump_use.
20595         (record_sub_use, record_group_use): New functions.
20596         (compute_max_addr_offset, split_all_small_groups): New functions.
20597         (group_address_uses, rewrite_use_address): New functions.
20598         (strip_offset): New declaration.
20599         (find_interesting_uses_address): Call record_group_use.
20600         (add_candidate): New assertion.
20601         (infinite_cost_p): Move definition forward.
20602         (add_costs): Check INFTY cost and return immediately.
20603         (get_computation_cost_at): Clear setup cost and dependent bitmap
20604         for sub uses.
20605         (determine_use_iv_cost_address): Compute cost for sub uses.
20606         (rewrite_use_address_1): Rename from old rewrite_use_address.
20607         (free_loop_data): Free sub uses.
20608         (tree_ssa_iv_optimize_loop): Call group_address_uses.
20609
20610 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20611             Jim Wilson  <jim.wilson@linaro.org>
20612
20613         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20614         new  fields loadv and storev.
20615         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20616         Initialize loadv and storev.
20617         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20618         (cortexa53_extra_costs): Likewise.
20619         (cortexa57_extra_costs): Likewise.
20620         (xgene1_extra_costs): Likewise.
20621         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20622         rtx_costs.
20623
20624 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20625
20626         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20627          storev.
20628         (cortexa8_extra_costs): Likewise.
20629         (cortexa5_extra_costs): Likewise.
20630         (cortexa7_extra_costs): Likewise.
20631         (cortexa12_extra_costs): Likewise.
20632         (cortexa15_extra_costs): Likewise.
20633         (v7m_extra_costs): Likewise.
20634
20635 2015-05-20  Jeff Law  <law@redhat.com>
20636
20637         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20638         instead of open-coded version.  Also delete the jump thread created
20639         within this function.
20640
20641 2015-05-20  Alan Modra  <amodra@gmail.com>
20642
20643         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20644         stack adjusting insn.  Formatting.
20645         (rs6000_emit_prologue): Track stack adjusting insn, and use of
20646         r12.  If possible, emit first -fsplit-stack arg pointer insn
20647         before stack adjust.  Don't use r12 to save cr if split-stack.
20648
20649 2015-05-20  Alan Modra  <amodra@gmail.com>
20650
20651         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20652         Define.
20653         (rs6000_supports_split_stack): New function.
20654         * gcc/config/rs6000/rs6000.c (machine_function): Add
20655         split_stack_arg_pointer.
20656         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20657         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20658         rather than virtual_incoming_args_rtx.
20659         (rs6000_va_start): Likewise.
20660         (split_stack_arg_pointer_used_p): New function.
20661         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20662         (morestack_ref): New var.
20663         (gen_add3_const, rs6000_expand_split_stack_prologue,
20664         rs6000_internal_arg_pointer, rs6000_live_on_entry,
20665         rs6000_split_stack_space_check): New functions.
20666         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20667         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20668         (UNSPECV_SPLIT_STACK_RETURN): Define.
20669         (split_stack_prologue, load_split_stack_limit,
20670         load_split_stack_limit_di, load_split_stack_limit_si,
20671         split_stack_return, split_stack_space_check): New expands and insns.
20672         * gcc/config/rs6000/rs6000-protos.h
20673         (rs6000_expand_split_stack_prologue): Declare.
20674         (rs6000_split_stack_space_check): Declare.
20675
20676 2015-05-20  Alan Modra  <amodra@gmail.com>
20677
20678         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20679         (direct_return): Test vrsave_size rather than vrsave_mask.
20680         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
20681         (rs6000_emit_epilogue): Likewise.
20682
20683 2015-05-20  Alan Modra  <amodra@gmail.com>
20684
20685         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20686         when not saving registers.
20687         (debug_stack_info): Adjust to omit printing unused offsets,
20688         as before.
20689         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20690         expression.
20691
20692 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20693
20694         PR c++/65835
20695         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20696         value_type to const char *.
20697
20698 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
20699
20700         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20701         to build a biarch toolchain again.
20702
20703 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20704
20705         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20706         or implicit declarations.
20707         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20708         into it.
20709         (get_odr_type): Check type has linkage before adding bases.
20710         (register_odr_type): Check that type has linkage before adding it.
20711         (type_known_to_have_no_deriavations_p): Rename to ..
20712         (type_known_to_have_no_derivations_p): This one.
20713         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20714         (type_known_to_have_no_derivations_p): This one.
20715         * ipa-polymorphic-call.c
20716         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20717         type has linkage.
20718
20719 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20720
20721         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20722         (layout_type): Use RECORD_OR_UNION_TYPE_P.
20723
20724 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20725
20726         * config/s390/s390.c (s390_vector_bool_type_p): New function.
20727         (s390_invalid_binary_op): New function.
20728         (TARGET_INVALID_BINARY_OP): Define macro.
20729
20730 2015-05-19  David Sherwood  <david.sherwood@arm.com>
20731
20732         * loop-invariant.c (create_new_invariant): Don't calculate address cost
20733         if mode is not a scalar integer.
20734         (get_inv_cost): Increase computational cost for unused invariants.
20735
20736 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20737
20738         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
20739         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
20740         * config/s390/s390-builtin-types.def: New file.
20741         * config/s390/s390-builtins.def: New file.
20742         * config/s390/s390-builtins.h: New file.
20743         * config/s390/s390-c.c: New file.
20744         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20745         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20746         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20747         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20748         prototypes.
20749         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20750         Include.
20751         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20752         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20753         variable definitions.
20754         (s390_const_operand_ok): New function.
20755         (s390_expand_builtin): Rewrite.
20756         (s390_init_builtins): New function.
20757         (s390_handle_vectorbool_attribute): New function.
20758         (s390_attribute_table): Add s390_vector_bool attribute.
20759         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20760         (s390_branch_condition_mask): Generate masks for new modes.
20761         (s390_expand_vec_compare_cc): New function.
20762         (s390_mangle_type): Add mangling for vector bool types.
20763         (enum s390_builtin): Remove.
20764         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20765         efpc builtins.
20766         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20767         s390_cpu_cpp_builtins.
20768         (REGISTER_TARGET_PRAGMAS): New macro.
20769         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20770         (insn_cmp mode attribute): Add new CC modes.
20771         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20772         (lcbb): New pattern definition.
20773         * config/s390/s390intrin.h: Include vecintrin.h.
20774         * config/s390/t-s390: New file.
20775         * config/s390/vecintrin.h: New file.
20776         * config/s390/vector.md: Include vx-builtins.md.
20777         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20778         support.
20779
20780 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20781
20782         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20783         CCVFHE.
20784         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20785         (s390_select_ccmode): Likewise.
20786         (s390_canonicalize_comparison): Swap operands if necessary.
20787         (s390_expand_vec_compare_scalar): Expand DFmode compare using
20788         single element vector instructions.
20789         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20790         (s390_branch_condition_mask): Generate CC masks for the new modes.
20791         * config/s390/s390.md (v0, vf, vd): New mode attributes.
20792         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20793         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20794         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20795         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20796         (*extend<DSF:mode><BFP:mode>2): New insn definition.
20797         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20798         (extend<DSF:mode><BFP:mode>2): Turn into expander.
20799         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20800         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20801         (sqrt<mode>2): Add vector instruction.
20802
20803 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20804
20805         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20806         constraints.
20807         * config/s390/predicates.md (const0_operand, constm1_operand)
20808         (constable_operand): Accept vector operands.
20809         * config/s390/s390-modes.def: Add supported vector modes.
20810         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20811         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20812         (s390_bytemask_vector_p, s390_expand_vec_strlen)
20813         (s390_expand_vec_compare, s390_expand_vcond)
20814         (s390_expand_vec_init): Add prototypes.
20815         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20816         (s390_vector_mode_supported_p): New function.
20817         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
20818         (s390_contiguous_bitmask_vector_p): New function.
20819         (s390_bytemask_vector_p): New function.
20820         (s390_split_ok_p): Vector regs don't work either.
20821         (regclass_map): Add VEC_REGS.
20822         (s390_legitimate_constant_p): Handle vector constants.
20823         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
20824         (legitimate_reload_vector_constant_p): New function.
20825         (s390_preferred_reload_class): Handle CONST_VECTOR.
20826         (s390_reload_symref_address):  Likewise.
20827         (s390_secondary_reload): Vector memory instructions only support
20828         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
20829         (s390_emit_ccraw_jump): New function.
20830         (s390_expand_vec_strlen): New function.
20831         (s390_expand_vec_compare): New function.
20832         (s390_expand_vcond): New function.
20833         (s390_expand_vec_init): New function.
20834         (s390_dwarf_frame_reg_mode): New function.
20835         (print_operand): Handle addresses with 'O' and 'R' constraints.
20836         (NR_C_MODES, constant_modes): Add vector modes.
20837         (s390_output_pool_entry): Handle vector constants.
20838         (s390_hard_regno_mode_ok): Handle vector registers.
20839         (s390_class_max_nregs): Likewise.
20840         (s390_cannot_change_mode_class): New function.
20841         (s390_invalid_arg_for_unprototyped_fn): New function.
20842         (s390_function_arg_vector): New function.
20843         (s390_function_arg_float): Remove size variable.
20844         (s390_pass_by_reference): Handle vector arguments.
20845         (s390_function_arg_advance): Likewise.
20846         (s390_function_arg): Likewise.
20847         (s390_return_in_memory): Vector values are returned in a VR if
20848         possible.
20849         (s390_function_and_libcall_value): Handle vector arguments.
20850         (s390_gimplify_va_arg): Likewise.
20851         (s390_call_saved_register_used): Consider the arguments named.
20852         (s390_conditional_register_usage): Disable v16-v31 for non-vec
20853         targets.
20854         (s390_preferred_simd_mode): New function.
20855         (s390_support_vector_misalignment): New function.
20856         (s390_vector_alignment): New function.
20857         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
20858         (TARGET_VECTOR_MODE_SUPPORTED_P)
20859         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
20860         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
20861         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
20862         (TARGET_VECTOR_ALIGNMENT): Define target macro.
20863         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
20864         (FIRST_PSEUDO_REGISTER): Increase value.
20865         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
20866         (VECTOR_REG_P): Define macros.
20867         (FIXED_REGISTERS, CALL_USED_REGISTERS)
20868         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
20869         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
20870         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
20871         Add vector registers.
20872         (CANNOT_CHANGE_MODE_CLASS): Call C function.
20873         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
20874         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
20875         memory.
20876         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
20877         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
20878         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
20879         (VR*_REGNUM): New constants.
20880         (ALL): New mode iterator.
20881         (INTALL): Remove mode iterator.
20882         Include vector.md.
20883         (movti): Implement TImode moves for VRs.
20884         Disable TImode splitter for VR targets.
20885         Implement splitting TImode GPR<->VR moves.
20886         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
20887         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
20888         reload<mode>_la_in, reload<mode>_la_out.
20889         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
20890         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
20891         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
20892         (mov<mode> SF SD): Prefer lder, lde for loading.
20893         Add lrl and strl instructions.
20894         Add vector instructions.
20895         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
20896         Call s390_expand_vec_strlen on z13.
20897         (*cc_to_int): Change predicate to nonimmediate_operand.
20898         (addti3): Rename to *addti3.  New expander.
20899         (subti3): Rename to *subti3.  New expander.
20900         * config/s390/vector.md: New file.
20901
20902 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20903
20904         * common/config/s390/s390-common.c (processor_flags_table): Add
20905         z13.
20906         * config.gcc: Add z13.
20907         * config/s390/s390-opts.h (enum processor_type): Add
20908         PROCESSOR_2964_Z13.
20909         * config/s390/s390.c (s390_adjust_priority): Check for
20910         PROCESSOR_2964_Z13.
20911         (s390_reorg): Likewise.
20912         (s390_sched_reorder): Likewise.
20913         (s390_sched_variable_issue): Likewise.
20914         (s390_loop_unroll_adjust): Likewise.
20915         (s390_option_override): Likewise. Default to -mvx when available.
20916         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
20917         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
20918         (TARGET_VX_ABI): Define macros.
20919         macros.
20920         (TARGET_DEFAULT): Add MASK_OPT_VX.
20921         * config/s390/s390.md ("cpu" attribute): Add z13.
20922         ("cpu_facility" attribute): Add vec.
20923         * config/s390/s390.opt (processor_type): Add z13.
20924         (mvx): New options.
20925         * doc/invoke.texi: Add z13 option for -march.
20926
20927 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20928
20929         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
20930         mode check to make sure that only scalar integer values are
20931         accepted.
20932
20933 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20934
20935         * tree.c (verify_type_variant): Fix #undef.
20936         (gimple_canonical_types_compatible_p): Move here from lto.c
20937         (verify_type): Verify TYPE_CANONICAL compatibility.
20938         * tree.h (gimple_canonical_types_compatible_p): Declare.
20939
20940 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
20941
20942         PR middle-end/66199
20943         * tree.h (OMP_TEAMS_COMBINED): Define.
20944         * gimplify.c (enum gimplify_omp_var_data): Add
20945         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
20946         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
20947         (omp_notice_variable): Accept both ORT_TEAMS
20948         and ORT_COMBINED_TEAMS.  Don't recurse if
20949         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
20950         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
20951         GOVD_FIRSTPRIVATE.
20952         (omp_no_lastprivate): New function.
20953         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
20954         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
20955         notice_outer and set appropriate bits, otherwise make
20956         sure default(none) combined constructs won't complain.
20957         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
20958         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
20959         omp_no_lastprivate either remove the clause or turn it
20960         into OMP_CLAUSE_PRIVATE.
20961         (gimplify_omp_for): Fix up handling of implicit
20962         lastprivate or linear iterators.
20963         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
20964         ORT_COMBINED_TEAMS.
20965         * omp-low.c (lower_omp_for_lastprivate): For combined
20966         for simd use fd.loop.n2 from the for rather than simd.
20967
20968 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
20969
20970         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
20971         instead of gen_rtx_raw_REG.
20972         (cris_expand_epilogue): Likewise.
20973         * config/microblaze/microblaze.c (microblaze_classify_address):
20974         Likewise.
20975         * config/sparc/sparc.md: Likewise.
20976
20977 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
20978
20979         * config/alpha/alpha.c (alpha_legitimize_reload_address)
20980         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
20981         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
20982         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
20983         Use CASE_CONST_SCALAR_INT.
20984         (print_operand) <case 'M'>: Use mode_width_operand to check the
20985         value of the constant.
20986         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
20987         * config/alpha/predicates.md (input_operand): Use general_operand
20988         instead of match_code as operand check.
20989         (symbolic_operand): Use match_code with subexpression digits.
20990         * config/alpha/constraints.md (Q): Ditto.
20991
20992 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20993
20994         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
20995
20996 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20997
20998         * config/s390/s390.c (s390_secondary_reload): Fix check for
20999         load/store relative.
21000
21001 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21002
21003         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21004         alternative_mask to uint64_t.
21005
21006 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21007
21008         PR tree-optimization/66187
21009         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21010         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21011         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21012
21013 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21014
21015         * diagnostic.c (diagnostic_report_current_module): Strengthen
21016         local "new_map" from const line_map * to
21017         const line_map_ordinary *.
21018         * genmatch.c (error_cb): Likewise for local "map".
21019         (output_line_directive): Likewise for local "map".
21020         * input.c (expand_location_1): Likewise for local "map".
21021         Pass NULL rather than &map to
21022         linemap_unwind_to_first_non_reserved_loc, since the value is never
21023         read from there, and the value written back not read from here.
21024         (is_location_from_builtin_token): Strengthen local "map" from
21025         const line_map * to const line_map_ordinary *.
21026         (dump_location_info): Strengthen locals "map" from
21027         line_map *, one to const line_map_ordinary *, the other
21028         to const line_map_macro *.
21029         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21030         const line_map * to const line_map_macro *.
21031         (maybe_unwind_expanded_macro_loc): Add a call to
21032         linemap_check_macro when writing to the "map" field of the
21033         loc_map_pair.
21034         Introduce local const line_map_ordinary * "ord_map", using it in
21035         place of "map" in the part of the function where we know we have
21036         an ordinary map.  Strengthen local "m" from const line_map * to
21037         const line_map_ordinary *.
21038
21039 2015-05-19  Nick Clifton  <nickc@redhat.com>
21040
21041         PR target/66156
21042         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21043         separate source and destination registers.
21044
21045 2015-05-19  Richard Biener  <rguenther@suse.de>
21046
21047         PR tree-optimization/66165
21048         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21049         for no load permutation.
21050
21051         PR tree-optimization/66185
21052         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21053         when building the SLP node from scalars.
21054
21055 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21056             Tristan Gingold  <gingold@adacore.com>
21057
21058         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21059         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21060         (expand_stack_restore): Call record_new_stack_level.
21061         (expand_stack_save): Do not call do_pending_stack_adjust.
21062         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21063         * calls.c (expand_call): Call record_new_stack_level for alloca.
21064         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21065         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21066         (update_sjlj_context): New global function.
21067         * except.h (update_sjlj_context): Declare.
21068         * explow.c (record_new_stack_level): New global function.
21069         (allocate_dynamic_stack_space): Call record_new_stack_level.
21070         * explow.h (record_new_stack_level): Declare.
21071         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21072         * cfgrtl.c (duplicate_insn_chain): Likewise.
21073
21074 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21075
21076         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21077         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21078         STACK_GROWS_DOWNWARD as normal if.
21079         (expand_call): Likewise.
21080
21081 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21082
21083         PR target/54236
21084         * config/sh/sh.md (*round_int_even): New insn_and_split and
21085         accompanying new unnamed split.
21086
21087 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21088
21089         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21090         (bitmap_clear_range): Likewise.
21091         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21092         bitmap_set_range unconditionally.
21093         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21094         * df-scan.c (df_mark_reg): Likewise.
21095         * haifa-sched.c (setup_ref_regs): Likewise.
21096         * sched-rgn.c (update_live_1): Likewise.
21097
21098 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21099
21100         * regs.h (END_HARD_REGNO): Delete.
21101         (END_REGNO): Move to...
21102         * rtl.h: ...here.
21103         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21104         * caller-save.c (mark_set_regs): Likewise.
21105         * combine.c (move_deaths, distribute_notes): Likewise.
21106         * cse.c (invalidate, invalidate_for_call): Likewise.
21107         * df-scan.c (df_ref_record): Likewise.
21108         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21109         (record_last_reg_set_info): Likewise.
21110         * reg-stack.c (convert_regs_exit): Likewise.
21111         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21112         * resource.c (update_live_status): Likewise.
21113         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21114
21115 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21116
21117         * rtl.h (reg_info): Add an nregs field.
21118         (REG_NREGS): Use it.
21119         (SET_REGNO_RAW): Delete.
21120         (set_regno_raw): New function.
21121         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21122         (END_REGNO): Redefine in terms of REG_NREGS.
21123         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21124         SET_REGNO_RAW.
21125         * emit-rtl.c (set_mode_and_regno): Likewise.
21126         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21127         instead of SET_REGNO_RAW.
21128
21129 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21130
21131         * rtl.h (PUT_MODE_RAW): New macro.
21132         (PUT_REG_NOTE_KIND): Use it.
21133         (set_mode_and_regno): Declare.
21134         (gen_raw_REG): Change regno to "unsigned int".
21135         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21136         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21137         use set_mode_and_regno to change the mode of registers.
21138         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21139         * emit-rtl.c (set_mode_and_regno): New function.
21140         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21141         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21142         * expr.c (init_expr_target): Likewise.
21143         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21144         * postreload.c (reload_cse_simplify_operands): Likewise.
21145
21146 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21147
21148         * caller-save.c (init_caller_save): Use word_mode and
21149         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21150         * expr.c (init_expr_target): Likewise.
21151         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21152         * postreload.c (reload_cse_regs_1): Likewise.
21153
21154 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21155
21156         * rtl.def (REG): Change format to "r".
21157         * rtl.h (rtunion): Remove rt_reg.
21158         (reg_info): New structure.
21159         (rtx_def): Add reg field to main union.
21160         (X0REGATTR): Delete.
21161         (REG_CHECK): New macro.
21162         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21163         * rtl.c (rtx_format): Document "r".
21164         (rtx_code_size): Handle REG specially.
21165         * gengenrtl.c (special_format): Return true for formats
21166         that include 'r'.
21167         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21168         Deal with REG_ATTRS after the field loop.
21169         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21170         * expmed.c (init_expmed): Call gen_raw_REG instead of
21171         gen_rtx_raw_REG.
21172         * expr.c (init_expr_target): Likewise.
21173         * regcprop.c (maybe_mode_change): Likewise.
21174         * varasm.c (make_decl_rtl): Likewise.
21175         * final.c (leaf_renumber_regs_insn): Return early after
21176         handling REGs.
21177         * genemit.c (gen_exp): Handle 'r' fields.
21178         * genpeep.c (match_rtx): Likewise.
21179         * gensupport.c (subst_pattern_match): Likewise.
21180         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21181         (alter_constraints, subst_dup): Likewise.
21182         * read-rtl.c (read_rtx_code): Likewise.
21183         * print-rtl.c (print_rtx): Likewise.
21184         * genrecog.c (find_operand, find_matching_operand): Likewise.
21185         (validate_pattern, match_pattern_2): Likewise.
21186         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21187         (rtx_test::regno_field): New function.
21188         (operator ==, safe_to_hoist_p, transition_parameter_type)
21189         (parameter_type_string, print_parameter_value)
21190         (print_nonbool_test, print_test): Handle new enum values.
21191         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21192         * lra-constraints.c (operands_match_p): Likewise.
21193
21194 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21195
21196         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21197         Change type of new_regno to unsigned int.
21198         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21199         new_regno to unsigned int.
21200         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21201         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21202         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21203         (SET_REGNO_RAW): Add space after ",".
21204
21205 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21206
21207         * rtl.h (REG_NREGS): New macro
21208         * alias.c (record_set): Use it.
21209         * cfgcleanup.c (mark_effect): Likewise.
21210         * combine.c (likely_spilled_retval_1): Likewise.
21211         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21212         (move_deaths, distribute_notes): Likewise.
21213         * cselib.c (cselib_record_set): Likewise.
21214         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21215         * df-scan.c (df_mark_reg): Likewise.
21216         * dse.c (look_for_hardregs): Likewise.
21217         * dwarf2out.c (reg_loc_descriptor): Likewise.
21218         (multiple_reg_loc_descriptor): Likewise.
21219         * expr.c (write_complex_part, read_complex_part): Likewise.
21220         (emit_move_complex): Likewise.
21221         * haifa-sched.c (setup_ref_regs): Likewise.
21222         * ira-lives.c (mark_hard_reg_live): Likewise.
21223         * lra.c (lra_set_insn_recog_data): Likewise.
21224         * mode-switching.c (create_pre_exit): Likewise.
21225         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21226         (reload_combine_recognize_pattern): Likewise.
21227         (reload_combine_note_use, move2add_record_mode): Likewise.
21228         (reload_cse_move2add): Likewise.
21229         * reg-stack.c (subst_stack_regs_pat): Likewise.
21230         * regcprop.c (kill_value, copy_value): Likewise.
21231         (copyprop_hardreg_forward_1): Likewise.
21232         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21233         (build_def_use): Likewise.
21234         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21235         (deps_analyze_insn): Likewise.
21236         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21237         * sel-sched.c (count_occurrences_equiv): Likewise.
21238         * valtrack.c (dead_debug_insert_temp): Likewise.
21239
21240 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21241
21242         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21243         * dse.c (note_add_store): Likewise.
21244         * ira-lives.c (mark_hard_reg_dead): Likewise.
21245         * loop-invariant.c (mark_reg_store): Likewise.
21246         (mark_reg_death): Likewise.
21247         * postreload.c (reload_combine): Likewise.
21248         (reload_combine_note_store): Likewise.
21249         (reload_combine_note_use): Likewise.
21250         * recog.c (peep2_reg_dead_p): Likewise.
21251
21252 2015-05-19  Alan Modra  <amodra@gmail.com>
21253
21254         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21255         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21256         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21257         unused predicates.
21258         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21259         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21260         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21261         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21262
21263 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21264
21265         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21266         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21267         (join2_loadhi): Likewise.
21268         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21269         load-load and store-stores.
21270         * config/mips/mips.opt (mload-store-pairs): New option.
21271         (TARGET_LOAD_STORE_PAIRS): New macro.
21272         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21273         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21274         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21275
21276 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21277
21278         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21279         explicit swaps.
21280         * dojump.c (do_compare_rtx_and_jump): Likewise.
21281         * expmed.c (emit_store_flag_1): Likewise.
21282         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21283         * final.c (sprint_ul): Use std::reverse for reversing a string.
21284         * fold-const.c (extract_muldiv_1): Use std::swap.
21285         * genmodes.c (emit_mode_int_n): Likewise.
21286         * ifcvt.c (dead_or_predicable): Likewise.
21287         * ira-build.c (ira_merge_live_ranges): Likewise.
21288         (swap_allocno_copy_ends_if_necessary): Likewise.
21289         * ira.c (ira_setup_alts): Likewise.
21290         * loop-iv.c (iv_analyze_expr): Likewise.
21291         (implies_p): Likewise.
21292         (canon_condition): Likewise.
21293         * lra-constraints.c (swap_operands): Likewise.
21294         * lra-lives.c (lra_merge_live_ranges): Likewise.
21295         * omega.c (swap): Remove.
21296         (bswap): Remove.
21297         (omega_unprotect_1): Use std::swap.
21298         (omega_solve_geq): Likewise.
21299         * optabs.c (expand_binop_directly): Likewise.
21300         (expand_binop): Likewise.
21301         (emit_conditional_move): Likewise.
21302         (emit_conditional_add): Likewise.
21303         * postreload.c (reload_cse_simplify_operands): Likewise.
21304         * reg-stack.c (emit_swap_insn): Likewise.
21305         (swap_to_top): Likewise.
21306         (compare_for_stack_reg): Likewise.
21307         (subst_asm_stack_regs): Likewise.
21308         * reload.c (find_reloads): Likewise.
21309         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21310         * sel-sched.c (invoke_reorder_hooks): Likewise.
21311         (create_block_for_bookkeeping): Likewise.
21312         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21313         (lambda_matrix_right_hermite): Use std::swap.
21314         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21315         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21316         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21317         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21318         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21319         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21320         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21321         * tree-vrp.c (compare_ranges): Likewise.
21322         * var-tracking.c (add_with_sets): Likewise.
21323         (vt_find_locations): Likewise.
21324
21325 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21326
21327         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21328         pie executables.
21329         (FBSD_ENDFILE_SPEC): Likewise.
21330         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21331         config/freebsd-spec.h.
21332         (ENDFILE_SPEC): Likewise.
21333
21334 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21335             Richard Henderson  <rth@redhat.com>
21336
21337         PR target/57032
21338         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21339         Check for a memory location that is not a reference (using an AND)
21340         to an unaligned location here.
21341         * config/alpha/predicates.md (normal_memory_operand): Remove.
21342
21343 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21344
21345         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21346         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21347
21348 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21349
21350         * config/mips/mips.c (micromips_globals): New variable.
21351         (mips_set_compression_mode): Save and reinitialize target-dependent
21352         state for microMIPS.
21353
21354 2015-05-18  Martin Liska  <mliska@suse.cz>
21355
21356         * dbgcnt.def: Add new counter.
21357         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21358
21359 2015-05-18  Martin Liska  <mliska@suse.cz>
21360
21361         * dbgcnt.def: Sort counters.
21362         * opts.c (common_handle_option): Do not compile if
21363         -fdbg-cnt-list is enabled.
21364
21365 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21366
21367         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21368         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21369         address operator to va_list operand.
21370         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21371         unconditionally.
21372         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21373         operand.
21374         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21375         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21376         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21377
21378 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21379
21380         * tree-ssa-tail-merge.c: Fix whitespace.
21381
21382 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21383
21384         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21385         cortex-a17, and cortex-a17.cortex-a7.
21386
21387 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21388
21389         PR target/54236
21390         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21391
21392 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21393
21394         PR target/66174
21395         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21396         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21397         to a register for AVX512F modes.
21398
21399 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21400
21401         * toplev.c (emit_debug_global_declarations): Do not output debug info
21402         when doing slim LTO objects.
21403
21404 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21405
21406         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21407         odr_types_equivalent_p): Declare.
21408         (odr_type_p): Use gcc_checking_assert.
21409         (type_in_anonymous_namespace_p) Declare.
21410         (type_with_linkage_p): Declare.
21411         * common.opt (Wlto-type-mismatch): New warning.
21412         * ipa-devirt.c (compound_type_base): New function.
21413         (odr_or_derived_type_p): New function.
21414         (odr_types_equivalent_p): New function.
21415         (add_type_duplicate): Simplify.
21416         (type_with_linkage_p): Add hack to prevent false positives on C types
21417         (type_in_anonymous_namespace_p): Likewise.
21418         * tree.c (need_assembler_name_p): Use type_with_linkage.
21419         * tree.h (type_in_anonymous_namespace_p): Remove.
21420         * doc/invoke.texi (-Wlto-type-mismatch): Document
21421
21422 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21423
21424         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21425         (verify_type): Verify STRING_FLAG.
21426
21427 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21428
21429         PR fortran/44054
21430         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21431         with accessor function.
21432         * tree-diagnostic.c (diagnostic_report_current_function): Use
21433         diagnostic_location function.
21434         (maybe_unwind_expanded_macro_loc): Likewise.
21435         (virt_loc_aware_diagnostic_finalizer): Likewise.
21436         (default_tree_printer): Replace locus pointer with accessor function.
21437         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21438         (diagnostic_set_info_translated): Initialize second location.
21439         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21440         (diagnostic_show_locus): Handle two locations. Call
21441         diagnostic_print_caret_line.
21442         (diagnostic_print_caret_line): New.
21443         (default_diagnostic_starter): Use diagnostic_location function.
21444         (diagnostic_report_diagnostic): Use diagnostic_location function.
21445         (verbatim): Do not set text.locus.
21446         * diagnostic.h (struct diagnostic_info): Remove location field.
21447         (struct diagnostic_context): Make caret_chars an array of two.
21448         (diagnostic_location): New inline.
21449         (diagnostic_expand_location): Handle two locations.
21450         (diagnostic_same_line): New inline.
21451         (diagnostic_print_caret_line): Declare.
21452         (CARET_LINE_MARGIN): New constant.
21453         * pretty-print.c (pp_printf): Do not set text.locus.
21454         (pp_verbatim): Do not set text.locus.
21455         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21456         (struct text_info): Replace locus pointer with locations
21457         array. Add accessor functions.
21458
21459 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21460             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21461
21462         PR target/65768
21463         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21464         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21465          large constants in register instead of splitting them.
21466
21467 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21468
21469         PR target/66140
21470         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21471         replacements in memory addresses.
21472         (get_unaligned_address): Ditto.
21473
21474 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
21475
21476         * config/ft32/*: New files for FT32 port.
21477         * doc/install.texi: Add FT32 information.
21478         * doc/invoke.texi: Add FT32 information.
21479         * doc/md.texi: Add FT32 information.
21480         * doc/contrib.texi: Self added.
21481
21482 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
21483
21484         PR tree-optimization/64454
21485         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21486         (-1 - A -> ~A): Remove unnecessary condition.
21487
21488 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
21489
21490         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21491         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21492         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21493
21494 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
21495
21496         * ipa-chkp.h (chkp_wrap_function): New.
21497         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21498         (chkp_wrap_function_name): New.
21499         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21500         to get wrapper name.
21501         * lto-cgraph.c: Include ipa-chkp.h.
21502         (input_cgraph_1): Avoid alias chain for wrappers.
21503
21504 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21505
21506         PR middle-end/66134
21507         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21508         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21509
21510 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21511
21512         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21513         (AARCH64_FL_SLOWMUL): Delete.
21514         (AARCH64_FL_CRC): Redefine to 1<<3.
21515         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21516
21517 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21518
21519         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21520         casting.
21521
21522 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21523
21524         * config/alpha/alpha.md (extendqidi2): Use general_operand
21525         instead of some_operand for operand[1] predicate.
21526         (extendhidi2): Ditto.
21527         (cbranchdi4): Use general_operand instead of some_operand
21528         for operand[1] and operands[2] predicates.
21529         (cstoredi4): Ditto.
21530         * config/alpha/predicates.md (some_operand): Remove unused predicate.
21531         (some_ni_operand): Ditto.
21532
21533 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21534
21535         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21536         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
21537         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21538         low part of the constant using alpha_emit_set_const_1.
21539         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21540
21541 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
21542
21543         * varasm.c (output_constant_pool_1): Pass down alignment from
21544         constant pool entry's descriptor to output_constant_pool_2.
21545         (output_object_block): Add comment prior to call to
21546         output_constant_pool_1.
21547
21548 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
21549
21550         PR rtl-optimization/65862
21551         * target.def (ira_change_pseudo_allocno_class): New hook.
21552         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21553         value of the hook.
21554         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21555         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21556         hook.
21557         * ira-costs.c (find_costs_and_classes): Call the hook and change
21558         classes when it is necessary.
21559         * doc/tm.texi: Update.
21560
21561 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
21562
21563         * config/i386/i386.md (sibcall_memory): Check that register with
21564         callee address is not also used as one of the arguments, instead
21565         of checking that it is not live after the sibcall.
21566         (sibcall_pop_memory): Ditto.
21567         (sibcall_value_memory): Ditto.
21568         (sibcall_value_pop_memory): Ditto.
21569
21570 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
21571
21572         * generic-match-head.c (types_match): Handle non-types.
21573         * gimple-match-head.c (types_match): Likewise.
21574         * match.pd: Remove unnecessary TREE_TYPE for types_match.
21575
21576 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
21577
21578         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21579         (csneg3<mode>_insn): Enable expansion of pattern.
21580
21581 2015-05-14  Nick Clifton  <nickc@redhat.com>
21582
21583         * config/rl78/rl78.c (rl78_select_section): Select the correct
21584         default section based upon the category of the decl.
21585
21586 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21587
21588         PR rtl-optimization/30967
21589         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21590         destination mode for the cost of scc patterns.
21591
21592 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21593
21594         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21595         using SWIM248 mode iterator.
21596         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21597         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
21598         for operand[2] constraint.
21599         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21600
21601 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21602
21603         PR middle-end/66133
21604         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21605         make sure it is never noreturn, even when the task body does not
21606         return.
21607         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21608         right before GIMPLE_OMP_RETURN.
21609         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21610         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
21611         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21612
21613 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21614
21615         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21616         * tree-ssa-math-opts.c: Include params.h
21617         (pow_synth_sqrt_info): New struct.
21618         (representable_as_half_series_p): New function.
21619         (get_fn_chain): Likewise.
21620         (print_nested_fn): Likewise.
21621         (dump_fractional_sqrt_sequence): Likewise.
21622         (dump_integer_part): Likewise.
21623         (expand_pow_as_sqrts): Likewise.
21624         (gimple_expand_builtin_pow): Use above to attempt to expand
21625         pow as series of square roots.  Removed now unused variables.
21626
21627 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21628
21629         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21630         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21631         Remove *p0 and *p1 arguments.  Rewrite function.
21632         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21633         (alpha_split_const_mov): Update calls to alpha_extract_integer and
21634         alpha_emit_set_long_const.
21635         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21636         (alpha_output_mi_thunk_osf): Ditto.
21637         * config/alpha/alpha.md (movti): Do not check operands[1]
21638         for CONST_DOUBLE.
21639
21640 2015-05-13  Richard Biener  <rguenther@suse.de>
21641
21642         PR tree-optimization/66129
21643         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21644         commutative.
21645         (vect_schedule_slp_instance): Fix typo.
21646
21647 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
21648
21649         * common.opt (fdump-internal-locations): New option.
21650         * input.c: Include diagnostic-core.h.
21651         (get_end_location): New function.
21652         (write_digit): New function.
21653         (write_digit_row): New function.
21654         (dump_location_range): New function.
21655         (dump_labelled_location_range): New function.
21656         (dump_location_info): New function.
21657         * input.h (dump_location_info): New prototype.
21658         * toplev.c (compile_file): Handle flag_dump_locations.
21659
21660 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21661
21662         * gimple-expr.h (is_gimple_constant): Reorder.
21663         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21664
21665 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21666
21667         * combine.c (simplify_set): When generating a CC set, if the
21668         source already is in the correct mode, do not wrap it in a
21669         compare.  Simplify the rest of that code.
21670
21671 2015-05-13  Richard Biener  <rguenther@suse.de>
21672
21673         PR tree-optimization/66123
21674         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21675         a taken edge.
21676
21677 2015-05-13  Richard Biener  <rguenther@suse.de>
21678
21679         PR middle-end/66110
21680         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21681         specially.
21682         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21683
21684 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
21685
21686         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21687         * aclocal.m4: Regenerated with automake-1.11.6.
21688
21689 2015-05-13  Tom de Vries  <tom@codesourcery.com>
21690
21691         PR tree-optimization/66010
21692         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21693         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21694         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
21695         and rval based on do_deref.
21696
21697 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21698
21699         PR target/65103
21700         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21701         link time constants into adress expressions and therefore set
21702         their cost to 0.
21703
21704 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21705
21706         PR target/66112
21707         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21708         Use SWI248 iterator instead of SWI.
21709         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
21710         Use eq_attr "alternative" "0" instead of match_test in
21711         length_immediate attribute computation.
21712         (*mulvhi4, *mulvhi4_1): New define_insns.
21713
21714         PR target/66112
21715         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21716         SIGNED to get precision of non-negative value.
21717
21718 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21719
21720         PR target/66048
21721         * function.c (diddle_return_value_1): Process bounds first.
21722         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21723         register.
21724
21725 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21726
21727         PR rtl-optimization/64616
21728         * loop-invariant.c (can_move_invariant_reg): New.
21729         (move_invariant_reg): Call above new function to decide whether
21730         instruction can just be moved, skipping creation of temporary
21731         register.
21732
21733 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21734
21735         PR target/pr66047.c
21736         * i386.c (ix86_function_sseregparm): Only return -1 if local function
21737         with implied regparm is called from -mno-sse function.
21738         (init_cumulative_args): Output error if ix86_function_sseregparm
21739         return -1 and SSE register would be needed.
21740         (function_arg_advance_32): Likewise.
21741         (function_arg_32): Likewise.
21742         * i386.h (ix86_args): Add decl field.
21743
21744 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21745
21746         PR ipa/65873
21747         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21748         inlines across optimization boundary.
21749
21750 2015-05-12  Jason Merrill  <jason@redhat.com>
21751
21752         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21753         string literal and macro name.
21754
21755 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
21756
21757         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21758         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21759         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21760
21761 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21762
21763         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21764         (-Wmisleading-indentation): New option.
21765         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21766
21767 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
21768
21769         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21770         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21771         (alpha_extract_integer): Ditto.
21772         (alpha_legitimate_constant_p): Ditto.
21773         (alpha_split_tmode_pair): Ditto.
21774         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21775         (alpha_expand_mov): Ditto.
21776         (print_operand): Remove handling of 'H' modifier.
21777         <case 'm'>: Remove CONST_DOUBLE handling.
21778         (summarize_insn): Handle CONST_WIDE_INT.
21779         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21780         (anddi3): Ditto.
21781         (movti): Handle CONST_WIDE_INT.
21782         * config/alpha/constraints.md ('H'): Remove constraint definition.
21783         ('G'): Do not match MODE_FLOAT class.
21784         * config/alpha/predicates.md (const0_operand): Also match
21785         const_wide_int.
21786         (non_add_const_operand): Ditto.
21787         (non_zero_const_operand): Ditto.
21788         (some_operand): Ditto.
21789         (input_operand): Ditto.  Handle CONST_WIDE_INT.
21790         (and_operand): Do not match const_double.
21791         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21792
21793 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
21794
21795         PR target/65697
21796         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21797         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21798         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21799         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21800         is_mm_seq_cst, is_mm_sync): New accessor functions.
21801         * builtins.c (expand_builtin_sync_operation,
21802         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21803         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21804         (get_memmodel,  expand_builtin_atomic_compare_exchange,
21805         expand_builtin_atomic_load, expand_builtin_atomic_store,
21806         expand_builtin_atomic_clear): Use new accessor routines.
21807         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21808         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21809         (maybe_emit_sync_lock_test_and_set): Use new accessors and
21810         MEMMODEL_SYNC_ACQUIRE.
21811         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21812         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21813         expand_atomic_store): Use new accessors.
21814         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21815         * tsan.c (instrument_builtin_call): Update check for memory model beyond
21816         final enum to use MEMMODEL_LAST.
21817         * c-family/c-common.c: Use new accessor for memmodel_base.
21818         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
21819         accessors.
21820         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
21821         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
21822         mem_thread_fence, *dmb): Likewise.
21823         * config/alpha/alpha.c (alpha_split_compare_and_swap,
21824         alpha_split_compare_and_swap_12): Likewise.
21825         * config/arm/arm.c (arm_expand_compare_and_swap,
21826         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
21827         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
21828         atomic_loaddi): Likewise.
21829         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
21830         Likewise.
21831         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
21832         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
21833         use new accessors.
21834         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
21835         atomic_store<mode>, atomic_compare_and_swap<mode>,
21836         atomic_exchange<mode>): Use new accessors.
21837         * config/mips/mips.c (mips_process_sync_loop): Likewise.
21838         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
21839         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
21840         rs6000_post_atomic_barrier): Add new cases.
21841         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
21842         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
21843         (atomic_load<mode>): Add new cases and use new accessors.
21844         (store_quadpti): Add new cases.
21845         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
21846         accessors.
21847         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
21848         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
21849         model, not 8.
21850
21851 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21852
21853         * ipa-devirt.c (type_with_linkage_p): New function.
21854         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
21855         type has linkage.
21856         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
21857         (can_be_name_hashed_p): Simplify.
21858         (hash_odr_name): Check that type has linkage before checking if it is
21859         anonymous.
21860         (types_same_for_odr): Likewise.
21861         (odr_name_hasher::equal): Likewise.
21862         (odr_subtypes_equivalent_p): Likewise.
21863         (warn_types_mismatch): Likewise.
21864         (get_odr_type): Likewise.
21865         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
21866         * ipa-utils.h (odr_type_p): Move offline.
21867         * tree.c (need_assembler_name_p): Fix handling of types
21868         without linkages.
21869         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
21870
21871 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21872
21873         * timevar.c (timevar_enable): Delete in favor of...
21874         (g_timer): New global.
21875         (struct timevar_def): Move to timevar.h inside class timer.
21876         (struct timevar_stack_def): Likewise.
21877         (timevars): Delete global in favor of field "m_timevars" within
21878         class timer in timevar.h
21879         (stack): Likewise, in favor of field "m_stack".
21880         (unused_stack_instances): Likewise, in favor of field
21881         "m_unused_stack_instances".
21882         (start_time): Likewise, in favor of field "m_start_time".
21883         (get_time): Eliminate check for timevar_enable.
21884         (timer::timer): New function, built from part of timevar_init.
21885         (timevar_init): Rewrite idempotency test from using
21886         "timevar_enable" bool to using dynamic allocation of "g_timer".
21887         Move rest of implementation into timer's constructor.
21888         (timevar_push_1): Rename to...
21889         (timer::push): ...this, adding "m_" prefixes to variables that
21890         are now fields of timer.
21891         (timevar_pop_1): Likewise, rename to...
21892         (timer::pop): ...this, and add "m_" prefixes.
21893         (timevar_start): Replace test for "timevar_enable" with one for
21894         "g_timer", and move bulk of implementation to...
21895         (timer::start): ...here, adding "m_" prefixes.
21896         (timevar_stop): Likewise, from here...
21897         (timer::stop): ...to here.
21898         (timevar_cond_start): Likewise, from here...
21899         (timer::cond_start): ...to here.
21900         (timevar_cond_stop): Likewise, from here...
21901         (timer::cond_stop): ...to here.
21902         (validate_phases): Rename to...
21903         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
21904         locals "total" and "tv" const.
21905         (timevar_print): Rename to...
21906         (timer::print): ...this, and add "m_" prefixes.  Make locals
21907         "total" and "tv" const.  Eliminate test for timevar_enable.
21908         * timevar.h (timevar_enable): Eliminate.
21909         (g_timer): New declaration.
21910         (timevar_push_1): Eliminate.
21911         (timevar_pop_1): Eliminate.
21912         (timevar_print): Eliminate.
21913         (class timer): New class.
21914         (timevar_push): Rewrite to use g_timer.
21915         (timevar_pop): Likewise.
21916         * toplev.c (toplev::~toplev): Likewise.
21917
21918 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
21919
21920         * arm-protos.h (arm_sched_autopref): Delete.
21921         (tune_params): Re-organize, use enums for flag values.
21922         (FUSE_OPS): New macro.
21923         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
21924         (ARM_PREFETCH_BENEFICIAL): Likewise.
21925         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
21926         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21927         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
21928         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
21929         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
21930         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
21931         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
21932         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
21933         format.
21934         (arm_option_override, thumb2_reorg, arm_print_tune_info)
21935         (aarch_macro_fusion_pair_p): Update uses of current_tune.
21936         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
21937
21938 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
21939
21940         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
21941         "break".
21942
21943 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
21944             Sandra Loosemore <sandra@codesourcery.com>
21945
21946         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
21947         value.
21948         (REG_CLASS_NAMES): Add "IJMP_REGS".
21949         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
21950         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
21951         use new "c" register constraint.
21952         * config/nios2/constraint.md (c): New register constraint
21953         corresponding to IJMP_REGS.
21954
21955 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21956
21957         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
21958         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
21959         define_splits): Delete, revamp, transmogrify into ...
21960         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21961         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21962         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21963         New.
21964
21965 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21966
21967         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
21968         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
21969
21970 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21971
21972         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
21973         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
21974         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
21975         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
21976         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
21977         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
21978         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
21979         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
21980         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
21981         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
21982         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
21983         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
21984         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
21985         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
21986         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
21987         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
21988         and 30 corresponding splitters): Delete.
21989
21990 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21991
21992         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
21993         zero_extract.
21994
21995 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
21996
21997         * combine.c (recog_for_combine_1): New function, factored out
21998         from recog_for_combine.
21999         (change_zero_ext): New function.
22000         (recog_for_combine): If recog fails, try again with the pattern
22001         modified by change_zero_ext; if that still fails, restore the
22002         pattern.
22003
22004 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22005
22006         * combine.c (get_undo_marker): New function.
22007         (undo_to_marker): New function, largely factored out from ...
22008         (undo_all): ... this.  Adjust.
22009
22010 2015-05-12  Richard Biener  <rguenther@suse.de>
22011
22012         PR tree-optimization/66101
22013         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22014         fixup if we turn a loop exit edge to a fallthru edge.
22015
22016 2015-05-12  Richard Biener  <rguenther@suse.de>
22017
22018         PR tree-optimization/37021
22019         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22020         (SLP_TREE_TWO_OPERATORS): New define.
22021         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22022         SLP_TREE_TWO_OPERATORS.
22023         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22024         SLP node.
22025         (vect_build_slp_tree): Adjust.
22026         (vect_analyze_slp_cost_1): Likewise.
22027         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22028         emitting two vector stmts and mixing the results.
22029
22030 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22031
22032         * call.c (print_z_candidates): Remove dead code.
22033
22034 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22035
22036         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22037         and zEC12_simple_fp.
22038         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22039         to 1.
22040
22041 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22042
22043         PR tree-optimization/66010
22044         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22045         ifn_va_arg.
22046         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22047         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22048         va_lists are passed, and remove corresponding handling.
22049         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22050         do_deref argument to ifn_va_arg.
22051         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22052         ifn_va_arg.
22053
22054 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22055
22056         PR target/65955
22057         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22058         REG before taking its REGNO.
22059
22060 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22061
22062         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22063         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22064         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22065         present to get more accurate information about the number of sign bit
22066         copies and non zero bits.
22067
22068 2015-05-12  Richard Biener  <rguenther@suse.de>
22069
22070         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22071         do not allow unrolling.
22072
22073 2015-05-11  Richard Henderson  <rth@redhat.com>
22074
22075         * config/i386/i386-modes.def (CCP): New.
22076         * config/i386/i386.c (put_condition_code): Handle it.
22077         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22078
22079 2015-05-11  Richard Henderson  <rth@redhat.com>
22080
22081         * target.def (md_asm_clobbers): Replace with...
22082         (md_asm_adjust): this.
22083         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22084         (TARGET_MD_ASM_ADJUST): New.
22085         * tm.texi: Rebuild.
22086         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22087         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22088         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22089
22090         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22091         constraints instead of lists of outputs and inputs.
22092         (expand_asm_stmt): Save and restore input_location around the
22093         body of the function.  Move asm data into vectors instead of
22094         building tree lists.  Generate cleanup sequences as needed,
22095         rather than waiting til the end.  Use new md_asm_adjust hook.
22096
22097         * config/vxworks.c: Include vec.h before target.h.
22098         * gimple.c: Likewise.
22099         * incpath.c: Likewise.
22100         * mode-switching.c: Likewise.
22101
22102         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22103         (cris_md_asm_adjust): this.
22104         (TARGET_MD_ASM_CLOBBERS): Remove.
22105         (TARGET_MD_ASM_ADJUST): New.
22106         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22107         (ix86_md_asm_adjust): this.
22108         (TARGET_MD_ASM_CLOBBERS): Remove.
22109         (TARGET_MD_ASM_ADJUST): New.
22110         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22111         (mn10300_md_asm_adjust): this.
22112         (TARGET_MD_ASM_CLOBBERS): Remove.
22113         (TARGET_MD_ASM_ADJUST): New.
22114         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22115         (rs6000_md_asm_adjust): this.
22116         (TARGET_MD_ASM_CLOBBERS): Remove.
22117         (TARGET_MD_ASM_ADJUST): New.
22118         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22119         (visium_md_asm_adjust): this.
22120         (TARGET_MD_ASM_CLOBBERS): Remove.
22121         (TARGET_MD_ASM_ADJUST): New.
22122
22123 2015-05-11  Richard Henderson  <rth@redhat.com>
22124
22125         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22126         if noutputs is zero.
22127         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22128
22129         * cfgexpand.c (expand_asm_operands): Merge into...
22130         (expand_asm_stmt): ... here.
22131
22132         * cfgexpand.c (expand_asm_operands): Don't call
22133         resolve_asm_operand_names.
22134         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22135
22136 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22137
22138         * dwarf2out.c (gen_member_die): Sanity check that we access
22139         TYPE_MAIN_VARIANT for TYPE_METHODS.
22140         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22141         checking TYPE_METHODS.
22142         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22143         if non-null.
22144         (build_distinct_type_copy): Clear TYPE_METHODS.
22145         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22146         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22147         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22148
22149 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22150
22151         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22152         (emit_pattern_before_setloc): Likewise.
22153
22154 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22155
22156         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22157         for define_peephole2s.
22158         (get_peephole2_pattern): New function.
22159         (main): Use it.  Call validate_pattern.
22160
22161 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22162
22163         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22164         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22165         (Last callee saved reg is different for AVR_TINY architecture)
22166
22167 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22168
22169         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22170         when looking for memory references.
22171
22172 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22173
22174         PR target/65753
22175         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22176         via function pointers.
22177
22178 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22179
22180         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22181         indirect call by forcing address into a pseudo with -fno-plt.
22182         * common.opt (flag_plt): New option.
22183         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22184         ([-fno-plt]): Document.
22185
22186 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22187
22188         PR bootstrap/66105
22189         * config/rs6000/option-defaults.h: Add space between string literal
22190         and macro name.
22191
22192 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22193
22194         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22195         accross ARM targets.
22196
22197 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22198
22199         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22200         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22201
22202 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22203
22204         PR rtl-optimization/66076
22205         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22206         Don't grow the heap array if it is already big enough from a
22207         previous iteration.
22208
22209 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22210
22211         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22212         (is_called_in_ARM_mode): Remove.
22213         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22214         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22215         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22216          arm_declare_function_name.
22217
22218 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22219
22220         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22221         (arm_option_params_internal); New function.
22222         (arm_option_check_internal): New function.
22223         (arm_option_override_internal): New function.
22224         (thumb_code, thumb1_code): Remove.
22225         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22226         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22227         (thumb_code, thumb1_code): Remove.
22228         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22229
22230 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22231
22232         * config/alpha/alpha.c (alpha_emit_set_const_1)
22233         (alpha_emit_set_long_const, alpha_extract_integer)
22234         (alpha_legitimate_constant_p, alpha_split_const_mov)
22235         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22236         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22237         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22238         HOST_WIDE_INT_1U.
22239         * config/alpha/predicates.md (mode_mask_operand): Do not match
22240         const_double RTX.
22241         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22242         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22243         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22244         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22245         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22246
22247 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22248
22249         PR target/65780
22250         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22251         default_binds_local_p_2.
22252         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22253         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22254
22255 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22256
22257         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22258
22259 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22260
22261         Patch by Richard Biener
22262         * coverage.c (coverage_obj_init): Delay building of type variant
22263         until the type is finished.
22264
22265 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22266
22267         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22268         mismatch between C and C++ type; compoare correctly ARG_TYPES
22269         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22270         (odr_types_equivalent_p): Fix wording of warning about attributes;
22271         it is OK to match prototype and non-prototype.
22272
22273 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22274
22275         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22276         TYPE_ARG_TYPES list.
22277         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22278         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22279
22280 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22281
22282         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22283         * tree.h (is_lang_specific): Constify.
22284
22285 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22286
22287         PR tree-optimization/64454
22288         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22289         Rewrite.
22290
22291 2015-05-08  Jason Merrill  <jason@redhat.com>
22292
22293         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22294         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22295         config/darwin.h, config/darwin9.h, config/elfos.h,
22296         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22297         config/microblaze/microblaze.h, config/mips/mips.h,
22298         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22299         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22300         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22301         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22302         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22303         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22304         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22305         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22306         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22307         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22308         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22309         between string literal and macro name.
22310
22311 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22312
22313         * jump.c: Change argument types to rtx_insn *.
22314         * rtl.h: Adjust.
22315
22316 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22317
22318         * lra-constraints.c: Change argument type to rtx_insn *.
22319
22320 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22321
22322         * df-problems.c: Change argument type to rtx_insn *.
22323
22324 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22325
22326         * combine.c: Change argument type to rtx_insn *.
22327
22328 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22329
22330         * rtl.h: Adjust.
22331         * rtlanal.c: Change argument type to rtx_insn *.
22332
22333 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22334
22335         * sched-deps.c: Change argument types to rtx_insn *.
22336         * sched-int.h: Adjust.
22337
22338 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22339
22340         * dwarf2cfi.c: Change argument type to rtx_insn *.
22341
22342 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22343
22344         * ira.c (decrease_live_ranges_number): Changetype of local
22345         variable to rtx_insn *.
22346         * recog.c: Change argument types to rtx_insn *.
22347         * recog.h: Adjust.
22348
22349 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22350
22351         * reorg.c: Change argument types to rtx_insn *.
22352
22353 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22354
22355         * ira-color.c: Change argument types to rtx_insn *.
22356         * lra-eliminations.c: Likewise.
22357         * ira.h: Adjust.
22358
22359 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22360
22361         * gcse.c: Change argument types to rtx_insn *.
22362
22363 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22364
22365         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22366
22367 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22368
22369         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22370         rtx_insn *.
22371         * rtl.h: Adjust.
22372
22373 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22374
22375         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22376         * rtl.h: Adjust.
22377
22378 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22379
22380         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22381         * rtl.h: Adjust.
22382
22383 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22384
22385         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22386         * rtl.h: Adjust.
22387
22388 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22389
22390         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22391         * rtl.h: Adjust.
22392
22393 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22394
22395         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22396         to rtx_insn *.
22397         * rtl.h: Adjust.
22398
22399 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22400
22401         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22402         to rtx_insn *.
22403         * rtl.h: Likewise.
22404
22405 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22406
22407         * except.c (can_nonlocal_goto): Change type of argument to
22408         rtx_insn *.
22409         * rtl.h: Adjust.
22410
22411 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22412
22413         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22414         * rtl.h: Adjust.
22415
22416 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22417
22418         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22419         * cfgrtl.c (can_delete_label_p): Adjust.
22420         * rtl.h: likewise.
22421
22422 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22423
22424         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22425
22426 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22427
22428         * except.c (make_reg_eh_region_note): Change argument to
22429         rtx_insn *.
22430         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22431         * except.h: Adjust.
22432
22433 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22434
22435         * mode-switching.c (commit_mode_sets): Change type of local
22436         variable from rtx to rtx_insn *.
22437
22438 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22439
22440         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22441         Add ^ to grep command.
22442         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22443         arg to last gimple_simplify declaration.  Add missing gimple_build
22444         declaration for built-in function case with four tree args.
22445
22446 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22447             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22448
22449         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22450         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22451         (GNU_USER_DYNAMIC_LINKERN32): Update.
22452
22453 2015-05-08  Richard Biener  <rguenther@suse.de>
22454
22455         PR tree-optimization/66036
22456         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22457         Handle strided group loads.
22458         (vect_verify_datarefs_alignment): Likewise.
22459         (vect_enhance_data_refs_alignment): Likewise.
22460         (vect_analyze_group_access): Likewise.
22461         (vect_analyze_data_ref_access): Likewise.
22462         (vect_analyze_data_ref_accesses): Likewise.
22463         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22464         (vectorizable_load): Likewise.
22465
22466 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22467
22468         * config/rs6000/rs6000.md: Require operand inequality in one
22469         of the peepholes.
22470
22471 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22472             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22473
22474         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22475         from (set ...).
22476         * config/rx/rx.md (movdi, movdf): Likewise.
22477         Likewise for define_peephole2s.
22478
22479 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22480
22481         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22482         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22483         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22484         vtst_u64): Rewrite using gcc vector extensions.
22485
22486 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22487
22488         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22489         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22490
22491 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22492
22493         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22494
22495 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22496
22497         * config/glibc-stdint.h (OPTION_MUSL): Define.
22498         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22499         Change the definition based on OPTION_MUSL for 64 bit targets.
22500         * config/linux.h (OPTION_MUSL): Redefine.
22501         * config/alpha/linux.h (OPTION_MUSL): Redefine.
22502         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22503         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22504
22505 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22506             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22507
22508         * config.gcc (LIBC_MUSL): New tm_defines macro.
22509         * config/linux.h (OPTION_MUSL): Define.
22510         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22511         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22512         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22513         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22514         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22515         * config/linux.opt (mmusl): New option.
22516         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22517         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22518         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22519         * configure: Regenerate.
22520
22521 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22522             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22523
22524         PR target/48904
22525         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22526         * config/i386/knetbsd-gnu64.h: New file.
22527
22528 2015-05-08  Marek Polacek  <polacek@redhat.com>
22529
22530         PR c/64918
22531         * doc/invoke.texi: Document -Woverride-init-side-effects.
22532
22533 2015-05-07  Marek Polacek  <polacek@redhat.com>
22534
22535         PR c/65179
22536         * doc/invoke.texi: Document -Wshift-negative-value.
22537
22538 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
22539
22540         * gcov-tool.c (do_merge): Refactore to remove int ret.
22541         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22542         !type == FUNC to type != FUNC.
22543         * reload.h (struct target_reload): Changee to type of
22544         x_spill_indirect_levels from bool to unsigned char.
22545
22546 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
22547
22548         * rtl.h (always_void_p): New function.
22549         * gengenrtl.c (always_void_p): Likewise.
22550         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22551         with code foo are always VOIDmode.
22552         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22553         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22554         compare-elim.c, config/aarch64/aarch64.c,
22555         config/aarch64/aarch64.md, config/alpha/alpha.c,
22556         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22557         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22558         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22559         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22560         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22561         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22562         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22563         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22564         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22565         config/ia64/vect.md, config/iq2000/iq2000.c,
22566         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22567         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22568         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22569         config/mep/mep.c, config/microblaze/microblaze.c,
22570         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22571         config/mn10300/mn10300.c, config/msp430/msp430.c,
22572         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22573         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22574         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22575         config/rs6000/altivec.md, config/rs6000/rs6000.c,
22576         config/rs6000/rs6000.md, config/rs6000/vector.md,
22577         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22578         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22579         config/sh/sh.md, config/sh/sh_treg_combine.cc,
22580         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22581         config/spu/spu.md, config/stormy16/stormy16.c,
22582         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22583         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22584         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22585         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22586         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22587         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22588         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22589         var-tracking.c: Update calls accordingly.
22590
22591 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22592
22593         PR middle-end/192
22594         PR middle-end/54303
22595         * varasm.c (function_mergeable_rodata_prefix): New function.
22596         (mergeable_string_section): Use it.
22597         (mergeable_constant_section): Use it.
22598
22599 2015-05-07  Jeff Law  <law@redhat.com>
22600
22601         PR target/39726
22602         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22603         simplifier to narrow arithmetic.
22604         * generic-match-head.c: (types_match, single_use): New functions.
22605         * gimple-match-head.c: (types_match, single_use): New functions.
22606
22607 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22608
22609         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22610         rtx type.
22611
22612 2015-05-07  Richard Biener  <rguenther@suse.de>
22613
22614         PR tree-optimization/66002
22615         * passes.def: Schedule another pass_merge_phi after ifcombine, right
22616         before phiopt.
22617
22618 2015-05-07  Marek Polacek  <polacek@redhat.com>
22619             Martin Uecker  <uecker@eecs.berkeley.edu>
22620
22621         * doc/invoke.texi: Document -fsanitize=bounds-strict.
22622         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22623         into SANITIZE_NONDEFAULT.
22624         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22625
22626 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
22627
22628         PR target/66015
22629         * config/alpha/alpha.c (alpha_override_options_after_change): New.
22630         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22631         (alpha_override_options): Move align_loops, align_jumps and
22632         align_functions handling into alpha_override_options_after_change.
22633
22634 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
22635             Chris Jones  <chrisj@nvidia.com>
22636             Joshua Conner  <jconner@nvidia.com>
22637
22638         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22639         linking of crtfastmath.o.
22640         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22641
22642 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
22643
22644         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22645         (cstore<mode>4_unsigned_imm): New expander.
22646         (cstore<mode>4): Remove empty constraint strings.  Use the new
22647         expanders.
22648
22649 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
22650
22651         PR target/64208
22652         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22653         alternatives.
22654
22655 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22656
22657         * config/aarch64/geniterators.sh: Use standard BRE in sed.
22658
22659 2015-05-06  Alan Modra  <amodra@gmail.com>
22660
22661         PR target/66033
22662         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22663         (UNSPEC_NOP): Define.
22664         (reload_vsx_from_gpr<mode>): Add missing DONE.
22665         (reload_gpr_from_vsx<mode>): Likewise.
22666         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22667         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22668
22669 2015-05-06  Christian Bruel  <christian.bruel@st.com>
22670
22671         PR target/66015
22672         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22673         align_jumps, align_functions into aarch64_override_options_after_change.
22674
22675 2015-05-06  Richard Biener  <rguenther@suse.de>
22676
22677         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22678         vect_transform_slp_perm_load to check if we support a permutation
22679         for basic-block vectorization.
22680
22681 2015-05-06  Nick Clifton  <nickc@redhat.com>
22682
22683         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22684         used, even if it is not being used as a frame pointer.
22685
22686 2015-05-05  Jason Merrill  <jason@redhat.com>
22687
22688         * dwarf2out.c (gen_member_die): Don't emit anything for an
22689         anonymous class constructor.
22690
22691 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
22692
22693         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22694         that it reflects the block structure.
22695         (afdo_propagate_edge): Likewise.
22696         (afdo_calculate_branch_prob): Likewise.
22697         (afdo_annotate_cfg): Likewise.
22698         * cfgcleanup.c (equal_different_set_p): Likewise.
22699         (try_crossjump_to_edge): Likewise.
22700         * cgraph.c (cgraph_node::verify_node): Likewise.
22701         * cgraphunit.c (expand_all_functions): Likewise.
22702         * config/i386/i386.c (ix86_expand_copysign): Likewise.
22703         (exact_dependency_1): Likewise.
22704         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22705         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22706         * gensupport.c (process_define_subst): Likewise.
22707         * lto-wrapper.c (merge_and_complain): Likewise.
22708         * tree-if-conv.c (if_convertible_bb_p): Likewise.
22709         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22710         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22711         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22712         * tree-vect-loop.c (vectorizable_reduction): Likewise.
22713         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22714         * tree-vect-stmts.c (vectorizable_shift): Likewise.
22715         * tree-vrp.c (vrp_finalize): Likewise.
22716         * tree.c (variably_modified_type_p): Likewise.
22717
22718 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
22719
22720         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22721         on darwin12 and later.
22722         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22723         file to pass -rdynamic on darwin12 and later.
22724         * config/darwin.opt (rdynamic): Add.
22725
22726 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22727
22728         * doc/extend.texi (C Extensions): Update menu for moved Variable
22729         Attributes and Type Attributes sections.
22730
22731 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22732
22733         PR target/65990
22734         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22735         if rep_8byte stringop strategy was specified for 32-bit target.
22736
22737 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
22738
22739         PR target/65915
22740         * config/i386/i386.md (vector convert to float spltiter): Check for
22741         xmm16+, when splitting scalar float conversion.
22742         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22743
22744 2015-05-05  Nick Clifton  <nickc@redhat.com>
22745
22746         * config/msp430/msp430-opts.h (enum msp430_regions): New.
22747         * config/msp430/msp430.c (msp430_override_options): Complain if
22748         -mcode-region or -mdata-region is used on a non MSP430X.
22749         (msp430_section_attr): New function.  Checks lower, upper and
22750         either attributes.
22751         (msp430_attribute_table): Add lower, upper and either.
22752         (gen_prefix): New function.  Generates a prefix for a section
22753         name.
22754         (msp430_select_section): New function - handles the choice of
22755         section for an object.  Takes into account memory region
22756         attributes and options.
22757         (msp430_function_section): Use gen_prefix.
22758         (TARGET_SECTION_TYPE_FLAGS): Define.
22759         (msp430_section_type_flags): New function.
22760         (TARGET_ASM_UNIQUE_SECTION): Define.
22761         (msp430_unique_section): New function.
22762         (msp430_output_aligned_decl_common): New function.
22763         (msp430_do_not_relax_short_jumps): New function.
22764         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22765         Define.
22766         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22767         * config/msp430/msp430-protos.h
22768         (msp430_do_not_relax_short_jumps): New prototype.
22769         (msp430_output_aligned_decl_common): New prototype.
22770         * config/msp430/msp430.md (length): New attribute.
22771         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22772         then use a long code sequence for short jumps.
22773         * config/msp430/msp430.opt (mcode-region): New.
22774         (mdata-region): New.
22775         * doc/invoke.texi: Document new options.
22776         * doc/extend.texi: Document new attributes.
22777
22778 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22779
22780         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22781         (tune_params): Add field branch_costs.
22782         (aarch64_branch_cost): Declare.
22783         * gcc/config/aarch64.c (generic_branch_cost): New.
22784         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22785         (cortexa53_tunings): Likewise.
22786         (cortexa57_tunings): Likewise.
22787         (thunderx_tunings): Likewise.
22788         (xgene1_tunings): Likewise.
22789         (aarch64_branch_cost): Define.
22790         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22791
22792 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22793
22794         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22795         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22796         * config/i386/i386.md: Ditto.
22797         * config/i386/winnt.c: Ditto.
22798
22799 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22800
22801         * doc/extend.texi (__atomic Builtins): Move implementation details
22802         to the end of the description, rewrite opening paragraphs, state
22803         difference with __sync builtins, state C11/C++11 assumptions,
22804         weaken itemized descriptions, add explanation of memory model
22805         behaviour, expand description of compare-exchange, simplify text.
22806
22807 2015-05-05  Renlin Li  <renlin.li@arm.com>
22808
22809         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22810
22811 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
22812
22813         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22814         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22815         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22816         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22817         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
22818         * configure: Regenerate.
22819         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
22820         * doc/install.texi (aarch64*-*-*): Document new
22821         --enable-fix-cortex-a53-843419 option.
22822         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
22823         and -mno-fix-cortex-a53-843419 options.
22824
22825 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22826
22827         PR target/65871
22828         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
22829
22830 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
22831
22832         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
22833         fix overactive TYPE_MIN_VALUE check and add FIXME for type
22834         compatibility problems.
22835
22836 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22837
22838         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
22839         constraints.
22840         (cbranchsi4_reg): New.
22841         * config/microblaze/microblaze.c
22842         (microblaze_expand_conditional_branch_reg): New.
22843         * config/microblaze/microblaze-protos.h
22844         (microblaze_expand_conditional_branch_reg): New prototype.
22845
22846 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
22847
22848         * config/microblaze/microblaze.md (peephole2): New.
22849
22850 2015-05-04  Jeff Law  <law@redhat.com>
22851
22852         Revert:
22853         2015-05-04  Jeff Law  <law@redhat.com>
22854
22855         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22856         simplifier to narrow arithmetic.
22857         * generic-match-head.c: (types_match, single_use): New functions.
22858         * gimple-match-head.c: (types_match, single_use): New functions.
22859
22860 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
22861
22862         PR target/65987
22863         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
22864         (split_branches): Likewise.
22865
22866 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
22867
22868         * common.opt (fdelete-null-pointer-checks): Init to -1.
22869         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
22870         override flag_delete_null_pointer_checks default.
22871         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
22872         behavior re address zero.  Better document target-specific behavior.
22873         (-fisolate-errneous-paths-dereference): Mention relationship to
22874         -fdelete-null-pointer-checks.
22875
22876 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22877
22878         PR tree-optimization/65984
22879         * ubsan.c: Include tree-cfg.h.
22880         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
22881         stmt_could_throw_p test, rename can_throw variable to ends_bb.
22882
22883 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22884
22885         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
22886         to CONST_DOUBLE_P predicate.
22887         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
22888         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
22889         allow only operands that satisfy standard_sse_constant_p predicate.
22890         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
22891         to CONST_DOUBLE_P predicate.
22892
22893 2015-05-04  Jeff Law  <law@redhat.com>
22894
22895         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22896         simplifier to narrow arithmetic.
22897         * generic-match-head.c: (types_match, single_use): New functions.
22898         * gimple-match-head.c: (types_match, single_use): New functions.
22899
22900 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
22901
22902         * config/arm/arm.c: Restore bootstrap.
22903
22904 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
22905
22906         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
22907         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
22908         as CONST_WIDE_INT, not CONST_DOUBLE.
22909         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
22910         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
22911         (ix86_find_base_term): Do not check for CONST_DOUBLE.
22912         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
22913         (ix86_build_signbit_mask): Rewrite using wide ints.
22914         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
22915         (ix86_rtx_costs): Handle CONST_WIDE_INT.
22916         (find_constant): Ditto.
22917         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
22918         using gen_int_mode.
22919         * config/i386/predicates.md (x86_64_immediate_operand)
22920         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22921         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
22922         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
22923         (const0_operand): Also match const_wide_int.
22924         (constm1_operand): Ditto.
22925         (const1_operand): Ditto.
22926
22927 2015-05-04  Richard Biener  <rguenther@suse.de>
22928
22929         PR tree-optimization/65965
22930         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
22931         store groups at gaps.
22932
22933 2015-05-04  Richard Biener  <rguenther@suse.de>
22934
22935         PR tree-optimization/65935
22936         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
22937         then make sure to apply that swapping to the IL.
22938
22939 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
22940
22941         * Makefile.in (PATCHLEVEL_c): New variable.
22942         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
22943         expand the same way as if DEVPHASE_c was non-empty.
22944
22945 2015-05-04  Kai Tietz  <ktietz@redhat.com>
22946
22947         PR target/65559
22948         * lto-wrapper.c (run_gcc): Open filename
22949         in binary-mode.
22950
22951 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
22952
22953         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
22954         sections up in file, to immediately after the Function Attributes
22955         section.
22956
22957 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
22958
22959         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
22960
22961 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22962
22963         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
22964         (insert_partition_copy_on_edge): Adjust.
22965         (insert_rtx_to_part_on_edge): Likewise.
22966         (insert_part_to_rtx_on_edge): Likewise.
22967
22968 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22969
22970         * function.c (set_return_jump_label): Change type of argument to
22971         rtx_insn *.
22972         * function.h (set_return_jump_label): Adjust.
22973
22974 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22975
22976         * reload.h (struct reg_equivs_t): Change type of init to
22977         rtx_insn *.
22978         * ira.c (fix_reg_equiv_init): Adjust.
22979         * reload1.c (eliminate_regs_1): Likewise.
22980         (init_eliminable_invariants): Likewise.
22981
22982 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22983
22984         * cselib.c (fp_setter_insn): Take a rtx_insn *.
22985         * cselib.h (fp_setter_insn): Adjust.
22986
22987 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22988
22989         * recog.c (struct validate_replace_src_data): Change type of
22990         insn field to rtx_insn *.
22991         (validate_replace_src_group): Change type of argument to rtx_insn *.
22992         * recog.h (validate_replace_src_group): Adjust.
22993
22994 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22995
22996         * haifa-sched.c: Change the type of some variables to rtx_insn *.
22997         * sched-deps.c: Likewise.
22998         * sched-int.h: Likewise.
22999         * sched-rgn.c: Likewise.
23000         * sel-sched.c: Likewise.
23001
23002 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23003
23004         to rtx_insn *.
23005         * config/i386/i386.c: Change the type of some arguments to
23006         rtx_insn *.
23007         * config/arm/arm.c: Likewise.
23008
23009 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23010
23011         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23012
23013 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23014
23015         * regcprop.c (kill_autoinc_value): Change type of argument to
23016         rtx_insn *.
23017
23018 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23019
23020         * genrecog.c (print_subroutine): Adjust.
23021         * recog.c (get_bool_attr_mask_uncached): Likewise.
23022         * recog.h (struct recog_data_d): Change the type of insn to
23023         rtx_insn *.
23024
23025 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23026
23027         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23028
23029 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23030
23031         * df-problems.c (df_set_note): Change type of argument to
23032         rtx_insn *.
23033
23034 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23035
23036         * builtins.c (expand_builtin_trap): Change type of local
23037         variable to rtx_insn *.
23038         (add_sched_insns_for_speculation): Likewise.
23039         (ix86_emit_save_regs): Likewise.
23040         (get_scratch_register_on_entry): Likewise.
23041         (ix86_emit_restore_reg_using_pop): Likewise.
23042         (ix86_emit_leave): Likewise.
23043         (ix86_emit_restore_regs_using_mov): Likewise.
23044         (ix86_expand_epilogue): Likewise.
23045         Likewise.
23046         (rl78_alloc_physical_registers_umul): Likewise.
23047         * cselib.c (discard_useless_locs): Likewise.
23048         (cselib_invalidate_regno): Likewise.
23049         (cselib_invalidate_mem): Likewise.
23050         * function.c (expand_function_start): Likewise.
23051         (emit_use_return_register_into_block): Likewise.
23052         * gcse.c: Likewise.
23053         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23054         * ifcvt.c (noce_get_alt_condition): Likewise.
23055         * loop-doloop.c (doloop_condition_get): Likewise.
23056         * lra-constraints.c (inherit_in_ebb): Likewise.
23057         * modulo-sched.c (sms_schedule_by_order): Likewise.
23058         * recog.c (next_insn_tests_no_inequality): Likewise.
23059         * reorg.c (emit_delay_sequence): Likewise.
23060         (update_reg_dead_notes): Likewise.
23061         (fix_reg_dead_note): Likewise.
23062         (fill_slots_from_thread): Likewise.
23063         (delete_computation): Likewise.
23064
23065 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23066
23067         * doc/extend.texi (Variable Attributes): Add menu and proper
23068         @nodes to subsections.  Move Microsoft Windows attributes to
23069         their own subsection.
23070         (Type Attributes): Reorganize introduction to remove duplicate
23071         list of attributes.  Add menu and proper @nodes to subsections.
23072         Alphabetize the main table of common attributes.
23073
23074 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23075
23076         * match.pd: New simplification patterns.
23077         (x + (x & 1))  -> ((x + 1) & ~1)
23078         (x & ~(x & y)) -> ((x & ~y))
23079         (x | ~(x | y)) -> ((x | ~y))
23080
23081 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23082
23083         * target.def (attribute_table): Mention that struct attribute_spec
23084         is defined in tree-core.h rather than tree.h
23085         * doc/tm.texi: Regenerate.
23086
23087 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23088
23089         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23090         accordingly.
23091
23092 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23093
23094         PR translation/65959
23095         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23096
23097 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23098
23099         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23100         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23101         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23102         Return value depending on target.
23103         (generic_tunings): Initialize new target settings.
23104         (cortexa53_tunings): Likewise.
23105         (cortexa57_tunings): Likewise.
23106         (thunderx_tunings): Likewise.
23107         (xgene1_tunings): Likewise.
23108
23109 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23110
23111         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23112         Make Cortex-A53 shift costs more accurate.
23113
23114 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23115
23116         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23117         UNSIGNED_FLOAT.
23118
23119 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23120
23121         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23122         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23123
23124 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23125
23126         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23127         Add cost of op0 in the compare-with-fpzero case.
23128
23129 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23130
23131         * builtins.c (fold_builtin_1): Remove spurious second
23132         semicolon.
23133         * cgraph.h (symtab_node::get_availability): Likewise.
23134         * opts.c (common_handle_option): Remove spurious second semicolon.
23135         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23136         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23137
23138 2015-04-30  Caroline Tice  <cmtice@google.com>
23139
23140         PR gcov-profile/65929
23141         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23142         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23143         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23144         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23145         * doc/tm.texi: Regenerate.
23146         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23147         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23148         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23149         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23150
23151 2015-04-30  Marek Polacek  <polacek@redhat.com>
23152
23153         * varasm.c (handle_cache_entry): Fix logic.
23154
23155 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23156
23157         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23158         (*extrsi5_insn_uxtw_alt): Likewise.
23159         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23160         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23161         operations.
23162
23163 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23164
23165         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23166         fabd in ABS case.
23167
23168 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23169
23170         * config/aarch64/aarch64.md
23171         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23172         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23173         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23174         appropriately.  Handle alternative EON form.
23175
23176 2015-04-30  Renlin Li  <renlin.li@arm.com>
23177
23178         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23179         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23180
23181 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23182
23183         PR ipa/65873
23184         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23185         -fstrict-aliasing boundaries.
23186
23187 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23188
23189         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23190         and [SU]MNEGL patterns.
23191
23192 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23193
23194         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23195         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23196         combined arithmetic-shift ops.  Properly handle all shift and extend
23197         operations that can occur in combination with PLUS/MINUS.
23198         Rename maybe_fma to compound_p.
23199         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23200         arithmetic and shift operations.
23201
23202 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23203
23204         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23205         rather than arith_shift cost when costing ADD/MINUS of an
23206         extended value.
23207
23208 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23209
23210         PR lto/65948
23211         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23212         to itself.
23213
23214 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23215
23216         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23217         are for the same position.
23218
23219 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23220
23221         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23222         vectorize_loops.
23223         (vectorize_loops): Use it.
23224
23225 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23226
23227         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23228         for aggregate types.
23229         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23230         type to be non_ODR.
23231         * tree.c (need_assembler_name_p): Compute mangled name for
23232         non-fundamental types and integer types.
23233
23234 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23235
23236         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23237         manual swaps.
23238         * expr.c (expand_expr_real_2): Likewise.
23239
23240 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23241
23242         * tree.c (build_common_builtin_nodes): Do not build
23243         __builtin_alloca_with_align as equivalent of library alloca.
23244
23245 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23246
23247         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23248         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23249         bugus variants.
23250         * tree.c: Include print-tree.h and ipa-utils.h
23251         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23252         (free_lang_data_in_cgraph): Call verify_type.
23253         (verify_type_variant): New function.
23254         (verify_type): New function.
23255         * tree.h (verify_type): Declare.
23256
23257 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23258
23259         * config/mips/mips-cpus.def: (mips4): Change default processor
23260         from PROCESSOR_R8000 to PROCESSOR_R10000.
23261
23262 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23263
23264         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23265         la/jalr instead of jal.
23266
23267 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23268
23269         PR target/65871
23270         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23271         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23272         (setcc+movzbl peephole2): Check also clobbered reg.
23273         (setcc+andl peephole2): Ditto.
23274
23275 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23276
23277         PR libgomp/65099
23278         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23279         (main): Set it depending on "-foffload-abi=[...]".
23280         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23281         compiler.
23282
23283 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23284
23285         PR target/65770
23286         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23287         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23288         Flip lane index back at assembly time for bigendian.
23289
23290 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23291
23292         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23293         * gimplify.c (gimplify_omp_workshare): Use it.
23294
23295 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23296
23297         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23298         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23299         build/inchash.o
23300         * genrecog.c: Rewrite most of the code except for the third page.
23301
23302 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23303
23304         * inchash.h, inchash.c: Include bconfig.h for build objects.
23305         * Makefile.in (build/inchash.o): New rule.
23306
23307 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23308
23309         PR target/65924
23310         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23311         number in type attribute expression.
23312
23313 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23314
23315         * loop-iv.c (canon_condition): Generalize to all types of integer
23316         constant.
23317
23318 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23319
23320         * gimple-walk.c: Prune duplicate or unneeded includes.
23321         (walk_gimple_asm): Only call parse_input_constraint or
23322         parse_output_constraint if their findings are used.
23323         Honour parse_input_constraint and parse_output_constraint
23324         result.
23325
23326 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23327
23328         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23329
23330 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23331
23332         PR tree-optimization/65893
23333         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23334         pass_dce.
23335
23336 2015-04-29  Richard Biener  <rguenther@suse.de>
23337
23338         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23339         compute GROUP_SIZE for basic-block SLP.
23340         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23341         take into account gaps.
23342         (vect_get_mask_element): Properly reject references to previous
23343         vectors.
23344         (vect_transform_slp_perm_load): Likewise.
23345
23346 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23347
23348         PR target/64835
23349         * config/i386/i386.c (ix86_default_align): New function.
23350         (ix86_override_options_after_change): Call ix86_default_align.
23351         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23352         (ix86_override_options_after_change): New function.
23353
23354 2015-04-28  Jeff Law  <law@redhat.com>
23355
23356         * tree-ssa-dom.c (record_equality); Fix comment typos.
23357
23358 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23359
23360         PR tree-optimization/65887
23361         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23362
23363 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23364
23365         * doc/extend.texi (Declaring Attributes of Functions): Split into
23366         subsections by target.  Alphabetize the table of common attributes.
23367         Rewrite some of the introductory text to reflect the new structure.
23368         Update some cross-references to point to the new subsections.
23369         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23370         duplicate copies in the discussion of function, label, and type
23371         attributes.
23372
23373 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23374
23375         PR bootstrap/65910
23376         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23377
23378 2015-04-28  Jason Merrill  <jason@redhat.com>
23379
23380         PR c++/65734
23381         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23382         (finalize_type_size): Respect TYPE_USER_ALIGN.
23383         (layout_type) [ARRAY_TYPE]: Likewise.
23384
23385 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23386
23387         * config/arm/arm.md (*arm_movt): Fix type attribute.
23388         (*cmpsi_shiftsi): Likewise.
23389         (*cmpsi_shiftsi_swp): Likewise.
23390         (*movsicc_insn): Likewise.
23391         (*cond_move): Likewise.
23392         (*if_plus_move): Likewise.
23393         (*if_move_plus): Likewise.
23394         (*if_arith_move): Likewise.
23395         (*if_move_arith): Likewise.
23396         (*if_shift_move): Likewise.
23397         (*if_move_shift): Likewise.
23398         (*arm_movtas_ze): Likewise.
23399         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23400         redundancy and type attribute.
23401         (*thumb2_movsi_insn): Fix type attribute.
23402         (*thumb2_addsi_short): Likewise.
23403         (thumb2_addsi3_compare0): Likewise.
23404         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23405         attributes accordingly.
23406
23407 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23408
23409         PR other/65911
23410         * function.c (pad_to_arg_alignment): Add parentheses.
23411
23412 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23413
23414         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23415         libgcc/config/frv/elf-lib.h.
23416
23417 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23418
23419         * tree-call-cdce.c: Fix example in header comment.
23420
23421 2015-04-28  Richard Biener  <rguenther@suse.de>
23422
23423         PR tree-optimization/62283
23424         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23425         fails fatally and we are vectorizing a basic-block simply
23426         cause the child to be constructed piecewise.
23427         (vect_analyze_slp_cost_1): Adjust.
23428         (vect_detect_hybrid_slp_stmts): Likewise.
23429         (vect_bb_slp_scalar_cost): Likewise.
23430         (vect_get_constant_vectors): For piecewise constructed
23431         constants place them after the last def.
23432         (vect_get_slp_defs): Adjust.
23433         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23434         externals for basic-block vectorization.
23435
23436 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23437
23438         PR target/63503
23439         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23440         aarch64-*-*.
23441         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23442         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23443         (AARCH64_TUNE_FMA_STEERING): Likewise.
23444         * config/aarch64/aarch64-cores.def: Set
23445         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23446         FMUL/FMADD instructions.
23447         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23448         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23449         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23450         * config/aarch64/cortex-a57-fma-steering.h: New file.
23451         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23452
23453 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23454
23455         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23456
23457 2015-04-28  Richard Biener  <rguenther@suse.de>
23458
23459         PR tree-optimization/65851
23460         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23461         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23462         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23463         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23464         (ccp_visit_phi_node): Adjust.
23465         (evaluate_stmt): For simplifications to SSA names return its
23466         lattice value if that isn't VARYING.  Return immediately when
23467         simplified to a constant.
23468         (visit_assignment): Adjust.
23469         (ccp_visit_stmt): Likewise.
23470
23471 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23472
23473         PR tree-optimization/65818
23474         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23475         evaluated.
23476
23477 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23478
23479         * calls.c (save_fixed_argument_area): Don't check
23480         ARGS_GROW_DOWNWARD with the preprocessor.
23481         (restore_fixed_argument_area): Likewise.
23482         (mem_overlaps_already_clobbered_arg_p): Likewise.
23483         (check_sibcall_argument_overlap): Likewise.
23484         (expand_call): Likewise.
23485         (emit_library_call_value_1): Likewise.
23486         (store_one_arg): Likewise.
23487         * function.c (assign_parms): Likewise.
23488         (locate_and_pad_parm): Likewise.
23489         (pad_to_arg_alignment): Likewise.
23490         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23491
23492 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23493
23494         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23495         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23496         * calls.c (save_fixed_argument_area): Don't chekc if
23497         ARGS_GROW_DOWNWARD is defined.
23498         (restore_fixed_argument_area): Likewise.
23499         (mem_overlaps_already_clobbered_arg_p): Likewise.
23500         (check_sibcall_argument_overlap): Likewise.
23501         (expand_call): Likewise.
23502         (emit_library_call_value_1): Likewise.
23503         (store_one_arg): Likewise.
23504         * function.c (assign_parms): Likewise.
23505         (locate_and_pad_parm): Likewise.
23506         (pad_to_arg_alignment): Likewise.
23507         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23508
23509 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23510
23511         * defaults.h (gen_epilogue): New function.
23512         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23513         defined.
23514         * cfgrtl.c (cfg_layout_finalize): Likewise.
23515         * df-scan.c: Likewise.
23516         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23517         (reposition_prologue_and_epilogue_notes): Likewise.
23518         * reorg.c (find_end_label): Likewise.
23519         * toplev.c: Likewise.
23520
23521 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23522
23523         * bb-reorder.c (HAVE_return): Don't check if its undefined.
23524         * defaults.h (gen_simple_return): New function.
23525         (gen_simple_return): Likewise.
23526         (HAVE_return): Add default definition to false.
23527         (HAVE_simple_return): Likewise.
23528         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23529         HAVE_return and HAVE_simple_return are defined.
23530         * function.c (gen_return_pattern): Likewise.
23531         (convert_jumps_to_returns): Likewise.
23532         (thread_prologue_and_epilogue_insns): Likewise.
23533         * reorg.c (find_end_label): Likewise.
23534         (dbr_schedule): Likewise.
23535         * shrink-wrap.c: Likewise.
23536         * shrink-wrap.h: Likewise.
23537
23538 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23539
23540         * defaults.h (EPILOGUE_USES): Add default definition of false.
23541         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23542         * resource.c (init_resource_info): Likewise.
23543
23544 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23545
23546         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23547         to false.
23548         * dwarf2out.c (field_byte_offset): REmove check if
23549         PCC_BITFIELD_TYPE_MATTERS is defined.
23550         * stor-layout.c (layout_decl): Likewise.
23551         (update_alignment_for_field): Likewise.
23552         (place_field): Likewise.
23553
23554 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23555
23556         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23557         true.
23558         * regrename.c (check_new_reg_p): Remove check if
23559         HARD_REGNO_RENAME_OK is defined.
23560         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23561
23562 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23563
23564         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23565         * cse.c (fold_rtx): Likewise.
23566         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23567         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23568         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23569         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23570         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23571         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23572         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23573         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23574         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23575         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23576         * Likewise.
23577         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23578         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23579         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23580         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23581         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23582         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23583         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23584         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23585         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23586         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23587         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23588         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23589         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23590         * doc/tm.texi: Regenerate.
23591         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23592         either true or false.
23593
23594 2015-04-27  Jeff Law  <law@redhat.com>
23595
23596         PR tree-optimization/65217
23597         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23598         of them has a single use, make sure it is the LHS of the implied
23599         copy.
23600
23601 2015-04-28  Alan Modra  <amodra@gmail.com>
23602
23603         PR target/65810
23604         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23605         (offsettable_ok_by_alignment): Use minimum of decl and toc
23606         pointer alignment.  Replace dead code with assertion.
23607         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
23608         case if size exceeds toc pointer alignment.
23609         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23610         (rs6000_emit_move): Likewise.
23611         * configure.ac: Add linker toc pointer alignment check.
23612         * configure: Regenerate.
23613         * config.in: Regenerate.
23614
23615 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
23616
23617         * config.gcc: Add h8300-*-linux.
23618         * config/h8300/linux.h: New.
23619         * config/h8300/t-linux: New.
23620         * config/h8300/h8300.c (h8300_option_override): Normal mode
23621         is not supported for h8300-*-linux.
23622         (h8300_file_start): Target priority change.
23623         (get_shift_alg): Likewise.
23624         (h8300_shift_need_scratch_p): Likewise.
23625         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23626         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23627
23628 2015-04-27  Caroline Tice  <cmtice@google.com>
23629
23630         * final.c (final_scan_insn):  Output cold_function_name as function
23631         type.
23632         * varasm.c (cold_function_name):  Make global.
23633         (assemble_start_function):  Re-set cold_function_name.
23634         (assemble_end_function): Output cold partition size.
23635         * varasm.h (cold_function_name):  Declare global.
23636
23637 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
23638
23639         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23640         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23641         constraint.
23642         (*movxi_internal_avx512f): Ditto.
23643         (define_split): Check for xmm16+, when splitting scalar float_extend.
23644         (*extendsfdf2_mixed): Use "v" constraint.
23645         (define_split): Check for xmm16+, when splitting scalar float_truncate.
23646         (*truncdfsf_fast_sse): Use "v" constraint.
23647         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23648         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23649         (define_peephole2): Check for xmm16+, when converting scalar
23650         float_truncate.
23651         (define_peephole2): Check for xmm16+, when converting scalar
23652         float_extend.
23653         (*fop_<mode>_comm_mixed): Use "v" constraint.
23654         (*fop_<mode>_comm_sse): Ditto.
23655         (*fop_<mode>_1_mixed): Ditto.
23656         (*sqrt<mode>2_sse): Ditto.
23657         (*ieee_s<ieee_maxmin><mode>3): Ditto.
23658
23659 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23660
23661         * combine.c (simplify_if_then_else): Use std::swap instead
23662         of manually swapping.
23663         (known_cond): Likewise.
23664         (simplify_comparison): Likewise.
23665
23666 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
23667
23668         PR target/64579
23669         * config/rs6000/htm.md: Remove all define_expands.
23670         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23671         UNSPECV_HTM_TABORTWCI): Remove.
23672         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23673         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23674         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23675         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23676         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23677         tabortwci_internal): Remove define_insns.
23678         (tabort<wd>c, tabort<wd>ci): New define_insns.
23679         (tabort): Use gpc_reg_operand.
23680         (tcheck): Remove operand.
23681         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23682         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23683         expected value.
23684         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23685         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
23686         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23687         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23688         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23689         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23690         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23691         (tcheck): Remove builtin argument.
23692         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23693         not TARGET_64BIT.
23694         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
23695         tabortdc and tabortdci builtins when not in 64-bit mode.
23696         Modify code to handle the loss of the HTM define_expands.
23697         Emit code to copy the CR register to TARGET.
23698         (htm_init_builtins): Modify code to handle the loss of the HTM
23699         define_expands.
23700         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23701         (RS6000_BTC_64BIT): Likewise.
23702         (RS6000_BTC_CR): New macro.
23703         * doc/extend.texi: Update documentation for htm builtins.
23704
23705 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23706
23707         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23708         of manually swapping.
23709         (simplify_associative_operation): Likewise.
23710         (simplify_binary_operation): Likewise.
23711         (simplify_plus_minus): Likewise.
23712         (simplify_relational_operation): Likewise.
23713         (simplify_ternary_operation): Likewise.
23714
23715 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23716
23717         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23718         (xs_hi_nonmemory_operand): Remove error.
23719         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23720         general_operand rather than xs_hi_general_operand.
23721
23722 2015-04-27  Richard Biener  <rguenther@suse.de>
23723
23724         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23725         (record_equivalences_from_stmt): Valueize rhs.
23726         (record_equality): Canonicalize x and y order via
23727         tree_swap_operands_p.  Do not swap operands for same loop depth.
23728
23729 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
23730
23731         PR target/65296
23732         PR target/65895
23733         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23734         Add hint how to use own spec file.
23735
23736 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
23737
23738         PR tree-optimization/65875
23739         * tree-vrp.c (update_value_range): If in is_new case setting
23740         old_vr to VR_VARYING, also set new_vr to it.  Remove
23741         old_vr->type == VR_VARYING test.
23742         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23743         SSA_PROP_INTERESTING if update_value_range returned true,
23744         but new range is VR_VARYING.
23745
23746 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23747
23748         * combine.c (sign_extend_short_imm): New.
23749         (set_nonzero_bits_and_sign_copies): Use above new function for sign
23750         extension of src short immediate.
23751         (reg_nonzero_bits_for_combine): Likewise for tem.
23752
23753 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23754
23755         * stor-layout.c (self_referential_component_ref_p): New predicate.
23756         (copy_self_referential_tree_r): Use it.
23757         (self_referential_size): Punt for simple operations directly involving
23758         self-referential component references.
23759         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23760
23761 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23762
23763         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23764
23765 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23766
23767         * vec.h (vec): Make splice arguments const.  Update definitions
23768         accordingly.
23769
23770 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
23771
23772         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23773         alternatives.
23774
23775 2015-04-26  Tom de Vries  <tom@codesourcery.com>
23776
23777         PR tree-optimization/65826
23778         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23779
23780 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
23781
23782         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23783         (*madd3<mode>): Ditto.
23784         (*msub4<mode>): Ditto.
23785         (*msub3<mode>): Ditto.
23786         (*nmadd4<mode>): Ditto.
23787         (*nmadd3<mode>): Ditto.
23788         (*nmadd4<mode>_fastmath): Ditto.
23789         (*nmadd3<mode>_fastmath): Ditto.
23790         (*nmsub4<mode>): Ditto.
23791         (*nmsub3<mode>): Ditto.
23792         (*nmsub4<mode>_fastmath): Ditto.
23793         (*nmsub3<mode>_fastmath): Ditto.
23794
23795 2015-04-24  Jason Merrill  <jason@redhat.com>
23796
23797         PR c++/50800
23798         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23799         down when building TYPE_CANONICAL.
23800         (build_pointer_type_for_mode): Likewise.
23801
23802 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
23803
23804         * genrecog.c (validate_pattern): Check matching constraint refers
23805         to a lower numbered operand.
23806
23807 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23808
23809         PR target/65849
23810         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23811         save to independent variables use the Save attribute.  This will
23812         allow these options to be modified with the #pragma/attribute
23813         target support.
23814         (-mallow-movmisalign): Likewise.
23815         (-mallow-df-permute): Likewise.
23816         (-msched-groups): Likewise.
23817         (-malways-hint): Likewise.
23818         (-malign-branch-targets): Likewise.
23819         (-mvectorize-builtins): Likewise.
23820         (-msave-toc-indirect): Likewise.
23821
23822         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
23823         can be set via the #pragma/attribute target support.
23824         (rs6000_opt_vars): Likewise.
23825         (rs6000_inner_target_options): If VSX was set, also set
23826         -mno-avoid-indexed-addresses.
23827
23828 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23829
23830         * config/arm/iterators.md (shiftable_ops): Rename to...
23831         (SHIFTABLE_OPS): ... This.  Update use in comments.
23832         (ior_xor): Rename to...
23833         (IOR_XOR): ... This.
23834         (vqh_ops): Rename to...
23835         (VQH_OPS): ... This.
23836         (vqhs_ops): Rename to...
23837         (VQHS_OPS): ... This.
23838         (rshifts): Rename to...
23839         (RSHIFTS): ... This.
23840         (returns): Rename to...
23841         (RETURNS): ... This.
23842         * config/arm/arm.md: Update uses of the above.
23843         * config/arm/neon.md: Likewise.
23844
23845 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23846
23847         * config.host (case ${host}): Add aarch64*-*-linux case.
23848         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
23849         fields to all the cores.
23850         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
23851         Add MCPU_MTUNE_NATIVE_SPECS.
23852         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
23853         field to all extensions.
23854         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
23855         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
23856         Adjust definition of AARCH64_OPT_EXTENSION.
23857         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
23858         (MCPU_MTUNE_NATIVE_SPECS): Define.
23859         * config/aarch64/driver-aarch64.c: New file.
23860         * config/aarch64/x-arch64: New file.
23861         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
23862         -mtune and -march.
23863
23864 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23865             Wei Mi  <wmi@google.com>
23866
23867         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
23868         * config/i386/i386.c (extract_base_offset_in_addr): New function.
23869         (ix86_operands_ok_for_move_multiple): Ditto.
23870         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
23871         (movlpd/movhpd to movupd peephole2): Ditto.
23872
23873 2015-04-24  Marek Polacek  <polacek@redhat.com>
23874
23875         PR c/61534
23876         * input.h (from_macro_expansion_at): Define.
23877
23878         PR c/63357
23879         * doc/invoke.texi: Update description of -Wlogical-op.
23880
23881 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23882
23883         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
23884         ternary operator in fprintf and harmonize spacing.
23885
23886 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23887
23888         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
23889         Mark operand1 commutative.
23890
23891 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
23892
23893         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
23894         input operands in memory.
23895         (*vec_concatv2si_sse4_1): Ditto.
23896         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
23897         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
23898         register_operand.
23899         (vec_extract_hi_v32hi): Ditto.
23900         (vec_extract_hi_v64hi): Ditto.
23901         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
23902
23903 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23904             Steven Bosscher <steven@gcc.gnu.org>
23905
23906         PR rtl-optimization/34503
23907         * cprop.c (cprop_reg_p): New.
23908         (hash_scan_set): Use above function to check if register can be
23909         propagated.
23910         (find_avail_set): Return up to two sets, one whose source is a
23911         register and one whose source is a constant.  Sets are returned in an
23912         array passed as parameter rather than as a return value.
23913         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
23914         sets returned by find_avail_set, starting with the one whose source is
23915         a constant. Use cprop_reg_p to check if register can be propagated.
23916         (do_local_cprop): Use cprop_reg_p to check if register can be
23917         propagated.
23918         (implicit_set_cond_p): Likewise.
23919
23920 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23921
23922         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
23923         (sem_function::equals): IGNORED_NODES parameter is now unused;
23924         update call of equals_private.
23925         (sem_function::equals_private): Do not call equals_wpa; skip
23926         gimple body matching if there is no body.
23927         (sem_function::init): Add logic to hash tthunk info.
23928         (sem_function::parse): Also parse thunks.
23929         * ipa-icf.h (equals_private): Update declaration.
23930
23931 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23932
23933         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
23934         asterisk from name so this can be generated directly.
23935         (*altivec_stvx_<mode>_internal): Likewise.
23936         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
23937         that this is never called during or after reload/lra.
23938         (rs6000_frame_related): Remove split_reg
23939         argument and logic that references it.
23940         (emit_frame_save): Remove last parameter from call to
23941         rs6000_frame_related.
23942         (rs6000_emit_prologue): Remove last parameter from eight calls to
23943         rs6000_frame_related.  Force generation of stvx instruction for
23944         Altivec register saves.  Remove split_reg handling, which is no
23945         longer needed.
23946         (rs6000_emit_epilogue):  Force generation of lvx instruction for
23947         Altivec register restores.
23948
23949 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23950
23951         * config/rs6000/rs6000.opt (mcrypto): Change option description to
23952         match category changes in ISA 2.07B.
23953
23954 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23955
23956         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
23957         iterators.
23958         (cmp_op, cmp_type): New code attributes.
23959         (NEON_VCMP, NEON_VACMP): New int iterators.
23960         (cmp_op_unsp): New int attribute.
23961         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
23962         (neon_vceq<mode>): Delete.
23963         (neon_vc<cmp_op><mode>_insn): New pattern.
23964         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
23965         (neon_vcgeu<mode>): Delete.
23966         (neon_vcle<mode>): Likewise.
23967         (neon_vclt<mode>: Likewise.
23968         (neon_vcage<mode>): Likewise.
23969         (neon_vcagt<mode>): Likewise.
23970         (neon_vca<cmp_op><mode>): New define_expand.
23971         (neon_vca<cmp_op><mode>_insn): New pattern.
23972         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
23973
23974 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23975
23976         * tree.h (attribute_value_equal): Declare.
23977         * tree.c (attribute_value_equal): Export.
23978
23979 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23980
23981         * ipa-icf.c (sem_item::compare_attributes): New function.
23982         (sem_item::compare_referenced_symbol_properties): Compare variable
23983         attributes.
23984         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
23985         (sem_function::param_used_p): New function.
23986         (sem_function::equals_wpa): Fix attribute comparsion; match
23987         parameter type codes; do not compare paremter flags when
23988         they are not used; compare edge flags; compare indirect calls.
23989         (sem_item::update_hash_by_addr_refs): Hash reference type.
23990         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
23991         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
23992         reference use type.
23993         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
23994         * ipa-icf.h (compare_attributes, param_used_p): Declare.
23995
23996 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
23997
23998         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
23999         cleanup.
24000         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24001         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24002         (sem_item::compare_referenced_symbol_properties): New.
24003         (sem_item::hash_referenced_symbol_properties): New.
24004         (sem_item::compare_cgraph_references): Rename to ...
24005         (sem_item::compare_symbol_references): ... this one; use
24006         compare_referenced_symbol_properties.
24007         (sem_function::equals_wpa): Do not compare
24008         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24009         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24010         (sem_item::update_hash_by_addr_refs): Call
24011         hash_referenced_symbol_properties.
24012         (sem_item::update_hash_by_local_refs): Cleanup.
24013         (sem_function::merge): Do not mix up symbol properties.
24014         (sem_variable::equals_wpa): Use compare_symbol_references.
24015         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24016         (sem_item::hash_referenced_symbol_properties): New.
24017         (sem_item::compare_symbol_references): New.
24018         (sem_item::compare_cgraph_references): Remove.
24019
24020 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24021
24022         PR target/26702
24023         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24024         Emit size of local.
24025
24026 2015-04-23  Nick Clifton  <nickc@redhat.com>
24027
24028         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24029         ATTRIBUTE_UNUSED to x parameter.
24030         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24031
24032 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24033
24034         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24035         TARGET_CRYPTO to TARGET_P8_VECTOR>
24036         (crypto_vpermxor_<mode>): Likewise.
24037         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24038         (BU_CRYPTO_3A): Likewise.
24039         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24040         (BU_CRYPTO_OVERLOAD_3A): New #define.
24041         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24042         (VPMSUMH): Likewise.
24043         (VPMSUMW): Likewise.
24044         (VPMSUMD): Likewise.
24045         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24046         (VPERMXOR_V4SI): Likewise.
24047         (VPERMXOR_V8HI): Likewise.
24048         (VPERMXOR_V16QI): Likewise.
24049         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24050         BU_CRYPTO_OVERLOAD_2A.
24051         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24052         BU_CRYPTO_OVERLOAD_3A.
24053         * config/rs6000/rs6000.opt (mcrypto): Change description of
24054         option.
24055
24056 2015-04-23  Richard Biener  <rguenther@suse.de>
24057
24058         * passes.def: Remove copy propagation passes run directly after CCP.
24059         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24060         SSA names.
24061         (ccp_visit_phi_node): Rework to handle first executable edge
24062         specially.
24063
24064 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24065
24066         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24067         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24068         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24069         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24070         (thumb_legimitimize_reload_address): Remove.
24071         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24072         Remove.
24073         (thumb_legimitimize_reload_address): Remove.
24074
24075 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24076
24077         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24078
24079 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24080
24081         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24082         MAX_LDM_STM_OPS.
24083         (store_multiple): Likewise.
24084
24085 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24086
24087         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24088         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24089         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24090         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24091         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24092         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24093         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24094         Specify issue_rate value.
24095         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24096         large switch statement.
24097         (arm_marvell_pj4_tune): New struct.
24098         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24099         struct.
24100
24101 2015-04-23  Richard Biener  <rguenther@suse.de>
24102
24103         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24104         (vect_find_last_store_in_slp_instance): Rename to ...
24105         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24106         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24107         and vec_construct for external defs when estimating prologue cost.
24108         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24109         Compute costs here only when vectorizing loops.
24110         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24111         have been determined.
24112         (vect_schedule_slp_instance): Simplify vectorized code placement
24113         and prepare for in-BB external defs.
24114         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24115         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24116         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24117         guard.
24118         (vect_model_load_cost): Likewise.
24119         (vectorizable_store): Instead add it here.
24120         (vectorizable_load): Likewise.
24121         (vect_is_simple_use): Dump def type textually.
24122
24123 2015-04-23  Richard Biener  <rguenther@suse.de>
24124
24125         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24126         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24127         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24128         instead of get_eh_region_from_lp_number.
24129         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24130         the SCEV cache.
24131
24132 2015-04-23  Anton Blanchard  <anton@samba.org>
24133
24134         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24135         need for -mprofile-kernel to save LR to stack.
24136
24137 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24138
24139         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24140         adjustments.
24141         (insn_is_swappable_p): Return 1 for a convert from double to
24142         single precision when all of its uses are splats of BE element
24143         zero.
24144
24145 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24146
24147         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24148
24149 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24150
24151         PR target/65456
24152         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24153         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24154         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24155         option.
24156         (rs6000_builtin_mask_for_load): Return 0 for targets with
24157         efficient unaligned VSX accesses so that the vectorizer will use
24158         direct unaligned loads.
24159         (rs6000_builtin_support_vector_misalignment): Always return true
24160         for targets with efficient unaligned VSX accesses.
24161         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24162         stores on targets with efficient unaligned VSX accesses is almost
24163         always the same as the cost of an aligned load or store, so model
24164         it that way.
24165         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24166         unaligned vectors if we have efficient unaligned VSX accesses.
24167         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24168         undocumented option.
24169
24170 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24171
24172         Revert:
24173         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24174
24175         * config.gcc (LIBC_MUSL): New tm_defines macro.
24176         * config/linux.h (OPTION_MUSL): Define.
24177         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24178         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24179         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24180
24181         * config/linux.opt (mmusl): New option.
24182         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24183         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24184
24185         * configure: Regenerate.
24186
24187 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24188
24189         * config.gcc (LIBC_MUSL): New tm_defines macro.
24190         * config/linux.h (OPTION_MUSL): Define.
24191         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24192         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24193         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24194
24195         * config/linux.opt (mmusl): New option.
24196         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24197         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24198
24199         * configure: Regenerate.
24200
24201 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24202
24203         * doc/invoke.texi (-fsanitize-sections): Update description.
24204         * asan.c (set_sanitized_sections): Parse incoming arg.
24205         (section_sanitized_p): Support wildcards.
24206
24207 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24208
24209         PR tree-optimization/65823
24210         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24211         equality between ap_copy and ap.
24212
24213 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24214
24215         PR target/47098
24216         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24217
24218 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24219
24220         PR target/47122
24221         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24222
24223 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24224
24225         PR target/55144
24226         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24227         remove already contained t-files.
24228
24229 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24230
24231         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24232         Remove unneeded forward declarations.
24233         (suitable_for_tail_call_opt_p): Commentary typo fix.
24234
24235 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24236
24237         * varasm.c (emit_bss): Remove redundant guard.
24238
24239 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24240
24241         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24242
24243 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24244
24245         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24246
24247 2015-04-22  Hale Wang  <hale.wang@arm.com>
24248             Terry Guo  <terry.guo@arm.com>
24249
24250         PR rtl-optimization/64818
24251         * combine.c (can_combine_p): Don't combine user-specified
24252         register if it is in an asm input.
24253
24254 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24255
24256         PR ipa/65076
24257         * passes.def (early_optimizations): Add pass_dse.
24258
24259 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24260
24261         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24262         * reorg.c (redundant_insn): Remove ifdef
24263         INSN_REFERENCES_ARE_DELAYED.
24264         * resource.c (mark_referenced_resources): Likewise.
24265
24266 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24267
24268         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24269         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24270         * resource.c (mark_set_resources): Likewise.
24271
24272 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24273
24274         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24275         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24276         (flow_find_head_matching_sequence): Likewise.
24277         (try_head_merge_bb): Likewise.
24278         * combine.c (can_combine_p): Likewise.
24279         (try_combine): Likewise.
24280         (distribute_notes): Likewise.
24281         * df-problems.c (can_move_insns_across): Likewise.
24282         * final.c (final): Likewise.
24283         * gcse.c (insert_insn_end_basic_block): Likewise.
24284         * ira.c (find_moveable_pseudos): Likewise.
24285         * reorg.c (try_merge_delay_insns): Likewise.
24286         (fill_simple_delay_slots): Likewise.
24287         (fill_slots_from_thread): Likewise.
24288         * sched-deps.c (sched_analyze_2): Likewise.
24289
24290 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24291
24292         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24293         PIC_OFFSET_TABLE_REGNUM.
24294
24295 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24296
24297         * alias.c (init_alias_target): Remove ifdef
24298         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24299         * df-scan.c (df_insn_refs_collect): Likewise.
24300         (df_get_regular_block_artificial_uses): Likewise.
24301         (df_get_eh_block_artificial_uses): Likewise.
24302         (df_get_entry_block_def_set): Likewise.
24303         (df_get_exit_block_use_set): Likewise.
24304         * emit-rtl.c (gen_rtx_REG): Likewise.
24305         * ira.c (ira_setup_eliminable_regset): Likewise.
24306         * reginfo.c (init_reg_sets_1): Likewise.
24307         * regrename.c (rename_chains): Likewise.
24308         * reload1.c (reload): Likewise.
24309         (eliminate_regs_in_insn): Likewise.
24310         * resource.c (mark_referenced_resources): Likewise.
24311         (init_resource_info): Likewise.
24312
24313 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24314
24315         * defaults.h (MASK_RETURN_ADDR): New definition.
24316         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24317         MASK_RETURN_ADDR.
24318
24319 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24320
24321         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24322         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24323         RETURN_ADDR_OFFSET.
24324         (expand_builtin_frob_return_addr): Likewise.
24325
24326 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24327
24328         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24329         (try_redirect_by_replacing_jump): Likewise.
24330         (rtl_tidy_fallthru_edge): Likewise.
24331         * combine.c (insn_a_feeds_b): Likewise.
24332         (find_split_point): Likewise.
24333         (simplify_set): Likewise.
24334         * cprop.c (cprop_jump): Likewise.
24335         * cse.c (cse_extended_basic_block): Likewise.
24336         * df-problems.c (can_move_insns_across): Likewise.
24337         * function.c (emit_use_return_register_into_block): Likewise.
24338         * haifa-sched.c (sched_init): Likewise.
24339         * ira.c (find_moveable_pseudos): Likewise.
24340         * loop-invariant.c (find_invariant_insn): Likewise.
24341         * lra-constraints.c (curr_insn_transform): Likewise.
24342         * postreload.c (reload_combine_recognize_const_pattern):
24343         * Likewise.
24344         * reload.c (find_reloads): Likewise.
24345         * reorg.c (delete_scheduled_jump): Likewise.
24346         (steal_delay_list_from_target): Likewise.
24347         (steal_delay_list_from_fallthrough): Likewise.
24348         (redundant_insn): Likewise.
24349         (fill_simple_delay_slots): Likewise.
24350         (fill_slots_from_thread): Likewise.
24351         (delete_computation): Likewise.
24352         * sched-rgn.c (add_branch_dependences): Likewise.
24353
24354 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24355
24356         * genconfig.c (main): Always define HAVE_cc0.
24357         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24358         HAVE_cc0.
24359         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24360         (flow_find_head_matching_sequence): Likewise.
24361         (try_head_merge_bb): Likewise.
24362         * cfgrtl.c (rtl_merge_blocks): Likewise.
24363         (try_redirect_by_replacing_jump): Likewise.
24364         (rtl_tidy_fallthru_edge): Likewise.
24365         * combine.c (do_SUBST_MODE): Likewise.
24366         (insn_a_feeds_b): Likewise.
24367         (combine_instructions): Likewise.
24368         (can_combine_p): Likewise.
24369         (try_combine): Likewise.
24370         (find_split_point): Likewise.
24371         (subst): Likewise.
24372         (simplify_set): Likewise.
24373         (distribute_notes): Likewise.
24374         * cprop.c (cprop_jump): Likewise.
24375         * cse.c (cse_extended_basic_block): Likewise.
24376         * df-problems.c (can_move_insns_across): Likewise.
24377         * final.c (final): Likewise.
24378         (final_scan_insn): Likewise.
24379         * function.c (emit_use_return_register_into_block): Likewise.
24380         * gcse.c (insert_insn_end_basic_block): Likewise.
24381         * haifa-sched.c (sched_init): Likewise.
24382         * ira.c (find_moveable_pseudos): Likewise.
24383         * loop-invariant.c (find_invariant_insn): Likewise.
24384         * lra-constraints.c (curr_insn_transform): Likewise.
24385         * optabs.c (prepare_cmp_insn): Likewise.
24386         * postreload.c (reload_combine_recognize_const_pattern):
24387         * Likewise.
24388         * reload.c (find_reloads): Likewise.
24389         (find_reloads_address_1): Likewise.
24390         * reorg.c (delete_scheduled_jump): Likewise.
24391         (steal_delay_list_from_target): Likewise.
24392         (steal_delay_list_from_fallthrough): Likewise.
24393         (try_merge_delay_insns): Likewise.
24394         (redundant_insn): Likewise.
24395         (fill_simple_delay_slots): Likewise.
24396         (fill_slots_from_thread): Likewise.
24397         (delete_computation): Likewise.
24398         (relax_delay_slots): Likewise.
24399         * sched-deps.c (sched_analyze_2): Likewise.
24400         * sched-rgn.c (add_branch_dependences): Likewise.
24401
24402 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24403
24404         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24405         that is trivially ded on non cc0 targets.
24406         (simplify_set): Likewise.
24407         (mark_used_regs_combine): Likewise.
24408         * cse.c (new_basic_block): Likewise.
24409         (fold_rtx): Likewise.
24410         (cse_insn): Likewise.
24411         (cse_extended_basic_block): Likewise.
24412         (set_live_p): Likewise.
24413         * rtlanal.c (canonicalize_condition): Likewise.
24414         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24415
24416 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24417
24418         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24419         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24420         * final.c: Likewise.
24421         * jump.c: Likewise.
24422         * recog.c: Likewise.
24423         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24424         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24425
24426 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24427
24428         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24429         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24430         * builtins.c (expand_builtin): Remove check if
24431         EH_RETURN_DATA_REGNO is defined.
24432         * df-scan.c (df_bb_refs_collect): Likewise.
24433         (df_get_exit_block_use_set): Likewise.
24434         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24435         * ira-lives.c (process_bb_node_lives): Likewise.
24436         * lra-lives.c (process_bb_lives): Likewise.
24437
24438 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24439
24440         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24441         FIRST_PSEUDO_REG): New.
24442         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24443         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24444         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24445         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24446         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24447         (FIRST_INT_REG): New.
24448         (LAST_INT_REG): New.
24449         (FIRST_*_REG): Define using *_REG.
24450         (LAST_*_REG): Ditto.
24451         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24452         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24453         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24454
24455 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24456
24457         * expmed.c: (synth_mult): Only assume overlapping
24458         shift with previous steps in alg_sub_t_m2 case.
24459
24460 2015-04-21  Richard Biener  <rguenther@suse.de>
24461
24462         PR tree-optimization/65650
24463         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24464         transitions involving copies.
24465         (set_lattice_value): Adjust for copy lattice state.
24466         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24467         if that doesn't dominate the merge point.
24468         (bit_value_unop): Adjust what we treat as varying mask.
24469         (bit_value_binop): Likewise.
24470         (bit_value_assume_aligned): Likewise.
24471         (evaluate_stmt): When we simplified to a SSA name record a copy
24472         instead of dropping to varying.
24473         (visit_assignment): Simplify.
24474
24475         * gimple-match.h (gimple_simplify): Add another callback.
24476         * gimple-fold.c (fold_stmt_1): Adjust caller.
24477         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24478         for the 2nd callback.
24479         * gimple-match-head.c (gimple_simplify): Add a callback that is
24480         used to valueize the stmt operands and use it that way.
24481
24482 2015-04-21  Richard Biener  <rguenther@suse.de>
24483
24484         PR tree-optimization/65788
24485         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24486
24487 2015-04-21  Richard Biener  <rguenther@suse.de>
24488
24489         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24490         vec_construct cost by vec_stmt_cost.
24491
24492 2015-04-21  Richard Biener  <rguenther@suse.de>
24493
24494         * cfghooks.h (create_basic_block): Replace with two overloads
24495         for RTL and GIMPLE.
24496         (split_block): Likewise.
24497         * cfghooks.c (split_block): Rename to ...
24498         (split_block_1): ... this.
24499         (split_block): Add two type-safe overloads for RTL and GIMPLE.
24500         (split_block_after_labels): Call split_block_1.
24501         (create_basic_block): Rename to ...
24502         (create_basic_block_1): ... this.
24503         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24504         (create_empty_bb): Call create_basic_block_1.
24505         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24506         split_block_after_labels.
24507         * omp-low.c (expand_parallel_call): Likewise.
24508         (expand_omp_target): Likewise.
24509         (simd_clone_adjust): Likewise.
24510         * tree-chkp.c (chkp_get_entry_block): Likewise.
24511         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24512         create_basic_block overload.
24513         (cgraph_node::expand_thunk): Likewise.
24514         * tree-cfg.c (make_blocks): Likewise.
24515         (handle_abnormal_edges): Likewise.
24516         * tree-inline.c (copy_bb): Likewise.
24517
24518 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24519
24520         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24521         New pattern.
24522         (*xor_one_cmplsidi3_ze): Likewise.
24523
24524 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24525
24526         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24527         use df_remove_problem rather than manually removing problems, leaving
24528         holes in df->problems_in_order[].
24529
24530 2015-04-21  Tom de Vries  <tom@codesourcery.com>
24531
24532         PR tree-optimization/65802
24533         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24534
24535 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24536
24537         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24538         Increase to 128.
24539         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24540         at '.'.  Assert that there's enough space for everything.
24541
24542 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24543
24544         PR tree-optimization/64950
24545         Revert:
24546         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
24547
24548         PR target/41089
24549         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24550         as volatile.
24551
24552 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
24553
24554         PR rtl-optimization/64916
24555         * cfgcleanup.c (values_equal_p): New function.
24556         (can_replace_by): Use it.
24557
24558 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
24559
24560         PR c++/65801
24561         * doc/invoke.texi ([-Wnarrowing]): Update.
24562
24563 2015-04-20  Jeff Law  <law@redhat.com>
24564
24565         PR tree-optimization/65658
24566         * tree-ssa-threadupdate.c (redirection_block_p): Remove
24567         redundant test for GIMPLE_ASSIGN in last change.
24568
24569 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
24570
24571         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24572         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24573         (legitimize_tls_address): Ditto.
24574         (ix86_expand_move): Ditto.
24575         (ix86_expand_binary_operator): Remove reload_in_progress checks.
24576         (ix86_expand_unary_operator): Ditto.
24577         * config/i386/predicates.md (index_register_operand): Ditto.
24578
24579 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
24580
24581         * reorg.c (try_merge_delay_insns): Improve correctness checking
24582         for targets with multiple delay slots.
24583
24584 2015-04-20  Jeff Law  <law@redhat.com>
24585
24586         PR tree-optimization/65658
24587         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24588         statements too.
24589
24590 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24591
24592         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24593         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24594         Delete.
24595
24596 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
24597
24598         PR debug/65807
24599         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24600
24601 2015-04-20  Richard Biener  <rguenther@suse.de>
24602
24603         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24604         * gimple-fold.c (gimple_build_valueize): New function.
24605         (gimple_build): Always use gimple_build_valueize as valueize hook.
24606
24607 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24608
24609         PR target/64134
24610         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24611         and overwrite variable parts if <= 1/2 the elements are variable.
24612
24613 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
24614
24615         PR rtl-optimization/65805
24616         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24617         Don't use difference of offset and previous offset if
24618         update_sp_offset is non-zero.
24619         (eliminate_regs_in_insn): Ditto.
24620         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24621         lra_eliminate_regs_1 call.
24622         * lra-constraints.c (get_equiv_with_elimination): Ditto.
24623
24624 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
24625
24626         * hash-table.h: Remove version of hash_table that stored value_type *.
24627         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24628         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24629         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24630         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24631         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24632         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24633         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24634         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24635         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24636         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24637         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24638         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24639         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24640         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24641         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24642         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24643
24644 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24645             Jakub Jelinek  <jakub@redhat.com>
24646
24647         PR target/65787
24648         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24649         subsequent SH_NONE operand does not overwrite an existing *special
24650         value.
24651         (adjust_extract): Handle case where a vec_extract operation is
24652         wrapped in a PARALLEL.
24653
24654 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24655
24656         PR target/65780
24657         * config/i386/i386.c (ix86_binds_local_p): Define only if
24658         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24659
24660 2015-04-17  Jeff Law  <law@redhat.com>
24661
24662         PR tree-optimization/47679
24663         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24664         * tree-ssa-scopedtables.c: New file.
24665         * tree-ssa-scopedtables.h: New file.
24666         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24667         (const_and_copies): Change name/type.
24668         (record_const_or_copy): Move into tree-ssa-scopedtables.c
24669         (record_const_or_copy_1): Similarly.
24670         (restore_vars_to_original_value): Similarly.
24671         (pass_dominator::execute): Create and destroy const_and_copies table.
24672         (thread_across_edge): Update passing of const_and_copies.
24673         (record_temporary_equivalence): Use method calls rather than
24674         manipulating const_and_copies directly.
24675         (record_equality, cprop_into_successor_phis): Similarly.
24676         (dom_opt_dom_walker::before_dom_children): Similarly.
24677         (dom_opt_dom_walker::after_dom_children): Similarly.
24678         (eliminate_redundant_computations): Similarly.
24679         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24680         (record_temporary_equivalence): Likewise.
24681         (invalidate_equivalences): Likewise.
24682         (record_temporary_equivalences_from_phis): Update due to type
24683         change of const_and_copies.  Use method calls rather than
24684         manipulating the stack directly.
24685         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24686         (thread_through_normal_block, thread_across_edge): Likewise.
24687         (thread_across_edge): Likewise.
24688         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24689         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
24690         of equiv_stack.
24691         (identify_jump_threads): Update due to type change of equiv_stack.
24692         (finalize_jump_threads): Delete the equiv_stack when complete.
24693
24694 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
24695
24696         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24697         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24698         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24699
24700 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
24701
24702         PR target/65535
24703         * config.gcc: Exit with a comment when we do not have a major version
24704         number for the FreeBSD target.
24705
24706 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24707
24708         PR target/65689
24709         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24710         maybe_allows_mem bitfields.
24711         (maybe_allows_none_start, maybe_allows_none_end,
24712         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24713         maybe_allows_mem_end): New variables.
24714         (compute_maybe_allows): New function.
24715         (add_constraint): Use it to initialize maybe_allows_reg and
24716         maybe_allows_mem fields.
24717         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24718         is_address constraints such that those that allow neither mem nor
24719         reg come first, then those that only allow reg but not mem, then
24720         those that only allow mem but not reg, then the rest.
24721         (write_allows_reg_mem_function): New function.
24722         (write_tm_preds_h): Call it.
24723         * stmt.c (parse_output_constraint, parse_input_constraint): Use
24724         the generated insn_extra_constraint_allows_reg_mem function
24725         instead of always setting *allows_reg = true; *allows_mem = true;
24726         for unknown extra constraints.
24727
24728 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24729
24730         PR target/65780
24731         * output.h (default_binds_local_p_3): New.
24732         * varasm.c (default_binds_local_p_3): Make it public.  Take an
24733         argument to indicate if common symbol may be local.  If common
24734         symbol may be local, treat non-external variable as defined
24735         locally.
24736         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24737         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24738         * config/i386/i386.c (ix86_binds_local_p): New.
24739         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24740         ix86_binds_local_p.
24741
24742 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24743
24744         PR debug/65771
24745         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24746         trying mem_loc_descriptor on XEXP (rtl, 0).
24747
24748 2015-04-17  Martin Liska  <mliska@suse.cz>
24749
24750         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24751         Release symbol_compare_collection.
24752         * ipa-reference.c: Add TODO that a vector should be released.
24753
24754 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24755
24756         PR target/65296
24757         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24758         to new AVR-LibC file layout (bug #44574).
24759         (*avrlibc_devicelib): Same.
24760         * config/avr/avr-mcus.def: Adjust comments.
24761         * config/avr/avr.opt (nodevicelib): Adjust help.
24762
24763 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
24764
24765         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24766
24767 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
24768
24769         PR c++/64527
24770         * gimplify.c (gimplify_init_constructor): Always emit a
24771         side-effecting constructor.
24772
24773 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24774
24775         PR tree-optimization/64950
24776         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24777         in cfun->curr_properties.
24778         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24779         if we generate an IFN_VA_ARG.
24780         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24781         function if PROP_gimple_lva is not set in src function.
24782
24783 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24784             Michael Matz  <matz@suse.de>
24785
24786         PR tree-optimization/64950
24787         * gimple-iterator.c (update_modified_stmts): Remove static.
24788         * gimple-iterator.h (update_modified_stmts): Declare.
24789         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24790         (gimplify_va_arg_internal): New function.
24791         (gimplify_va_arg_expr): Use IFN_VA_ARG.
24792         * gimplify.h (gimplify_va_arg_internal): Declare.
24793         * internal-fn.c (expand_VA_ARG): New unreachable function.
24794         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24795         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24796         (expand_ifn_va_arg): New function.
24797         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24798         (pass_stdarg::execute): Call expand_ifn_va_arg.
24799         (pass_data_lower_vaarg): New pass_data.
24800         (pass_lower_vaarg): New gimple_opt_pass.
24801         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24802         (make_pass_lower_vaarg): New function.
24803         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24804         properties_required field.
24805         * passes.def (all_passes): Add pass_lower_vaarg.
24806         * tree-pass.h (PROP_gimple_lva): Add define.
24807         (make_pass_lower_vaarg): Declare.
24808
24809 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24810
24811         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24812         * calls.c (call_expr_flags): Same.
24813
24814 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24815
24816         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
24817         (pass_stdarg::execute): ... here.
24818
24819 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24820             Michael Matz  <matz@suse.de>
24821
24822         * tree-cfg.c (make_blocks_1): Factor out of ...
24823         (make_blocks): ... here.
24824         (make_edges_bb): Factor out of ...
24825         (make_edges): ... here.
24826         (gimple_find_sub_bbs): New function.
24827         * tree-cfg.h (gimple_find_sub_bbs): Declare.
24828
24829 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24830
24831         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
24832
24833 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
24834
24835         * asan.c (set_sanitized_sections): New function.
24836         (section_sanitized_p): Ditto.
24837         (asan_protect_global): Optionally sanitize user-defined
24838         sections.
24839         * asan.h (set_sanitized_sections): Declare new function.
24840         * common.opt (fsanitize-sections): New option.
24841         * doc/invoke.texi (-fsanitize-sections): Document new option.
24842         * opts-global.c (handle_common_deferred_options): Handle new
24843         option.
24844
24845 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24846
24847         PR debug/65771
24848         * dwarf2out.c (loc_list_from_tree): Return NULL
24849         for DEBUG_EXPR_DECL.
24850
24851 2015-04-17  Christian Bruel  <christian.bruel@st.com>
24852
24853         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
24854         same attributes.
24855
24856 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24857
24858         * ira-color.c (setup_left_conflict_sizes_p): Do not process
24859         node itself when computing left conflict subnode size.
24860
24861 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24862
24863         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
24864         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
24865         *fop_<mode>_1_sse using enabled attribute.  Use
24866         register_mixssei387nonimm_operand operand 1 predicate. Change
24867         alternative 3 constraints from "x" to "v".
24868
24869 2015-04-16  Richard Biener  <rguenther@suse.de>
24870
24871         PR tree-optimization/65774
24872         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
24873         bit-value tracking on.
24874
24875 2015-04-16  Richard Biener  <rguenther@suse.de>
24876
24877         PR tree-optimization/64277
24878         * tree-vrp.c (check_array_ref): Fix anti-range handling,
24879         simplify upper bound handling.
24880         (search_for_addr_array): Simplify.
24881         (check_array_bounds): Handle ADDR_EXPRs here.
24882         (check_all_array_refs): Simplify.
24883
24884 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
24885
24886         * config/i386/i386.c (print_reg): Rewrite function.
24887
24888 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24889
24890         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
24891         Invert the condition.
24892
24893 2015-04-16  Renlin Li  <renlin.li@arm.com>
24894
24895         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
24896         simplifications for UNSIGNED_FLOAT.
24897
24898 2015-04-16  Nick Clifton  <nickc@redhat.com>
24899
24900         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
24901         MUL_UNINIT.
24902         (enum rl78_cpu_type): New.
24903         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
24904         (umulhi3_shift_virt): Remove m constraint from operand 1.
24905         (umulqihi3_virt): Likewise.
24906         * config/rl78/rl78.c (rl78_option_override): Add code to process
24907         -mcpu and -mmul options.
24908         (rl78_alloc_physical_registers): Add code to handle divhi and
24909         divsi valloc attributes.
24910         (set_origin): Likewise.
24911         * config/rl78/rl78.h (RL78_MUL_G14): Define.
24912         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
24913         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
24914         __RL78_Gxx__.
24915         (ASM_SPEC): Pass -mcpu on to assembler.
24916         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
24917         (mulqi3_rl78): Likewise.
24918         (mulhi3_g13): Likewise.
24919         (mulhi3): Generate the G13 or G14 versions of the insn directly.
24920         (mulsi3): Likewise.
24921         (mulhi3_g14): Add clobbers of AX and BC.
24922         (mulsi3_g14): Likewise.
24923         (mulsi3_g13): Likewise.
24924         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
24925         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
24926         * config/rl78/rl78.opt (mmul): Initialise value to
24927         RL78_MUL_UNINIT.
24928         (mcpu): New option.
24929         (m13, m14, mrl78): New option aliases.
24930         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
24931         (MULTILIB_DIRNAMES): Add g13 and g14.
24932         * doc/invoke.texi: Document -mcpu and -mmul options.
24933
24934 2015-04-16  Richard Biener  <rguenther@suse.de>
24935
24936         * tree-ssa-ccp.c (likely_value): See if we have operands that
24937         are marked as never simulate again and return CONSTANT in this
24938         case.
24939         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
24940         not have any operands that will be simulated again as
24941         not being simulated again.
24942
24943 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
24944
24945         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
24946         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
24947         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
24948         attribute.
24949         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
24950         enabled attribute.
24951         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
24952         *float<SWI48:mode><MODEF:mode>2_sse.
24953         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
24954         enabled attribute.
24955         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
24956         enabled attribute.
24957
24958 2015-04-15  Tom de Vries  <tom@codesourcery.com>
24959
24960         PR other/65487
24961         * function.c (push_dummy_function): New function.
24962         (init_dummy_function_start): Use push_dummy_function.
24963         (pop_dummy_function): New function.  Factored out of ...
24964         (expand_dummy_function_end): ... here.
24965         * function.h (push_dummy_function, pop_dummy_function): Declare.
24966         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
24967         pop_dummy_function.
24968         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
24969
24970 2015-04-15  Jeff Law  <law@redhat.com>
24971
24972         PR tree-optimization/47679
24973         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
24974         need for forward declaration in upcoming changes.
24975         (record_conditions, record_edge_info): Likewise.
24976
24977         PR rtl-optimization/42522
24978         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
24979         SIGN_EXTRACT as a whole object rather than simplifying
24980         its operand.
24981
24982 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
24983
24984         PR ipa/65765
24985         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
24986         and GIMPLE_PREDICT use break instead of return true. For
24987         GIMPLE_EH_DISPATCH, compare dispatch region.
24988
24989 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
24990
24991         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
24992         details about the implementation.  Make clear preference for
24993         __atomic builtins.  Reduce possibility of future change.
24994
24995 2015-04-15  Nick Clifton  <nickc@redhat.com>
24996
24997         * config/rx/rx.opt (mallow-string-insns): New option.
24998         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
24999         builtin if string instructions are denied.
25000         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25001         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25002         appropriate.
25003         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25004         * config/rx/rx.md (movstr): Enable pattern only if string
25005         instructions are allowed.
25006         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25007         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25008         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25009         (MULTILIB_DIRNAMES): Add no-strings.
25010         * doc/invoke.texi: Document -mno-allow-string-insns.
25011
25012 2015-04-15  Alan Modra  <amodra@gmail.com>
25013
25014         PR target/65408
25015         PR target/58744
25016         PR middle-end/36043
25017         * calls.c (load_register_parameters): Don't load past end of
25018         mem unless suitably aligned.
25019
25020 2015-04-15  Nick Clifton  <nickc@redhat.com>
25021
25022         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25023         decrement instruction as being frame related.
25024         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25025         based addresses.
25026         If zero extending a function address enclose the operation in
25027         %code(...).
25028         (rl78_preferred_reload_class): New function.
25029         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25030         * config/rl78/rl78.md: Remove useless constraints in expanders.
25031         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25032         (mulhi3_rl78): Likewise.
25033         (mulhi3_g13): Likewise.
25034         (mulsi3_rl78): Likewise.
25035         (es_addr): Move to before the multiply patterns.
25036
25037 2015-04-15  Alan Modra  <amodra@gmail.com>
25038
25039         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25040         and sequence_stack.  Add seq.
25041         (seq_stack): Delete.
25042         * function.c (prepare_function_start): Don't access x_last_insn.
25043         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25044         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25045         * emit_rtl.c (start_sequence, push_topmost_sequence,
25046         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25047         sequence accessors.
25048         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25049         remove_insn): Likewise.  Simplify.
25050         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25051         and pop_topmost_sequence.
25052         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25053         debug insns.
25054         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25055
25056 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25057
25058         PR target/65729
25059         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25060         the assertiion.
25061
25062 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25063
25064         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25065         (LEGACY_INT_REGNO_P): Ditto.
25066         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25067         (ANY_MASK_REG_P): Remove.
25068         (BND_REG_P): Rename from ANY_BND_REG_P.
25069         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25070         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25071         Merge 64byte and 32byte SSE handling.
25072
25073 2015-04-14  Nick Clifton  <nickc@redhat.com>
25074
25075         * expr.c (expand_assignment): Force an address offset computation
25076         into a register before changing its mode.
25077         (expand_expr_real_1): Likewise.
25078
25079 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25080
25081         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25082         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25083         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25084         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25085         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25086         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25087         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25088         and __aarch64_vget_lane_any.
25089
25090 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25091
25092         PR rtl-optimization/65761
25093         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25094         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25095
25096 2015-04-14  Richard Biener  <rguenther@suse.de>
25097
25098         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25099         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25100
25101 2015-04-14  Richard Biener  <rguenther@suse.de>
25102
25103         PR tree-optimization/65758
25104         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25105         against -1.
25106         (ccp_lattice_meet): Likewise.
25107         (bit_value_unop): Likewise.
25108         (bit_value_binop): Likewise.
25109         (bit_value_assume_aligned): Likewise.
25110
25111 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25112
25113         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25114         function.
25115
25116 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25117
25118         PR tree-optimization/63387
25119         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25120         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25121
25122 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25123
25124         * config/i386/predicates.md (any_QIreg_operand): Rename from
25125         q_regs_operand.  Do not process subregs.
25126         (QIreg_operand): Use QI_REGNO_P predicate.
25127         (ext_QIreg_operand): Ditto.
25128         (ext_register_operand): Ditto.
25129         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25130         (AND splitters): Ditto.
25131         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25132         (AND with -256 splitter): Use any_QIreg_operand predicate and
25133         SWI248 mode for operand 0.
25134         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25135         mode for operand 0.
25136         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25137
25138 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25139
25140         * doc/plugins.texi: Rewrite first introductory paragraph.
25141
25142 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25143
25144         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25145         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25146
25147 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25148
25149         * ipa-profie.c (ipa_profile): Check number of parameters
25150         and possible polymorphic call targets before
25151         devirtualizing.
25152
25153 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25154
25155         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25156         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25157
25158 2015-04-13  Richard Biener  <rguenther@suse.de>
25159
25160         PR tree-optimization/65204
25161         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25162         takens for bit-CCP.
25163
25164 2015-04-13  Richard Biener  <rguenther@suse.de>
25165
25166         PR target/65660
25167         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25168         and cond_not_taken_branch_cost to 4 and 2.
25169         (bdver2_cost): Likewise.
25170         (bdver3_cost): Likewise.
25171         (bdver4_cost): Likewise.
25172
25173 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25174
25175         * hash-table.h (hash_table constructor): Add mem stats.
25176         (alloc_entries): Likewise.
25177
25178 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25179
25180         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25181         * passes.c (execute_one_pass): Only add transform if pass has one.
25182
25183 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25184
25185         * config/i386/i386.c (ix86_option_override_internal): Don't set
25186         -fprefetch-loop-arrays if optimizing for size.
25187
25188 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25189             Gerald Pfeifer  <gerald@pfeifer.com>
25190
25191         * doc/contrib.texi (Contributors): Add Martin Jambor and
25192         Michael Matz.
25193
25194 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25195
25196         * BASE-VER: Set to 6.0.0.
25197
25198         PR tree-optimization/65747
25199         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25200         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25201
25202 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25203
25204         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25205         sentence.  Improve grammar.
25206
25207 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25208
25209         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25210
25211 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25212
25213         PR ipa/65743
25214         * ipa-inline-transform.c (speculation_removed): Remove static var.
25215         (check_speculations): New function.
25216         (clone_inlined_nodes): Do not check spculations.
25217         (inline_call): Call check_speculations.
25218         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25219         consider non-invariants.
25220
25221 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25222             Martin Liska  <mliska@suse.cz>
25223
25224         PR ipa/65722
25225         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25226         variable can not match.
25227         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25228         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25229
25230 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25231
25232         PR tree-optimization/65735
25233         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25234         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25235         same bb rather than just into the same phi node.
25236         (thread_through_normal_block): Adjust caller.
25237
25238 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25239
25240         * doc/contrib.texi (Contributors): Add Ira Rosen.
25241
25242 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25243
25244         * gcov.c (find_source): Fix miswording in error message.
25245         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25246         (ix86_expand_sse_comi_round): Fix typo in error message.
25247
25248 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25249
25250         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25251
25252 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25253
25254         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25255
25256 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25257
25258         PR target/65710
25259         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25260         Print bad_spills_num and insn_pseudos_num.
25261
25262 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25263
25264         PR target/65694
25265         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25266         when creating +1 values for SImode.
25267
25268 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25269
25270         PR target/65729
25271         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25272         assert.
25273
25274 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25275             Iain Sandoe  <iain@codesourcery.com>
25276
25277         PR target/65351
25278         * configure: Regenerate.
25279
25280 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25281
25282         PR target/65671
25283         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25284
25285 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25286
25287         * doc/contrib.texi (Contributors): Add John Marino.
25288
25289 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25290
25291         PR tree-optimization/65709
25292         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25293         TREE_TYPE (TREE_TYPE (t)).
25294
25295 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25296
25297         PR target/65710
25298         * lra-int.h (lra_bad_spill_regno_start): New.
25299         * lra.c (lra_bad_spill_regno_start): New.
25300         (lra): Set up lra_bad_spill_regno_start.  Set up
25301         lra_constraint_new_regno_start unconditionally.
25302         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25303         spill preferences.
25304
25305 2015-04-09  Marek Polacek  <polacek@redhat.com>
25306             Jakub Jelinek  <jakub@redhat.com>
25307
25308         PR middle-end/65554
25309         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25310         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25311         of STRIP_NOPS.
25312
25313 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25314
25315         PR rtl-optimization/65693
25316         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25317         #ifndef HAVE_cc0.
25318
25319 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25320
25321         PR target/65296
25322         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25323         device specs file if "device-specs%s" didn't resolve to a path.
25324
25325 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25326
25327         PR target/65676
25328         * config/i386/i386.c (fixup_modeless_constant): New.
25329         (ix86_expand_args_builtin): Fixup modeless constant operand.
25330         (ix86_expand_round_builtin): Ditto.
25331         (ix86_expand_special_args_builtin): Ditto.
25332         (ix86_expand_builtin): Ditto.
25333
25334 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25335
25336         PR target/65693
25337         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25338         any pow2 integer in between 2 and 0x80000000U inclusive.
25339
25340 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25341
25342         PR rtl-optimization/65693
25343         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25344         from an rtx_insn * to an rtx.
25345         (try_combine): Adjust both callers.  Use it once more.
25346
25347 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25348
25349         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25350         (chkp_make_static_const_bounds): Search existing
25351         symbol by assembler name.  Use make_decl_one_only.
25352         (chkp_get_zero_bounds_var): Remove node search which
25353         is now performed in chkp_make_static_const_bounds.
25354         (chkp_get_none_bounds_var): Likewise.
25355
25356 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25357
25358         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25359         to an example.
25360
25361 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25362
25363         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25364
25365 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25366
25367         * doc/extend.texi (__sync Builtins): Fix grammar.
25368
25369 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25370
25371         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25372
25373 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25374
25375         * varasm.c (emit_local): Move definition of align.
25376
25377 2015-04-08  Julian Brown  <julian@codesourcery.com>
25378
25379         * config/nvptx/mkoffload.c (process): Support variable mapping.
25380
25381 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25382
25383         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25384         alpha_links **.
25385         (alpha_write_one_linkage): Correct typo.
25386
25387 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25388
25389         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25390
25391 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25392
25393         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25394
25395 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25396
25397         * tree-chkp.h (chkp_insert_retbnd_call): New.
25398         * tree-chkp.c (chkp_insert_retbnd_call): New.
25399         * ipa-split.c (insert_bndret_call_after): Remove.
25400         (split_function): Use chkp_insert_retbnd_call.
25401         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25402         bounds for instrumented functions.
25403
25404 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25405
25406         PR ipa/65540
25407         * calls.c (initialize_argument_information): When producing tail
25408         call also turn SSA_NAMES passed by references to original PARM_DECLs
25409
25410 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25411
25412         PR target/65648
25413         * lra-remat.c (do_remat): Process input and non-input insn
25414         registers separately.
25415
25416 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25417
25418         PR debug/65678
25419         * valtrack.c (debug_lowpart_subreg): New function.
25420         (dead_debug_insert_temp): Use it.
25421
25422         PR middle-end/65680
25423         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25424         into signed HOST_WIDE_INT the same as negative bit_offset.
25425
25426 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25427
25428         * ipa-comdats.c (ipa_comdats): Visit all thunks
25429         to set proper comdat group.
25430
25431 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25432
25433         PR target/65489
25434         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25435         on constants for NEON VSTRUCT modes.
25436
25437 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25438             Iain Sandoe  <iain@codesourcery.com>
25439
25440         PR target/65351
25441         * configure: Regenerate.
25442
25443 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25444
25445         PR target/65614
25446         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25447         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25448         that LFD is used to load double constants instead of LFS.  Add
25449         defaults for all costs structures.  Add comments for missing
25450         initialization fields.
25451         (size32_cost): Likewise.
25452         (size64_cost): Likewise.
25453         (rs64a_cost): Likewise.
25454         (mpccore_cost): Likewise.
25455         (ppc403_cost): Likewise.
25456         (ppc405_cost): Likewise.
25457         (ppc440_cost): Likewise.
25458         (ppc476_cost): Likewise.
25459         (ppc601_cost): Likewise.
25460         (ppc603_cost): Likewise.
25461         (ppc604_cost): Likewise.
25462         (ppc604e_cost): Likewise.
25463         (ppc620_cost): Likewise.
25464         (ppc630_cost): Likewise.
25465         (ppccell_cost): Likewise.
25466         (ppc750_cost): Likewise.
25467         (ppc7450_cost): Likewise.
25468         (ppc8540_cost): Likewise.
25469         (ppce300c2c3_cost): Likewise.
25470         (ppce500mc_cost): Likewise.
25471         (ppce500mc64_cost): Likewise.
25472         (ppce5500_cost): Likewise.
25473         (ppce6500_cost): Likewise.
25474         (titan_cost): Likewise.
25475         (power4_cost): Likewise.
25476         (power6_cost): Likewise.
25477         (power7_cost): Likewise.
25478         (power8_cost): Likewise.
25479         (ppca2_cost): Likewise.
25480         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25481
25482         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25483         instead of XXLOR to copy SFmode to clear out dirty bits created
25484         when SFmode denormals are generated.
25485         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25486         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25487
25488 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25489
25490         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25491         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25492         * config/aarch64/aarch64-tune.md: Regenerate.
25493
25494 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25495
25496         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25497         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25498         * config/arm/arm-cores.def (exynos-m1): New core.
25499         * config/arm/arm-tune.md: Regenerate.
25500         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25501         * config/arm/bpabi.h: Likewise.
25502
25503 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25504
25505         * ipa-cp (set_single_call_flag): Remove too
25506         restrictive assert.
25507
25508 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
25509
25510         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25511         GOMP_offload_unregister from the destructor.
25512
25513 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25514
25515         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25516         flags for instrumentation thunk.
25517         (chkp_produce_thunks): Likewise.
25518
25519 2015-04-05  Martin Liska  <mliska@suse.cz>
25520
25521         PR ipa/65665
25522         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25523         has computed data structure.
25524         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25525
25526 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
25527
25528         * invoke.texi (inline-unit-growth): Increase growth to 20%
25529         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25530
25531 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
25532
25533         PR target/65647
25534         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
25535         value checking.
25536         (lra_rematerialization_iter): New.
25537         * lra.c (lra): Initialize lra_rematerialization_iter.
25538         Stop updating lra_constraint_new_regno_start after switching of
25539         inheritance and rematerialization.
25540         * lra-remat.c (lra_rematerialization_iter): New.
25541         (lra_remat): Add printing pass iteration.  Do rematerialization
25542         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25543
25544 2015-04-04  Richard Biener  <rguenther@suse.de>
25545
25546         PR tree-optimization/64909
25547         PR tree-optimization/65660
25548         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25549         to take a cost vector for scalar iteration cost.
25550         (vect_get_single_scalar_iteration_cost): Likewise.
25551         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25552         Compute the scalar iteration cost into a cost vector.
25553         (vect_get_known_peeling_cost): Use the scalar cost vector to
25554         account for the cost of the peeled iterations.
25555         (vect_estimate_min_profitable_iters): Likewise.
25556         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25557         Likewise.
25558
25559 2015-04-04  Alan Modra  <amodra@gmail.com>
25560
25561         PR target/65576
25562         PR target/65240
25563         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25564         0.0 constant unless TARGET_VSX.
25565         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25566         alternative.
25567
25568 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25569
25570         PR ipa/65654
25571         * ipa-inline-transform.c (inline_call): Skip sanity check to work
25572         around the ICE
25573
25574 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25575
25576         PR ipa/65655
25577         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25578         speculative indirect edges to avoid ordering issue.
25579
25580 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25581
25582         PR ipa/65076
25583         * ipa-inline.c (edge_badness): Add combined size to the denominator.
25584
25585 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
25586
25587         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25588         TYPE_ARTIFICIAL on the .omp_data* types.
25589
25590 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25591
25592         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25593         instrumentation thunks.
25594
25595 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25596
25597         * config/i386/i386.c (ix86_expand_call): Avoid nested
25598         PARALLEL in returned call value.
25599
25600 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25601
25602         * lto-cgraph.c (input_cgraph_1): Always link instrumented
25603         assembler name with original one.
25604
25605 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25606
25607         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25608
25609 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25610
25611         Revert parts of r216820.
25612         * config/i386/i386.md (movqi_internal): Correct type calculation
25613         for alternatives 3 and 5.
25614
25615 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
25616
25617         PR preprocessor/61977
25618         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25619         predefine __vector/__bool/__pixel macros nor context sensitive
25620         macros for CLK_ASM.
25621         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25622
25623 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
25624
25625         * config/pa/pa.c (pa_output_move_double): Directly handle register
25626         indexed memory operand.  Simplify handling of scaled register indexed
25627         memory operands.
25628
25629 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25630
25631         PR driver/65444
25632         * config/i386/linux-common.h (MPX_SPEC): New.
25633         (CHKP_SPEC): Add MPX_SPEC.
25634         * doc/invoke.texi (-fcheck-pointer-boudns): Document
25635         possible issues with '-z bndplt' support in linker.
25636
25637 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25638
25639         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25640         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25641         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25642         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25643         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25644
25645 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
25646
25647         * config/i386/sync.md (UNSPEC_MOVA): Remove.
25648         (atomic_load<mode>): Change operand 0 predicate to
25649         nonimmediate_operand and fix up the destination when needed.
25650         Use UNSPEC_LDA.
25651         (atomic_loaddi_fpu): Use UNSPEC_LDA.
25652         (atomic_store<mode>): Change operand 1 predicate to
25653         nonimmendate_operand and move the source to register when needed.
25654         Use UNSPEC_STA.
25655         (atomic_store<mode>_1): Use UNSPEC_STA.
25656         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25657         Fix moves from memory operand.  Use UNSPEC_STA.
25658
25659 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25660
25661         * expmed.c (strict_volatile_bitfield_p): Check that the access will
25662         not cross a MODESIZE boundary.
25663         (store_bit_field, extract_bit_field): Added assertions in the
25664         strict volatile bitfields code path.
25665
25666 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25667
25668         PR target/65624
25669         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25670         Increase args array size by one to avoid buffer overflow.
25671
25672 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25673
25674         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25675         split_part.
25676         * ipa-inline.c (edge_badness): Add wrapper penalty.
25677         (sum_callers): Move up.
25678         (inline_small_functions): Set single_caller.
25679         * ipa-inline.h (inline_summary): Add single_caller.
25680         * ipa-split.c (split_function): Set split_part.
25681         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25682         * cgraph.h (cgraph_node): Add split_part.
25683
25684 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
25685
25686         PR target/58945
25687         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25688         Do not split operands 0 and operands 2 to halfmode.
25689         (atomic_compare_and_swap<mode>): Update for
25690         atomic_compare_and_swap<dwi>_doubleword changes.
25691
25692 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25693
25694         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25695         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25696         no caching is done.
25697
25698 2015-03-31  Martin Liska  <mliska@suse.cz>
25699
25700         PR ipa/65557
25701         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25702         has already filled up function summary.
25703         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25704
25705 2015-03-31  Richard Biener  <rguenther@suse.de>
25706
25707         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25708         of types.
25709
25710 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25711
25712         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25713         nested functions.
25714         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25715         (s390_asm_output_function_label): Adapt to new signature of
25716         s390_function_num_hotpatch_hw
25717         Optimise the code generating assembler output.
25718         Add comments to assembler file.
25719
25720 2015-03-31  Richard Biener  <rguenther@suse.de>
25721
25722         PR middle-end/65626
25723         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25724         of the noreturn call so it is last and cleanup_control_flow_bb
25725         can do the CFG part.
25726
25727 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
25728
25729         PR target/65531
25730         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25731         same_comdat_group for external symbols.
25732         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25733         infinite same_comdat_group traversal loop.
25734
25735 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
25736
25737         PR plugins/61176
25738         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25739         automatically to $headers.
25740
25741 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
25742
25743         PR ipa/65610
25744         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25745         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25746         function.
25747         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25748         Use it.
25749         * ipa-prop.c (param_type_may_change_p): Likewise.
25750         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25751         (remove_unused_scope_block_p): Add in_ctor_dtor_block
25752         argument.  Before inlining, preserve
25753         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25754         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
25755         recursive calls.
25756         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25757
25758 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25759
25760         PR ipa/65076
25761         * ipa-inline.c (edge_badness): Base denominator on callee's
25762         grwoth squared.
25763
25764 2015-03-27  Martin Jambor  <mjambor@suse.cz>
25765
25766         PR ipa/65478
25767         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25768         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25769         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25770         node_calling_single_call.
25771         * ipa-cp.c (count_callers): New function.
25772         (set_single_call_flag): Likewise.
25773         (initialize_node_lattices): Count callers and set single_flag_call if
25774         necessary.
25775         (incorporate_penalties): New function.
25776         (good_cloning_opportunity_p): Use it, dump new flags.
25777         (propagate_constants_topo): Set node_within_scc flag if appropriate.
25778         * doc/invoke.texi (ipa-cp-recursion-penalty,
25779         ipa-cp-single-call-pentalty): Document.
25780
25781 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25782
25783         PR ipa/65588
25784         * symtab.c (symtab_node::get_partitioning_class): Register vars
25785         are duplicated.
25786         * varpool.c (symbol_table::output_variables) Do not assemble unefined
25787         decls for non-symbols.
25788
25789 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25790
25791         PR target/65248
25792         * output.h (default_binds_local_p_2): New.
25793         * varasm.c (default_binds_local_p_2): Renamed to ...
25794         (default_binds_local_p_3): This.  Don't return true on protected
25795         data symbol if protected data may be external.
25796         (default_binds_local_p): Use default_binds_local_p_3.
25797         (default_binds_local_p_1): Likewise.
25798         (default_binds_local_p_2): New.
25799         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25800         default_binds_local_p_2 if TARGET_MACHO is undefined.
25801
25802 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
25803
25804         PR target/65593
25805         * config/i386/i386.c (legitimize_pic_address): If base
25806         is SYMBOL_REF or LABEL_REF using %rip addressing, force
25807         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25808
25809 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25810
25811         PR target/65531
25812         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25813         comdat groups.
25814
25815 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25816
25817         PR ipa/65600
25818         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
25819         of optimized out indirect call.
25820         (redirect_to_unreachable): Always build symbol table node for
25821         BUILT_IN_UNREACHABLE
25822
25823 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25824
25825         PR target/65407
25826         * ira-costs.c (record_reg_classes): Process all constraint string
25827         containing 0-9.
25828
25829 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
25830
25831         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
25832         memory_operand.
25833
25834         PR target/65052
25835         * config/c6x/constraints.md (S3): New constraint.
25836         * config/c6x/c6x.md (real_jump): Use it.
25837
25838 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25839
25840         PR middle-end/65595
25841         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
25842         do redirection if the call is not optimized out.
25843
25844 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
25845
25846         PR target/65495
25847         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
25848         (fchkp-check-incomplete-type): Add LTO.
25849         (fchkp-zero-input-bounds-for-main): Likewise.
25850         (fchkp-first-field-has-own-bounds): Likewise.
25851         (fchkp-narrow-bounds): Likewise.
25852         (fchkp-narrow-to-innermost-array): Likewise.
25853         (fchkp-use-static-bounds): Likewise.
25854         (fchkp-use-static-const-bounds): Likewise.
25855         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
25856
25857 2015-03-27  Marek Polacek  <polacek@redhat.com>
25858
25859         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
25860
25861 2015-03-27  Marek Polacek  <polacek@redhat.com>
25862
25863         PR sanitizer/65583
25864         * ubsan.c (ubsan_create_edge): New function.
25865         (instrument_bool_enum_load): Call it.
25866         (instrument_nonnull_arg): Likewise.
25867         (instrument_nonnull_return): Likewise.
25868         (instrument_object_size): Likewise.
25869
25870 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25871
25872         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
25873         auto_vec.
25874
25875 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25876
25877         PR lto/65536
25878         * lto-streamer.h (class lto_location_cache): New.
25879         (struct data_in): Add location_cache.
25880         (lto_input_location): Update prototype.
25881         (stream_input_location_now): New.
25882         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
25883         pointer to location.
25884         (stream_input_location): Update.
25885         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
25886         (warn_odr): Apply location cache before warning.
25887         (lto_input_location): Update prototype.
25888         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
25889         Use stream_input_location_now.
25890         * lto-streamer-in.c (lto_location_cache::current_cache): New static
25891         variable.
25892         (lto_location_cache::cmp_loc): New function.
25893         (lto_location_cache::apply_location_cache): New function.
25894         (lto_location_cache::accept_location_cache): New function.
25895         (lto_location_cache::revert_location_cache): New function.
25896         (lto_location_cache::input_location): New function.
25897         (lto_input_location): Do location caching.
25898         (stream_input_location_now): New function.
25899         (input_eh_region, input_struct_function_base): Use
25900         stream_input_location_now.
25901         (lto_data_in_create): use new.
25902         (lto_data_in_delete): Use delete.
25903         * tree-streamer-in.c (unpack_ts_block_value_fields,
25904         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
25905         lto_input_ts_exp_tree_pointers): Update for cached location api.
25906
25907 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25908
25909         PR ipa/65076
25910         * passes.def: Add pass_nothrow.
25911         * ipa-pure-const.c: (pass_data_nothrow): New.
25912         (pass_nothrow): New.
25913         (pass_nothrow::execute): New.
25914         (make_pass_nothrow): New.
25915         * tree-pass.h (make_pass_nothrow): Declare.
25916
25917 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25918
25919         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
25920         edge to change by speculation resolution or redirection.
25921         (edge_set_predicate): Likewise.
25922         (inline_summary_t::duplicate): Likewise.
25923         (remap_edge_summaries): Likewise.
25924
25925 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25926
25927         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
25928         New macros.
25929         (can_inline_edge_p): Relax option matching for always inline functions.
25930
25931 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
25932
25933         PR target/65561
25934         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
25935         Check operand 4 and operand 0 for equality.
25936         (avx512f_vextract<shuffletype>32x4_1_maskm):
25937         Check operand 6 and operand 0 for equality.
25938         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
25939         for equality.
25940         (vec_extract_hi_<mode>_maskm): Ditto.
25941
25942 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25943
25944         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
25945         dead calls back to live.
25946         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
25947         cross check to ...
25948         (cgraph_node::verify_node): ... here; verify only callee edges,
25949         not caller.
25950         * cif-code.def (CILK_SPAWN): New code.
25951
25952 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
25953
25954         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
25955         (edge_set_predicate): Use it to mark unreachable edges.
25956         (inline_summary_t::duplicate): Remove unnecesary code.
25957         (remap_edge_summaries): Likewise.
25958         (dump_inline_summary): Report contains_cilk_spawn.
25959         (compute_inline_parameters): Compute contains_cilk_spawn.
25960         (inline_read_section, inline_write_summary): Stream
25961         contains_cilk_spawn.
25962         * ipa-inline.c (can_inline_edge_p): Do not touch
25963         DECL_STRUCT_FUNCTION that may not be available;
25964         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
25965         remove check for callee_fun->can_throw_non_call_exceptions and
25966         replace it by optimization attribute check; check for flag_exceptions.
25967         * ipa-inline-transform.c (inline_call): Maintain
25968         DECL_FUNCTION_PERSONALITY
25969         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
25970
25971 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25972
25973         PR tree-optimization/65551
25974         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
25975         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
25976
25977 2015-03-26  Richard Biener  <rguenther@suse.de>
25978
25979         PR middle-end/65555
25980         * tree-cfg.c (verify_gimple_call): Do not require a call to
25981         have no LHS if it wasn't recognized as control altering yet.
25982
25983 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
25984
25985         PR tree-optimization/64715
25986         * passes.def: Add another instance of pass_object_sizes before ccp1.
25987         * tree-object-size.c (pass_object_sizes::execute): In
25988         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
25989         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
25990         __bos result and the computed constant.  Remove redundant
25991         checks, obsoleted by gimple_call_builtin_p test.
25992
25993         * var-tracking.c (variable_tracking_main_1): Don't track
25994         variables for targetm.no_register_allocation targets.
25995
25996 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
25997
25998         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
25999         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26000
26001 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26002
26003         PR target/65569
26004         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26005         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26006         0.0 is correctly setup.
26007         (extenddftf2_internal): Likewise.
26008
26009 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26010
26011         PR tree-optimization/65177
26012         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26013         (bb_in_bbs): New.
26014         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26015         edges not adjacent on the path to the original code.
26016
26017 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26018
26019         PR bootstrap/65537
26020         * doc/install.texi (Building a native compiler): Document new
26021         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26022         configuration assumes that the host supports the linker plugin.
26023
26024 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26025
26026         PR target/65508
26027         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26028         chain for generated call.
26029
26030 2015-03-25  Richard Biener  <rguenther@suse.de>
26031
26032         * passes.c (pass_manager::execute_early_local_passes): Guard
26033         execution of pass_chkp_instrumentation_passes with
26034         flag_check_pointer_bounds.
26035         (pass_chkp_instrumentation_passes::gate): Likewise.
26036
26037 2015-03-25  Martin Liska  <mliska@suse.cz>
26038
26039         PR tree-optimization/65538
26040         * symbol-summary.h (function_summary::~function_summary):
26041         Relese memory for allocated summaries.
26042         (function_summary::release): New function.
26043
26044 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26045
26046         PR lto/65515
26047         * lto-streamer-out.c (DFS::worklist): New struct.
26048         (DFS::worklist_vec): New data member.
26049         (DFS::next_dfs_num): Remove.
26050         (DFS::DFS): Rewritten using worklist instead of recursion,
26051         using most of code from DFS::DFS_write_tree.
26052         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26053         pass it to DFS_write_tree calls.
26054         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26055         quick initial checks push it into worklist_vec and return.
26056
26057 2015-03-25  Richard Biener  <rguenther@suse.de>
26058
26059         PR middle-end/65519
26060         * genmatch.c (expr::gen_transform): Re-write to avoid
26061         using gimple_build.
26062
26063 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26064
26065         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26066
26067 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26068
26069         * config/arm/arm.opt (print_tune_info): New option.
26070         * config/arm/arm.c (arm_print_tune_info): New function.
26071         (arm_file_start): Call arm_print_tune_info.
26072         * config/arm/arm-protos.h (struct tune_params): Add comment.
26073         * doc/invoke.texi (@item -mprint-tune-info): New item.
26074         (-mtune): mention it in ARM Option Summary.
26075
26076 2015-03-25  DJ Delorie  <dj@redhat.com>
26077
26078         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26079         correct clause.
26080
26081 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26082             Martin Liska  <mliska@suse.cz>
26083
26084         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26085         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26086         (sem_item::add_type): New function.
26087         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26088         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26089         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26090         (sem_function::equals_wpa): Fix typo.
26091         * ipa-icf.h (sem_item::add_type): New function.
26092         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26093         order.
26094
26095 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26096
26097         PR tree-optimization/65533
26098         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26099         with swapped operands, call vect_free_slp_tree on
26100         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26101         vector.
26102
26103 2015-03-24  Richard Biener  <rguenther@suse.de>
26104
26105         PR middle-end/65517
26106         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26107         for fixup if necessary.
26108
26109 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26110
26111         * doc/extend.texi (Function Attributes): Add @cindex entries
26112         for all attributes and regularize their format.  Delete text
26113         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26114         information about "eightbit_data", "tiny_data", and "model"
26115         variable attributes to the Variable Attributes section.  Fix
26116         some obvious typos and copy-editing issues.
26117         (Variable Attributes, Type Attributes): Likewise add/fix
26118         @cindex entries for all attributes.
26119
26120 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26121
26122         PR target/65523
26123         * tree-chkp.c (chkp_build_returned_bound): Ignore
26124         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26125
26126 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26127
26128         PR target/65505
26129         * config/sh/predicates.md (simple_mem_operand,
26130         displacement_mem_operand): Add test for reg.
26131         (short_displacement_mem_operand): Test for displacement_mem_operand
26132         before invoking sh_disp_addr_displacement.
26133         * config/sh/constraints.md (Sdd, Sra): Simplify.
26134         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26135         Remove redundant displacement_mem_operand tests.
26136
26137 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26138
26139         PR target/65296
26140         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26141         the same -mmcu=MCU more than once.
26142
26143 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26144
26145         PR bootstrap/65522
26146         * ipa-devirt.c: Remove duplicate demangle.h include.
26147
26148         PR target/65504
26149         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26150         on the pseudo.
26151         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26152         REG_POINTER on *destptr after adjusting it for prologue size.
26153
26154         PR ipa/65521
26155         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26156         ultimate_alias_target ()->order ints instead of
26157         ultimate_alias_target () pointers.
26158
26159 2015-03-23  Richard Biener  <rguenther@suse.de>
26160
26161         PR tree-optimization/65518
26162         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26163         interleaving cases we generate absymal code for.
26164
26165 2015-03-23  Richard Biener  <rguenther@suse.de>
26166
26167         PR tree-optimization/65494
26168         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26169         matches here.
26170         (vect_analyze_slp_instance): But do that here, always and once.
26171
26172 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26173
26174         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26175         adding T or multiplying by T+1 and subracting T.
26176
26177 2015-03-22  Jeff Law  <law@redhat.com>
26178
26179         PR rtl-optimization/64317
26180         * Makefile.in (OBJS): Add gcse-common.c
26181         * gcse.c: Include gcse-common.h
26182         (struct modify_pair_s): Move structure definition to gcse-common.h
26183         (compute_transp): Move function to gcse-common.c.
26184         (canon_list_insert): Similarly.
26185         (record_last_mem_set_info): Break out some code and put it into
26186         gcse-common.c.  Call into the new common code.
26187         (compute_local_properties): Pass additional arguments to compute_transp.
26188         * postreload-gcse.c: Include gcse-common.h and df.h
26189         (modify_mem_list_set, blocks_with_calls): New variables.
26190         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26191         (get_bb_avail_insn): Pass in the expression index too.
26192         (alloc_mem): Allocate memory for the new bitmaps and lists.
26193         (free_mem): Free memory for the new bitmaps and lists.
26194         (insert_expr_in_table): Record a bitmap index for each entry we
26195         add to the table.
26196         (record_last_mem_set_info): Call into common code in gcse-common.c.
26197         (get_bb_avail_insn): If no available insn was found in the requested
26198         BB.  If BB has a single predecessor, see if the expression is
26199         transparent in BB and available in that single predecessor.
26200         (compute_expr_transp): New wrapper for compute_transp.
26201         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26202         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26203         (gcse_after_reload_main): If there are elements in the hash table,
26204         then compute transparency for all the elements in the hash table.
26205         * gcse-common.h: New file.
26206         * gcse-common.c: New file.
26207
26208 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26209
26210         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26211         as an adjective.
26212         (System Headers): Likewise.
26213         (Ifdef): Likewise.
26214         (Traditional macros): Likewise.
26215         (Invocation): Likewise.
26216         (Option Index): Likewise.
26217         * doc/cppopts.texi (-M): Likewise.
26218         (-finput-charset): Likewise.
26219         (--help): Likewise.
26220         * doc.invoke.texi (AVR Options): Likewise.
26221         (V850 Options): Likewise.
26222
26223 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26224
26225         PR ipa/65475
26226         * ipa-devirt.c: Include demangle.h
26227         (odr_type_d): Add field rtti_broken.
26228         (odr_subtypes_equivalent_p): Do not require name to match.
26229         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26230         bypass the tests; be ready for function referneces in vtables that are
26231         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26232         (warn_odr): Give up for nameless types.
26233         (warn_types_mismatch): Report mismatch in mangled names;
26234         report mismatch in anonymous namespaces; look into component types to
26235         give useful error; report when mismatch is dragged in from other ODR
26236         type.
26237         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26238         duplicated diagnostics.
26239         (add_type_duplicate): Reorder checks so more informative ones come
26240         first; fix typo; do not output "the extra base is defined here" when
26241         we did not warn.
26242         (BINFO_N_BASE_BINFOS): Relax sanity check.
26243
26244 2015-03-22  Martin Liska  <mliska@suse.cz>
26245             Jakub Jelinek  <jakub@redhat.com>
26246
26247         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26248         masks that can potentially include a builtin.
26249         (ix86_add_new_builtins): Introduce fast filter for isa values
26250         that cannot trigger builtin inclusion.
26251
26252 2015-03-22  Martin Liska  <mliska@suse.cz>
26253
26254         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26255         (sem_item::update_hash_by_local_refs): Likewise.
26256         (sem_variable::get_hash): Empty line is fixed.
26257         (sem_item_optimizer::execute): Include adding of hash references.
26258         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26259         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26260         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26261         (sem_item::update_hash_by_local_refs): Likewise.
26262
26263 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26264
26265         PR ipa/65502
26266         * ipa-comdats.c (enqueue_references): Walk through thunks.
26267         (ipa_comdats): Likewise.
26268         (set_comdat_group_1): New function.
26269
26270 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26271
26272         PR ipa/65475
26273         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26274         non-polymorphic
26275
26276 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26277             Gerald Pfeifer  <gerald@pfeifer.com>
26278
26279         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26280
26281 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26282             Sandra Loosemore  <sandra@codesourcery.com>
26283
26284         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26285         function parameter declaration.
26286         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26287         Update arguments to nios2_adjust_call_address().
26288         (sibcall_internal): Rename from *sibcall.
26289         (sibcall_value_internal): Rename from *sibcall_value.
26290         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26291         (nios2_large_got_address): Add target temp reg parameter.
26292         (nios2_got_address): Adjust call to nios2_large_got_address, add
26293         force_reg around it.
26294         (nios2_load_pic_address): Add target temp reg parameter, replace call
26295         to nios2_got_address with corresponding code.
26296         (nios2_legitimize_constant_address): Update call to
26297         nios2_load_pic_address.
26298         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26299         to use temp reg for PIC loading purposes.
26300         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26301         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26302         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26303
26304 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26305
26306         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26307         usage of "the @option{...}".
26308         (-Wopenmp-simd): Likewise.
26309         (-fsanitize-recover): Likewise.
26310         (-fsanitize-undefined-trap-on-error): Likewise.
26311         (-flto): Likewise.
26312         (tracer-dynamic-coverage-feedback): Likewise.
26313         (reorder-block-duplicate-feedback): Likewise.
26314         (loop-unroll-jam-size): Likewise.
26315         (-B): Likewise.
26316         (-I-): Likewise.
26317         (-mabs=legacy): Likewise.
26318         (-mupper-regs-df): Likewise.
26319         (-mupper-regs-sf): Likewise.
26320         (-mpointers-to-nested-functions): Likewise.
26321
26322 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26323
26324         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26325
26326 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26327
26328         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26329         additional index entries and cross-references.
26330         (-fchkp-check-incomplete-type): Likewise.
26331         (-fchkp-first-field-has-own-bounds): Likewise.
26332         (-fchkp-narrow-to-innermost-array): Likewise.
26333         (-fchkp-use-fast-string-functions): Likewise.
26334         (-fchkp-use-nochk-string-functions): Likewise.
26335         (-fchkp-use-static-const-bounds): Likewise.
26336         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26337         (-fchkp-instrument-marked-only): Likewise.
26338         (-fchkp-use-wrappers): Likewise.
26339         (-static-libmpx): Likewise.
26340         (-static-libmpxwrappers): Likewise.
26341         * doc/extend.texi (bnd_legacy): Likewise.
26342         (bnd_instrument): Likewise.
26343         (bnd_variable_size): Likewise.
26344         (Pointer Bounds Checker builtins): Likewise.
26345
26346 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26347
26348         PR tree-optimization/65458
26349         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26350         * cgraph.h (cgraph_node): Add parallelized_function field.
26351         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26352         (input_overwrite_node): Read parallelized_function field.
26353         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26354         parallelized_function on cgraph_node for child_fn.
26355         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26356         Remove include of gt-tree-parloops.h.
26357         (parallelized_functions): Remove static variable.
26358         (parallelized_function_p): Rewrite using parallelized_function field of
26359         cgraph_node.
26360         (create_loop_fn): Remove adding to parallelized_functions.
26361         * Makefile.in (GTFILES): Remove tree-parloops.c
26362
26363 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26364
26365         PR rtl-optimization/64366
26366         * lra.c (lra_update_insn_regno_info): Consider regs in
26367         CALL_INSN_FUNCTION_USAGE memory.
26368
26369 2015-03-20  Richard Biener  <rguenther@suse.de>
26370
26371         PR middle-end/64715
26372         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26373         for type comparison and gcc_checking_assert.
26374         (chrec_fold_plus_poly_poly): Likewise.
26375         (chrec_fold_multiply_poly_poly): Likewise.
26376         (chrec_convert_1): Likewise.
26377         * gimplify.c (gimplify_expr): Remove premature folding of
26378         &X + CST to &MEM[&X, CST].
26379
26380 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26381
26382         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26383         already is final.
26384         (ipa_inline): Recompute inline_failed codes.
26385         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26386         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26387         CIF_FINAL_ERROR.
26388
26389 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26390
26391         PR rtl-optimization/60851
26392         * recog.c (constrain_operands): Accept a pseudo register before reload
26393         for LRA enabled targets.
26394
26395 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26396
26397         PR target/65240
26398         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26399         -ffast-math handling that kept non-0 constants live in the RTL
26400         until reload.  Remove logic testing the number of instructions it
26401         took to create a constant in a GPR that was never used, due to a
26402         test for soft-float earlier.
26403         (memory_fp_constant): Delete, no longer used.
26404
26405         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26406         alternatives for loading non-0 constants into GPRs for hard
26407         floating point that is no longer needed due to changes in
26408         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26409         (mov<mode>_hardfloat32): Likewise.
26410         (mov<mode>_hardfloat64): Likewise.
26411         (mov<mode>_64bit_dm): Likewise.
26412         (movtd_64bit_nodm): Likewise.
26413         (pre-reload move FP constant define_split): Delete define_split,
26414         since it is no longer used.
26415         (extenddftf2_internal): Remove GHF constraints that are not valid
26416         for extenddftf2.
26417
26418 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26419
26420         PR rtl-optimization/63491
26421         * lra-constraints.c (check_and_process_move): Use src instead of
26422         sreg.  Remove some dead code.
26423
26424 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26425
26426         PR ipa/65380
26427         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26428         (sem_variable::merge): Likewise.
26429
26430 2015-03-19  Martin Liska  <mliska@suse.cz>
26431
26432         PR ipa/65465
26433         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26434         all fields of cgraph_thunk_info.
26435
26436 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26437
26438         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26439         clone instrumented thunks.
26440
26441 2015-03-19  Richard Biener  <rguenther@suse.de>
26442
26443         Revert
26444         2015-03-10  Richard Biener  <rguenther@suse.de>
26445
26446         PR middle-end/63155
26447         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26448         * tree-ssa-coalesce.c: Include timevar.h.
26449         (attempt_coalesce): Handle graph being NULL.
26450         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26451         Split out abnormal coalescing to ...
26452         (perform_abnormal_coalescing): ... this function.
26453         (coalesce_ssa_name): Perform abnormal coalescing without computing
26454         live/conflict.
26455         (verify_ssa_coalescing_worker): New function.
26456         (verify_ssa_coalescing): Likewise.
26457
26458 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26459             Jakub Jelinek  <jakub@redhat.com>
26460
26461         PR sanitizer/65400
26462         * tsan.c (instrument_gimple): Clear tail call flag on
26463         calls.
26464
26465 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26466
26467         PR sanitizer/65400
26468         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26469         call in the return bb.
26470         (find_split_points): Add RETURN_BB argument, don't call
26471         find_return_bb.
26472         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
26473         if true append TSAN_FUNC_EXIT internal call after the call to
26474         the split off function.
26475         (execute_split_functions): Call find_return_bb here.
26476         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26477         Adjust find_split_points and split_function calls.
26478
26479 2015-03-18  DJ Delorie  <dj@redhat.com>
26480
26481         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26482         (iorqi3_virt): Likewise.
26483
26484 2015-03-18  Tom de Vries  <tom@codesourcery.com>
26485
26486         * tree-parloops.c (parallelize_loops): Make static.
26487         * tree-parloops.h (parallelize_loops): Remove extern declaration.
26488
26489 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
26490
26491         PR middle-end/64491
26492         Revert:
26493         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
26494
26495         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26496         condition would be removed due to undefined behaviour.
26497
26498 2015-03-18  Martin Liska  <mliska@suse.cz>
26499
26500         PR ipa/65432
26501         * cgraph.c (cgraph_node::get_create): Remove unnecessary
26502         xstrdup_for_dump wrapper.
26503         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26504         sem_item::name.
26505         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26506         with xstrdup_for_dump.
26507         (sem_variable::equals): Likewise.
26508         (sem_item_optimizer::read_section): Use symtab_node::name instead of
26509         sem_item::name.
26510         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26511         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26512         symtab_node::asm_name with xstrdup_for_dump.
26513         (congruence_class::dump): Use symtab_node::name instead of
26514         sem_item::name.
26515         * ipa-icf.h (symtab_node::name): Remove.
26516         (symtab_node::asm_name): Likewise.
26517
26518 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26519
26520         PR tree-optimization/65450
26521         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26522         function.
26523         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26524         it instead of duplicate_ssa_name_ptr_info.
26525
26526         PR target/65222
26527         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26528
26529 2015-03-18  Richard Biener  <rguenther@suse.de>
26530
26531         * tree-data-ref.h (struct access_matrix): Remove.
26532         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26533         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26534         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26535         (am_vector_index_for_loop): Likewise.
26536         (struct data_reference): Remove access_matrix member.
26537         (DR_ACCESS_MATRIX): Remove.
26538         (lambda_vector_new): Add comment.
26539         (lambda_matrix_new): Use XOBNEWVEC.
26540
26541 2015-03-18  Richard Biener  <rguenther@suse.de>
26542
26543         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26544         (pass_ch::execute): Cleanup the CFG only if we did sth.
26545         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26546
26547 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26548
26549         * expmed.c (synth_mult): Use std::swap instead of manually
26550         swapping algorithms.
26551
26552 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26553
26554         PR target/65078
26555         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26556
26557 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
26558
26559         PR target/65296
26560         * config/avr/avr.opt (-nodevicelib): New option.
26561         * doc/invoke.texi (AVR Options): Document it.
26562         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26563         libgcc.a, libc.a, libm.a.
26564         * config/avr/specs.h: Same.
26565         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26566         which don't (directly) depend on the device.  Print more help.
26567         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26568         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26569         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26570         case of an error.
26571         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26572         for specs file name.
26573         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26574         * config/avr/avr-mcus.def: Adjust initializers and comments.
26575
26576 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
26577
26578         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26579         DECL_ONE_ONLY to check if decl is one only.
26580         * ipa-split.c (consider_split): Limit splitt of one only functions.
26581
26582 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26583
26584         PR tree-optimization/65427
26585         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26586         functions.
26587         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26588
26589 2015-03-16  Marek Polacek  <polacek@redhat.com>
26590
26591         * cgraph.h (add_new_static_var): Remove declaration.
26592         * varpool.c (add_new_static_var): Remove function.
26593
26594 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26595
26596         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26597         instead of vec<tree> * with vec_alloc and release for args.
26598         Adjust all users.
26599
26600         PR middle-end/65431
26601         * omp-low.c (delete_omp_context): Only splay_tree_delete
26602         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26603         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
26604
26605 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26606
26607         PR sanitizer/64820
26608         * cfgexpand.c (align_base): New function.
26609         (alloc_stack_frame_space): Call it.
26610         (expand_stack_vars): Align prev_frame to be sure
26611         data->asan_vec elements aligned properly.
26612
26613 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
26614
26615         PR middle-end/65409
26616         * expr.c (store_field): Do not do a direct block copy if the source is
26617         a PARALLEL with BLKmode.
26618
26619 2015-03-16  Tom de Vries  <tom@codesourcery.com>
26620
26621         PR middle-end/65414
26622         Revert:
26623         2015-03-12  Tom de Vries  <tom@codesourcery.com>
26624
26625         PR rtl-optimization/64895
26626         * lra-lives.c (check_pseudos_live_through_calls): Use
26627         actual_call_used_reg_set instead of call_used_reg_set, if available.
26628
26629 2015-03-16  Alan Modra  <amodra@gmail.com>
26630
26631         PR target/63150
26632         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26633         Modify Z->r bswapdi splitter to use dest in place of scratch.
26634         In r->Z and Z->r bswapdi splitter rename word_high, word_low
26635         to word1, word2 and rearrange logic to suit.
26636         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26637         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
26638         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26639         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
26640         early clobber.
26641
26642 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
26643
26644         PR tree-optimization/65369
26645         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26646         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26647         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26648
26649         PR tree-optimization/65418
26650         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26651         are casts in the first PLUS_EXPR operand, ensure tbias and
26652         *totallowp are in the inner type.
26653
26654         PR rtl-optimization/65401
26655         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26656         argument.  If true, adjust_address_nv of x with big-endian
26657         correction for the mode widening to GET_MODE (y).
26658         (make_field_assignment): Don't do MEM mode widening here.
26659         Use MEM_P instead of GET_CODE == MEM.
26660
26661 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
26662
26663         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26664         the external decls.
26665
26666 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26667
26668         PR target/64600
26669         * config/arm/arm.c (arm_gen_constant, AND case): Use
26670         ARM_SIGN_EXTEND when constructing AND mask.
26671
26672 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26673
26674         * graph.c (print_graph_cfg): Make function names visible and append
26675         parenthesis to it.  Also make groups of basic blocks belonging to the
26676         same function visible.
26677
26678 2015-03-12  Richard Biener  <rguenther@suse.de>
26679
26680         PR middle-end/44563
26681         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26682         to avoid quadratic behavior with inline expansion splitting blocks.
26683         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26684         with the successor if the predecessor will be merged with it.
26685         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26686         entry block with its successor.
26687
26688 2015-03-13  Richard Biener  <rguenther@suse.de>
26689
26690         PR middle-end/44563
26691         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26692         (cleanup_tree_cfg_1): Do not call it.
26693         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26694         (fixup_noreturn_call): Mark the stmt as control altering.
26695         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26696         here.
26697         (pass_data_fixup_cfg): Produce a dump file.
26698         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26699         (need_noreturn_fixup): New global.
26700         (pass_dominator::execute): Fixup queued noreturn calls.
26701         (optimize_stmt): Queue calls that became noreturn for fixup.
26702         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26703         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26704         (el_to_fixup): New global.
26705         (eliminate_dom_walker::before_dom_childre): Queue calls that
26706         became noreturn for fixup.
26707         (eliminate): Fixup queued noreturn calls.
26708         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26709         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26710         (substitute_and_fold_dom_walker::before_dom_children): Queue
26711         alls that became noreturn for fixup.
26712         (substitute_and_fold): Fixup queued noreturn calls.
26713
26714 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
26715
26716         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26717         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26718         are building; for methods check ODR type of class they belong to if
26719         they may lead to a polymorphic call.
26720         (sem_function::compare_polymorphic_p): Be bit smarter about testing
26721         when function may lead to a polymorphic call.
26722         (sem_function::compare_type_list): Remove.
26723         (sem_variable::equals): Update use of compatible_types_p.
26724         (sem_variable::parse_tree_refs): Remove.
26725         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26726         cdtor.
26727         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26728         matching here.
26729         (func_checker::compatible_polymorphic_types_p): Break out from ...
26730         (unc_checker::compatible_types_p): ... here.
26731         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26732         Declare.
26733         (unc_checker::compatible_types_p): Update.
26734         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26735         Remove.
26736
26737 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26738
26739         PR rtl-optimization/65235
26740         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26741         When first element of vec_concat is const_int, calculate its size
26742         using second element.
26743
26744 2015-03-12  Richard Biener  <rguenther@suse.de>
26745
26746         PR middle-end/65270
26747         * fold-const.c (operand_equal_p): Fix ordering of resetting
26748         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26749
26750 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26751
26752         * config/s390/s390.c (s390_reorg): Move code to output nops after label
26753         to s390_reorg ().
26754         (s390_asm_output_function_label): Likewise.
26755         * config/s390/s390.c (s390_asm_output_function_label):
26756         Fix function label alignment with -mhtopatch.
26757         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26758         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26759         ("nop_2_byte"): New define_insn.
26760         ("nop_4_byte"): Likewise.
26761         ("nop_6_byte"): Likewise.
26762         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26763         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26764
26765 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26766
26767         PR target/65103
26768         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26769         register.
26770
26771 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26772
26773         PR target/65044
26774         * toplev.c (process_options): Restrict Pointer Bounds Checker
26775         usage with Address Sanitizer.
26776
26777 2015-03-12  Richard Biener  <rguenther@suse.de>
26778
26779         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26780         to split on.
26781         * omp-low.c (expand_omp_taskreg): Split block before removing
26782         the stmt.
26783         (expand_omp_target): Likewise.
26784         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26785         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26786         stmt to split_block.
26787
26788 2015-03-12  Tom de Vries  <tom@codesourcery.com>
26789
26790         PR rtl-optimization/64895
26791         * lra-lives.c (check_pseudos_live_through_calls): Use
26792         actual_call_used_reg_set instead of call_used_reg_set, if available.
26793
26794 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26795
26796         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26797         (cgraph_node::remove): Likewise.
26798         (cgraph_node::get_untransformed_body): Likewise.
26799         * varpool.c (varpool_node::remove): Likewise.
26800         (varpool_node::get_constructor): Add sanity check.
26801
26802 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
26803
26804         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26805         old GCC versions.
26806         (-fabi-compat-version): Likewise.
26807         (-ffriend-injection): Likewise.
26808         (-Wdeclaration-after-statement): Likewise.
26809         (-fomit-frame-pointer): Likewise.
26810         (-ftree-coalesce-inlined-vars): Likewise.
26811         (-fvisibility=): Likewise.
26812         * doc/extend.texi (Typeof): Likewise.
26813         (Zero Length): Likewise.
26814         (Escaped Newlines): Likewise.
26815         (Compound Literals): Likewise.
26816         (Function Attributes): Likewise.
26817         (Label Attributes): Likewise.
26818         (Type Attributes): Likewise.
26819         (Function Names): Likewise.
26820         (Other Builtins): Likewise.
26821         (Function Specific Option Pragmas): Likewise.
26822         (C++ Interface): Likewise.
26823
26824 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
26825
26826         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
26827
26828 2015-03-11  Marek Polacek  <polacek@redhat.com>
26829
26830         PR tree-optimization/65388
26831         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
26832
26833 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26834
26835         PR target/65296
26836         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
26837         * configure: Regenerate.
26838         * config.in: Regenerate.
26839         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
26840         [-mn-flash]: Document it.
26841         [__AVR_ARCH__]: Document avrtiny.
26842
26843         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
26844         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
26845         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
26846
26847 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26848
26849         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
26850
26851 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26852
26853         PR target/65242
26854         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
26855         allow reloads of PLUS in floating point/VSX registers.
26856
26857 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
26858
26859         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
26860         crypto_sha256_fast.
26861         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
26862
26863 2015-03-11  Richard Biener  <rguenther@suse.de>
26864
26865         PR tree-optimization/65310
26866         * tree-sra.c (build_ref_for_offset): Also preserve larger
26867         alignment.
26868
26869 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
26870
26871         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
26872
26873 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26874
26875         PR target/65368
26876         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
26877         new define_expand.
26878         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
26879
26880 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26881
26882         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
26883         (sem_function::equals_wpa): ... here.
26884
26885 2015-03-10  Marek Polacek  <polacek@redhat.com>
26886             Jakub Jelinek  <jakub@redhat.com>
26887
26888         PR sanitizer/65367
26889         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
26890         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
26891         separately.
26892
26893 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
26894
26895         PR target/65286
26896         * config/rs6000/t-linux: For powerpc64* target set
26897         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
26898
26899 2015-03-10  Richard Biener  <rguenther@suse.de>
26900
26901         PR middle-end/44563
26902         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
26903         for redirect_all_calls.
26904
26905 2015-03-10  Marek Polacek  <polacek@redhat.com>
26906
26907         * gdbinit.in (pcfun): Define and document.
26908
26909 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
26910
26911         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
26912         of libgomp-plugin.h.
26913         (find_target_compiler): Support a case when the path to gcc is
26914         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
26915         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
26916         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
26917         libgomp-plugin.h.
26918         (main): Use GCC_INSTALL_NAME as target_driver_name.
26919         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
26920         define.
26921         (mkoffload.o): Remove obsolete include path and defines.
26922         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
26923
26924 2015-03-10  Richard Biener  <rguenther@suse.de>
26925
26926         PR middle-end/63155
26927         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26928         * tree-ssa-coalesce.c: Include timevar.h.
26929         (attempt_coalesce): Handle graph being NULL.
26930         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26931         Split out abnormal coalescing to ...
26932         (perform_abnormal_coalescing): ... this function.
26933         (coalesce_ssa_name): Perform abnormal coalescing without computing
26934         live/conflict.
26935         (verify_ssa_coalescing_worker): New function.
26936         (verify_ssa_coalescing): Likewise.
26937
26938 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
26939
26940         PR target/65296
26941         * config.gcc (extra_options) [avr]: Remove.
26942         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
26943         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
26944         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
26945
26946         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
26947         (-mmcu=): Add Var and MissingArgError properties.
26948         (-march=): Remove.
26949         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
26950         * config/avr/t-multilib: Regenerate.
26951         * config/avr/specs.h: New file.
26952         * config/avr/driver-avr.c: New file.
26953         * config/avr/genopt.sh: Remove file.
26954         * config/avr/avr-tables.opt: Remove file.
26955         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
26956         * config/avr/avr-c.c: Same.
26957         * avr-arch.h: Same.
26958         (avr_current_device): Remove proto.
26959         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
26960         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
26961         (EXTRA_SPEC_FUNCTIONS): Define.
26962         (avr_devicespecs_file): New specs function proto.
26963         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
26964         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
26965         (avr_current_device): Remove definition and usage.
26966         (avr_set_core_architecture): New static function.
26967         (avr_option_override): Use it.
26968         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
26969         (mcu_name): New static array.
26970         (comparator, avr_archs_str, avr_mcus_str): New static functions.
26971         (avr_inform_devices, avr_inform_core_architectures): New functions.
26972         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
26973         (avrlibc.h) [WITH_AVRLIBC]: Include.
26974         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
26975         (print_mcu): Rewrite from scratch.
26976         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
26977         Forward to avr-specific specs defined in device-specs file.
26978         * config/avr/t-avr (driver-avr.o): New rule.
26979         (avr-devices.o): Depend on avr-arch.h.
26980         (avr-mcus): No more depend on avr-tables.opt.
26981         (avr-tables.opt): Remove rule.
26982         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
26983
26984 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
26985
26986         * c-family/c.opt (fchkp-use-wrappers): New.
26987         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
26988         (chkp_wrap_function): New.
26989         (chkp_build_instrumented_fndecl): Support wrapped
26990         functions.
26991         * doc/invoke.texi (-fcheck-pointer-bounds): New.
26992         (-fchkp-check-incomplete-type): New.
26993         (-fchkp-first-field-has-own-bounds): New.
26994         (-fchkp-narrow-bounds): New.
26995         (-fchkp-narrow-to-innermost-array): New.
26996         (-fchkp-optimize): New.
26997         (-fchkp-use-fast-string-functions): New.
26998         (-fchkp-use-nochk-string-functions): New.
26999         (-fchkp-use-static-bounds): New.
27000         (-fchkp-use-static-const-bounds): New.
27001         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27002         (-fchkp-check-read): New.
27003         (-fchkp-check-write): New.
27004         (-fchkp-store-bounds): New.
27005         (-fchkp-instrument-calls): New.
27006         (-fchkp-instrument-marked-only): New.
27007         (-fchkp-use-wrappers): New.
27008         (-static-libmpx): New.
27009         (-static-libmpxwrappers): New.
27010
27011 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27012
27013         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27014         (CHKP_SPEC): Add wrappers library.
27015         * c-family/c.opt (static-libmpxwrappers): New.
27016
27017 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27018
27019         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27020         (LIBMPX_SPEC): New.
27021         (CHKP_SPEC): New.
27022         * gcc.c (CHKP_SPEC): New.
27023         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27024         * c-family/c.opt (static-libmpx): New.
27025
27026 2015-03-10  Richard Biener  <rguenther@suse.de>
27027
27028         PR middle-end/44563
27029         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27030         for compare_type.
27031         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27032         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27033         (cgraph_add_edge_to_call_site_hash): Likewise.
27034         (cgraph_node::get_edge): Likewise.
27035         (cgraph_edge::set_call_stmt): Likewise.
27036         (cgraph_edge::remove_caller): Likewise.
27037
27038 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27039
27040         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27041         (callee_saved_gpr_regs_size): ... this.
27042         (callee_saved_regs_first_regno): Rename to ...
27043         (callee_saved_first_gpr_regno): ... this.
27044         (callee_saved_regs_last_regno) Rename to ...
27045         (callee_saved_last_gpr_regno): ... this.
27046         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27047         variables.
27048         (nds32_initial_elimination_offset): Likewise.
27049         (nds32_expand_prologue): Likewise.
27050         (nds32_expand_epilogue): Likewise.
27051         (nds32_expand_prologue_v3push): Likewise.
27052         (nds32_expand_epilogue_v3pop): Likewise.
27053         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27054         Adjust renamed variables.
27055         (nds32_output_stack_pop): Likewise.
27056
27057 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27058
27059         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27060         code in comment.
27061
27062 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27063
27064         PR rtl-optimization/65321
27065         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27066         than shift mode.
27067         * var-tracking.c (use_narrower_mode): Likewise.
27068
27069 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27070
27071         PR tree-optimization/65355
27072         * varasm.c (notice_global_symbol): Do not produce RTL.
27073         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27074         anchor.
27075         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27076         check for section anchors.
27077
27078 2015-03-10  Alan Modra  <amodra@gmail.com>
27079
27080         PR target/65286
27081         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27082         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27083         given --with-cpu=native.
27084         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27085         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27086         and powerpc64le.
27087         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27088         rs6000_isa_flags rather than TARGET_64BIT.
27089
27090 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27091             Kaz Kojima  <kkojima@gcc.gnu.org>
27092
27093         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27094
27095 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27096
27097         PR lto/65361
27098         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27099         on a TREE_BINFO, instead use BINFO_TYPE.
27100
27101 2015-03-09  Richard Biener  <rguenther@suse.de>
27102
27103         PR middle-end/65270
27104         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27105         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27106         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27107         of that.  When comparing dereferences compare alignment.
27108         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27109
27110 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27111
27112         * ipa-inline-analysis.c (check_callers): Check
27113         node->can_remove_if_no_direct_calls_and_refs_p.
27114         (growth_likely_positive): Reorganize to call
27115         can_remove_if_no_direct_calls_p later.
27116         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27117         will_be_removed_from_program_if_no_direct_calls_p): Add
27118         will_inline parameter.
27119         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27120         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27121         Handle inliner case correctly.
27122
27123 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27124
27125         PR tree-optimization/63743
27126         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27127         had its definition forwarded by TER.
27128
27129 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27130
27131         PR lto/65316
27132         * ipa-utils.h (types_odr_comparable): Add strict argument.
27133         * ipa-devirt.c: Fix whitespace;
27134         (odr_hasher): Remove.
27135         (odr_name_hasher, odr_vtable_hasher): New hashers.
27136         (can_be_name_hashed_p): New predicate.
27137         (hash_type_name): remove.
27138         (hash_odr_name): New.
27139         (odr_name_hasher::hash): new.
27140         (can_be_vtable_hashed_p): New.
27141         (hash_odr_vtable): New.
27142         (odr_vtable_hasher::hash): New.
27143         (types_same_for_odr): Add strict parameter.
27144         (types_odr_comparable): Likewise.
27145         (odr_name_hasher::equal): New.
27146         (odr_vtable_hasher::equal): New.
27147         (odr_name_hasher::remove): New.
27148         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27149         (odr_vtable_hash_type): New.
27150         (odr_vtable_hash): New.
27151         (odr_subtypes_equivalent_p): Do strict comparsion.
27152         (add_type_duplicate): Merge type names; cleanup; avoid type
27153         duplicates.
27154         (register_odr_type): Initialize vtable hash.
27155         (build_type_inheritance_graph): Likewise
27156         (get_odr_type): Reorg to use two hashes.
27157         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27158         output.
27159         (ipa_devirt): Dump type_inheritance_graph.
27160         (types_same_for_odr): Add strict mode.
27161
27162 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27163
27164         PR ipa/65334
27165         * cgraph.h (symtab_node): Add definition_alignment,
27166         can_increase_alignment_p and increase_alignment.
27167         * symtab.c (symtab_node::can_increase_alignment_p,
27168         increase_alignment_1, symtab_node::increase_alignment,
27169         symtab_node::definition_alignment): New.
27170         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27171         can_increase_alignment_p.
27172         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27173         * tree-vect-stmts.c (ensure_base_align): Likewise.
27174         * varasm.c (function_section_1): Use definition_alignment.
27175         (assemble_start_function): Likewise.
27176         (emit_local): likewise.
27177         (build_constant_desc): Likewsie.
27178         (output_constant_def_contents): Likewise.
27179         (place_block_symbol): Likewise.
27180         (output_object_block): Likewise.
27181
27182 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27183
27184         PR ipa/65316
27185         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27186         when outputting debug.
27187
27188 2015-03-07  Marek Polacek  <polacek@redhat.com>
27189             Martin Uecker  <uecker@eecs.berkeley.edu>
27190
27191         PR sanitizer/65280
27192         * doc/invoke.texi: Update description of -fsanitize=bounds.
27193
27194 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27195
27196         * tree-ssa-phiopt.c (neg_replacement): Remove.
27197         (tree_ssa_phiopt_worker): Remove negate optimization.
27198
27199 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27200
27201         PR ipa/65302
27202         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27203
27204 2015-03-06  Richard Biener  <rguenther@suse.de>
27205
27206         PR middle-end/64928
27207         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27208         and liveout_obstack members.
27209         (calculate_live_on_exit): Remove.
27210         (calculate_live_ranges): Change declaration.
27211         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27212         (new_tree_live_info): Adjust.
27213         (calculate_live_ranges): Delete livein when not wanted.
27214         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27215         Deal with partly deleted live info.
27216         (loe_visit_block): Remove temporary bitmap by using
27217         bitmap_ior_and_compl_into.
27218         (live_worklist): Adjust accordingly.
27219         (calculate_live_on_exit): Make static.
27220         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27221         we do not need livein.
27222
27223 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27224
27225         * real.c (real_from_string): Fix typo in assertion.
27226
27227 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27228
27229         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27230         the patch.
27231
27232 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27233
27234         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27235
27236 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27237
27238         PR target/64342
27239         * lra-assigns.c (find_hard_regno_for): Rename to
27240         find_hard_regno_for_1.  Add a new parameter.
27241         (find_hard_regno_for): New function using find_hard_regno_for_1.
27242
27243 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27244
27245         PR rtl-optimization/65067
27246         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27247         strict volatile bitfield handling.
27248
27249 2015-03-05  Martin Liska  <mliska@suse.cz>
27250
27251         PR ipa/65318
27252         * ipa-icf.c (sem_variable::equals): Compare variables types.
27253
27254 2015-03-05  Richard Henderson  <rth@redhat.com>
27255
27256         PR target/65121
27257         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27258         correctly check weak symbol binding.
27259
27260 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27261
27262         PR middle-end/65315
27263         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27264         needed alignment.
27265
27266 2015-03-05  Martin Liska  <mliska@suse.cz>
27267
27268         * ipa-inline.c (inline_small_functions): Set default value to
27269         prevent warning during bootstrap.
27270         * tree.h: Add pragma guard that ignores false positives during
27271         bootstrap.
27272
27273 2015-03-05  Richard Biener  <rguenther@suse.de>
27274
27275         PR tree-optimization/65310
27276         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27277         Properly preserve alignment of the base of the access.
27278
27279 2015-03-05  Richard Biener  <rguenther@suse.de>
27280
27281         PR ipa/65270
27282         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27283         Compare dependence info.
27284
27285 2015-03-05  Richard Biener  <rguenther@suse.de>
27286
27287         PR middle-end/65233
27288         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27289         tree-into-ssa.h.
27290         (walk_ssa_copies): Revert last chage.  Instead do not walk
27291         SSA names registered for SSA update.
27292
27293 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27294
27295         PR ipa/65270
27296         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27297         vtable references for their containing type.
27298         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27299         and type attributes.
27300
27301 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27302
27303         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27304         before negating it.
27305         * stor-layout.c (finalize_record_size): Revert latest change.
27306
27307 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27308
27309         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27310
27311 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27312
27313         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27314         for correct comdat handling.
27315         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27316         Likewise.
27317         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27318         (used_from_object_file_p_worker): Remove.
27319         (cgraph_node::only_called_directly_or_alised): Add
27320         used_from_object_file_p.
27321         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27322         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27323         can_remove_if_no_direct_calls_and_refs_p.
27324
27325 2015-03-04  Nick Clifton  <nickc@redhat.com>
27326
27327         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27328         General register class.
27329         * config/rl78/rl78-real.md: Replace general register constraints
27330         with real+virtual register constraints.
27331
27332 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27333
27334         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27335         from checking for -mhtm option.
27336
27337 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27338
27339         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27340         (struct ipa_sra_check_caller_data): Add has_thunk field.
27341         (ipa_sra_check_caller): Check for thunk.
27342         (ipa_sra_preliminary_function_checks): Give up on function with
27343         thunks.
27344         (ipa_early_sra): Use call_for_symbol_and_aliases.
27345
27346 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27347
27348         PR target/65249
27349         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27350         called for __stack_chk_guard symbol.
27351
27352 2015-03-03  DJ Delorie  <dj@redhat.com>
27353
27354         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27355         inc/dec.
27356         (*addhi3_real): Likewise.
27357         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27358         pattern to match incrementing memory.
27359         * config/rl78/predicates.md (rl78_1_2_operand): New.
27360         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27361         it's the same and only mem.
27362         (rl78_alloc_physical_registers_op2): If there's effectively only
27363         one MEM, transcode it into HL.
27364         (rl78_far_p): Reject addresses that aren't legitimate.
27365
27366 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27367
27368         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27369         negating it.
27370
27371         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27372
27373 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27374
27375         Implement call0 ABI for xtensa
27376         * config/xtensa/constraints.md ("a" constraint): Include stack
27377         pointer in case of call0 ABI.
27378         ("q" constraint): Make empty in case of call0 ABI.
27379         ("D" constraint): Include stack pointer in case of call0 ABI.
27380         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27381         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27382         prototypes.
27383         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27384         variable.
27385         (xtensa_regno_to_class): Make it a local variable in the
27386         function xtensa_regno_to_class.
27387         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27388         macro, function prototype and implementation.
27389         (reg_nonleaf_alloc_order): Make it a local variable in the
27390         function order_regs_for_local_alloc.
27391         (xtensa_conditional_register_usage): New function.
27392         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27393         (xtensa_valid_move): Allow direct moves to stack pointer
27394         register in call0 ABI.
27395         (xtensa_setup_frame_addresses): Only spill register windows in
27396         windowed ABI.
27397         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27398         call0 ABI respectively.
27399         (xtensa_function_arg_1): Only mark a7 register for copying in
27400         windowed ABI.
27401         (xtensa_call_save_reg): New function.
27402         (compute_frame_size): Add space for callee saved register
27403         storage to the frame size in call0 ABI.
27404         (xtensa_expand_prologue): Generate code to set up stack frame
27405         and save callee-saved registers in call0 ABI.
27406         (xtensa_expand_epilogue): New function.
27407         (xtensa_set_return_address): New function.
27408         (xtensa_return_addr): Calculate return address in call0 ABI.
27409         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27410         emit copying code in windowed ABI.
27411         (order_regs_for_local_alloc): Add preferred register allocation
27412         order for non-leaf function in call0 ABI.
27413         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27414         (xtensa_asm_trampoline_template): Add trampoline generation for
27415         call0 ABI.
27416         (xtensa_trampoline_init): Add trampoline initialization for
27417         call0 ABI.
27418         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27419         functions.
27420         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27421         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27422         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27423         ABI call-used registers.
27424         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27425         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27426         call0 ABI.
27427         (REG_CLASS_CONTENTS): Include all registers into the preferred
27428         reload registers set, adjust the set in the
27429         xtensa_conditional_register_usage.
27430         (xtensa_regno_to_class): Drop variable declaration.
27431         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27432         function.
27433         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27434         respectively.
27435         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27436         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27437         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27438         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27439         location in call0 ABI.
27440         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27441         stack adjustment size when handling exception.
27442         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27443         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27444         definitions.
27445         ("return" pattern): Generate ret.n/ret in call0 ABI.
27446         ("epilogue" pattern): Expand epilogue.
27447         ("nonlocal_goto" pattern): Use default in call0 ABI.
27448         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27449         emit eh_set_a0_* depending on ABI.
27450         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27451         ("eh_set_a0_call0", "blockage"): New patterns.
27452
27453 2015-03-03  Martin Liska  <mliska@suse.cz>
27454
27455         PR ipa/65287
27456         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27457
27458 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27459
27460         PR 65138/target
27461         * config/rs6000/rs6000-tables.opt: Regenerate table.
27462
27463 2015-03-03  Renlin Li  <renlin.li@arm.com>
27464
27465         * doc/md.texi (@item ^): Change ? into ^.
27466
27467 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27468
27469         * doc/tm.texi: Regenerated.
27470
27471 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27472
27473         * builtins.c (expand_builtin_return_addr): Add
27474         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27475         surrounding #ifdef.
27476         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27477         definition to 1.
27478         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27479         Likewise.
27480         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27481         undefined.
27482         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27483         paragraph.
27484
27485 2015-03-03  Martin Jambor  <mjambor@suse.cz>
27486             Eric Botcazou  <ebotcazou@adacore.com>
27487
27488         * tree-sra.c (ipa_sra_check_caller_data): New type.
27489         (has_caller_p): Removed.
27490         (ipa_sra_check_caller): New function.
27491         (ipa_sra_preliminary_function_checks): Use it.
27492
27493 2015-03-03  Martin Liska  <mliska@suse.cz>
27494
27495         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27496         instead of if branch.
27497
27498 2015-03-03  Martin Liska  <mliska@suse.cz>
27499
27500         PR ipa/65282
27501         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27502
27503 2015-03-23  Jeff Law  <law@redhat.com>
27504
27505         PR tree-optimization/65241
27506         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27507         hash table if INSERT is true.
27508
27509 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27510
27511         PR target/65296
27512         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27513
27514 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27515
27516         PR target/64331
27517         * config/avr/avr.c (context.h, tree-pass.h): Include them.
27518         (avr_pass_data_recompute_notes): New static variable.
27519         (avr_pass_recompute_notes): New class.
27520         (avr_register_passes): New static function.
27521         (avr_option_override): Call it.
27522
27523 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27524
27525         Fix various problems with specs file generation.
27526
27527         PR target/65296
27528         * config.gcc (extra_gcc_objs) [avr]: Remove.
27529         * config/avr/driver-avr.c: Remove file.
27530         * config/avr/t-avr (driver-avr.o): Remove rule.
27531         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27532         INCLUDES to build.  Depend on TM_H.
27533         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
27534         build warnings.  Fix non-matching types and non-existing %-codes.
27535         (tm.h): Include.
27536         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27537         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27538         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27539         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27540         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27541         (LIBGCC_SPEC): Remove definitions.
27542
27543 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27544
27545         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27546         to create a register in testing mode.
27547
27548 2015-03-03  Martin Liska  <mliska@suse.cz>
27549             Jan Hubicka  <hubicka@ucw.cz>
27550
27551         PR ipa/65263
27552         * cgraph.c (cgraph_node::has_thunk_p): New function.
27553         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27554         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27555         (sem_function::merge): Assert is changed.
27556
27557 2015-03-03  Martin Liska  <mliska@suse.cz>
27558             Martin Jambor  <mjambor@suse.cz>
27559
27560         PR ipa/65087
27561         * ipa-icf.c (sem_item_optimizer::execute): Change function
27562         return value to boolean.
27563         (sem_item_optimizer::merge_classes): Likewise.
27564         (ipa_icf_driver): Return TODO_remove_functions in case there's
27565         a merge operation processed.
27566         * ipa-icf.h: Change function return value to boolean.
27567
27568 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27569
27570         PR 65138/target
27571         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27572         processor type for 64-bit little endian PowerPC.
27573
27574         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27575         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
27576         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
27577         printing built-in mask so it does not pass NULL pointers.
27578
27579         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27580         -mcpu=powerpc64le.
27581
27582 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
27583
27584         PR target/58158
27585         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27586         !ISA_HAS_FP_CONDMOVE.
27587
27588 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
27589
27590         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27591         reload_completed.
27592
27593 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
27594
27595         * doc/invoke.texi (Options for Code Generation Conventions):
27596         Fix URL of DSO paper.
27597
27598 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27599
27600         PR ipa/65130
27601         * ipa-inline.c (check_callers): Looks for recursion.
27602         (inline_to_all_callers): Give up on uninlinable or recursive edges.
27603         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27604         summary of inline clones.
27605         (do_estimate_growth_1): Fix recursion check.
27606
27607 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27608
27609         PR ipa/64988
27610         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27611         comdat groups.
27612
27613 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27614             Aldy Hernandez  <aldyh@redhat.com>
27615
27616         PR lto/65276
27617         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27618         when checking TYPE_BINFO.
27619
27620 2015-03-02  Richard Biener  <rguenther@suse.de>
27621
27622         PR ipa/65270
27623         * ipa-icf-gimple.c: Include builtins.h.
27624         (func_checker::compare_memory_operand): Compare base alignment.
27625
27626 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27627
27628         PR target/65184
27629         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27630         are never passed by reference.
27631
27632 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27633
27634         PR target/65183
27635         * tree-chkp.c (chkp_check_lower): Don't check against
27636         zero bounds for already instrumented functions.
27637         (chkp_check_upper): Likewise.
27638         (chkp_fini): Clean pass local data to avoid wrong reusage.
27639
27640 2015-02-28  Martin Liska  <mliska@suse.cz>
27641             Jan Hubicka  <hubicka@ucw.cz>
27642
27643         * ipa-icf.c (sem_variable::equals): Improve debug output;
27644         get variable constructor.
27645         (sem_variable::parse): Do not filter out too early; give up on
27646         volatile and register vars.
27647         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27648         variables.
27649         * ipa-icf.h (sem_variable::init): Do not set ctor.
27650         (sem_variable::ctor): Remove.
27651
27652 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
27653
27654         PR middle-end/65233
27655         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27656
27657 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27658
27659         * ipa-icf.c: Include stor-layout.h
27660         (sem_function::compare_cgraph_references): Rename to ...
27661         (sem_item::compare_cgraph_references): ... this one.
27662         (sem_variable::equals_wpa): New function
27663         (sem_variable::equals): Do not check stuff already verified by
27664         equals_wpa.
27665         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27666         * ipa-icf.h (sem_item): Add compare_cgraph_references.
27667         (sem_function): Remove compare_cgraph_references.
27668         (sem_variable): Turns equals_wpa into non-inline.
27669
27670 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27671
27672         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27673         (sem_item::add_expr): New function.
27674         (sem_function::hash_stmt): Handle operands of most statements.
27675         (sem_variable::get_hash): Hash the actual constructor.
27676         * ipa-icf.h (sem_item): Add add_expr.
27677         (sem_function): Update prototype of hash_stmt
27678
27679 2015-02-28  Martin Liska  <mliska@suse.cz>
27680             Jan Hubicka  <hubicka@ucw.cz>
27681
27682         PR ipa/65245
27683         * ipa-icf-gimple.c (func_checker::compare_function_decl):
27684         Remove.
27685         (func_checker::compare_variable_decl): Skip symtab vars.
27686         (func_checker::compare_cst_or_decl): Update.
27687         * ipa-icf.c (sem_function::parse): Do not consider aliases.
27688         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27689         use correct symtab predicates.
27690         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27691         (sem_variable::parse):  Update comment.
27692         (sem_item_optimizer::build_graph): Consider ultimate aliases
27693         for references.
27694
27695 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27696
27697         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27698         of OBJ_TYPE_REF.
27699
27700 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27701
27702         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27703         (sem_variable::merge) Likewise.
27704
27705 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27706
27707         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27708         target; also match flag_ipa_devirt.
27709
27710 2015-03-01  Martin Liska  <mliska@suse.cz>
27711             Jan Hubicka  <hubicka@ucw.cz>
27712
27713         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27714         Validate variable alignment.
27715         * ipa-icf.c (sem_function::equals_private): Be more precise
27716         about non-common function attributes.
27717         (sem_variable::equals): Likewise.
27718
27719 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27720
27721         PR ipa/65237
27722         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27723         across COMDAT group boundary.
27724
27725 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27726
27727         PR ipa/65232
27728         * ipa-icf.c (clear_decl_rtl): New function.
27729         (sem_function::merge): Clear RTL before forming alias.
27730         (sem_variable::merge): Clear RTL before forming alias.
27731
27732 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27733
27734         PR ipa/65236
27735         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27736
27737 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
27738
27739         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27740         to neon_to_gp<q>.
27741
27742 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27743
27744         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27745         a typo in the description.
27746
27747 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27748
27749         PR target/64317
27750         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27751         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27752         * lra-constraints.c: Include "params.h".
27753         (EBB_PROBABILITY_CUTOFF): Use
27754         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27755         (lra_inheritance): Use '<' instead of '<=' for
27756         EBB_PROBABILITY_CUTOFF.
27757         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27758         Document change.
27759
27760 2015-02-27  Martin Liska  <mliska@suse.cz>
27761
27762         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27763         vector length condition.
27764
27765 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
27766
27767         * doc/extend.texi (x86 transactional memory intrinsics):
27768         Reorganize discussion of _xbegin.  Clarify that the return
27769         value is a bit mask.  Expand example and move to end of section.
27770
27771 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27772             Aldy Hernandez  <aldyh@redhat.com>
27773
27774         PR rtl-optimization/65220
27775         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27776
27777 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27778
27779         PR target/65032
27780         * lra-remat.c (update_scratch_ops): New.
27781         (do_remat): Call it.
27782         * lra.c (lra_register_new_scratch_op): New. Take code from ...
27783         (remove_scratches): ... here.
27784         * lra-int.h (lra_register_new_scratch_op): New prototype.
27785
27786 2015-02-27  Marek Polacek  <polacek@redhat.com>
27787
27788         PR c/65040
27789         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27790         -Wformat-signedness anymore.
27791
27792 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27793
27794         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27795         function.
27796         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27797
27798 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27799
27800         * config/s390/s390.c (enum s390_builtin):
27801         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27802         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27803         (s390_init_builtins): Generate new builtin functions.
27804         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27805         (s390_sfpc, s390_efpc): New pattern definitions.
27806
27807 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27808
27809         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27810         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27811         (s390_builtin_decls): New array.
27812         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27813         (s390_builtin_decl): New function.
27814         (TARGET_BUILTIN_DECL): Define macro.
27815
27816 2015-02-27  Richard Biener  <rguenther@suse.de>
27817
27818         PR middle-end/63175
27819         * builtins.c (get_object_alignment_2): Make sure to re-apply
27820         the ANDed mask after recursing to its operand gets us a new
27821         misalignment bit position.
27822
27823 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
27824             Martin Liska  <mliska@suse.cz>
27825
27826         PR bootstrap/65150
27827         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
27828         Use address_matters_p.
27829         (redirect_all_callers, set_addressable): New functions.
27830         (sem_function::merge): Reorganize and fix merging issues.
27831         (sem_variable::merge): Likewise.
27832         (sem_variable::compare_sections): Remove.
27833         * common.opt (fmerge-all-constants, fmerge-constants): Remove
27834         Optimization flag.
27835         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
27836         redirect them.
27837         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
27838         decl is used.
27839         (address_matters_1): New function.
27840         (symtab_node::address_matters_p): New function.
27841         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
27842         check for merged flag.
27843         * cgraph.h (address_matters_p): Declare.
27844         (symtab_node::address_taken_from_non_vtable_p): Remove.
27845         (symtab_node::address_can_be_compared_p): New method.
27846         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
27847         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
27848         Remove.
27849         (comdat_can_be_unshared_p_1) Use address_matters_p.
27850         (update_vtable_references): Fix formating.
27851         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
27852         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
27853         * cgraphclones.c: Preserve merged and icf_merged flags.
27854
27855 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
27856
27857         * doc/extend.texi (Function Attributes): Fix spelling and typos.
27858         (Label Attributes): Likewise.
27859         (Cilk Plus Builtins): Likewise.
27860         (ARC SIMD Built-in Functions): Likewise.
27861         (ARM C Language Extensions (ACLE)): Likewise.
27862         (PowerPC Built-in Functions): Likewise.
27863         (PowerPC Hardware Transactional Memory Built-in Functions):
27864         Likewise.
27865
27866 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27867
27868         PR tree-optimization/65216
27869         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
27870         new stmt and new SSA_NAME for lhs whenever the arguments have
27871         changed and weren't just swapped.  Fix comment typo.
27872
27873         PR tree-optimization/65215
27874         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
27875         for PDP endian targets.
27876         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
27877         Fix up formatting issues.
27878         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
27879         size is smaller than the original, adjust MEM_REF offset by the
27880         difference of sizes.  Use is_gimple_mem_ref_addr instead of
27881         is_gimple_min_invariant test to avoid adding address temporaries.
27882
27883 2015-02-26  Martin Liska  <mliska@suse.cz>
27884             Jan Hubicka  <hubicka@ucw.cz>
27885
27886         PR ipa/64693
27887         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
27888         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
27889         (sem_item_optimizer::process_cong_reduction): Include division by
27890         sensitive references.
27891         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
27892         * ipa-ref.c (ipa_ref::address_matters_p): New function.
27893         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
27894
27895 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
27896
27897         PR target/65192
27898         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
27899         Remove.
27900         * config/avr/avr.c: Same.
27901         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
27902         Refuse any constant address not in 0..0xbf.
27903         * config/avr/avr.md (*mov<mode>, *movsf): Remove
27904         tiny_valid_direct_memory_access_range from insn conditions.
27905         (mov<mode>): Don't special-case expansion of avrtiny addresses.
27906
27907 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
27908
27909         PR target/61142
27910         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
27911         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
27912         * config/sh/predicates.md (const_logical_operand): New predicate.
27913         * config/sh/sh.md: Add new peephole2 patterns.
27914
27915 2015-02-26  Marek Polacek  <polacek@redhat.com>
27916
27917         PR ipa/65008
27918         * ipa-inline.c (early_inliner): Recompute inline parameters.
27919
27920 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27921
27922         PR target/65171
27923         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
27924         instructions with TImode operands are included in the analysis.
27925
27926 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27927
27928         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
27929         of an EDGE_FSM_THREAD.
27930
27931 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27932
27933         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
27934
27935 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
27936
27937         PR debug/46102
27938         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
27939
27940 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
27941
27942         PR tree-optimization/65048
27943         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
27944         (thread_through_all_blocks): Call valid_jump_thread_path.
27945         Remove invalid FSM jump-thread paths.
27946
27947 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27948
27949         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
27950         (ipa_write_optimization_summaries): Likewise.
27951         * tree-streamer.h: Include data-streamer.h.
27952         (streamer_mode_table): Declare extern variable.
27953         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
27954         * lto-streamer-out.c (lto_output_init_mode_table,
27955         lto_write_mode_table): New functions.
27956         (produce_asm_for_decls): Call lto_write_mode_table when streaming
27957         offloading LTO.
27958         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
27959         (lto_create_simple_input_block): Add mode_table argument to the
27960         lto_input_block constructors.
27961         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
27962         Likewise.
27963         * data-streamer-in.c (string_for_index): Likewise.
27964         * ipa-inline-analysis.c (inline_read_section): Likewise.
27965         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
27966         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
27967         * lto-streamer-in.c (lto_read_body_or_constructor,
27968         lto_input_toplevel_asms): Likewise.
27969         (lto_input_mode_table): New function.
27970         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
27971         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
27972         Use bp_pack_machine_mode.
27973         * real.h (struct real_format): Add name field.
27974         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
27975         (class lto_input_block): Add mode_table member.
27976         (lto_input_block::lto_input_block): Add mode_table_ argument,
27977         initialize mode_table.
27978         (struct lto_file_decl_data): Add mode_table field.
27979         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
27980         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
27981         unpack_ts_decl_common_value_fields,
27982         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
27983         * tree-streamer.c (streamer_mode_table): New variable.
27984         * real.c (ieee_single_format, mips_single_format,
27985         motorola_single_format, spu_single_format, ieee_double_format,
27986         mips_double_format, motorola_double_format,
27987         ieee_extended_motorola_format, ieee_extended_intel_96_format,
27988         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
27989         ibm_extended_format, mips_extended_format, ieee_quad_format,
27990         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
27991         decimal_single_format, decimal_double_format, decimal_quad_format,
27992         ieee_half_format, arm_half_format, real_internal_format): Add name
27993         field.
27994         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
27995
27996 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
27997
27998         PR target/65161
27999         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28000         reordering for selective scheduling.
28001
28002 2015-02-26  Terry Guo  <terry.guo@arm.com>
28003
28004         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28005         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28006         (arm_arch_no_volatile_ce): Declare new global variable.
28007         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28008         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28009         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28010         (TARGET_NO_VOLATILE_CE): New macro.
28011         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28012         volatile memory access in IT block
28013
28014 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28015
28016         PR tree-optimization/61917
28017         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28018         that reduc_def_stmt is null.
28019
28020 2015-02-25  Martin Liska  <mliska@suse.cz>
28021
28022         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28023         hard register variables.
28024
28025 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28026
28027         PR target/64212
28028         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28029         (symtab::noninterposable_alias): Likewise.
28030
28031 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28032
28033         PR target/65167
28034         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28035         bounds registers.
28036         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28037
28038 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28039
28040         PR target/64997
28041         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28042         as split condition; force split via '#' in output pattern.
28043
28044 2015-02-25  Richard Biener  <rguenther@suse.de>
28045             Kai Tietz  <ktietz@redhat.com>
28046
28047         PR tree-optimization/61917
28048         * tree-vect-loop.c (vectorizable_reduction): Allow
28049         vect_internal_def without reduction to exit graceful.
28050
28051 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28052
28053         PR target/65196
28054         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28055         only with NONDEBUG_INSN_P.
28056
28057 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28058
28059         Use variadic macros with avr-log.c.
28060
28061         * config/avr/avr-protos.h (avr_vdump): New prototype.
28062         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28063         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28064         * config/avr/avr-log.c: Adjust comments.
28065         (avr_vdump): New function.
28066         (avr_vadump): Pass caller as 2nd argument instead of format string.
28067         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28068         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28069
28070 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28071
28072         PR lto/64374
28073         * target.def (target_option_stream_in): New target hook.
28074         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28075         targetm.target_option.post_stream_in if non-NULL.
28076         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28077         * doc/tm.texi: Updated.
28078         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28079         function.
28080         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28081
28082 2015-02-24  Jeff Law  <law@redhat.com>
28083
28084         PR target/65117
28085         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28086         of operand 0 and operand 2.
28087         (zero_cost_loop_end, loop_end): Similarly.
28088
28089 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28090
28091         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28092         CXX_MEM_STAT_INFO.
28093
28094 2015-02-24  DJ Delorie  <dj@redhat.com>
28095
28096         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28097         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28098         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28099         instead of hardcoding SImode.
28100
28101 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28102
28103         * omp-low.c (create_omp_child_function): Tag entrypoint
28104         functions with a special attribute.
28105
28106 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28107
28108         PR target/65058
28109         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28110
28111 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28112
28113         PR rtl-optimization/65123
28114         * lra-remat.c (operand_to_remat): Check hard regs in insn
28115         definition too.
28116
28117 2015-02-24  Nick Clifton  <nickc@redhat.com>
28118
28119         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28120         to the assembler.
28121
28122 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28123
28124         PR libgomp/64625
28125         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28126         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28127         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28128         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28129         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28130         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28131         (BUILT_IN_GOACC_PARALLEL): Specify as
28132         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28133         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28134         * builtin-types.def
28135         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28136         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28137         Remove function types.
28138         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28139         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28140         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28141         New function types.
28142
28143 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28144
28145         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28146
28147 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28148
28149         PR tree-optimization/65170
28150         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28151         if val[1] < 0, clear also val[2] and return 3.
28152
28153 2015-02-24  Alan Modra  <amodra@gmail.com>
28154
28155         PR target/65172
28156         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28157         when *base is a reg.  Handle nested plus addresses.  Simplify
28158         pre_modify test.
28159
28160 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28161
28162         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28163         use natural alignment when optimizing for size.
28164
28165 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28166
28167         PR target/65153
28168         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28169         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28170         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28171
28172 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28173
28174         PR fortran/63427
28175         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28176         too big for a wide_int.  Implement missing wrapping operation.
28177
28178 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28179
28180         PR target/65163
28181         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28182         instead of const_int 4294901760.
28183
28184 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28185
28186         * config/avr/t-avr: Fix typo in comment.
28187
28188 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28189
28190         * doc/rtl.texi (fma): Clarify documentation.
28191
28192 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28193
28194         PR debug/58123
28195         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28196         over input_location.
28197
28198 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28199
28200         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28201         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28202         restrict alignments to absolute_biggest_alignment.
28203         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28204         Define.
28205         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28206         * doc/tm.texi: Regenerate.
28207         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28208
28209 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28210
28211         PR target/64172
28212         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28213
28214 2015-02-20  Richard Biener  <rguenther@suse.de>
28215
28216         PR tree-optimization/65136
28217         * tree-ssa-propagate.c: Include cfgloop.h.
28218         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28219         arguments with constants.
28220
28221 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28222             Martin Liska  <mliska@suse.cz>
28223
28224         PR target/63892
28225         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28226         don't try to create_thunk if stdarg_p.  If
28227         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28228         redirect_callers if possible.
28229         (sem_item_optimizer::execute): Call unregister_hooks here...
28230         (ipa_icf_driver): ... instead of here.
28231
28232 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28233
28234         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28235         Mark operand 0 as earlyclobber in 2nd alternative.
28236         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28237         Write negated shift amount into QI lowpart operand 0 and use it
28238         in the shift step.
28239         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28240
28241 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28242
28243         * cgraph.h (clone_function_name_1): Declare.
28244         * cgraphclones.c (clone_function_name_1): New function.
28245         (clone_function_name): Use it.
28246         * lto-partition.c: Include "stringpool.h".
28247         (must_not_rename, maybe_rewrite_identifier)
28248         (validize_symbol_for_target): New static functions.
28249         (privatize_symbol_name): Use must_not_rename.
28250         (promote_symbol): Call validize_symbol_for_target.
28251         (lto_promote_cross_file_statics): Likewise.
28252         (lto_promote_statics_nonwpa): Likewise.
28253
28254 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28255
28256         PR target/64452
28257         * config/avr/avr.md (pushhi_insn): New insn.
28258         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28259
28260 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28261             Jakub Jelinek  <jakub@redhat.com>
28262
28263         * tree-streamer.c (preload_common_nodes): Don't preload
28264         TI_VA_LIST* for offloading.
28265         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28266         in_lto_p.
28267
28268 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28269
28270         * config/pa/pa.c (pa_emit_move_sequence): Always force
28271         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28272         note on insn.
28273
28274         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28275         (TARGET_ASM_RELOC_RW_MASK): Define.
28276         (pa_cannot_force_const_mem): Revert previous change.
28277
28278 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28279             Jan Hubicka  <hubicka@ucw.cz>
28280
28281         PR ipa/65028
28282         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28283         across jump functions.
28284
28285 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28286
28287         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28288
28289 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28290
28291         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28292
28293 2015-02-19  Richard Henderson  <rth@redhat.com>
28294
28295         PR middle-end/65074
28296         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28297         test DECL_EXTERNAL independent of symtab_node.
28298
28299 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28300
28301         PR lto/65012
28302         * varpool.c (varpool_node::get_constructor): Return early
28303         if this->lto_file_data is NULL.
28304
28305 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28306
28307         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28308         (rank_for_schedule_debug): Update.
28309         (ready_sort): Make static.  Move sorting logic to ...
28310         (ready_sort_debug, ready_sort_real): New static functions.
28311         (schedule_block): Sort both debug insns and real insns in preparation
28312         for ready list trimming.  Improve debug output.
28313         * sched-int.h (ready_sort): Remove global declaration.
28314
28315 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28316
28317         * ipa-icf.c (sem_function::equals_private): Adjust.
28318         (sem_function::bb_dict_test): Take a vec<int> * instead of
28319         auto_vec<int>.
28320         * ipa-icf.h (bb_dict_test): Likewise.
28321
28322 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28323
28324         PR gcov-profile/64634
28325         * tree-eh.c (frob_into_branch_around): Fix up typos
28326         in function comment.
28327         (lower_catch): Put eh_seq resulting from EH lowering of
28328         the cleanup sequence after the cleanup rather than before it.
28329
28330 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28331
28332         * common.opt (fstdarg-opt): New option.
28333         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28334         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28335         (@item -fstdarg-opt): New item.
28336
28337 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28338
28339         PR target/65064
28340         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28341         for common symbols.
28342
28343 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28344
28345         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28346         insn-modes.h.
28347         (ALL_HOST_OBJS): Add mkoffload.o.
28348         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28349
28350 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28351
28352         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28353         (compare_virtual_tables): Be smarter about skipping typeinfos;
28354         do sane output on virtual table table mismatch.
28355         (warn_odr): Be ready for forward declarations of enums;
28356         output sane info on base mismatch and virtual table mismatch.
28357         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28358         when only one type is polymorphic.
28359         (get_odr_type): Fix hashtable corruption.
28360         (dump_odr_type): Dump mangled names.
28361
28362 2015-02-18  Richard Biener  <rguenther@suse.de>
28363
28364         PR tree-optimization/65063
28365         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28366         have replaced looparound PHIs.
28367
28368 2015-02-18  Martin Liska  <mliska@suse.cz>
28369
28370         * lto-streamer.c (lto_streamer_init): Encapsulate
28371         streamer_check_handled_ts_structures with checking macro.
28372
28373 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28374
28375         PR ipa/65087
28376         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28377         section if !implicit_section.
28378         (cgraph_node::create_version_clone_with_body): Likewise.
28379         * trans-mem.c (ipa_tm_create_version): Likewise.
28380
28381 2015-02-18  Richard Biener  <rguenther@suse.de>
28382
28383         PR tree-optimization/62217
28384         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28385         into BIVs.
28386
28387 2015-02-18  Marek Polacek  <polacek@redhat.com>
28388
28389         PR sanitizer/65081
28390         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28391         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28392         is in range [-16K, -1].  Don't issue run-time error if
28393         (ptr > ptr + offset).
28394
28395 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28396
28397         * doc/install.texi (nvptx-*-none): New section.
28398         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28399         * config/nvptx/nvptx.opt: Update.
28400
28401         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28402         (access_check): New functions, copied from
28403         config/i386/intelmic-mkoffload.c.
28404         (main): For non-installed testing, look in all COMPILER_PATHs for
28405         GCC_INSTALL_NAME.
28406
28407         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28408
28409 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28410             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28411
28412         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28413         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28414
28415 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28416
28417         * ipa-visibility.c (function_and_variable_visibility): Only
28418         check locality if node is not already local.
28419         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28420         call_for_symbol_and_aliases instead of
28421         call_for_symbol_thunks_and_aliases.
28422         (ipa_inline): Likewise.
28423         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28424         first walk aliases.
28425         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28426         call_for_symbol_and_aliases.
28427         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28428         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28429         (ipa_propagate_frequency): Update.
28430         (ipa_profile): Add opt_for_fn gueards.
28431
28432 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28433
28434         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28435         * doc/invoke.texi (SH options): Document it.
28436         * config/sh/sh.c (sh_insn_length_adjustment): Check
28437         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28438
28439 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28440
28441         * common.opt (fipa-cp-alignment): New.
28442         * ipa-cp.c (ipcp_store_alignment_results): Check
28443         flag_ipa_cp_alignment.
28444         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28445         -O2.
28446         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28447         * doc/invoke.texi: Document -fipa-cp-alignment.
28448
28449 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28450
28451         PR target/64793
28452         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28453         to nil.  Adjust comments.
28454
28455 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28456
28457         * ipa-visibility.c (function_and_variable_visibility): Only
28458         check locality if node is not already local.
28459         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28460         call_for_symbol_and_aliases instead of
28461         call_for_symbol_thunks_and_aliases.
28462         (ipa_inline): Likewise.
28463         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28464         first walk aliases.
28465         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28466         call_for_symbol_and_aliases.
28467         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28468         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28469         (ipa_propagate_frequency): Update.
28470         (ipa_profile): Add opt_for_fn guards.
28471
28472 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
28473
28474         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28475         skipping of "strange" tokens.
28476
28477 2015-02-17  Jeff Law  <law@redhat.com>
28478
28479         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
28480         obsolete comment.
28481
28482 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
28483
28484         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28485         as forcing a HARD_DEP between instructions, thereby
28486         disallowing rewriting to break dependencies.
28487
28488 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28489
28490         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28491         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28492         variables in boundary that have no inlitalizer encoded and are
28493         not aliases.
28494         * varasm.c (default_binds_local_p_2): External definitions do not
28495         count as definitions here.
28496
28497 2015-02-16  Jeff Law  <law@redhat.com>
28498
28499         PR tree-optimization/64823
28500         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28501         statements.
28502         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28503         threading through blocks with PHIs, but no statements.
28504         (thread_through_normal_block): Distinguish between blocks where
28505         we did not process all the statements and blocks with no statements.
28506
28507 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
28508             James Greenhalgh  <james.greenhalgh@arm.com>
28509
28510         PR ipa/64963
28511         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28512         section if not linkonce.  Fix up formatting.
28513         (cgraph_node::create_version_clone_with_body): Copy section.
28514         * trans-mem.c (ipa_tm_create_version): Likewise.
28515
28516 2015-02-16  Richard Biener  <rguenther@suse.de>
28517
28518         PR tree-optimization/65077
28519         * tree-ssa-structalias.c (get_constraint_for_1): Handle
28520         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28521         (find_func_aliases): Allow float values to carry pointers again.
28522
28523 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28524
28525         * doc/install.texi (Specific): Reorder targets list to put
28526         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
28527         from the top menu.
28528
28529 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28530             David Edelsohn  <dje.gcc@gmail.com>
28531
28532         PR target/65058
28533         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28534         mapping class to external variable or function reference.
28535         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28536         mapping class.
28537
28538 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
28539
28540         PR target/53348
28541         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28542         ASM_WEAKEN_DECL if defined.
28543
28544 2015-02-16  Richard Biener  <rguenther@suse.de>
28545
28546         PR lto/65015
28547         * varasm.c (default_file_start): For LTO produced units
28548         emit <artificial> as file directive.
28549
28550 2015-02-16  Richard Biener  <rguenther@suse.de>
28551
28552         PR tree-optimization/63593
28553         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28554         stmts and releasing SSA names until...
28555         (execute_pred_commoning): ... after processing all chains.
28556
28557 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28558
28559         PR ipa/65059
28560         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28561         external functions.
28562
28563 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
28564
28565         * doc/bugreport.texi: Adjust section titles throughout the file
28566         to use "Title Case".
28567         * doc/extend.texi: Likewise.
28568         * doc/gcov.texi: Likewise.
28569         * doc/implement-c.texi: Likewise.
28570         * doc/implement-cxx.texi: Likewise.
28571         * doc/invoke.texi: Likewise.
28572         * doc/objc.texi: Likewise.
28573         * doc/standards.texi: Likewise.
28574         * doc/trouble.texi: Likewise.
28575
28576 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
28577
28578         * cgraph.h (symtab_node::has_aliases_p): Simplify.
28579         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28580         * tree.c (lookup_binfo_at_offset): Make static.
28581         (get_binfo_at_offset): Do not shadow offset; add explanatory
28582         comment.
28583
28584 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
28585
28586         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28587         for all floading point loads and stores except those using a register
28588         index address.
28589         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28590         to a register.
28591
28592 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28593
28594         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28595         (do_estimate_growth_1): Record if any uninlinable edge was seen.
28596         (estimate_growth): Handle uninlinable edges correctly.
28597         (check_callers): New.
28598         (growth_likely_positive): Handle aliases correctly.
28599
28600 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28601
28602         * ipa-chkp.c: Use iterate_direct_aliases.
28603         * symtab.c (resolution_used_from_other_file_p): Move inline.
28604         (symtab_node::create_reference): Fix formating.
28605         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28606         (symtab_node::iterate_reference): Move inline.
28607         (symtab_node::iterate_referring): Move inline.
28608         (symtab_node::iterate_direct_aliases): Move inline.
28609         (symtab_node::used_from_object_file_p_worker): Inline into ...
28610         (symtab_node::used_from_object_file_p): ... this one; move inline.
28611         (symtab_node::call_for_symbol_and_aliases): Move inline;
28612         use iterate_direct_aliases.
28613         (symtab_node::call_for_symbol_and_aliases_1): New method.
28614         (cgraph_node::call_for_symbol_and_aliases): Move inline;
28615         use iterate_direct_aliases.
28616         (cgraph_node::call_for_symbol_and_aliases_1): New method.
28617         (varpool_node::call_for_node_and_aliases): Rename to ...
28618         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28619         use iterate_direct_aliases.
28620         (varpool_node::call_for_symbol_and_aliases_1): New method.
28621         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28622         (ipa_discover_readonly_nonaddressable_var): Update.
28623         * ipa-devirt.c: Fix formating.
28624         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28625         Move inline.
28626         (cgraph_node::call_for_symbol_and_aliases): Move inline.
28627         (cgraph_node::call_for_symbol_and_aliases_1): New function..
28628         * cgraph.h (used_from_object_file_p_worker): Remove.
28629         (resolution_used_from_other_file_p): Move inline.
28630         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28631         (symtab_node::iterate_reference): Move inline.
28632         (symtab_node::iterate_referring): Move inline.
28633         (symtab_node::iterate_direct_aliases): Move inline.
28634         (symtab_node::used_from_object_file_p_worker): Inline into ...
28635         (symtab_node::used_from_object_file_p): Move inline.
28636         * tree-emutls.c (ipa_lower_emutls): Update.
28637         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28638         (varpool_node::call_for_node_and_aliases): Remove.
28639
28640 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
28641
28642         PR tree-optimization/62209
28643         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28644         op == range->exp, insert seq and gimplified code after labels
28645         instead of after the phi.
28646
28647 2015-02-13  Jeff Law  <law@redhat.com>
28648
28649         PR bootstrap/65060
28650         Revert my change for tree-optimization/64823.
28651
28652 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28653
28654         PR tree-optimization/65053
28655         * tree-ssa-phiopt.c (value_replacement): When moving assign before
28656         cond, either reset VR on lhs or set it to phi result VR.
28657
28658 2015-02-13  Jeff Law  <law@redhat.com>
28659
28660         PR tree-optimization/64823
28661         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28662         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28663         threading through blocks with PHIs, but no statements.
28664         (thread_through_normal_block): Distinguish between blocks where
28665         we did not process all the statements and blocks with no statements.
28666
28667         PR rtl-optimization/47477
28668         * match.pd (convert (plus/minus (convert @0) (convert @1): New
28669         simplifier to narrow arithmetic.
28670
28671 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
28672
28673         PR ipa/65028
28674         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28675         polymorphic call info when type is not known to be preserved.
28676
28677 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
28678
28679         PR ipa/65028
28680         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28681         (inline_call): Use it.
28682
28683 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
28684
28685         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28686         GOMP_DEVICE_NVIDIA_PTX.
28687
28688 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28689
28690         PR ipa/65034
28691         * stmt.c (emit_case_nodes): Use void_type_node instead of
28692         NULL_TREE as LABEL_DECL type.
28693
28694 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
28695
28696         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28697         constraints.
28698         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28699         symbolic references to data to be forced to constant memory on the
28700         SOM target.
28701
28702 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28703
28704         PR tree-optimization/65002
28705         * tree-cfg.c (pass_data_fixup_cfg): Don't update
28706         SSA on start.
28707         * tree-sra.c (some_callers_have_no_vuse_p): New.
28708         (ipa_early_sra): Reject functions whose callers
28709         assume function is read only.
28710
28711 2015-02-13  Richard Biener  <rguenther@suse.de>
28712
28713         PR lto/65015
28714         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28715         for LTO produced CUs.
28716
28717 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
28718
28719         PR tree-optimization/64705
28720         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28721         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28722         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28723         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28724         expand_simple_operations.
28725
28726 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28727             Richard Henderson  <rth@redhat.com>
28728
28729         PR rtl/32219
28730         * cgraphunit.c (cgraph_node::finalize_function): Set definition
28731         before notice_global_symbol.
28732         (varpool_node::finalize_decl): Likewise.
28733         * varasm.c (default_binds_local_p_2): Rename from
28734         default_binds_local_p_1, add weak_dominate argument.  Use direct
28735         returns instead of assigning to local variable.  Unify varpool and
28736         cgraph paths via symtab_node.  Reject undef weak variables before
28737         testing visibility.  Reorder tests for simplicity.
28738         (default_binds_local_p): Use default_binds_local_p_2.
28739         (default_binds_local_p_1): Likewise.
28740         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28741         via symtab_node.
28742         (default_elf_asm_output_external): Emit visibility when specified.
28743
28744 2015-02-13  Alan Modra  <amodra@gmail.com>
28745
28746         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28747         code setting up r11 for out-of-line fp restore.
28748
28749 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
28750
28751         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28752         (muser-mode): Likewise.
28753
28754 2015-02-13  Alan Modra  <amodra@gmail.com>
28755
28756         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28757         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28758
28759 2015-02-12  David Howells  <dhowells@redhat.com>
28760
28761         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28762         warning.
28763         * tree-ssa-uninit.c (dump_predicates): Likewise.
28764         * opts.c (print_filtered_help): Likewise.
28765
28766 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28767
28768         * dwarf2out.c (output_die): Use "%s", name instead of name to
28769         avoid -Wformat-security warning.
28770
28771         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28772         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28773         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28774         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28775
28776 2015-02-12  Jason Merrill  <jason@redhat.com>
28777
28778         * common.opt (-flifetime-dse): New.
28779
28780 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28781
28782         PR sanitizer/65019
28783         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28784
28785         PR tree-optimization/65014
28786         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28787         use original second operand of arg0 or arg1 instead of
28788         that adjusted by STRIP_NOPS.
28789
28790 2015-02-11  Jeff Law  <law@redhat.com>
28791
28792         PR target/63347
28793         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28794         that needs to be queued, just queue it for a single cycle.
28795
28796 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
28797
28798         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28799         bodies of thunks; comment on why.
28800         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28801         symbols are extern.
28802
28803 2015-02-11  Richard Henderson  <rth@redhat.com>
28804
28805         PR sanitize/65000
28806         * tree-eh.c (mark_reachable_handlers): Mark source and destination
28807         regions of __builtin_eh_copy_values.
28808
28809 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28810
28811         PR middle-end/65003
28812         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28813         ultimate alias is MEM with SYMBOL_REF satisfying
28814         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
28815         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28816
28817 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
28818
28819         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
28820         "diagnostic-core.h".
28821         (main): Initialize progname, and call diagnostic_initialize.
28822
28823         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
28824         instead of __OPENMP_TARGET__.
28825
28826         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
28827         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
28828         hard-coding PTX_ID.
28829
28830 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
28831
28832         * doc/sourcebuild.texi (pie_enabled): Document.
28833
28834 2015-02-11  Martin Liska  <mliska@suse.cz>
28835
28836         PR ipa/64813
28837         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
28838         a return value for call to a function that is noreturn.
28839
28840 2015-02-11  Richard Biener  <rguenther@suse.de>
28841
28842         PR lto/65015
28843         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
28844         and -fresolution.
28845
28846 2015-02-11  Andrew Pinski  <apinski@cavium.com>
28847
28848         PR target/64893
28849         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
28850         Change the first argument type to size_type_node and add another
28851         size_type_node.
28852         (aarch64_simd_expand_builtin): Handle the new argument to
28853         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
28854         print an out when the first two arguments are not
28855         nonzero integer constants.
28856         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
28857         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
28858
28859 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28860
28861         PR target/61925
28862         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
28863         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
28864         (ix86_set_current_function): Rewritten.
28865         (ix86_add_new_builtins): Temporarily clear current_target_pragma
28866         when creating builtin fndecls.
28867
28868 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28869
28870         PR ipa/65005
28871         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
28872         function.
28873         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
28874         have no comdat group.
28875         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
28876         (lto_output_varpool_node): Always output alias info.
28877         (output_refs): Output refs of boundary aliases, too.
28878         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
28879         (output_symtab): Output call eges in thunks in boundary.
28880         (get_alias_symbol): Remove.
28881         (input_node, input_varpool_node): Do not special case weakrefs.
28882         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
28883         alias and thunks targets in the boundary; do not take removed symbols
28884         from their comdat groups.
28885         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
28886         (cgraph_node::global_info): Remove.
28887         (cgraph_node::rtl_info): Look through aliases and thunks.
28888         * cgrpah.h (global_info): Remove.
28889         (non_local_p): Remove.
28890
28891 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28892             Sandra Loosemore  <sandra@codesourcery.com>
28893
28894         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
28895         to inline asm.  List dialects in proper order.
28896
28897 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28898             Sandra Loosemore  <sandra@codesourcery.com>
28899
28900         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
28901
28902 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
28903
28904         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
28905         modified) reference to Solaris.
28906
28907 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
28908
28909         * doc/extend.texi (Extended Asm): Fix typos.
28910
28911 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
28912
28913         PR sanitizer/65004
28914         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
28915
28916 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
28917
28918         PR target/64661
28919         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
28920         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
28921         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
28922         * config/sh/constraints.md (Ara, Add): New constraints.
28923         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
28924         predicates.
28925         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
28926         atomic_mem_operand_0.  Don't use force_reg on the memory address.
28927         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
28928         Sra constraint.  Convert to insn_and_split.  Add workaround for
28929         PR 64974.
28930         (atomic_compare_and_swap<mode>_hard): Copy to
28931         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
28932         Use atomic_mem_operand_0 predicate.
28933         (atomic_compare_and_swap<mode>_soft_gusa,
28934         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
28935         AraAdd constraints.
28936         (atomic_compare_and_swap<mode>_soft_tcb,
28937         atomic_compare_and_swap<mode>_soft_imask,
28938         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
28939         atomic_mem_operand_0 predicate and SraSdd constraints.
28940         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
28941         constraint.
28942         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
28943         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
28944         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
28945         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
28946         force_reg on the memory address.
28947         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
28948         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
28949         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
28950         atomic_mem_operand_1 predicate and Sra constraint.
28951         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
28952         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28953         Use atomic_mem_operand_1 predicate.
28954         (atomic_<fetchop_name><mode>_hard): Copy to
28955         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
28956         Use atomic_mem_operand_1 predicate.
28957         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
28958         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28959         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
28960         insn_and_split.  Use atomic_mem_operand_1 predicate.
28961         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
28962         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
28963         Use atomic_mem_operand_1 predicate.
28964         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
28965         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
28966         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
28967         in generated insn with original mem operand before emitting the insn.
28968         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
28969         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
28970         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
28971         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
28972         Use atomic_mem_operand_1 predicate and AraAdd constraints.
28973         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
28974         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
28975         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
28976         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
28977         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
28978         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
28979         atomic_not_fetch<mode>_soft_tcb,
28980         atomic_<fetchop_name>_fetch<mode>_soft_imask,
28981         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
28982         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
28983         Use atomic_mem_operand_1 predicate and SraSdd constraints.
28984
28985 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
28986
28987         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
28988         and 3 earlyclobber operands.
28989
28990 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28991
28992         * common.opt (fstack-reuse): Mark as optimization.
28993
28994 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
28995
28996         PR ipa/64982
28997         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
28998
28999 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29000
29001         PR tree-optimization/64326
29002         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29003
29004 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29005
29006         PR gcov-profile/61889
29007         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29008
29009 2015-02-10  Richard Biener  <rguenther@suse.de>
29010
29011         PR tree-optimization/64995
29012         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29013         value we use is final.
29014         (visit_reference_op_store): Always valueize op.
29015         (visit_use): Properly valueize vuses.
29016
29017 2015-02-10  Richard Biener  <rguenther@suse.de>
29018
29019         PR tree-optimization/64909
29020         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29021         pass a scalar-stmt count estimate to the cost model.
29022         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29023
29024 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29025
29026         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29027         enabled by default together with var-tracking.
29028
29029 2015-02-10  Nick Clifton  <nickc@redhat.com>
29030
29031         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29032         included in previous rl78 commit.
29033
29034 2015-02-10  Richard Biener  <rguenther@suse.de>
29035
29036         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29037         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29038         return the bitpack.
29039
29040 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29041
29042         PR gcov-profile/61889
29043         * config.in: regenerate.
29044         * configure.in: Likewise.
29045         * configure.ac: Check for ftw.h.
29046         * gcov-tool.c: Check for ftw.h before using nftw.
29047
29048 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29049
29050         PR lto/64076
29051         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29052         assert when not in lto mode.
29053
29054 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29055
29056         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29057         initialization/assignment of conflict_size.
29058
29059 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29060
29061         PR ipa/64978
29062         * ipa-cp.c (gather_caller_stats): Skip thunks.
29063         (propagate_constants_topo): Skip aliases.
29064
29065 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29066
29067         PR target/64761
29068         * config/sh/sh.c (sh_option_override): Don't change
29069         -freorder-blocks-and-partition to -freorder-blocks even when
29070         unwinding is enabled.
29071         (sh_can_follow_jump): Return false if the followee jump is
29072         a crossing jump when -freorder-blocks-and-partition is specified.
29073         * config/sh/sh.md (*jump_compact_crossing): New insn.
29074
29075 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29076             Kaz Kojima  <kkojima@gcc.gnu.org>
29077
29078         PR target/64761
29079         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29080         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29081         (sh_can_redirect_branch): Rename to ...
29082         (sh_can_follow_jump): ... this.  Constify argument types.
29083         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29084         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29085         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29086         * doc/tm.texi: Regenerate.
29087
29088 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29089
29090         PR sanitizer/64981
29091         * builtins.c (expand_builtin): Call targetm.expand_builtin
29092         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29093
29094 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29095
29096         PR ipa/61548
29097         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29098
29099 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29100
29101         PR ipa/63566
29102         * ipa-icf.c (set_local): New function.
29103         (sem_function::merge): Use it.
29104
29105 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29106
29107         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29108         (add_type_duplicate): Fix comparison of BINFOs.
29109
29110 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29111
29112         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29113         on getting VOID pointer.
29114
29115 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29116
29117         PR target/64979
29118         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29119         va_list escapes.
29120
29121 2015-02-09  Richard Biener  <rguenther@suse.de>
29122
29123         * genmatch.c (replace_id): Copy expr_type.
29124
29125 2015-02-09  Richard Biener  <rguenther@suse.de>
29126
29127         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29128         (streamer_write_tree_bitfields): Declare.
29129         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29130         properly unpack padding.
29131         (unpack_value_fields): Inline ...
29132         (streamer_read_tree_bitfields): ... here.
29133         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29134         and properly add padding bits.
29135         (streamer_pack_tree_bitfields): Fold into ...
29136         (streamer_write_tree_bitfields): ... this new function,
29137         exposing the bitpack object.
29138         * lto-streamer-out.c (lto_write_tree_1): Call
29139         streamer_write_tree_bitfields.
29140
29141 2015-02-09  Richard Biener  <rguenther@suse.de>
29142
29143         PR tree-optimization/54000
29144         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29145         (struct ivopts_data): Add loop_loc member.
29146         (tree_ssa_iv_optimize_loop): Dump loop location.
29147         (create_new_ivs): Likewise, also dump number of IVs generated.
29148
29149 2015-02-09  Martin Liska  <mliska@suse.cz>
29150
29151         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29152         just if not yet registered.
29153         (ipa_icf_generate_summary): Register callgraph hooks.
29154
29155 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29156
29157         * config/aarch64/aarch64.c (gty_dummy): Delete.
29158
29159 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29160
29161         PR ipa/63566
29162         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29163         (cgraph_node::local_p): Remove thunk related FIXME.
29164
29165 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29166
29167         PR ipa/63566
29168         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29169         is local and optimized.
29170         (ix86_function_sseregparm): Likewise; also use target's SSE math
29171         settings; error out instead of silently generating wrong code
29172         on mismatches.
29173         (init_cumulative_args): Look through aliases.
29174
29175 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29176
29177         PR ipa/63566
29178         * ipa-split.c (execute_split_functions): Split if function has aliases.
29179
29180 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29181
29182         PR ipa/63566
29183         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29184         aliases before trying to expand it.
29185         (cgraph_node::expand_thunk): Fix formating.
29186
29187 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29188
29189         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29190         (Using Assembly Language with C): Expand introduction.
29191         (Basic Asm): Copy-edit.  Add more information about uses of
29192         basic asm.
29193         (Extended Asm): Copy-edit.  Document new escape syntax and
29194         %l[label] syntax.
29195         (Global Reg Vars): Copy-edit.
29196         (Local Reg Vars): Likewise.
29197
29198 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29199
29200         PR debug/2714
29201         PR bootstrap/64256
29202         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29203         (DBX_CONTIN_CHAR): Define.
29204
29205 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29206             Brian Rzycki  <b.rzycki@samsung.com>
29207
29208         PR tree-optimization/64878
29209         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29210         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29211         Stop recursion at loop phi nodes after having visited a loop phi node.
29212
29213 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29214
29215         * toplev.c (process_options): Change flag_ipa_ra before creating
29216         optimization_{default,current}_node.
29217
29218         PR ipa/64896
29219         * cgraphunit.c (cgraph_node::expand_thunk): If
29220         restype is not is_gimple_reg_type nor the thunk_fndecl
29221         returns aggregate_value_p, set restmp to a temporary variable
29222         instead of resdecl.
29223
29224 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29225
29226         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29227
29228 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29229
29230         PR target/64205
29231         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29232         add a general secondary reload handler for SDmode, unless we have
29233         both read/write support for SDmode.
29234
29235 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29236
29237         PR middle-end/64937
29238         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29239         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29240         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29241         1 before, push it to abstract_vec.
29242         (dwarf2out_abstract_function): Adjust caller.  Don't call
29243         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29244         DECL_ABSTRACT_P flags for all abstract_vec elts.
29245
29246 2015-02-06  Renlin Li  <renlin.li@arm.com>
29247
29248         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29249         complex gimple.
29250         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29251
29252 2015-02-06  Jeff Law  <law@redhat.com>
29253
29254         PR target/64889
29255         * config/h8300/h8300.c (push): New argument "in_prologue".
29256         Pass "in_prologue" along to "F".
29257         (h8300_push_pop): Corresponding changes.
29258         (h8300_expand_prologue): Likewise.
29259         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29260
29261 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29262
29263         PR rtl-optimization/64957
29264         PR debug/64817
29265         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29266         IOR rather than for AND.
29267
29268 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29269
29270         PR target/62631
29271         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29272         of shift-add and (add + shift) operations.  Rename local variable.
29273
29274 2015-02-05  Jeff Law  <law@redhat.com>
29275
29276         PR target/17306
29277         * config/h8300/constraints.md (U): Correctly dectect
29278         "eightbit_data" memory addresses.
29279         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29280         handle (const (plus (symbol_ref (x)))) where x is declared
29281         as an 8-bit data memory address.
29282         * config/h8300/h8300.md (call, call_value): Correctly detect
29283         "funcvec" functions.
29284
29285         PR target/43264
29286         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29287         24 to 28 bits for the H8/300.
29288
29289 2015-02-06  Alan Modra  <amodra@gmail.com>
29290
29291         PR target/64876
29292         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29293         (rs6000_call_aix): Use it.
29294
29295 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29296
29297         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29298         check.
29299
29300 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29301
29302         * config/h8300/constraints.md ("U" constraint): Use strict
29303         variant of REG_OK_FOR_BASE_P after reload has started.
29304
29305 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29306
29307         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29308         define to zero if !TARGET_NEON.
29309         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29310
29311 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29312             Trevor Saunders  <tsaunders@mozilla.com>
29313
29314         PR ipa/61548
29315         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29316
29317 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29318
29319         PR ipa/61548
29320         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29321         when removing varpool nodes.
29322
29323 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29324
29325         PR ipa/61548
29326         * varpool.c (varpool_node::remove): Fix order of variables.
29327
29328 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29329
29330         PR ipa/64686
29331         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29332         speculation resolution and key updates.
29333
29334 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29335
29336         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29337         about not letting any speculative edges unupdated.
29338
29339 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29340
29341         PR gcov/64123
29342         * gcov-io.c (gcov_var): Export.
29343
29344 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29345
29346         PR middle-end/64922
29347         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29348         edges that become speculative.
29349
29350 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29351
29352         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29353         or DW_LANG_Fortran08.
29354         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29355         DW_LANG_Fortran08.
29356         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29357         "GNU Fortran2008" language strings.
29358         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29359         * langhooks.h (lang_GNU_Fortran): New prototype.
29360         * langhooks.c (lang_GNU_Fortran): New function.
29361         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29362         lang_GNU_Fortran.
29363
29364 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29365
29366         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29367         (RTX_OK_FOR_OLO10_P): Likewise.
29368
29369 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29370
29371         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29372
29373 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29374
29375         PR middle-end/64922
29376         * gimple.c: Include gimple-ssa.h.
29377         (maybe_remove_unused_call_args): New function.
29378         * gimple.h (maybe_remove_unused_call_args): Declare.
29379         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29380         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29381         * gimple-fold.c (gimple_fold_call): Likewise.
29382
29383 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29384
29385         PR rtl-optimization/64905
29386         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29387         pointer alignment if it isn't needed.
29388
29389 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29390
29391         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29392         cortex-a72.cortex-a53.
29393         * config/aarch64/aarch64-tune.md: Regenerate.
29394         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29395
29396 2015-02-04  Nick Clifton  <nickc@redhat.com>
29397
29398         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29399         inside a MEM.
29400
29401 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29402
29403         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29404         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29405         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29406         of DEF_BUILTIN.
29407         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29408         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29409         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29410         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29411         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29412         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29413         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29414         * tree-core.h (enum built_in_function): In between
29415         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29416         for builtins that use DEF_BUILTIN_CHKP macro.
29417
29418 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29419
29420         PR debug/64817
29421         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29422         operands for tcc_comparison exprs.  Fix typos.
29423
29424         PR debug/64817
29425         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29426         of two XORs that have an intervening AND or IOR.
29427
29428         PR debug/64817
29429         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29430         simplification of XOR of AND to not allocate new rtx before
29431         committing to a simplification.
29432
29433 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29434
29435         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29436         manual swaps in all peepholes.
29437
29438 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29439
29440         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29441         of manual swapping implementation.
29442         (aarch64_expand_vec_perm_const_1): Likewise.
29443
29444 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29445
29446         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29447         (generic_addrcost_table): Remove NAMED_PARAM.
29448         (cortexa57_addrcost_table): Likewise.
29449         (xgene1_addrcost_table): Likewise.
29450         (generic_regmove_table): Likewise.
29451         (cortexa53_regmove_table): Likewise.
29452         (xgene1_regmove_table): Likewise.
29453         (generic_vector_table): Likewise.
29454         (cortexa57_vector_table): Likewise.
29455         (xgene1_vector_table): Likewise.
29456         (generic_tunings): Likewise.
29457         (cortexa53_tunings): Likewise.
29458         (cortexa57_tunings): Likewise.
29459         (xgene1_tunings): Likewise.
29460
29461 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29462
29463         * config/arm/arm-cores.def: Add cortex-a72 and
29464         cortex-a72.cortex-a53.
29465         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29466         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29467         * config/arm/arm-tune.md: Regenerate.
29468         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29469         "cortex-a72.cortex-a53".
29470         * doc/invoke.texi (ARM Options/-mtune): Likewise.
29471
29472 2015-02-04  Nick Clifton  <nickc@redhat.com>
29473
29474         PR target/64408
29475         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29476         of accepted codes.
29477         (nonimmediate_di_operand): Likewise.
29478
29479         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29480         prefixes of known F5 using MSP430 MCUs.
29481
29482 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29483
29484         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29485         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29486         instead of __builtin_sqrt.
29487
29488 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
29489
29490         * varasm.c (do_assemble_alias): Follow transparent alias
29491         chain for target.
29492         (default_assemble_visibility): Follow transparent alias
29493         chain for decl name.
29494
29495 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29496
29497         PR middle-end/62103
29498         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29499         to compute size of referenced value in the constant case.
29500
29501 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29502
29503         PR rtl-optimization/64756
29504         * cse.c (invalidate_dest): New function.
29505         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
29506         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29507         invalidate and do not record it.
29508
29509 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
29510
29511         PR target/64660
29512         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29513         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29514         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29515         atomic_nand<mode>_soft_tcb): New insns.
29516         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29517         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29518         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29519         Split into atomic_not_fetchsi_hard if operands[0] is unused.
29520         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29521         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29522         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
29523         atomic_not<mode>_hard if operands[0] is unused.
29524         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29525         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29526         if operands[0] is unused.
29527         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
29528         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29529         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29530         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29531         unused.
29532         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
29533         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29534         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29535         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29536         if operands[0] is unused.
29537         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
29538         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29539         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
29540         atomic_nand_fetchsi_hard if operands[0] is unused.
29541         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
29542         atomic_nand<mode>_hard if operands[0] is unused.
29543         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
29544         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29545         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
29546         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29547         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
29548         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29549         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29550         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29551         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
29552         atomic_not<mode>_hard if operands[0] is unused.
29553         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29554         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29555         unused.
29556         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29557         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29558         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
29559         atomic_nand<mode>_hard if operands[0] is unused.
29560         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29561         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29562
29563 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
29564
29565         PR jit/64810
29566         * Makefile.in (GCC_OBJS): Add gcc-main.o.
29567         * gcc-main.c: New file, containing "main" taken from gcc.c.
29568         * gcc.c (do_self_spec): Free decoded_options.
29569         (class driver): Move declaration to gcc.h.
29570         (main): Move declaration and implementation to new file
29571         gcc-main.c.
29572         (driver_get_configure_time_options): New function.
29573         * gcc.h (class driver): Move this declaration here, from
29574         gcc.c.
29575         (driver_get_configure_time_options): New declaration.
29576
29577 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
29578
29579         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29580         cross-module inlining.
29581         * cgraph.h (cgraph_node): Add flag merged.
29582         * ipa-icf.c (sem_function::merge): Maintain it.
29583
29584 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
29585
29586         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29587         instead of OBJECT_P.
29588
29589 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
29590
29591         PR target/62631
29592         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29593         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29594         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29595         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29596
29597 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29598
29599         PR other/63504
29600         * combine.c (reg_n_sets_max): New variable.
29601         (can_change_dest_mode, reg_nonzero_bits_for_combine,
29602         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29603         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29604         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29605         (rest_of_handle_combine): Initialize reg_n_sets_max.
29606
29607 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
29608
29609         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29610         if some always_inline was inlined, apply changes before inlining
29611         heuristically.
29612
29613 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
29614
29615         PR jit/64810
29616         * config/arm/arm.c (arm_option_override): Set
29617         arm_selected_arch/cpu/tune to NULL on entry.
29618
29619 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
29620             Andrew Pinski  <pinskia@gcc.gnu.org>
29621             Jakub Jelinek  <jakub@gcc.gnu.org>
29622
29623         PR target/64231
29624         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29625         integer typing for small model. Use IN_RANGE.
29626
29627 2015-02-02  Richard Biener  <rguenther@suse.de>
29628
29629         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29630         * tree-vrp.c (vrp_valueize_1): Likewise.
29631
29632 2015-02-02  Alan Modra  <amodra@gmail.com>
29633
29634         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29635         than mem for toc_restore.
29636         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29637         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29638         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29639
29640 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
29641
29642         PR target/64047
29643         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29644         explicit default options.
29645
29646 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
29647
29648         PR ipa/64872
29649         * ipa-utils.c (ipa_merge_profiles): Add release argument.
29650         * ipa-icf.c (sem_function::merge): Do not release body when merging.
29651         * ipa-utils.h (ipa_merge_profiles): Update prototype.
29652
29653 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
29654
29655         PR debug/64817
29656         * cfgexpand.c (deep_ter_debug_map): New variable.
29657         (avoid_deep_ter_for_debug): New function.
29658         (expand_debug_expr): If TERed SSA_NAME is in
29659         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29660         instead of trying to expand SSA_NAME's def stmt.
29661         (expand_debug_locations): When expanding debug bind
29662         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29663         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29664         value.
29665         (pass_expand::execute): Call avoid_deep_ter_for_debug on
29666         all debug bind stmts.  Delete deep_ter_debug_map after
29667         expand_debug_location if non-NULL and clear it.
29668
29669 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
29670
29671         PR target/64851
29672         * config/sh/sync.md (atomic_fetch_notsi_hard,
29673         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29674         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29675         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29676         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29677         atomic_not_fetch<mode>_soft_imask): New insns.
29678
29679 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29680
29681         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29682         (rank_for_schedule_debug): Split from ...
29683         (rank_for_schedule): ... this.
29684         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29685         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29686
29687 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29688
29689         * doc/md.texi (Machine Constraints): Alphabetize table by target.
29690         * doc/extend.texi (x86 Variable Attributes): Move section to
29691         correct alphabetization after renaming.
29692         (x86 Type Attributes): Likewise.
29693         (Target Builtins): Re-alphabetize menu.
29694         (x86 Built-in Functions): Move section to correct alphabetization
29695         after renaming.
29696         (x86 transactional memory intrinsics): Likewise.
29697         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29698         and x86 Windows Options in table and menu.
29699         (x86 Options): Move section to correct alphabetization after
29700         renaming.
29701         (x86 Windows Options): Likewise.
29702
29703 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29704
29705         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29706         preferred names of the architecture and its 32- and 64-bit
29707         variants.
29708         * doc/invoke.texi: Likewise.
29709         * doc/md.texi: Likewise.
29710
29711 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29712
29713         PR target/64882
29714         * config/i386/predicates.md (address_no_seg_operand): Reject
29715         non-CONST_INT_P operands in invalid mode.
29716
29717 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29718
29719         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29720         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
29721         * config/i386/predicates.md (address_no_seg_operand): Call
29722         address_operand with VOIDmode.
29723         (vsib_address_operand): Ditto.
29724         (address_mpx_no_base_operand): Ditto.
29725         (address_mpx_no_index_operand): Ditto.
29726
29727 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29728
29729         PR target/64688
29730         * lra-constraints.c (original_subreg_reg_mode): New.
29731         (simplify_operand_subreg): Try to simplify subreg of const.  Use
29732         original_subreg_reg_mode for it.
29733         (swap_operands): Update original_subreg_reg_mode.
29734         (curr_insn_transform): Set up original_subreg_reg_mode.
29735
29736 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29737
29738         PR target/64617
29739         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29740         function.
29741         (process_alt_operands): Use it.
29742         (curr_insn_transform): Check the optional reload pseudo class is
29743         ok for the mode.
29744
29745 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
29746
29747         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29748         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29749         prototype.
29750         * toplev.h (init_asm_output): Update comment on use of
29751         UNKNOWN_LOCATION with fatal_error.
29752         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29753         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29754         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29755         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29756         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29757         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29758         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29759         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29760         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29761         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29762         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29763         fatal_error changed to pass input_location as first argument.
29764
29765 2015-01-30  Martin Liska  <mliska@suse.cz>
29766
29767         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29768         in #pragma GCC diagnostic guards.
29769
29770 2015-01-30  Richard Biener  <rguenther@suse.de>
29771
29772         PR tree-optimization/64829
29773         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29774         not add a widening conversion pattern but hand off extra
29775         widenings to callers.
29776         (vect_recog_widen_mult_pattern): Handle extra widening produced
29777         by vect_handle_widen_op_by_const.
29778         (vect_recog_widen_shift_pattern): Likewise.
29779         (vect_pattern_recog_1): Remove excess vertical space in dumping.
29780         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29781         (vect_init_vector_1): Likewise.
29782         (vect_get_vec_def_for_operand): Likewise.
29783         (vect_finish_stmt_generation): Likewise.
29784         (vectorizable_load): Likewise.
29785         (vect_analyze_stmt): Likewise.
29786         (vect_is_simple_use): Likewise.
29787
29788 2015-01-29  Jeff Law  <law@redhat.com>
29789
29790         * combine.c (try_combine): Fix typo in comment.
29791
29792 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
29793
29794         PR target/64580
29795         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29796         (rs6000_stack_info): Add assert.
29797         (rs6000_output_savres_externs): New function, split off from...
29798         (rs6000_output_function_prologue): ... here.  Do not call it for
29799         thunks.
29800
29801 2015-01-29  Jeff Law  <law@redhat.com>
29802
29803         PR target/15184
29804         * combine.c (try_combine): If I0 is a memory load and I3 a store
29805         to a related address, increase the "goodness" of doing a 4-insn
29806         combination with I0-I3.
29807         (make_field_assignment): Handle SUBREGs in the ior+and case.
29808
29809 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
29810
29811         PR tree-optimization/64746
29812         * tree-if-conv.c (mask_exists): New function.
29813         (predicate_mem_writes): Save created mask with given size for further
29814         use.
29815         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29816         (ifcvt_repair_bool_pattern): Collect all statements that are root
29817         of bool pattern and use iterative algorithm to remove multiple uses
29818         of predicates, display number of required iterations.
29819
29820 2015-01-29  Richard Biener  <rguenther@suse.de>
29821
29822         PR tree-optimization/64853
29823         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
29824         stmt will get simulated again.
29825         * tree-ssa-ccp.c (valueize_op_1): Likewise.
29826
29827 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29828
29829         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
29830         return_in_pc.  Remove redundant assignments.
29831         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
29832         (arm_expand_epilogue): Don't compare boolean with true in if condition.
29833
29834 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
29835
29836         * config/i386/i386.c (ix86_mode_after): Make static.
29837
29838 2015-01-29  Richard Biener  <rguenther@suse.de>
29839
29840         PR tree-optimization/64844
29841         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
29842         dump cost model analysis.
29843         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29844         Do not register adjusted load/store costs here.
29845
29846 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29847             Uros Bizjak  <ubizjak@gmail.com>
29848
29849         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
29850         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
29851         using x86_use_pseudo_pic_reg.
29852         * config/i386/i386.c (ix86_conditional_register_usage): Remove
29853         support for fixed PIC register.
29854         (ix86_use_pseudo_pic_reg): Not static any more.
29855
29856 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
29857
29858         PR middle-end/64805
29859         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
29860         to avoid error in cgraph node verification.
29861
29862 2015-01-29  Marek Polacek  <polacek@redhat.com>
29863
29864         * doc/standards.texi: Reflect that the default for C is gnu11.
29865
29866 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
29867
29868         PR target/64761
29869         * reorg.c (switch_text_sections_between_p): New function.
29870         (relax_delay_slots): Call it when testing if the jump insn
29871         is removable.  Use targetm.can_follow_jump when testing if
29872         the conditional branch can follow an unconditional jump.
29873
29874 2015-01-27  Caroline Tice  <cmtice@google.com>
29875
29876         Committing VTV Cywin/Ming patch for Patrick Wollgast
29877         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
29878         if -fvtable-verify=preinit/std is used.
29879         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
29880         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
29881         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
29882         if -fvtable-verify=preinit/std is used.
29883         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29884         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
29885         if -fvtable-verify=preinit/std is used.
29886         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
29887         * config/i386/mingw32.h (LIB_SPEC): Likewise.
29888         * varasm.c (assemble_variable): Add code to properly set the comdat
29889         section and name for the .vtable_map_vars section in case the
29890         target is PE or COFF.
29891
29892 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29893
29894         PR ipa/64801
29895         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
29896         make sane BB profile.
29897         (cgraph_node::expand_thunk): Make sane BB profile.
29898         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
29899         * cgraph.h (init_lowered_empty_function): Update prototype.
29900         * config/i386/i386.c (make_resolver_func): Update call.
29901         * predict.c (gate): Disable branch prediction pass if
29902         profile is already there.
29903
29904 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
29905
29906         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
29907         * opth-gen.awk: Likewise.
29908         * common.opt: Mark flag_fp_contract_mode as Optimization.
29909
29910 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29911
29912         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
29913         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
29914
29915 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
29916
29917         PR target/64659
29918         * config/sh/predicates.md (atomic_arith_operand,
29919         atomic_logical_operand): Remove.
29920         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
29921         (atomic_arith_operand_0): New predicate.
29922         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
29923         Use atomic_arith_operand_0 for input values.
29924         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
29925         atomic_compare_and_swap<mode>_soft_gusa,
29926         atomic_compare_and_swap<mode>_soft_tcb,
29927         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
29928         arith_reg_operand instead of register_operand.
29929         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
29930         atomic_arith_operand_0 for newval input.
29931         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
29932         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
29933         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
29934         arith_reg_operand instead of register_operand.
29935         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
29936         fetchop_predicate_1, fetchop_constraint_1_llcs,
29937         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
29938         fetchop_constraint_1_imask): New code iterator attributes.
29939         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
29940         register_operand.  Use fetchop_predicate_1.
29941         (atomic_fetch_<fetchop_name>si_hard,
29942         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
29943         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
29944         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
29945         and arith_reg_operand instead of register_operand.  Use
29946         fetchop_predicate_1, fetchop_constraint_1_gusa.
29947         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
29948         and arith_reg_operand instead of register_operand.  Use
29949         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
29950         to allow R0 usage.
29951         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
29952         and arith_reg_operand instead of register_operand.  Use
29953         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
29954         to allow R0 usage.
29955         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
29956         register_operand.  Use atomic_logical_operand_1.
29957         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
29958         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
29959         arith_reg_operand instead of register_operand.
29960         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
29961         Use arith_reg_dest and arith_reg_operand instead of register_operand.
29962         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
29963         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
29964         register_operand.  Use fetchop_predicate_1.
29965         (atomic_<fetchop_name>_fetchsi_hard,
29966         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
29967         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29968         fetchop_constraint_1_llcs.
29969         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
29970         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29971         fetchop_constraint_1_gusa.
29972         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
29973         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29974         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
29975         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
29976         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
29977         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
29978         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
29979         register_operand.  Use atomic_logical_operand_1.
29980         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
29981         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
29982         arith_reg_operand instead of register_operand.
29983         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
29984         arith_reg_operand instead of register_operand.  Use logical_operand
29985         and K08.  Adjust asm sequence to allow R0 usage.
29986         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
29987         arith_reg_operand instead of register_operand.  Use logical_operand
29988         and K08.
29989
29990 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
29991
29992         PR other/63504
29993         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
29994         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
29995         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
29996         only get_full_len HOST_WIDE_INTs from get_val () array rather than
29997         all bits in *val_wide.
29998
29999 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30000
30001         * varpool.c (tls_model_names): Fix names.
30002         (varpool_node::dump): Dump tls- prefix for tls models.
30003
30004 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30005             Bernd Schmidt  <bernds@codesourcery.com>
30006             Nathan Sidwell  <nathan@codesourcery.com>
30007
30008         * config/nvptx/mkoffload.c: New file.
30009         * config/nvptx/t-nvptx: Add build rules for it.
30010         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30011         (extra_programs): Add mkoffload.
30012         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30013         function.
30014         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30015
30016 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30017
30018         PR middle-end/64809
30019         * cfgexpand.c (reorder_operands): Skip debug gimples.
30020
30021 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30022
30023         PR tree-optimization/64277
30024         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30025         range info when possible to refine estimation.
30026
30027 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30028
30029         PR tree-optimization/64718
30030         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30031         be a 16bit unsigned integer when n->range is 16.
30032         (bswap_replace): Convert src to that type if necessary for all bswap
30033         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30034         set in pass_optimize_bswap::execute ().
30035
30036 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30037
30038         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30039         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30040         integer and floating point variants.
30041         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30042
30043 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30044
30045         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30046         for all vector modes.
30047
30048 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30049
30050         PR bootstrap/64612
30051         * doc/sourcebuild.texi (comdat_group): Document.
30052
30053 2015-01-28  Terry Guo  <terry.guo@arm.com>
30054
30055         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30056
30057 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30058
30059         * toplev.c (print_version): Add param "show_global_state", and
30060         only print GGC and plugin information if it is true.
30061         (init_asm_output): Pass in "true" for the new param when calling
30062         print_version.
30063         (process_options): Likewise.
30064         (toplev::main): Likewise.
30065         * toplev.h (print_version): Add new param to decl.
30066
30067 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30068
30069         PR ipa/60871
30070         PR ipa/64139
30071         * tree.c (lookup_binfo_at_offset): New function.
30072         (get_binfo_at_offset): Use it.
30073
30074 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30075
30076         PR ipa/64282
30077         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30078         on vtable being vtable.
30079
30080 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30081
30082         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30083         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30084         -mhotpatch= option.
30085         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30086         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30087         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30088         Renamed.
30089         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30090         (s390_hotpatch_hw_max): New name.
30091         (s390_hotpatch_trampoline_halfwords): Renamed.
30092         (s390_hotpatch_hw_before_label): New name.
30093         (get_hotpatch_attribute): Removed.
30094         (s390_hotpatch_hw_after_label): New name.
30095         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30096         attribute.
30097         (s390_attribute_table): Ditto.
30098         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30099         (s390_function_num_hotpatch_hw): New name.
30100         Remove special handling of inline functions and hotpatching.
30101         Return number of nops before and after the function label.
30102         (s390_can_inline_p): Removed.
30103         (s390_asm_output_function_label): Emit a configurable number of nops
30104         after the function label.
30105         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30106         (TARGET_CAN_INLINE_P) Removed.
30107         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30108
30109 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30110             Jiong Wang  <jiong.wang@arm.com>
30111
30112         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30113         of scratch reg.
30114         (cb<optab><mode>1): Likewise.
30115         * config/aarch64/iterators.md (bcond): New define_code_attr.
30116
30117 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30118
30119         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30120         memory accesses.
30121
30122 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30123
30124         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30125         FPR->GPR moves.
30126
30127 2015-01-27  Richard Biener  <rguenther@suse.de>
30128
30129         * tree-vrp.c (update_value_range): Intersect the range with
30130         old recorded SSA name range information.
30131
30132 2015-01-27  Nick Clifton  <nickc@redhat.com>
30133
30134         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30135         BC, DE and HL registers directly, not via AX.
30136         When decrementing the stack pointer by a large amount, transfer SP
30137         into AX and perform the subtraction there.
30138         (rl78_expand_epilogue): Perform the inverse of the above
30139         enhancements.
30140
30141 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30142
30143         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30144
30145 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30146             Yury Gribov  <y.gribov@samsung.com>
30147
30148         PR ubsan/64741
30149         * ubsan.c (ubsan_source_location): Refactor code.
30150         (ubsan_type_descriptor): Update type size. Refactor code.
30151
30152 2015-01-27  Richard Biener  <rguenther@suse.de>
30153
30154         PR tree-optimization/56273
30155         PR tree-optimization/59124
30156         PR tree-optimization/64277
30157         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30158         from the first VRP pass.
30159
30160 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30161
30162         PR ipa/64776
30163         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30164         handle the first argument in the same loop as all the other arguments.
30165
30166         PR rtl-optimization/61058
30167         * jump.c (cleanup_barriers): Update basic block boundaries
30168         if BLOCK_FOR_INSN is non-NULL on PREV.
30169
30170 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30171
30172         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30173         bounds narrowing, already instrumented calls and calls to
30174         not instrumentable functions.
30175
30176 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30177
30178         PR tree-optimization/64807
30179         * wide-int.cc (wi::divmod_internal): Clear
30180         b_dividend[dividend_blocks_needed].
30181
30182 2015-01-26  DJ Delorie  <dj@redhat.com>
30183
30184         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30185         volatile memory references.
30186
30187 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30188
30189         PR target/49263
30190         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30191         remove_insn.
30192         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30193         shifts if it already fits into K08.
30194
30195 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30196
30197         PR ipa/64730
30198         * ipa-inline.c (inline_small_functions): Print "unknown" even
30199         if edge->call_stmt is non-NULL, but has builtins or unknown
30200         location.
30201
30202         PR middle-end/64421
30203         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30204         with asterisk, skip the first character.
30205
30206 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30207
30208         PR target/64806
30209         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30210         order change.
30211
30212 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30213
30214         PR target/64795
30215         * config/i386/i386.md (*movdi_internal): Also check operand 0
30216         to determine TYPE_LEA operand.
30217         (*movsi_internal): Ditto.
30218
30219 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30220
30221         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30222         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30223
30224 2015-01-26  Renlin Li  <renlin.li@arm.com>
30225
30226         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30227         the comment.
30228         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30229         for higher part.
30230
30231 2015-01-26  Richard Biener  <rguenther@suse.de>
30232
30233         PR middle-end/64764
30234         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30235         combining two BIT_AND_EXPR predicates.
30236
30237 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30238
30239         PR bootstrap/64754
30240         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30241
30242 2015-01-26  Terry Guo  <terry.guo@arm.com>
30243
30244         * config/arm/arm.c (arm_file_start): Update the assignment of
30245         Tag_ABI_HardFP_use.
30246
30247 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30248
30249         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30250         pipeline model.
30251         config/arm/arm.md: Include the new Cortex-A57 model.
30252         (generic_sched): Don't use generic_sched when tuning for
30253         Cortex-A57.
30254
30255 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30256             Uros Bizjak  <ubizjak@gmail.com>
30257
30258         * config/i386/i386.c (get_builtin_code_for_version): Add
30259         support for BMI and BMI2 multiversion functions.
30260
30261 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30262
30263         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30264         (extract_bit_field): Likewise.
30265         (extract_low_bits): Likewise.
30266         (expand_mult): Likewise.
30267         (expand_mult_highpart_adjust): Likewise.
30268
30269 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30270
30271         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30272         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30273         * config/i386/i386.c (processor_model): Add
30274         M_INTEL_COREI7_BROADWELL.
30275         (arch_names_table): Add "broadwell".
30276
30277 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30278
30279         PR target/49263
30280         PR target/53987
30281         PR target/64345
30282         PR target/59533
30283         PR target/52933
30284         PR target/54236
30285         PR target/51244
30286         * config/sh/sh-protos.h
30287         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30288         sh_extending_set_of_reg::use_as_unextended_reg,
30289         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30290         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30291         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30292         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30293         (sh_treg_insns): New class.
30294         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30295         (scope_counter): New class.
30296         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30297         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30298         sh_extending_set_of_reg::can_use_as_unextended_reg,
30299         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30300         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30301         sh_split_treg_set_expr): New functions.
30302         (addsubcosts): Handle treg_set_expr.
30303         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30304         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30305         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30306         (sh_insn_operands_modified_between_p): Make non-static.
30307         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30308         simple_mem_operand in addition to displacement_mem_operand.
30309         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30310         (treg_set_expr, treg_set_expr_not_const01,
30311         arith_reg_or_treg_set_expr): New predicates.
30312         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30313         arith_or_int_operand instead of logical_operand.  Convert to
30314         insn_and_split.  Try to optimize constant operand in splitter.
30315         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30316         (*tstqi_t_zero): Delete.
30317         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30318         (tstsi_t_and_not): Delete.
30319         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30320         Convert to insn_and_split.
30321         (unnamed split, tstsi_t_zero_extract_xor,
30322         tstsi_t_zero_extract_subreg_xor_little,
30323         tstsi_t_zero_extract_subreg_xor_big): Delete.
30324         (*tstsi_t_shift_mask): New insn_and_split.
30325         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30326         to recombine with surrounding insns when splitting.
30327         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30328         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30329         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30330         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30331         (*cbranch_div0s: Delete.
30332         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30333         Try to recombine with surrounding insns when splitting.  Add operand
30334         order variants.
30335         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30336         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30337         *addc_r_r_msb, *addc_2r_msb): Delete.
30338         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30339         order variant.
30340         (*addc_negreg_t): New insn_and_split.
30341         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30342         Try to recombine with surrounding insns when splitting.
30343         Add operand order variants.
30344         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30345         insn_and_split patterns.
30346         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30347         surrounding insns when splitting.
30348         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30349         (*rotcl): Likewise.  Add zero_extract variant.
30350         (*ashrsi2_31): New insn_and_split.
30351         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30352         (*zero_extend<mode>si2_disp_mem): Update comment.
30353         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30354         condition.
30355         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30356         with surrounding insns when splitting.
30357         (any_treg_expr_to_reg): New insn_and_split.
30358         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30359         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30360         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30361         *zero_extract_2): New single bit zero extract patterns.
30362         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30363         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30364         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30365         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30366         set destination.
30367         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30368         register_operand for set source.
30369
30370 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30371
30372         * i386.opt (prefetch_sse): New targetsave.
30373         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30374         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30375         ix86_cost/ix86_tune_cost.
30376
30377 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30378
30379         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30380         Support the JIT by using 0 as the language type.
30381
30382 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30383
30384         PR target/64317
30385         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30386         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30387         (mark_regno_live, process_bb_lives): Pass new parameter value to
30388         make_hard_regno_born.
30389
30390 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30391
30392         PR rtl-optimization/63637
30393         PR rtl-optimization/60663
30394         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30395         if elt->cost is MAX_COST for ASM_OPERANDS.
30396         (find_sets_in_insn): Fix up comment typo.
30397         (cse_insn): Don't set src_volatile for all non-volatile
30398         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30399         or with "memory" clobber.  Set elt->cost to MAX_COST
30400         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30401         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30402
30403 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30404
30405         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30406         alternative 1.
30407
30408 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30409
30410         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30411         libgcc/config/i386/elf-lib.h.
30412
30413 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30414
30415         PR driver/64737
30416         * gcc.c (print_configuration): Don't print a blank line at the end
30417         here...
30418         (run_attempt): ... but here unstead.
30419
30420         PR middle-end/64734
30421         * omp-low.c (scan_sharing_clauses): Don't ignore
30422         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30423         on target data/update constructs.
30424
30425 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30426
30427         PR target/50928
30428         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30429         (DEBUG_RELOAD): Removed define.
30430         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30431         (m32c_function_arg): Added a type cast.
30432         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30433         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30434         * config/m32c/bitops.md (andqi3_16): Likewise.
30435         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30436         (push_a01_l): Likewise.
30437
30438 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30439
30440         PR jit/64721
30441         * main.c (main): Construct toplev instances with init_signals=true.
30442         * toplev.c (general_init): Add param "init_signals", and use it to
30443         conditionalize the calls to signal and host_hooks.extra_signals.
30444         (toplev::toplev): Add param "init_signals".
30445         (toplev::main): When invoking general_init, pass m_init_signals
30446         to control whether signal-handlers are installed.
30447         * toplev.h (toplev::toplev): Add param "init_signals".
30448         (toplev::m_init_signals): New field.
30449
30450 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30451
30452         PR jit/64722
30453         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30454         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30455         latter may be affected by the former (e.g. on i686).
30456
30457 2015-01-23  Martin Liska  <mliska@suse.cz>
30458
30459         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30460         false positive during profiledbootstrap.
30461
30462 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30463
30464         PR libgomp/64672
30465         * lto-opts.c (lto_write_options): Output non-explicit conservative
30466         -fno-openacc.
30467         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30468         (append_compiler_options): Pass -fopenacc through.
30469
30470 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30471
30472         PR libgomp/64707
30473         * lto-opts.c (lto_write_options): Output non-explicit conservative
30474         -fno-openmp.
30475         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30476         (append_compiler_options): Pass -fopenmp through.
30477
30478 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30479
30480         PR debug/64511
30481         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30482         GTY markup.
30483
30484         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30485         * diagnostic.def (DK_ICE_NOBT): New kind.
30486         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30487         like DK_ICE, but never print backtrace.
30488         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30489         (internal_error_no_backtrace): New function.
30490         * gcc.c (execute): Use internal_error_no_backtrace instead of
30491         internal_error.
30492
30493 2015-01-22  Jeff Law  <law@redhat.com>
30494
30495         PR target/52076
30496         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30497         improve code density for small immediate to memory case.
30498         (insv): Better handle bitfield assignments when the field is
30499         being set to all ones.
30500         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30501         operand predicate.
30502
30503 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30504             Jakub Jelinek  <jakub@redhat.com>
30505
30506         PR middle-end/64729
30507         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30508         for !TARGET_LIBC_PROVIDES_SSP version and
30509         -fstack-protector-{all,strong,explicit} otherwise.
30510         * config/freebsd.h (LINK_SSP_SPEC): Handle
30511         -fstack-protector-{strong,explicit}.
30512
30513 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
30514             H.J. Lu  <hongjiu.lu@intel.com>
30515
30516         PR ipa/64694
30517         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30518         heap.
30519
30520 2015-01-22  Wei Mi  <wmi@google.com>
30521
30522         PR rtl-optimization/64557
30523         * dse.c (record_store): Call get_addr for mem_addr.
30524         (check_mem_read_rtx): Likewise.
30525
30526 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30527
30528         * fold-const.c (const_binop): Add early return for non-tcc_binary.
30529
30530 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
30531
30532         * toplev.c (init_local_tick): Process the failure when read
30533         fails for random_seed.
30534
30535         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30536         'pretty_name' to avoid memory overflow.
30537
30538 2015-01-22  Richard Biener  <rguenther@suse.de>
30539
30540         PR middle-end/64728
30541         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30542         abnormal coalescing on undefined SSA names.
30543
30544 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
30545
30546         PR target/64688
30547         PR target/64477
30548         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30549         for alternative 3.
30550         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30551
30552 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
30553
30554         PR middle-end/63325
30555         * fold-const.c (fold_checksum_tree): Don't include value of
30556         expr->decl_with_vis.symtab_node in the checksum.
30557
30558 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30559
30560         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30561
30562 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30563
30564         PR driver/64690
30565         * gcc.c (insert_comments): New function.
30566         (try_generate_repro): Call it.
30567         (append_text): Removed.
30568
30569 2015-01-22  Richard Biener  <rguenther@suse.de>
30570
30571         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30572         with IL incompatible options.  Properly honor user optimize
30573         attributes.
30574
30575 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
30576
30577         PR rtl-optimization/64682
30578         * combine.c (distribute_notes): When moving a death note for
30579         a register that is set in the new I2, make sure to put it
30580         before that new I2.
30581
30582 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
30583
30584         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30585         not TARGET_DEFAULT.
30586
30587 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
30588
30589         PR debug/64511
30590         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30591         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30592         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30593
30594         PR sanitizer/64706
30595         * doc/invoke.texi (-fsanitize=vptr): Document.
30596
30597         PR rtl-optimization/62078
30598         * dse.c: Include cfgcleanup.h.
30599         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30600         anything call purge_all_dead_edges and cleanup_cfg at the end
30601         of the pass.
30602
30603 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
30604
30605         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30606         edges.
30607
30608 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30609
30610         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30611         decl attribute.
30612
30613 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30614             Tejas Belagod <Tejas.Belagod@arm.com>
30615
30616         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30617         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30618         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30619         Removed.
30620
30621 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30622             Tejas Belagod <Tejas.Belagod@arm.com>
30623
30624         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30625         (aarch64_reverse_mask): New decls.
30626         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30627         (insn_count): New mode_attr.
30628         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30629         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30630         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30631         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30632         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30633         (aarch64_simd_st4): New patterns.
30634         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30635         (aarch64_reverse_mask): New functions.
30636
30637 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
30638
30639         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30640         Declare.
30641         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30642         addressing modes for BE.
30643         (aarch64_print_operand): Add 'R' specifier.
30644         (aarch64_simd_disambiguate_copy): Delete.
30645         (aarch64_simd_emit_reg_reg_move): New function.
30646         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30647         in define_splits for structural moves.
30648         (mov<mode>): Use less restrictive predicates.
30649         (*aarch64_mov<mode>): Simplify and only allow for LE.
30650         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30651
30652 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
30653
30654         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30655
30656 2015-01-21  Richard Henderson  <rth@redhat.com>
30657
30658         PR target/64669
30659         * ccmp.c (used_in_cond_stmt_p): Remove.
30660         (expand_ccmp_expr): Don't use it.
30661
30662 2015-01-21  Nick Clifton  <nickc@redhat.com>
30663
30664         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30665         PARALLELs.
30666
30667 2015-01-21  Richard Biener  <rguenther@suse.de>
30668
30669         PR middle-end/64313
30670         * tree-core.h (builtin_info, builtin_info_type): Turn from
30671         an object with two arrays into an array of an object with
30672         decl and two flags, implicit_p and declared_p.
30673         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30674         set_builtin_decl, set_builtin_decl_implicit_p,
30675         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30676         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30677         * builtins.c (builtin_info): Adjust.
30678         * gimplify.c (gimplify_addr_expr): References to builtins
30679         that have been declared by the user makes them eligible for
30680         use by the compiler.  Call set_builtin_decl_implicit_p on them.
30681
30682 2015-01-20  Jeff Law  <law@redhat.com>
30683
30684         PR target/59946
30685         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30686         allow pc-relative addresses in operand predicates or constraints.
30687
30688 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
30689
30690         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30691         neon on aarch32 processors for stringops.
30692
30693 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30694
30695         PR ipa/63576
30696         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30697
30698 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30699
30700         PR lto/45375
30701         * ipa-inline.c: Include lto-streamer.h
30702         (report_inline_failed_reason): Output source file differences and
30703         flags on optimization/target node mismatch.
30704         (can_inline_edge_p): Consider caller to be the outer inline function;
30705         be less restrictive about matching opimize and optimize_size attributes.
30706         (inline_account_function_p): Break out from ...
30707         (inline_small_functions): ... here.
30708         * ipa-inline-transform.c (clone_inlined_nodes): Use
30709         inline_account_function_p.
30710         (inline_call): Use optimize attribution; use inline_account_function_p.
30711         (inline_transform): Use opt_for_fn.
30712         * ipa-inline.h (inline_account_function_p): Declare.
30713
30714 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
30715
30716         PR debug/64663
30717         * dwarf2out.c (decl_piece_node): Don't put bitsize into
30718         mode if bitsize <= 0.
30719         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30720         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30721         sizes and positions.
30722
30723 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
30724
30725         * config/nios2/nios2.c (nios2_asm_file_end): Implement
30726         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30727         needed.
30728         (TARGET_ASM_FILE_END): Define.
30729
30730 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30731
30732         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30733         (struct tune_params): Use the enum.
30734         * arm.c (arm_*_tune): Update.
30735         (arm_option_override): Update.
30736
30737 2015-01-20  Richard Biener  <rguenther@suse.de>
30738
30739         PR ipa/64684
30740         * ipa-reference.c (add_static_var): Inline ...
30741         (analyze_function): ... here after splitting out from ...
30742         (is_proper_for_analysis): ... this.
30743
30744 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
30745
30746         PR target/64149
30747         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30748         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30749         replace the conditional with it's true branch.
30750         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30751         (arm_lra_p): Remove.
30752
30753 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30754
30755         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30756
30757 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30758
30759         * config/tilegx/mul-tables.c: Move symtab.h include after
30760         coretypes.h include.
30761         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30762         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30763         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30764         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30765         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30766
30767 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
30768
30769         PR bootstrap/64676
30770         Revert:
30771         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30772
30773         PR rtl-optimization/64081
30774         * loop-iv.c (def_pred_latch_p): New function.
30775         (latch_dominating_def): Allow specific cases with non-single
30776         definitions.
30777         (iv_get_reaching_def): Likewise.
30778         (check_complex_exit_p): New function.
30779         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30780         with exits not executing on any iteration.
30781
30782 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30783
30784         PR lto/45375
30785         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30786         to set branch cost.
30787
30788 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30789
30790         PR lto/45375
30791         * i386.c (gate): Check flag_expensive_optimizations and
30792         optimize_size.
30793         (ix86_option_override_internal): Drop optimize_size condition
30794         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30795         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30796         MASK_PREFER_AVX128.
30797         (ix86_avx256_split_vector_move_misalign,
30798         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30799         * sse.md (all uses of TARGET_PREFER_AVX128): Add
30800         optimize_insn_for_speed_p check.
30801
30802 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30803
30804         * config/mips/mips.h (FP_ASM_SPEC): New define.
30805         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30806         instead.
30807
30808 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
30809
30810         PR target/53988
30811         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30812         nullptr for insn when reaching the first insn.
30813         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30814         (sh_insn_operands_modified_between_p): Add nullptr check.
30815         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
30816         sign extending mem load if the insn contains any UNSPEC or
30817         UNSPEC_VOLATILE.
30818
30819 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30820
30821         * params.def (inline-unit-growth): Drop to 15%.
30822         * invoke.texi (inline-unit-growth): Document change.
30823
30824 2015-01-19  Martin Liska  <mliska@suse.cz>
30825
30826         PR ipa/64668
30827         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
30828         function for second argument of OBJ_TYPE_REF.
30829
30830 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30831
30832         PR ipa/64218
30833         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
30834         whether function is an alias.
30835
30836 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30837
30838         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
30839         cases.
30840
30841 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30842
30843         PR rtl-optimization/64671
30844         * lra-remat.c (operand_to_remat): Don't consider jump and call
30845         insns.
30846
30847 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
30848
30849         PR target/59828
30850         * config/rs6000/default64.h: Include rs6000-cpus.def.
30851         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
30852         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
30853         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
30854         and POWER8.
30855         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
30856         POWER8.
30857         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
30858         pseudo-op to specify assembler dialect.
30859
30860 2015-01-19  Martin Liska  <mliska@suse.cz>
30861
30862         PR ipa/64664
30863         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
30864         Handle safe potentially removed nodes during filtering.
30865
30866 2015-01-19  Martin Liska  <mliska@suse.cz>
30867
30868         * doc/extend.texi (no_icf): Add new attribute description.
30869         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
30870         where the pass attempts to merge a function with no_icf attribute.
30871
30872 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30873
30874         PR target/64532
30875         * doc/md.texi (ARM Options): Document register constraints.
30876
30877 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
30878             Andrew Pinski  <apinski@cavium.com>
30879
30880         PR target/64304
30881         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
30882         (ashl<mode>3): Don't expand if operands[2] is not constant.
30883
30884 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30885
30886         PR target/64448
30887         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
30888         Match xor-and-xor RTL pattern.
30889
30890 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30891
30892         PR rtl-optimization/64081
30893         * loop-iv.c (def_pred_latch_p): New function.
30894         (latch_dominating_def): Allow specific cases with non-single
30895         definitions.
30896         (iv_get_reaching_def): Likewise.
30897         (check_complex_exit_p): New function.
30898         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30899         with exits not executing on any iteration.
30900
30901 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
30902
30903         * common.opt (fgraphite): Fix a typo.
30904
30905 2015-01-19  Felix Yang  <felix.yang@huawei.com>
30906
30907         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
30908         pattern.
30909         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
30910         uminp, smax_nanp, smin_nanp): New builtins.
30911         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
30912         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
30913         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
30914         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
30915         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
30916         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
30917         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
30918         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
30919         vpminnms_f32): Rewrite using builtin functions.
30920
30921 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
30922
30923         PR libgomp/64625
30924         * omp-low.c (offload_symbol_decl): Remove variable.
30925         (get_offload_symbol_decl): Remove function.
30926         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
30927         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
30928         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
30929         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
30930         BUILT_IN_GOACC_UPDATE don't pass it at all.
30931
30932 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30933
30934         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
30935         callers.
30936
30937 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
30938
30939         * ipa-chkp.c (chkp_produce_thunks): Add early param
30940         to split thunks production into two passes.  Keep
30941         'always_inline' function bodies after the first pass.
30942         (pass_data_ipa_chkp_early_produce_thunks): New.
30943         (pass_ipa_chkp_early_produce_thunks): New.
30944         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
30945         chkp_produce_thunks signature.
30946         (make_pass_ipa_chkp_early_produce_thunks): New.
30947         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
30948         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
30949         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
30950
30951 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30952
30953         * cgraph.c (cgraph_node::dump): Dump profile flags.
30954
30955 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
30956
30957         PR target/64652
30958         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
30959         reg appear first in the parallel.
30960
30961 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30962
30963         * ipa-reference.c (set_reference_optimization_summary,
30964         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
30965         disabled.
30966         (ignore_module_statics): New static var.
30967         (propagate_bits): If ipa-reference is disabled, do not look into local
30968         properties.
30969         (analyze_function): Disable analysis when ipa_reference is disabled.
30970         (generate_summary): Do not dump when reference is disabled;
30971         collect vars accessed from functions with ipa-reference disabled.
30972         (get_read_write_all_from_node): When ipa-reference is disabled, use the
30973         node flags.
30974         (gate): Enable for LTO.
30975         (ignore_edge_p): New function.
30976         (propagate): Skip functions w/o ipa-reference analysis.
30977         * optc-save-gen.awk: Handle optimize_debug correctly.
30978         * opth-gen.awk: Likewise.
30979         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
30980         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
30981         fira-share-save-slots, fira-share-spill-slots,
30982         fmodulo-sched-allow-regmoves, fpartial-inlining,
30983         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
30984         ftracer, ftree-parallelize-loops, fassociative-math,
30985         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
30986         Optimization
30987         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
30988         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
30989         Optimization.
30990         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
30991         Fix for IPA.
30992
30993 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
30994
30995         PR ipa/64378
30996         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
30997         flag correctly.
30998         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
30999
31000 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31001
31002         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31003         Remove duplicate option listings.
31004
31005 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31006
31007         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31008         (autofdo_source_profile::get_callsite_total_count,
31009         function_instance::get_function_instance_by_decl,
31010         string_table::get_index, string_table::get_index_by_decl,
31011         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31012         Fix comment typos. Reformatting and minor code rearrangement.
31013
31014 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31015
31016         * config/rs6000/rs6000.md (probe_stack): Delete.
31017         (probe_stack_address): New.
31018
31019 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31020
31021         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31022         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31023
31024 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31025
31026         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31027         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31028         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31029         snafu.
31030         (rs6000_libcall_value): Use the new function.
31031
31032 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31033
31034         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31035
31036 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31037
31038         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31039         implement a more precise life analysis for it during backward scan.
31040
31041 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31042
31043         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31044
31045 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31046
31047         PR rtl-optimization/52773
31048         * calls.c (emit_library_call_value): When pushing arguments use
31049         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31050         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31051         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31052
31053 2015-01-17  Jeff Law  <law@redhat.com>
31054
31055         PR rtl-optimization/32790
31056         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31057         not ZERO_EXTEND in SET_DESTs.
31058
31059 2015-01-17  Alan Modra  <amodra@gmail.com>
31060
31061         * cprop.c (do_local_cprop): Revert last change.
31062
31063 2015-01-16  DJ Delorie  <dj@redhat.com>
31064             Nick Clifton  <nickc@redhat.com>
31065
31066         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31067         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31068         (subqi3_real): Likewise.
31069         (subhi3_real): Likewise.
31070         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31071         (cbranchhi4_real): Likewise.
31072         (cbranchhi4_real_inverted): Likewise.
31073         (cbranchsi4_real_lt): Likewise.
31074         (cbranchsi4_real_ge): Likewise.
31075         (cbranchsi4_real_ge): Likewise.
31076         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31077         (sub<mode>3_virt): Likewise.
31078         (cbranchqi4_virt): Likewise.
31079         (cbranchhi4_virt): Likewise.
31080         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31081         always use '[reg+imm]' even when imm is zero.
31082         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31083         (rl78_general_operand): New.
31084         (rl78_nonimmediate_operand): New.
31085         (rl78_nonfar_operand): Use them.
31086         (rl78_nonfar_nonimm_operand): Likewise.
31087         (rl78_stack_based_mem): Fix.
31088         * config/rl78/constraints.md (Ibqi): New.
31089         (IBqi): New.
31090         (Wsa): New.
31091         (Wsf): New.
31092         (Cs1): Fix.
31093         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31094         (iorqi3): Likewise.
31095         (xorqi3): Likewise.
31096         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31097
31098         * config/rl78/constrains (Qs8): New constraint.
31099         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31100         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31101         * config/rl78/rl78-real.md (update_Z): New attribute.
31102         Update patterns to set it.
31103         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31104         shorter compare and branch sequence can be used.
31105         (cbranchhi4_real): Likewise.
31106         (cbranchhi4_real_inverted): Likewise.
31107
31108         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31109         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31110         address space.
31111         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31112         (rl78_option_override): Allow -mes0 only if C.
31113         (characterize_address): Support subregs of symbol_refs.
31114         (rl78_addr_space_address_mode): Move.  Add __near.
31115         (rl78_far_p): Likewise.
31116         (rl78_addr_space_pointer_mode): Likewise.
31117         (rl78_as_legitimate_address): Likewise.
31118         (rl78_addr_space_subset_p): Likewise.
31119         (rl78_addr_space_convert): Likewise.
31120         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31121         symbols with -mes0.
31122         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31123         addressing.
31124         (rl78_alloc_physical_registers_op1): Change logic to prefer
31125         symbol[BC] addressing.
31126         (frodata_section): New.
31127         (rl78_asm_init_sections): Initialize it.
31128         (rl78_select_section): Put __far readonly symbols in .frodata.
31129         (rl78_make_type_far): New.
31130         (rl78_insert_attributes): Force all readonly symbols to be
31131         __far when -mes0.
31132         (rl78_asm_out_integer): New.
31133         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31134         * config/rl78/rl78.opt (-mes0): New.
31135
31136         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31137         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31138         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31139         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31140         (rl78_saddr_p): New.
31141         (rl78_output_aligned_common): New.
31142         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31143         (rl78_handle_saddr_attribute): New.
31144         (rl78_handle_naked_attribute): New.
31145         (rl78_attribute_table): Add saddr.
31146         (rl78_print_operand_1): Don't print '!' on saddr operands.
31147         (rl78_print_operand_1): Strip encodings.
31148         (rl78_sfr_p): New.
31149         (rl78_strip_name_encoding): New.
31150         (rl78_attrlist_to_encoding): New.
31151         (rl78_encode_section_info): New.
31152         (rl78_asm_init_sections): New.
31153         (rl78_select_section): New.
31154         (rl78_output_labelref): New.
31155         (rl78_output_aligned_common): New.
31156         (rl78_asm_out_integer): New.
31157         (rl78_asm_ctor_dtor): New.
31158         (rl78_asm_constructor): New.
31159         (rl78_asm_destructor): New.
31160
31161         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31162         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31163         (transcode_memory_rtx): Update.
31164         (rl78_expand_epilogue): Use A_REG instead of 0.
31165
31166 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31167
31168         * config/arm/arm-protos.h (struct tune_params): New field
31169         sched_autopref_queue_depth.
31170         * config/arm/arm.c (sched-int.h): Include header.
31171         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31172         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31173         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31174         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31175         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31176         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31177         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31178         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31179         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31180         * config/arm/t-arm (arm.o): Update.
31181         * haifa-sched.c (update_insn_after_change): Update.
31182         (rank_for_schedule): Use auto-prefetcher model, if requested.
31183         (autopref_multipass_init): New static function.
31184         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31185         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31186         variable for debug dumps.
31187         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31188         (autopref_multipass_dfa_lookahead_guard): New global function that
31189         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31190         (init_h_i_d): Update.
31191         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31192         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31193         (autopref_multipass_data_): Structure for auto-prefetcher data.
31194         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31195         (struct _haifa_insn_data:autopref_multipass_data): New field.
31196         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31197         (autopref_multipass_dfa_lookahead_guard): Declare.
31198
31199 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31200
31201         * rtlanal.c (get_base_term): Handle SCRATCH.
31202
31203 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31204
31205         * config/aarch64/aarch64.c
31206         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31207         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31208         * config/arm/arm.c
31209         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31210         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31211
31212 2015-01-17  Alan Modra  <amodra@gmail.com>
31213
31214         * cprop.c (do_local_cprop): Disallow replacement of fixed
31215         hard registers.
31216
31217 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31218
31219         PR target/62066
31220         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31221         early return 0.
31222
31223 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31224
31225         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31226         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31227
31228 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31229
31230         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31231         * config/arm/thumb1.md: ... Here.
31232
31233 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31234
31235         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31236         TImode for TARGET_32BIT.
31237
31238 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31239
31240         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31241         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31242         as ...
31243         (rs6000_abi_word_mode): New function.
31244
31245 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31246
31247         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31248         instead of UNITS_PER_WORD to describe the size of stack slots.
31249
31250 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31251
31252         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31253         as rs6000_promote_function_mode.  Move comment to there.
31254         (rs6000_promote_function_mode): New function.
31255
31256 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31257
31258         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31259         -mpowerpc64 is active.
31260
31261 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31262
31263         PR middle-end/64353
31264         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31265         virtuals on start.
31266
31267 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31268
31269         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31270         introduced in revision 219724.
31271
31272 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31273             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31274
31275         PR target/64263
31276         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31277         destination is not a GP reg.
31278         (*movdi_aarch64): Likewise.
31279
31280 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31281
31282         PR target/64623
31283         * config/rs6000/default64.h: Revert ISA change.
31284
31285 2015-01-16  Richard Biener  <rguenther@suse.de>
31286
31287         PR middle-end/64614
31288         * tree-ssa-uninit.c: Include tree-cfg.h.
31289         (MAX_SWITCH_CASES): New define.
31290         (convert_control_dep_chain_into_preds): Handle switch statements.
31291         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31292         (normalize_one_pred_1): Do not split bit-manipulations.
31293         Record (x & CST).
31294
31295 2015-01-16  Richard Biener  <rguenther@suse.de>
31296
31297         PR tree-optimization/64568
31298         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31299         complex load rewriting for TARGET_MEM_REFs.
31300
31301 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31302
31303         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31304
31305 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31306
31307         PR target/64149
31308         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31309         variable.
31310         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31311         (aarch64_lra_p): Remove.
31312
31313 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31314
31315         PR target/64363
31316         * ipa-chkp.h (chkp_instrumentable_p): New.
31317         * ipa-chkp.c: Include tree-inline.h.
31318         (chkp_instrumentable_p): New.
31319         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31320         Fix processing of not instrumentable functions.
31321         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31322         not instrumentable functions.
31323         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31324         chkp_instrumentable_p.
31325         * tree-inline.h (copy_forbidden): New.
31326         * tree-inline.c (copy_forbidden): Not static anymore.
31327
31328 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31329
31330         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31331         ptr1, ptr2 unused.
31332
31333 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31334
31335         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31336         type OP_OUT to OP_INOUT.
31337
31338 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31339
31340         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31341         (high x) y) to y if x and y have the same base.
31342
31343 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31344
31345         * config/arm/cortex-a57.md: New.
31346         * config/aarch64/aarch64.md: Include it.
31347         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31348         * config/aarch64/aarch64-tune.md: Regenerate.
31349
31350 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31351
31352         PR target/64015
31353         * ccmp.c (expand_ccmp_next): New function.
31354         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31355         and compare insn sequence.
31356         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31357         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31358         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31359         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31360         (*ccmp_ior): Changed to ccmp_ior<mode>.
31361         (cmp<mode>): New pattern.
31362         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31363         parameters.
31364         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31365
31366 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31367
31368         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31369         _mm256_bsrli_epi128): New.
31370         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31371
31372 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31373
31374         * expmed.c (store_bit_field_using_insv): Improve warning message.
31375         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31376
31377 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31378
31379         PR rtl-optimization/64011
31380         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31381         there is partial overflow.
31382
31383 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31384
31385         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31386         prototype.
31387         (nds32_expand_epilogue_v3pop): Likewise.
31388         * config/nds32/nds32.md (sibcall): Define this for sibling call
31389         optimization.
31390         (sibcall_register): Likewise.
31391         (sibcall_immediate): Likewise.
31392         (sibcall_value): Likewise.
31393         (sibcall_value_register): Likewise.
31394         (sibcall_value_immediate): Likewise.
31395         (sibcall_epilogue): Likewise.
31396         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31397         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31398         (nds32_expand_epilogue_v3pop): Likewise.
31399
31400 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31401
31402         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31403         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31404         (return_internal): New.
31405         (return): Define this named pattern.
31406         (simple_return): Define this named pattern.
31407         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31408         pattern instead of unspec_volatile_func_return.
31409         (nds32_expand_epilogue_v3pop): Likewise.
31410         (nds32_can_use_return_insn): New function.
31411
31412 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31413
31414         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31415         * config/nds32/nds32.md (pop25return): New.
31416         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31417         pop25return pattern.
31418
31419 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31420
31421         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31422         -mforbid-fp-as-gp, and -mex9 options.
31423
31424 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31425
31426         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31427         remove -mgp-direct option.
31428
31429 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31430
31431         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31432         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31433
31434 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31435
31436         * ipa-inline.c (inline_small_functions): Work around hints
31437         cache issue.
31438
31439 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31440
31441         PR target/59710
31442         * doc/invoke.texi (Option Summary): Document new Nios II
31443         -mgpopt= syntax.
31444         (Nios II Options): Likewise.
31445         * config/nios2/nios2.opt: Add -mgpopt= option support.
31446         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31447         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31448         * config/nios2/nios2.c (nios2_option_override): Adjust
31449         -mgpopt defaulting.
31450         (nios2_in_small_data_p): Return true for explicit small data
31451         sections even with -G0.
31452         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31453         option choices.
31454
31455 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31456
31457         PR ipa/64612
31458         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31459         of comdat locals.
31460         (inline_call): Fix removal of aliases.
31461
31462 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31463
31464         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31465         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31466         * opts.c (common_handle_option): Add -fsanitize=vptr.
31467         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31468         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31469         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31470         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31471         (ubsan_expand_vptr_ifn): New prototype.
31472         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31473         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31474         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31475         expand_LOOP_VECTORIZED): Make argument nameless, remove
31476         ATTRIBUTE_UNUSED.
31477         (expand_UBSAN_VPTR): New function.
31478         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31479         in fn spec.
31480         (UBSAN_VPTR): New internal function.
31481         * sanopt.c (tree_map_traits): Renamed to ...
31482         (sanopt_tree_map_traits): ... this.
31483         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31484         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31485         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
31486         (maybe_optimize_ubsan_vptr_ifn): New function.
31487         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31488         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
31489         -fsanitize=vptr.
31490         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31491         internal calls like pure functions for aliasing, even when they
31492         have other side-effects that prevent making them ECF_PURE.
31493         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31494         (ubsan_expand_vptr_ifn): New function.
31495
31496 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31497
31498         PR rtl-optimization/64110
31499         * stmt.c (parse_output_constraint): Process '^' and '$'.
31500         (parse_input_constraint): Ditto.
31501         * lra-constraints.c (process_alt_operands): Process the new
31502         constraints.
31503         * ira-costs.c (record_reg_classes): Process the new constraint
31504         '^'.
31505         * genoutput.c (indep_constraints): Add '^' and '$'.
31506         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31507         * doc/md.texi: Add description of the new constraints.
31508
31509 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
31510             Bernd Schmidt  <bernds@codesourcery.com>
31511             Cesar Philippidis  <cesar@codesourcery.com>
31512             James Norris  <jnorris@codesourcery.com>
31513             Tom de Vries  <tom@codesourcery.com>
31514             Ilmir Usmanov  <i.usmanov@samsung.com>
31515             Dmitry Bocharnikov  <dmitry.b@samsung.com>
31516             Evgeny Gavrin  <e.gavrin@samsung.com>
31517             Jakub Jelinek  <jakub@redhat.com>
31518
31519         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31520         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31521         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31522         New function types.
31523         * builtins.c: Include "gomp-constants.h".
31524         (expand_builtin_acc_on_device): New function.
31525         (expand_builtin, is_inexpensive_builtin): Handle
31526         BUILT_IN_ACC_ON_DEVICE.
31527         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31528         New macros.
31529         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31530         flag_openmp.
31531         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31532         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31533         i386/intelmic-offload.h.
31534         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31535         to libgomp and its dependencies.
31536         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31537         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31538         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31539         * config/ia64/hpux.h (LIB_SPEC): Likewise.
31540         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31541         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31542         * doc/generic.texi: Update for OpenACC changes.
31543         * doc/gimple.texi: Likewise.
31544         * doc/invoke.texi: Likewise.
31545         * doc/sourcebuild.texi: Likewise.
31546         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31547         GF_OMP_FOR_KIND_OACC_LOOP.
31548         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31549         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31550         GF_OMP_TARGET_KIND_OACC_UPDATE,
31551         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31552         Dump more data.
31553         * gimple.c: Update comments for OpenACC changes.
31554         * gimple.def: Likewise.
31555         * gimple.h: Likewise.
31556         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31557         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31558         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31559         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31560         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31561         appropriate place.
31562         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31563         * gimplify.c: Include "gomp-constants.h".
31564         Update comments for OpenACC changes.
31565         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31566         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31567         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31568         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31569         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31570         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31571         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31572         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31573         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31574         OMP_CLAUSE_SEQ.
31575         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31576         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31577         OMP_CLAUSE_SET_MAP_KIND.
31578         (gimplify_oacc_cache): New function.
31579         (gimplify_omp_for): Handle OACC_LOOP.
31580         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31581         OACC_DATA.
31582         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31583         OACC_EXIT_DATA, OACC_UPDATE.
31584         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31585         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31586         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31587         (gimplify_body): Consider flag_openacc next to flag_openmp.
31588         * lto-streamer-out.c: Include "gomp-constants.h".
31589         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31590         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31591         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31592         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31593         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31594         (BUILT_IN_ACC_ON_DEVICE): New builtins.
31595         * omp-low.c: Include "gomp-constants.h".
31596         Update comments for OpenACC changes.
31597         (struct omp_context): Add reduction_map, gwv_below, gwv_this
31598         members.
31599         (extract_omp_for_data, use_pointer_for_field, install_var_field)
31600         (new_omp_context, delete_omp_context, scan_sharing_clauses)
31601         (create_omp_child_function, scan_omp_for, scan_omp_target)
31602         (check_omp_nesting_restrictions, lower_reduction_clauses)
31603         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31604         Update for OpenACC changes.
31605         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31606         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31607         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31608         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31609         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31610         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
31611         OMP_CLAUSE_MAP_*.
31612         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31613         Handle GF_OMP_FOR_KIND_OACC_LOOP.
31614         (expand_omp_target, lower_omp_target): Handle
31615         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31616         GF_OMP_TARGET_KIND_OACC_UPDATE,
31617         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31618         GF_OMP_TARGET_KIND_OACC_DATA.
31619         (pass_expand_omp::execute, execute_lower_omp)
31620         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31621         flag_openmp.
31622         (offload_symbol_decl): New variable.
31623         (oacc_get_reduction_array_id, oacc_max_threads)
31624         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31625         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31626         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31627         (oacc_gimple_assign, oacc_initialize_reduction_data)
31628         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31629         functions.
31630         (is_targetreg_ctx): Remove function.
31631         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31632         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31633         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31634         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31635         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31636         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31637         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31638         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31639         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31640         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31641         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31642         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31643         * tree-core.h: Update comments for OpenACC changes.
31644         (enum omp_clause_map_kind): Remove.
31645         (struct tree_omp_clause): Change type of map_kind member from enum
31646         omp_clause_map_kind to unsigned char.
31647         * tree-inline.c: Update comments for OpenACC changes.
31648         * tree-nested.c: Likewise.  Include "gomp-constants.h".
31649         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31650         (convert_tramp_reference_stmt, convert_gimple_call): Update for
31651         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31652         OMP_CLAUSE_SET_MAP_KIND.
31653         * tree-pretty-print.c: Include "gomp-constants.h".
31654         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31655         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31656         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31657         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31658         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31659         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
31660         instead of OMP_CLAUSE_MAP_*.
31661         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31662         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31663         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31664         * tree-streamer-in.c: Include "gomp-constants.h".
31665         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31666         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
31667         * tree-streamer-out.c: Include "gomp-constants.h".
31668         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31669         OMP_CLAUSE_MAP_*.
31670         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31671         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31672         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31673         * tree.c (omp_clause_num_ops): Update accordingly.
31674         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31675         Likewise.
31676         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31677         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31678         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31679         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31680         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31681         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31682         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31683         (OMP_CLAUSE_SET_MAP_KIND): New macro.
31684         * varpool.c (varpool_node::get_create): Consider flag_openacc next
31685         to flag_openmp.
31686         * config/i386/intelmic-offload.h: New file.
31687         * config/nvptx/offload.h: Likewise.
31688
31689 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31690
31691         * explow.h: Remove duplicate contents.
31692         * dojump.h: Likewise.
31693
31694 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
31695
31696         * arm.c (arm_xgene_tune): Add default initializer for instruction
31697         fusion.
31698
31699 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31700
31701         PR ipa/64068
31702         PR ipa/64559
31703         * ipa.c (symbol_table::remove_unreachable_nodes):
31704         Do not put abstract origins into boundary.
31705
31706 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
31707
31708         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31709         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31710
31711 2015-01-15  Steve Ellcey  <sellcey@mips.com>
31712
31713         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31714         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31715         builtins.def, and chkp-builtins.def.
31716
31717 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
31718
31719         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31720         ISA 2.7 (POWER8).
31721
31722 2015-01-15  Richard Biener  <rguenther@suse.de>
31723
31724         PR tree-optimization/61743
31725         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31726         information on PHIs for some simple cases.
31727
31728 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31729
31730         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31731         Include xgene1.md.
31732         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31733         * config/arm/arm-cores.def (xgene1): New entry.
31734         * config/arm/arm-tables.opt: Regenerate.
31735         * config/arm/arm-tune.md: Regenerate.
31736         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31737
31738 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
31739
31740         * tree-if-conv.c: Include hash-map.h.
31741         (aggressive_if_conv): New variable.
31742         (fold_build_cond_expr): Add simplification of non-zero condition.
31743         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31744         destination block is not always executed.
31745         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31746         than two predecessors if AGGRESSIVE_IF_CONV is true.
31747         (if_convertible_stmt_p): Fix commentary.
31748         (all_preds_critical_p): New function.
31749         (has_pred_critical_p): New function.
31750         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31751         BB can have more than two predecessors and all incoming edges can be
31752         critical.
31753         (predicate_bbs): Skip predication for loop exit block, use build2_loc
31754         to compute predicate for true edge.
31755         (find_phi_replacement_condition): Delete this function.
31756         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31757         Allow interchange PHI arguments if EXTENDED is false.
31758         Change check that block containing reduction statement candidate
31759         is predecessor of phi-block since phi may have more than two arguments.
31760         (phi_args_hash_traits): New helper structure.
31761         (struct phi_args_hash_traits): New type.
31762         (phi_args_hash_traits::hash): New function.
31763         (phi_args_hash_traits::equal_keys): New function.
31764         (gen_phi_arg_condition): New function.
31765         (predicate_scalar_phi): Add handling of phi nodes with more than two
31766         arguments, delete COND and TRUE_BB arguments, insert body of
31767         find_phi_replacement_condition to predicate ordinary phi nodes.
31768         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31769         delete call of find_phi_replacement_condition and invoke
31770         predicate_scalar_phi with two arguments.
31771         (insert_gimplified_predicates): Add assert that non-predicated block
31772         don't have statements to insert.
31773         (ifcvt_split_critical_edges): New function.
31774         (ifcvt_split_def_stmt): Likewise.
31775         (ifcvt_walk_pattern_tree): Likewise.
31776         (stmt_is_root_of_bool_pattern): Likewise.
31777         (ifcvt_repair_bool_pattern): Likewise.
31778         (ifcvt_local_dce): Likewise.
31779         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31780         is copy of inner or outer loop force_vectorize field, invoke
31781         ifcvt_split_critical_edges, ifcvt_local_dce and
31782         ifcvt_repair_bool_pattern for aggressive if-conversion.
31783
31784 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
31785
31786         * config/aarch64/aarch64.md: Include xgene1.md.
31787         * config/aarch64/xgene1.md: New file.
31788
31789 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31790
31791         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31792         xgene1 (APM XGene-1) core definition.
31793         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31794         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31795         * doc/invoke.texi: Document -mcpu=xgene1.
31796
31797 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31798
31799         * dojump.h: New header file.
31800         * explow.h: Likewise.
31801         * expr.h: Remove includes.
31802         Move expmed.c prototypes to expmed.h.
31803         Move dojump.c prototypes to dojump.h.
31804         Move alias.c prototypes to alias.h.
31805         Move explow.c prototypes to explow.h.
31806         Move calls.c prototypes to calls.h.
31807         Move emit-rtl.c prototypes to emit-rtl.h.
31808         Move varasm.c prototypes to varasm.h.
31809         Move stmt.c prototypes to stmt.h.
31810         (saved_pending_stack_adjust): Move to dojump.h.
31811         (adjust_address): Move to explow.h.
31812         (adjust_address_nv): Move to emit-rtl.h.
31813         (adjust_bitfield_address): Likewise.
31814         (adjust_bitfield_address_size): Likewise.
31815         (adjust_bitfield_address_nv): Likewise.
31816         (adjust_automodify_address_nv): Likewise.
31817         * explow.c (expr_size): Move to expr.c.
31818         (int_expr_size): Likewise.
31819         (tree_expr_size): Likewise.
31820         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31821         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
31822         * genemit.c (main): Generate includes statistics.h, real.h,
31823         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
31824         stmt.h.
31825         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
31826         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
31827         explow.h, emit-rtl.h, stmt.h.
31828         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
31829         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
31830         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
31831         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
31832         emit-rtl.h, varasm.h, stmt.h.
31833         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
31834         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
31835         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
31836         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
31837         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31838         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
31839         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
31840         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
31841         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
31842         tm.h tree.h varasm.h vec.h wide-int.h.
31843         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31844         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31845         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
31846         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
31847         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
31848         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
31849         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
31850         * loop-iv.c: Likewise.
31851         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
31852         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
31853         statistics.h stmt.h tree.h varasm.h wide-int.h.
31854         * lra-constraints.c: Likewise.
31855         * lra-eliminations.c: Likewise.
31856         * lra-lives.c: Likewise.
31857         * lra-remat.c: Likewise.
31858         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31859         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
31860         statistics.h stmt.h tree.h varasm.h wide-int.h.
31861         * hw-doloop.c: Likewise.
31862         * ira-color.c: Likewise.
31863         * ira-emit.c: Likewise.
31864         * loop-doloop.c: Likewise.
31865         * loop-invariant.c: Likewise.
31866         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31867         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
31868         statistics.h stmt.h tree.h varasm.h wide-int.h.
31869         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
31870         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
31871         statistics.h stmt.h tree.h varasm.h wide-int.h.
31872         * combine-stack-adj.c: Likewise.
31873         * cse.c: Likewise.
31874         * ddg.c: Likewise.
31875         * ifcvt.c: Likewise.
31876         * ira-costs.c: Likewise.
31877         * jump.c: Likewise.
31878         * lra-coalesce.c: Likewise.
31879         * lra-spills.c: Likewise.
31880         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31881         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
31882         stmt.h varasm.h wide-int.h.
31883         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
31884         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31885         varasm.h.
31886         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
31887         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
31888         statistics.h stmt.h varasm.h wide-int.h.
31889         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
31890         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
31891         varasm.h wide-int.h.
31892         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
31893         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
31894         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
31895         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
31896         statistics.h stmt.h.
31897         * config/tilepro/tilepro.c: Likewise.
31898         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
31899         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
31900         * config/pdp11/pdp11.c: Likewise.
31901         * config/xtensa/xtensa.c: Likewise.
31902         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
31903         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
31904         varasm.h.
31905         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31906         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31907         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
31908         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31909         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
31910         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
31911         * rtl-chkp.c: Likewise.
31912         * tree-chkp-opt.c: Likewise.
31913         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
31914         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
31915         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
31916         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31917         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
31918         statistics.h stmt.h.
31919         * tree-vect-data-refs.c: Likewise.
31920         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
31921         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31922         rtl.h statistics.h stmt.h varasm.h.
31923         * internal-fn.c: Likewise.
31924         * ipa-icf-gimple.c: Likewise.
31925         * lto-section-out.c: Likewise.
31926         * tree-data-ref.c: Likewise.
31927         * tree-nested.c: Likewise.
31928         * tree-outof-ssa.c: Likewise.
31929         * tree-predcom.c: Likewise.
31930         * tree-pretty-print.c: Likewise.
31931         * tree-scalar-evolution.c: Likewise.
31932         * tree-ssa-strlen.c: Likewise.
31933         * tree-vect-loop.c: Likewise.
31934         * tree-vect-patterns.c: Likewise.
31935         * tree-vect-slp.c: Likewise.
31936         * tree-vect-stmts.c: Likewise.
31937         * tsan.c: Likewise.
31938         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31939         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
31940         stmt.h.
31941         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
31942         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
31943         statistics.h stmt.h varasm.h.
31944         * loop-unroll.c: Likewise.
31945         * ubsan.c: Likewise.
31946         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
31947         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
31948         stmt.h varasm.h.
31949         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31950         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
31951         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
31952         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31953         statistics.h stmt.h.
31954         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
31955         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
31956         statistics.h stmt.h varasm.h.
31957         * gimple-match-head.c: Likewise.
31958         * lto-cgraph.c: Likewise.
31959         * lto-section-in.c: Likewise.
31960         * lto-streamer-in.c: Likewise.
31961         * lto-streamer-out.c: Likewise.
31962         * tree-affine.c: Likewise.
31963         * tree-cfg.c: Likewise.
31964         * tree-cfgcleanup.c: Likewise.
31965         * tree-if-conv.c: Likewise.
31966         * tree-into-ssa.c: Likewise.
31967         * tree-ssa-alias.c: Likewise.
31968         * tree-ssa-copyrename.c: Likewise.
31969         * tree-ssa-dse.c: Likewise.
31970         * tree-ssa-forwprop.c: Likewise.
31971         * tree-ssa-live.c: Likewise.
31972         * tree-ssa-math-opts.c: Likewise.
31973         * tree-ssa-pre.c: Likewise.
31974         * tree-ssa-sccvn.c: Likewise.
31975         * tree-tailcall.c: Likewise.
31976         * tree-vect-generic.c: Likewise.
31977         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31978         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
31979         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31980         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
31981         * varasm.c: Likewise.
31982         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31983         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
31984         varasm.h.
31985         * init-regs.c: Likewise.
31986         * ira.c: Likewise.
31987         * omp-low.c: Likewise.
31988         * stack-ptr-mod.c: Likewise.
31989         * tree-ssa-reassoc.c: Likewise.
31990         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31991         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
31992         varasm.h.
31993         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31994         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
31995         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31996         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
31997         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
31998         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
31999         * tree-ssa-phiopt.c: Likewise.
32000         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32001         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32002         * config/fr30/fr30.c: Likewise.
32003         * config/frv/frv.c: Likewise.
32004         * expr.c: Likewise.
32005         * final.c: Likewise.
32006         * optabs.c: Likewise.
32007         * passes.c: Likewise.
32008         * simplify-rtx.c: Likewise.
32009         * stmt.c: Likewise.
32010         * toplev.c: Likewise.
32011         * var-tracking.c: Likewise.
32012         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32013         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32014         * lower-subreg.c: Likewise.
32015         * postreload-gcse.c: Likewise.
32016         * ree.c: Likewise.
32017         * reginfo.c: Likewise.
32018         * store-motion.c: Likewise.
32019         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32020         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32021         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32022         fixed-value.h hashtab.h statistics.h stmt.h.
32023         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32024         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32025         * except.c: Likewise.
32026         * explow.c: Likewise.
32027         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32028         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32029         varasm.h.
32030         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32031         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32032         * tree-ssa-structalias.c: Likewise.
32033         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32034         fixed-value.h insn-config.h real.h statistics.h.
32035         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32036         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32037         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32038         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32039         * cfgbuild.c: Likewise.
32040         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32041         fixed-value.h real.h rtl.h statistics.h stmt.h.
32042         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32043         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32044         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32045         fixed-value.h real.h statistics.h stmt.h.
32046         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32047         fixed-value.h real.h statistics.h stmt.h varasm.h.
32048         * cprop.c: Likewise.
32049         * modulo-sched.c: Likewise.
32050         * postreload.c: Likewise.
32051         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32052         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32053         statistics.h stmt.h varasm.h.
32054         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32055         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32056         rtl.h statistics.h stmt.h varasm.h.
32057         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32058         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32059         varasm.h.
32060         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32061         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32062         varasm.h.
32063         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32064         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32065         varasm.h.
32066         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32067         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32068         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32069         function.h real.h statistics.h stmt.h varasm.h.
32070         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32071         insn-config.h real.h statistics.h stmt.h.
32072         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32073         statistics.h stmt.h.
32074         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32075         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32076         statistics.h stmt.h varasm.h.
32077         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32078         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32079         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32080         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32081         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32082         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32083         statistics.h stmt.h varasm.h.
32084         * ipa-polymorphic-call.c: Likewise.
32085         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32086         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32087         statistics.h stmt.h.
32088         * config/c6x/c6x.c: Likewise.
32089         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32090         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32091         statistics.h stmt.h varasm.h.
32092         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32093         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32094         stmt.h varasm.h.
32095         * ipa-split.c: Likewise.
32096         * tree-eh.c: Likewise.
32097         * tree-ssa-dce.c: Likewise.
32098         * tree-ssa-loop-niter.c: Likewise.
32099         * tree-vrp.c: Likewise.
32100         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32101         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32102         stmt.h.
32103         * config/nds32/nds32-fp-as-gp.c: Likewise.
32104         * config/nds32/nds32-intrinsic.c: Likewise.
32105         * config/nds32/nds32-isr.c: Likewise.
32106         * config/nds32/nds32-md-auxiliary.c: Likewise.
32107         * config/nds32/nds32-memory-manipulation.c: Likewise.
32108         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32109         * config/nds32/nds32-predicates.c: Likewise.
32110         * config/nds32/nds32.c: Likewise.
32111         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32112         fixed-value.h hashtab.h real.h statistics.h.
32113         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32114         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32115         * config/arm/arm.c: Likewise.
32116         * config/avr/avr.c: Likewise.
32117         * config/bfin/bfin.c: Likewise.
32118         * config/h8300/h8300.c: Likewise.
32119         * config/i386/i386.c: Likewise.
32120         * config/ia64/ia64.c: Likewise.
32121         * config/iq2000/iq2000.c: Likewise.
32122         * config/m32c/m32c.c: Likewise.
32123         * config/m32r/m32r.c: Likewise.
32124         * config/m68k/m68k.c: Likewise.
32125         * config/mcore/mcore.c: Likewise.
32126         * config/mep/mep.c: Likewise.
32127         * config/mips/mips.c: Likewise.
32128         * config/mn10300/mn10300.c: Likewise.
32129         * config/moxie/moxie.c: Likewise.
32130         * config/pa/pa.c: Likewise.
32131         * config/rl78/rl78.c: Likewise.
32132         * config/rx/rx.c: Likewise.
32133         * config/s390/s390.c: Likewise.
32134         * config/sh/sh.c: Likewise.
32135         * config/sparc/sparc.c: Likewise.
32136         * config/spu/spu.c: Likewise.
32137         * config/stormy16/stormy16.c: Likewise.
32138         * config/v850/v850.c: Likewise.
32139         * config/vax/vax.c: Likewise.
32140         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32141         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32142         * config/msp430/msp430.c: Likewise.
32143         * predict.c: Likewise.
32144         * value-prof.c: Likewise.
32145         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32146         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32147         * config/microblaze/microblaze.c: Likewise.
32148         * config/nios2/nios2.c: Likewise.
32149         * config/rs6000/rs6000.c: Likewise.
32150         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32151         insn-config.h real.h rtl.h statistics.h stmt.h.
32152         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32153         insn-config.h real.h statistics.h stmt.h.
32154         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32155         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32156         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32157         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32158         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32159         fixed-value.h real.h statistics.h stmt.h.
32160         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32161         fixed-value.h statistics.h stmt.h.
32162         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32163         stmt.h.
32164
32165 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32166
32167         * gengtype.c (create_user_defined_type): Workaround
32168         -Wmaybe-uninitialized false positives.
32169         * cse.c (fold_rtx): Likewise.
32170         * loop-invariant.c (gain_for_invariant): Likewise.
32171
32172 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32173
32174         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32175         set the memory attributes in all cases but clear MEM_EXPR if need be.
32176
32177 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32178
32179         PR tree-optimization/64434
32180         * cfgexpand.c (reorder_operands): New function.
32181         (expand_gimple_basic_block): Insert call of reorder_operands if
32182         optimized is true.
32183
32184 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32185
32186         * config/mips/micromips.md (*swp): Remove explicit parallel.
32187         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32188         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32189         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32190         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32191         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32192         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32193         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32194         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32195         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32196         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32197         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32198         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32199         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32200         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32201         (mips_wrdsp): Likewise.
32202         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32203         parallel.
32204         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32205         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32206         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32207         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32208         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32209         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32210         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32211         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32212         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32213
32214 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32215
32216         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32217         (mips_print_operand): Support 'y' to print exact log2 in decimal
32218         of a const_int.
32219         * config/mips/mips.h (ISA_HAS_LSA): New define.
32220         (ISA_HAS_DLSA): Likewise.
32221         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32222         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32223
32224 2015-01-15  Martin Liska  <mliska@suse.cz>
32225
32226         PR target/64377
32227         * optc-save-gen.awk: Add support for array types.
32228
32229 2015-01-15  Richard Biener  <rguenther@suse.de>
32230
32231         PR middle-end/64365
32232         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32233         for MEM_REF access functions with the same base can never partially
32234         overlap.
32235
32236 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32237
32238         * common.opt: New option -fstack-protector-explicit.
32239         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32240         (stack_protect_decl_phase): Handle stack_protect attribute for
32241         explicit stack protection requests.
32242         (expand_used_vars): Similarly.
32243         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32244         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32245         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32246
32247 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32248
32249         PR target/53988
32250         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32251         reg-reg copies.
32252         (sh_extending_set_of_reg): New struct.
32253         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32254         sh_remove_reg_dead_or_unused_notes): New Declarations.
32255         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32256         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32257         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32258         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32259         convert to insn_and_split and use new function sh_split_tst_subregs.
32260
32261 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32262
32263         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32264         option.
32265         (Optimization Options): Move -fuse-ld documentation to...
32266         (Link Options): ...here.
32267
32268 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32269
32270         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32271         offsets.
32272         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32273         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32274         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32275         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32276         instead of ZR for the memory operand of LL/SC.
32277         (compare_and_swap_12, sync_add<mode>): Likewise.
32278         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32279         (sync_new_<optab>_12, sync_nand_12): Likewise.
32280         (sync_old_nand_12, sync_new_nand_12): Likewise.
32281         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32282         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32283         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32284         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32285         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32286         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32287         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32288         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32289         * doc/md.texi (ZC): Update description.
32290
32291 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32292
32293         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32294         memory model is CONSUME.
32295         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32296         expand_builtin_atomic_store): Change invalid memory model errors to
32297         warnings.
32298         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32299         and issue warning for CONSUME.
32300
32301 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32302
32303         * lto-cgraph: Update function comments for
32304         lto_symtab_encoder_encode_*.
32305
32306 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32307
32308         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32309
32310 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32311
32312         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32313         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32314         lto_stream_offload_p instead.
32315         * lto-streamer.h (select_what_to_stream): Remove argument.
32316         * passes.c (ipa_write_summaries): Likewise.
32317         * tree-pass.h (ipa_write_summaries): Likewise.
32318
32319 2015-01-14  Richard Biener  <rguenther@suse.de>
32320
32321         PR tree-optimization/59354
32322         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32323         groups larger than the slp group size as having gaps.
32324
32325 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32326
32327         PR middle-end/59448
32328         * builtins.c (get_memmodel): Promote consume to acquire always.
32329
32330 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32331
32332         PR target/64386
32333         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32334         V32HImode.
32335
32336 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32337
32338         PR target/64393
32339         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32340         Enable AVX512BW.
32341         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32342         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32343         AVX512VBMI, as it implies AVX512BW.
32344
32345 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32346
32347         PR target/64387
32348         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32349         (vec_unpacks_hi_v16sf): Ditto.
32350
32351 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32352
32353         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32354         is not available.
32355
32356 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32357
32358         * doc/invoke.texi (mapcs): Mention deprecation.
32359         (mapcs-frame): Likewise.
32360
32361 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32362
32363         PR target/64453
32364         * config/arm/arm.c (callee_saved_reg_p): Define.
32365         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32366         register is callee saved instead of !call_used_regs[reg].
32367         (thumb1_compute_save_reg_mask): Likewise.
32368
32369 2015-01-14  Hale Wang  <hale.wang@arm.com>
32370
32371         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32372         Cortex-M7.
32373
32374 2015-01-14  Richard Biener  <rguenther@suse.de>
32375
32376         PR lto/64415
32377         * tree-inline.c (insert_debug_decl_map): Check destination
32378         function MAY_HAVE_DEBUG_STMTS.
32379         (insert_init_debug_bind): Likewise.
32380         (insert_init_stmt): Remove redundant check.
32381         (remap_gimple_stmt): Drop debug stmts if the destination
32382         function has var-tracking assignments disabled.
32383
32384 2015-01-14  Martin Liska  <mliska@suse.cz>
32385
32386         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32387         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32388
32389 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32390
32391         PR target/64460
32392         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32393         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32394
32395 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32396
32397         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32398         level from an ARCH; do not inject the default.
32399         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32400         MIPS_ISA_LEVEL_SPEC.
32401         (MIPS_ISA_NAN2008_SPEC): Update comment.
32402         (BASE_DRIVER_SELF_SPECS): Likewise.
32403         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32404         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32405         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32406         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32407         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32408
32409 2015-01-14  Richard Biener  <rguenther@suse.de>
32410
32411         PR tree-optimization/64493
32412         PR tree-optimization/64495
32413         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32414         assign the proper vectorized PHI to the inner loop exit PHIs.
32415
32416 2015-01-14  Joey Ye  <joey.ye@arm.com>
32417
32418         * config/arm/arm.c (arm_compute_save_reg_mask):
32419         Do not save lr in case of tail call.
32420         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32421
32422 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32423
32424         * tree-vrp.c (check_array_ref): Emit more warnings
32425         for warn_array_bounds >= 2.
32426         * common.opt: New option -Warray-bounds=.
32427         * doc/invoke.texi: Document -Warray-bounds=.
32428
32429 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32430
32431         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32432         (mforbid-fp-as-gp): Remove.
32433         (mex9): Remove.
32434         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32435         (nds32_symbol_load_store_p): Remove.
32436         (nds32_fp_as_gp_check_available): Clean up implementation.
32437         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32438         cases.
32439         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32440         fp-as-gp and ex9 cases.
32441
32442 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32443
32444         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32445         for bintuils bug 14342.
32446         (init_ic_make_global_vars): Likewise.
32447         (gimple_init_edge_profiler): Likewise.
32448         (gimple_gen_ic_func_profiler): Likewise.
32449
32450 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32451
32452         * ipa-inline.c (inline_small_functions): Swap the operands in
32453         enum.
32454
32455 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32456
32457         PR ipa/64481
32458         * ipa-inline-analysis.c (node_growth_cache): Remove.
32459         (initialize_growth_caches): Do not initialize it.
32460         (free_growth_caches): Do not free it.
32461         (do_estimate_growth): Rename to ...
32462         (estimate_growth): ... this one; drop growth cache code.
32463         (growth_likely_positive): Always go the heuristics way.
32464         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32465         (reset_edge_caches): Do not reset node growth.
32466         (heap_edge_removal_hook): Do not maintain cache.
32467         (inline_small_functions): Likewise; strenghten sanity check.
32468         (ipa_inline): Do not maintain caches.
32469         * ipa-inline.h (node_growth_cache): Remove.
32470         (do_estimate_growth): Remove to ...
32471         (estimate_growth): this one; remove inline version.
32472         (reset_node_growth_cache): Remove.
32473
32474 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32475
32476         PR ipa/64565
32477         * ipa-inline.c (inline_small_functions): Update callee keys after
32478         resolving speculation
32479         (inline_small_functions): Always check monotonicity of the queue.
32480
32481 2015-01-13  Marek Polacek  <polacek@redhat.com>
32482
32483         PR middle-end/64391
32484         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32485
32486 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32487
32488         PR rtl-optimization/64286
32489         * ree.c (combine_reaching_defs): Move part of comment earlier,
32490         remove !SCALAR_INT_MODE_P check.
32491         (add_removable_extension): Don't add vector mode
32492         extensions if all uses of the source register aren't the same
32493         vector extensions.
32494
32495 2015-01-13  Renlin Li  <renlin.li@arm.com>
32496
32497         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32498         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32499
32500 2015-01-13  Martin Liska  <mliska@suse.cz>
32501
32502         * ipa-icf.c (sem_function::equals_private): Call new functions
32503         cl_target_option_print_diff and cl_optimization_print_diff.
32504         * optc-save-gen.awk (cl_target_option_print_diff): New function.
32505         (cl_optimization_print_diff): Likewise.
32506         * opth-gen.awk: Likewise.
32507
32508 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
32509
32510         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32511         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32512         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32513         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32514         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32515         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32516
32517 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32518
32519         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32520         instead of src mode.
32521
32522 2015-01-13  Richard Biener  <rguenther@suse.de>
32523
32524         PR lto/64373
32525         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32526         DECL_CONTEXT.
32527
32528 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32529
32530         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32531         volatile mems.
32532         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32533
32534 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32535
32536         PR middle-end/63974
32537         * cfgexpand.c (expand_computed_goto): Don't call
32538         convert_memory_address here.
32539
32540 2015-01-13  Richard Biener  <rguenther@suse.de>
32541
32542         PR tree-optimization/64406
32543         * tree-loop-distibution.c (pass_loop_distribution::execute):
32544         Reset the SCEV hashtable if we distributed anything.
32545
32546 2015-01-13  Richard Biener  <rguenther@suse.de>
32547
32548         PR tree-optimization/64404
32549         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32550         SLP types for CSEd loads.
32551
32552 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32553
32554         PR tree-optimization/64436
32555         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32556         merge of two symbolic numbers for a bitwise OR to ...
32557         (perform_symbolic_merge): This. Also fix computation of the range and
32558         end of the symbolic number corresponding to the result of a bitwise OR.
32559
32560 2015-01-13  Richard Biener  <rguenther@suse.de>
32561
32562         PR tree-optimization/64568
32563         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32564         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32565
32566 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32567
32568         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32569         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32570
32571 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32572
32573         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32574         target-specific symbol_ref flag.
32575         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32576         resides in rodata section.
32577         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32578         (nds32_encode_section_info): New function.
32579
32580 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32581
32582         * config/nds32/nds32.md (call): Use pseudo instruction bal which
32583         clobbers TA_REGNUM if large code model is specified.
32584         (call_register): Likewise.
32585         (call_immediate): Likewise.
32586         (call_value): Likewise.
32587         (call_value_register): Likewise.
32588         (call_value_immediate): Likewise.
32589
32590 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32591
32592         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32593         (TARGET_CMODEL_MEDIUM): New macro.
32594         (TARGET_CMODEL_LARGE): New macro.
32595         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32596         code model setting in assembly code.
32597
32598 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32599
32600         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32601         Remove MASK_GP_DIRECT flag.
32602         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32603         one of the multilib default options.
32604         * config/nds32/nds32.opt (mgp-direct): Remove.
32605         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32606         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
32607
32608 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32609
32610         * config/nds32/nds32.opt (mcmodel): Add new option.
32611         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32612         to describe code model.
32613
32614 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
32615
32616         PR target/64479
32617         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32618
32619 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
32620
32621         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32622         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32623         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32624         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32625         __builtin_sh_set_fpscr.
32626
32627 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32628
32629         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32630         after a funtion name just to indicate it is a function.
32631         ([-fsanitize-undefined-trap-on-error]): Likewise.
32632         ([-fdbg-cnt=]): Likewise.
32633         ([-mmemcpy]): Likewise.
32634         ([-mflush-func]): Likewise.
32635         ([-msynci]): Likewise.
32636
32637 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32638
32639         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32640         example.
32641
32642 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
32643
32644         PR tree-optimization/64563
32645         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32646         instead of != VR_VARYING.
32647
32648         PR target/64513
32649         * config/i386/i386.c (ix86_expand_prologue): Add
32650         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32651
32652         PR tree-optimization/64454
32653         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32654         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32655         for signed or [0, op1 - 1] for unsigned modulo.
32656         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32657         even if op1 does not satisfy integer_pow2p.
32658
32659         PR other/64370
32660         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32661
32662 2015-01-12  Jeff Law  <law@redhat.com>
32663
32664         PR target/64461
32665         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32666         (trunchiqi2, truncsihi2): Similarly.
32667
32668         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32669         rather than calling F.
32670
32671 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32672
32673         * tsan.c (instrument_expr): Use force_gimple_operand.
32674         Use may_be_nonaddressable_p instead of is_gimple_addressable.
32675
32676 2015-01-12  Richard Biener  <rguenther@suse.de>
32677
32678         PR tree-optimization/64530
32679         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32680         back dr1.
32681
32682 2015-01-12  Richard Biener  <rguenther@suse.de>
32683
32684         PR middle-end/64357
32685         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32686         latches properly.
32687
32688 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32689
32690         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32691         Cortex-A17 tuning parameters.
32692         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32693
32694 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32695
32696         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32697         * config/arm/arm.c (arm_macro_fusion_p): New function.
32698         (arm_macro_fusion_pair_p): Likewise.
32699         (TARGET_SCHED_MACRO_FUSION_P): Define.
32700         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32701         (ARM_FUSE_NOTHING): Likewise.
32702         (ARM_FUSE_MOVW_MOVT): Likewise.
32703         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32704         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32705         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32706         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32707         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32708         arm_cortex_a5_tune): Specify fuseable_ops value.
32709
32710 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
32711
32712         PR bootstrap/64561
32713         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32714         test for PIE with copy reloc.
32715         * configure: Regenerated.
32716
32717 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32718
32719         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32720         in gen_rtx_REG.
32721         (arm_tls_descseq_addr): Likewise.
32722         (arm_gen_movmemqi): Likewise.
32723         (arm_expand_epilogue_apcs_frame): Likewise.
32724         (arm_expand_epilogue): Likewise.
32725         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
32726         in gen_rtx_REG.
32727
32728 2015-01-12  Martin Liska  <mliska@suse.cz>
32729
32730         PR ipa/64550
32731         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32732         volatility for correct operands.
32733
32734 2015-01-12  Martin Liska  <mliska@suse.cz>
32735
32736         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32737         indication that a function is not leaf.
32738         (sem_function::compare_polymorphic_p): Likewise.
32739
32740 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32741
32742         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32743         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32744         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32745         fold-const.h, tree-check.h.
32746
32747 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32748
32749         PR ipa/63967
32750         PR ipa/64425
32751         * ipa-inline.c (compute_uninlined_call_time,
32752         compute_inlined_call_time): Use counts for extra precision when
32753         needed possible.
32754         (big_speedup_p): Fix formating.
32755         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32756         (relative_time_benefit): Remove.
32757         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32758         merge guessed and read profile paths.
32759         (inline_small_functions): Count only !optimize_size functions into
32760         initial size; be more lax about sanity check when profile is used;
32761         be sure to update inlined function profile when profile is read.
32762
32763 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32764
32765         PR ipa/63470
32766         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32767         cost when edge becomes direct.
32768         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32769         is resolved or when introducing new speculation.
32770
32771 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
32772
32773         PR ipa/64551
32774         PR ipa/64552
32775         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32776         '||' to fix typo issue.
32777
32778         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32779         accept and return NULL.
32780
32781 2015-01-12  Martin Liska  <mliska@suse.cz>
32782
32783         * cgraph.c (cgraph_edge::remove_callee): Move function to header
32784         file for being inlined.
32785         (cgraph_set_edge_callee): Delete.
32786         (cgraph_edge::redirect_callee): Move function to header file
32787         for being inlined.
32788         (cgraph_edge::make_direct): Use new function.
32789         (cgraph_edge::dump_edge_flags): New function created from
32790         static dump_edge_flags function.
32791         (cgraph_node::dump): Use new function.
32792         (cgraph_edge::verify_count_and_frequency): New function created
32793         from verify_edge_count_and_frequency.
32794         (cgraph_edge::verify_corresponds_to_fndecl): New function created
32795         from verify_edge_corresponds_to_fndecl.
32796         (verify_edge_corresponds_to_fndecl): Delete.
32797         (cgraph_node::verify_node): Use new function.
32798         * cgraph.h (cgraph_edge::set_callee): New function.
32799         (cgraph_edge::dump_edge_flags): Likewise.
32800         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32801
32802 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
32803
32804         * ipa-utils.c (estimate_function_body_sizes): Do not
32805         free node params when called late with early=true.
32806
32807 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
32808
32809         * doc/md.texi (Instruction Patterns): Rewrite text for
32810         clarity.
32811         (Example): Likewise.
32812
32813 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
32814
32815         * doc/invoke.texi (Option Summary): Break long lines.
32816         [(-fdiagnostics-color)]: Put long literal in @smallexample
32817         instead of inline.
32818         [(-fsanitize-recover)]: Likewise.
32819         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
32820         [(-ffast-math)]: Likewise.
32821         [(--param max-inline-insns-recursive)]: Likewise.
32822         [(--param max-inline-recursive-depth)]: Likewise.
32823         [(-mno-text-section-literals)]: Likewise.
32824
32825 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
32826
32827         * doc/install.texi: Update for libgomp being renamed from "GNU
32828         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
32829         Runtime Library".
32830         * doc/sourcebuild.texi: Likewise.
32831
32832 2015-01-10  Anthony Green  <green@moxielogic.com>
32833
32834         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
32835         mul.x availability for moxiebox configuration.
32836
32837 2015-01-09  Anthony Green  <green@moxielogic.com>
32838
32839         * config/moxie/moxie.md: Tabify assembly output.
32840
32841 2015-01-09  Anthony Green  <green@moxielogic.com>
32842
32843         * config/moxie/moxie.md (CC_REG): Correct register definition.
32844
32845 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
32846
32847         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
32848         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
32849         of log files.
32850
32851 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32852
32853         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
32854
32855 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
32856             Jakub Jelinek  <jakub@redhat.com>
32857
32858         PR middle-end/64412
32859         * lto-streamer.h (lto_stream_offload_p): New declaration.
32860         * lto-streamer.c (lto_stream_offload_p): New variable.
32861         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
32862         at the same time as section_name_prefix.
32863         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
32864         if lto_stream_offload_p.
32865         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
32866         stream TREE_TARGET_OPTION if lto_stream_offload_p.
32867         (write_ts_function_decl_tree_pointers): Don't
32868         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
32869         * tree-streamer-in.c (unpack_value_fields): Don't stream
32870         TREE_TARGET_OPTION in if ACCEL_COMPILER.
32871         (lto_input_ts_function_decl_tree_pointers): Don't stream
32872         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
32873         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
32874         instead of section_name_prefix string comparisons.
32875
32876 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
32877
32878         PR rtl-optimization/64536
32879         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
32880         tablejumps.
32881
32882 2015-01-09  Michael Collison  <michael.collison@linaro.org>
32883
32884         PR tree-optimization/64322
32885         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
32886         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
32887
32888 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32889
32890         PR rtl-optimization/64539
32891         * regcprop.c (kill_clobbered_values): Factor out of ...
32892         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
32893         instead of note_stores with kill_clobbered_value.
32894
32895 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32896
32897          * ginclude/unwind-arm-common.h: Revert previous commit.
32898
32899 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
32900
32901         * config.gcc (arm*-*-freebsd*): New configuration.
32902         * config/arm/freebsd.h: New file.
32903         * config.host: Add extra components for arm*-*-freebsd*.
32904         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
32905         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
32906
32907 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32908
32909         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
32910         for -mcpu=e6500.
32911         * config/rs6000/t-rtems: Add e6500 multilibs.
32912
32913 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32914
32915         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
32916         MPC8540.
32917
32918 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32919
32920         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
32921         MULTILIB_EXCEPTIONS.
32922
32923 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32924
32925         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
32926         MULTILIB_EXCEPTIONS.
32927
32928 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32929
32930         * config/arm/t-rtems-eabi: Rename to...
32931         * config/arm/t-rtems: ...this.
32932         * config/arm/rtems-eabi.h: Rename to...
32933         * config/arm/rtems.h: ...this.
32934         * config.gcc (arm*-*-rtems*): Reflect changes above.
32935
32936 2015-01-09  Richard Biener  <rguenther@suse.de>
32937
32938         PR tree-optimization/64410
32939         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
32940         on the LHS.
32941         (execute_update_addresses_taken): Deal with that.
32942         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
32943         loads/stores for complex variables.
32944
32945 2015-01-09  Martin Liska  <mliska@suse.cz>
32946
32947         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
32948         name comparison.
32949         (func_checker::compare_memory_operand): New function.
32950         (func_checker::compare_operand): Split case to newly
32951         added functions.
32952         (func_checker::compare_cst_or_decl): New function.
32953         (func_checker::compare_gimple_call): Identify
32954         memory operands.
32955         (func_checker::compare_gimple_assign): Likewise.
32956         * ipa-icf-gimple.h: New function.
32957
32958 2015-01-09  Martin Liska  <mliska@suse.cz>
32959
32960         PR ipa/64503
32961         * sreal.c (sreal::dump): Change unsigned format to signed for
32962         m_exp value.
32963         (sreal::to_double): Replace exp2 with scalbln.
32964
32965 2015-01-09  Martin Liska  <mliska@suse.cz>
32966
32967         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
32968         * ipa-icf.c (sem_function::equals_private): Add support for target and
32969         (sem_item_optimizer::merge_classes): Remove redundant function
32970         optimization flags comparison.
32971         * tree.h (target_opts_for_fn): New function.
32972
32973 2015-01-09  Tom de Vries  <tom@codesourcery.com>
32974
32975         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
32976
32977 2015-01-09  Kito Cheng  <kito@0xlab.org>
32978
32979         PR rtl-optimization/64348
32980         * lra-constraints.c (split_reg): Fix caller-save store/restore
32981         instruction generation.
32982
32983 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
32984
32985         PR gcov-profile/61790
32986         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
32987         long long.  Fallback to int64_t if host doesn't have long long and
32988         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
32989
32990 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
32991
32992         PR tree-optimization/63989
32993         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
32994         from 1000 to 10000.
32995         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
32996         (get_stridx): If we don't have a record for certain SSA_NAME,
32997         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
32998         constant offset, call get_stridx_plus_constant.
32999         (get_stridx_plus_constant): New function.
33000         (zero_length_string): Don't use get_stridx here.
33001
33002         PR target/55023
33003         PR middle-end/64388
33004         * dse.c (struct insn_info): Mention frame_read set also
33005         before reload for tail calls on some targets.
33006         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33007         also before reload for tail calls if
33008         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33009         instead of add_non_frame_wild_read for non-const/memset
33010         tail calls after reload.
33011
33012 2015-01-08  Jason Merrill  <jason@redhat.com>
33013
33014         * ubsan.c (do_ubsan_in_current_function): New.
33015         (pass_ubsan::gate): Use it.
33016         * ubsan.h: Declare it.
33017         * convert.c (convert_to_integer): Use it.
33018
33019 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33020
33021         PR target/64338
33022         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33023         compare_code when it is unconditionally overwritten afterwards.
33024         Use ix86_reverse_condition instead of reverse_condition.  Don't
33025         change code if *reverse_condition* returned UNKNOWN and don't
33026         swap ct/cf and negate diff in that case.
33027
33028 2015-01-08  Mike Stump  <mikestump@comcast.net>
33029
33030         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33031         (pass_tsan_O0::gate): Likewise.
33032         * extend.texi (Function Attributes): Add no_sanitize_thread
33033         documentation.
33034
33035 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33036
33037         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33038         for registering builtins.
33039         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33040         add -fopenmp to the argv_obstack used when invoking
33041         compile_for_target.
33042
33043         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33044         add "-m32" or "-m64" to argv_obstack.
33045         (generate_host_descr_file): Likewise, when invoking host_compiler.
33046         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33047         ld.
33048
33049 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33050
33051         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33052         tstsi_t insns.
33053
33054 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33055
33056         PR target/55212
33057         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33058         constant load if constant operand fits into I08.
33059
33060 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33061
33062         PR sanitizer/64336
33063         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33064         and TREE_THIS_VOLATILE for MEM_REFs.
33065         (build5_stat): Fix up initialization of TREE_READONLY and
33066         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33067
33068 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33069
33070         PR target/64533
33071         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33072         of r for the second alternative of the destination operand.
33073
33074 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33075
33076         PR target/36557
33077         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33078
33079 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33080
33081         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33082         keywords.
33083         ([-fivar-visibility], [-fvisibility]): Likewise.
33084
33085 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33086
33087         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33088         the file where @code, @command, etc is more appropriate.
33089
33090 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33091
33092         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33093         of -mrecip= documentation.
33094
33095 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33096
33097         PR target/64505
33098         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33099         correct reload handler if -m32 -mpowerpc64 is used.
33100
33101 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33102
33103         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33104
33105 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33106
33107         PR target/64507
33108         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33109
33110 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33111
33112         PR tree-optimization/63259
33113         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33114         if optab exists for 16bit byteswap.
33115
33116 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33117
33118         * opts.c (common_handle_option): Add support for
33119         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33120         * doc/invoke.texi: Document -fno-sanitize=all,
33121         -f{,no-}sanitize-recover=all.  Document that
33122         -fsanitize=float-cast-overflow is not enabled
33123         by -fsanitize=undefined.  Fix up documentation
33124         of -f{,no-}sanitize-recover.
33125
33126 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33127
33128         * config.gcc: Add Visium support.
33129         * configure.ac: Likewise.
33130         * configure: Regenerate.
33131         * doc/extend.texi (interrupt attribute): Add Visium.
33132         * doc/invoke.texi: Document Visium options.
33133         * doc/install.texi: Document Visium target.
33134         * doc/md.texi: Document Visium constraints.
33135         * common/config/visium: New directory.
33136         * config/visium: Likewise.
33137
33138 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33139
33140         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33141         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33142
33143 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33144
33145         * combine.c (combine_validate_cost): Do not count the cost of a
33146         split I2 twice.  Do not display it twice in the dump, either.
33147
33148 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33149
33150         Revert parts of r219199.
33151         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33152         <inttypes.h>.
33153         ([-Wtraditional]): Restore markup on <limits.h>.
33154
33155 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33156
33157         PR c++/31397
33158         * doc/invoke.texi: Document -Wsuggest-override.
33159
33160 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33161
33162         PR rtl-optimization/64287
33163         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33164         (process_options): Disable flag_ipa_ra if profiling.
33165
33166 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33167
33168         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33169
33170 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33171
33172         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33173         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33174         put under #if TARGET_LOOPS guard.
33175
33176 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33177
33178         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33179
33180 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33181
33182         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33183         * rtl.h (refers_to_regno_p): Add overload.
33184         * cse.c: Use it.
33185         * bt-load.c: Likewise.
33186         * combine.c: Likewise.
33187         * df-scan.c: Likewise.
33188         * sched-deps.c: Likewise.
33189         * config/s390/s390.c: Likewise.
33190         * config/m32r/m32r.c: Likewise.
33191         * config/rs6000/spe.md: Likewise.
33192         * config/rs6000/rs6000.c: Likewise.
33193         * config/pa/pa.c: Likewise.
33194         * config/stormy16/stormy16.c: Likewise.
33195         * config/cris/cris.c: Likewise.
33196         * config/arc/arc.md: Likewise.
33197         * config/arc/arc.c: Likewise.
33198         * config/sh/sh.md: Likewise.
33199         * config/sh/sh.c: Likewise.
33200         * config/frv/frv.c: Likewise.
33201
33202 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33203
33204         PR sanitizer/64265
33205         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33206         call as cleanup of the whole body.
33207         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33208         * tsan.c (replace_func_exit): New function.
33209         (instrument_func_exit): Moved earlier.
33210         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33211         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33212         been found.
33213         (tsan_pass): Don't call instrument_func_exit.
33214         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33215         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33216         inlining.
33217
33218         PR sanitizer/64344
33219         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33220         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33221         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33222         if the result is integer_zerop, return NULL_TREE.
33223         * convert.c (convert_to_integer): Pass expr as ARG.
33224
33225         PR tree-optimization/64465
33226         * tree-inline.c (redirect_all_calls): During inlining
33227         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33228         changed the stmt to a non-throwing call.
33229
33230 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33231
33232         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33233         etc markup throughout the file.
33234
33235 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33236
33237         Enable experimental TSAN support for Ada.
33238         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33239
33240 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33241
33242         PR tree-optimization/64494
33243         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33244         clear SSA_NAME_ANTI_RANGE_P flag.
33245
33246 2015-01-05  Marek Polacek  <polacek@redhat.com>
33247
33248         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33249
33250 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33251
33252         Update copyright years.
33253
33254         * gcc.c (process_command): Update copyright notice dates.
33255         * gcov-dump.c: Ditto.
33256         * gcov.c: Ditto.
33257         * doc/cpp.texi: Bump @copying's copyright year.
33258         * doc/cppinternals.texi: Ditto.
33259         * doc/gcc.texi: Ditto.
33260         * doc/gccint.texi: Ditto.
33261         * doc/gcov.texi: Ditto.
33262         * doc/install.texi: Ditto.
33263         * doc/invoke.texi: Ditto.
33264
33265         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33266
33267 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33268
33269         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33270         verb tense, etc.
33271         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33272         ([-Wabi]): Likewise.
33273         ([-fmessage-length]): Likewise.
33274         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33275         ([-Wno-discarded-qualifiers]): Likewise.
33276         ([-Wnodiscarded-array-qualifiers]): Likewise.
33277         ([-Wno-virtual-move-assign]): Likewise.
33278         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33279         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33280         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33281         ([-fsanitize-undefined-trap-on-error]): Likewise.
33282         ([-floop-interchange]): Likewise.
33283         ([-ftree-coalesce-inlined-vars]): Likewise.
33284         ([-fvect-cost-model]): Likewise.
33285         ([-flto]): Likewise.
33286         ([--param]): Likewise.
33287         (Spec Files): Likewise.
33288         ([-mstrict-align]): Likewise.
33289         ([-mfix-cortex-a53-835769]): Likewise.
33290         ([-march], [-mtune]): Likewise.
33291         ([-mpic-register]): Likewise.
33292         ([-munaligned-access]): Likewise.
33293         ([-msp8]): Likewise.
33294         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33295         (AVR Built-in Macros): Likewise.
33296         ([-mpreferred-stack-boundary]): Likewise.
33297         ([-mtune-crtl]): Likewise.
33298         ([-mashf]): Likewise.
33299         ([-mmcu=]): Likewise.
33300         ([-minrt]): Likewise.
33301         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33302         ([-mupper-regs]): Likewise.
33303         ([-matomic-model]): Likewise.
33304         ([-mdiv]): Likewise.
33305         ([-mzdcbranch]): Likewise.
33306         ([-mdisable-callt]): Likewise.
33307         ([-msoft-float]): Likewise.
33308         ([-m8byte-align]): Likewise.
33309         ([-fstack-reuse]): Likewise.
33310
33311 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33312
33313         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33314         Fix markup, light copy-editing.
33315         ([-fauto-profile]): Rewrite to fix formatting and content
33316         problems.
33317
33318 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33319
33320         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33321         Copy-edit description.
33322         ([-fisolate-erroneous-paths-attribute]): Likewise.
33323         * common.opt (fisolate-erroneous-paths-dereference):
33324         Copy-edit description.
33325         (fisolate-erroneous-paths-attribute): Likewise.
33326
33327 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33328
33329         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33330         tidy grammar.
33331
33332 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33333
33334         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33335         ([-fvtv-debug]): Likewise.
33336         ([-Wc++-compat]): Likewise.
33337         ([-Wc++11-compat]): Likewise.
33338         ([-Wc++14-compat]): Likewise.
33339         ([-Wno-sized-deallocation]): Likewise.
33340         ([-femit-class-debug-always]): Likewise.
33341         ([-femit-struct-debug-detailed]): Likewise.
33342         ([-fno-keep-inline-dllexport]): Likewise.
33343         ([-fira-algorithm]): Likewise.
33344         ([-fira-region]): Likewise.
33345         ([-flra-remat]): Likewise.
33346         ([-fipa-ra]): Likewise.
33347         ([-fhoist-adjacent-loads]): Likewise.
33348         ([-fisolate-erroneous-paths-dereference]): Likewise.
33349         ([-fisolate-erroneous-paths-attribute]): Likewise.
33350         ([-ftree-switch-conversion]): Likewise.
33351         ([-ftree-tail-merge]): Likewise.
33352         ([-ftree-loop-if-convert]): Likewise.
33353         ([-ftree-loop-if-convert-stores]): Likewise.
33354         ([-ftree-loop-distribution]): Likewise.
33355         ([-ftree-loop-distribute-patterns]): Likewise.
33356         ([-flto-compression-level]): Likewise.
33357         ([-flto-report]): Likewise.
33358         ([-flto-report-wpa]): Likewise.
33359         ([-fuse-linker-plugin]): Likewise.
33360         ([-mfix-cortex-a53-835769]): Likewise.
33361         ([-mno-fix-cortex-a53-835769]): Likewise.
33362         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33363         explicit listing; add a note to the discussion indicating they
33364         exist.  Reorder table to group similar options.  Add missing
33365         @opindex entries.  Add @need commands throughout the table to
33366         allow it to be split across multiple pages.
33367         ([-m8bit-idiv]): Fix @opindex.
33368         ([-mavx256-split-unaligned-load]): Likewise.
33369         ([-mavx256-split-unaligned-store]): Likewise.
33370         ([-mstack-protector-guard]): Likewise.
33371         ([-mcpu=]): Likewise.
33372         ([-mcpu]): Likewise.
33373         ([-mpointer-size=]): Likewise.
33374
33375 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33376
33377         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33378         instead of `m' constraint.  Likewise for unnamed movb comparison
33379         patterns using reg_before_reload_operand predicate.
33380         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33381         predicate to reject register index and LO_SUM DLT memory forms
33382         after reload.
33383
33384 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33385
33386         * doc/invoke.texi (Option Summary): Fix spelling of
33387         -fdevirtualize-at-ltrans.
33388         ([-fdevirtualize]): Fix markup.
33389         ([-fdevirtualize-speculatively]): Fix typo.
33390         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33391         implementor-speaky.
33392         * common.opt (fdevirtualize-at-ltrans): Likewise.
33393         * ipa-devirt.c: Fix typos in comments throughout the file.
33394         (ipa_devirt): Fix typos in format strings for dump output.
33395
33396 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33397
33398         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33399         discussion of defaults, light copy-editing.
33400
33401 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33402
33403         * tsan.c (instrument_expr): corrected previous checkin.
33404
33405 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33406
33407         Instrument bit field and unaligned accesses for TSAN.
33408         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33409         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33410         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33411         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33412         unaligned memory regions.
33413
33414 2015-01-01  Anthony Green  <green@moxielogic.com>
33415
33416         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33417         Restrict move source register offsets to 16 bits.
33418 \f
33419 Copyright (C) 2015 Free Software Foundation, Inc.
33420
33421 Copying and distribution of this file, with or without modification,
33422 are permitted in any medium without royalty provided the copyright
33423 notice and this notice are preserved.