fold-const.c (operand_equal_p): Handle matching of vector constructors.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2
3         * fold-const.c (operand_equal_p): Handle matching of vector
4         constructors.
5
6 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
7
8         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9
10 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
11             Andrew Pinski  <apinski@cavium.com>
12
13         PR rtl-optimization/67736
14         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
15         of gen_lowpart.
16
17 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18
19         PR middle-end/68066
20         * tree.c (build_truth_vector_type): Support BLK mode
21         returned for boolean vector.
22
23 2015-10-23  Alan Hayward <alan.hayward@arm.com>
24
25         PR tree-optimization/65947
26         * tree-vect-loop.c
27         (vect_is_simple_reduction_1): Find condition reductions.
28         (vect_model_reduction_cost): Add condition reduction costs.
29         (get_initial_def_for_reduction): Add condition reduction initial var.
30         (vect_create_epilog_for_reduction): Add condition reduction epilog.
31         (vectorizable_reduction): Condition reduction support.
32         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
33         * doc/sourcebuild.texi (Vector-specific attributes): Document
34         vect_max_reduc
35
36 2015-10-23  Richard Biener  <rguenther@suse.de>
37
38         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
39         and builtins.def.
40
41 2015-10-23  Richard Biener  <rguenther@suse.de>
42             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
43
44         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
45         into (A ^ B) - B to match.pd
46         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
47
48         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
49         New simplifier.
50         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
51         New simplifier.
52         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
53         New simplifier.
54         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
55         New simplifier.
56         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
57         INTEGER_CST@1)): New simplifier.
58
59 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
60
61         * builtins.c (integer_valued_real_p): Move to fold-const.c.
62         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
63         (fold_builtin_ceil, fold_builtin_round): Delete.
64         (fold_builtin_1): Handle constant trunc, floor, ceil and round
65         arguments here.
66         * convert.c (convert_to_real): Remove narrowing of rounding
67         functions.
68         * fold-const.h (integer_valued_real_unary_p)
69         (integer_valued_real_binary_p, integer_valued_real_call_p)
70         (integer_valued_real_single_p, integer_valued_real_p): Declare.
71         * fold-const.c (tree_single_nonnegative_warnv_p): Move
72         name_registered_for_update_p check to SSA_NAME case statement.
73         Don't call tree_simple_nonnegative_warnv_p for SSA names.
74         (integer_valued_real_unary_p, integer_valued_real_binary_p)
75         (integer_valued_real_call_p, integer_valued_real_single_p)
76         (integer_valued_real_invalid_p): New functions.
77         (integer_valued_real_p): Move from fold-const.c and rework
78         to call the functions above.  Handle SSA names.
79         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
80         * gimple-fold.c (gimple_assign_integer_valued_real_p)
81         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
82         (gimple_stmt_integer_valued_real_p): New functions.
83         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
84         Fold f(x)->x for the same f if x is known to be integer-valued.
85         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
86         the result.  Canonicalize floor(x) as trunc(x) if x is
87         nonnegative.
88
89 2015-10-23  Tom de Vries  <tom@codesourcery.com>
90
91         * tree-ssa-structalias.c (intra_create_variable_infos): Use
92         make_constraint_from.
93
94 2015-10-23  Tom de Vries  <tom@codesourcery.com>
95
96         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
97         setting of is_full_var in case of a single field.
98
99 2015-10-22  Martin Sebor  <msebor@redhat.com>
100
101         PR driver/68043
102         * config/i386/i386.opt: Add missing periods to the ends of sentences.
103         * config/msp430/msp430.opt: Same.
104
105 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
106
107         * doc/extend.exp (Global Register Variables): Rewrite.
108
109 2015-10-22  Jeff Law  <law@redhat.com>
110
111         * genattrtab.c (main): If we do not have any annul-true or annul-false
112         slots, then write out a dummy eligible_for_annul_true or
113         eligible_for_annul_false as needed.
114
115 2015-10-22  Nick Clifton  <nickc@redhat.com>
116
117         * config/msp430/msp430.opt: Add -msilicon-errata and
118         -msilicon-errata-warn.
119         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
120         assembler.
121         * doc/invoke.texi: Document new options.
122
123 2015-10-22  Richard Biener  <rguenther@suse.de>
124
125         PR tree-optimization/58497
126         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
127         (expand_vector_operations_1): Use it.  Lower operations on
128         all uniform vectors to scalar operations if the HW supports it.
129
130 2015-10-22  Richard Biener  <rguenther@suse.de>
131
132         PR tree-optimization/19049
133         PR tree-optimization/65962
134         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
135         to strided accesses if single-element interleaving doesn't work.
136
137 2015-10-22  Richard Biener  <rguenther@suse.de>
138
139         PR middle-end/68046
140         PR middle-end/61893
141         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
142         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
143         (expand_unop): Likewise.
144
145 2015-10-22  Richard Biener  <rguenther@suse.de>
146
147         * fold-const.c (fold_addr_of_array_ref_difference): Properly
148         convert operands before folding a MINUS_EXPR.
149         (fold_binary_loc): Move simplification of MINUS_EXPR on
150         converted POINTER_PLUS_EXPRs ...
151         * match.pd: ... here.
152
153 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
154
155         * builtins.c (fold_builtin_tan): Delete.
156         (fold_builtin_1): Handle constant tan arguments here.
157         * match.pd: Simplify (tan (atan x)) to x.
158
159 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
160
161         * builtins.c (fold_builtin_cproj): Delete.
162         (fold_builtin_1): Handle constant arguments here.
163         (build_complex_cproj): Move and rename to...
164         * tree.c: (build_complex_inf): ...this.
165         * tree.h (build_complex_inf): Declare.
166         * match.pd: Fold cproj(x)->x if x has no infinity.
167         Use build_complex_inf for existing cproj rules.
168
169 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
170
171         PR target/68015
172         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
173         already have a comparison result.
174
175 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
176
177         PR target/63304
178         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
179         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
180         (aarch64_classify_address): Likewise.
181         (aarch64_secondary_reload): Likewise.
182         (aarch64_override_options_after_change_1): Adjust.
183         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
184         Use aarch64_nopcrelative_literal_loads.
185         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
186         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
187         Declare.
188
189 2015-10-21  Martin Sebor  <msebor@redhat.com>
190
191         PR driver/68043
192         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
193         (print_filtered_help): Reference aliased option's name and encourage
194         readers to use it in preference to the alias if the former is not
195         documented.  Mention when using an option is diagnosed.
196         * gcc.c (display_help): End each sentence with a period.
197
198         * common.opt: End each sentence that describes an option with
199         a period.
200         * config/aarch64/aarch64.opt: Same.
201         * config/alpha/alpha.opt: Same.
202         * config/arc/arc.opt: Same.
203         * config/arm/arm.opt: Same.
204         * config/avr/avr.opt: Same.
205         * config/bfin/bfin.opt: Same.
206         * config/c6x/c6x.opt: Same.
207         * config/cr16/cr16.opt: Same.
208         * config/cris/cris.opt: Same.
209         * config/cris/linux.opt: Same.
210         * config/darwin.opt: Same.
211         * config/epiphany/epiphany.opt: Same.
212         * config/fr30/fr30.opt: Same.
213         * config/frv/frv.opt: Same.
214         * config/ft32/ft32.opt: Same.
215         * config/g.opt: Same.
216         * config/h8300/h8300.opt: Same.
217         * config/i386/cygming.opt: Same.
218         * config/i386/djgpp.opt: Same.
219         * config/i386/i386.opt: Same.
220         * config/i386/interix.opt: Same.
221         * config/i386/mingw-w64.opt: Same.
222         * config/i386/mingw.opt: Same.
223         * config/ia64/ia64.opt: Same.
224         * config/ia64/ilp32.opt: Same.
225         * config/iq2000/iq2000.opt: Same.
226         * config/linux.opt: Same.
227         * config/lm32/lm32.opt: Same.
228         * config/lynx.opt: Same.
229         * config/m32c/m32c.opt: Same.
230         * config/m32r/m32r.opt: Same.
231         * config/m68k/ieee.opt: Same.
232         * config/m68k/m68k.opt: Same.
233         * config/mcore/mcore.opt: Same.
234         * config/mep/mep.opt: Same.
235         * config/microblaze/microblaze.opt: Same.
236         * config/mips/mips.opt: Same.
237         * config/mmix/mmix.opt: Same.
238         * config/mn10300/mn10300.opt: Same.
239         * config/moxie/moxie.opt: Same.
240         * config/msp430/msp430.opt: Same.
241         * config/nios2/elf.opt: Same.
242         * config/nios2/nios2.opt: Same.
243         * config/nvptx/nvptx.opt: Same.
244         * config/pa/pa-hpux.opt: Same.
245         * config/pa/pa-hpux1010.opt: Same.
246         * config/pa/pa-hpux1111.opt: Same.
247         * config/pa/pa-hpux1131.opt: Same.
248         * config/pa/pa.opt: Same.
249         * config/pa/pa64-hpux.opt: Same.
250         * config/pdp11/pdp11.opt: Same.
251         * config/rl78/rl78.opt: Same.
252         * config/rs6000/476.opt: Same.
253         * config/rs6000/aix64.opt: Same.
254         * config/rs6000/darwin.opt: Same.
255         * config/rs6000/linux64.opt: Same.
256         * config/rs6000/rs6000.opt: Same.
257         * config/rs6000/sysv4.opt: Same.
258         * config/s390/s390.opt: Same.
259         * config/s390/tpf.opt: Same.
260         * config/sh/sh.opt: Same.
261         * config/sol2.opt: Same.
262         * config/sparc/long-double-switch.opt: Same.
263         * config/sparc/sparc.opt: Same.
264         * config/spu/spu.opt: Same.
265         * config/stormy16/stormy16.opt: Same.
266         * config/tilegx/tilegx.opt: Same.
267         * config/tilepro/tilepro.opt: Same.
268         * config/v850/v850.opt: Same.
269         * config/vax/vax.opt: Same.
270         * config/visium/visium.opt: Same.
271         * config/vms/vms.opt: Same.
272         * config/vxworks.opt: Same.
273         * config/xtensa/xtensa.opt: Same.
274
275 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
276             Sebastian Pop  <s.pop@samsung.com>
277
278         * graphite-scop-detection.c (parameter_index_in_region): Update call to
279         invariant_in_sese_p_rec.
280         * graphite-sese-to-poly.c (extract_affine): Same.
281         * sese.c (invariant_in_sese_p_rec): Pass in an extra
282         parameter has_vdefs.
283         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
284         variable depends on virtual definitions in the current region.
285         * sese.h (invariant_in_sese_p_rec): Update declaration.
286
287 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
288             Sebastian Pop  <s.pop@samsung.com>
289
290         * graphite-scop-detection.c (build_scops): Do not handle scops
291         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
292         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
293
294 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
295
296         * config.in: Regenerate.
297         * configure: Regenerate.
298         * configure.ac (CHECKING_P): Define.
299         * system.h: Use CHECKING_P.
300
301 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
302
303         PR ipa/67056
304         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
305         is negative we don't know the type.
306         (check_stmt_for_type_change): Skip constructors of non-polymorphic
307         types as those won't help devirutalization.
308
309 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
310
311         * fold-const.c (operand_equal_p): Add code matching empty constructors.
312
313 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
314
315         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
316         comments.
317         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
318         Add comments on sign of the result.
319         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
320         Recurse on operand #1 instead of operand #0.
321         <CEIL_MOD_EXPR>: Do not recurse.
322         <ROUND_MOD_EXPR>: Likewise.
323
324 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
325
326         * cfgrtl.c (pass_free_cfg::execute): Adjust.
327         * final.c (dbr_sequence_length): Always define.
328         (shorten_branches): Adjust.
329         * genattr-common.c (main): Always define DELAY_SLOTS.
330         * genattr.c (main): Unconditionally declare functions and define
331         macros related to delay slots.
332         * genattrtab.c (write_eligible_delay): Adjust.
333         (main): Always write out delay slot functions.
334         * opts.c (default_options_table): Adjust.
335         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
336         (redirect_with_delay_list_safe_p): Likewise.
337         (fill_simple_delay_slots): Likewise.
338         (fill_slots_from_thread): Likewise.
339         (make_return_insns): Likewise.
340         (dbr_schedule): Likewise.
341         (rest_of_handle_delay_slots): Likewise.
342         (pass_delay_slots::gate): Likewise.
343         * toplev.c (process_options): Likewise.
344
345 2015-10-21  Richard Henderson  <rth@redhat.com>
346
347         * targhooks.c (default_addr_space_pointer_mode): Remove check
348         for generic address space.
349         (default_addr_space_address_mode): Likewise.
350         (default_addr_space_valid_pointer_mode): Likewise.
351         (default_addr_space_legitimate_address_p): Likewise.
352         (default_addr_space_legitimize_address): Likewise.
353         * target.def (addr_space.pointer_mode): Update documentation
354         of default behavior.
355         (addr_space.address_mode): Likewise.
356         * tm.texi: Update.
357
358         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
359         address spaces.
360
361 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
362
363         * builtins.c (fold_builtin_cabs): Delete.
364         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
365         * match.pd: Add rules previously handled by fold_builtin_cabs.
366
367 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
368
369         * fold-const.h (fold_strip_sign_ops): Delete.
370         * fold-const.c (fold_strip_sign_ops): Likewise.
371         (fold_unary_loc, fold_binary_loc): Remove calls to it.
372         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
373         (fold_builtin_ccos): Delete.
374         (fold_builtin_pow): Don't call fold_strip_sign_ops.
375         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
376         Remove fndecl argument.
377         (fold_builtin_1): Update calls accordingly.  Handle constant
378         cos, cosh, ccos and ccosh here.
379
380 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
381
382         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
383         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
384         * common.opt (fssa-backprop): New option.
385         * fold-const.h (negate_mathfn_p): Declare.
386         * fold-const.c (negate_mathfn_p): Make public.
387         * timevar.def (TV_TREE_BACKPROP): New.
388         * tree-pass.h (make_pass_backprop): Declare.
389         * passes.def (pass_backprop): Add.
390         * gimple-ssa-backprop.c: New file.
391
392 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
393             Sebastian Pop  <s.pop@samsung.com>
394
395         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
396         Do not call create_empty_if_region_on_edge when cond_expr is true.
397         (translate_isl_ast_node_for): Check whether a guard has been generated.
398
399 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
400
401         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
402         (operator=): Removed.
403         (dr_info): Make alias_set number the last argument with default
404         value of invalid_alias_set.
405         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
406         of dr_info.
407         (rewrite_reductions_out_of_ssa): Iterate only through the
408         basic blocks which are inside region.
409         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
410         * sese.h (struct sese_l): Removed assignment operator.
411         (split_region_for_bb): Removed dead code.
412
413 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
414
415         * graphite-poly.h (struct dr_info): Removed conversion constructor.
416         (struct scop): Renamed scop::region to scop::scop_info
417         (scop_set_region): Same.
418         (SCOP_REGION): Removed
419         (SCOP_CONTEXT): Removed.
420         (POLY_SCOP_P): Removed.
421         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
422         Rename scop->region to scop->scop_info.
423         (add_parameters_to_ivs_params): Same.
424         (graphite_regenerate_ast_isl): Same.
425         * graphite-poly.c (new_scop): Same.
426         (free_scop): Same.
427         (print_scop_params): Same.
428         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
429         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
430         (dot_all_scops_1): Rename scop->region to scop->scop_info.
431         (scop_detection::nb_pbbs_in_loops): Same.
432         (find_scop_parameters): Same.
433         (try_generate_gimple_bb): Same.
434         (gather_bbs::before_dom_children): Same.
435         (gather_bbs::after_dom_children): Same.
436         (build_scops): Same.
437         * graphite-sese-to-poly.c (build_scop_scattering): Same.
438         (extract_affine_chrec): Same.
439         (extract_affine): Same.
440         (set_scop_parameter_dim): Same.
441         (build_loop_iteration_domains): Same.
442         (create_pw_aff_from_tree): Same.
443         (add_param_constraints): Same.
444         (build_scop_iteration_domain): Same.
445         (build_scop_drs): Same.
446         (analyze_drs_in_stmts): Same.
447         (insert_out_of_ssa_copy_on_edge): Same.
448         (rewrite_close_phi_out_of_ssa):Same.
449         (rewrite_reductions_out_of_ssa):Same.
450         (handle_scalar_deps_crossing_scop_limits):Same.
451         (rewrite_cross_bb_scalar_deps):Same.
452         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
453         (build_poly_scop):Same.
454         (build_alias_set): Use pointer to dr_info.
455         * graphite.c (print_graphite_scop_statistics):
456         (graphite_transform_loops):
457         * sese.h (struct sese_l): Remove conversion constructor.
458
459 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
460
461         PR middle-end/67966
462         * tree.c (verify_type): Verify that TYPE_MODE match
463         between TYPE_CANONICAL and type.
464         * expr.c (store_expr_with_bounds): Revert my previous change.
465         * expmed.c (store_bit_field_1): Revert prevoius change.
466         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
467         to match for all types.
468
469 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
470
471         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
472         nesting.
473
474 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
475
476         * doc/tm.texi: Regenerated.
477         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
478         * stor-layout.c (layout_type): Use mode to get vector mask size.
479         * target.def (get_mask_mode): New.
480         * targhooks.c (default_get_mask_mode): New.
481         * targhooks.h (default_get_mask_mode): New.
482         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
483         for boolean vector.
484         * tree.c (MAX_BOOL_CACHED_PREC): New.
485         (nonstandard_boolean_type_cache): New.
486         (build_nonstandard_boolean_type): New.
487         (make_vector_type): Vector mask has no canonical type.
488         (build_truth_vector_type): New.
489         (build_same_sized_truth_vector_type): New.
490         (truth_type_for): Support vector masks.
491         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
492         (build_truth_vector_type): New.
493         (build_same_sized_truth_vector_type): New.
494         (build_nonstandard_boolean_type): New.
495         * tree-cfg.c (verify_gimple_comparison) Require boolean
496         vector type for vector comparison.
497         (verify_gimple_assign_ternary): Likewise.
498         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
499         condition operand.
500         * tree-vect-stmts.c (vectorizable_condition): Use boolean
501         vector type for vector comparison.
502         * tree-vect-generic.c (elem_op_func): Add new operand to hold
503         vector type.
504         (do_unop): Adjust to modified function type.
505         (do_binop): Likewise.
506         (do_plus_minus): Likewise.
507         (do_negate); Likewise.
508         (expand_vector_piecewise): Likewise.
509         (do_cond): Likewise.
510         (do_compare): Use comparison instead of condition.
511         (expand_vector_divmod): Use boolean vector type for comparison.
512         (expand_vector_operations_1): Skip scalar mask operations.
513
514 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
515
516         * omp-low.c (simd_clone_create): Set in_other_partition
517         for created clones.
518
519 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
520
521         * doc/extend.exp (Local Register Variables): Rewrite.
522
523 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
524
525         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
526         and x*x in cases where the operands are sign ops.  Extend these
527         rules to handle copysign as a sign op (including for cos, cosh
528         and pow, which already treated negate and abs as sign ops).
529
530 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
531
532         PR target/68018
533         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
534         for 64-bit MS_ABI targets also when default incoming stack boundary
535         is overriden.
536
537 2015-10-21  Richard Biener  <rguenther@suse.de>
538
539         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
540         cond stmts, enhanced and split out from ...
541         (vn_phi_eq): ... here.
542
543 2015-10-21  Richard Biener  <rguenther@suse.de>
544
545         PR middle-end/68031
546         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
547         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
548         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
549         make sure they are not registered for update.
550
551 2015-10-21  Richard Biener  <rguenther@suse.de>
552
553         PR tree-optimization/68026
554         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
555         unsigned VARYING values.
556
557 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
558
559         * asan.c (asan_emit_stack_protection): Don't pass local stack to
560         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
561         NULL and use local stack than.
562         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
563         in addition to __asan_init.
564         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
565         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
566         * asan.h (asan_intercepted_p): Handle new string builtins.
567         * ubsan.c (ubsan_use_new_style_p): New function.
568         (ubsan_instrument_float_cast): If location is unknown, assign
569         input_location to loc. Propagate loc to ubsan_create_data if
570         ubsan_use_new_style_p returned true.
571
572 2015-10-21  Jeff Law  <law@redhat.com>
573
574         * Makefile.in (OBJS): Remove sched-vis.c
575         * sched-vis.c: Removed.  Code moved into...
576         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
577         * rtl.h: Remove prototypes for functions now living in print-rtl.c
578         * print-rtl.h Add prototypes for new functions in print-rtl.c.
579         * auto-inc-dec.c: Include print-rtl.h
580         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
581         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
582
583         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
584         ATTRIBUTE_UNUSED.
585
586 2015-10-21  Richard Biener  <rguenther@suse.de>
587             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
588
589         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
590         to match.pd.
591         Move (a * (1 << b)) is (a << b) to match.pd.
592         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
593         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
594         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
595
596         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
597         New simplifier.
598         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
599         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
600         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
601         : New simplifier.
602         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
603         New simplifier.
604         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
605
606 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
607             Szabolcs Nagy  <szabolcs.nagy@arm.com>
608             Alan Modra  <amodra@gmail.com>
609
610         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
611         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
612         (LINK_SPEC): Add %(link_secure_plt).
613         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
614         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
615
616 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
617             Szabolcs Nagy  <szabolcs.nagy@arm.com>
618
619         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
620         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
621
622 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
623
624         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
625         New function.
626         (fusion_load_store): Use it.
627         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
628         ldp and stp in VD modes.
629         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
630         (store_pair<mode>, VD): Likewise.
631
632 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
633
634         PR rtl-optimization/67609
635         * lra-splill.c (lra_final_code_change): Don't remove all
636         sub-registers.
637
638 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
639
640         * simplify-rtx.c (simplify_binary_operation): If either operand was
641         a constant pool reference use them if all other simplifications failed.
642
643 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
644
645         * config/aarch64/aarch64.md
646         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
647         * config/aarch64/aarch64-simd.md
648         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
649         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
650         (aarch64_fpconst_pow_of_2): New function.
651         (aarch64_vec_fpconst_pow_of_2): Likewise.
652         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
653         prototype.
654         (aarch64_vec_fpconst_pow_of_2): Likewise.
655         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
656         (aarch64_fp_vec_pow2): Likewise.
657
658 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
659
660         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
661         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
662         * config/alpha/alpha.c (alpha_function_arg_advance): Update
663         ALPHA_ARG_SIZE usage.
664         (alpha_arg_partial_bytes): Ditto.
665
666 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
667
668         PR target/66810
669         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
670         error_mark_node decls.
671
672 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
673
674         PR target/67963
675         PR target/67985
676         * common/config/i386/i386-common.c (ix86_handle_option): Remove
677         OPT_miamcu handling.
678         * config/i386/i386.c (PTA_NO_80387): New macro.
679         (processor_alias_table): Add PTA_NO_80387 to lakemont.
680         (ix86_option_override_internal): Update MASK_80387 from
681         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
682         SSE math only if 80387 is supported.  Don't change
683         MASK_FLOAT_RETURNS.
684         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
685         80387 is supported.
686         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
687         if TARGET_80387 is true and TARGET_IAMCU is false.
688         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
689         is true and TARGET_IAMCU_P is false.
690
691 2015-10-20  Richard Biener  <rguenther@suse.de>
692
693         PR tree-optimization/68017
694         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
695
696 2015-10-20  Martin Liska  <mliska@suse.cz>
697
698         * cgraphclones.c (cgraph_node::create_virtual_clone):
699         Verify cgraph_node.local.versionable instead of calling
700         tree_versionable_function_p.
701         * ipa-cp.c (determine_versionability): Save the information
702         to ipa_node_params summary.
703         (ipcp_versionable_function_p): Use it.
704         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
705         (ipcp_generate_summary): Do not compute cgraph_node
706         versionability.
707         * ipa-inline-analysis.c (inline_generate_summary): Compute
708         versionability for all cgraph nodes.
709         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
710         ipa_node_params::versionability.
711         * ipa-prop.h (struct ipa_node_params): Declare it.
712
713 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
714
715         PR other/67868
716         * varasm.c (assemble_variable): Move special vtv handling to..
717         (handle_vtv_comdat_sections): .. here. New function.
718         (output_object_block): Handle vtv sections.
719
720 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
721
722         PR target/66912
723         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
724
725 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
726
727         * doc/extend.texi: Update documentation WRT inline functions.
728
729 2015-10-20  Alan Modra  <amodra@gmail.com>
730
731         PR go/66870
732         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
733         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
734         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
735
736 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
737
738         PR rtl-optimization/66790
739         * df.h (DF_MIR): New macro.
740         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
741         (DF_MIR_INFO_BB): New macro.
742         (DF_MIR_IN, DF_MIR_OUT): New macros.
743         (struct df_mir_bb_info): New.
744         (df_mir): New macro.
745         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
746         declarations.
747         (df_mir_get_bb_info): New.
748         * df-problems.c (struct df_mir_problem_data): New.
749         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
750         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
751         df_mir_confluence_0, df_mir_confluence_n,
752         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
753         df_mir_bottom_dump, df_mir_verify_solution_start,
754         df_mir_verify_solution_end): New.
755         (problem_MIR): New.
756         (df_mir_add_problem, df_mir_simulate_one_insn): New.
757         * timevar.def (TV_DF_MIR): New.
758         * ree.c: Include bitmap.h
759         (add_removable_extension): Add an INIT_REGS parameter.  Use it
760         to skip zero-extensions that may get an uninitialized register.
761         (find_removable_extensions): Compute must-initialized registers
762         using the MIR dataflow problem. Update the call to
763         add_removable_extension.
764         (find_and_remove_re): Call df_mir_add_problem.
765
766 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
767
768         * common/config/mn10300/mn10300-common.c
769         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
770         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
771
772 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
773
774         * doc/extend.texi (Explicit Register Variables): Simplify and
775         avoid unnecessary and confusion abbreviations.  Update cross
776         references.
777         doc/implement-c.tex: Update cross reference.
778
779 2015-10-19  Jeff Law  <law@redhat.com>
780
781         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
782         that create irreducible loops unless the path elimiantes a multiway
783         branch.
784
785 2015-10-19  Richard Biener  <rguenther@suse.de>
786
787         PR tree-optimization/67975
788         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
789         * tree-cfg.c (extract_true_false_controlled_edges): Split out
790         core worker from ...
791         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
792         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
793         instead of block number for PHIs with two or one args.
794         (vn_phi_eq): Compare edge predicates of PHIs that are in different
795         blocks.
796
797 2015-10-19  Richard Biener  <rguenther@suse.de>
798
799         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
800         (gimple_stmt_nonnegative_warnv_p): Use it.
801         * match.pd (CPROJ): New operator list.
802         (cproj (complex ...)): Move simplifications from ...
803         * builtins.c (fold_builtin_cproj): ... here.
804
805 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
806
807         * config/i386/i386.c (ix86_expand_vector_move): Use
808         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
809         alignment.
810
811 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
812
813         * doc/invoke.texi: Replace @optindex with @opindex.
814
815 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
816
817         PR target/67995
818         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
819         arch= is set,  clear all bits in x_ix86_isa_flags, except for
820         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
821
822 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
823
824         PR middle-end/68002
825         * common.opt (fkeep-static-functions): New option.
826         * doc/invoke.texi: Document it.
827         * cgraphunit.c (cgraph_node::finalize_function): Use it.
828
829 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
830
831         * sched-int.h (struct autopref_multipass_data_): Remove offset
832         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
833         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
834         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
835         (autopref_rank_data): New function.
836         (autopref_rank_for_schedule): Use it.
837         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
838
839 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
840
841         PR other/65800
842         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
843
844 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
845
846         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
847         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
848         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
849         (STANDARD_STARTFILE_PREFIX_1): New.
850         (STANDARD_STARTFILE_PREFIX_2): New.
851
852 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
853
854         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
855         (darwin_driver_init): Note a version-min when provided on the c/l.
856         * config/darwin.h (%darwin_minversion): Remove.
857         * config/i386/darwin.h: Likewise.
858         * config/rs6000/darwin.h: Likewise.
859         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
860         rather than an arbitrary constant.
861
862 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
863
864         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
865         PPC, detect conflicts between -arch and multilib settings.  Detect
866         and warn about conflicts between multiple -arch definitions.
867
868 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
869
870         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
871
872 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
873
874         * lra-constraints.c (add_next_usage_insn): Change argument type
875         from rtx to rtx_insn *.
876
877 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
878
879         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
880         for Lakemont.
881
882 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
883
884         * config/tilepro/gen-mul-tables.cc: Adjust include files.
885         * config/tilegx/mul-tables.c: Regenerate.
886         * config/tilepro/mul-tables.c: Regenerate.
887
888         * config/tilegx/tilegx-c.c: Adjust include files.
889         * config/tilegx/tilegx.c: Likewise.
890         * config/tilepro/tilepro-c.c: Likewise.
891         * config/tilepro/tilepro.c: Likewise.
892         * config/aarch64/aarch64-builtins.c: Likewise.
893         * config/aarch64/aarch64.c: Likewise.
894         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
895         * config/alpha/alpha.c: Likewise.
896         * config/arc/arc.c: Likewise.
897         * config/arm/aarch-common.c: Likewise.
898         * config/arm/arm-builtins.c: Likewise.
899         * config/arm/arm-c.c: Likewise.
900         * config/arm/arm.c: Likewise.
901         * config/avr/avr-c.c: Likewise.
902         * config/avr/avr-devices.c: Likewise.
903         * config/avr/avr-log.c: Likewise.
904         * config/avr/avr.c: Likewise.
905         * config/bfin/bfin.c: Likewise.
906         * config/c6x/c6x.c: Likewise.
907         * config/cr16/cr16.c: Likewise.
908         * config/cris/cris.c: Likewise.
909         * config/darwin-c.c: Likewise.
910         * config/darwin-driver.c: Likewise.
911         * config/darwin.c: Likewise.
912         * config/default-c.c: Likewise.
913         * config/epiphany/epiphany.c: Likewise.
914         * config/epiphany/mode-switch-use.c: Likewise.
915         * config/epiphany/resolve-sw-modes.c: Likewise.
916         * config/fr30/fr30.c: Likewise.
917         * config/frv/frv.c: Likewise.
918         * config/ft32/ft32.c: Likewise.
919         * config/glibc-c.c: Likewise.
920         * config/h8300/h8300.c: Likewise.
921         * config/i386/host-cygwin.c: Likewise.
922         * config/i386/host-mingw32.c: Likewise.
923         * config/i386/i386-c.c: Likewise.
924         * config/i386/i386.c: Likewise.
925         * config/i386/msformat-c.c: Likewise.
926         * config/i386/winnt-cxx.c: Likewise.
927         * config/i386/winnt-stubs.c: Likewise.
928         * config/i386/winnt.c: Likewise.
929         * config/ia64/ia64-c.c: Likewise.
930         * config/ia64/ia64.c: Likewise.
931         * config/iq2000/iq2000.c: Likewise.
932         * config/lm32/lm32.c: Likewise.
933         * config/m32c/m32c-pragma.c: Likewise.
934         * config/m32c/m32c.c: Likewise.
935         * config/m32r/m32r.c: Likewise.
936         * config/mcore/mcore.c: Likewise.
937         * config/mep/mep-pragma.c: Likewise.
938         * config/mep/mep.c: Likewise.
939         * config/microblaze/microblaze-c.c: Likewise.
940         * config/microblaze/microblaze.c: Likewise.
941         * config/mips/mips-tables.opt
942         * config/mips/mips.c: Likewise.
943         * config/mmix/mmix.c: Likewise.
944         * config/mn10300/mn10300.c: Likewise.
945         * config/moxie/moxie.c: Likewise.
946         * config/msp430/msp430-c.c: Likewise.
947         * config/msp430/msp430.c: Likewise.
948         * config/nds32/nds32-cost.c: Likewise.
949         * config/nds32/nds32-fp-as-gp.c: Likewise.
950         * config/nds32/nds32-intrinsic.c: Likewise.
951         * config/nds32/nds32-isr.c: Likewise.
952         * config/nds32/nds32-md-auxiliary.c: Likewise.
953         * config/nds32/nds32-memory-manipulation.c: Likewise.
954         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
955         * config/nds32/nds32-predicates.c: Likewise.
956         * config/nds32/nds32.c: Likewise.
957         * config/nios2/nios2.c: Likewise.
958         * config/nvptx/mkoffload.c: Likewise.
959         * config/nvptx/nvptx.c: Likewise.
960         * config/pa/pa.c: Likewise.
961         * config/pdp11/pdp11.c: Likewise.
962         * config/rl78/rl78-c.c: Likewise.
963         * config/rl78/rl78.c: Likewise.
964         * config/rs6000/host-darwin.c: Likewise.
965         * config/rs6000/rs6000-c.c: Likewise.
966         * config/rs6000/rs6000-linux.c: Likewise.
967         * config/rs6000/rs6000.c: Likewise.
968         * config/rx/rx.c: Likewise.
969         * config/s390/s390-c.c: Likewise.
970         * config/s390/s390.c: Likewise.
971         * config/sh/sh-c.c: Likewise.
972         * config/sh/sh-mem.cc: Likewise.
973         * config/sh/sh.c: Likewise.
974         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
975         * config/sh/sh_treg_combine.cc: Likewise.
976         * config/sol2-c.c: Likewise.
977         * config/sol2-cxx.c: Likewise.
978         * config/sol2-stubs.c: Likewise.
979         * config/sol2.c: Likewise.
980         * config/sparc/sparc-c.c: Likewise.
981         * config/sparc/sparc.c: Likewise.
982         * config/spu/spu-c.c: Likewise.
983         * config/spu/spu.c: Likewise.
984         * config/stormy16/stormy16.c: Likewise.
985         * config/v850/v850-c.c: Likewise.
986         * config/v850/v850.c: Likewise.
987         * config/vax/vax.c: Likewise.
988         * config/visium/visium.c: Likewise.
989         * config/vms/vms-c.c: Likewise.
990         * config/vms/vms.c: Likewise.
991         * config/vxworks.c: Likewise.
992         * config/winnt-c.c: Likewise.
993         * config/xtensa/xtensa.c: Likewise.
994
995 2015-10-16  Christian Bruel  <christian.bruel@st.com>
996
997         PR target/67745
998         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
999         (FUNCTION_BOUNDARY_P): New macro:
1000         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1001         New hook.
1002         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1003         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1004         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1005         * gcc/function.c (allocate_struct_function): Call
1006         relayout_function hook.
1007         * gcc/passes.c (rest_of_decl_compilation): Likewise.
1008
1009 2015-10-16  Christian Bruel  <christian.bruel@st.com>
1010
1011         PR target/67745
1012         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1013         * config/arm/arm.c (arm_option_override_internal): Call
1014         arm_override_options_after_change_1.
1015         (arm_override_options_after_change): New function.
1016         (arm_override_options_after_change_1): Likewise.
1017         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1018
1019 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1020
1021         Revert:
1022         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1023         empty constructors.
1024
1025 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1026
1027         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1028         argument is an ADDR_EXPR.
1029
1030 2015-10-16  Richard Biener  <rguenther@suse.de>
1031
1032         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1033         and get rid of force_gimple_operand_gsi.
1034         (gimple_fold_builtin_memory_chk): Likewise.
1035         (gimple_fold_builtin_stxcpy_chk): Likewise.
1036         (rewrite_to_defined_overflow): Likewise.
1037         (gimple_convert_to_ptrofftype): New function.
1038         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1039
1040 2015-10-16  Richard Biener  <rguenther@suse.de>
1041
1042         * tree-nested.h (build_addr): Adjust prototype.
1043         * tree-nested.c (build_addr): Remove context argument and use
1044         mark_addressable.
1045         (get_static_chain): Adjust calls to build_addr.
1046         (convert_nl_goto_reference): Likewise.
1047         (convert_tramp_reference_op): Likewise.
1048         (finalize_nesting_tree_1): Likewise.
1049         * value-prof.c (gimple_ic): Likewise.
1050         * gimple-low.c (lower_builtin_setjmp): Likewise.
1051         * tree-parloops.c (take_address_of): Likewise.
1052         (create_call_for_reduction_1): Likewise.
1053         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1054         (gimple_gen_ic_func_profiler): Likewise.
1055
1056 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1057
1058         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1059         empty constructors.
1060
1061 2015-10-16  Michael Collison  <michael.collison@linaro.org>
1062             Andrew Pinski <andrew.pinski@caviumnetworks.com>
1063
1064         * match.pd ((x < y) && (x < z) -> x < min (y,z),
1065         (x > y) and (x > z) -> x > max (y,z))
1066
1067 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1068             Szabolcs Nagy  <szabolcs.nagy@arm.com>
1069
1070         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1071         (DYNAMIC_LINKER): Renamed to ...
1072         (GLIBC_DYNAMIC_LINKER): This.
1073         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1074
1075 2015-10-15  Marek Polacek  <polacek@redhat.com>
1076
1077         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1078         gimple_call_builtin instead of is_gimple_call.
1079
1080 2015-10-15  Richard Biener  <rguenther@suse.de>
1081
1082         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1083
1084 2015-10-15  Richard Biener  <rguenther@suse.de>
1085
1086         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1087         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1088         * tree-vect-loop.c (get_initial_def_for_induction): Drop
1089         use of force_gimple_operand in favor of gimple_build.
1090         Use vect_get_new_ssa_name.
1091         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1092         (vectorizable_mask_load_store): Likewise.
1093         (vectorizable_call): Likewise.
1094         (vectorizable_store): Likewise.
1095         (vectorizable_load): Likewise.
1096         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1097
1098 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
1099
1100         PR tree-optimization/67945
1101         * tree-pass.h (PROP_gimple_opt_math): New property flag.
1102         * generic-match-head.c (canonicalize_math_p): New function.
1103         * gimple-match-head.c: Include tree-pass.h.
1104         (canonicalize_math_p): New function.
1105         * match.pd: Group math built-in rules into simplifications
1106         and canonicalizations.  Guard the latter with canonicalize_math_p.
1107         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1108         PROP_gimple_opt_math property.
1109
1110 2015-10-15  Marek Polacek  <polacek@redhat.com>
1111
1112         PR tree-optimization/67953
1113         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1114
1115 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
1116
1117         * config.gcc: Recognize "." in architecture base name for AArch64.
1118
1119 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1120
1121         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1122         ROUND_UP macro.
1123         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1124         ROUND_DOWN to calculate off.
1125         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1126         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1127         rounded_size.
1128
1129 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1130
1131         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1132
1133 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1134             Torvald Riegel  <triegel@redhat.com>
1135
1136         PR target/67281
1137         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1138         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1139         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1140         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1141         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1142         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1143         trechkpt, treclaim, tsr, ttest): New define_expands.
1144         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1145         __TM_FENCE__ for htm.
1146         * doc/extend.texi: Update documentation for htm builtins.
1147
1148 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1149
1150         PR target/67967
1151         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1152         REG_CFA_EXPRESSION to aligned SSE stores.
1153
1154 2015-10-14  Jeff Law  <law@redhat.com>
1155
1156         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1157         num_threaded_edges for successful FSM threads too.
1158
1159 2015-10-14  Richard Biener  <rguenther@suse.de>
1160
1161         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1162         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1163         (vect_get_vec_def_for_operand): Remove unused parameter.
1164         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1165         (vect_create_epilog_for_reduction): Likewise.
1166         (vectorizable_reduction): Likewise.
1167         (vectorizable_live_operation): Likewise.
1168         * tree-vect-patterns.c (type_conversion_p): Likewise.
1169         (vect_recog_vector_vector_shift_pattern): Likewise.
1170         (check_bool_pattern): Likewise.
1171         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1172         (vect_analyze_slp_cost_1): Likewise.
1173         * tree-vect-stmts.c (process_use): Likewise.
1174         (vect_get_vec_def_for_operand): Do not handle reductions.
1175         (vect_get_vec_defs): Adjust.
1176         (vectorizable_mask_load_store): Likewise.
1177         (vectorizable_call): Likewise.
1178         (vectorizable_simd_clone_call): Likewise.
1179         (vect_get_loop_based_defs): Likewise.
1180         (vectorizable_conversion): Likewise.
1181         (vectorizable_assignment): Likewise.
1182         (vectorizable_shift): Likewise.
1183         (vectorizable_operation): Likewise.
1184         (vectorizable_store): Likewise.
1185         (vectorizable_load): Likewise.
1186         (vect_is_simple_cond): Likewise.
1187         (vectorizable_condition): Likewise.
1188         (vect_is_simple_use): Remove unused parameters.
1189         (vect_is_simple_use_1): Adjust and rename.
1190
1191 2015-10-14  Richard Biener  <rguenther@suse.de>
1192
1193         PR tree-optimization/67915
1194         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1195         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1196         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1197         stmt folding in favor of GIMPLE one.
1198
1199 2015-10-14  Marek Polacek  <polacek@redhat.com>
1200
1201         PR tree-optimization/67815
1202         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1203         (reassociate_bb): Call it.
1204
1205 2015-10-14  Richard Biener  <rguenther@suse.de>
1206
1207         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1208         Reset info at start.
1209         (vect_analyze_group_access_1): Add debug print.
1210         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1211         (vect_compute_single_scalar_iteration_cost): ... to this.
1212         (vect_analyze_loop_2): Adjust.
1213         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1214         * tree-vectorizer.h: ... here.
1215         (add_stmt_info_to_vec): Remove.
1216         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1217
1218 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1219
1220         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1221         called on behalf of "#pragma GCC pop_options".
1222
1223 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1224
1225         * cfganal.c (verify_no_unreachable_blocks): New function.
1226         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1227         verify_no_unreachable_blocks.
1228         cfganal.h (verify_no_unreachable_blocks): Declare.
1229
1230 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1231
1232         * common.opt: Add flag_checking.
1233         * system.h (CHECKING_P): Define.
1234
1235 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1236             Aldy Hernandez  <aldyh@redhat.com>
1237             Ilya Verbin  <ilya.verbin@intel.com>
1238
1239         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1240         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1241         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1242         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1243         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1244         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1245         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1246         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1247         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1248         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1249         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1250         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1251         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1252         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1253         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1254         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1255         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1256         (struct cgraph_simd_clone_arg): Adjust comment.
1257         * coretypes.h (struct gomp_ordered): New forward decl.
1258         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1259         set critical clauses to it.
1260         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1261         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1262         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1263         GIMPLE_OMP_ORDERED.
1264         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1265         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1266         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1267         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1268         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1269         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1270         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1271         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1272         renumber
1273         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1274         (gomp_critical): Add clauses field.
1275         (gomp_ordered): New struct.
1276         (is_a_helper <gomp_ordered *>::test): New inline.
1277         (gimple_build_omp_critical): Add CLAUSES argument.
1278         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1279         instead of gimple *.
1280         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1281         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1282         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1283         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1284         inline functions.
1285         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1286         (dump_gimple_omp_target): Handle enter data and exit data.
1287         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1288         (dump_gimple_omp_critical): Print clauses.
1289         (dump_gimple_omp_ordered): New function.
1290         (dump_gimple_omp_task): Handle taskloop.
1291         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1292         GIMPLE_OMP_ORDERED.
1293         * gimple-walk.c (walk_gimple_op): Walk clauses on
1294         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1295         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1296         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1297         (struct gimplify_omp_ctx): Add loop_iter_var,
1298         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1299         and target_firstprivatize_array_bases fields.
1300         (delete_omp_context): Release loop_iter_var.
1301         (gimplify_bind_expr): Handle ORT_NONE.
1302         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1303         ORT_COMBINED_TARGET.
1304         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1305         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1306         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1307         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1308         ctx->target_map_scalars_firstprivate.
1309         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1310         data sharing clauses.  For data sharing clause with VLA decl
1311         on omp target/target data don't add firstprivate for the pointer.
1312         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1313         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1314         the addition of ORT_COMBINED_TARGET.
1315         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1316         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1317         pointers as zero length array sections and
1318         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1319         data sharing.
1320         (omp_check_private): Handle omp_member_access_dummy_var vars.
1321         (find_decl_expr): New function.
1322         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1323         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1324         Handle OMP_CLAUSE_GANG separately.  Handle
1325         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1326         clauses.  Diagnose linear clause on combined
1327         distribute {, parallel for} simd construct, unless it is the loop
1328         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1329         Handle map clauses with COMPONENT_REF.  Initialize
1330         ctx->target_map_scalars_firstprivate,
1331         ctx->target_firstprivatize_array_bases and
1332         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1333         linear clause even to target region if combined.  Remove
1334         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1335         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1336         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1337         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1338         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1339         For linear clause on worksharing loop combined with parallel add
1340         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1341         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1342         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1343         taskloop if needed.
1344         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1345         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1346         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1347         GOMP_MAP_POINTER.
1348         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1349         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1350         in target body.  Handle removal of struct mapping if struct is not
1351         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1352         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1353         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1354         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1355         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1356         clause appear together.  Handle
1357         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1358         clause if it has map-type-modifier always.  Handle
1359         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1360         clauses.
1361         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1362         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1363         callers.
1364         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1365         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1366         iterators in doacross loops.
1367         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1368         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1369         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1370         for the addition of ORT_COMBINED_TARGET.
1371         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1372         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1373         and OMP_TARGET_EXIT_DATA.
1374         (gimplify_omp_ordered): New function.
1375         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1376         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1377         Gimplify clauses on OMP_CRITICAL.
1378         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1379         expand_GOMP_SIMD_ORDERED_END): New functions.
1380         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1381         GOMP_SIMD_ORDERED_END): New internal functions.
1382         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1383         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1384         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1385         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1386         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1387         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1388         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1389         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1390         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1391         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1392         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1393         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1394         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1395         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1396         adjust type.
1397         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1398         GOMP_target_data_41, adjust type.
1399         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1400         GOMP_target_update_41, adjust type.
1401         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1402         field.
1403         (struct omp_for_data): Add ordered and simd_schedule fields.
1404         (omp_member_access_dummy_var, unshare_and_remap_1,
1405         unshare_and_remap, is_taskloop_ctx): New functions.
1406         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1407         (extract_omp_for_data): Handle taskloops and doacross loops
1408         and simd schedule modifier.
1409         (omp_adjust_chunk_size): New function.
1410         (get_ws_args_for): Use it.
1411         (lookup_sfield): Change first argument to splay_tree_key,
1412         add overload with first argument tree.
1413         (maybe_lookup_field): Likewise.
1414         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1415         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1416         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1417         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1418         taskloops and omp_member_access_dummy_var vars.
1419         (build_sender_ref): Change first argument to splay_tree_key,
1420         add overload with first argument tree.
1421         (install_var_field): For mask & 8 use &DECL_UID as key instead
1422         of the tree itself.
1423         (fixup_child_record_type): Const qualify *.omp_data_i.
1424         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1425         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1426         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1427         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1428         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1429         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1430         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1431         kinds.
1432         (add_taskreg_looptemp_clauses): New function.
1433         (scan_omp_parallel): Use it.
1434         (scan_omp_task): Likewise.
1435         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1436         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1437         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1438         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1439         sandwiched taskloop constructs.  Type check
1440         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1441         region.  Diagnose depend(source) or depend(sink:...) on
1442         target constructs or task/taskloop.
1443         (handle_simd_reference): Use get_name.
1444         (lower_rec_input_clauses): Likewise.  Ignore all
1445         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1446         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1447         before passing it to omp_clause_{default,copy}_ctor.  Handle
1448         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1449         lastprivate_firstprivate flag for linear that needs copyin and
1450         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1451         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1452         on taskloop lookup decl in outer context.  Pass true to
1453         build_outer_var_ref lastprivate argument.  Handle
1454         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1455         outside of outer taskloop for.
1456         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1457         OMP_CLAUSE_DECL.
1458         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1459         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1460         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1461         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1462         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1463         abstract origin.  Handle omp_member_access_dummy_var vars.
1464         (expand_parallel_call): Use expand_omp_build_assign.
1465         (expand_task_call): Handle taskloop construct expansion.  Add
1466         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1467         integers.  Add priority argument to GOMP_task* calls.  Or in
1468         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1469         GOMP_task call.
1470         (expand_omp_build_assign): Add prototype.  Add AFTER
1471         argument, if true emit statements after *GSI_P and continue linking.
1472         (expand_omp_taskreg): Adjust expand_task_call caller.
1473         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1474         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1475         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1476         of counts even for ordered loops.
1477         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1478         (expand_omp_ordered_source, expand_omp_ordered_sink,
1479         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1480         functions.
1481         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1482         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1483         (expand_omp_for_static_nochunk): Handle linear clauses on
1484         worksharing loop.  Adjust expand_omp_for_init_counts
1485         callers.
1486         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1487         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1488         expand_omp_for_init_counts callers.
1489         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1490         functions.
1491         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1492         Handle doacross loops.
1493         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1494         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1495         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1496         (expand_omp): Don't expand ordered depend constructs here, record
1497         ord_stmt instead for later expand_omp_for_generic.
1498         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1499         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1500         clause as stand-alone directive.
1501         (lower_omp_ordered_clauses): New function.
1502         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1503         don't lower anything.
1504         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1505         on taskloop for comparison.
1506         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1507         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1508         expansion for linear adjustments.
1509         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1510         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1511         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1512         to tree * pointing to the stmt's clauses.
1513         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1514         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1515         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1516         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1517         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1518         clauses.  Always use short kind and 8-bit align shift.
1519         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1520         (struct lower_omp_regimplify_operands_data): New type.
1521         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1522         New functions.
1523         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1524         gimple_regimplify_operands.
1525         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1526         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1527         clause as stand-alone directive.
1528         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1529         (simd_clone_mangle): Mangle the various linear kinds
1530         per the new ABI.
1531         (simd_clone_adjust_argument_types): Handle
1532         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1533         (simd_clone_init_simd_arrays): Don't do anything for uval.
1534         (simd_clone_adjust): Handle
1535         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1536         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1537         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1538         * omp-low.h (omp_member_access_dummy_var): New prototype.
1539         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1540         pass after all optimizations.
1541         * tree.c (omp_clause_code_name): Add entries for
1542         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1543         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1544         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1545         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1546         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1547         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1548         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1549         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1550         clauses.
1551         * tree-core.h (enum omp_clause_linear_kind): New.
1552         (struct tree_omp_clause): Change type of map_kind
1553         from unsigned char to unsigned int.  Add subcode.if_modifier
1554         and subcode.linear_kind fields.
1555         (enum omp_clause_code): Add
1556         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1557         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1558         (OMP_CLAUSE_REDUCTION): Document
1559         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1560         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1561         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1562         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1563         operand.
1564         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1565         operand.
1566         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1567         codes.
1568         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1569         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1570         char.
1571         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1572         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1573         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1574         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1575         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1576         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1577         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1578         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1579         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1580         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1581         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1582         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1583         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1584         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1585         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1586         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1587         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1588         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1589         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1590         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1591         (convert_local_omp_clauses): Likewise.
1592         * tree-pretty-print.c (dump_omp_clause): Handle
1593         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1594         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1595         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1596         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1597         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1598         GOMP_MAP_FORCE_DEALLOC.  Handle
1599         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1600         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1601         and clauses on OMP_ORDERED and OMP_CRITICAL.
1602         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1603         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1604         (vectorize_loops): Adjust comments.
1605         (pass_simduid_cleanup::execute): Likewise.
1606         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1607         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1608         * wide-int.h (wi::gcd): New.
1609
1610 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1611
1612         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1613         (ix86_function_arg_advance): Ditto.
1614         (ix86_function_arg): Ditto.
1615         (ix86_gimplify_va_arg): Ditto.
1616         (ix86_class_max_nregs): Ditto.
1617         (inline_memory_move_cost): Ditto.
1618         (ix86_set_reg_reg_cost): Ditto.
1619         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1620
1621 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1622
1623         PR middle-end/67912
1624         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1625
1626 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1627
1628         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1629         ROUND_UP macro and UNITS_PER_WORD * 2.
1630         * config/sparc/sparc.c (sparc_compute_frame_size):
1631         Use ROUND_UP and ROUND_DOWN macros where applicable.
1632         (function_arg_record_value, function_arg_record_value_1)
1633         (function_arg_record_value_1): Ditto.
1634         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1635         alignment to double-word.
1636         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1637         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1638         rounded_size.
1639
1640 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1641
1642         * gcc/rtl.h (print_insn): Fix prototype.
1643
1644 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1645
1646         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1647         -1.  Add assert that returned entry matches phi argument.
1648         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1649         free_stmt_vec_info_vec ...
1650         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1651         with -1.
1652
1653 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1654
1655         PR tree-optimization/67909, 67947
1656         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1657         really skip the inner loop.
1658
1659 2015-10-13  Jeff Law  <law@redhat.com>
1660
1661         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1662         Allow single block jump threading paths.
1663
1664 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1665
1666         PR tree-optimization/67476
1667         * doc/invoke.texi (@item parloops-schedule): New item.
1668         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1669         * tree-parloops.c: Include params-enum.h.
1670         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1671
1672 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1673
1674         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1675         * params-enum.h: New file.
1676         * opts.c (handle_param): Handle case that param arg is a string.
1677         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1678         * params.c (find_param): New function, factored out of ...
1679         (set_param_value): ... here.
1680         (param_string_value_p): New function.
1681         * params.h (struct param_info): Add value_names field.
1682         (find_param, param_string_value_p): Declare.
1683
1684 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1685
1686         PR tree-optimization/67476
1687         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1688
1689 2015-10-13  Richard Biener  <rguenther@suse.de>
1690
1691         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1692         the data dependence vector.
1693         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1694         (vect_peeling_hash_get_lowest_cost): Likewise.
1695         (vect_enhance_data_refs_alignment): Adjust.
1696         (struct _vect_peel_info, struct _vect_peel_extended_info,
1697         struct peel_info_hasher): Move from ...
1698         * tree-vectorizer.h: ... here.
1699         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1700         (LOOP_VINFO_PEELING_HTAB): Likewise.
1701         (struct _loop_vec_info): Remove min_profitable_iters and
1702         peeling_htab members.
1703         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1704         here.
1705         (destroy_loop_vec_info): Adjust.
1706         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1707         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1708         to estimate alias versioning cost.
1709         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1710
1711 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1712
1713         * real.h (real_isinteger): Declare.
1714         * real.c (real_isinteger): New function.
1715         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1716         if y is an even integer.
1717
1718 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1719
1720         revert:
1721         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1722         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1723         counts when these are more informative.
1724
1725 2015-10-12  Jeff Law  <law@redhat.com>
1726
1727         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1728         (fsm_find_control_stmt_paths): Change name of first argument to
1729         more accurately relfect what it really is.  Handle simplification
1730         of GIMPLE_COND after finding a thread path for NAME.
1731         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1732         nontrivial conditions to be handled by FSM threader.
1733         (thread_through_normal_block): Extract the name to looup via
1734         FSM threader from COND_EXPR.
1735
1736         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1737         restriction that traced SSA_NAME is a user variable.
1738
1739 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1740
1741         PR tree-optimization/67476
1742         * omp-low.c (expand_omp_for_generic): Add missing phis.
1743
1744 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1745
1746         PR tree-optimization/67476
1747         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1748
1749 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1750
1751         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1752         tables: add tbl3 and tbx4.
1753         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1754         (aarch64_tbx4v8qi): New.
1755         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1756         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1757         Rewrite using builtin functions.
1758         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1759
1760 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1761
1762         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1763         ROUND_UP macro.
1764         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1765         Use ROUND_UP and ROUND_DOWN macros where applicable.
1766         (rs6000_darwin64_record_arg_flush): Ditto.
1767         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1768         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1769         rounded_size.
1770
1771 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1772
1773         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1774         (AARCH64_ROUND_DOWN): Ditto.
1775         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1776
1777 2015-10-12  Richard Biener  <rguenther@suse.de>
1778
1779         PR ipa/67783
1780         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1781         code that analyzes IVs on each stmt but in a cheaper way avoiding
1782         quadratic behavior.
1783
1784 2015-10-12  Nick Clifton  <nickc@redhat.com>
1785
1786         * config/msp430/msp430.c (msp430_mcu_names): Rename to
1787         msp430_mcu_data, add fields for ISA and hardware multiply
1788         support.  Import latest data from the devices.csv file.
1789         (msp430_override_option): Use the data from the new array.
1790         (msp430_use_f5_series_hwmult): Likewise.
1791         (use_32bit_hwmult): Likewise.
1792         (msp430_no_hwmult): Likewise.
1793         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1794         MCU names.
1795         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1796         not recognised then no hardware multiply support is assumed and
1797         that only the MSP430 ISA is allowed.
1798
1799 2015-10-12  Richard Biener  <rguenther@suse.de>
1800
1801         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1802         related code ...
1803         (vect_analyze_loop_2): ... here.
1804
1805 2015-10-11  Jason Merrill  <jason@redhat.com>
1806
1807         PR c++/67557
1808         * expr.c (store_field): Call store_constructor directly when
1809         storing a CONSTRUCTOR into a target smaller than its type.
1810         Guard against unsafe bitwise copy.
1811
1812 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1813
1814         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1815         counts when these are more informative.
1816
1817 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1818
1819         * tree-profile.c (tree_profiling): Do not clear
1820         pure/const when not instrumenting.
1821         (pass tree_profile): Add dump of symtab.
1822
1823 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1824
1825         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1826         addresses.
1827         (fold_addr_of_array_ref_difference): Likewise.
1828
1829 2015-10-11  Jeff Law  <law@redhat.com>
1830
1831         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1832         tree-ssa-threadbackward.c.
1833         (fsm_find_control_statement_thread_paths): Likewise.
1834         (thread_through_normal_block): Break out FSM bits and move them
1835         into a new function in tree-ssa-threadbackward.c.  Call new function
1836         instead.
1837         Minimize header file usage.
1838         * tree-ssa-threadbackward.h: New file.
1839         * tree-ssa-threadbackward.c: Likewise.
1840         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1841
1842 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
1843
1844         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1845
1846 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
1847
1848         PR rtl-optimization/67864
1849         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1850         fallthrough edges for conditional jumps.  Don't sort candidate
1851         edges if not optimizing for speed.
1852
1853 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1854
1855         * defaults.h (REVERSE_CONDITION): New default definition.
1856         * jump.c (reversed_comparison_code_parts): Adjust.
1857
1858 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1859
1860         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1861         check HARD_FRAME_POINTER_IS_ARG_POINTER.
1862
1863 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1864
1865         * defaults.h (FRAME_ADDR_RTX): New default definition.
1866         * builtins.c (expand_builtin_return_addr): Adjust.
1867
1868 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1869
1870         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1871         * builtins.c (expand_builtin_return_addr): Adjust.
1872
1873 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1874
1875         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1876         * builtins.c (expand_builtin_return_addr): Adjust.
1877         * doc/tm.texi: Likewise.
1878         * doc/tm.texi.in: Likewise.
1879         * except.c (expand_builtin_unwind_init): Likewise.
1880
1881 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1882
1883         * builtins.c (expand_builtin_return_addr): Adjust.
1884         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1885
1886 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1887
1888         * tree.c (type_with_interoperable_signedness): New.
1889         (gimple_canonical_types_compatible_p): Use it.
1890         * tree.h (type_with_interoperable_signedness): Declare
1891
1892 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1893
1894         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1895         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1896         when OEP_ADDRESS_OF is se.
1897
1898 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1899             Sebastian Pop  <s.pop@samsung.com>
1900
1901         * graphite-dependences.c (scop_get_dependences): Add dump of the
1902         data dependence graph.
1903         * graphite-poly.c (print_isl_union_map): New.
1904         (debug_isl_union_map): New.
1905         * graphite-poly.h (print_isl_union_map): Declare.
1906         (debug_isl_union_map): Declare.
1907
1908 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1909             Sebastian Pop  <s.pop@samsung.com>
1910
1911         * graphite-poly.c (print_iteration_domain): Remove verbosity.
1912         Remove OpenScop formatting.
1913         (print_iteration_domains): Same.
1914         (debug_iteration_domain): Same.
1915         (debug_iteration_domains): Same.
1916         (print_pdr): Same.
1917         (debug_pdr): Same.
1918         (dump_gbb_cases): Same.
1919         (dump_gbb_conditions): Same.
1920         (print_pdrs): Same.
1921         (debug_pdrs): Same.
1922         (print_pbb_body): Same.
1923         (print_pbb): Same.
1924         (print_scop_params): Same.
1925         (print_scop_context): Same.
1926         (print_scop): Same.
1927         (debug_pbb_domain): Same.
1928         (debug_pbb): Same.
1929         (debug_scop_context): Same.
1930         (debug_scop): Same.
1931         (debug_scop_params): Same.
1932         * graphite-poly.h: Same.
1933         * graphite.c (graphite_transform_loops): Same.
1934
1935 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1936
1937         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1938         call that isn't needed.
1939
1940 2015-10-09  Jeff Law  <law@redhat.com>
1941
1942         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1943         rather than moving each name to the freelist individually.
1944
1945 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
1946
1947         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1948         * frame-header-opt.c: New file.
1949         * config/mips/mips-proto.h (mips_register_frame_header_opt):
1950         Add prototype.
1951         * config/mips/mips.c (mips_compute_frame_info): Check
1952         optimize_call_stack flag.
1953         (mips_option_override): Register new frame_header_opt pass.
1954         (mips_frame_info, mips_int_mask, mips_shadow_set,
1955         machine_function): Move these types to...
1956         * config/mips/mips.h: here.
1957         (machine_function): Add does_not_use_frame_header and
1958         optimize_call_stack fields.
1959         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1960         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1961         Document new flags.
1962         * config/mips/mips.opt (mframe-header-opt): Add new option.
1963
1964 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
1965
1966         * config/i386/i386.c
1967         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1968         ROUND_DOWN where applicable.
1969
1970 2015-10-09  Jeff Law  <law@redhat.com>
1971
1972         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1973         correct statement.
1974
1975 2015-10-09  Renlin Li  <renlin.li@arm.com>
1976
1977         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1978         operands[0] and operands[2].
1979         (neon_vtrn<mode>_insn): Likewise.
1980         (neon_vzip<mode>_insn): Likewise.
1981
1982 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1983
1984         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1985         ((X & C2) << C1): Expand to...
1986         (X {&,^,|} C2 << C1): ...This.
1987         ((X & C2) >> C1): Expand to...
1988         (X {&,^,|} C2 >> C1): ...This.
1989
1990 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
1991
1992         PR target/67895
1993         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1994         Adjust embedded rounding/SAE specifier position.
1995         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1996         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1997         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1998         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1999         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2000         Likewise.
2001         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2002
2003 2015-10-09  Martin Jambor  <mjambor@suse.cz>
2004
2005         tree-optimization/67794
2006         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2007         between types of state,ents but accept original definitions as a
2008         parameter.
2009         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2010         iterate over definitions.
2011
2012 2015-10-09  James Norris  <jnorris@codesourcery.com>
2013
2014         * config/rs6000/rs6000.c (rs6000_offload_options): New.
2015         (TARGET_OFFLOAD_OPTIONS): New.
2016
2017 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
2018
2019         PR middle-end/67891
2020         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2021
2022         PR middle-end/67766
2023         * function.c (expand_function_end): Move return value
2024         promotion past the handling of PARALLELs and CONCATs.
2025
2026         PR rtl-optimization/67828
2027         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2028         (tree_may_unswitch_on): Don't unswitch on expressions
2029         involving undefined values.
2030
2031 2015-10-09  Richard Biener  <rguenther@suse.de>
2032
2033         * genmatch.c (print_operand): Fix formatting.
2034         (dt_node::append_simplify): Warn for multiple simplifiers
2035         that match the same pattern.
2036         * match.pd (log (exp @0)): Remove duplicates.
2037
2038 2015-10-09  Richard Biener  <rguenth@suse.de>
2039
2040         PR target/67366
2041         * gimple-fold.c (optabs-query.h): Include
2042         (gimple_fold_builtin_memory_op): Allow unaligned stores
2043         when movmisalign_optabs are available.
2044
2045 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2046
2047         PR target/67366
2048         * config/arm/arm.md (movmisalign<mode>): New.
2049         * config/arm/iterators.md (HSI): New.
2050
2051 2015-10-09  Richard Biener  <rguenther@suse.de>
2052
2053         PR tree-optimization/67891
2054         * gimple-match.h (gimple_simplified_result_is_gimple_val):
2055         New helper.
2056         (gimple_resimplify1): Declare.
2057         (gimple_resimplify2): Likewise.
2058         (gimple_resimplify3): Likewise.
2059         * gimple-match-head.c (gimple_resimplify1): Export.
2060         (gimple_resimplify2): Likewise.
2061         (gimple_resimplify3): Likewise.
2062         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2063         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2064         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2065         to avoid creating stmts without VN info.
2066
2067 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
2068
2069         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2070         of availability.
2071
2072 2015-10-08  Jeff Law  <law@redhat.com>
2073
2074         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2075         and release_ssa_name in two places.
2076         (gimple_stringop_fixed_value): Similarly.
2077
2078         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2079         release_defs.
2080
2081         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2082         unlink_stmt_vdef and release_ssa_name_fn.
2083
2084         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2085         release_defs.
2086
2087 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
2088
2089         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2090         SSE register save area to 16 bytes only if the incoming stack
2091         boundary is no less than 16 bytes.
2092
2093 2015-10-08  Jeff Law  <law@redhat.com>
2094
2095         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2096         release_ssa_name.  Fix typo in comment.
2097
2098 2015-10-08  Nathan Sidwell  <nathan@acm.org>
2099
2100         * config/nvptx/nvptx.h (struct machine_function): Add comment.
2101         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2102         may return pointer as well as in memory.
2103         (nvptx_output_return): Likewise.
2104
2105 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2106
2107         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2108         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2109         * match.pd: Add rules previously handled by fold_builtin_sqrt
2110         and fold_builtin_cbrt.
2111
2112 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
2113
2114         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2115         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2116         * fold-const.h (tree_unary_nonnegative_warnv_p)
2117         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2118         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2119         * fold-const.c: Include gimple-fold.h and params.h.
2120         (tree_ssa_name_nonnegative_warnv_p): New function.
2121         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2122         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2123         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2124         Add a depth parameter and increment it for recursive calls to
2125         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2126         to handle SSA names.
2127         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2128         (gimple_stmt_nonnegative_warnv_p): Declare.
2129         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2130         cannot be proven false.
2131         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2132         (gimple_stmt_nonnegative_warnv_p): Move to...
2133         * gimple-fold.c: ...here.  Add depth parameters and pass them
2134         down to the tree routines.  Accept statements that aren't
2135         assignments or calls but just return false for them.
2136         (gimple_val_nonnegative_real_p): Delete.
2137         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2138         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2139         Check HONOR_NANs first.
2140
2141 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2142
2143         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2144         unnecessary MIN.
2145
2146 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2147
2148         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2149         in the tail of outer-loop.
2150
2151 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2152
2153         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2154         return UI_NONE.
2155
2156 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2157
2158         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2159         "cfghooks.h", add prototypes for introduced new functions.
2160         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2161         checks on ability of loop unswitching to tree_unswitch_single_loop;
2162         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2163         on innermost loop check.
2164         (tree_unswitch_single_loop): Add all required checks on ability of
2165         loop unswitching under zero recursive level guard.
2166         (tree_unswitch_outer_loop): New function.
2167         (find_loop_guard): Likewise.
2168         (empty_bb_without_guard_p): Likewise.
2169         (used_outside_loop_p): Likewise.
2170         (get_vop_from_header): Likewise.
2171         (hoist_guard): Likewise.
2172         (check_exit_phi): Likewise.
2173
2174 2015-10-08  Marek Polacek  <polacek@redhat.com>
2175
2176         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2177         ops element.
2178
2179 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2180
2181         PR c/65345
2182         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2183         create_tmp_var_raw instead of create_tmp_var.
2184
2185 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2186
2187         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2188         BLKmode.
2189         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2190         to define gimple type system; compare aggregates only by size.
2191
2192 2015-10-07  Jeff Law  <law@redhat.com>
2193
2194         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2195         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2196         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2197         unnecessarily.
2198
2199 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2200             Sebastian Pop  <s.pop@samsung.com>
2201
2202         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2203         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2204         (generate_isl_schedule): Same.
2205         * graphite-optimize-isl.c (scop_get_domains): Same.
2206         (apply_schedule_map_to_scop): Same.
2207         * graphite-poly.c (print_iteration_domains): Same.
2208         (remove_gbbs_in_scop): Same.
2209         (new_scop): Same.
2210         (free_scop): Same.
2211         (print_scop): Same.
2212         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2213         (SCOP_BBS): Remove.
2214         * graphite-scop-detection.c (compare_bb_depths): Remove.
2215         (graphite_sort_dominated_info): Remove.
2216         (try_generate_gimple_bb): Move out of scop_detection.
2217         (all_non_dominated_preds_marked_p): Remove.
2218         (build_scop_bbs_1): Remove.
2219         (build_scop_bbs): Remove.
2220         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2221         (find_scop_parameters): Same.
2222         (sese_dom_walker): Rename gather_bbs.
2223         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2224         and pbb.
2225         (build_scops): Call gather_bbs.
2226         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2227         (add_conditions_to_constraints): Same.
2228         (build_scop_iteration_domain): Same.
2229         (build_scop_drs): Same.
2230         (new_pbb_from_pbb): Same.
2231         * sese.c (new_sese_info): Create bbs.
2232         * sese.h (struct sese_info_t): Add bbs.
2233
2234 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2235
2236         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2237         encoding in 64-bit mode.
2238
2239 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2240
2241         PR target/66697
2242         * config/i386/i386.c (ix86_option_override_internal): Always use
2243         8-byte minimum stack boundary in 64-bit mode.
2244         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2245         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2246         Add a REG_CFA_EXPRESSION note if needed.
2247         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2248         (ix86_handle_force_align_arg_pointer_attribute): New.
2249         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2250         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2251         with ix86_handle_force_align_arg_pointer_attribute.
2252         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2253
2254 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2255             Sebastian Pop  <s.pop@samsung.com>
2256
2257         * graphite-scop-detection.c (parameter_index_in_region): Remove
2258         use of SESE_ADD_PARAMS.
2259         (find_scop_parameters): Same.
2260         * sese.c (new_sese_info): Same.
2261         * sese.h (struct sese_info_t): Remove add_params.
2262         (SESE_ADD_PARAMS): Remove.
2263
2264 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2265             Sebastian Pop  <s.pop@samsung.com>
2266
2267         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2268         an sese_info_p.
2269         (copy_def): Same.
2270         (copy_internal_parameters): Same.
2271         (translate_isl_ast_to_gimple): Use an sese_l.
2272         (build_iv_mapping): Same.
2273         * graphite-poly.c (new_sese): Rename new_sese_info.
2274         (free_sese): Rename free_sese_info.
2275         * graphite-poly.h (struct scop): Use an sese_info_p.
2276         (scop_set_region): Same.
2277         * graphite-scop-detection.c (struct sese_l): Moved...
2278         (get_entry_bb): Moved...
2279         (get_exit_bb): Moved...
2280         (parameter_index_in_region_1): Use an sese_info_p.
2281         (parameter_index_in_region): Same.
2282         (scan_tree_for_params): Same.
2283         (find_params_in_bb): Same.
2284         (sese_dom_walker): Use an sese_l.
2285         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2286         (reduction_phi_p): Same.
2287         (parameter_index_in_region_1): Use an sese_info_p.
2288         (propagate_expr_outside_region): Use an sese_l.
2289         * graphite.c: Replace uses of SCOP_REGION.
2290         * sese.c (sese_record_loop): Use an sese_info_p.
2291         (build_sese_loop_nests): Same.
2292         (sese_build_liveouts_use): Same.
2293         (sese_build_liveouts_bb): Same.
2294         (sese_build_liveouts_bb): Same.
2295         (sese_bad_liveouts_use): Same.
2296         (sese_reset_debug_liveouts_bb): Same.
2297         (sese_build_liveouts): Same.
2298         (new_sese): Renamed new_sese_info.
2299         (free_sese): Renamed free_sese_info.
2300         (set_rename): Use an sese_info_p.
2301         (graphite_copy_stmts_from_block): Same.
2302         (copy_bb_and_scalar_dependences): Same.
2303         (outermost_loop_in_sese_1): Use an sese_l.
2304         (outermost_loop_in_sese): Same.
2305         (if_region_set_false_region): Use an sese_info_p.
2306         (move_sese_in_condition): Same.
2307         (scalar_evolution_in_region): Use an sese_l.
2308         * sese.h (struct sese_l): ... here.
2309         (SESE_ENTRY): Remove.
2310         (SESE_ENTRY_BB): Remove.
2311         (SESE_EXIT): Remove.
2312         (SESE_EXIT_BB): Remove.
2313         (sese_contains_loop): Use an sese_info_p.
2314         (sese_nb_params): Same.
2315         (bb_in_sese_p): Use an sese_l.
2316         (stmt_in_sese_p): Same.
2317         (defined_in_sese_p): Same.
2318         (loop_in_sese_p): Same.
2319         (sese_loop_depth): Same.
2320         (struct ifsese_s): Use an sese_info_p.
2321         (gbb_loop_at_index): Use an sese_l.
2322         (nb_common_loops): Same.
2323         (scev_analyzable_p): Same.
2324
2325 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2326
2327         * config/i386/i386.c (ix86_conditional_register_usage): Use
2328         CALL_USED_REGISTERS_MASK.
2329         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2330
2331 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2332
2333         PR bootstrap/67385
2334         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2335         * configure: Regenerated.
2336
2337 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2338
2339         PR target/67850
2340         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2341         (ix86_set_current_function): This.
2342         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2343
2344 2015-10-07  Richard Biener  <rguenther@suse.de>
2345
2346         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2347         (vinfo_for_stmt): Adjust.
2348         (set_vinfo_for_stmt): Likewise.
2349         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2350         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2351         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2352         of inner loop.
2353         (vect_analyze_loop_1): Remove.
2354         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2355         inner loop when vectorizing an outer loop by splitting out from ...
2356         (vect_analyze_loop_form): ... here.
2357
2358 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2359
2360         PR c/65345
2361         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2362         Use create_tmp_var_raw instead of create_tmp_var.
2363
2364 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2365
2366         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2367         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2368         * real.c (CACHED_FRACTION): New helper macro.
2369         (dconst_third_ptr): Use it.
2370         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2371         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2372         dconst_sixth.
2373         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2374
2375 2015-10-06  Jeff Law  <law@redhat.com>
2376
2377         PR tree-optimization/67816
2378         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2379         from remove_jump_threads_starting_at.  Accept an edge rather than
2380         a basic block.
2381         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2382         (remove_jump_threads_including): Note edges that get removed from
2383         the CFG for later pruning of jump threading paths including them.
2384         (thread_through_all_blocks): Remove paths which include edges that
2385         have been removed.
2386         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2387         on each outgoing edges when optimizing away a control statement.
2388
2389 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2390
2391         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2392         in a vector instead of rtx_insn_list.
2393         (add_to_delay_list): Likewise.
2394         (delete_from_delay_slot): Likewise.
2395         (optimize_skip): Likewise.
2396         (redirect_with_delay_list_safe_p): Likewise.
2397         (check_annul_list_true_false): Likewise.
2398         (steal_delay_list_from_target): Likewise.
2399         (steal_delay_list_from_fallthrough): Likewise.
2400         (redundant_insn): Likewise.
2401         (fill_simple_delay_slots): Likewise.
2402         (fill_slots_from_thread): Likewise.
2403         (fill_eager_delay_slots): Likewise.
2404         (relax_delay_slots): Likewise.
2405
2406 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2407
2408         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2409         For -mgpopt=local, also exclude unintialized common symbols.
2410         * doc/invoke.texi (Nios II Options): Document the change.
2411
2412 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2413
2414         * config/aarch64/iterators.md (vwcore): Add missing cases for
2415          V4HF/V8HF modes.
2416
2417 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2418             Sebastian Pop  <s.pop@samsung.com>
2419
2420         * graphite-poly.c (new_scop): Initialize drs.
2421         * graphite-poly.h (struct dr_info): New.
2422         (struct scop): Add drs.
2423         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2424         (pdr_add_memory_accesses): Same.
2425         (build_poly_dr): Same.
2426         (build_alias_set): Same.
2427         (build_scop_drs): Same.
2428         (build_pbb_drs): Remove.
2429         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2430         * tree-data-ref.h (data_reference): Remove alias_set.
2431
2432 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2433             Sebastian Pop  <s.pop@samsung.com>
2434
2435         * graphite-poly.c (free_data_refs_aux): Remove.
2436         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2437         * graphite-poly.h (struct base_alias_pair): Remove.
2438         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2439         base_alias_pair and dr->aux.
2440         (build_alias_set): Same.
2441         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2442         * tree-data-ref.h (data_reference): Add alias_set.
2443
2444 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2445             Sebastian Pop  <s.pop@samsung.com>
2446
2447         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2448         Do not set PDR_BASE_OBJECT_SET.
2449         * graphite-poly.h (poly_dr): Same.
2450         (PDR_BASE_OBJECT_SET): Remove.
2451         (new_poly_dr): Update decl.
2452         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2453         new_poly_dr.
2454         (write_alias_graph_to_ascii_dimacs): Remove.
2455         (write_alias_graph_to_ascii_dot): Remove.
2456         (write_alias_graph_to_ascii_ecc): Remove.
2457         (dr_same_base_object_p): Remove.
2458         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2459         code.
2460         (build_base_obj_set_for_drs): Remove.
2461         (dump_alias_graphs): Remove.
2462         (build_scop_drs): Remove dead code.
2463
2464 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2465             Peter Bergner  <bergner@vnet.ibm.com>
2466
2467         PR target/67808
2468         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2469         allow registers, but provide insns for the combiner to create for
2470         loads from memory. Separate VSX code from non-VSX code. For
2471         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2472         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2473         so that registers come before memory operations. Drop support from
2474         converting DFmode to TFmode, if the DFmode value is in a GPR
2475         register.
2476         (extenddftf2_fprs): Likewise.
2477         (extenddftf2_internal): Likewise.
2478         (extenddftf2_vsx): Likewise.
2479         (extendsftf2): In the expander, only allow registers, but provide
2480         insns for the combiner to create for stores and loads.
2481
2482 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2483
2484         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2485         from the decl parameter.
2486
2487 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2488
2489         PR 67861
2490         * gimple-fold.c (gimple_fold_builtin): Add break after
2491         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2492
2493 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2494
2495         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2496         to scop->isl_context.
2497
2498 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2499
2500         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2501         (output_probe_stack_range): Rotate the loop and simplify.
2502         (thumb1_expand_prologue): Tweak sorry message.
2503         * config/arm/arm.md (probe_stack): Use bare string.
2504
2505 2015-10-06  Nick Clifton  <nickc@redhat.com>
2506
2507         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2508
2509 2015-10-06  Nick Clifton  <nickc@redhat.com>
2510
2511         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2512         (ATTR_PERSIST): New constant.
2513         (msp430_data_attr): New function - verifies an attribute that only
2514         applies to variables.
2515         (msp430_attributes): Add noinit and persistent attributes.
2516         (noinit_section): New variable.
2517         (presis_section): New variable.
2518         (TARGET_ASM_INIT_SECTIONS): Define.
2519         (msp430_init_sections): New function - initialises the noinit and
2520         persist section variables.
2521         (msp430_select_section): Add support for noinit and persist
2522         attributes.
2523         (msp430_section_type_flags): Likewise.
2524         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2525         and persistent attributes.
2526
2527 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2528             Sebastian Pop  <s.pop@samsung.com>
2529
2530         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2531         (no_violations): Remove.
2532         (subtract_commutative_associative_deps): Remove.
2533         (compute_deps): Do not call subtract_commutative_associative_deps.
2534         (transform_is_safe): Remove.
2535         (graphite_legal_transform): Remove.
2536         * graphite-poly.h (graphite_legal_transform): Remove.
2537
2538 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2539
2540         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2541         which are in this region are passed so gcc_assert and remove redundant
2542         computation.
2543         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2544         in region.
2545         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2546         gcc_assert on that and remove unnecessary computation.
2547         (sese_build_liveouts_use): Same.
2548
2549 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2550
2551         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2552         to scop->param_context.
2553         (scop_get_must_writes): Same.
2554         (scop_get_may_writes): Same.
2555         (scop_get_original_schedule): Same.
2556         (scop_get_transformed_schedule): Same.
2557         (subtract_commutative_associative_deps): Same.
2558         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2559         (generate_isl_context): Same.
2560         (generate_isl_schedule): Same.
2561         (scop_to_isl_ast): Same.
2562         (graphite_regenerate_ast_isl): Same.
2563         * graphite-optimize-isl.c (scop_get_domains): Same.
2564         (optimize_isl): Renamed scop->context to scop->param_context.
2565         * graphite-poly.c (new_poly_bb): Change the type of argument to
2566         gimple_poly_bb_p.
2567         (new_scop): Renamed scop->context to scop->param_context.
2568         (free_scop): Same.
2569         (print_scop_context): Same.
2570         * graphite-poly.h (new_poly_dr): Change the type of argument from
2571         void* to data_reference_p.
2572         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2573         (new_poly_bb): Change the type of argument from void* to
2574         gimple_poly_bb_p.
2575         (pbb_set_black_box): Same.
2576         (struct scop): Rename context to param_context, ctx to isl_context.
2577         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2578         Move declarations closer to assignment.
2579         (find_params_in_bb): Same.
2580         (find_scop_parameters): Same.
2581         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2582         Global to be used for statement IDs.
2583         (isl_id_for_pbb): Use ssa_name_version_typesize.
2584         (simple_copy_phi_p): Move declarations closer to assignment.
2585         (build_pbb_scattering_polyhedrons): Same.
2586         (build_scop_scattering): Same.
2587         (isl_id_for_ssa_name): Same.
2588         (extract_affine_name): Same.
2589         (extract_affine_int): Same.
2590         (extract_affine): Same.
2591         (set_scop_parameter_dim): Use renamed member.
2592         (build_loop_iteration_domains): Same.
2593         (add_param_constraints): Same.
2594         (build_scop_iteration_domain): Same.
2595         (pdr_add_data_dimensions): Same.
2596         (build_poly_dr): Same.
2597         (build_scop_drs): Move declarations closer to assignment.
2598         (analyze_drs_in_stmts): Same.
2599         (insert_out_of_ssa_copy): Same.
2600         (insert_out_of_ssa_copy_on_edge): Same.
2601         (propagate_expr_outside_region): Same.
2602         (rewrite_phi_out_of_ssa): Same.
2603         (rewrite_degenerate_phi): Same.
2604         (rewrite_reductions_out_of_ssa): Same.
2605         (rewrite_cross_bb_scalar_dependence): Same.
2606         (handle_scalar_deps_crossing_scop_limits): Same.
2607         (rewrite_cross_bb_scalar_deps): Same.
2608         * graphite.c (graphite_transform_loops): Use renamed member.
2609
2610 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2611
2612         PR c/65345
2613         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2614         create_tmp_var_raw instead of create_tmp_var.
2615
2616 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2617
2618         PR c/65345
2619         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2620         Use create_tmp_var_raw instead of create_tmp_var.
2621
2622 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2623
2624         PR target/67849
2625         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2626         split for upper-bank registers when target does not support
2627         AVX512VL.
2628         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2629         split when target does not support AVX512VL.
2630
2631 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2632
2633         PR c/65345
2634         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2635         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2636
2637 2015-10-06  Nick Clifton  <nickc@redhat.com>
2638
2639         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2640         multiplication.
2641
2642 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2643
2644         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2645         (case ${target}): Add znver1.
2646         * config/i386/cpuid.h(bit_CLZERO):  Define.
2647         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2648         -march=native recognize znver1 processors.
2649         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2650         znver1, clzero def_and_undef.
2651         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2652         (m_znver1): New definition.
2653         (m_AMD_MULTIPLE): Includes m_znver1.
2654         (processor_target_table): Add znver1 entry.
2655         (ix86_target_string) : Add clzero entry.
2656         (static const char *const cpu_names): Add znver1 entry.
2657         (ix86_option_override_internal): Add znver1 instruction sets.
2658         (PTA_CLZERO) :  New definition.
2659         (ix86_option_override_internal): Handle new clzerooption.
2660         (ix86_issue_rate): Add znver1.
2661         (ix86_adjust_cost): Add znver1.
2662         (ia32_multipass_dfa_lookahead): Add znver1.
2663         (has_dispatch): Add znver1.
2664         * config/i386/i386.h (TARGET_znver1): New definition.
2665         (TARGET_CLZERO): Define.
2666         (TARGET_CLZERO_P): Define.
2667         (struct ix86_size_cost): Add TARGET_ZNVER1.
2668         (enum processor_type): Add PROCESSOR_znver1.
2669         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2670         (set_attr znver1_decode): New definitions for znver1.
2671         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2672         (mclzero): New.
2673         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2674         for znver1.
2675         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2676         * config/i386/x86-tune.def:  Add znver1 tunings.
2677         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2678         * gcc/doc/invoke.texi: Add details about znver1
2679
2680 2015-10-06  Richard Biener  <rguenther@suse.de>
2681
2682         PR tree-optimization/67859
2683         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2684         discard not inserted stmts.
2685
2686 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2687
2688         * doc/extend.texi (Template Instantiation): Reorder options and
2689         de-emphasize -frepo.
2690         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2691         example instead of -frepo.
2692
2693 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2694
2695         PR c/65345
2696         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2697         use create_tmp_var_raw rather than create_tmp_var.
2698
2699 2015-10-06  Richard Biener  <rguenther@suse.de>
2700
2701         * tree-vectorizer.h (vec_info): New base class for...
2702         (_loop_vec_info): ... this and ...
2703         (_bb_vec_info): ... this.
2704         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2705         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2706         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2707         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2708         vect_destroy_datarefs): Adjust interface to take a vec_info *
2709         rather than both a loop_vec_info and a bb_vec_info argument.
2710         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2711         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2712         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2713         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2714         accordingly.
2715         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2716         (destroy_loop_vec_info, vect_analyze_loop_2,
2717         vect_is_simple_reduction_1, get_initial_def_for_induction,
2718         vect_create_epilog_for_reduction, vectorizable_reduction,
2719         vectorizable_live_operation, vect_transform_loop): Adjust.
2720         * tree-vect-patterns.c (type_conversion_p,
2721         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2722         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2723         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2724         check_bool_pattern, vect_recog_bool_pattern,
2725         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2726         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2727         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2728         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2729         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2730         (new_bb_vec_info): Initialize base classs.
2731         * tree-vect-stmts.c (record_stmt_cost, process_use,
2732         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2733         vectorizable_mask_load_store, vectorizable_call,
2734         vectorizable_simd_clone_call, vectorizable_conversion,
2735         vectorizable_assignment, vectorizable_shift,
2736         vectorizable_operation, vectorizable_store,
2737         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2738         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2739         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2740
2741 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2742
2743         PR c/65345
2744         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2745         create_tmp_var_raw rather than create_tmp_var.
2746
2747 2015-10-05  Marek Polacek  <polacek@redhat.com>
2748
2749         * tree-ssa-loop-im.c
2750         (move_computations_dom_walker::before_dom_children): Don't set
2751         SSA_NAME_ANTI_RANGE_P.
2752         * tree-ssa-phiopt.c (value_replacement): Likewise.
2753
2754 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2755             Sebastian Pop  <s.pop@samsung.com>
2756
2757         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2758
2759 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2760             Sebastian Pop  <s.pop@samsung.com>
2761
2762         * graphite-poly.c (new_gimple_poly_bb): ... here.
2763         (free_data_refs_aux): ... here.
2764         (free_gimple_poly_bb): ... here.
2765         (remove_gbbs_in_scop): ... here.
2766         (new_scop): Call new_sese.
2767         (free_scop): Call remove_gbbs_in_scop and free_sese.
2768         * graphite-poly.h (base_alias_pair): ... here.
2769         (new_gimple_poly_bb): Declare.
2770         (free_gimple_poly_bb): Declare.
2771         * graphite-scop-detection.c (parameter_index_in_region_1):
2772         (parameter_index_in_region): ... here.
2773         (scan_tree_for_params): ... here.
2774         (find_params_in_bb): ... here.
2775         (find_scop_parameters): ... here.
2776         (build_scops): Call find_scop_parameters.
2777         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2778         (free_scops): Move...
2779         (single_pred_cond_non_loop_exit): Move...
2780         (sese_dom_walker::before_dom_children): Move...
2781         (sese_dom_walker::after_dom_children): Move...
2782         (build_poly_scop): Move...
2783         * graphite-sese-to-poly.h (base_alias_pair): Move...
2784         * graphite.c (free_scops): ... here.
2785
2786 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2787             Sebastian Pop  <s.pop@samsung.com>
2788
2789         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2790         (trivially_empty_bb_p): Move...
2791         (same_close_phi_node): Move...
2792         (new_gimple_poly_bb): Move...
2793         (compare_bb_depths): Move...
2794         (graphite_sort_dominated_info): Move...
2795         (remove_duplicate_close_phi): Move...
2796         (make_close_phi_nodes_unique): Move...
2797         (canonicalize_loop_closed_ssa): Move...
2798         (canonicalize_loop_closed_ssa_form): Move...
2799         (loop_ivs_can_be_represented): Move...
2800         (single_pred_cond_non_loop_exit): Move...
2801         (graphite_can_represent_init): Move...
2802         (graphite_can_represent_scev): Move...
2803         (stmt_has_simple_data_refs_p): Move...
2804         (stmt_has_side_effects):  Move...
2805         (graphite_can_represent_stmt): Move...
2806         (scop_detection): ... here.
2807         (sese_dom_walker): ... and here.
2808         (build_scops): Call all moved functions.
2809         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2810         (all_non_dominated_preds_marked_p): Move...
2811         (build_scop_bbs_1): Move...
2812         (build_scop_bbs): Move...
2813         (set_scop_parameter_dim): Move...
2814         (nb_pbbs_in_loops): Move...
2815         (build_poly_scop): Do not call all the moved functions.
2816
2817 2015-10-05  Martin Jambor  <mjambor@suse.cz>
2818             Jan Hubicka  <hubicka@ucw.cz>
2819
2820         * ipa-cp.c (ipcp_alignment_lattice): New type.
2821         (ipcp_param_lattices): Use the above to represent alignment.
2822         (ipcp_alignment_lattice::print): New function.
2823         (print_all_lattices): Use it to print alignment information.
2824         (ipcp_alignment_lattice::top_p): New function.
2825         (ipcp_alignment_lattice::bottom_p): Likewise.
2826         (ipcp_alignment_lattice::set_to_bottom): Likewise.
2827         (ipcp_alignment_lattice::meet_with_1): Likewise.
2828         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2829         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2830         (initialize_node_lattices): Likewise.
2831         (propagate_alignment_accross_jump_function): Work with the new class
2832         for alignment lattices.
2833         (propagate_constants_accross_call): Pass only the alignment lattice to
2834         propagate_alignment_accross_jump_function.
2835         (ipcp_store_alignment_results): Work with the new class for alignment
2836         lattices.
2837
2838 2015-10-05  Marek Polacek  <polacek@redhat.com>
2839
2840         PR tree-optimization/67821
2841         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2842
2843 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
2844
2845         PR other/65021
2846         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2847         function to...
2848         (mkoffload_cleanup): ... this.  Adjust all users.
2849         (maybe_unlink): Look at save_temps and verbose flags instead of
2850         debug flag.
2851         (main): Parse "-save-temps" flag.
2852         (generate_target_descr_file, generate_target_offloadend_file)
2853         (generate_host_descr_file, prepare_target_image): Pass it on.
2854         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2855         (mkoffload_cleanup): New function.
2856         (maybe_unlink): Look at save_temps and verbose flags instead of
2857         debug flag.
2858         (main): Instead of calling utils_cleanup, register atexit handler
2859         for mkoffload_cleanup.
2860         (main): Parse "-save-temps" flag.
2861         (compile_native, main): Pass it on.
2862         * lto-wrapper.c (compile_offload_image): Likewise.
2863
2864 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2865
2866         * gimple.h (gimple_op_ptr): Require a non const gimple *.
2867         (gimple_assign_lhs_ptr): Likewise.
2868         (gimple_assign_rhs1_ptr): Likewise.
2869         (gimple_assign_rhs2_ptr): Likewise.
2870         (gimple_assign_rhs3_ptr): Likewise.
2871         (gimple_call_lhs_ptr): Likewise.
2872         (gimple_call_fn_ptr): Likewise.
2873         (gimple_call_chain_ptr): Likewise.
2874                 (gimple_call_arg_ptr): Likewise.
2875                 (gimple_cond_lhs_ptr): Likewise.
2876         (gimple_cond_rhs_ptr): Likewise.
2877         (gimple_switch_index_ptr): Likewise.
2878         (gimple_return_retval_ptr): Likewise.
2879
2880 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2881
2882         * gimple.h (gimple_asm_input_op_ptr): Remove.
2883         (gimple_asm_output_op_ptr): Likewise.
2884
2885 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2886
2887         * gimple.h (gimple_location_ptr): Remove.
2888         * tree-vrp.c (check_all_array_refs): Adjust.
2889
2890 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2891
2892         * tree-ssa-operands.c (build_uses): store tree * instead of
2893         tree.
2894         (finalize_ssa_uses): Adjust.
2895         (append_use): Likewise.
2896         (verify_ssa_operands): Likewise.
2897
2898 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2899
2900         * real.h (build_real_truncate): Declare.
2901         * tree.c (build_real_truncate): New function.
2902         (strip_float_extensions): Use it.
2903         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2904         (fold_builtin_hypot, fold_builtin_pow): Likewise.
2905         * match.pd: Likewise.
2906
2907 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2908            Jiong Wang  <jiong.wang@arm.com>
2909
2910         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2911
2912 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2913
2914         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2915         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2916         (aarch64_print_operand, aarch64_float_const_representable_p)
2917         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2918         instead of REAL_VALUE_FROM_CONST_DOUBLE.
2919         * config/arc/arc.c (arc_print_operand): Likewise.
2920         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2921         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2922         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2923         Likewise.
2924         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2925         (consttable_16): Likewise.
2926         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2927         * config/avr/avr.c (avr_print_operand): Likewise.
2928         * config/bfin/bfin.md: Likewise (in a define_split).
2929         * config/c6x/c6x.md: Likewise (in a define_split).
2930         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2931         (cr16_print_operand): Likewise.
2932         * config/cris/cris.c (cris_print_operand): Likewise.
2933         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2934         * config/fr30/fr30.c (fr30_print_operand): Likewise.
2935         (fr30_const_double_is_zero): Likewise.
2936         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2937         * config/frv/frv.md: Likewise (in a define_split).
2938         * config/frv/predicates.md (int_2word_operand): Likewise.
2939         * config/h8300/h8300.c (h8300_print_operand): Likewise.
2940         * config/i386/i386.c (standard_80387_constant_p): Likewise.
2941         (ix86_print_operand, ix86_split_to_parts): Likewise.
2942         * config/i386/i386.md: Likewise (in a define_split).
2943         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2944         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2945         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2946         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2947         (print_operand): Likewise.
2948         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2949         * config/mep/mep.md: Likewise (in define_split).
2950         * config/microblaze/microblaze.c (microblaze_const_double_ok)
2951         (print_operand): Likewise.
2952         * config/mips/mips.md (consttable_float): Likewise.
2953         * config/mmix/mmix.c (mmix_intval): Likewise.
2954         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2955         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2956         * config/pa/pa.c (pa_singlemove_string): Likewise.
2957         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2958         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2959         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2960         (output_toc): Likewise.
2961         * config/rs6000/rs6000.md: Likewise (in define_splits).
2962         * config/rx/rx.c (rx_print_operand): Likewise.
2963         * config/s390/s390.c (s390_output_pool_entry): Likewise.
2964         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2965         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2966         (and also in define_splits).
2967         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2968         (fp_high_losum_p): Likewise.
2969         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2970         (*movsf_high): Likewise.
2971         * config/spu/spu.c (const_double_to_hwint): Likewise.
2972         * config/v850/v850.c (const_double_split): Likewise.
2973         * config/vax/vax.c (vax_float_literal): Likewise.
2974         * config/visium/visium.c (visium_expand_copysign): Likewise.
2975         * config/visium/visium.md: Likewise (in define_split).
2976         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2977         * config/xtensa/xtensa.c (print_operand): Likewise.
2978         (xtensa_output_literal): Likewise.
2979         * cprop.c (implicit_set_cond_p): Likewise.
2980         * dwarf2out.c (insert_float): Likewise.
2981         * expmed.c (expand_mult, make_tree): Likewise.
2982         * expr.c (compress_float_constant): Likewise.
2983         * rtlanal.c (split_double): Likewise.
2984         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2985         (simplify_const_unary_operation, simplify_binary_operation_1)
2986         (simplify_const_binary_operation): Likewise.
2987         (simplify_const_relational_operation): Likewise.
2988         * varasm.c (output_constant_pool_2): Likewise.
2989
2990 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2991
2992         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2993         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2994         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2995         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2996         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2997         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2998         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2999         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3000         (ix86_emit_swsqrtsf): Likewise.
3001         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3002         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3003         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3004         * config/pa/pa.c (pa_expand_builtin): Likewise.
3005         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3006         (rs6000_scale_v2df): Likewise.
3007         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3008         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3009         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3010         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3011         (vec_ctul): Likewise.
3012         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3013         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3014         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3015         * cse.c (fold_rtx): Likewise.
3016         * emit-rtl.c (immed_double_const): Likewise (in comments).
3017         (init_emit_once): Likewise.
3018         * expr.c (compress_float_constant, expand_expr_real_1)
3019         (const_vector_from_tree): Likewise.
3020         * optabs.c (expand_float, expand_fix): Likewise.
3021         * reg-stack.c (reg_to_stack): Likewise.
3022         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3023         (simplify_const_unary_operation, simplify_binary_operation_1)
3024         (simplify_const_binary_operation, simplify_relational_operation)
3025         (simplify_immed_subreg): Likewise.
3026
3027 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3028
3029         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3030         * doc/tm.texi: Regenerate.
3031         * real.h (REAL_ARITHMETIC): Delete.
3032         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3033         (ix86_expand_round_sse4): Use real_arithmetic instead of
3034         REAL_ARITHMETIC.
3035         * config/i386/sse.md (round<mode>2): Likewise.
3036         * rtl.h (rtx_to_tree_code): Likewise (in comment).
3037         * explow.c (rtx_to_tree_code): Likewise (in comment).
3038         * match.pd: Likewise.
3039         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3040         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3041         (expand_pow_as_sqrts): Likewise.
3042         * tree-pretty-print.c (dump_generic_node): Remove code that
3043         was conditional on REAL_ARITHMETIC being undefined.
3044
3045 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3046
3047         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3048         * doc/tm.texi: Regenerate.
3049         * real.h (real_less): Declare.
3050         (REAL_VALUES_LESS): Delete.
3051         * real.c (real_less): New function.
3052         (real_compare): Use it.
3053         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3054         of REAL_VALUES_LESS.
3055         * config/microblaze/microblaze.c (microblaze_const_double_ok):
3056         Likewise.
3057         * fold-const.c (fold_convert_const_int_from_real): Likewise.
3058         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3059         (simplify_const_relational_operation): Likewise.
3060         * tree-call-cdce.c (check_pow): Likewise.
3061         (gen_conditions_for_pow_cst_base): Likewise.
3062
3063 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3064
3065         * real.h (REAL_VALUES_IDENTICAL): Delete.
3066         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3067         instead of REAL_VALUES_IDENTICAL.
3068         * fold-const.c (operand_equal_p): Likewise.
3069         * ipa-icf.c (sem_variable::equals): Likewise.
3070         * tree-complex.c (some_nonzerop): Likewise.
3071         (expand_complex_multiplication): Likewise.
3072         * tree.c (simple_cst_equal): Likewise.
3073         * varasm.c (compare_constant): Likewise.
3074
3075 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
3076
3077         * real.h (real_equal): Declare.
3078         (REAL_VALUES_EQUAL): Delete.
3079         * real.c (real_equal): New function.
3080         (real_compare): Use it.
3081         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3082         * doc/tm.texi: Regenerate.
3083         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3084         real_equal instead of REAL_VALUES_EQUAL.
3085         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3086         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3087         (fp_const_from_val): Likewise.
3088         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3089         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3090         (floating_exact_log2): Likewise.
3091         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3092         * config/vax/vax.c (vax_float_literal): Likewise.
3093         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3094         * cprop.c (implicit_set_cond_p): Likewise.
3095         * expmed.c (expand_mult): Likewise.
3096         * fold-const.c (const_binop): Likewise.
3097         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3098         (simplify_const_binary_operation): Likewise.
3099         (simplify_const_relational_operation): Likewise.
3100         * tree-call-cdce.c (check_pow): Likewise.
3101         (gen_conditions_for_pow_cst_base): Likewise.
3102         * tree-inline.c (estimate_num_insns): Likewise.
3103         * tree-ssa-dom.c (record_equality): Likewise.
3104         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3105         (gimple_expand_builtin_pow): Likewise.
3106         (pass_optimize_widening_mul::execute): Likewise.
3107         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3108         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3109         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3110
3111 2015-10-05  Richard Biener  <rguenther@suse.de>
3112
3113         PR ipa/67783
3114         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3115         consider loop header PHI defs as IVs.
3116
3117 2015-10-05  Richard Biener  <rguenther@suse.de>
3118
3119         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3120         call handling ...
3121         (create_expression_by_pieces): ... here and build GIMPLE
3122         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3123         (insert_into_preds_of_block): Simplify.
3124         (do_regular_insertion): Add comment.
3125
3126 2015-10-04  Jason Merrill  <jason@redhat.com>
3127
3128         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3129
3130 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3131
3132         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3133         check for general register.
3134         (ix86_emit_save_regs): Ditto.
3135         (ix86_emit_save_regs_using_mov): Ditto.
3136         (ix86_emit_restore_regs_using_pop): Ditto.
3137         (ix86_emit_restore_regs_using_mov): Ditto.
3138
3139 2015-10-03  Marek Polacek  <polacek@redhat.com>
3140
3141         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3142         (insn-dfatab.o): Likewise.
3143
3144 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3145
3146         * config.gcc (xtensa*-*-uclinux*): New configuration.
3147         * config/xtensa/uclinux.h: New file.
3148         * config/xtensa/uclinux.opt: New file.
3149
3150 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3151
3152         * doc/cpp.texi (Standard Predefined Macros): Document value of
3153         __cplusplus for C++14.
3154
3155 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3156
3157         * gcc.c (process_command): Use spec_machine rather than
3158         spec_host_machine to build tooldir_prefix2.
3159
3160 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3161             Bernd Schmidt  <bernds@codesourcery.com>
3162
3163         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3164         (Token, Stmt): Remove structs.
3165         (decls, vars, fns): Remove variables.
3166         (alloc_comment, append_stmt, is_keyword): Remove macros.
3167         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3168         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3169         (parse_init, parse_file): Remove functions.
3170         (read_file): Accept a pointer to a length and store into it.
3171         (process): Don't try to parse the input file, just write it out as
3172         a string, but looking for maps.  Also write out the length.
3173         (main): Don't use "-S" to compile PTX code.
3174
3175 2015-10-02  Jeff Law  <law@redhat.com>
3176
3177         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3178         fixups.
3179
3180 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3181
3182         PR target/67822
3183         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3184         -fopenmp, and skip generating an offloading image if specified.
3185
3186 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3187
3188         * system.h (ROUND_UP): New macro definition.
3189         (ROUND_DOWN): Ditto.
3190         * ggc-page.c (ROUND_UP): Remove local macro definition.
3191         (PAGE_ALIGN): Implement using ROUND_UP macro.
3192
3193         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3194         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3195         to align values.
3196         (ix86_compute_frame_layout): Ditto.
3197         (ix86_expand_prologue): Ditto.
3198         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3199         to round down values.
3200         (expand_set_or_movmem_via_rep): Ditto.
3201
3202 2015-10-02  Marek Polacek  <polacek@redhat.com>
3203
3204         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3205
3206 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3207
3208         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3209         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3210         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3211         (free_gimple_bb): Renamed free_gimple_poly_bb.
3212         (try_generate_gimple_bb): Hoist loop invariant code.
3213         (analyze_drs_in_stmts): Same.
3214         (build_scop_drs): Call renamed functions.
3215         (new_pbb_from_pbb): Same.
3216         (scop_ivs_can_be_represented): Delete as functionality now moved to
3217         graphite-scop-detection.c
3218         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3219
3220 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3221
3222         * graphite-scop-detection.c (stmt_has_side_effects): New function
3223           outlined from stmt_simple_for_scop_p.
3224         (graphite_can_represent_stmt): Same.
3225         (stmt_simple_for_scop_p): Moved code out of this function for better
3226         readability.
3227
3228 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3229
3230         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3231         F_AVX512IFMA.
3232         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3233
3234 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3235
3236         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3237
3238 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3239
3240         PR rtl-optimization/67756
3241         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3242         for creating a pseudo with the same value.
3243         (curr_insn_transform): Pass a new argument to match_reload.
3244
3245 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3246
3247         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3248         (expand_vec_perm_even_odd_1): Handle V64QImode.
3249         (ix86_expand_vec_perm_const_1): Try expansion with
3250         expand_vec_perm_even_odd_trunc as well.
3251         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3252         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3253         to V54QI.
3254         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3255         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3256         to V32HI and V16SI.
3257         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3258         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3259         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3260         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3261         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3262         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3263
3264 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3265
3266         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3267         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3268
3269 2015-10-02  Jason Merrill  <jason@redhat.com>
3270
3271         PR c/59218
3272         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3273         (diagnose_tm_1_op): Also diagnose volatile accesses in
3274         transaction_safe function.
3275
3276 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3277
3278         * system.h (malloc.h): Don't include obsolete header.
3279
3280 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3281
3282         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3283         (TLS_SECTION_ASM_FLAG): Delete.
3284
3285 2015-10-02  Marek Polacek  <polacek@redhat.com>
3286
3287         PR c/64249
3288         * doc/invoke.texi: Document -Wduplicated-cond.
3289         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3290         (insn-dfatab.o): Likewise.
3291         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3292         warning.
3293
3294 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3295
3296         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3297         sequences.
3298
3299 2015-10-02  Renlin Li  <renlin.li@arm.com>
3300
3301         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3302
3303 2015-10-02  Renlin Li  <renlin.li@arm.com>
3304
3305         PR target/66776
3306         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3307
3308 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3309
3310         PR rtl-optimization/67786
3311         PR rtl-optimization/67787
3312         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3313         it modifies a reg used in the condition calculation.
3314
3315 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3316
3317         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3318         alternatives for reads from memory and moves from general-purpose
3319         registers.
3320         (*aarch64_combinez_be<mode>): Likewise.
3321
3322 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3323
3324         PR target/51726
3325         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3326         selectany within this function without need to keep attribute.
3327         (i386_pe_encode_section_info): Remove selectany-code.
3328
3329 2015-10-02  Richard Biener  <rguenther@suse.de>
3330
3331         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3332         (free_scc_vn): Use it.
3333         (visit_use): Remove dead code and refactor to use gassign
3334         and use less indentation.
3335
3336 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3337
3338         PR target/67788
3339         PR target/67789
3340         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3341         (rs6000_cannot_copy_insn_p): New function.
3342         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3343         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3344         (load_toc_v4_PIC_1_476): Ditto.
3345
3346 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3347
3348         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3349         so that this type can be pushed into a vec.
3350         (class scop_builder): use sese_l to collect scops.
3351         (get_scops): New getter function.
3352         (remove_intersecting_scops): Use sese_l instead of scops_p.
3353         (intersects): Same.
3354         (add_scop): Same.
3355         (subsumes): Same.
3356         (remove_subscops): Same.
3357         (build_scops): Add scops to vec<scops_p> once all the scops have been
3358         detected.
3359
3360 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3361
3362         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3363         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3364         (translate_isl_ast_node_user): Same.
3365         * graphite-poly.c (new_poly_bb): Same.
3366         * graphite-poly.h (gbb_from_bb): Same.
3367         * sese.h: Same.
3368         * graphite-sese-to-poly.c (new_gimple_bb):
3369         gimple_bb_p -> gimple_poly_bb_p
3370         (build_scop_scattering): Same.
3371         (find_params_in_bb): Same.
3372         (add_conditions_to_domain): Same.
3373         (sese_dom_walker::before_dom_children): Same.
3374         (analyze_drs_in_stmts): Same.
3375         (new_pbb_from_pbb): Same.
3376         (free_data_refs_aux): New pointer to type base_alias_pair.
3377         * graphite-sese-to-poly.h: Same.
3378         * sese.c (if_region_set_false_region): Fixed Indentation.
3379         (move_sese_in_condition): Same.
3380
3381 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3382             Aditya Kumar  <aditya.k7@samsung.com>
3383
3384         PR tree-optimization/66980
3385         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3386         when data reference analysis has failed.
3387
3388 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3389             Aditya Kumar  <aditya.k7@samsung.com>
3390
3391         PR tree-optimization/67754
3392         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3393         scev analysis on the same loop nest as analyze_drs_in_stmts.
3394         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3395         renamed...
3396         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3397         (analyze_drs_in_stmts): Same.
3398         * sese.c (outermost_loop_in_sese): ...here.
3399
3400 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3401             Aditya Kumar  <aditya.k7@samsung.com>
3402
3403         PR tree-optimization/67754
3404         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3405         recursion on the inner loops.
3406
3407 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3408
3409         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3410         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3411         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3412         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3413         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3414
3415 2015-10-01  Marek Polacek  <polacek@redhat.com>
3416
3417         PR c/65345
3418         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3419         create_tmp_var_raw rather than create_tmp_var.
3420
3421 2015-10-01  Marek Polacek  <polacek@redhat.com>
3422
3423         PR tree-optimization/67769
3424         * tree-ssa-phiopt.c (conditional_replacement): Call
3425         reset_flow_sensitive_info_in_bb.
3426         (minmax_replacement): Likewise.
3427         (abs_replacement): Likewise.
3428
3429 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3430
3431         * builtins.c: Don't include gomp-constants.h.
3432         (fold_builtin_1): Don't fold acc_on_device here.
3433         * gimple-fold.c: Include gomp-constants.h.
3434         (gimple_fold_builtin_acc_on_device): New.
3435         (gimple_fold_builtin): Call it.
3436
3437 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3440         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3441
3442 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3443
3444         * config/arm/aarch-common-protos.h
3445         (aarch_accumulator_forwarding): New.
3446         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3447         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3448         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3449         * config/arm/cortex-a53.md: Rewrite.
3450
3451 2015-10-01  Richard Biener  <rguenther@suse.de>
3452
3453         * gimple-match.h (mprts_hook): Declare.
3454         * gimple-match.head.c (mprts_hook): Define.
3455         (maybe_push_res_to_seq): Use new hook.
3456         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3457         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3458         (vn_ssa_aux::has_constants): Remove.
3459         * tree-ssa-sccvn.c: Include gimple-match.h.
3460         (VN_INFO_GET): Assert we don't re-use SSA names.
3461         (vn_get_expr_for): Remove.
3462         (expr_has_constants): Likewise.
3463         (stmt_has_constants): Likewise.
3464         (simplify_binary_expression): Likewise.
3465         (simplify_unary_expression): Likewise.
3466         (vn_lookup_simplify_result): New hook.
3467         (visit_copy): Adjust.
3468         (visit_reference_op_call): Likewise.
3469         (visit_phi): Likewise.
3470         (visit_use): Likewise.
3471         (process_scc): Likewise.
3472         (init_scc_vn): Likewise.
3473         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3474         a gimple seq for inserted expressions.
3475         (try_to_simplify): Remove GENERIC stmt combining code.
3476         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3477         * tree-ssa-pre.c (eliminate_insert): Adjust.
3478         (eliminate_dom_walker::before_dom_children): Likewise.
3479
3480 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3481
3482         * doc/invoke.texi (Optimization Options): Add
3483         -freorder-blocks-algorithm=.
3484         (Optimize Options) <-O>: Add -freorder-blocks.
3485         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3486         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3487         <-freorder-blocks>: Also enabled at levels -O and -Os.
3488         <-freorder-blocks-algorithm=>: Document new option.
3489
3490 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3491
3492         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3493         with flag_reorder_blocks_algorithm.
3494         * common.opt (freorder-blocks-algorithm=): New flag.
3495         (reorder_blocks_algorithm): New enum.
3496         * flag-types.h (reorder_blocks_algorithm): New enum.
3497         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3498         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3499
3500 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3501
3502         * bb-reorder.c: Add intro comment.
3503         (reorder_basic_blocks_software_trace_cache): Print a header to
3504         the dump file.
3505         (edge_order): New function.
3506         (reorder_basic_blocks_simple): New function.
3507         (reorder_basic_blocks): Choose between the STC and the simple
3508         algorithms (always choose the former).
3509
3510 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3511
3512         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3513         function, factored out from ...
3514         (reorder_basic_blocks): ... here.
3515
3516 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3517
3518         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3519         __attribute__(()) string.  Move dumping of function attributes to before
3520         function name.
3521
3522 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3523
3524         PR target/66870
3525         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3526         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3527         based on gold linker version.
3528         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3529         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3530         * configure, config.in: Regenerate.
3531
3532 2015-10-01  Alan Modra  <amodra@gmail.com>
3533
3534         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3535         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3536         (rs6000_output_mi_thunk): Likewise.
3537
3538 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3539
3540         * config/nvptx/mkoffload.c (process): Change offload data format.
3541
3542 2015-09-30  Jeff Law  <law@redhat.com>
3543
3544         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3545         with constant conditions.
3546         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3547         (remove_ctrl_stmt_and_useless_edges): No longer static.
3548         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3549         (remove_ctrl_stmt_and_useless_edges): Likewise.
3550
3551 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3552             Cesar Philippidis  <cesar@codesourcery.com>
3553
3554         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3555         (TARGET_GOACC_VALIDATE_DIMS): Override.
3556         * target.def (TARGET_GOACC): New target hook prefix.
3557         (validate_dims): New hook.
3558         * targhooks.h (default_goacc_validate_dims): New.
3559         * omp-low.c (oacc_validate_dims): New.
3560         (execute_oacc_device_lower): New.
3561         (default_goacc_validate_dims): New.
3562         (pass_data_oacc_device_lower): New.
3563         (pass_oacc_device_lower): New pass.
3564         (make_pass_oacc_device_lower): New.
3565         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3566         * passes.def (pass_oacc_device_lower): Add it.
3567         * doc/tm.texi: Rebuilt.
3568         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3569         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3570
3571 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3572
3573         PR rtl-optimization/67037
3574         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3575
3576 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3577
3578         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3579         * passes.c: Include tree-ssanames.h.
3580         (execute_function_todo): Flush the pending free SSA_NAMEs after
3581         eliminating unreachable basic blocks.
3582         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3583         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3584         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3585         (flush_ssanames_freelist): New function.
3586         (release_ssaname_fn): Put released names on the queue.
3587         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3588         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3589
3590 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3591
3592         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3593         (generate_target_descr_file, generate_target_offloadend_file)
3594         (generate_host_descr_file, prepare_target_image): Pass it on.
3595         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3596         (compile_native, main): Pass it on.
3597         * lto-wrapper.c (compile_offload_image): Likewise.
3598
3599 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3600             Ilya Verbin  <ilya.verbin@intel.com>
3601             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3602
3603         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3604         (prepare_target_image, main): Refactor argv building to use
3605         obstacks.
3606
3607 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3608
3609         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3610         * config/spu/spu.c (spu_expand_atomic_op): New function.
3611         * config/spu/spu.md (AINT): New mode iterator.
3612         (ATOMIC): New code iterator.
3613         (atomic_name, atomic_pred): New code predicates.
3614         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3615         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3616         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3617         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3618
3619 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3620
3621         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3622         debug insns.
3623         (scalar_chain::convert_reg): Likewise.
3624
3625 2015-09-30  Richard Biener  <rguenther@suse.de>
3626
3627         * builtins.c: Add comment that no new simplifications should
3628         be added here.
3629
3630 2015-09-30  Marek Polacek  <polacek@redhat.com>
3631
3632         PR tree-optimization/67690
3633         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3634         reset_flow_sensitive_info_in_bb.
3635         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3636         * tree-ssanames.c: Include "gimple-iterator.h".
3637         (reset_flow_sensitive_info_in_bb): New function.
3638         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3639
3640 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3641
3642         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3643         variable, replacing it with...
3644         (offload_abi): ... this new variable.  Adjust all users.
3645         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3646
3647 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3648
3649         * configure.ac: Remove extraneous ;;.
3650         * configure: Regenerate.
3651
3652 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3653
3654         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3655         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3656         predicate, disallow register for operand 2.
3657
3658 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3659
3660         * graphite-dependences.c (scop_get_dependences): Moved in down
3661         in order to be visible to its caller.
3662         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3663
3664 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3665             Aditya Kumar  <aditya.k7@samsung.com>
3666
3667         PR tree-optimization/67754
3668         * graphite-optimize-isl.c (optimize_isl): Call
3669         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3670
3671 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3672
3673         * builtins.c (expand_builtin_acc_on_device): Delete.
3674         (expand_builtin): Don't call it.
3675         (fold_builtin_1): Fold acc_on_device.
3676
3677 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3678
3679         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3680         (ix86_nsaved_sseregs): Likewise.
3681
3682 2015-09-29  Jeff Law  <law@redhat.com>
3683
3684         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3685         computation of unused value.
3686
3687         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3688         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3689         inline macro expansion.
3690
3691         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3692
3693         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3694         (gen_shl_sext): Likewise.
3695         * config/sh/sh.md (divsi3): Likewise.
3696         (imm->ext_dest_operand splitter): Likewise.
3697
3698 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3699             Aditya Kumar  <aditya.k7@samsung.com>
3700
3701         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3702         (nb_data_writes_in_bb): Remove.
3703         (split_pbb): Remove.
3704         (split_reduction_stmt): Remove.
3705         (is_reduction_operation_p): Remove.
3706         (phi_contains_arg): Remove.
3707         (follow_ssa_with_commutative_ops): Remove.
3708         (detect_commutative_reduction_arg): Remove.
3709         (detect_commutative_reduction_assign): Remove.
3710         (follow_inital_value_to_phi): Remove.
3711         (edge_initial_value_for_loop_phi): Remove.
3712         (initial_value_for_loop_phi): Remove.
3713         (used_outside_reduction): Remove.
3714         (detect_commutative_reduction): Remove.
3715         (translate_scalar_reduction_to_array_for_stmt): Remove.
3716         (remove_phi): Remove.
3717         (dr_indices_valid_in_loop): Remove.
3718         (close_phi_written_to_memory): Remove.
3719         (translate_scalar_reduction_to_array): Remove.
3720         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3721         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3722         (rewrite_commutative_reductions_out_of_ssa): Remove.
3723         (build_poly_scop): Remove call to
3724         rewrite_commutative_reductions_out_of_ssa.
3725
3726 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3727
3728         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3729         Add new insn types for vector load and store pairs.
3730         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3731         types "neon_ldp{,_q}".
3732         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3733         "neon_ldp{,_q}".
3734         (neon_store_complex): Add insn types "neon_stp{,_q}".
3735         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3736         "neon_{ldp,stp}_q".
3737
3738 2015-09-29  Jeff Law  <law@redhat.com>
3739
3740         * config/rx/constraints.md (Int08): Fix undefined left shift
3741         behaviour.
3742         (Sint08, Sint16, Sint24): Likewise.
3743         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3744
3745         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3746         behaviour.
3747
3748         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3749         left shift behaviour.
3750         * config/msp430/constraints.md ('L' constraint): Similarly.
3751         ('Ys' constraint): Similarly.
3752
3753 2015-09-29  Richard Biener  <rguenther@suse.de>
3754
3755         PR tree-optimization/67170
3756         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3757         the translate function pointer parameter to get the
3758         bool whether to disambiguate only by reference.
3759         (walk_non_aliased_vuses): Likewise.
3760         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3761         (get_continuation_for_phi_1): Likewise.
3762         (get_continuation_for_phi): Likewise.
3763         (walk_non_aliased_vuses): Likewise.
3764         * tree-ssa-sccvn.c (const_parms): New bitmap.
3765         (vn_reference_lookup_3): Adjust for interface change.
3766         Disambiguate parameters pointing to readonly memory.
3767         (free_scc_vn): Free const_parms.
3768         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3769
3770 2015-09-29  Richard Biener  <rguenther@suse.de>
3771
3772         PR tree-optimization/67741
3773         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3774         builtin calls with correct signature.
3775
3776 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
3777
3778         PR target/65105
3779         * config/i386/i386.c: Include dbgcnt.h.
3780         (has_non_address_hard_reg): New.
3781         (convertible_comparison_p): New.
3782         (scalar_to_vector_candidate_p): New.
3783         (remove_non_convertible_regs): New.
3784         (scalar_chain): New.
3785         (scalar_chain::scalar_chain): New.
3786         (scalar_chain::~scalar_chain): New.
3787         (scalar_chain::add_to_queue): New.
3788         (scalar_chain::mark_dual_mode_def): New.
3789         (scalar_chain::analyze_register_chain): New.
3790         (scalar_chain::add_insn): New.
3791         (scalar_chain::build): New.
3792         (scalar_chain::compute_convert_gain): New.
3793         (scalar_chain::replace_with_subreg): New.
3794         (scalar_chain::replace_with_subreg_in_insn): New.
3795         (scalar_chain::emit_conversion_insns): New.
3796         (scalar_chain::make_vector_copies): New.
3797         (scalar_chain::convert_reg): New.
3798         (scalar_chain::convert_op): New.
3799         (scalar_chain::convert_insn): New.
3800         (scalar_chain::convert): New.
3801         (convert_scalars_to_vector): New.
3802         (pass_data_stv): New.
3803         (pass_stv): New.
3804         (make_pass_stv): New.
3805         (ix86_option_override): Created and register stv pass.
3806         (flag_opts): Add -mstv.
3807         (ix86_option_override_internal): Likewise.
3808         * config/i386/i386.md (SWIM1248x): New.
3809         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3810         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3811         (*anddi3_doubleword): New.
3812         (*zext<mode>_doubleword): New.
3813         (*zextsi_doubleword): New.
3814         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3815         (*<code>di3_doubleword): New.
3816         * config/i386/i386.opt (mstv): New.
3817         * dbgcnt.def (stv_conversion): New.
3818
3819 2015-09-29  Tom de Vries  <tom@codesourcery.com>
3820
3821         * tree-cfg.c (dump_function_to_file): Dump function attributes.
3822
3823 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3824
3825         PR target/67716
3826         * config/sh/sh.c (sh_override_options_after_change): New.
3827         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3828         (sh_option_override): Move align_loops, align_jumps and
3829         align_functions handling into sh_override_options_after_change.
3830
3831 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3832
3833         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3834         (nvptx_record_offload_symbol): Record function execution geometry.
3835         * config/nvptx/mkoffload.c (process): Include launch geometry in
3836         function data.
3837         * omp-low.c (oacc_launch_pack): New.
3838         (replace_oacc_fn_attrib): New.
3839         (set_oacc_fn_attrib): New.
3840         (get_oacc_fn_attrib): New.
3841         (expand_omp_target): Create keyed varargs for GOACC_parallel call
3842         generation.
3843         * omp-low.h (get_oacc_fn_attrib): Declare.
3844         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3845         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3846         * tree.h (OMP_CLAUSE_EXPR): New.
3847         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3848
3849 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3850             Sebastian Pop  <s.pop@samsung.com>
3851
3852         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3853
3854 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3855             Sebastian Pop  <s.pop@samsung.com>
3856
3857         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3858         * graphite-scop-detection.c (struct sese_l): New type.
3859         (get_entry_bb): API for getting entry bb of SESE.
3860         (get_exit_bb): API for getting exit bb of SESE.
3861         (class debug_printer): New type.  Simple printer in debug mode.
3862         (trivially_empty_bb_p): New.  Return true when BB is empty or
3863         contains only debug instructions.
3864         (graphite_can_represent_expr): Call scalar_evoution_in_region
3865         instead of analyze_scalar_evolution.  Pass in scop instead of only
3866         the scop entry.
3867         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3868         scop entry.
3869         (stmt_simple_for_scop_p): Same.
3870         (harmful_stmt_in_bb): Same.
3871         (graphite_can_represent_loop): Deleted.
3872         (struct scopdet_info): Deleted.
3873         (scopdet_basic_block_info): Deleted.
3874         (build_scops_1): Deleted.
3875         (bb_in_sd_region): Deleted.
3876         (find_single_entry_edge): Deleted.
3877         (find_single_exit_edge): Deleted.
3878         (create_single_entry_edge): Deleted.
3879         (sd_region_without_exit): Deleted.
3880         (create_single_exit_edge): Deleted.
3881         (unmark_exit_edges): Deleted.
3882         (mark_exit_edges): Deleted.
3883         (create_sese_edges): Deleted.
3884         (build_graphite_scops): Deleted.
3885         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3886         (build_scops): Use the new scop_builder to build scops.
3887         (dot_all_scops_1): Use the new pretty printer.  Print loop father
3888         as well.
3889         (loop_body_is_valid_scop): New.  Return true if loop body is a
3890         valid scop.
3891         (class scop_builder): New.  Builds SCoPs for polyhedral
3892         optimizations.
3893         (scop_builder): New constructor.
3894         (static sese_l invalid_sese): sese_l with invalid edges.
3895         (get_sese): Get an sese (from a loop) if possible, invalid_sese
3896         otherwise.
3897         (get_nearest_dom_with_single_entry): Get nearest dominator of a
3898         basic_block with single entry.  Return NULL if we get to the
3899         beginning of a function.
3900         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3901         a basic_block with single exit.  Return NULL if we get to the
3902         beginning of a function.
3903         (print_sese): Pretty-print SESE.
3904         (merge_sese): Merge two SESEs if possible and return the new SESE.
3905         (build_scop_depth): Start building the SCoP within a loop nest.
3906         (build_scop_breadth): Start building the SCoP at a single loop
3907         depth.  Merge adjacent SESEs if valid.
3908         (can_represent_loop_1): Returns true if Graphite can represent
3909         loop inside SCoP.  Helper for can_represent_loop.
3910         (can_represent_loop): Returns true if Graphite can represent LOOP
3911         and all its nested loops in SCoP.
3912         (loop_is_valid_scop): Returns true if LOOP and all its nests
3913         constitute a valid SCoP.
3914         (region_has_one_loop): Returns true of a region has only one loop.
3915         (add_scop): Add SCoP to the list of valid scops.  Removes an
3916         already existing scop if it intersects with or subsumed by this one.
3917         (harmful_stmt_in_region): Returns true if SCoP has any statment
3918         which cannot be represented by Graphite.
3919         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3920         (remove_subscops): Remove any SCoP from the list of already found
3921         SCoPs, if subsumed by S1.
3922         (intersects): Return true if region bounded by SCoPs S1 and S2
3923         intersect.
3924         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3925         * graphite.c (print_graphite_scop_statistics):
3926         (print_graphite_statistics): Print SCoP info while debugging.
3927         (graphite_initialize): Early exit in case number of loops in a
3928         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3929         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3930         (graphite_finalize):
3931         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3932         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3933         (recompute_all_dominators): Recalculate POST_DOMINATORS.
3934         * tree-cfg.c (print_loops): Print the function name while printing
3935         loops.
3936
3937 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3938             Sebastian Pop  <s.pop@samsung.com>
3939
3940         PR tree-optimization/67700
3941         * graphite-sese-to-poly.c (parameter_index_in_region): Call
3942         invariant_in_sese_p_rec.
3943         (extract_affine): Same.
3944         (rewrite_cross_bb_scalar_deps): Call update_ssa.
3945         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
3946         * sese.h (invariant_in_sese_p_rec): Declare.
3947
3948 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
3949
3950         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3951
3952 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
3953
3954         Revert:
3955         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3956                     Jiong Wang  <jiong.wang@arm.com>
3957
3958         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3959         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3960         (REG_CLASS_NAMES): Likewise.
3961         (REG_CLASS_CONTENTS): Likewise.
3962         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3963         (aarch64_register_move_cost): Likewise.
3964         (aarch64_load_symref_appropriately): Invoke the new added pattern if
3965         possible.
3966         * config/aarch64/constraints.md (Uc0): New constraint.
3967
3968 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
3969
3970         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3971
3972 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
3973
3974         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3975         SECTION_EXCLUDE in XO mapping class.
3976
3977 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
3978
3979         PR target/54236
3980         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3981         and handle ne and eq codes.
3982         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3983         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
3984         CONST_INT_P.  Use reverse_condition.
3985         (sh_split_treg_set_expr): Likewise.
3986
3987 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
3988
3989         * config/arm/types.md (type): Add rotate_imm.
3990         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3991         ROR immediate case.
3992         (*rorsi3_insn_uxtw): Likewise.
3993         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3994         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3995         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3996
3997 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3998
3999         PR rtl-optimization/67481
4000         * ifcvt.c (contains_ccmode_rtx_p): New function.
4001         (insn_valid_noce_process_p): Use it.
4002
4003 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4004
4005         PR rtl-optimization/67456
4006         PR rtl-optimization/67464
4007         PR rtl-optimization/67465
4008         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4009         move in the mode of x.  Handle combination of complex and simple
4010         block pairs as well as the case when one is empty.
4011
4012 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4013
4014         * doc/gimple.texi: Update references to gimple_statement_base.
4015         * gdbhooks.py: Likewise.
4016         * gimple.h: Likewise.
4017
4018 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4019
4020         * config/sparc/driver-sparc.c: map LEON to leon3
4021
4022 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4023
4024         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4025           and make it inverse to change default
4026         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4027           supervisor mode
4028         * doc/invoke.texi: Document change of default
4029
4030 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
4031
4032         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4033         true on %f0 for a target without FPU.
4034         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4035         without FPU.
4036         (untyped_return): Do not load %f0 for a target without FPU.
4037
4038 2015-09-28  Andrew Pinski  <apinski@cavium.com>
4039
4040         * config/aarch64/aarch64.md (prefetch):
4041         Change the predicate of operand 0 to register_operand.
4042
4043 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
4044
4045         * config/i386/predicates.md (register_sse4nonimm_operand): New
4046         predicate.
4047         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4048         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4049         Use register_sse4nonimm_operand as operand 0 predicate.
4050         (*vec_extractv8hi_sse2): Remove insn pattern.
4051         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4052         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4053
4054 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4055             Kaz Kojima  <kkojima@gcc.gnu.org>
4056
4057         PR target/67391
4058         * config/sh/sh-protos.h (sh_lra_p): Declare.
4059         * config/sh/sh.c (sh_lra_p): Make non-static.
4060         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4061         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
4062         Expand into addsi3_scr if operands[2] if needed.
4063         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
4064         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
4065         (addsi3_scr, *addsi3): New insn_and_split patterns.
4066
4067 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
4068
4069         PR rtl-optimization/64164
4070         PR tree-optimization/67312
4071         PR middle-end/67340
4072         PR middle-end/67490
4073         PR bootstrap/67597
4074         * cfgexpand.c (parm_in_stack_slot_p): Remove.
4075         (ssa_default_def_partition): Remove.
4076         (get_rtl_for_parm_ssa_default_def): Remove.
4077         (set_rtl): Check that RTL assignments match expectations.
4078         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
4079         default def location for params and results.  Record SSA names
4080         or types in REG and MEM attrs, respectively.
4081         (set_parm_rtl): New.
4082         (expand_one_ssa_partition): Drop logic that assigned MEMs with
4083         unassigned addresses.
4084         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4085         deferred stack alloc vars.
4086         (expand_used_vars): Skip partitions holding parm default defs.
4087         Move adjust_one_expanded_partition_var loop...
4088         (pass_expand::execute): ... here.  Drop redundant assert.
4089         Adjust comments before the final loop over all ssa names.
4090         Require assigned rtl of parms and results to match exactly.
4091         Reset its attributes to match them, not any other variables in
4092         the same partition.
4093         (expand_debug_expr): Use entry value for PARM's default defs
4094         only iff they have zero nondebug uses.
4095         * cfgexpand.h (parm_in_stack_slot_p): Remove.
4096         (get_rtl_for_parm_ssa_default_def): Remove.
4097         (set_parm_rtl): Declare.
4098         * doc/invoke.texi: Improve wording.
4099         * explow.c (promote_decl_mode): Fix promote_function_mode for
4100         result decls not by reference.
4101         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4102         bypass TYPE_MODE to get the actual vector mode.
4103         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
4104         2015-08-19's changes as follows.  Drop include of
4105         basic-block.h and df.h.
4106         (rtl_for_parm): Remove.
4107         (maybe_reset_rtl_for_parm): Remove.
4108         (parm_in_unassigned_mem_p): Remove.
4109         (use_register_for_decl): Add logic for RESULT_DECLs matching
4110         assign_parms' behavior.
4111         (split_complex_args): Revert.
4112         (assign_parms_augmented_arg_list): Revert.  Add comment
4113         referencing the logic above.
4114         (assign_parm_adjust_stack_rtl): Revert.
4115         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
4116         of SET_DECL_RTL.  Set up a REG if the parm demands so.
4117         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
4118         calls into a single set_parm_rtl.  Set up a temporary RTL
4119         temporarily for expand_assignment.
4120         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4121         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4122         (assign_bounds): Revert.
4123         (assign_parms): Revert.  Use set_parm_rtl.
4124         (allocate_struct_function): Relayout result and parms of
4125         non-abstruct functions.
4126         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4127         result is not a hard reg, create a pseudo from the promoted
4128         mode of the default def.  Promote static chain mode.
4129         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4130         partition_has_default_def.  Set up
4131         partitions_for_parm_default_defs.
4132         (finish_out_of_ssa): Remove partition_has_default_def.
4133         Release partitions_for_parm_default_defs.
4134         * tree-outof-ssa.h (struct ssaexpand): Remove
4135         partition_has_default_def.  Add
4136         partitions_for_parm_default_defs.
4137         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4138         stor-layout.h.
4139         (build_ssa_conflict_graph): Fix conflict-detection of default
4140         defs of even unused default defs of params and results.
4141         (for_all_parms): New.
4142         (create_default_def): New.
4143         (register_default_def): New.
4144         (coalesce_with_default): New.
4145         (create_outofssa_var_map): Create default defs for all parms
4146         and results, and register their partitions.  Add GIMPLE_RETURN
4147         operands as coalesce candidates with results.  Add default
4148         defs of each parm or result as coalesce candidates with its
4149         other defs.  Mark each result def, and each default def of
4150         parms, as used_in_copy.
4151         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4152         with the ssa names, even anonymous ones.  Drop
4153         parm_in_stack_slot_p calls.  Require same signedness and
4154         alignment.
4155         (coalesce_ssa_name): Add coalesce candidates for all defs of
4156         each parm and result, even unused ones.
4157         (parm_default_def_partition_arg): New type.
4158         (set_parm_default_def_partition): New.
4159         (get_parm_default_def_partitions): New.
4160         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4161         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4162         parms and results as used.
4163         (verify_live_on_entry): Don't error out just because they're
4164         not live.
4165
4166 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4167
4168         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4169         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4170         (output_fde): Don't output length for debug_frame on AIX.
4171         (output_call_frame_info): Don't output length for debug_frame on AIX.
4172         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4173         HAVE_XCOFF_DWARF_EXTRAS.
4174         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4175         HAVE_XCOFF_DWARF_EXTRAS.
4176         (output_compilation_unit_header): Don't output length on AIX.
4177         (output_pubnames): Don't output length on AIX.
4178         (output_aranges): Delete argument. Compute length locally. Don't
4179         output length on AIX.
4180         (output_line_info): Don't output length on AIX.
4181         (dwarf2out_finish): Don't compute aranges_length.
4182         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4183         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4184         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4185         symbol decoration for AIX.
4186         (rs6000_xcoff_debug_unwind_info): New.
4187         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4188         for SECTION_DEBUG.
4189         (rs6000_xcoff_declare_function_name): Emit different
4190         .function pseudo-op when DWARF2_DEBUG. Don't call
4191         xcoffout_declare_function for DWARF2_DEBUG.
4192         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4193         Redefine.
4194         * config/rs6000/aix71.h: New.
4195         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4196         locations support.
4197         * configure: Regenerate.
4198         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4199         DWARF support.
4200
4201 2015-09-26  Jeff Law  <law@redhat.com>
4202
4203         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4204         behaviour.
4205         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4206         behaviour.
4207
4208         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4209         behaviour
4210
4211         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4212         undefined behaviour.
4213
4214         * config/cris/cris.md (asrandb): Fix left shift undefined
4215         behaviour.
4216         (asrandw): Likewise.
4217
4218 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4219
4220         PR target/61578
4221         * lra-constarints.c (match_reload): Check presence of the input pseudo
4222         in the output operand.
4223
4224 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4225
4226         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4227
4228 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4229
4230         * doc/invoke.texi (-fsanitize): Update URLs.
4231
4232 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4233
4234         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4235         if not using profile.
4236
4237 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4238
4239         PR pretty-print/67567
4240         * pretty-print.c (pp_string): Add gcc_checking_assert.
4241         * pretty-print.h (output_buffer_append_r): Likewise.
4242
4243 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4244
4245         PR target/67675
4246         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4247         addr2 individually.  Don't emit logical or insn if one is known to
4248         be aligned approriately.
4249         (sh_expand_cmpnstr): Likewise.
4250
4251 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4252
4253         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4254         __builtin_aarch64_fp[sc]r arguments into a register.
4255
4256 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4257
4258         * config.gcc (x86_archs): Replace lakemount with lakemont.
4259         (with_cpu): Likewise.
4260         (with_arch): Likewise.
4261         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4262         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4263         __tune_lakemount__ with __tune_lakemont__.
4264         * config/i386/i386.c (lakemount_cost): Renamed to ...
4265         (lakemont_cost): This.
4266         (m_LAKEMOUNT): Renamed to ...
4267         (m_LAKEMONT): This.
4268         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4269         (processor_target_table): Replace "lakemount" with "lakemont".
4270         (processor_alias_table): Likewise.
4271         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4272         PROCESSOR_LAKEMONT.
4273         (ix86_adjust_cost): Likewise.
4274         (ia32_multipass_dfa_lookahead): Likewise.
4275         * config/i386/i386.h (processor_type): Likewise.
4276         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4277         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4278         Lakemount with Lakemont.
4279
4280 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4281
4282         * config.gcc (x86_archs): Replace iamcu with lakemount.
4283         (with_cpu): Likewise.
4284         (with_arch): Likewise.
4285         * doc/invoke.texi: Likewise.
4286         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4287         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4288         __tune_iamcu__ with __tune_lakemount__.
4289         * config/i386/i386.c (iamcu_cost): Renamed to ...
4290         (lakemount_cost): This.
4291         (m_IAMCU): Renamed to ...
4292         (m_LAKEMOUNT): This.
4293         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4294         (processor_target_table): Replace "iamcu" with "lakemount".
4295         (processor_alias_table): Likewise.
4296         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4297         PROCESSOR_LAKEMOUNT.
4298         (ix86_adjust_cost): Likewise.
4299         (ia32_multipass_dfa_lookahead): Likewise.
4300         * config/i386/i386.h (processor_type): Likewise.
4301         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4302
4303 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4304
4305         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4306         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4307         Declare.
4308         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4309         (pa_expand_compare_and_swap_loop): New.
4310         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4311         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4312         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4313         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4314         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4315         Revise.
4316
4317 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4318
4319         PR other/57195
4320         * read-md.c (read_name): Allow mode iterators inside angle
4321         brackets in rtl expressions.
4322
4323 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4324
4325         PR target/61578
4326         * ira-color.c (update_allocno_cost): Add parameter.
4327         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4328         parameter.
4329
4330 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4331
4332         PR driver/67640
4333         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4334         but the last one, which is moved to the front to be processed
4335         first.
4336         * opts.c (enable_warning_as_error): Reject options that do not
4337         control warnings.
4338
4339 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4340
4341         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4342
4343 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4344
4345         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4346         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4347         (aarch64_cannot_force_const_mem): Likewise.
4348         (aarch64_classify_address): Likewise.
4349         (aarch64_classify_symbolic_expression): Likewise.
4350         (aarch64_print_operand): Likewise.
4351         (aarch64_classify_symbol): Likewise.
4352         (aarch64_mov_operand_p): Likewise.
4353         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4354         (aarch64_mov_operand): Likewise.
4355
4356 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4357
4358         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4359         for info->spe_gp_size.
4360
4361 2015-09-24  Richard Biener  <rguenther@suse.de>
4362
4363         PR lto/67699
4364         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4365         abstract origins.
4366
4367 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4368
4369         * tree-object-size.c (plus_stmt_object_size)
4370         (cond_expr_object_size): Change the formal parameters from gimple
4371         to gimple *.
4372         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4373         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4374         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4375
4376 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4377
4378         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4379         Check for ld -type pie on Solaris 11.x and 12.
4380         * configure: Regenerate.
4381         * config.in: Regenerate.
4382
4383         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4384
4385         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4386         (STARTFILE_SPEC): Use it.
4387         (ENDFILE_CRTEND_SPEC): Define.
4388         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4389         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4390         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4391         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4392         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4393         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4394         (ENDFILE_ARCH_SPEC): Define.
4395         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4396
4397 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4398
4399         * configure.ac (gcc_cv_solaris_crts): New test.
4400         * configure. Regenerate.
4401         * config.in: Regenerate.
4402         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4403         HAVE_SOLARIS_CRTS variant.
4404
4405 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4406
4407         * tree-inline.h (count_insns_seq): Delete prototype.
4408         (estimate_num_insns_seq): Define prototype.
4409         * tree-inline.c (count_insns_seq): Delete.
4410         (estimate_num_insns_seq): Remove static qualifier.
4411         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4412         with estimate_num_insns_seq.
4413
4414 2015-09-24  Richard Biener  <rguenther@suse.de>
4415
4416         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4417         members.
4418         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4419         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4420         offset.
4421         (ao_ref_init_from_vn_reference): Record clique and base in the
4422         built base.
4423         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4424
4425 2015-09-24  Richard Biener  <rguenther@suse.de>
4426
4427         PR tree-optimization/48885
4428         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4429         as not including any restrict tags from other pointers.
4430
4431 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4432
4433         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4434         character when appending to offload_targets.
4435
4436         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4437         offload targets by commas, not colons.
4438         * config.in: Regenerate.
4439         * configure: Likewise.
4440         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4441         instead of setting up the default offload targets here...
4442         (process_command): ..., do it here.
4443         libgomp/
4444         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4445         targets are separated by commas.
4446         * config.h.in: Regenerate.
4447
4448 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4449             Nathan Sidwell  <nathan@codesourcery.com>
4450
4451         * omp-low.h (omp_reduction_init_op): Declare.
4452         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4453         (omp_reduction_init): ... here.  Call it.
4454         * tree-parloops.c (initialize_reductions): Use
4455         omp_reduction_init_op.
4456
4457 2015-09-23   Richard Biener  <rguenther@suse.de>
4458
4459         PR middle-end/67662
4460         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4461         undefined overflow unless they will cancel out.
4462
4463 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4464
4465         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4466         insn emit.
4467
4468 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4469
4470         PR c/49655
4471         * opts.h (write_langs): Declare.
4472         * opts-global.c (write_langs): Make it extern.
4473
4474 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4475
4476         PR target/67391
4477         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4478         overlapping regs when matching the pattern.
4479
4480 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4481
4482         * config/aarch64/aarch64-simd.md
4483         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4484         (aarch64_float_truncate_hi_v4sf_le): New.
4485         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4486
4487 2015-09-23  Richard Biener  <rguenther@suse.de>
4488
4489         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4490         representatives for all restrict qualified pointer destinations.
4491
4492 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4493
4494         * config/i386/i386.md (define_code_attr mshift): New.
4495         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4496         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4497         only.
4498         (define_insn "*k<logic><mode>"): Use new iterator name.
4499         (define_insn "*<mshift><mode>3"): New.
4500
4501 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4502
4503         PR middle-end/67649
4504         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4505         mark the block as accessible.
4506
4507 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4508
4509         * function.c (thread_prologue_and_epilogue_insns): Delete
4510         orig_entry_edge argument to try_shrink_wrapping.
4511         * shrink-wrap.c (can_get_prologue): New function.
4512         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4513         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4514         can_get_prologue where needed.  Remove code that finds a single
4515         edge for the prologue.  Remove code that tests if any reg clobbered
4516         by the prologue is live on the prologue edge.  Remove code that finds
4517         the new prologue edge after duplicating blocks.  Make a new prologue
4518         block and edge.
4519         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4520
4521 2015-09-22  Jeff Law  <law@redhat.com>
4522
4523         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4524         behavior.
4525
4526 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4527
4528         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4529         -Wtemplates, -Wnamespaces): Document.
4530
4531 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4532
4533         PR tree-optimization/67671
4534         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4535         pointer references as restrict.
4536
4537 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4538
4539         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4540         'reg + reloc' cases, allow first operand to be non-REG, and use
4541         force_reg() to enforce address pattern.
4542
4543 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4544
4545         PR target/67480
4546         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4547         (define_mode_iterator VI12_AVX_AVX512F): New.
4548         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4549         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4550         (define_insn "*<code><mode>3"): ... Into new pattern using
4551         VI12_AVX_AVX512F iterators without masking.
4552
4553 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4554
4555         * config.gcc: Support "skylake-avx512".
4556         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4557         PROCESSOR_SKYLAKE_AVX512.
4558         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4559         (processor_target_table): Add "skylake-avx512".
4560         (PTA_SKYLAKE_AVX512): Define.
4561         (ix86_option_override_internal): Add "skylake_avx512".
4562         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4563         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4564         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4565         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4566         * doc/invoke.texi (skylake-avx512): New.
4567
4568 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4569
4570         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4571         operand in pattern.
4572         (define_insn "kunpcksi"): Ditto.
4573         (define_insn "kunpckdi"): Ditto.
4574
4575 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4576
4577         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4578         iterator instead of fixed modes.
4579
4580 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4581
4582         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4583         Adjust declaration.
4584         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4585         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4586         out_result.  Update to support update-fetch operations.
4587         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4588         Adjust for change to aarch64_gen_atomic_ldop.
4589         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4590         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4591         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4592         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4593         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4594
4595 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4596
4597         * config/aarch64/aarch64-protos.h
4598         (aarch64_atomic_ldop_supported_p): Declare.
4599         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4600         (enum aarch64_atomic_load_op_code): New.
4601         (aarch64_emit_atomic_load_op): New.
4602         (aarch64_gen_atomic_ldop): Update to support load-operate
4603         patterns.
4604         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4605         to an expander.
4606         (aarch64_atomic_<atomic_optab><mode>): New.
4607         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4608         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4609         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4610         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4611
4612 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4613
4614         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4615         (UNSPECV_ATOMIC_LDOP_OR): New.
4616         (UNSPECV_ATOMIC_LDOP_BIC): New.
4617         (UNSPECV_ATOMIC_LDOP_XOR): New.
4618         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4619         (ATOMIC_LDOP): New.
4620         (atomic_ldop): New.
4621         (aarch64_atomic_load<atomic_ldop><mode>): New.
4622
4623 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4624
4625         * config/aarch64/aarch64.md
4626         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4627         pattern.
4628
4629 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4630
4631         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4632         Declare.
4633         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4634         (aarch64_gen_atomic_ldop): New.
4635         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4636         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4637         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4638         (atomic_exchange<mode>): Replace with an expander.
4639         (aarch64_atomic_exchange<mode>): New.
4640         (aarch64_atomic_exchange<mode>_lse): New.
4641         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4642         (aarch64_atomic_swp<mode>): New.
4643
4644 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4645
4646         * tree-inline.c (expand_call_inline): Use inform for extra note.
4647         Do not give a note with UNKNOWN_LOCATION.
4648         Replace input_location with gimple_location (stmt).
4649         Use true/false instead of TRUE/FALSE.
4650
4651 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4652
4653         PR tree-optimization/67666
4654         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4655         with single field non-conservative.
4656
4657 2015-09-21  David S. Miller  <davem@davemloft.net>
4658
4659         PR/67622
4660         Revert:
4661         2015-09-11  David S. Miller  <davem@davemloft.net>
4662
4663         * config/sparc/constraints.md: Make "U" constraint a real register
4664         constraint.
4665         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4666         (D_MODES, DF_MODES): Add missing cast.
4667         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4668         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4669         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4670         cost to 8.
4671         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4672         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4673         provide these insn when flag_pic.
4674
4675         2015-09-17  David S. Miller  <davem@davemloft.net>
4676
4677         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4678         Declare.
4679         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4680         function.
4681         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4682         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4683         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4684         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4685         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4686         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4687         provide when flag_pic.
4688
4689 2015-09-21  Jeff Law  <law@redhat.com>
4690
4691         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4692         behavior.
4693
4694 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4695
4696         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4697
4698 2015-09-21  Richard Biener  <rguenther@suse.de>
4699
4700         * passes.c (rest_of_decl_compilation): Do not call
4701         dwarf2out_early_global_decl for aliases.
4702
4703 2015-09-21  Richard Biener  <rguenther@suse.de>
4704
4705         PR debug/67664
4706         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4707         attribute parameter.  Early exit if either DW_AT_const_value
4708         or DW_AT_location are present already.
4709         (gen_variable_die): Adjust caller.
4710         (dwarf2out_late_global_decl): Likewise.
4711
4712 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4713
4714         PR target/67657
4715         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4716         sh_peephole_emit_move_insn): Add new functions.
4717         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4718         sh_peephole_emit_move_insn): Declere them.
4719         * config/sh/sh.md: Use them in various peephole2 patterns.
4720
4721 2015-09-21  Richard Biener  <rguenther@suse.de>
4722
4723         PR middle-end/67651
4724         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4725         address with -fno-delete-null-pointer-checks.
4726
4727 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4728
4729         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4730         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4731         (reduc_uplus_v16qi): Remove.
4732
4733         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4734         (reduc_<VEC_reduc_name>_v2df): Remove.
4735         (reduc_<VEC_reduc_name>_v4sf): Remove.
4736         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4737
4738         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4739         gen_ function by removing * prefix.
4740         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4741
4742 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4743
4744         PR middle-end/60832
4745         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4746         Print i_bound without converting it to a tree.
4747
4748 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4749
4750         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4751         operands[4] operands[5] swap with std::swap, removed tmp variable.
4752         (arm_evpc_neon_vzip): Replaced in0/in1 and
4753         out0/out1 swaps with std::swap, removed x variable.
4754         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4755         out0/out1 swaos with std::swap, removed x variable.
4756         (arm_expand_vec_perm_const_1): Replaced
4757         d->op0/d->op1 swap with std::swap, removed x variable.
4758         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4759         out0/out1 swaps with std::swap, removed x variable.
4760
4761 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4762
4763         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4764         sysroot/usr/lib/32api for additional win32 libraries,
4765         fixes failing Cygwin bootstrapping.
4766
4767 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4768
4769         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4770
4771 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4772
4773         PR target/67126
4774         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4775         (*mov_t_msb_neg): Rewrite negc pattern.
4776
4777 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4778
4779         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4780         immediate generation code.
4781
4782 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4783
4784         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4785         redundant immediate generation code.
4786
4787 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4788
4789         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4790         (AARCH64_NUM_BITMASKS): Remove.
4791         (aarch64_bitmasks_cmp): Remove.
4792         (aarch64_build_bitmask_table): Remove.
4793
4794 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4795
4796         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4797         slow immediate matching loops with a faster algorithm.
4798
4799 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4800
4801         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4802         faster algorithm.
4803
4804 2015-09-20  Jeff Law  <law@redhat.com>
4805
4806         PR tree-optimization/47679
4807         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4808         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4809         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4810         (thread_through_normal_block): Use record_temporary_equivalences.
4811
4812 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
4813
4814         * coretypes.h (gimple): Change typedef to be a forward declaration.
4815         * gimple.h (gimple_statement_base): rename to gimple.
4816         * (all functions and types using gimple): Adjust.
4817         * *.[ch]: Likewise.
4818
4819 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
4820             David Edelsohn  <dje.gcc@gmail.com>
4821
4822         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4823         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4824         (EH_FRAME_THROUGH_COLLECT2): Define.
4825         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4826         (ASM_OUTPUT_DWARF_PCREL): Define.
4827         (ASM_OUTPUT_DWARF_DATAREL): Define.
4828
4829 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
4830
4831         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4832         of TARGET_ELF32.
4833
4834 2015-09-18  Jeff Law  <law@redhat.com>
4835
4836         PR tree-optimization/47679
4837         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
4838         it here ...
4839         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4840         object.  Update constructor.
4841         (pass_dominator::execute):  Corresponding chagnes to declaration
4842         and initialization of avail_exprs_stack.  Update constructor call
4843         for dom_opt_dom_walker object.
4844         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
4845         it down to children as needed.
4846         (record_equivalences_from_incoming_edge): Likewise.
4847         (eliminate_redundant_computations): Likewise.
4848         (record_equivalences_from_stmt): Likewise.
4849         (simplify_stmt_for_jump_threading): Likewise.
4850         (record_temporary_equivalences): Likewise.
4851         (optimize_stmt): Likewise.
4852         (dom_opt_dom_walker::thread_across_edge): Update access to
4853         avail_exprs_stack object and pass it to children as needed.
4854         (dom_opt_dom_walker::before_dom_children): Similarly.
4855         (dom_opt_dom_walker::after_dom_children): Similarly.
4856         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4857         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4858         Add avail_expr_stack argument.  Pass it to children as needed.
4859         (dummy_simplify): Likewise.
4860         (simplify_control_stmt_condition): Likewise.
4861         (thread_around_empty_blocks): Likewise.
4862         (thread_through_normal_block): Likewise.
4863         (thread_across_edge): Likewise.
4864         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4865         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4866
4867         PR tree-optimization/47679
4868         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
4869         it here ...
4870         (dom_opt_dom_walker): New private member holding the const_and_copies
4871         object.  Update constructor.
4872         (pass_dominator::execute): Corresponding changes to declaration
4873         and initialization of const_and_copies.  Update constructor call
4874         for the dom_opt_dom_walker object.
4875         (record_temporary_equivalences): Accept const_and_copies argument
4876         pass it down to children as needed.
4877         (record_equality): Likewise.
4878         (record_equivalences_from_incoming_edge): Likewise.
4879         (cprop_into_successor_phis, optimize_stmt): Likewise.
4880         (eliminate_redundant_computations): Likewise.
4881         (dom_opt_dom_walker::thread_across_edge): Update access to
4882         const_and_copies object and pass it to children as needed.
4883         (dom_opt_dom_walker::before_dom_children): Similarly.
4884         (dom_opt_dom_walker::after_dom_children): Similarly.
4885
4886         PR tree-optimization/47679
4887         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
4888         it into the avail_exprs_stack class.
4889         (pass_dominator::execute): Corresponding changes to declaration
4890         and initialization of avail_exprs.  Pass avail_exprs to
4891         dump_dominator_optimization_stats.
4892         (record_cond): Extract avail_exprs from avail_exprs_stack.
4893         (lookup_avail_expr): Similarly.
4894         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
4895         position in file.
4896         (dump_dominator_optimization_stats): Make static and prototype.
4897         Add argument for the hash table to dump.
4898         (debug_dominator_optimization_stats): Remove.
4899         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4900         prototype.
4901         (debug_dominator_optimization_stats): Similarly.
4902         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4903         "void" in prototype for pop_to_marker method.  Add accessor method
4904         for the underlying avail_exprs table.
4905
4906         * tree-ssa-threadedge.c: Remove trailing whitespace.
4907
4908 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
4909
4910         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4911         unsigned.
4912         (pa_ldil_cint_p): Likewise.
4913         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4914         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4915         Update callers.
4916         * config/pa/pa.md: Likewise.
4917
4918 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
4919
4920         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4921         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4922         (diagnostic_show_locus): Likewise.
4923         (diagnostic_print_caret_line): Likewise.
4924         * diagnostic-show-locus.c: New file.
4925
4926 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
4927
4928         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4929         "back" parameter. Declare label in #if block.
4930
4931 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
4932
4933         PR middle-end/67619
4934         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4935         the address to a register.
4936
4937 2015-09-18  Jeff Law  <law@redhat.com>
4938
4939         PR tree-optimization/47679
4940         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4941         * tree-ssa-dom.c: Remove unnecessary header includes.
4942         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4943         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4944         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4945         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4946         (pass_phi_only_cprop::execute): Likewise.
4947         (make_pass_phi_only_cprop): Likewise.
4948         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
4949         uses of file scoped statics by passing the required objects
4950         as parameters wherever needed.
4951
4952 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
4953             David Edelsohn  <dje.gcc@gmail.com>
4954
4955         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4956         EH_FRAME_THROUGH_COLLECT2.
4957         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4958         DW_EH_PE_datarel.
4959         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4960         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
4961         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4962         * except.c (switch_to_exception_section): Use a read-only section
4963         even if EH_FRAME_SECTION_NAME is undefined.
4964         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4965         * collect2.c (write_c_file_stat): Provide dbase on AIX.
4966         (scan_prog_file): Don't export __dso_handle nor
4967         __gcc_unwind_dbase.
4968         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4969         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4970         (ASM_OUTPUT_DWARF_PCREL): Define.
4971         (ASM_OUTPUT_DWARF_DATAREL): Define.
4972         (EH_FRAME_THROUGH_COLLECT2): Define.
4973         (EH_FRAME_IN_DATA_SECTION): Delete.
4974         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4975         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4976         Declare.
4977         (rs6000_asm_output_dwarf_datarel): Declare.
4978         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4979         (rs6000_aix_asm_output_dwarf_datarel): New.
4980         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4981         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4982         (EH_FRAME_THROUGH_COLLECT2): Define.
4983         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4984         (EH_FRAME_THROUGH_COLLECT2): Define.
4985         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4986         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4987         (EH_FRAME_THROUGH_COLLECT2): New.
4988         (ASM_OUTPUT_DWARF_DATAREL): New.
4989         * doc/tm.texi: Regenerate.
4990
4991 2015-09-18  Richard Biener  <rguenther@suse.de>
4992
4993         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4994         we're in early phase.
4995         (schedule_generic_params_dies_gen): Likewise.
4996         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4997         work as possible, retaining unhandled cases.
4998         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4999         clear out generic_type_instances at the end.
5000         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5001         (dwarf2out_early_finish): ... here.  Do most of
5002         gen_remaining_tmpl_value_param_die_attribute here.
5003
5004 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
5005
5006         PR tree-optimization/67283
5007         * tree-sra.c (type_consists_of_records_p): Rename to...
5008         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5009         (completely_scalarize_record): Rename to...
5010         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5011         (scalarize_elem): New.
5012         (analyze_all_variable_accesses): Follow renamings.
5013
5014 2015-09-18  Richard Biener  <rguenther@suse.de>
5015
5016         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5017         in early-dwarf.
5018
5019 2015-09-18  Richard Biener  <rguenther@suse.de>
5020
5021         PR tree-optimization/66142
5022         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5023         treat MEM[&x] and x the same.
5024         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5025         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5026         when we simplified sth.
5027         (vn_reference_maybe_forwprop_address): Likewise.
5028         (valueize_refs_1): When we simplified through
5029         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5030         set valueized_anything to true.
5031         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5032         one ref kills the other instead of just a offset-based test.
5033         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5034         for the operand_equal_p test to compare bases and also compare
5035         sizes.
5036
5037 2015-09-17  Christian Bruel  <christian.bruel@st.com>
5038
5039         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5040
5041 2015-09-17  Richard Henderson  <rth@redhat.com>
5042
5043         PR libstdc++/65913
5044         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5045         pointers that encode the alignment of the object.
5046
5047 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5048
5049         PR rtl-optimization/66790
5050         * df-problems.c (LIVE): Amend documentation.
5051
5052 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
5053
5054         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5055         and optabs-tree.o.
5056         (GTFILES): Replace optabs.c with optabs-libfunc.c.
5057         * genopinit.c (main): Add an include guard to insn-opinit.h.
5058         Protect the rtx_code parts with NUM_RTX_CODE.
5059         * optabs.h: Split parts out to...
5060         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5061         * optabs.c: Split parts out to...
5062         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5063         * cilk-common.c: Include optabs-query.h rather than optabs.h.
5064         * fold-const.c: Likewise.
5065         * target-globals.c: Likewise.
5066         * tree-if-conv.c: Likewise.
5067         * tree-ssa-forwprop.c: Likewise.
5068         * tree-ssa-loop-prefetch.c: Likewise.
5069         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5070         Remove unncessary include files.
5071         * tree-ssa-phiopt.c: Likewise.
5072         * tree-ssa-reassoc.c: Likewise.
5073         * tree-switch-conversion.c: Likewise.
5074         * tree-vect-data-refs.c: Likewise.
5075         * tree-vect-generic.c: Likewise.
5076         * tree-vect-loop.c: Likewise.
5077         * tree-vect-patterns.c: Likewise.
5078         * tree-vect-slp.c: Likewise.
5079         * tree-vect-stmts.c: Likewise.
5080         * tree-vrp.c: Likewise.
5081         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5082         rather than optabs.h.
5083         * expr.c: Include optabs-tree.h.
5084         * function.c: Likewise.
5085
5086 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5087
5088         PR middle-end/65958
5089         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5090         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5091         * config/arm/arm.c: Include common/common-target.h.
5092         (use_return_insn): Return 0 if the static chain register was saved
5093         above a non-APCS frame.
5094         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5095         (struct scratch_reg): New.
5096         (get_scratch_register_on_entry): New function.
5097         (release_scratch_register_on_entry): Likewise.
5098         (arm_emit_probe_stack_range): Likewise.
5099         (output_probe_stack_range): Likewise.
5100         (arm_expand_prologue): Factor out code dealing with the IP register
5101         for nested function and adjust it for stack checking.
5102         Invoke arm_emit_probe_stack_range if static builtin stack checking
5103         is enabled.
5104         (thumb1_expand_prologue): Sorry out if static builtin stack checking
5105         is enabled.
5106         (arm_expand_epilogue): Add the saved static chain register, if any, to
5107         the amount of pre-pushed registers to pop.
5108         (arm_frame_pointer_required): Return true if static stack checking is
5109         enabled and we want to catch the exception with the EABI unwinder.
5110         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5111         (UNSPEC_PROBE_STACK_RANGE): Likewise.
5112         * config/arm/arm.md (probe_stack): New insn.
5113         (probe_stack_range): Likewise.
5114
5115 2015-09-17  Richard Biener  <rguenther@suse.de>
5116
5117         * genmatch.c (parser::parse_expr): Improve error message
5118         for mis-placed flags.
5119
5120 2015-09-17  Richard Biener  <rguenther@suse.de>
5121
5122         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5123         debug hook when we created a varpool node.
5124         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5125         dwarf2out_early_global_decl, when not just add location or
5126         value attributes to existing DIEs.
5127
5128 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5129
5130         * config/aarch64/aarch64.md (copysigndf3): New.
5131         (copysignsf3): Likewise.
5132
5133 2015-09-17  David S. Miller  <davem@davemloft.net>
5134
5135         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5136         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5137         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5138         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5139         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5140         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5141         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5142         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5143         provide when flag_pic.
5144
5145 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5146
5147         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5148         object_allocator change.
5149
5150 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5151
5152         PR tree-optimization/66388
5153         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5154         (dump_iv): Dump no_overflow information.
5155         (alloc_iv): Initialize new field for struct iv.
5156         (mark_bivs): Count number of no_overflow bivs.
5157         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5158         functions.
5159         (idx_find_step): Call new functions above.
5160         (add_candidate_1, add_candidate): New paramter.
5161         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5162         (get_computation_aff): Simplify convertion of cand for BIV.
5163         (get_computation_cost_at): Step cand's base if necessary.
5164
5165 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5166
5167         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5168         parameter.
5169         (tree_simplify_using_condition): Ditto.
5170         (simplify_using_initial_conditions): Ditto.
5171         (loop_exits_before_overflow): Pass new argument to function
5172         simplify_using_initial_conditions.  Remove case for type conversions
5173         simplification.
5174         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5175         parameter.
5176         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5177         in iv base using loop initial conditions.
5178
5179 2015-09-16  Jeff Law  <law@redhat.com>
5180
5181         PR tree-optimization/47679
5182         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5183         (free_all_edge_infos): Use it.
5184         (allocate_edge_info): Free preexisting edge info data.
5185         (pass_dominator::execute): Set up initial edge info structures.
5186         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5187         thread_across_edge.
5188         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5189         If non-null, then push/pop markers appropriately.
5190         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5191         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5192         thread-across_edge.
5193
5194 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5195
5196         * config/ft32/ft32.c: Fix the memory address space predicate.
5197
5198 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5199
5200         PR target/67573
5201         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5202         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5203
5204 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5205
5206         * toplev.h (check_global_declaration): Remove declaration.
5207         * toplev.c (check_global_declaration): Move to ...
5208         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5209         (analyze_functions): Update call.
5210
5211 2015-09-16  David S. Miller  <davem@davemloft.net>
5212
5213         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5214         lowpart of a SUBREG has offset zero.
5215
5216 2015-09-16  Jeff Law  <law@redhat.com>
5217
5218         PR tree-optimization/47679
5219         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5220         tree-ssa-scopedtables.h.
5221         (struct hashable_expr, class expr_hash_elt): Likewise.
5222         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5223         Move associated methods into tree-ssa-scopedtables.c.
5224         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5225         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5226         (add_hashable_expr): Likewise.
5227         (record_cond): Delete element directly.
5228         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5229         private copy ctor and assignment operator methods.
5230         (expr_elt_hasher): Inline trivial methods.
5231         (initialize_expr_from_cond): Prototype.
5232         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5233         methods that were previously in tree-ssa-dom.c.  Improve various
5234         comments.
5235
5236 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5237
5238         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5239
5240 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5241
5242         PR bootstrap/67587
5243         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5244         fixup_partitions.
5245
5246 2015-09-16  Richard Biener  <rguenther@suse.de>
5247
5248         PR middle-end/67253
5249         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5250         location of possibly shared trees.
5251
5252 2015-09-16  Richard Biener  <rguenther@suse.de>
5253
5254         PR middle-end/67271
5255         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5256
5257 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5258
5259         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5260         offset and size computations instead of HOST_WIDE_INT.
5261
5262 2015-09-16  Richard Biener  <rguenther@suse.de>
5263
5264         PR middle-end/67442
5265         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5266         result before builting a tree via wide_int_to_tree.
5267
5268 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5269
5270         * Makefile.in: Add memory-block.cc
5271         (pool_allocator::initialize): Use fixed block size.
5272         (pool_allocator::release): Use memory_block_pool.
5273         (pool_allocator::allocate): Likewise.
5274         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5275         object pools.
5276         * cfg.c (initialize_original_copy_tables): Likewise.
5277         * cselib.c (elt_list_pool, elt_loc_list_pool,
5278         cselib_val_pool): Likewise.
5279         * df-problems.c (df_chain_alloc): Likewise.
5280         * df-scan.c (df_scan_alloc): Likewise.
5281         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5282         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5283         group_info_pool, deferred_change_pool): Likewise.
5284         * et-forest.c (et_nodes, et_occurrences): Likewise.
5285         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5286         ipcp_agg_lattice_pool): Likewise.
5287         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5288         * ipa-profile.c (histogram_pool): Likewise.
5289         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5290         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5291         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5292         * ira-color.c (update_cost_record_pool): Likewise.
5293         * lra-lives.c (lra_live_range_pool): Likewise.
5294         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5295         * memory-block.cc: New file.
5296         * memory-block.h: New file.
5297         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5298         * sched-deps.c (sched_deps_init): Likewise.
5299         * sel-sched-ir.c (sched_lists_pool): Likewise.
5300         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5301         * tree-sra.c (access_pool): Likewise.
5302         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5303         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5304         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5305         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5306         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5307         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5308         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5309         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5310
5311 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5312
5313         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5314         definition.
5315         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5316         call0 ABI.
5317
5318 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5319
5320         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5321         to pass TLS call argument, according to current ABI.
5322         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5323         callx0 for TLS call, according to current ABI.
5324
5325 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5326
5327         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5328         on stack restore statements.
5329         (decide_copy_try_finally): Do not consider a stack restore statement as
5330         coming from sources.
5331
5332 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5333
5334         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5335         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5336
5337 2015-09-15  Jeff Law  <law@redhat.com>
5338
5339         PR tree-optimization/47679
5340         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5341         methods and private members.
5342         (avail_exprs_stack): Similarly.  Change type of global
5343         from a pair of expr_hash_elt_t to the new class.
5344         (expr_elt_hasher::hash): Corresponding changes.
5345         (expr_elt_hasher::equal): Similarly.
5346         (avail_expr_hash): Similarly.
5347         (pass_dominator::execute): Similarly.
5348         (dom_opt_dom_walker::thread_across_edge): Similarly.
5349         (record_cond): Similarly.
5350         (dom_opt_dom_walker::before_dom_children): Similarly.
5351         (dom_opt_dom_walker::after_dom_children): Similarly.
5352         (lookup_avail_expr): Likewise.
5353         (initialize_hash_element): Now a expr_hash_elt constructor.
5354         (initialize_hash_element_from_expr): Similarly.
5355         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5356         (free_expr_hash_elt): Call dtor for the element.
5357         (remove_local_expressions_from_table): Now the "pop_to_marker"
5358         method in the available_exprs_stack class.
5359         (avail_expr_stack::record_expr): Method factored out.
5360         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5361         Fix formatting.
5362         (hashable_expr_equal_p): Fix formatting.
5363
5364 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5365
5366         * input.h (location_get_source_line): Drop "expanded_location"
5367         param in favor of a file and line number.
5368         * input.c (location_get_source_line): Likewise.
5369         (dump_location_info): Update for change in signature of
5370         location_get_source_line.
5371         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5372
5373 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5374
5375         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5376         Bump to 4KB for SJLJ exceptions.
5377         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5378         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5379         * doc/tm.texi: Regenerate.
5380
5381 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5382
5383         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5384         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5385         Update prototype.
5386
5387 2015-09-15  Richard Biener  <rguenther@suse.de>
5388
5389         PR tree-optimization/67470
5390         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5391         structure for PHI hoisting by inserting a forwarder block
5392         if appropriate.
5393
5394 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5395
5396         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5397         (arm_option_print): New function.
5398
5399 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5400
5401         PR target/52144
5402         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5403         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5404         Remove flags parameter.
5405         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5406         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5407         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5408         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5409         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5410         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5411         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5412         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5413
5414 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5415
5416         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5417
5418         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5419         AARCH64_VALID_SIMD_DREG_MODE.
5420
5421 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5422
5423         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5424         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5425         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5426         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5427         aarch64_ld4_lane<mode>): Combine together, making...
5428         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5429         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5430         aarch64_st4_lane<mode>): Combine together, making...
5431         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5432         * config/aarch64/iterators.md (nregs): Add comment.
5433
5434 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5435
5436         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5437         Change operand mode from <V_TWO_ELEM> to BLK.
5438         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5439         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5440         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5441         (aarch64_ld2_lane<mode>): Likewise.
5442         (aarch64_st2_lane<VQ:mode>): Likewise.
5443         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5444
5445 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5446
5447         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5448         Change operand mode from <V_FOUR_ELEM> to BLK.
5449         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5450         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5451         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5452         (aarch64_ld4_lane<mode>): Likewise.
5453         (aarch64_st4_lane<mode>): Likewise.
5454         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5455
5456 2015-09-15  Richard Biener  <rguenther@suse.de>
5457
5458         PR middle-end/67563
5459         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5460         transfer EH info from old to new stmt.
5461         (replace_call_with_value): Likewise.
5462         (replace_call_with_call_and_fold): Likewise.
5463         (gimple_fold_builtin_memory_op): Likewise.
5464         (gimple_fold_builtin_memset): Likewise.
5465         (gimple_fold_builtin_stpcpy): Likewise.
5466         (gimple_fold_call): Likewise.
5467
5468 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5469
5470         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5471         comment.
5472         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5473         (aarch64_simd_intEI_type_node): Likewise.
5474         (aarch64_simd_builtin_std_type): Remove EImode case.
5475         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5476         * config/aarch64/aarch64-modes.def: Remove EImode.
5477
5478 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5479
5480         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5481         Change operand mode from <V_THREE_ELEM> to BLK.
5482         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5483         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5484         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5485         (aarch64_ld3_lane<mode>): Likewise.
5486         (aarch64_st3_lane<mode>): Likewise.
5487         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5488
5489 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5490
5491         * config/aarch64/aarch64-simd.md
5492         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5493         Change all TImode operands to BLKmode.
5494         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5495         Change all EImode operands to BLKmode.
5496         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5497         Change all OImode operands to BLKmode.
5498
5499         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5500         and call set_mem_size.
5501         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5502
5503         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5504
5505 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5506
5507         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5508         to...
5509         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5510
5511         (vec_store_lanesci_lane<mode>): Rename to...
5512         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5513
5514         (vec_store_lanesxi_lane<mode>): Rename to...
5515         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5516
5517         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5518         aarch64_st4_lane<mode>): Follow renaming.
5519
5520 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5521
5522         * config/s390/s390.c (s390_const_operand_ok): Add missing
5523         brackets.
5524
5525 2015-09-15  Richard Biener  <rguenther@suse.de>
5526
5527         PR lto/67568
5528         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5529         initialize.
5530         * lto-streamer-out.c (clear_line_info): Likewise.
5531
5532 2015-09-15  Richard Biener  <rguenther@suse.de>
5533
5534         * doc/match-and-simplify.texi: Fix wording.
5535
5536 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5537
5538         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5539         unnecessary type conversion in op1.
5540
5541 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5542
5543         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5544         (dup_block_and_redirect): Delete function.
5545         (can_dup_for_shrink_wrapping): New function.
5546         (fix_fake_fallthrough_edge): New function.
5547         (try_shrink_wrapping): Rewrite function.
5548         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5549
5550 2015-09-14  Rich Felker  <dalias@libc.org>
5551
5552         * configure.ac: Change target pattern for sh TLS support
5553         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5554         * configure: Regenerate.
5555
5556 2015-09-14  Jeff Law  <law@redhat.com>
5557
5558         PR tree-optimization/47679
5559         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5560         type rather than void *.
5561
5562 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5563
5564         PR fortran/67460
5565         * diagnostic.c (diagnostic_initialize): Do not set
5566         some_warnings_are_errors.
5567         (diagnostic_finish): Use DK_WERROR count instead.
5568         (diagnostic_report_diagnostic): Do not set
5569         some_warnings_are_errors.
5570         * diagnostic.h (struct diagnostic_context): Remove
5571         some_warnings_are_errors.
5572
5573 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5574
5575         * config/sparc/predicates.md (const_all_ones_operand): Use
5576         CONSTM1_RTX to simplify definition.
5577
5578 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5579
5580         PR target/67061
5581         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5582         Handle call insns.
5583
5584 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5585
5586         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5587         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5588         OPT_fshow_column to handled saved option cases.
5589         (append_compiler_options): Do not skip the above added options.
5590
5591 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5592
5593         PR target/63304
5594         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5595         nopcrelative_literal_loads.
5596         (aarch64_classify_address): Likewise.
5597         (aarch64_constant_pool_reload_icode): Define.
5598         (aarch64_secondary_reload): Handle secondary reloads for
5599         literal pools.
5600         (aarch64_override_options): Handle nopcrelative_literal_loads.
5601         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5602         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5603         Define.
5604         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5605         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5606         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5607         predicate.
5608         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5609
5610 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5611
5612         PR middle-end/67401
5613         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5614         sync_compare_and_swap_optab libcall to target_oval.
5615
5616 2015-09-14  Marek Polacek  <polacek@redhat.com>
5617
5618         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5619         value.
5620         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5621
5622 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5623
5624         PR c/28901
5625         * toplev.c (check_global_declaration): Check and use
5626         warn_unused_const_variable.
5627         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5628         (-Wunused-variable): Remove non-constant. For C implies
5629         -Wunused-const-variable.
5630         (-Wunused-const-variable): New.
5631
5632 2015-09-14  Richard Biener  <rguenther@suse.de>
5633
5634         * doc/match-and-simplify.texi: Update for changed syntax
5635         of inner ifs and the new switch expression.
5636
5637 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5638
5639         * config/i386/haswell.md: New file describing Haswell pipeline.
5640         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5641         haswell-like processors.
5642         (ix86_reassociation_width): Increase reassociation width for 64-bit
5643         Haswell processor family.
5644         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5645
5646 2015-09-14  Richard Biener  <rguenther@suse.de>
5647
5648         * doc/match-and-simplify.texi: Fixup some formatting issues
5649         and document the 's' flag.
5650
5651 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5652             Eric Botcazou  <ebotcazou@adacore.com>
5653
5654         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5655         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5656         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5657         (TARGET_CPU_gr5): Likewise.
5658         (TARGET_CPU_gr6): Likewise.
5659         (MULTILIB_DEFAULTS): Likewise.
5660         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5661         for mcpu=gr5 and mcpu=gr6.
5662         (MULTILIB_DIRNAMES): Adjust accordingly.
5663
5664 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5665
5666         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5667         (mem_ref_p): Likewise.
5668         (outermost_indep_loop): Adjust.
5669         (mem_ref_in_stmt): Likewise.
5670         (determine_max_movement): Likewise.
5671         (mem_ref_alloc): Likewise.
5672         (record_mem_ref_loc): Likewise.
5673         (set_ref_stored_in_loop): Likewise.
5674         (mark_ref_stored): Likewise.
5675         (gather_mem_refs_stmt): Likewise.
5676         (mem_refs_may_alias_p): Likewise.
5677         (for_all_locs_in_loop): Likewise.
5678         (struct rewrite_mem_ref_loc): Likewise.
5679         (rewrite_mem_refs): Likewise.
5680         (struct first_mem_ref_loc_1): Likewise.
5681         (first_mem_ref_loc): Likewise.
5682         (struct sm_set_flag_if_changed): Likewise.
5683         (execute_sm_if_changed_flag_set): Likewise.
5684         (execute_sm): Likewise.
5685         (hoist_memory_references):
5686         (struct ref_always_accessed): Likewise.
5687         (ref_always_accessed_p): Likewise.
5688         (refs_independent_p): Likewise.
5689         (record_dep_loop): Likewise.
5690         (ref_indep_loop_p_1): Likewise.
5691         (ref_indep_loop_p_2): Likewise.
5692         (ref_indep_loop_p): Likewise.
5693         (can_sm_ref_p): Likewise.
5694         (find_refs_for_sm): Likewise.
5695         (tree_ssa_lim_finalize): Likewise.
5696
5697 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5698
5699         * dwarf2out.c (dw_attr_ref): Remove typedef.
5700         (dw_line_info_ref): Likewise.
5701         (pubname_ref): Likewise.
5702         (dw_ranges_ref): Likewise.
5703         (dw_ranges_by_label_ref): Likewise.
5704         (comdat_type_node_ref): Likewise.
5705         (get_AT): Adjust.
5706         (get_AT_low_pc): Likewise.
5707         (get_AT_hi_pc): Likewise.
5708         (get_AT_string): Likewise.
5709         (get_AT_flag): Likewise.
5710         (get_AT_unsigned): Likewise.
5711         (get_AT_ref): Likewise.
5712         (get_AT_file): Likewise.
5713         (remove_AT): Likewise.
5714         (print_die): Likewise.
5715         (check_die): Likewise.
5716         (die_checksum): Likewise.
5717         (attr_checksum_ordered): Likewise.
5718         (struct checksum_attributes): Likewise.
5719         (collect_checksum_attributes): Likewise.
5720         (die_checksum_ordered): Likewise.
5721         (same_die_p): Likewise.
5722         (is_declaration_die): Likewise.
5723         (clone_die): Likewise.
5724         (clone_as_declaration): Likewise.
5725         (copy_declaration_context): Likewise.
5726         (break_out_comdat_types): Likewise.
5727         (copy_decls_walk): Likewise.
5728         (output_location_lists): Likewise.
5729         (external_ref_hasher::hash): Likewise.
5730         (optimize_external_refs_1): Likewise.
5731         (build_abbrev_table): Likewise.
5732         (size_of_die): Likewise.
5733         (unmark_all_dies): Likewise.
5734         (size_of_pubnames): Likewise.
5735         (output_die_abbrevs): Likewise.
5736         (output_die): Likewise.
5737         (output_pubnames): Likewise.
5738         (add_ranges_num): Likewise.
5739         (add_ranges_by_labels): Likewise.
5740         (add_high_low_attributes): Likewise.
5741         (gen_producer_string): Likewise.
5742         (dwarf2out_set_name): Likewise.
5743         (new_line_info_table): Likewise.
5744         (prune_unused_types_walk_attribs): Likewise.
5745         (prune_unused_types_update_strings): Likewise.
5746         (prune_unused_types): Likewise.
5747         (resolve_addr): Likewise.
5748         (optimize_location_lists_1): Likewise.
5749         (index_location_lists): Likewise.
5750         (dwarf2out_finish): Likewise.
5751
5752 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5753
5754         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5755
5756 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5757
5758         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5759         (dump_asserts_for): Adjust.
5760         (register_new_assert_for): Likewise.
5761         (process_assert_insertions): Likewise.
5762         (insert_range_assertions): Likewise.
5763
5764 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5765
5766         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5767         and remove typedef.
5768         (new_temp_expr_table): Adjust.
5769         (free_temp_expr_table): Likewise.
5770         (version_to_be_replaced_p): Likewise.
5771         (make_dependent_on_partition): Likewise.
5772         (add_to_partition_kill_list): Likewise.
5773         (remove_from_partition_kill_list): Likewise.
5774         (add_dependence): Likewise.
5775         (finished_with_expr): Likewise.
5776         (process_replaceable): Likewise.
5777         (kill_expr): Likewise.
5778         (kill_virtual_exprs): Likewise.
5779         (mark_replaceable): Likewise.
5780         (find_replaceable_in_bb): Likewise.
5781         (find_replaceable_exprs): Likewise.
5782         (debug_ter): Likewise.
5783
5784 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5785
5786         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5787         (struct btr_user): Rename from btr_user_s.
5788         (struct btr_def): Rename from btr_def_s.
5789         (find_btr_def_group): Adjust.
5790         (add_btr_def): Likewise.
5791         (new_btr_user): Likewise.
5792         (note_other_use_this_block): Likewise.
5793         (compute_defs_uses_and_gen): Likewise.
5794         (link_btr_uses): Likewise.
5795         (build_btr_def_use_webs): Likewise.
5796         (block_at_edge_of_live_range_p): Likewise.
5797         (btr_def_live_range): Likewise.
5798         (combine_btr_defs): Likewise.
5799         (move_btr_def): Likewise.
5800         (migrate_btr_def): Likewise.
5801         (migrate_btr_defs): Likewise.
5802
5803 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5804
5805         * var-tracking.c (shared_hash_def): Rename to shared_hash.
5806         (shared_hash): Remove typedef.
5807         (struct dataflow_set): Adjust.
5808         (shared_hash_unshare): Likewise.
5809         (dataflow_set_merge): Likewise.
5810         (vt_initialize): Likewise.
5811         (vt_finalize): Likewise.
5812
5813 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5814
5815         * var-tracking.c (struct location_chain): Rename from
5816         location_chain_def.
5817         (struct variable_part): Adjust.
5818         (variable_htab_free): Likewise.
5819         (unshare_variable): Likewise.
5820         (get_init_value): Likewise.
5821         (get_addr_from_local_cache): Likewise.
5822         (drop_overlapping_mem_locs): Likewise.
5823         (val_reset): Likewise.
5824         (struct variable_union_info): Likewise.
5825         (variable_union): Likewise.
5826         (find_loc_in_1pdv): Likewise.
5827         (insert_into_intersection): Likewise.
5828         (intersect_loc_chains): Likewise.
5829         (canonicalize_loc_order_check): Likewise.
5830         (canonicalize_values_mark): Likewise.
5831         (canonicalize_values_star): Likewise.
5832         (canonicalize_vars_star): Likewise.
5833         (variable_merge_over_cur): Likewise.
5834         (remove_duplicate_values): Likewise.
5835         (variable_post_merge_new_vals): Likewise.
5836         (variable_post_merge_perm_vals): Likewise.
5837         (find_mem_expr_in_1pdv): Likewise.
5838         (dataflow_set_preserve_mem_locs): Likewise.
5839         (dataflow_set_remove_mem_locs): Likewise.
5840         (variable_part_different_p): Likewise.
5841         (onepart_variable_different_p): Likewise.
5842         (find_src_set_src): Likewise.
5843         (dump_var): Likewise.
5844         (set_slot_part): Likewise.
5845         (clobber_slot_part): Likewise.
5846         (delete_slot_part): Likewise.
5847         (vt_expand_var_loc_chain): Likewise.
5848         (emit_note_insn_var_location): Likewise.
5849         (vt_finalize): Likewise.
5850
5851 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5852
5853         * dse.c (store_info_t): Remove typedef.
5854         (group_info_t): Likewise.
5855         (const_group_info_t): Likewise.
5856         (deferred_change_t): Likewise.
5857         (get_group_info): Adjust.
5858         (free_store_info): Likewise.
5859         (canon_address): Likewise.
5860         (clear_rhs_from_active_local_stores): Likewise.
5861         (record_store): Likewise.
5862         (replace_read): Likewise.
5863         (check_mem_read_rtx): Likewise.
5864         (scan_insn): Likewise.
5865         (remove_useless_values): Likewise.
5866         (dse_step1): Likewise.
5867         (dse_step2_init): Likewise.
5868         (dse_step2_nospill): Likewise.
5869         (scan_stores_nospill): Likewise.
5870         (scan_reads_nospill): Likewise.
5871         (dse_step3_exit_block_scan): Likewise.
5872         (dse_step3): Likewise.
5873         (dse_step5_nospill): Likewise.
5874         (dse_step6): Likewise.
5875
5876 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5877
5878         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5879         (alias_set_entry): Remove typedef.
5880         (alias_set_subset_of): Adjust.
5881         (alias_sets_conflict_p): Likewise.
5882         (init_alias_set_entry): Likewise.
5883         (get_alias_set): Likewise.
5884         (new_alias_set): Likewise.
5885         (record_alias_subset): Likewise.
5886
5887 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
5888
5889         * doc/install.texi (Downloading the source): Mark up
5890         contrib/download_prerequisites properly and drop leading "./".
5891
5892 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5893
5894         * config/arc/arc.h: Remove define of STRUCT_VALUE.
5895         * config/lm32/lm32.h: Likewise.
5896         * config/mep/mep.h: Likewise.
5897         * config/visium/visium.h: Likewise.
5898         * system.h: Poison STRUCT_VALUE macro.
5899
5900 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
5901
5902         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5903         CONSTANT_P operands.
5904
5905 2015-09-11  David S. Miller  <davem@davemloft.net>
5906
5907         * config/sparc/constraints.md: Make "U" constraint a real register
5908         constraint.
5909         * config/sparc/sparc.c (TARGET_LRA_P): Define.
5910         (D_MODES, DF_MODES): Add missing cast.
5911         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5912         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5913         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5914         cost to 8.
5915         * config/sparc/sparc.h (PROMOTE_MODE): Define.
5916         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5917         provide these insn when flag_pic.
5918
5919 2015-09-11  Jeff Law  <law@redhat.com>
5920
5921         PR tree-optimization/47679
5922         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5923         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5924         member with m_.  Update inline member functions as necessary.  Add
5925         toplevel comment.
5926         * tree-ssa-scopedtables.c: Update const_and_copies's member
5927         functions to use m_ prefix to access the stack.
5928
5929 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5930
5931         * graphite-optimize-isl.c (disable_tiling): Remove.
5932         (get_schedule_for_band): Do not use disable_tiling.
5933         (get_prevector_map): Delete function.
5934         (enable_polly_vector): Remove.
5935         (get_schedule_for_band_list): Remove dead code.
5936
5937 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5938
5939         * graphite-optimize-isl.c (get_tile_map): Refactor.
5940         (get_schedule_for_band): Same.
5941         (getScheduleForBand): Same.
5942         (get_prevector_map): Same.
5943         (get_schedule_for_band_list): Same.
5944         (get_schedule_map): Same.
5945         (get_single_map): Same.
5946         (apply_schedule_map_to_scop): Same.
5947         (optimize_isl): Same.
5948
5949 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5950
5951         PR target/63304
5952         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5953         (movtf): Delete.
5954         * config/aarch64/iterators.md (GPF_TF_F16): New.
5955         (GPF_F16): Delete.
5956
5957 2015-09-10  Nathan Sidwell  <nathan@acm.org>
5958
5959         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5960         (nvptx_reorg): Adjust comments.
5961
5962 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
5963
5964         PR bootstrap/67363
5965         * configure.ac: Check if setenv and unsetenv are declared.
5966         * configure: Rebuild.
5967         * config.in: Rebuild.
5968         * system.h: Declare setenv and unsetenv if not declared.
5969
5970 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5971
5972         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5973         commentary to simplify permute mask adjustment equation.
5974         (special_handling_values): Add SH_VPERM.
5975         (const_load_sequence_p): New function.
5976         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5977         the mask loaded from the constant pool.
5978         (adjust_vperm): New function.
5979         (handle_special_swappables): Call adjust_vperm.
5980         (dump_swap_insn_table): Handle SH_VPERM.
5981
5982 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         * shrink-wrap.c (requires_stack_frame_p): Remove static.
5985         * shrink-wrap.h (requires_stack_frame_p): Put back.
5986
5987 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
5988
5989         * reload1.c (elimination_costs_in_insn): Locally turn
5990         -Wmaybe-uninitialized into a warning.
5991
5992 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
5993
5994         * shrink-wrap.c (requires_stack_frame_p): Make static.
5995         (prepare_shrink_wrap): Likewise.
5996         (dup_block_and_redirect): Likewise.
5997         * shrink-wrap.h: Remove declarations of those functions.
5998
5999 2015-09-10  Mark Wielaard  <mjw@redhat.com>
6000
6001         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6002
6003 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6004
6005         PR target/67506
6006         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6007         missing simplify_gen_subreg.
6008
6009 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6010
6011         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6012         the vector element is bigger than 64 bit.
6013
6014 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6015
6016         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6017         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6018
6019 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6020
6021         * config/s390/s390.c: Add V1TImode to constant pool modes.
6022
6023 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6024
6025         PR target/67439
6026         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6027         predicate.  Set predicable_short_it attr to "no".
6028
6029 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
6030
6031         PR rtl-optimization/67421
6032         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6033         left wide shift tranformation.
6034
6035 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
6036
6037         * common/config/arc/arc-common.c: Remove references to A5.
6038         * config/arc/arc-opts.h: Likewise.
6039         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6040         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6041         * config/arc/t-arc-newlib: Likewise.
6042
6043 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
6044
6045         * config/arc/arc.md (length): Fix attribute length for conditional
6046         executed instructions with long immediate.
6047
6048 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6049
6050         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6051         type for second alternative.
6052
6053 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
6054
6055         * doc/invoke.texi (Downloading GCC): Mention
6056         contrib/download_prerequisites script.
6057
6058 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
6059
6060         PR c++/67523
6061         * gimplify.c (gimplify_omp_for): If inner stmt is not found
6062         for combined loop, assert seen_error () and return GS_ERROR.
6063
6064         PR middle-end/67521
6065         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6066         if decl is already in outer->variables.
6067
6068         PR middle-end/67517
6069         * gimplify.c (gimplify_scan_omp_clauses): Instead of
6070         asserting that decl is not specified in octx->variables,
6071         break out of the loop if it is.
6072
6073         PR c++/67514
6074         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6075         iterator is not explicitly determined, but is defined inside
6076         of the combined workshare region, handle it like if it has
6077         DECL_EXPR in OMP_FOR_PRE_BODY.
6078
6079 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6080
6081         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6082         (*cmp<mode>): Add assembler spacing.
6083         (setcc_int<mode>, set_cc_float<mode>): Likewise.
6084         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6085         level.
6086         (write_func_decl_from_insn): Refactor argument loops & comma emission.
6087         (nvptx_expand_call): Likewise.
6088         (nvptx_output_call_insn): Likewise.
6089         (nvptx_reorg_subreg): Add spacing.
6090
6091 2015-09-09  Marek Polacek  <polacek@redhat.com>
6092
6093         PR middle-end/67512
6094         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6095         for comparisons.
6096
6097 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
6098
6099         PR c++/53184
6100         * doc/invoke.texi ([Wsubobject-linkage]): Document.
6101
6102 2015-09-09  Tom de Vries  <tom@codesourcery.com>
6103
6104         * params-list.h: Add missing copyright notice.
6105
6106 2015-09-09  Nathan Sidwell  <nathan@acm.org>
6107
6108         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6109         sel_truesi, not andsi.
6110
6111 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6112
6113         * config/arm/arm.md (*subsi3_compare0): Rename to...
6114         (subsi3_compare0): ... This.
6115         (modsi3): New define_expand.
6116         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6117         when operand is power of 2.
6118
6119 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6120
6121         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6122         (*neg<mode>2_compare0): Rename to...
6123         (neg<mode>2_compare0): ... This.
6124         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6125         Move check for speed inside the if-then-elses.  Reflect
6126         CSNEG sequence in MOD by power of 2 case.
6127
6128 2015-09-09  Alan Modra  <amodra@gmail.com>
6129
6130         PR target/67378
6131         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6132         reload replacement for PRE_MODIFY address reg.
6133
6134 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6135
6136         PR tree-optimization/53852
6137         * config.in: Regenerate.
6138         * configure: Regenerate.
6139         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6140         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6141         PARAM_MAX_ISL_OPERATIONS is reached.
6142         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6143         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6144         result equal to isl_stat_ok as the status now can be isl_error_quota.
6145         (subtract_commutative_associative_deps): Same.
6146         (compute_deps): Same.
6147
6148 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6149             Sebastian Pop  <s.pop@samsung.com>
6150
6151         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6152         Return the parameter if it was saved in corresponding
6153         parameter_rename_map of the region.
6154         (copy_def): Copy def from sese region to the newly created region.
6155         (copy_internal_parameters): Copy all the internal parameters defined
6156         within a region to the newly created region.
6157         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6158         translating isl to gimple.
6159         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6160         the loop-nest does not have any data-references.
6161         (build_graphite_scops): Create a scop only when there is at least one
6162         loop inside it.
6163         (contains_only_close_phi_nodes): Deleted.
6164         (print_graphite_scop_statistics): Deleted
6165         (print_graphite_statistics): Deleted
6166         (limit_scops): Deleted.
6167         (build_scops): Removed call to limit_scops.
6168         * sese.c (new_sese): Construct.
6169         (free_sese): Destruct.
6170         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6171         added.
6172         (set_rename): Pass sese region so that parameters inside the region can
6173         be added to its parameter_rename_map.
6174         (rename_uses): Pass sese region.
6175         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6176         generated in the header of the scop. For each SSA_NAME in the
6177         parameter_rename_map rename its usage.
6178         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6179         sese region.
6180         (scalar_evolution_in_region): If the tree t is invariant just return t.
6181         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6182         struct sese to keep track of all the parameters which need renaming.
6183         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6184         any data-refs.
6185         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6186
6187 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6188
6189         * Makefile.in (generated_files): Add params.list.
6190         (params.list, s-params.list): Add rule.
6191         * params.h (enum compiler_param): Include params-list.h.  Move define
6192         DEFPARAM, include params.def and undef DEFPARAM ...
6193         * params-list.h: ... here.  New file.
6194
6195 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6196
6197         * pretty-print.h (printer_fn): Fix typo in comment.
6198
6199 2015-09-07  Jeff Law  <law@redhat.com>
6200
6201         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6202
6203 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6204
6205         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6206         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6207         (arm_neon_fp16_hw): New.
6208
6209 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6210
6211         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6212         UNITS_PER_WORD >= 4.
6213
6214 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6215
6216         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6217         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6218         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6219         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6220         (aarch64_float_extend_lo_v2df): Rename to...
6221         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6222
6223         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6224         (float_extend_lo): Add v4sf.
6225
6226         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6227         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6228         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6229         (Vwide): New mode_attr.
6230
6231 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6232
6233         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6234         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6235         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6236         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6237         V4HF and V8HF variants to iterator.
6238
6239         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6240
6241         * config/aarch64/iterators.md (VDQF_F16): New.
6242         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6243
6244 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6245
6246         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6247         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6248         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6249         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6250         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6251         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6252         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6253         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6254         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6255         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6256         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6257         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6258         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6259         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6260         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6261         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6262         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6263         vld1q_dup_f16): New.
6264
6265 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6266
6267         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6268         Reparameterize to...
6269         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6270         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6271         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6272
6273         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6274         v8hf variant.
6275         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6276
6277         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6278
6279         * config/aarch64/iterators.md (VDF, Vdtype): New.
6280         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6281
6282 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6283
6284         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6285         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6286         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6287         Add __builtin_aarch64_simd_hf.
6288         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6289         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6290         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6291         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6292         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6293         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6294         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6295         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6296         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6297
6298         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6299         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6300         (VDC, Vdbl): Add V4HF.
6301
6302 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6303
6304         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6305         V4HFmode and V8HFmode.
6306         (aarch64_split_simd_move): Add case for V8HFmode.
6307         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6308         (aarch64_simd_builtin_std_type): Handle HFmode.
6309         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6310
6311         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6312         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6313         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6314
6315         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6316         Float16x8_t.
6317
6318         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6319         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6320         New typedefs.
6321         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6322         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6323         vst1q_lane_f16): New.
6324         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6325         (VALLDI_F16, VALL_F16): New.
6326         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6327         Add cases for V4HF and V8HF.
6328         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6329
6330 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6331
6332         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6333         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6334         vld4_dup): Add v4hf variant.
6335         (vget_high, vget_low): Add v8hf variant.
6336         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6337         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6338         v4hf and v8hf variants.
6339
6340         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6341         (VDX): Add V4HF.
6342         (V_DOUBLE): Add case for V4HF.
6343         (VQX): Add V8HF.
6344         (V_HALF): Add case for V8HF.
6345         (VDQX): Add V4HF, V8HF.
6346         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6347         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6348
6349         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6350         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6351         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6352         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6353         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6354         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6355         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6356         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6357         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6358
6359         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6360         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6361         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6362         Change VDX to VD_RE.
6363
6364         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6365         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6366         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6367
6368         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6369         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6370         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6371         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6372         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6373         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6374         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6375         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6376         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6377
6378 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6379
6380         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6381         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6382         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6383         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6384         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6385         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6386         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6387         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6388         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6389         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6390         New.
6391
6392 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6393
6394         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6395
6396         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6397
6398         * config/arm/arm-builtins.c (v8hf_UP): New.
6399         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6400
6401         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6402
6403         * config/arm/arm_neon.h (float16x8_t): New typedef.
6404
6405 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6406
6407         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6408         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6409         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6410         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6411         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6412         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6413         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6414         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6415         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6416         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6417
6418 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6419
6420         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6421         non-alphanumeric characters in the symbol name.
6422
6423 2015-09-07  Marek Polacek  <polacek@redhat.com>
6424
6425         PR inline-asm/67448
6426         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6427         a memory input.
6428
6429 2015-09-07  Marek Polacek  <polacek@redhat.com>
6430
6431         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6432
6433 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6434
6435         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6436         not warn.
6437
6438 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR middle-end/67452
6441         * tree-ssa-live.c: Include cfgloop.h.
6442         (remove_unused_locals): Clear loop->simduid if simduid is about
6443         to be removed from cfun->local_decls.
6444
6445 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6446
6447         PR target/65210
6448         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6449         attribute as well.
6450
6451 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6452
6453         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6454
6455 2015-09-04  Jeff Law  <law@redhat.com>
6456
6457         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6458         unnecessary constructor.  It's now trivial and implemented inside...
6459         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6460         constructor.  Add comments to various methods.  Remove unused
6461         private fields.
6462         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6463         * tree-vrp.c (identify_jump_threads): Likewise.
6464         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6465         indentation issues.
6466         (thread_across_edge): Similarly.
6467         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6468         arguments in constructor call.
6469
6470 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6471
6472         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6473         temp path contains a '-'.
6474
6475 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6476             Petr Murzin  <petr.murzin@intel.com>
6477             Kirill Yukhin  <kirill.yukhin@intel.com>
6478
6479         * config/i386/i386-builtin-types.def
6480         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6481         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6482         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6483         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6484         * config/i386/i386.c
6485         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6486         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6487         IX86_BUILTIN_SCATTERALTDIV16SI.
6488         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6489         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6490         __builtin_ia32_scatteraltdiv8si.
6491         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6492         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6493         IX86_BUILTIN_SCATTERALTDIV16SI.
6494         (ix86_vectorize_builtin_scatter): New.
6495         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6496         ix86_vectorize_builtin_scatter.
6497
6498 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6499             Petr Murzin  <petr.murzin@intel.com>
6500             Kirill Yukhin  <kirill.yukhin@intel.com>
6501
6502         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6503         * doc/tm.texi: Regenerate.
6504         * target.def: Add scatter builtin.
6505         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6506         for loads/stores in case of gather/scatter accordingly.
6507         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6508         STMT_VINFO_GATHER_P(S).
6509         (vect_check_gather): Rename to ...
6510         (vect_check_gather_scatter): this.
6511         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6512         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6513         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6514         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6515         variable and new checkings for it accordingly.
6516         * tree-vect-stmts.c
6517         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6518         STMT_VINFO_GATHER_P(S).
6519         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6520         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6521
6522 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6523
6524         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6525         define_insn.
6526         (mulv16qi3): New define_expand.
6527
6528 2015-09-03  Martin Sebor  <msebor@redhat.com>
6529
6530         PR c/66516
6531         * doc/extend.texi (Other Builtins): Document when the address
6532         of a built-in function can be taken.
6533
6534 2015-09-03  Richard Biener  <rguenther@suse.de>
6535
6536         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6537         (dwarf2out_early_finish): ... here.
6538         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6539         flush_limbo_die_list.  Assert we have no deferred asm names.
6540
6541 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6542
6543         * optabs.c (expand_binop): Don't create a broadcast vector with a
6544         source element wider than the inner mode.
6545
6546 2015-09-03  Richard Biener  <rguenther@suse.de>
6547
6548         * varasm.c (output_constant): Use fold_convert instead of
6549         wide_int_to_tree.
6550
6551 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6552
6553         PR tree-optimization/65637
6554         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6555         fin_bb has 2 predecessors.
6556
6557 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6558
6559         PR tree-optimization/65637
6560         * omp-low.c (find_phi_with_arg_on_edge): New function.
6561         (expand_omp_for_static_chunk): Fix inner loop phi.
6562
6563 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6564
6565         PR tree-optimization/65637
6566         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6567         that head is NULL.
6568
6569 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6570
6571         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6572
6573 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6574
6575         * doc/invoke.texi (parloops-chunk-size): Add item.
6576         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6577         * tree-parloops.c: Include params.h.
6578         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6579         param parloops-chunk-size is used.
6580
6581 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6582
6583         PR middle-end/67351
6584         * fold-const.c (fold_binary_loc) : Move
6585         Transform (x >> c) << c into x & (-1<<c) or
6586         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6587         types using simplify and match.
6588         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6589         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6590
6591 2015-09-03  Richard Biener  <rguenther@suse.de>
6592
6593         PR ipa/66705
6594         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6595         (create_variable_info_for_1): Use ctor_for_analysis instead
6596         of get_constructor.
6597         (create_variable_info_for): Likewise.
6598
6599 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6600
6601         PR ipa/67280
6602         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6603         in new callgraph edge.
6604
6605 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6606
6607         PR target/59810
6608         PR target/63652
6609         PR target/63653
6610         * config/aarch64/aarch64-simd.md
6611         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6612         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6613         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6614         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6615
6616 2015-09-02  Alan Modra  <amodra@gmail.com>
6617
6618         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6619         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6620         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6621
6622 2015-09-02  Alan Modra  <amodra@gmail.com>
6623
6624         PR target/67417
6625         * config/rs6000/predicates.md (current_file_function_operand): Don't
6626         return true for weak symbols.
6627         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6628
6629 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6630             Andrew Bennett  <andrew.bennett@imgtec.com>
6631
6632         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6633         * config/mips/mips-protos.h: Add definitions for
6634         mips_output_jump and mips_output_equal_conditional_branch
6635         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6636         JIC instruction.
6637         (mips_emit_compare): Add support for the MIPS R6 conditional
6638         compact branches.
6639         (mips_process_sync_loop): Likewise.
6640         (mips_output_order_conditional_branch): Likewise.
6641         (mips16_build_call_stub): Change MIPS_CALL to
6642         mips_output_jump.
6643         (mips_print_operand_punctuation): Update 's' case to only
6644         apply to micromips r2.
6645         (mips_adjust_insn_length): Add support for forbidden slot
6646         hazards.
6647         (mips_avoid_hazard): Likewise.
6648         (mips_reorg_process_insns): Likewise.
6649         (mips_output_jump): New function.
6650         (mips_output_equal_conditional_branch): Likewise.
6651         (mips_output_conditional_branch): Use jrc/bc if compact
6652         branch support is enabled.  Ensure the forbidden slots
6653         between the two branch instructions is filled with a nop.
6654         (mips_option_override): Add support to process the compact
6655         branch option and set the correct defaults.  Prevent
6656         non-explict relocs being using for MIPS R6.
6657         (mips_trampoline_init): Add compact branch support.
6658         (mips_mult_zero_zero_cost): Allow zero initialisation of
6659         accumulators with TARGET_DSP.
6660         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6661         (TARGET_CB_MAYBE): New define.
6662         (TARGET_CB_ALWAYS): New define.
6663         (ISA_HAS_DELAY_SLOTS): New define.
6664         (ISA_HAS_COMPACT_BRANCHES): New define.
6665         (ISA_HAS_JRC): New define.
6666         (MIPS_BRANCH_C): New define.
6667         (MIPS_CALL): Removed.
6668         (MICROMIPS_J): Removed.
6669         * config/mips/mips.md (compact_form): New attr.
6670         (hazard): Add support for forbidden slots.
6671         (define_delay): Add support for compact branches.
6672         (*branch_order<mode>): Likewise.
6673         (*branch_order<mode>_inverted): Likewise.
6674         (*branch_equality<mode>): Likewise.
6675         (*branch_equality<mode>_inverted): Likewise.
6676         (*jump_absolute): Likewise.
6677         (*jump_pic): Likewise.
6678         (indirect_jump): Use mips_output_jump to produce assembly output.
6679         (tablejump_<mode>"): Likewise.
6680         (*<optab>"): Likewise.
6681         (<optab>_internal): Likewise.
6682         (sibcall_internal): Likewise.
6683         (sibcall_value_internal): Likewise.
6684         (sibcall_value_multiple_internal): Likewise.
6685         (call_internal): Likewise.
6686         (call_split): Likewise.
6687         (call_internal_direct): Likewise.
6688         (call_direct_split): Likewise.
6689         (call_value_internal): Likewise.
6690         (call_value_split): Likewise.
6691         (call_value_internal_direct): Likewise.
6692         (call_value_direct_split): Likewise.
6693         (call_value_multiple_internal): Likewise.
6694         (call_value_multiple_split): Likewise.
6695         (mips_get_fcsr_mips16_<mode>): Likewise.
6696         (mips_set_fcsr_mips16_<mode>): Likewise.
6697         (tls_get_tp_mips16_<mode>): Likewise.
6698         * config/mips/mips.opt: Add -mcompact-branches option.
6699         * config/mips/predicates.md (order_operator): Ensure the
6700         conditional compact branches are only used if the ISA them.
6701         * doc/invoke.texi: Document -mcompact-branches option.
6702
6703 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6704
6705         PR target/61578
6706         * lra-lives.c (process_bb_lives): Process move pseudos with the
6707         same value for copies and preferences
6708         * lra-constraints.c (match_reload): Create match reload pseudo
6709         with the same value from single dying input pseudo.
6710
6711 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6712
6713         PR target/67405
6714         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6715
6716 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6717
6718         * trans-mem.c: Add contributed-by.
6719         * trans-mem.h: Same.
6720
6721 2015-09-01  Richard Biener  <rguenther@suse.de>
6722
6723         * expr.c (expand_expr_real_1): For expanding TERed defs
6724         set the current location to that of the def if not UNKNOWN.
6725
6726 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6727
6728         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6729
6730 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6731
6732         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6733         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6734         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6735         Include rtl-iter.h.
6736         (noce_simple_bbs): New function.
6737         (noce_try_move): Bail if basic blocks are not simple.
6738         (noce_try_store_flag): Likewise.
6739         (noce_try_store_flag_constants): Likewise.
6740         (noce_try_addcc): Likewise.
6741         (noce_try_store_flag_mask): Likewise.
6742         (noce_try_cmove): Likewise.
6743         (noce_try_minmax): Likewise.
6744         (noce_try_abs): Likewise.
6745         (noce_try_sign_mask): Likewise.
6746         (noce_try_bitop): Likewise.
6747         (bbs_ok_for_cmove_arith): New function.
6748         (noce_emit_all_but_last): Likewise.
6749         (noce_emit_insn): Likewise.
6750         (noce_emit_bb): Likewise.
6751         (noce_try_cmove_arith): Handle non-simple basic blocks.
6752         (insn_valid_noce_process_p): New function.
6753         (contains_mem_rtx_p): Likewise.
6754         (bb_valid_for_noce_process_p): Likewise.
6755         (noce_process_if_block): Allow non-simple basic blocks
6756         where appropriate.
6757
6758 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6759
6760         * tree-ssa-dom.c (record_equivalences_from_phis,
6761         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6762         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6763
6764 2015-09-01  Nick Clifton  <nickc@redhat.com>
6765
6766         * config/msp430/msp430.opt (mcpu): Fix typo.
6767
6768 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6769
6770         * config/aarch64/aarch64.c (aarch64_set_current_function):
6771         Re-layout any vector parameters have non-simd layout.
6772         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6773         Delete.
6774         (aarch64_simd_expand_args): Delete call to the above.
6775
6776 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
6777
6778         * doc/invoke.texi (asan-stack): Add space before option.
6779
6780 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6781
6782         * tree.h (zerop): New function.
6783         * tree.c (zerop): Likewise.
6784         (element_precision): Handle expressions.
6785         * match.pd (define_predicates): Add zerop.
6786         (x <= +Inf): Fix comment.
6787         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6788         * fold-const.c (fold_binary_loc): ... here. Remove.
6789
6790 2015-08-31  Richard Biener  <rguenther@suse.de>
6791
6792         PR middle-end/67381
6793         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6794
6795 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6796
6797         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6798         (CEXPI): New operator list.
6799         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6800         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6801         Converted from ...
6802         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6803
6804 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6805
6806         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6807         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6808         parameter.
6809         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6810         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6811         (rewrite_into_loop_closed_ssa): ... here.
6812         (replace_uses_in_dominated_bbs): Remove function.
6813         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6814         rewrite_into_loop_closed_ssa_1.
6815
6816 2015-08-31  Michael Matz  <matz@suse.de>
6817
6818         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6819         enter entry and exit blocks for reverse post order.
6820
6821 2015-08-31  Richard Biener  <rguenther@suse.de>
6822
6823         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6824         (lto_location_cache::current_sysp): Likewise.
6825         (output_block::current_sysp): Likewise.
6826         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6827         (lto_location_cache::apply_location_cache): Properly record
6828         system header locations.
6829         (lto_location_cache::input_location): Input whether a file
6830         is a system header.
6831         * lto-streamer-out.c (lto_output_location): Stream whether a file
6832         is a system header.
6833
6834 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6835
6836         PR bootstrap/67363
6837         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6838
6839 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6840
6841         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6842         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6843         Improve function header comments.
6844
6845 2015-08-30  Michael Collison  <michael.collison@linaro.org>
6846
6847         PR other/67320
6848         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6849         standard names
6850
6851 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6852
6853         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6854         special_handling bitfield.
6855         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6856         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6857         that represents a general xxpermdi.
6858         (insn_is_swappable_p): Add handling for vec_concat of two
6859         doublewords, which maps to a specific xxpermdi.
6860         (adjust_xxpermdi): New function.
6861         (adjust_concat): Likewise.
6862         (handle_special_swappables): Call adjust_xxpermdi and
6863         adjust_concat.
6864         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6865
6866 2015-08-30  Rich Felker <dalias@libc.org>
6867
6868         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6869         case instead of sh[123456ble]-*-*.
6870
6871 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6872
6873         * ira.c (print_unform_and_important_classes,
6874         print_translated_classes): Remove reg_class_names static array.
6875         (print_unform_and_important_classes): Rename to ...
6876         (print_uniform_and_important_classes): ... this.
6877         (ira_debug_allocno_classes): Update accordingly.
6878
6879 2015-08-29  Tom de Vries  <tom@codesourcery.com>
6880
6881         PR tree-optimization/46193
6882         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6883         clause.
6884
6885 2015-08-28  Jeff Law  <law@redhat.com>
6886
6887         PR lto/66752
6888         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6889         unable to find X NE 0 in the tables, return X as the simplified
6890         condition.
6891         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6892         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6893         to VISISTED_BBS.
6894         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6895         after removing the control flow statement and unnecessary edges.
6896
6897 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
6898
6899         Revert:
6900         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6901
6902         PR tree-optimization/67283
6903         * tree-sra.c (type_consists_of_records_p): Rename to...
6904         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6905
6906         (completely_scalarize_record): Rename to...
6907         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6908         code to:
6909         (scalarize_elem): New.
6910
6911 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
6912
6913         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6914         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6915         (aarch64_symbol_type): Likewise.
6916         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6917         Likewise.
6918         (aarch64_expand_mov_immediate): Likewise.
6919         (aarch64_print_operand): Likewise.
6920         (aarch64_classify_tls_symbol): Likewise.
6921
6922 2015-08-28  Richard Biener  <rguenther@suse.de>
6923
6924         * cgraphunit.c (symbol_table::compile): Move early debug generation
6925         and finish...
6926         (symbol_table::finalize_compilation_unit): ... back here and
6927         add a !seen_error () guard.
6928
6929 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6930
6931         * toplev.c (process_options): Do not use flag_loop_block,
6932         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
6933         flag_loop_optimize_isl.
6934
6935 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6936
6937         * Makefile.in (OBJS): Remove graphite-blocking.o and
6938         graphite-interchange.o.
6939         * common.opt (floop-strip-mine, floop-interchange, floop-block):
6940         Alias of floop-nest-optimize.
6941         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6942         Document as alias of -floop-nest-optimize.
6943         * graphite-blocking.c: Remove.
6944         * graphite-interchange.c: Remove.
6945         * graphite-optimize-isl.c: Include dumpfile.h.
6946         (getScheduleForBand): Add dump for tiled loops.  Use
6947         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6948         * graphite-poly.c (scop_max_loop_depth): Remove.
6949         (print_scattering_function_1): Remove.
6950         (print_scattering_function): Remove.
6951         (print_scattering_functions): Remove.
6952         (debug_scattering_function): Remove.
6953         (debug_scattering_functions): Remove.
6954         (apply_poly_transforms): Remove use of flag_loop_block,
6955         flag_loop_strip_mine, and flag_loop_interchange.
6956         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6957         PBB_ORIGINAL.
6958         (print_pdr_access_layout): Remove.
6959         (print_pdr): Print ISL representation.
6960         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6961         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6962         (free_scop): Same.
6963         (openscop_print_pbb_domain): Remove.
6964         (print_pbb): Remove call to print_scattering_function.
6965         (openscop_print_scop_context): Remove.
6966         (print_scop_context): Do not print matrices anymore.
6967         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6968         SCOP_TRANSFORMED_SCHEDULE.
6969         (print_isl_set): Add printing of a new line.
6970         (print_isl_map): Same.
6971         (print_isl_aff): Same.
6972         (print_isl_constraint): Same.
6973         (loop_to_lst): Remove.
6974         (scop_to_lst): Remove.
6975         (lst_indent_to): Remove.
6976         (print_lst): Remove.
6977         (debug_lst): Remove.
6978         (dot_lst_1): Remove.
6979         (dot_lst): Remove.
6980         (reverse_loop_at_level): Remove.
6981         (reverse_loop_for_pbbs): Remove.
6982         * graphite-poly.h (pdr_dim_iter_domain): Remove.
6983         (pdr_nb_params): Remove.
6984         (pdr_alias_set_dim): Remove.
6985         (pdr_subscript_dim): Remove.
6986         (pdr_iterator_dim): Remove.
6987         (pdr_parameter_dim): Remove.
6988         (same_pdr_p): Remove.
6989         (struct poly_scattering): Remove.
6990         (struct poly_bb): Remove _original, _transformed, _saved.
6991         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6992         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6993         (PBB_NB_LOCAL_VARIABLES): Remove.
6994         (PBB_NB_SCATTERING_TRANSFORM): Remove.
6995         (schedule_to_scattering): Remove.
6996         (number_of_write_pdrs): Remove.
6997         (pbb_dim_iter_domain): Remove.
6998         (pbb_nb_params): Remove.
6999         (pbb_nb_scattering_orig): Remove.
7000         (pbb_nb_scattering_transform): Remove.
7001         (pbb_nb_dynamic_scattering_transform): Remove.
7002         (pbb_nb_local_vars): Remove.
7003         (pbb_iterator_dim): Remove.
7004         (pbb_parameter_dim): Remove.
7005         (psco_scattering_dim): Remove.
7006         (psct_scattering_dim): Remove.
7007         (psct_local_var_dim): Remove.
7008         (psco_iterator_dim): Remove.
7009         (psct_iterator_dim): Remove.
7010         (psco_parameter_dim): Remove.
7011         (psct_parameter_dim): Remove.
7012         (psct_dynamic_dim): Remove.
7013         (psct_static_dim): Remove.
7014         (psct_add_local_variable): Remove.
7015         (new_lst_loop): Remove.
7016         (new_lst_stmt): Remove.
7017         (free_lst): Remove.
7018         (copy_lst): Remove.
7019         (lst_add_loop_under_loop): Remove.
7020         (lst_depth): Remove.
7021         (lst_dewey_number): Remove.
7022         (lst_dewey_number_at_depth): Remove.
7023         (lst_pred): Remove.
7024         (lst_succ): Remove.
7025         (lst_find_pbb): Remove.
7026         (find_lst_loop): Remove.
7027         (lst_find_first_pbb): Remove.
7028         (lst_empty_p): Remove.
7029         (lst_find_last_pbb): Remove.
7030         (lst_contains_p): Remove.
7031         (lst_contains_pbb): Remove.
7032         (lst_create_nest): Remove.
7033         (lst_remove_from_sequence): Remove.
7034         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7035         (lst_niter_for_loop): Remove.
7036         (pbb_update_scattering): Remove.
7037         (lst_update_scattering_under): Remove.
7038         (lst_update_scattering): Remove.
7039         (lst_insert_in_sequence): Remove.
7040         (lst_replace): Remove.
7041         (lst_substitute_3): Remove.
7042         (lst_distribute_lst): Remove.
7043         (lst_remove_all_before_including_pbb): Remove.
7044         (lst_remove_all_before_excluding_pbb): Remove.
7045         (struct scop): Remove original_schedule, transformed_schedule, and
7046         saved_schedule.
7047         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7048         (SCOP_SAVED_SCHEDULE): Remove.
7049         (poly_scattering_new): Remove.
7050         (poly_scattering_free): Remove.
7051         (poly_scattering_copy): Remove.
7052         (store_scattering_pbb): Remove.
7053         (store_lst_schedule): Remove.
7054         (restore_lst_schedule): Remove.
7055         (store_scattering): Remove.
7056         (restore_scattering_pbb): Remove.
7057         (restore_scattering): Remove.
7058         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7059         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
7060         compute the scattering polyhedron dimension from the dimension of
7061         pbb->domain.
7062         (build_scop_scattering): Update call to
7063         build_pbb_scattering_polyhedrons.
7064         (build_poly_scop): Remove call to scop_to_lst.
7065         * graphite.c (graphite_transform_loops): Add call to print_scop.
7066         (gate_graphite_transforms): Remove use of flag_loop_block,
7067         flag_loop_interchange, and flag_loop_strip_mine.
7068
7069 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
7070
7071         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7072         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7073         -floop-nest-optimize.
7074         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7075         (generate_luj_sepclass): Remove.
7076         (generate_luj_options): Remove.
7077         (set_options): Remove opt_luj.
7078         (scop_to_isl_ast): Remove opt_luj.
7079         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7080         flag_loop_unroll_jam.
7081         (getPrevectorMap_full): Remove.
7082         (getScheduleForBandList): Remove map_sepcl.
7083         (getScheduleMap): Same.
7084         (apply_schedule_map_to_scop): Remove sepcl.
7085         (optimize_isl): Same.
7086         * graphite-poly.c (apply_poly_transforms): Remove check for
7087         flag_loop_unroll_jam.
7088         (new_poly_bb): Remove map_sepclass.
7089         * graphite-poly.h (struct poly_bb): Same.
7090         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7091         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7092         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7093         * toplev.c (process_options): Remove flag_loop_unroll_jam.
7094
7095 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
7096
7097         PR target/67317
7098         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7099         (addqi3_cc): Ditto.
7100         (UNSPEC_ADD_CARRY): Remove.
7101         (addqi3_cconly_overflow): New expander.
7102         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7103         Adjust for changed add<mode>3_carry.
7104         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7105         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7106         (<plusminus_insn><mode>3_carry): Remove expander.
7107         (*<plusminus_insn><mode>3_carry): Split insn pattern to
7108         add<mode>3_carry and sub<mode>3_carry.
7109         (plusminus_carry_mnemonic): Remove code attribute.
7110         (add<mode>3_carry): Canonicalize insn pattern.
7111         (*addsi3_carry_zext): Ditto.
7112         (sub<mode>3_carry): Ditto.
7113         (*subsi3_carry_zext): Ditto.
7114         (adcx<mode>3): Remove insn pattern.
7115         (addcarry<mode>): New insn pattern.
7116         (subborrow<mode>): Ditto.
7117         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7118         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7119         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7120         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7121         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7122         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7123         Rewrite expander to not clobber carry flag chains.
7124
7125 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7126
7127         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7128         instead of a rotate.
7129
7130 2015-08-27  Marek Polacek  <polacek@redhat.com>
7131
7132         PR middle-end/67005
7133         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7134         an entry into an irreducible region.
7135
7136 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7137
7138         * configure: Regenerate.
7139
7140 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7141
7142         PR tree-optimization/67283
7143         * tree-sra.c (type_consists_of_records_p): Rename to...
7144         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7145
7146         (completely_scalarize_record): Rename to...
7147         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7148         (scalarize_elem): New.
7149
7150 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7151
7152         * tree-sra.c (completely_scalarize_var): Rename to...
7153         (create_total_scalarization_access): ... Here. Drop call to
7154         completely_scalarize_record.
7155
7156         (analyze_all_variable_accesses): Replace completely_scalarize_var
7157         with create_total_scalarization_access and completely_scalarize_record.
7158
7159 2015-08-27  Alan Modra  <amodra@gmail.com>
7160
7161         PR target/67356
7162         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7163         for operand 1.
7164
7165 2015-08-27  Richard Biener  <rguenther@suse.de>
7166
7167         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7168         call with !seen_error ().
7169         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7170         early debug generation and finish...
7171         (symbol_table::compile): ... here to put it after a !seen_error ()
7172         guard.
7173
7174 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7175
7176         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7177         Solaris 12+.
7178
7179 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7180             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7181
7182         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7183         (*cb<optab><mode>1): Likewise.
7184         (*tb<optab><mode>1): Likewise.
7185         (*cb<optab><mode>1): Likewise.
7186         * config/aarch64/iterators.md (inv_cb): New code attribute.
7187         (inv_tb): Likewise.
7188         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7189         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7190
7191 2015-08-27  Richard Biener  <rguenther@suse.de>
7192
7193         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7194
7195 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7196
7197         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7198         trap to fix ICE.
7199
7200 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7201
7202         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7203         Add declaration.
7204
7205         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7206         comment.
7207         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7208         floating point in VSX registers.
7209         (rs6000_output_move_128bit): Always print out the set insn if we
7210         can't generate an appropriate 128-bit move.
7211         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7212         point in VSX registers comparisons.
7213         (rs6000_expand_float128_convert): Likewise.
7214
7215         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7216         predicate for only GPR hard registers.
7217
7218         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7219         modes to iterators. Add new iterators for moving 128-bit values in
7220         scalar FPR registers and VSX registers.
7221         (FMOVE128): Likewise.
7222         (FMOVE128_FPR): Likewise.
7223         (FMOVE128_GPR): Likewise.
7224         (FMOVE128_VSX): Likewise.
7225         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7226         in VSX registers.
7227         (IFKF): Likewise.
7228         (IBM128): Likewise.
7229         (TFIFKF): Likewise.
7230         (RELOAD): Add IEEE 128-bit floating point modes.
7231         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7232         floating point in VSX registers modes.
7233         (signbit<mode>2, IBM128 iterator): Likewise.
7234         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7235         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7236         (negtf2): Likewise.
7237         (neg<mode>2, TFIFKF iterator): Likewise.
7238         (negtf2_internal): Likewise.
7239         (abstf2): Likewise.
7240         (abs<mode>2, TFIFKF iterator): Likewise.
7241         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7242         VSX insn support for negate, absolute value, and negative absolute
7243         value.
7244         (ieee_128bit_vsx_neg<mode>2): Likewise.
7245         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7246         (ieee_128bit_vsx_abs<mode>2): Likewise.
7247         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7248         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7249         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7250         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7251         floating point in VSX registers.
7252         (unpack<mode>_dm): Likewise.
7253         (unpack<mode>_nodm): Likewise.
7254         (pack<mode>): Likewise.
7255         (unpackv1ti): Likewise.
7256         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7257         (packv1ti): Likewise.
7258         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7259         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7260         registers.
7261         (extenddftf2_internal): Likewise.
7262         (trunctfdf2): Likewise.
7263         (trunctfdf2_internal2): Likewise.
7264         (fix_trunc_helper): Likewise.
7265         (fix_trunctfdi2"): Likewise.
7266         (floatditf2): Likewise.
7267         (floatuns<mode>tf2): Likewise.
7268         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7269         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7270         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7271         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7272         (float<SDI:mode><IFKF:mode>2): Likewise.
7273         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7274
7275 2015-08-26  Renlin Li  <renlin.li@arm.com>
7276
7277         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7278
7279 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7280             Jiong Wang  <jiong.wang@arm.com>
7281
7282         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7283         (tlsie_tiny_<mode>): New define_insn.
7284         (tlsie_tiny_sidi): Likewise.
7285         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7286         SYMBOL_TINY_TLSIE.
7287         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7288         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7289         SYMBOL_TINY_TLSIE.
7290         (aarch64_expand_mov_immediate): Likewise.
7291         (aarch64_print_operand): Likewise.
7292         (arch64_classify_tls_symbol): Likewise.
7293
7294 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7295
7296         * config/arm/arm-arches.def: Replace single value flags with
7297         an initializer built from ARM_FSET_MAKE_CPU1.
7298         * config/arm/arm-cores.def: Likewise.
7299         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7300         derivation from the ARM_CORE macro definition, use the given value
7301         instead.
7302         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7303         ARM_ARCH macro definition, use the given value instead.
7304
7305 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7306
7307         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7308         feature set.
7309         (struct builtin_description): Replace field mask with field
7310         features.
7311         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7312         (IWMMXT2_BUILTIN): Likewise.
7313         (IWMMXT2_BUILTIN2): Likewise.
7314         (FP_BUILTIN): Likewise.
7315         (CRC32_BUILTIN): Likewise.
7316         (CRYPTO_BUILTIN): Likewise.
7317         (iwmmx_mbuiltin): Likewise.
7318         (iwmmx2_mbuiltin): Likewise.
7319         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7320         struct builtin_description.
7321
7322 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7323
7324         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7325         (struct builtin_description): Change type of mask to unsigned
7326         long.
7327         * config/arm/arm-protos.h (insn_flags): Declare as type
7328         arm_feature_set.
7329         (tune_flags): Likewise.
7330         * config/arm/arm.c (feature_count): New.
7331         (insn_flags): Define as type arm_feature_set.
7332         (tune_flags): Likewise.
7333         (struct processors): Define field flags as type arm_feature_set.
7334         (all_cores): Update for change to struct processors.
7335         (all_architectures): Likewise.
7336         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7337         macros.
7338         (arm_option_override_internal): Likewise.
7339         (arm_option_override): Likewise.
7340
7341 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7342             Jiong Wang  <jiong.wang@arm.com>
7343
7344         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7345         tls size for tiny, small, large memory model.
7346         (aarch64_load_symref_appropriately): Support new symbol types.
7347         (aarch64_expand_mov_immediate): Likewise.
7348         (aarch64_print_operand): Likewise.
7349         (aarch64_classify_tls_symbol): Likewise.
7350         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7351         (aarch64_symbol_type): Likewise.
7352         * config/aarch64/aarch64.md (tlsle): Deleted.
7353         (tlsle12_<mode>): New define_insn.
7354         (tlsle24_<mode>): Likewise.
7355         (tlsle32_<mode>): Likewise.
7356         (tlsle48_<mode>): Likewise.
7357         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7358         "aarch64_tlsle32".
7359
7360 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7361
7362         * config/arm/arm-protos.h (FL_NONE): New.
7363         (FL_ANY): New.
7364         (arm_feature_set): New.
7365         (ARM_FSET_MAKE): New.
7366         (ARM_FSET_MAKE_CPU1): New.
7367         (ARM_FSET_MAKE_CPU2): New.
7368         (ARM_FSET_CPU1): New.
7369         (ARM_FSET_CPU2): New.
7370         (ARM_FSET_EMPTY): New.
7371         (ARM_FSET_ANY): New.
7372         (ARM_FSET_HAS_CPU1): New.
7373         (ARM_FSET_HAS_CPU2): New.
7374         (ARM_FSET_HAS_CPU): New.
7375         (ARM_FSET_ADD_CPU1): New.
7376         (ARM_FSET_ADD_CPU2): New.
7377         (ARM_FSET_DEL_CPU1): New.
7378         (ARM_FSET_DEL_CPU2): New.
7379         (ARM_FSET_UNION): New.
7380         (ARM_FSET_INTER): New.
7381         (ARM_FSET_XOR): New.
7382         (ARM_FSET_EXCLUDE): New.
7383         (AFM_FSET_IS_EMPTY): New.
7384         (ARM_FSET_CPU_SUBSET): New.
7385
7386 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7387
7388         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7389         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7390         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7391         Likewise.
7392         (aarch64_expand_mov_immediate): Likewise.
7393         (aarch64_print_operand): Likewise.
7394         (aarch64_classify_symbol): Likewise.
7395
7396 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7397
7398         * config/aarch64/aarch64.opt (mtls-size): New entry.
7399         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7400         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7401         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7402
7403 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7404
7405         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7406         ARM_CORE entry.  Fix some white-space.
7407         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7408         ARM_CORE definition.
7409
7410 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7411
7412         * fold-const.c (fold_binary_loc) : Move Optimize
7413         root(x)*root(y) as root(x*y) to match.pd.
7414         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7415         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7416         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7417         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7418         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7419         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7420         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7421         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7422         (rdiv @0 (exps:s @1)) : New simplifier.
7423
7424 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7425
7426         * gcc.c (driver::finalize): Only assign to extra_specs if
7427         [EXTRA_SPECS].
7428
7429 2015-08-25  Marek Polacek  <polacek@redhat.com>
7430
7431         PR middle-end/67330
7432         * varasm.c (declare_weak): Return after giving an error.
7433
7434 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7435
7436         * gcc-main.c (main): Add params to driver ctor.
7437         * gcc.c (class env_manager): New.
7438         (env): New global.
7439         (env_manager::init): New.
7440         (env_manager::get): New.
7441         (env_manager::xput): New.
7442         (env_manager::restore): New.
7443         Poison getenv and putenv.
7444         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7445         (target_system_root): Update initialization to use
7446         DEFAULT_TARGET_SYSTEM_ROOT.
7447         (struct spec_list): Add field "default_ptr".
7448         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7449         (init_spec): Likewise.
7450         (set_spec): Clear field "default_ptr".
7451         (read_specs): Free "spec" and "buffer".
7452         (xputenv): Reimplement in terms of env_manager.
7453         (process_command): Replace ::getenv calls with calls to the
7454         env_manager singleton.
7455         (process_brace_body): Free string in three places.
7456         (driver::driver): New.
7457         (driver::~driver): New.
7458         (used_arg): Convert from a function to...
7459         (class used_arg_t): ...this class, and...
7460         (used_arg): ...this new global instance.
7461         (used_arg_t::finalize): New function.
7462         (getenv_spec_function): Add "const" to local "value".  Replace
7463         ::getenv call with call to the env_manager singleton.
7464         (path_prefix_reset): New function.
7465         (driver::finalize): New function.
7466         * gcc.h (driver::driver): New.
7467         (driver::~driver): New.
7468         (driver::finalize): New.
7469
7470 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7471
7472         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7473         target doesn't have one.
7474
7475 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7476
7477         PR target/67346
7478         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7479
7480 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7481
7482         PR target/67344
7483         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7484         a define_insn, remove second alternative.
7485
7486 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7487             Joseph Myers  <joseph@codesourcery.com>
7488
7489         * gcc.c (struct switchstr): Expand comment.
7490
7491 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7492
7493         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7494         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7495
7496 2015-08-25  Richard Biener  <rguenther@suse.de>
7497
7498         PR middle-end/67306
7499         * genmatch.c (expr::gen_transform): Verify the result of
7500         builtin_decl_implicit.
7501         (dt_simplify::gen_1): Likewise.
7502
7503 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7504
7505         * config/arm/constraints.md: Also list Cs and US ARM-specific
7506         constraints as used.
7507
7508 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7509
7510         PR target/66609
7511         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7512         UNSPEC_PCREL.
7513         (nonpic_symbol_mentioned_p): Likewise.
7514         (sh_delegitimize_address): Likewise.
7515         (sh_function_ok_for_sibcall): Take into account weak symbols.
7516         (sh_expand_sym_label2reg): New.
7517         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7518         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7519         (call_pcrel): Use sh_expand_sym_label2reg.
7520         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7521         (symPCREL_label2reg) New expand.
7522
7523 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7524
7525         * graphite-poly.c: Change type of region from void* to sese.
7526         * graphite-poly.h (struct scop): Changing the type of scop::region
7527         from void* to sese. Change accessor macro accordingly.
7528         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7529
7530 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7531
7532         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7533         Constrain only on INTEGER_TYPE.
7534
7535 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7536
7537         PR target/67211
7538         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7539         -mefficient-unaligned-vsx on ISA 2.7.
7540
7541         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7542         option to a masked option.
7543
7544         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7545         logic for -mefficient-unaligned-vsx so that it is set via an arch
7546         ISA option, instead of being set if -mtune=power8 is set. Move
7547         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7548         near other default option handling.
7549
7550 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7551
7552         * genflags.c (gen_macro): Delete.
7553         (gen_proto): Don't create GEN.*CALL.* macros.
7554         * gensupport.h (get_file_location): Declare.
7555         * gensupport.c (rtx_locs): New variable.
7556         (read_md_rtx): Record rtx locations.
7557         (get_file_location): New function.
7558         * target-insns.def (call, call_pop, call_value, call_value_pop)
7559         (sibcall, sibcall_value): New patterns.
7560         * gentarget-def.c (parse_argument): New function.
7561         (def_target_insn): Use it.  Handle optional operands.  Raise an
7562         error if an .md pattern has the wrong number of operands for the
7563         pattern name.  Remove the names of unused operands from the prototype.
7564         * builtins.c (expand_builtin_apply): Use targetm functions
7565         instead of HAVE_call_value and GEN_CALL_VALUE.
7566         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7567         and sibcall_value_pop.
7568         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7569         of GEN_CALL.
7570         * config/alpha/alpha.md (untyped_call): Likewise.
7571         * config/iq2000/iq2000.md (untyped_call): Likewise.
7572         * config/m68k/m68k.md (untyped_call): Likewise.
7573         * config/mips/mips.md (untyped_call): Likewise.
7574         * config/pa/pa.md (untyped_call): Likewise.
7575         * config/rs6000/rs6000.md (untyped_call): Likewise.
7576         * config/sparc/sparc.md (untyped_call): Likewise.
7577         * config/tilegx/tilegx.md (untyped_call): Likewise.
7578         * config/tilepro/tilepro.md (untyped_call): Likewise.
7579         * config/visium/visium.md (untyped_call): Likewise.
7580         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7581         gen_call_value instead of GEN_CALL_VALUE.
7582         * config/arm/arm.md (untyped_call): Likewise.
7583         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7584         GEN_CALL.
7585
7586 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7587
7588         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7589         (have_cbranchcc4): New variable.
7590         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7591         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7592         (if_convert): Initialize have_cbranchcc4.
7593
7594 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7595
7596         * builtins.c (expand_cmpstrn): Rename to...
7597         (expand_cmpstrn_or_cmpmem): ...this.
7598         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7599         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7600         Remove mode argument.
7601         (expand_builtin): Update accordingly.
7602
7603 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7604
7605         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7606         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7607         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7608         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7609         Add predicates for operands 0 and 3.
7610         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7611         operand.
7612         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7613         immediate_operand to nonmemory_operand.
7614
7615 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7616
7617         * df-scan.c (df_insn_info_init_fields): New function, split out
7618         from...
7619         (df_insn_create_insn_record): ...here.
7620         (df_insn_info_free_fields): New function, split out from...
7621         (df_insn_info_delete): ...here.
7622         (df_insn_rescan): Use the new functions instead of freeing and
7623         reallocating the df_insn_info.
7624
7625 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7626
7627         * doc/install.texi (Binaries): Remove links no longer valid.
7628
7629 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7630
7631         * config/nvptx/mkoffload.c (process): Replace
7632         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7633
7634 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7635
7636         PR target/67329
7637         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7638
7639 2015-08-24  Renlin Li  <renlin.li@arm.com>
7640
7641         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7642         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7643         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7644         * config/arm/constraints.md ("j"): Add check for high code.
7645
7646 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7647
7648         PR tree-optimization/65468
7649         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7650         chunk_size is one.
7651
7652 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7653
7654         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7655         change to nvptx_type_from_mode call. Use arg_promotion for both
7656         split and non-split args.
7657
7658 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7659
7660         * target-insns.def (movstr): New pattern.
7661         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7662         (expand_movstr): Use targetm rather than HAVE_movstr/
7663         CODE_FOR_movstr.
7664
7665 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7666
7667         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7668         cast syntax.
7669
7670 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7671
7672         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7673         AARCH64_EXTRA_TUNING_OPTION.
7674         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7675         New enum.
7676         (aarch64_extra_tuning_flags): Base the shifted value on the index
7677         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7678         * config/aarch64/aarch64.c: Remove the last argument to
7679         AARCH64_EXTRA_TUNING_OPTION.
7680
7681 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7682
7683         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7684         decls.
7685         (nvptx_declare_function_name): Insert formatting tabs for
7686         consistency.
7687
7688 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7689
7690         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7691         parm_decl, rather than generating a dummy default def in cfun.
7692         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7693         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7694         (move_stmt_op): Handle PARM_DECl.
7695         (gather_ssa_name_hash_map_from): New function.
7696         (move_sese_region_to_fn): Add default defs for function params, and add
7697         them to vars_map.  Release copied ssa names.
7698         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7699
7700 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7701
7702         * doc/sourcebuild.texi: Rename vect_no_int_max with
7703         vect_no_int_min_max.  Update description.
7704
7705 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7706
7707          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7708         * config/aarch64/aarch64-protos.h
7709         (aarch64_fusion_pairs_index): New enum.
7710         (aarch64_fusion_pairs): Base the shifted value on the index instead
7711         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7712         of the argument to AARCH64_FUSION_PAIR.
7713         * config/aarch64/aarch64.c: Remove the last argument to
7714         AARCH64_FUSION_PAIR.
7715
7716 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7717
7718         * dominance.c (new_zero_array): Define.
7719         (dom_info): Redefine as class with proper encapsulation.
7720         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7721         Add new members.
7722         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7723         allocations/deallocations.  Pass function as parameter (instead of
7724         using cfun).
7725         (dom_info::get_idom): Define accessor method.
7726         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7727         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7728         (calculate_dominance_info): Adjust to use dom_info class.
7729         (verify_dominators): Likewise.
7730
7731 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7732
7733         * print-rtl.c (print_rtx): Check the correct range for
7734         flag_dump_unnumbered_links to behave as documented.
7735
7736         PR rtl-optimization/67227
7737         PR rtl-optimization/64164
7738         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7739         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7740         identical gimple_reg exprs.
7741
7742 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7743
7744         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7745         expansion.
7746         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7747         crtl->stack_alignment_needed to determine alignment.
7748         (nvptx_get_drap_rtx): New.
7749         (TARGET_GET_DRAP_RTX): Override.
7750         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7751
7752 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7753
7754         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7755
7756 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7757
7758         * configure.ac: Remove uwin* cases.
7759         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7760         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7761         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7762         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7763         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7764         i[34567]86-*-uwin*, powerpc-*-beos*.
7765
7766 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7767
7768         * gencodes.c (gencodes): Print the comma for the preceding
7769         enum value rather than the current one.  Use aliased enum values
7770         rather than #defines for compiled-out patterns.
7771         (main): Update accordingly.  Replace LAST_INSN_CODE with
7772         NUM_INSN_CODES.
7773         * lra.c (insn_code_data): Update accordingly.
7774         (finish_insn_code_data_once, get_static_insn_data): Likewise.
7775         * recog.h (target_recog): Likewise.
7776         (preprocess_insn_constraints): Change parameter to unsigned int.
7777         * recog.c (preprocess_insn_constraints): Likewise.
7778         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7779         * tree-vect-stmts.c (vectorizable_operation): Simplify.
7780
7781 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7782
7783         PR rtl-optimization/61657
7784         * loop-iv.c (iv_number_of_iterations): Declare up and down as
7785         unsigned.  Remove superflous uint64_t cast.
7786
7787 2014-08-21  Felix Yang  <felix.yang@huawei.com>
7788             Jiji Jiang  <jiangjiji@huawei.com>
7789
7790         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7791         argument and get builtin function code directly from CALL.
7792         (gimple_stringop_fixed_value): Modified accordingly.
7793         (gimple_stringops_transform, gimple_stringops_values_to_profile):
7794         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7795
7796 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7797
7798         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7799
7800 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7801
7802         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7803         to match.pd.
7804         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7805         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7806         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7807         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7808         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7809         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7810         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7811         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7812         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7813         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7814
7815         * match.pd (SIN ) : New Operator.
7816         (TAN) : New Operator.
7817         (mult (SQRT@1 @0) @1) : New simplifier.
7818         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7819         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7820         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7821         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7822         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7823         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7824         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7825         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7826         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7827         (rdiv @0 (POW:s @1 @2)) : New simplifier.
7828
7829 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
7830
7831         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7832         loop if EXPR is simplified to const value.
7833
7834 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
7835
7836         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7837         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7838
7839 2015-08-21  Richard Biener  <rguenther@suse.de>
7840
7841         PR middle-end/67285
7842         * gimple-fold.c (replace_stmt_with_simplification): Assert
7843         seq is empty when replacing a call with itself but different
7844         arguments.
7845         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7846         a call require that it is const.
7847
7848 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7849
7850         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7851         * builtins.c (get_object_alignment_2): Adjust.
7852         * varasm.c (align_variable): Likewise.
7853         (get_variable_align): Likewise.
7854         (build_constant_desc): Likewise.
7855         (force_const_mem): Likewise.
7856         * doc/tm.texi.in: Likewise.
7857         * doc/tm.texi: Regenerate.
7858
7859 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7860
7861         * genconfig.c (main): Always define HAVE_cc0.
7862         * recog.c (rest_of_handle_peephole2): Adjust.
7863
7864 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7865
7866         * reorg.c (relax_delay_slots): Don't use #if to check value of
7867         HAVE_cc0.
7868
7869 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7870
7871         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7872         * targhooks.c (default_have_conditional_execution): Adjust.
7873
7874 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7875
7876         * rtl.h (rtvec_all_equal_p): Declare.
7877         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7878         * rtl.c (rtvec_all_equal_p): New function.
7879         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7880         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7881         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7882         * config/arm/arm.c (neon_vdup_constant): Likewise.
7883         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7884         * config/tilegx/constraints.md (W, Y): Likewise.
7885         * config/tilepro/constraints.md (W, Y): Likewise.
7886         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7887         (classify_immediate): Use unwrap_const_vec_duplicate.
7888         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7889         (reg_or_v2s8bit_operand): Likewise.
7890         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7891         (reg_or_v4s8bit_operand): Likewise.
7892
7893 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7894
7895         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7896         (vec_shasigma_be): New #define.
7897         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7898         (VPMSUMH): Likewise.
7899         (VPMSUMW): Likewise.
7900         (VPMSUMD): Likewise.
7901         (VPMSUM): New BU_P8V_OVERLOAD_2.
7902         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7903         entries for VEC_MADD and VEC_VPMSUM.
7904
7905 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
7906
7907         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7908         Multiply argument avr_n_flash by 64 to match unit of "KiB".
7909         (avr_pgm_check_var_decl): Same.
7910
7911 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
7912
7913         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7914         initialization of HFmode scalar type (float16_t) to...
7915         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7916         code.
7917
7918         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7919
7920         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7921         having an -mfp16-format.
7922
7923 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7924
7925         * config/i386/predicates.md (vector_all_ones_operand): Use
7926         CONSTM1_RTX to simplify definition.
7927
7928 2015-08-20  Richard Biener  <rguenther@suse.de>
7929
7930         * toplev.c (compile_file): Remove loop calling late_global_decl
7931         on all symbols.
7932         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7933         on decls we assembled.
7934
7935 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
7936
7937         * common/config/aarch64/aarch64-common.c
7938         (AARCH64_CPU_NAME_LENGTH): Delete.
7939         (aarch64_option_extension): New.
7940         (all_extensions): Likewise.
7941         (processor_name_to_arch): Likewise.
7942         (arch_to_arch_name): Likewise.
7943         (all_cores): New.
7944         (all_architectures): Likewise.
7945         (aarch64_get_extension_string_for_isa_flags): Likewise.
7946         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7947         architecture names.
7948         * config/aarch64/aarch64-protos.h
7949         (aarch64_get_extension_string_for_isa_flags): New.
7950         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7951         (aarch64_option_print): Get the string to print from
7952         aarch64_get_extension_string_for_isa_flags.
7953         (aarch64_declare_function_name): Likewise.
7954         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7955         (MCPU_TO_MARCH_SPEC): This.
7956         (ASM_CPU_SPEC): Use it.
7957         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7958         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7959         (EXTRA_SPEC_FUNCTIONS): Use it.
7960
7961 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
7962
7963         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7964         expansion when !ISA_HAS_LWL_LWR.
7965         (mips_block_move_straight): Update the size of elements copied to
7966         account for alignment when !ISA_HAS_LWL_LWR.
7967         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7968
7969 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7970
7971         * expr.c (expand_expr_real_2): Check gimple statement during
7972         LSHIFT_EXPR expand.
7973
7974 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
7975
7976         * common.opt (fstack-protector): Initialize to -1.
7977         (fstack-protector-all): Likewise.
7978         (fstack-protector-strong): Likewise.
7979         (fstack-protector-explicit): Likewise.
7980         * configure.ac: Add --enable-default-ssp.
7981         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
7982         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7983         -1.
7984         * doc/install.texi: Document --enable-default-ssp.
7985         * config.in: Regenerated.
7986         * configure: Likewise.
7987
7988 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
7989
7990         PR rtl-optimization/64164
7991         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7992         (parm_in_stack_slot_p): ... this.  Disregard mode, what
7993         matters is whether the parm will live in a pseudo or a stack
7994         slot.
7995         (expand_one_ssa_partition): Deal with params without a default
7996         def.  Disregard mode.
7997         * cfgexpand.h: Renamed function declaration.
7998         * tree-ssa-coalesce.c: Adjust.
7999         * function.c (split_complex_args): Allocate stack slot for
8000         unassigned parms before splitting.
8001         (parm_in_unassigned_mem_p): New.  Use it instead of
8002         parm_maybe_byref_p throughout this file.
8003         (assign_parm_setup_block): Use it.  Accept pseudos in the
8004         expand-assigned rtl.
8005         (assign_parm_setup_reg): Drop BLKmode requirement.
8006         (assign_parm_setup_stack): Allocate and fill in the address of
8007         unassigned MEM parms.
8008
8009 2015-08-19  David Sherwood  <david.sherwood@arm.com>
8010
8011         * genmodes.c (emit_mode_unit_size_inline): New function.
8012         (emit_mode_unit_precision_inline): New function.
8013         (emit_insn_modes_h): Emit new #define.  Emit new functions.
8014         (emit_mode_unit_size): New function.
8015         (emit_mode_unit_precision): New function.
8016         (emit_mode_adjustments): Add mode_unit_size adjustments.
8017         (emit_insn_modes_c): Emit new arrays.
8018         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8019         use new inline methods.
8020
8021 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8022
8023         * config/aarch64/aarch64.c (bit_count): Delete prototype
8024         and definition.
8025         (aarch64_print_operand): Use popcount_hwi instead of the above.
8026
8027 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8028
8029         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8030         comment.
8031
8032 2015-08-19  Marek Polacek  <polacek@redhat.com>
8033
8034         PR middle-end/67133
8035         * gimple-ssa-isolate-paths.c
8036         (insert_trap_and_remove_trailing_statements): Rename to ...
8037         (insert_trap): ... this.  Don't remove trailing statements; split
8038         block instead.
8039         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8040
8041 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
8042
8043         PR other/67042
8044         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8045         conditionalize the whole on __GNUC__.  Add fallback code
8046         depending neither on undefined nor implementation-defined behaviour.
8047
8048 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
8049
8050         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8051         whitespaces with tab.
8052
8053 2015-08-19  Florian Weimer  <fweimer@redhat.com>
8054
8055         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8056         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8057         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8058         Move Name_Ids instantiation to the Prj.Proc package, to avoid
8059         trampolines.
8060
8061 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8062
8063         * config/arm/arm.c (bounds_check): Use %wd print format
8064         for HOST_WIDE_INT arguments.
8065
8066 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
8067
8068         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8069         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8070         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8071         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8072         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8073         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8074         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8075         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8076         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8077         typedefs.
8078
8079 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
8080
8081         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8082         function.c, graphite-scop-detection.c, haifa-sched.c,
8083         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8084         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8085         varasm.c: Remove typedefs of structs.
8086
8087 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8088
8089         * config/rs6000/altivec.h (vec_adde): New define.
8090         (vec_addec): Likewise.
8091         (vec_double): Likewise.
8092         (vec_bperm): Likewise.
8093         (vec_gb): Likewise.
8094         * config/rs6000/rs6000-builtin.def (ADDE): New
8095         BU_ALTIVEC_OVERLOAD_3.
8096         (ADDEC): Likewise.
8097         (DOUBLE): New BU_VSX_OVERLOAD_1.
8098         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8099         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8100         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8101         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8102         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8103         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8104         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8105         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8106         and P8V_BUILTIN_VEC_VBPERMQ.
8107
8108 2015-08-18  Jason Merrill  <jason@redhat.com>
8109
8110         * print-tree.c (print_node): Handle TREE_BINFO.
8111
8112 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8113
8114         PR middle-end/36757
8115         * builtins.c (expand_builtin_signbit): Add asserts to make sure
8116         we can expand BUILT_IN_SIGNBIT inline.
8117         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8118         * doc/extend.texi: Document the type-generic __builtin_signbit.
8119
8120 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8121
8122         PR rtl-optimization/67218
8123         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8124         (simplify_unary_operation_1): Use it.
8125
8126 2015-08-18  Marek Polacek  <polacek@redhat.com>
8127
8128         PR middle-end/67222
8129         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8130         if the call isn't valid.
8131         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8132         gimple_call_builtin_p.
8133         (call_may_clobber_ref_p_1): Likewise.
8134         (stmt_kills_ref_p): Likewise.
8135
8136 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8137
8138         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8139         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8140         (mips_hard_regno_scratch_ok): Likewise.
8141         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8142         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8143
8144 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8145
8146         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8147         (determine_value_range): Call refine_value_range_using_guard for
8148         each loop initial condition to improve value range.
8149
8150 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8151
8152         * config/i386/i386.c: Remove include of fibheap.h.
8153
8154 2015-08-17  Richard Biener  <rguenther@suse.de>
8155
8156         PR tree-optimization/67221
8157         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8158         (sccvn_dom_walker::before_dom_children): Mark backedges of
8159         non-executable blocks as not executable.
8160
8161 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8162
8163         * config/arm/arm.c (neon_element_bits): Replace call to
8164         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8165         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8166         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8167         (neon_vdup_lane<mode>): Likewise.
8168         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8169         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8170         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8171         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8172         * config/spu/spu.c (arith_immediate_p): Likewise.
8173         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8174         * expr.c (expand_expr_real_2): Likewise.
8175         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8176         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8177         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8178         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8179         New variable.
8180         * fold-const.c (fold_binary_loc): Replace call to
8181         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8182         GET_MODE_UNIT_PRECISION (m).
8183
8184 2015-08-17  Mike Stump  <mikestump@comcast.net>
8185
8186         * config/arm/arm.c (arm_block_move_unaligned_straight):
8187         Emit normal move instead of unaligned load when source or destination
8188         are appropriately aligned.
8189
8190 2015-08-17  Richard Biener  <rguenther@suse.de>
8191             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8192
8193         PR middle-end/16107
8194         * match.pd (div (coss (op @0) : New simplifier.
8195
8196 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8197
8198         PR rtl-optimization/64164
8199         PR bootstrap/66978
8200         PR middle-end/66983
8201         PR rtl-optimization/67000
8202         PR middle-end/67034
8203         PR middle-end/67035
8204         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8205         * tree-ssa-copyrename.c: Removed.
8206         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8207         -ftree-coalesce-vars.
8208         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8209         * common.opt (ftree-copyrename): Ignore.
8210         (ftree-coalesce-inlined-vars): Likewise.
8211         * doc/invoke.texi: Remove the ignored options above.
8212         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8213         * tree-ssa-coalesce.h: ... here.
8214         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8215         headers required by it.
8216         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8217         across variables when flag_tree_coalesce_vars.  Check register
8218         use and promoted modes to allow coalescing.  Do not coalesce
8219         maybe-byref parms with SSA_NAMEs of other variables, or
8220         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8221         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8222         with its member functions to tree-ssa-coalesce.c.
8223         (var_map_base_init): Likewise.  Renamed to
8224         compute_samebase_partition_bases.
8225         (partition_view_normal): Drop want_bases parameter.
8226         (partition_view_bitmap): Likewise.
8227         * tree-ssa-live.h: Adjust declarations.
8228         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8229         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8230         default defs at the entry point.
8231         (dump_part_var_map): New.
8232         (compute_optimized_partition_bases): New, called by...
8233         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8234         of compute_samebase_partition_bases.  Adjust.
8235         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8236         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8237         (ssa_default_def_partition): New.
8238         (get_rtl_for_parm_ssa_default_def): New.
8239         (align_local_variable, add_stack_var): Support anonymous SSA
8240         names.
8241         (defer_stack_allocation): Likewise.  Declare earlier.
8242         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8243         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8244         Do no record deferred-allocation marker in
8245         SA.partition_to_pseudo.
8246         (expand_stack_vars): Adjust check for the marker in it.
8247         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8248         redundant MEM attr setting.
8249         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8250         from...
8251         (expand_one_stack_var): ... this.  New wrapper to check and
8252         skip already expanded SSA partitions.
8253         (record_alignment_for_reg_var): New, factored out of...
8254         (expand_one_var): ... this.
8255         (expand_one_ssa_partition): New.
8256         (adjust_one_expanded_partition_var): New.
8257         (expand_one_register_var): Check and skip already expanded SSA
8258         partitions.
8259         (expand_used_vars): Don't create DECLs for anonymous SSA
8260         names.  Expand all SSA partitions, then adjust all SSA names.
8261         (pass::execute): Replace the loops that set
8262         SA.partition_to_pseudo from partition leaders and cleared
8263         DECL_RTL for multi-location variables, and that which used to
8264         rename vars and set attrs, with one that clears DECL_RTL and
8265         checks that PARMs and RESULTs default_defs match DECL_RTL.
8266         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8267         * emit-rtl.c: Include stor-layout.h.
8268         (set_reg_attrs_for_parm): Handle NULL decl.
8269         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8270         it's not a DECL.
8271         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8272         rather than its possibly-NULL DECL.
8273         * explow.c (promote_ssa_mode): New.
8274         * explow.h (promote_ssa_mode): Declare.
8275         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8276         (read_complex_part): Export.
8277         * expr.h (read_complex_part): Declare.
8278         * cfgexpand.h (parm_maybe_byref_p): Declare.
8279         * function.c: Include cfgexpand.h.
8280         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8281         (use_register_for_parm_decl): Wrapper for the above to
8282         special-case the result_ptr.
8283         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8284         (split_complex_args): Take assign_parm_data_all argument.
8285         Pass it to rtl_for_parm.  Set up rtl and context for split
8286         args.  Reset complex parm before fetching its default decl
8287         rtl.
8288         (assign_parms_unsplit_complex): Use the default-def complex
8289         parm rtl if it matches the components.
8290         (assign_parms_augmented_arg_list): Adjust.
8291         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8292         multiple locations.  Recognize split complex args.
8293         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8294         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8295         (assign_parm_setup_block): Prefer SSA-assigned location, and
8296         fill in its address if the memory location of a maybe-byref
8297         parm was not assigned by cfgexpand.
8298         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8299         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8300         sure passed_pointer parms don't need conversion.  Copy address
8301         or value as needed.
8302         (assign_parm_setup_stack): Prefer SSA-assigned location.
8303         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8304         rtl before testing for pointer bounds.  Special-case result_ptr.
8305         (expand_function_start): Maybe reset DECL_RTL of result.
8306         Prefer SSA-assigned location for result and static chain.
8307         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8308         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8309         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8310         anonymous SSA names.  Use promote_ssa_mode.
8311         (get_temp_reg): Likewise.
8312         (remove_ssa_form): Adjust.
8313         * stor-layout.c (layout_decl): Don't set mem attributes of
8314         non-MEMs.
8315         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8316         and get its reg_usage for reg invalidation.
8317         (compute_bb_dataflow): Pass it insn.
8318         (emit_notes_in_bb): Likewise.
8319
8320 2015-08-14  Marek Polacek  <polacek@redhat.com>
8321
8322         * tree-core.h (tree_base): Fix typo.
8323
8324 2015-08-14  Marek Polacek  <polacek@redhat.com>
8325
8326         PR middle-end/67133
8327         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8328         nonnull argument position is not outside function arguments.
8329
8330 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8331
8332         PR target/67143
8333         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8334         'lconst_atomic' with 'const_atomic'.
8335         (atomic_fetch_<optab><mode>): Likewise.
8336         (atomic_<optab>_fetch<mode>): Likewise.
8337         * config/aarch64/iterators.md (lconst-atomic): Move below
8338         'const_atomic'.
8339         (const_atomic): New.
8340
8341 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8342             Bernd Schmidt  <bernds@codesourcery.com>
8343
8344         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8345         debug options.
8346         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8347         (DWARF2_DEBUGGING_INFO): Don't define.
8348         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8349         * toplev.c (process_options): Add a case for it.
8350         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8351         (dwarf2out_init): Skip most initializations if
8352         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8353         case.
8354         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8355         DWARF2_LINENO_DEBUGGING_INFO.
8356         * opts.c (set_debug_level): Likewise.
8357
8358 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8359
8360         * config/arm/types.md (is_neon_type): Add missing types.
8361
8362 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8363
8364         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8365         for skylake.
8366         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8367         (processor_alias_table): Add skylake description.
8368         (enum processor_model): Add skylake processor.
8369         (arch_names_table): Add skylake record.
8370         * doc/invoke.texi: Add skylake item.
8371
8372 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8373
8374         * ira-int.h: Include recog.h.
8375         * ira-build.c: Don't include recog.h.
8376         * ira-color.c: Likewise.
8377         * ira-conflicts.c: Likewise.
8378         * ira-costs.c: Likewise.
8379         * ira-emit.c: Likewise.
8380         * ira-lives.c: Likewise.
8381         * ira.c: Likewise.
8382         * sched-deps.c: Likewise.
8383         * sel-sched.c: Likewise.
8384         * target-globals.c: Likewise.
8385
8386 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8387
8388         PR bootstrap/55035
8389         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8390         compiler that the n_dups and n_operands loop bounds are invariant.
8391
8392 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8393
8394         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8395         expressions in A and B.
8396
8397 2015-08-13  Richard Biener  <rguenther@suse.de>
8398
8399         * tree.c (nonnull_arg_p): Move from ...
8400         * tree-vrp.c (nonnull_arg_p): ... here.
8401         * tree.h (nonnull_arg_p): Declare.
8402         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8403         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8404         Properly initialize static chain and by-reference result pointer.
8405         (run_scc_vn): Adjust.
8406
8407 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8408
8409         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8410         TUNE_I6400.
8411
8412 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8413
8414         * config/aarch64/aarch64-protos.h
8415         (aarch64_gen_atomic_cas): Declare.
8416         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8417         Choose appropriate instruction pattern for the target.
8418         (aarch64_gen_atomic_cas): New.
8419         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8420         (atomic_compare_and_swap<mode>_1): Rename to
8421         aarch64_compare_and_swap<mode>.  Fix some indentation.
8422         (aarch64_compare_and_swap<mode>_lse): New.
8423         (aarch64_atomic_cas<mode>): New.
8424
8425 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8426
8427         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8428         (TARGET_LSE): New.
8429
8430 2015-08-13  Richard Biener  <rguenther@suse.de>
8431
8432         PR tree-optimization/67191
8433         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8434         assert we value-numbered last stmts operand because it can validly
8435         trigger for unreachable code.
8436
8437 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8438
8439         PR rtl-optimization/67103
8440         * ifcvt.c (noce_try_store_flag_constants): Move
8441         x = (-(test != 0) & (b - a)) + a transformation to...
8442         (noce_try_cmove): ... Here.  Try it if normal conditional
8443         move fails.
8444
8445 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8446
8447         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8448         pseudo-processors.
8449         * config/mips/mips.md (processor): Remove w32 and w64.
8450
8451 2015-08-13  Richard Biener  <rguenther@suse.de>
8452
8453         PR tree-optimization/66502
8454         PR tree-optimization/67167
8455         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8456         backedge arguments.
8457         (vn_phi_lookup): Adjust.
8458         (vn_phi_insert): Likewise.
8459         (visit_phi): Prefer to value-number to another PHI node
8460         over value-numbering to a PHI argument.
8461         (init_scc_vn): Mark DFS back edges.
8462
8463 2015-08-13  Richard Biener  <rguenther@suse.de>
8464
8465         * gimple.h (gcall::code_): New constant static member.
8466         (gcond::code_): Likewise.
8467         * gimple.c (gcall::code_): Define.
8468         (gcond::code_): Likewise.
8469         (is_a_helper <const gcond *>): Add.
8470         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8471         and forward to a new gcall overload with less checking and a
8472         cheaper way to access the operand.
8473         (gimple_call_lhs_ptr): Likewise.
8474         (gimple_call_set_lhs): Likewise.
8475         (gimple_call_internal_p): Likewise.
8476         (gimple_call_with_bounds_p): Likewise.
8477         (gimple_call_set_with_bounds): Likewise.
8478         (gimple_call_internal_fn): Likewise.
8479         (gimple_call_set_ctrl_altering): Likewise.
8480         (gimple_call_ctrl_altering_p): Likewise.
8481         (gimple_call_fntype): Likewise.
8482         (gimple_call_fn): Likewise.
8483         (gimple_call_fn_ptr): Likewise.
8484         (gimple_call_set_fndecl): Likewise.
8485         (gimple_call_fndecl): Likewise.
8486         (gimple_call_chain): Likewise.
8487         (gimple_call_num_args): Likewise.
8488         (gimple_call_arg): Likewise.
8489         (gimple_call_arg_ptr): Likewise.
8490         (gimple_call_set_arg): Likewise.
8491         (gimple_call_noreturn_p): Likewise.
8492         (gimple_cond_code): Likewise.
8493         (gimple_cond_lhs): Likewise.
8494         (gimple_cond_rhs): Likewise.
8495         (gimple_has_lhs): Reduce checking.
8496
8497 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8498
8499         PR middle-end/25529
8500         * match.pd (div (mult @0 @1) @1) : New simplifier.
8501
8502 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8503
8504         PR target/67071
8505         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8506         predicate to allow construction of vector constants using the
8507         VSLDOI vector shift instruction.
8508
8509         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8510         declaration.
8511
8512         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8513         the number of bytes to be shifted left and filled in with either
8514         all zero or all one bits.
8515         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8516         methods exist.
8517         (output_vec_const_move): On power8, generate XXLORC to generate
8518         a vector constant with all 1's. Do a split if we need to use a
8519         VSLDOI instruction.
8520
8521         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8522         properly test for the MSB.
8523
8524         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8525         vector constants that can be created with VSLDOI.
8526
8527 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8528
8529         revert:
8530         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8531         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8532         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8533         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8534         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8535         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8536         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8537         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8538         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8539
8540 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8541
8542         * config/xtensa/constraints.md (define_constraint "Y"): New
8543         constraint.
8544         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8545         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8546         * config/xtensa/predicates.md (move_operand): Match constants
8547         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8548         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8549         immediate references to TLS data.
8550         (xtensa_emit_move_sequence): Don't force constants to memory in
8551         the presence of TARGET_AUTO_LITPOOLS.
8552         (print_operand): Add 'y' format, same as default, but capable of
8553         printing SF mode constants as well.
8554         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8555         (movsf_internal): Add movi pattern that loads literal.
8556         (movsf, movdf): Don't force constants to memory in the presence
8557         of TARGET_AUTO_LITPOOLS.
8558         (movdf_internal): Add 'Y' constraint.
8559         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8560         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8561
8562 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8563
8564         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8565         Update comment.
8566         * config/arm/arm.c (ARM_FPU): Update macro.
8567         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8568         (TARGET_FP16): Likewise.
8569         (TARGET_CRYPTO): Likewise.
8570         (TARGET_NEON): Likewise.
8571         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8572         field features.
8573
8574 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8575
8576         PR other/67092
8577         PR other/67098
8578         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8579         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8580         accordingly.  Mention default for --with-stage1-ldflags.
8581
8582 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8583
8584         * config/arm/arm.h (arm_fpu_feature_set): New.
8585         (ARM_FPU_FSET_HAS): New.
8586         (FPU_FL_NONE): New.
8587         (FPU_FL_NEON): New.
8588         (FPU_FL_FP16): New.
8589         (FPU_FL_CRYPTO): New.
8590
8591 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8592
8593         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8594         after -mcmodel=large -fPIC sorry.
8595
8596 2015-08-12  Richard Biener  <rguenther@suse.de>
8597
8598         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8599         comparison operand order and commutative ternary op operand order.
8600         (sccvn_dom_walker::cond_stack): New state to track temporary
8601         expressions.
8602         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8603         no longer valid.
8604         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8605         expression.
8606         (sccvn_dom_walker::record_conds): Add a temporary conditional
8607         expressions and all related expressions also true/false.
8608         (sccvn_dom_walker::before_dom_children): Record temporary
8609         expressions based on the controlling condition of a single
8610         predecessor.  When trying to simplify a conditional statement
8611         lookup expressions we might have inserted earlier.
8612
8613 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8614
8615         PR target/67127
8616         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8617         to ARM core registers.
8618
8619 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8620
8621         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8622         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8623
8624 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8625
8626         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8627         line with comments.
8628         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8629
8630 2015-08-12  Richard Biener  <rguenther@suse.de>
8631
8632         * gimple.h (remove_pointer): New trait.
8633         (GIMPLE_CHECK2): New inline template function.
8634         (gassign::code_): New constant static member.
8635         (is_a_helper<const gassign *>): Add.
8636         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8637         and forward to a new gassign overload with less checking and a
8638         cheaper way to access the operand.
8639         (gimple_assign_lhs_ptr): Likewise.
8640         (gimple_assign_set_lhs): Likewise.
8641         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8642         Likewise.
8643         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8644         Likewise.
8645         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8646         Likewise.
8647         (gimple_assign_rhs_code): Likewise.
8648         * gimple.c (gassign::code_): Define.
8649
8650 2015-08-12  Richard Biener  <rguenther@suse.de>
8651
8652         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8653         Eliminate edges marked as not executable by SCCVN.
8654         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8655         (cond_dom_walker): Rename to sccvn_dom_walker.
8656         (sccvn_dom_walker::before_dom_children): Value-number defs
8657         of all stmts.
8658         (run_scc_vn): Remove loop value-numbering all SSA names.
8659         Drop not visited SSA names to varying.
8660
8661 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8662
8663         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8664         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8665         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8666         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8667         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8668         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8669         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8670         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8671         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8672
8673 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8674
8675         PR target/66954
8676         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8677         to enum feature_priority and feature_list.
8678         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8679         and isa_names_table.
8680
8681 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8682
8683         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8684         vect_induction_def.
8685
8686 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8687
8688         PR c/66098
8689         PR c/66711
8690         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8691         account when deciding what was the command-line status.
8692
8693 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8694
8695         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8696
8697         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8698         we're not the only contributor to target phi.
8699
8700 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8701
8702         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8703         FIXED_REG0.
8704
8705 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8706
8707         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8708
8709 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8710
8711         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8712         with CPU_SLM.
8713         * config/i386/i386.md (cpu): Remove knl.
8714
8715 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8716
8717         PR libgomp/65742
8718         PR middle-end/66332
8719         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8720         open-coded sequence.
8721         * omp-low.c (oacc_process_reduction_data): Remove handline of
8722         GOMP_DEVICE_HOST_NONSHM.
8723
8724         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8725         GET_MODE_INNER changes.
8726
8727 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8728             Ilya Verbin  <ilya.verbin@intel.com>
8729
8730         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8731
8732 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8733
8734         * doc/options.texi (EnabledBy): Document that the argument must be
8735         a Common option.
8736         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8737         Not enabled by -Wall.
8738         * optc-gen.awk: Give nicer error messages. Detect if the argument
8739         of EnabledBy is not a Common option.
8740         * common.opt (Wnull-dereference): Not enabled by -Wall.
8741         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8742
8743 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8746         model == 0x4f as Broadwell.
8747
8748 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8749
8750         PR rtl-optimization/67028
8751         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8752         Add test to see if a const_int fits in the new mode.
8753
8754 2015-08-07  DJ Delorie  <dj@redhat.com>
8755
8756         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8757
8758 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8759
8760         PR rtl-optimization/67029
8761         * ira-color.c: Include "recog.h" before including "ira-int.h".
8762         * target-globals.c: Likewise.
8763         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8764         adds an alternative_mask argument and use it instead of
8765         preferred_alternatives.
8766         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8767         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8768         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8769         (sched_analyze_insn): Update call to
8770         ira_implicitly_set_insn_hard_regs.
8771         * sel-sched.c: Include "ira-int.h" after including "ira.h".
8772         (implicit_clobber_conflict_p): Update call to
8773         ira_implicitly_set_insn_hard_regs.
8774
8775 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8776
8777         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8778
8779 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8780
8781         PR target/67002
8782         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8783         currently_expanding_to_rtl is set.
8784
8785 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
8786
8787         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8788         * configure: Regenerate.
8789
8790 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8791             Jiong Wang  <jiong.wang@arm.com>
8792
8793         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8794         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8795         (REG_CLASS_NAMES): Likewise.
8796         (REG_CLASS_CONTENTS): Likewise.
8797         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8798         (aarch64_register_move_cost): Likewise.
8799         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8800         possible.
8801         * config/aarch64/constraints.md (Uc0): New constraint.
8802
8803 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8804
8805         * config/aarch64/constraints.md (Usf): Add the test of
8806         aarch64_is_noplt_call_p.
8807
8808 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8809
8810         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8811         declaration.
8812         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8813         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8814         (call_symbol): Likewise.
8815
8816 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8817
8818         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8819         for vectorizing multiplication patterns.
8820         * tree-vectorizer.h: Adjust the number of patterns.
8821
8822 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8823
8824         * config/i386/sse.md (*vec_concatv2df): Declare added
8825         alternatives as sselog type.
8826
8827 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8828
8829         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8830         all GPRs.
8831
8832 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8833
8834         * config/s390/s390.c (s390_expand_tbegin): Expand either
8835         tbegin_1_z13 or tbegin_1 depending on VX flag.
8836         * config/s390/s390.md ("tbegin_1_z13"): New expander.
8837
8838 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8839
8840         * config/s390/s390.opt: Clarify description for -mzvector
8841         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8842         -mzvector.
8843
8844 2015-08-06  Richard Biener  <rguenther@suse.de>
8845
8846         * gimple.h (gimple_call_set_fn): Access op member directly.
8847         (gimple_call_chain_ptr): Likewise.
8848         (gimple_call_set_chain): Likewise.
8849         (gimple_cond_lhs_ptr): Likewise.
8850         (gimple_cond_set_lhs): Likewise.
8851         (gimple_cond_rhs_ptr): Likewise.
8852         (gimple_cond_set_rhs): Likewise.
8853         (gimple_cond_true_label): Likewise.
8854         (gimple_cond_set_true_label): Likewise.
8855         (gimple_cond_set_false_label): Likewise.
8856         (gimple_cond_false_label): Likewise.
8857         (gimple_label_label): Likewise.
8858         (gimple_label_set_label): Likewise.
8859         (gimple_goto_set_dest): Likewise.
8860         (gimple_asm_input_op): Likewise.
8861         (gimple_asm_input_op_ptr): Likewise.
8862         (gimple_asm_set_input_op): Likewise.
8863         (gimple_asm_output_op): Likewise.
8864         (gimple_asm_output_op_ptr): Likewise.
8865         (gimple_asm_set_output_op): Likewise.
8866         (gimple_asm_clobber_op): Likewise.
8867         (gimple_asm_set_clobber_op): Likewise.
8868         (gimple_asm_label_op): Likewise.
8869         (gimple_asm_set_label_op): Likewise.
8870         (gimple_switch_index): Likewise.
8871         (gimple_switch_index_ptr): Likewise.
8872         (gimple_return_retval_ptr): Likewise.
8873         (gimple_return_retval): Likewise.
8874         (gimple_return_set_retval): Likewise.
8875         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
8876         (gimple_switch_label): Likewise.
8877         (gimple_switch_set_label): Likewise.
8878
8879 2015-08-06  Richard Biener  <rguenther@suse.de>
8880
8881         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8882         bool comparison canonicalization and restrict to integers.
8883
8884 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
8885
8886         * coretypes.h (enum symbol_visibility): Relocate here.
8887         * flag-types.h (enum symbol_visibility): Remove.
8888         * tree-core.h (enum symbol_visibility): Remove.
8889
8890 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
8891
8892         PR target/66870
8893         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8894         for no_split_stack function attribute along with
8895         flag_split_stack.
8896         (rs6000_expand_split_stack_prologue): Likewise.
8897
8898 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8899             Jeff Law  <law@redhat.com>
8900
8901         PR c/16351
8902         * doc/invoke.texi (Wnull-dereference): New.
8903         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8904         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8905         Warn for potential NULL dereferences.
8906         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8907         * ubsan.c (instrument_nonnull_arg): Call
8908         infer_nonnull_range_by_attribute.
8909         (instrument_nonnull_return): Likewise.
8910         * common.opt (Wnull-dereference); New.
8911         * gimple.c (infer_nonnull_range): Remove bool arguments.
8912         (infer_nonnull_range_by_dereference): New.
8913         (infer_nonnull_range_by_attribute): New.
8914         * gimple.h: Update declarations.
8915
8916 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8917
8918         * gensupport.c (sequence_num): Replace with...
8919         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8920         ...these new variables.
8921         (init_rtx_reader_args_cb): Update accordingly.
8922         (get_num_code_insns): Likewise.
8923         (read_md_rtx): Rework to use a while loop and get_c_test.
8924         Use the new counters.  Remove redundant DEFINE_SUBST case.
8925         * genoutput.c (gen_split): Delete.
8926         (main): Don't call it.
8927
8928 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8929
8930         * gensupport.h (get_c_test): Declare.
8931         * gensupport.c (get_c_test): New function.
8932         * genconditions.c (main): Use it.
8933         * genrecog.c (validate_pattern): Likewise.
8934         (match_pattern_1): Likewise.  Remove c_test argument.
8935         (match_pattern): Update accordingly and remove c_test argument.
8936         (main): Update accordingly.
8937
8938 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8939
8940         * gensupport.h (get_num_insn_codes): Declare.
8941         * gensupport.c (get_num_insn_codes): New function.
8942         * genattrtab.c (optimize_attrs): Rename max_insn_code to
8943         num_insn_codes.
8944         (main): Likewise.  Use get_num_insn_codes.
8945         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8946
8947 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8948
8949         PR middle-end/66311
8950         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8951         is zero- rather than sign-extended.
8952
8953 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8954
8955         * target-insns.def (can_extend): Delete.
8956
8957 2015-08-05  Richard Biener  <rguenther@suse.de>
8958
8959         PR tree-optimization/67121
8960         * tree-if-conv.c (combine_blocks): Clear range-info produced
8961         by stmts no longer executed conditionally.
8962
8963 2015-08-05  Nick Clifton  <nickc@redhat.com>
8964
8965         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8966         to allow identical far pointers to remain.
8967
8968 2015-08-05  Richard Biener  <rguenther@suse.de>
8969
8970         PR middle-end/67120
8971         * match.pd: Compare address bases with == if they are decls
8972         or SSA names, not operand_equal_p.  Otherwise fail.
8973
8974 2015-08-05  Richard Biener  <rguenther@suse.de>
8975
8976         PR tree-optimization/67055
8977         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8978         NULL gimple_block.
8979
8980         * g++.dg/torture/pr67055.C: New testcase.
8981
8982 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8983
8984         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8985         noavx512vl.
8986         (define_attr "enabled"): Handle avx521vl and noavx512vl.
8987         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8988         AVX-512 alternative out of SSE.
8989         (define_insn "*vec_concatv2df"): Ditto.
8990
8991 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8992
8993         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8994         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8995         CODE_FOR_avx_ptestv4di.
8996         * config/i386/sse.md (define_mode_iterator V_AVX): New.
8997         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8998         (define_insn "avx_ptest256"): Merge this ...
8999         (define_insn "sse4_1_ptest"): And this ...
9000         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9001
9002 2015-08-05  Richard Biener  <rguenther@suse.de>
9003
9004         PR tree-optimization/67109
9005         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9006         against too big groups.  Print whether this is a load or store
9007         group.  Rename from ...
9008         (vect_analyze_group_access): ... this which is now a wrapper
9009         dissolving an invalid group.
9010         (vect_analyze_data_ref_accesses): Print whether this is a load
9011         or store group.
9012
9013 2015-08-05  Richard Biener  <rguenther@suse.de>
9014
9015         PR middle-end/67107
9016         * match.pd: Guard const_binop result checking against NULL_TREE
9017         result.
9018
9019 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
9020
9021         * cse.c (cse_insn): Restoring old behaviour for src_eqv
9022          when dest and value in the REG_EQUAL are same and dest
9023          is STRICT_LOW_PART.
9024
9025 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
9026
9027         * config/moxie/moxie.h (PRINT_OPERAND,
9028           PRINT_OPERAND_ADDRESS): Remove macros.
9029         * config/moxie/moxie-protos.h (moxie_print_operand,
9030           moxie_print_operand_address): Remove declaration.
9031         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9032           TARGET_PRINT_OPERAND_ADDRESS): Define.
9033           (moxie_print_operand, moxie_print_operand_address): Make static.
9034
9035 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9036
9037         PR target/66731
9038         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9039         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9040
9041 2015-08-04  Richard Biener  <rguenther@suse.de>
9042
9043         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9044         generated code.
9045         (dt_operand::gen_gimple_expr): Adjust.
9046
9047 2015-08-04  Richard Biener  <rguenther@suse.de>
9048
9049         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9050         bool compares on RHS.
9051         * match.pd: Add X ==/!= !X is false/true pattern.
9052
9053 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
9054
9055         * config/aarch64/aarch64.c: Change inner loop statement cost
9056         to be consistent with other targets.
9057
9058 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
9059
9060         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9061         targets.
9062
9063 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9064
9065         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9066         (machine_function): Remove pseudos field.
9067
9068 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9069
9070         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9071         Exit early and use target_option_current_node if processing current
9072         pragma.
9073
9074 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9075
9076         * doc/extend.texi (AArch64 Function Attributes): New node.
9077         (AArch64 Pragmas): Likewise.
9078
9079 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9080
9081         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9082         Initialize simd builtins if TARGET_SIMD.
9083         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9084         Make sure that the builtins are initialized only once no matter how
9085         many times the function is called.
9086         (aarch64_init_builtins): Unconditionally initialize crc builtins.
9087         (aarch64_relayout_simd_param): New function.
9088         (aarch64_simd_expand_args): Use above during argument expansion.
9089         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9090         simd builtins if TARGET_SIMD.
9091         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9092         prototype.
9093         (aarch64_relayout_simd_types): Likewise.
9094
9095 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9096
9097         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9098         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9099         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9100         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9101         static keyword.
9102         (aarch64_reset_previous_fndecl): New function.
9103         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9104         the string.
9105         * config/aarch64/aarch64-c.c: New file.
9106         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9107         Push and pop options at beginning and end.  Remove ifdef
9108         __ARM_FEATURE_CRC32.
9109         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9110         Add pragma +nothing+simd and +nothing+crypto where appropriate.
9111         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9112         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9113         Define prototype.
9114         (aarch64_register_pragmas): Likewise.
9115         (aarch64_reset_previous_fndecl): Likewise.
9116         (aarch64_process_target_attr): Likewise.
9117         (aarch64_override_options_internal): Likewise.
9118
9119 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9120
9121         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9122         New function.
9123         (aarch64_can_inline_p): Likewise.
9124         (TARGET_CAN_INLINE_P): Define.
9125
9126 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9127
9128         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9129         Remove static.  Handle OPT_mgeneral_regs_only,
9130         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9131         OPT_momit_leaf_frame_pointer.
9132         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9133         (aarch64_attr_opt_type): New enum.
9134         (aarch64_attribute_info): New struct.
9135         (aarch64_handle_attr_arch): New function.
9136         (aarch64_handle_attr_cpu): Likewise.
9137         (aarch64_handle_attr_tune): Likewise.
9138         (aarch64_handle_attr_isa_flags): Likewise.
9139         (aarch64_attributes): New table.
9140         (aarch64_process_one_target_attr): New function.
9141         (num_occurences_in_str): Likewise.
9142         (aarch64_process_target_attr): Likewise.
9143         (aarch64_option_valid_attribute_p): Likewise.
9144         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9145         * config/aarch64/aarch64-protos.h: Include input.h
9146         (aarch64_handle_option): Declare prototype.
9147
9148 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9149
9150         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9151         * config/aarch64/aarch64.c: Include target-globals.h
9152         (aarch64_previous_fndecl): New variable.
9153         (aarch64_set_current_function): New function.
9154         (TARGET_SET_CURRENT_FUNCTION): Define.
9155
9156 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9157
9158         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9159         (explicit_arch): Likewise.
9160         (x_aarch64_isa_flags): Likewise.
9161         (mgeneral-regs-only): Mark as Save.
9162         (mfix-cortex-a53-835769): Likewise.
9163         (mcmodel=): Likewise.
9164         (mstrict-align): Likewise.
9165         (momit-leaf-frame-pointer): Likewise.
9166         (mtls-dialect): Likewise.
9167         (master=): Likewise.
9168         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9169         (aarch64_isa_flags): Remove extern declaration.
9170         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9171         to indicate success or failure.
9172         (aarch64_validate_march): Likewise.
9173         (aarch64_validate_mtune): Likewise.
9174         (aarch64_isa_flags): Delete.
9175         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9176         instead of aarch64_isa_flags.
9177         (aarch64_get_tune_cpu): New function.
9178         (aarch64_get_arch): Likewise.
9179         (aarch64_override_options): Use above and set up explicit_tune_core
9180         and explicit_arch.
9181         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9182         argument and use that instead of the global aarch64_isa_flags.
9183         (aarch64_option_save): New function.
9184         (aarch64_option_restore): Likewise.
9185         (aarch64_option_print): Likewise.
9186         (aarch64_declare_function_name): Likewise.
9187         (aarch64_start_file): Delete.
9188         (TARGET_ASM_FILE_START): Do not define.
9189         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9190         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9191         Declare prototype.
9192
9193 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9194
9195         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9196         flag_omit_leaf_frame_pointer to 2.
9197
9198 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9199
9200         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9201         define to 0 or 1.
9202         (TARGET_FIX_ERR_A53_835769): New macro.
9203         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9204         handling of opts->x_aarch64_fix_a53_err835769.
9205         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9206         than aarch64_fix_a53_err835769.
9207         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9208         * config/aarch64/aarch64-linux.h: Likewise.
9209
9210 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9211
9212         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9213         ix86_expand_int_movcc as boolean.
9214
9215 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9216
9217         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9218         (aarch64_cpu_string): Likewise.
9219         (aarch64_tune_string): Likewise.
9220         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9221         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9222         Add extra argument to put result into.
9223         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9224         (aarch64_parse_cpu): Add arguments to put results into. Return
9225         aarch64_parse_opt_result.
9226         (aarch64_parse_tune): Likewise.
9227         (aarch64_override_options_after_change_1): New function.
9228         (aarch64_override_options_internal): New function.
9229         (aarch64_validate_mcpu): Likewise.
9230         (aarch64_validate_march): Likewise.
9231         (aarch64_validate_mtune): Likewise.
9232         (aarch64_override_options): Update to reflect above changes.
9233         Move some logic into aarch64_override_options_internal.
9234         Initialize target_option_default_node and target_option_current_node.
9235         (aarch64_override_options_after_change): Move logic into
9236         aarch64_override_options_after_change_1 and call it with global_options.
9237         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9238         flag values from that.
9239
9240 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9241
9242         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9243         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9244         * config/aarch64/aarch64.c (struct processor): Add arch field.
9245         (all_architectures): Handle above, move above all_cores.
9246         (all_cores): Handle above.
9247         (aarch64_parse_arch): Handle above changes.
9248         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9249         above.  Update comments.
9250         (armv8.1-a): Likewise.
9251         * config/aarch64/aarch64-cores.def: Update according to above.
9252         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9253         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9254         aarch64_arch_driver_info.
9255
9256 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9257
9258         * config/aarch64/aarch64.c (struct processor): Add ident field.
9259         Rename core sched_core.
9260         (all_cores): Handle above changes.
9261         (all_architectures): Likewise.
9262         (aarch64_parse_arch): Likewise.
9263         (aarch64_override_options): Likewise.
9264
9265 2015-08-04  Richard Biener  <rguenther@suse.de>
9266
9267         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9268         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9269         comparisons embedded in [VEC_]COND_EXPRs.
9270
9271 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9272
9273         * tree-if-conv.c: Fix various typos in comments.
9274         * tree-vect-stmts.c: Likewise.
9275
9276 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9277
9278         PR tree-optimization/67043
9279         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9280         preheader after hoisting invariant in it.
9281         (find_defs): Force recomputation of all luids.
9282
9283 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9284
9285         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9286         using a base register.
9287
9288 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9289
9290         * main.c (main): Pass in NULL for toplev's external_timer.
9291         * timevar.c: Include coretypes.h.
9292         (class timer::named_items): New.
9293         (timer::named_items::named_items): New.
9294         (timer::named_items::~named_items): New.
9295         (timer::named_items::push): New.
9296         (timer::named_items::pop): New.
9297         (timer::named_items::print): New.
9298         (timer::timer): Initialize field "m_jit_client_items".
9299         (timer::~timer): New.
9300         (timer::push): Move bulk of implementation to...
9301         (timer::push_internal): ...here.  New function.
9302         (timer::pop): Move bulk of implementation to...
9303         (timer::pop_internal): ...here.  New function.
9304         (timer::push_client_item): New.
9305         (timer::pop_client_item): New.
9306         (timer::print_row): New function, taken from timer::print.
9307         (timer::print): Print "GCC items" header if we also have client
9308         items.  Move row-printing to timer::print_row.  Print any client
9309         items.
9310         (timer::get_topmost_item_name): New method.
9311         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9312         (TV_JIT_CLIENT_CODE): New.
9313         * timevar.h (timer::push_client_item): New declaration.
9314         (timer::pop_client_item): New declaration.
9315         (timer::get_topmost_item_name): New method.
9316         (timer::push_internal): New declaration.
9317         (timer::pop_internal): New declaration.
9318         (timer::print_row): New declaration.
9319         (timer::named_items): New declaration.
9320         (timer::m_jit_client_items): New field.
9321         (timer): Add friend class named_items.
9322         (auto_timevar::auto_timevar): Add timer param.
9323         (auto_timevar::~auto_timevar): Use field "m_timer".
9324         (auto_timevar::m_timer): New field.
9325         * toplev.c (initialize_rtl): Add g_timer as param when
9326         constructing auto_timevar instance.
9327         (toplev::toplev): Add "external_timer" param, and use it to
9328         initialize the "g_timer" global if non-NULL.
9329         (toplev::~toplev): If this created "g_timer", delete it.
9330         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9331         with "external_timer" timer *.
9332
9333 2015-08-03  Alexander Basov <coohpt@gmail.com>
9334
9335         PR middle-end/64744
9336         PR middle-end/48470
9337         PR middle-end/43404
9338         * cfgexpand.c (expand_one_var): Add check if stack is going to
9339         be used in naked function.
9340         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9341         whether expression should not reside in MEM.
9342         * function.c (use_register_for_decl): Do not use registers for
9343         non-register things (volatile, float, BLKMode) in naked functions.
9344
9345 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9346
9347         PR target/67060
9348         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9349         Adjust splits to match new pattern.
9350
9351 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9352
9353         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9354         (VEC_M): Likewise.
9355         (VEC_N): Likewise.
9356         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9357         point in VSX registers.
9358
9359         * config/rs6000/constraints.md (wb constraint): Document unused
9360         w<x> constraint.
9361         (we constraint): Likewise.
9362         (wo constraint): Likewise.
9363         (wp constraint): New constraint for IEEE 128-bit floating point in
9364         VSX registers.
9365         (wq constraint): Likewise.
9366
9367         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9368         IEEE 128-bit floating point in VSX registers.
9369         (easy_scalar_constant): Likewise.
9370
9371         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9372         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9373         registers.
9374         (rs6000_init_hard_regno_mode_ok): Likewise.
9375
9376         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9377         floating point in VSX registers.
9378         (VSX_L): Likewise.
9379         (VSX_M): Likewise.
9380         (VSX_M2): Likewise.
9381         (VSm): Likewise.
9382         (VSs): Likewise.
9383         (VSr): Likewise.
9384         (VSa): Likewise.
9385         (VSv): Likewise.
9386         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9387         IEEE 128-bit floating point in VSX registers on little endian.
9388         (vsx_le_undo_permute_<mode>): Likewise.
9389         (vsx_le_perm_load_<mode>): Likewise.
9390         (vsx_le_perm_store_<mode>): Likewise.
9391         (splitters for IEEE 128-bit fp moves): Likewise.
9392
9393         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9394         wq constraints.
9395
9396         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9397         floating point in VSX registers.
9398         (VM2): Likewise.
9399
9400         * doc/md.text (Machine Constraints): Document wp and wq
9401         constraints on PowerPC.
9402
9403 2015-08-03  Jeff Law  <law@redhat.com>
9404
9405         PR middle-end/66314
9406         PR gcov-profile/66899
9407         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9408         iterate over the jump threading paths when an element in the
9409         jump threading paths array is eliminated.
9410
9411 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9412
9413         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9414
9415 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9416
9417         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9418         is_use_properly_guarded the variable def_preds.  Free its
9419         contents before returning.
9420         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9421         (is_use_properly_guarded): Replace local variable def_preds with
9422         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9423         the empty vector.
9424
9425 2015-08-03  Richard Biener  <rguenther@suse.de>
9426
9427         * genmatch.c (simplify::for_subst_vec): New member.
9428         (binary_ok): New helper for for lowering.
9429         (lower_for): Delay substituting operators into result expressions
9430         if we can merge the results eventually again.
9431         (capture_info::walk_result): Adjust for user_id appearing as
9432         result expression operator.
9433         (expr::gen_transform): Likewise.
9434         (dt_simplify::gen_1): Likewise.
9435         (dt_simplify::gen): Pass not substituted operators to tail
9436         functions or initialize local variable with it.
9437         (decision_tree::gen): Adjust function signature.
9438         * match.pd: Fix tests against global code and add default
9439         cases to switch stmts.
9440
9441 2015-08-03  Richard Biener  <rguenther@suse.de>
9442
9443         * genmatch.c (dt_simplify::gen): Create captures array
9444         with an initializer.
9445
9446 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9447
9448         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9449         the host compiler is affected by placement new aliasing bug.
9450         * configure: Regenerate.
9451         * Makefile.in (ALIASING_FLAGS): New variable.
9452         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9453
9454 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9455
9456         PR target/66731
9457         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9458         (negmulsf3_vfp): Likewise.
9459         (muldf3negdf_vfp): Disable for -frounding-math.
9460         (mulsf3negsf_vfp): Likewise.
9461         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9462         fix MULT cost with -frounding-math.
9463
9464 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9465
9466         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9467         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9468         explicit.  Prefer to add the flag whenever possible.
9469         (noce_process_if_block): Try noce_try_store_flag_constants before
9470         noce_try_cmove.
9471
9472 2015-08-03  Richard Biener  <rguenther@suse.de>
9473
9474         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9475         New hash-map to record equivalent transforms.
9476         (dt_node::analyze): Populate the equivalent transforms hash-map.
9477         (dt_simplify::info): Add reference to hash-map entry.
9478         (dt_simplify::gen): If we have split out a function for the
9479         transform, generate a call to it.
9480         (sinfo_hashmap_traits::hash): New function.
9481         (compare_op): New helper function for ...
9482         (sinfo_hashmap_traits::equal_keys): ... this new function.
9483         (decision_tree::gen): Split out common equivalent transforms
9484         into functions.
9485
9486 2015-08-03  Richard Biener  <rguenther@suse.de>
9487
9488         * gimple-fold.c (fold_gimple_assign): Remove folding of
9489         the comparison in COND_EXPRs.
9490
9491 2015-08-03  Richard Biener  <rguenther@suse.de>
9492
9493         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9494         on the rhs of assignments first simplify the embedded
9495         GENERIC condition.
9496
9497 2015-08-03  Richard Biener  <rguenther@suse.de>
9498
9499         PR tree-optimization/66917
9500         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9501         field.
9502         (DR_VECT_AUX): New macro.
9503         (set_dr_misalignment): Adjust.
9504         (dr_misalignment): Likewise.
9505         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9506         Compute whether the base is at least element aligned.
9507         * tree-vect-stmts.c (ensure_base_align): Adjust.
9508         (vectorizable_store): If the base is not element aligned
9509         preserve alignment of the original access if misalignment is unknown.
9510         (vectorizable_load): Likewise.
9511
9512 2015-08-02  Martin Sebor  <msebor@redhat.com>
9513
9514         * c-family/c.opt (-Wframe-address): New warning option.
9515         * doc/invoke.texi (Wframe-address): Document it.
9516         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9517         Clarify possible effects of calling the functions with non-zero
9518         arguments and mention -Wframe-address.
9519         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9520
9521 2015-08-01  Michael Collison  <michael.collison@linaro.org
9522             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9523
9524         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9525         (*arm_umin_cmp): Likewise.
9526
9527 2015-08-01  Caroline Tice  <cmtice@google.com>
9528
9529         PR 66521
9530         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9531         global variables.
9532         (vtbl_find_mangled_name):  New function.
9533         (vtbl_register_mangled_name):  New function.
9534         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9535         mangled name in mangled name vectors.
9536         (find_or_create_vtbl_map_node):  Ditto.
9537         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9538         update recursion_depth on function entry; pass it to every recursive
9539         call; automatically exit if depth > 25 (give up looking at that point).
9540         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9541         var_is_used_for_virtual_call_p.
9542         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9543         global variable decls.
9544         (vtbl_register_mangled_name): New extern function decl.
9545
9546 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9547
9548         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9549         function.
9550         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9551         Declare.
9552         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9553         operation_no_trapping_overflow.  Allow non-overflow operations.
9554         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9555         operations.
9556
9557 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9558
9559         PR target/67049
9560         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9561
9562 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9563
9564         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9565         Enable for TARGET_32BIT.
9566         (*if_move_neg): Likewise.
9567
9568 2015-07-31  Nick Clifton  <nickc@redhat.com>
9569
9570         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9571         Returns true for __model__.
9572         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9573
9574 2015-07-31  Alan Modra  <amodra@gmail.com>
9575
9576         PR target/66870
9577         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9578         (rs6000_emit_prologue): Set it.
9579         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9580
9581 2015-07-31  Richard Biener  <rguenther@suse.de>
9582
9583         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9584         -> X == (C1 ^ C2) which is already implemented in match.pd.
9585         Remove redundant dispatching to fold_relational_const.
9586         Move unordered self and NaN compares ...
9587         * match.pd: ... as patterns here.  Remove some stray captures
9588         and add a comment.
9589
9590 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9591
9592         * config/i386/i386.c
9593         (bdesc_special_args): Convert mask type from signed to unsigned for
9594         masked builtins.
9595         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9596         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9597         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9598         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9599         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9600         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9601         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9602         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9603         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9604         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9605         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9606         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9607         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9608         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9609         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9610         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9611         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9612         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9613         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9614         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9615         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9616         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9617         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9618         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9619         * config/i386/i386-builtin-types.def
9620         (V16QI_FTYPE_V16SI): Remove.
9621         (V8DF_FTYPE_V8SI): Ditto.
9622         (V8HI_FTYPE_V8DI): Ditto.
9623         (V8SI_FTYPE_V8DI): Ditto.
9624         (V8SF_FTYPE_V8DF): Ditto.
9625         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9626         (V16HI_FTYPE_V16SI): Ditto.
9627         (V16SF_FTYPE_V16HI): Ditto.
9628         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9629         (V16SF_FTYPE_V16SI): Ditto.
9630         (V4DI_FTYPE_V4DI): Ditto.
9631         (V16SI_FTYPE_V16SF): Ditto.
9632         (V16SF_FTYPE_FLOAT): Ditto.
9633         (V8DF_FTYPE_DOUBLE): Ditto.
9634         (V8DI_FTYPE_INT64): Ditto.
9635         (V8DI_FTYPE_V4DI): Ditto.
9636         (V16QI_FTYPE_V8DI): Ditto.
9637         (UINT_FTYPE_V4SF): Ditto.
9638         (UINT64_FTYPE_V4SF): Ditto.
9639         (UINT_FTYPE_V2DF): Ditto.
9640         (UINT64_FTYPE_V2DF): Ditto.
9641         (V16SI_FTYPE_V16SI): Ditto.
9642         (V8DI_FTYPE_V8DI): Ditto.
9643         (V16SI_FTYPE_PV4SI): Ditto.
9644         (V16SF_FTYPE_PV4SF): Ditto.
9645         (V8DI_FTYPE_PV2DI): Ditto.
9646         (V8DF_FTYPE_PV2DF): Ditto.
9647         (V4DI_FTYPE_PV2DI): Ditto.
9648         (V4DF_FTYPE_PV2DF): Ditto.
9649         (V16SI_FTYPE_PV2SI): Ditto.
9650         (V16SF_FTYPE_PV2SF): Ditto.
9651         (V8DI_FTYPE_PV4DI): Ditto.
9652         (V8DF_FTYPE_PV4DF): Ditto.
9653         (V8SF_FTYPE_FLOAT): Ditto.
9654         (V4SF_FTYPE_FLOAT): Ditto.
9655         (V4DF_FTYPE_DOUBLE): Ditto.
9656         (V8SF_FTYPE_PV4SF): Ditto.
9657         (V8SI_FTYPE_PV4SI): Ditto.
9658         (V4SI_FTYPE_PV2SI): Ditto.
9659         (V8SF_FTYPE_PV2SF): Ditto.
9660         (V8SI_FTYPE_PV2SI): Ditto.
9661         (V16SF_FTYPE_PV8SF): Ditto.
9662         (V16SI_FTYPE_PV8SI): Ditto.
9663         (V8DI_FTYPE_V8SF): Ditto.
9664         (V4DI_FTYPE_V4SF): Ditto.
9665         (V2DI_FTYPE_V4SF): Ditto.
9666         (V64QI_FTYPE_QI): Ditto.
9667         (V32HI_FTYPE_HI): Ditto.
9668         (V8UHI_FTYPE_V8UHI): Ditto.
9669         (V16UHI_FTYPE_V16UHI): Ditto.
9670         (V32UHI_FTYPE_V32UHI): Ditto.
9671         (V2UDI_FTYPE_V2UDI): Ditto.
9672         (V4UDI_FTYPE_V4UDI): Ditto.
9673         (V8UDI_FTYPE_V8UDI): Ditto.
9674         (V4USI_FTYPE_V4USI): Ditto.
9675         (V8USI_FTYPE_V8USI): Ditto.
9676         (V16USI_FTYPE_V16USI): Ditto.
9677         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9678         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9679         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9680         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9681         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9682         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9683         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9684         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9685         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9686         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9687         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9688         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9689         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9690         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9691         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9692         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9693         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9694         (V16SI_FTYPE_V16SI_SI): Ditto.
9695         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9696         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9697         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9698         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9699         (QI_FTYPE_QI): Ditto.
9700         (SI_FTYPE_SI): Ditto.
9701         (DI_FTYPE_DI): Ditto.
9702         (QI_FTYPE_QI_QI): Ditto.
9703         (QI_FTYPE_QI_INT): Ditto.
9704         (HI_FTYPE_HI_INT): Ditto.
9705         (SI_FTYPE_SI_INT): Ditto.
9706         (DI_FTYPE_DI_INT): Ditto.
9707         (HI_FTYPE_V16QI_V16QI): Ditto.
9708         (SI_FTYPE_V32QI_V32QI): Ditto.
9709         (DI_FTYPE_V64QI_V64QI): Ditto.
9710         (QI_FTYPE_V8HI_V8HI): Ditto.
9711         (HI_FTYPE_V16HI_V16HI): Ditto.
9712         (SI_FTYPE_V32HI_V32HI): Ditto.
9713         (QI_FTYPE_V4SI_V4SI): Ditto.
9714         (QI_FTYPE_V8SI_V8SI): Ditto.
9715         (QI_FTYPE_V2DI_V2DI): Ditto.
9716         (QI_FTYPE_V4DI_V4DI): Ditto.
9717         (QI_FTYPE_V8DI_V8DI): Ditto.
9718         (HI_FTYPE_V16SI_V16SI): Ditto.
9719         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9720         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9721         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9722         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9723         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9724         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9725         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9726         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9727         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9728         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9729         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9730         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9731         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9732         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9733         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9734         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9735         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9736         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9737         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9738         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9739         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9740         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9741         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9742         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9743         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9744         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9745         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9746         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9747         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9748         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9749         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9750         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9751         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9752         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9753         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9754         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9755         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9756         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9757         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9758         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9759         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9760         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9761         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9762         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9763         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9764         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9765         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9766         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9767         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9768         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9769         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9770         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9771         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9772         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9773         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9774         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9775         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9776         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9777         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9778         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9779         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9780         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9781         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9782         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9783         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9784         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9785         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9786         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9787         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9788         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9789         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9790         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9791         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9792         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9793         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9794         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9795         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9796         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9797         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9798         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9799         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9800         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9801         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9802         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9803         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9804         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9805         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9806         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9807         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9808         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9809         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9810         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9811         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9812         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9813         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9814         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9815         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9816         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9817         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9818         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9819         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9820         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9821         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9822         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9823         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9824         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9825         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9826         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9827         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9828         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9829         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9830         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9831         (HI_FTYPE_HI): Ditto.
9832         (HI_FTYPE_V16QI): Ditto.
9833         (SI_FTYPE_V32QI): Ditto.
9834         (DI_FTYPE_V64QI): Ditto.
9835         (QI_FTYPE_V8HI): Ditto.
9836         (HI_FTYPE_V16HI): Ditto.
9837         (SI_FTYPE_V32HI): Ditto.
9838         (QI_FTYPE_V4SI): Ditto.
9839         (QI_FTYPE_V8SI): Ditto.
9840         (HI_FTYPE_V16SI): Ditto.
9841         (QI_FTYPE_V2DI): Ditto.
9842         (QI_FTYPE_V4DI): Ditto.
9843         (QI_FTYPE_V8DI): Ditto.
9844         (V16QI_FTYPE_HI): Ditto.
9845         (V32QI_FTYPE_SI): Ditto.
9846         (V64QI_FTYPE_DI): Ditto.
9847         (V8HI_FTYPE_QI): Ditto.
9848         (V16HI_FTYPE_HI): Ditto.
9849         (V32HI_FTYPE_SI): Ditto.
9850         (V4SI_FTYPE_QI): Ditto.
9851         (V4SI_FTYPE_HI): Ditto.
9852         (V8SI_FTYPE_QI): Ditto.
9853         (V8SI_FTYPE_HI): Ditto.
9854         (V2DI_FTYPE_QI): Ditto.
9855         (V4DI_FTYPE_QI): Ditto.
9856         (HI_FTYPE_HI_HI): Ditto.
9857         (SI_FTYPE_SI_SI): Ditto.
9858         (DI_FTYPE_DI_DI): Ditto.
9859         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9860         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9861         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9862         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9863         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9864         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9865         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9866         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9867         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9868         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9869         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9870         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9871         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9872         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9873         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9874         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9875         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9876         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9877         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9878         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9879         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9880         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9881         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9882         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9883         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9884         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9885         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9886         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9887         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9888         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9889         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9890         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9891         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9892         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9893         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9894         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9895         (V16SI_FTYPE_HI): Ditto.
9896         (V8DI_FTYPE_QI): Ditto.
9897         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9898         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9899         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9900         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9901         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9902         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9903         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9904         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9905         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9906         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9907         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9908         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9909         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9910         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9911         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9912         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9913         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9914         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9915         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9916         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9917         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9918         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9919         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9920         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9921         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9922         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9923         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9924         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9925         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9926         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9927         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9928         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9929         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9930         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9931         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9932         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9933         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9934         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9935         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9936         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9937         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9938         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9939         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9940         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9941         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9942         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9943         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9944         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9945         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9946         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9947         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9948         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9949         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9950         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9951         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9952         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9953         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9954         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9955         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9956         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9957         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9958         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9959         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9960         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9961         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9962         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9963         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9964         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9965         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9966         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9967         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9968         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9969         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9970         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9971         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9972         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9973         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9974         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9975         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9976         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9977         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9978         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9979         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9980         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9981         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9982         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9983         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9984         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9985         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9986         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9987         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9988         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9989         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9990         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9991         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9992         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9993         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9994         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9995         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9996         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9997         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9998         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9999         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10000         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10001         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10002         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10003         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10004         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10005         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10006         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10007         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10008         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10009         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10010         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10011         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10012         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10013         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10014         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10015         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10016         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10017         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10018         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10019         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10020         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10021         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10022         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10023         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10024         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10025         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10026         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10027         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10028         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10029         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10030         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10031         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10032         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10033         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10034         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10035         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10036         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10037         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10038         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10039         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10040         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10041         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10042         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10043         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10044         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10045         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10046         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10047         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10048         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10049         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10050         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10051         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10052         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10053         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10054         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10055         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10056         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10057         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10058         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10059         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10060         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10061         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10062         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10063         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10064         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10065         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10066         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10067         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10068         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10069         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10070         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10071         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10072         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10073         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10074         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10075         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10076         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10077         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10078         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10079         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10080         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10081         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10082         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10083         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10084         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10085         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10086         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10087         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10088         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10089         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10090         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10091         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10092         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10093         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10094         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10095         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10096         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10097         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10098         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10099         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10100         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10101         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10102         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10103         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10104         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10105         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10106         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10107         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10108         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10109         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10110         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10111         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10112         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10113         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10114         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10115         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10116         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10117         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10118         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10119         (QI_FTYPE_V8DF_INT_QI): Ditto.
10120         (QI_FTYPE_V4DF_INT_QI): Ditto.
10121         (QI_FTYPE_V2DF_INT_QI): Ditto.
10122         (HI_FTYPE_V16SF_INT_HI): Ditto.
10123         (QI_FTYPE_V8SF_INT_QI): Ditto.
10124         (QI_FTYPE_V4SF_INT_QI): Ditto.
10125         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10126
10127 2015-07-31  Richard Biener  <rguenther@suse.de>
10128
10129         * gimple-fold.c (fold_gimple_assign): Remove folding of
10130         GIMPLE_BINARY_RHS.
10131
10132 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10133
10134         PR tree-optimization/66846
10135         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10136         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10137         (expand_omp_target) [ENABLE_CHECKING]: Same.
10138         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10139         cfun if !LOOPS_NEED_FIXUP.
10140         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10141         that omp_for already has its own loop struct.
10142         * tree-parloops.c (create_phi_for_local_result)
10143         (create_call_for_reduction): Handle simple latch bb.
10144         (create_parallel_loop): Add simple latch bb to preserve
10145         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10146         (gen_parallel_loop): Remove call to cancel_loop_tree.
10147         (parallelize_loops): Skip loops that are inner loops of parallelized
10148         loops.
10149         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10150         verify_loop_structure.
10151
10152 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10153
10154         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10155         * config/v850/v850.md (RV_REGNUM): New constants.
10156         * config/v850/v850.c (v850_libcall_value): New functions.
10157         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10158         (TARGET_LIBCALL_VALUE): Define.
10159
10160 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10161
10162         * rtl.h (lowpart_subreg): Move in file.
10163         * loop-iv.c (lowpart_subreg): Move to...
10164         * simplify-rtx.c (lowpart_subreg): ...here.
10165           (simplify_binary_operation_1): Use lowpart_subreg instead of
10166           simplify_gen_subreg.
10167         * expr.c (expand_expr_real_2): Ditto.
10168         * emit-rtl.c (gen_lowpart_common): Ditto.
10169         * combine.c (gen_lowpart_for_combine): Ditto.
10170         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10171           expand_debug_source_expr): Ditto.
10172
10173 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10174
10175         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10176         (expand_builtin_atomic_clear): Remove support for atomic_clear
10177         pattern.
10178
10179 2015-07-30  Richard Biener  <rguenther@suse.de>
10180
10181         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10182         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10183         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10184         redundant operand canonicalization.
10185
10186 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10187
10188         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10189         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10190         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10191         * config/arm/arm.c (neon_valid_immediate): Likewise.
10192         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10193         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10194         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10195         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10196         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10197         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10198         * config/i386/sse.md
10199         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10200         (*ssse3_palignr<mode>_perm): Likewise.
10201         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10202         * config/spu/spu.c (arith_immediate_p): Likewise.
10203         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10204         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10205
10206 2015-07-30  Richard Biener  <rguenther@suse.de>
10207
10208         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10209         (decision_tree::gen_generic): ... this into ...
10210         (decision_tree::gen): ... this.
10211         (main): Adjust callers.
10212
10213 2015-07-30  Richard Biener  <rguenther@suse.de>
10214
10215         * genmatch.c (verbose): New global.
10216         (warning_at): Add overload with source_location.
10217         (capture_info::capture_info): Add bool whether generating gimple
10218         or generic.  Add gimple member.
10219         (capture_info::cinfo): Add capture member.
10220         (capture_info::walk_match): Record capture.  Warn on
10221         non-captured leafs.
10222         (capture_info::walk_c_expr): Add more fragments captures cannot
10223         escape through.  Warn on escaped captures.
10224         (dt_simplify::gen_1): Warn on operands we force to have no
10225         side-effects.
10226         (main): Initialize verbose.
10227         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10228
10229 2015-07-30  Richard Biener  <rguenther@suse.de>
10230
10231         PR middle-end/67053
10232         * match.pd: Allow both operands to independently have conversion
10233         when simplifying compares of addresses.
10234
10235 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10236
10237         PR target/66217
10238         PR target/67045
10239         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10240         around those cases that need one.
10241
10242 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10243
10244         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10245
10246 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10247
10248         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10249         New.  Copied from config/i386/gnu-user.h.
10250         (ASM_COMMENT_START): Likewise.
10251         (DBX_REGISTER_NUMBER): Likewise.
10252
10253 2015-07-29  Richard Biener  <rguenther@suse.de>
10254
10255         * gimple-fold.c (fold_gimple_cond): Remove.
10256         (fold_stmt_1): Do not call it.
10257
10258 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10259
10260         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10261         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10262
10263         * config/aarch64/aarch64-modes.def: Add HFmode.
10264
10265         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10266         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10267
10268         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10269         aarch64_promoted_type): New.
10270
10271         (aarch64_float_const_representable_p): Disable HFmode.
10272         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10273         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10274         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10275
10276         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10277         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10278
10279         * config/aarch64/iterators.md (GPF_F16): New.
10280
10281 2015-07-29  Richard Biener  <rguenther@suse.de>
10282
10283         * match.pd: Merge address comparison patterns and make them
10284         handle some more cases.
10285
10286 2015-07-29  Richard Biener  <rguenther@suse.de>
10287
10288         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10289         (parser::parse_capture): Add bool argument on whether to reject
10290         unknown captures.
10291         (parser::parse_expr): Adjust.
10292         (parser::parse_op): Likewise.
10293         (parser::parse_pattern): Likewise.
10294
10295 2015-07-29  Richard Biener  <rguenther@suse.de>
10296
10297         * gimple-fold.c (has_use_on_stmt): New function.
10298         (replace_stmt_with_simplification): Use it to allow
10299         abnormals originally referenced in the stmt.
10300         (fold_stmt_1): Canonicalize operand order.
10301
10302 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10303
10304         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10305         GET_MODE_INNER unconditionally.
10306         * config/spu/spu.c (arith_immediate_p): Likewise.
10307         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10308         * expmed.c (synth_mult): Remove check for VOIDmode result from
10309         GET_MODE_INNER.
10310         (expand_mult_const): Likewise.
10311         * fold-const.c (fold_binary_loc): Replace call to element_precision
10312         with call to GET_MODE_PRECISION.
10313         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10314         m->name.
10315         (emit_mode_inner): Likewise.
10316         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10317         result check.
10318         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10319         (GET_MODE_UNIT_PRECISION): Likewise.
10320         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10321         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10322         * stor-layout.c (bitwise_type_for_mode): Update assert.
10323         (element_precision): Remove.
10324
10325 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10326
10327         * target-insns.def (reload_load_address): New targetm instruction
10328         pattern.
10329         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10330
10331 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10332
10333         * target-insns.def (atomic_test_and_set): New targetm instruction
10334         pattern.
10335         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10336         HAVE_*/gen_* interface.
10337
10338 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10339
10340         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10341         patterns.
10342         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10343         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10344         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10345         * rtlanal.c (nonzero_bits1): Likewise.
10346         (num_sign_bit_copies1): Likewise.
10347
10348 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10349
10350         * target-insns.def (eh_return): New targetm instruction pattern.
10351         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10352         interface.
10353         * function.c (thread_prologue_and_epilogue_insns): Remove
10354         preprocessor condition.
10355
10356 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10357
10358         * target-insns.def (indirect_jump): New targetm instruction pattern.
10359         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10360         interface.
10361
10362 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10363
10364         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10365         instead of nonimmediate_operand.  Remove C condiition.
10366
10367 2015-07-28  Richard Biener  <rguenther@suse.de>
10368
10369         * match.pd: Add more simplification of address comparisons.
10370
10371 2015-07-28  Richard Biener  <rguenther@suse.de>
10372
10373         * match.pd: Re-order two cases in comparison with max/min
10374         value simplification to make it apply for bools.
10375
10376 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10377
10378         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10379         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10380         (aarch64_rtx_costs): Properly strip extend or extract before
10381         passing down to rtx costs again.
10382
10383 2015-07-28  Nick Clifton  <nickc@redhat.com>
10384
10385         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10386         Optimizes the case where -mes0 is active and a constant symbolic
10387         address is used.
10388         * config/rl78/rl78-protos.h: Prototype the new function.
10389         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10390
10391 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10392
10393         * tree-parloops.c (reduc_stmt_res): New function.
10394         (initialize_reductions, add_field_for_reduction)
10395         (create_phi_for_local_result, create_loads_for_reductions)
10396         (create_stores_for_reduction, build_new_reduction): Handle case that
10397         reduc_stmt is a phi.
10398         (gather_scalar_reductions): Allow double_reduc reductions.
10399
10400 2015-07-28  Richard Biener  <rguenther@suse.de>
10401
10402         * fold-const.c (fold_comparison): Remove equality folding
10403         of decl addresses ...
10404         * match.pd: ... here and merge with existing pattern.
10405
10406 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10407
10408         PR tree-optimization/66828
10409         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10410         from int64_t to uint64_t.
10411
10412 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10413
10414         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10415         as valid only in the error message of the driver, not in the
10416         messages of the language compilers.
10417
10418 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10419
10420         * tree-parloops.c (gather_scalar_reductions): Simplify function
10421         structure.
10422
10423 2015-07-27  Marek Polacek  <polacek@redhat.com>
10424
10425         * ipa-devirt.c (types_same_for_odr): Fix typo.
10426
10427 2015-07-27  Jason Merrill  <jason@redhat.com>
10428
10429         PR debug/66468
10430         * dwarf2out.c (gen_inlined_subroutine_die): Check
10431         cgraph_function_possibly_inlined_p.
10432
10433 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10434
10435         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10436         Place integer variant first.
10437         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10438
10439 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10440
10441         PR/63870
10442         * config/arm/arm-builtins.c (enum arm_builtins):
10443         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10444         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10445         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10446         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10447         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10448
10449 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10450
10451         PR/63870
10452         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10453         Add qualifier_lane_index.
10454         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10455         (arm_getlane_qualifiers): Use qualifier_lane_index.
10456         (arm_lanemac_qualifiers): Rename to...
10457         (arm_mac_n_qualifiers): ...this.
10458         (LANEMAC_QUALIFIERS): Rename to...
10459         (MAC_N_QUALIFIERS): ...this.
10460         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10461         (arm_setlane_qualifiers): Use qualifier_lane_index.
10462         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10463         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10464         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10465         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10466
10467         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10468         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10469         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10470         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10471         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10472         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10473         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10474         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10475         qualifiers to TERNOP_IMM.
10476         (vdup_lane): Change qualifiers to GETLANE.
10477         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10478         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10479         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10480         vqdmlsl_n): Change qualifiers to MAC_N.
10481
10482         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10483         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10484         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10485         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10486         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10487         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10488         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10489         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10490         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10491         Remove call to neon_lane_bounds.
10492
10493 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10494
10495         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10496         Place integer variant first.
10497
10498 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10499
10500         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10501         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10502         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10503         for armv6kz targets.
10504         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10505         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10506         (FL_FOR_ARCH6ZK): Remove.
10507         (FL_FOR_ARCH6KZ): New.
10508         (arm_arch6zk): New declaration.
10509         * config/arm/arm-tables.opt: Regenerate.
10510         * config/arm/arm.c (arm_arch6kz): New.
10511         (arm_option_override): Set arm_arch6kz.
10512         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10513         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10514         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10515
10516 2015-07-27  Marek Polacek  <polacek@redhat.com>
10517
10518         PR c++/66555
10519         PR c/54979
10520         * doc/invoke.texi: Document -Wtautological-compare.
10521
10522 2015-07-27  Richard Biener  <rguenther@suse.de>
10523
10524         * genmatch.c (decision_tree::gen_gimple): Split out large
10525         subtrees into separate functions.
10526         (decision_tree::gen_generic): Likewise.
10527
10528 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10529
10530         * config/alpha/alpha.c: Use SUBREG_P predicate.
10531         * config/alpha/predicates.md: Ditto.
10532
10533 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10534
10535         * config.host (s390*-*-*): Include driver-native.c only when
10536         building with s390* as host *and* target.
10537
10538 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10539
10540         PR target/66930
10541         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10542         T bit register modified_between_p check.
10543
10544 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10545
10546         * config/i386/i386.c: Use SUBREG_P predicate.
10547         * config/i386/i386.md: Ditto.
10548         * config/i386/sse.md: Ditto.
10549         * config/i386/predicates.md: Ditto.
10550
10551 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10552
10553         PR target/67004
10554         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10555         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10556
10557 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10558
10559         * Makefile.in: Remove use of TREEBROWSER.
10560         * config.in: Regenerated.
10561         * configure: Regenerated.
10562         * configure.ac: Remove definition of TREEBROWSER.
10563         * tree-browser.c: Removed.
10564         * tree-browser.def: Removed.
10565
10566 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10567
10568         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10569         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10570         Graphite.
10571         (scopdet_basic_block_info): Print when a loop or bb cannot be
10572         represented in Graphite.
10573
10574 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10575
10576         PR target/66648
10577         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10578         execution guard when min_size is less than size_needed.
10579
10580 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10581
10582         * doc/install.texi: Document supported versions of ISL.
10583
10584 2015-07-25  Jeff Law  <law@redhat.com>
10585
10586         Revert:
10587         PR lto/66752
10588         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10589         unable to find X NE 0 in the tables, return X as the simplified
10590         condition.
10591         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10592         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10593         to VISISTED_BBS.  */
10594         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10595         after removing the control flow statement and unnecessary edges.
10596
10597 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10598
10599         Revert:
10600         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10601
10602         PR rtl-optimization/64164
10603         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10604         * tree-ssa-copyrename.c: Removed.
10605         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10606         -ftree-coalesce-vars.
10607         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10608         * common.opt (ftree-copyrename): Ignore.
10609         (ftree-coalesce-inlined-vars): Likewise.
10610         * doc/invoke.texi: Remove the ignored options above.
10611         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10612         * tree-ssa-coalesce.h: ... here.
10613         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10614         headers required by it.
10615         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10616         across variables when flag_tree_coalesce_vars.  Check register
10617         use and promoted modes to allow coalescing.  Moved to
10618         tree-ssa-coalesce.c.
10619         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10620         with its member functions to tree-ssa-coalesce.c.
10621         (var_map_base_init): Likewise.  Renamed to
10622         compute_samebase_partition_bases.
10623         (partition_view_normal): Drop want_bases parameter.
10624         (partition_view_bitmap): Likewise.
10625         * tree-ssa-live.h: Adjust declarations.
10626         * tree-ssa-coalesce.c: Include explow.h.
10627         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10628         default defs at the entry point.
10629         (dump_part_var_map): New.
10630         (compute_optimized_partition_bases): New, called by...
10631         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10632         of compute_samebase_partition_bases.  Adjust.
10633         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10634         * cfgexpand.c (leader_merge): New.
10635         (get_rtl_for_parm_ssa_default_def): New.
10636         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10637         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10638         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10639         redundant MEM attr setting.
10640         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10641         from...
10642         (expand_one_stack_var): ... this.  New wrapper to check and
10643         skip already expanded SSA partitions.
10644         (record_alignment_for_reg_var): New, factored out of...
10645         (expand_one_var): ... this.
10646         (expand_one_ssa_partition): New.
10647         (adjust_one_expanded_partition_var): New.
10648         (expand_one_register_var): Check and skip already expanded SSA
10649         partitions.
10650         (expand_used_vars): Don't create DECLs for anonymous SSA
10651         names.  Expand all SSA partitions, then adjust all SSA names.
10652         (pass::execute): Replace the loops that set
10653         SA.partition_to_pseudo from partition leaders and cleared
10654         DECL_RTL for multi-location variables, and that which used to
10655         rename vars and set attrs, with one that clears DECL_RTL and
10656         checks that PARMs and RESULTs default_defs match DECL_RTL.
10657         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10658         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10659         * explow.c (promote_ssa_mode): New.
10660         * explow.h (promote_ssa_mode): Declare.
10661         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10662         * function.c: Include cfgexpand.h.
10663         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10664         (use_register_for_parm_decl): Wrapper for the above to
10665         special-case the result_ptr.
10666         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10667         (split_complex_args): Take assign_parm_data_all argument.
10668         Pass it to rtl_for_parm.  Set up rtl and context for split
10669         args.
10670         (assign_parms_augmented_arg_list): Adjust.
10671         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10672         multiple locations.  Recognize split complex args.
10673         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10674         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10675         (assign_parm_setup_block): Prefer SSA-assigned location.
10676         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10677         if stack_parm is NULL.
10678         (assign_parm_setup_stack): Prefer SSA-assigned location.
10679         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10680         rtl before testing for pointer bounds.  Special-case result_ptr.
10681         (expand_function_start): Maybe reset DECL_RTL of result.
10682         Prefer SSA-assigned location for result and static chain.
10683         Factor out DECL_RESULT and SET_DECL_RTL.
10684         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10685         anonymous SSA names.  Use promote_ssa_mode.
10686         (get_temp_reg): Likewise.
10687         (remove_ssa_form): Adjust.
10688         * stor-layout.c (layout_decl): Don't set mem attributes of
10689         non-MEMs.
10690         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10691         and get its reg_usage for reg invalidation.
10692         (compute_bb_dataflow): Pass it insn.
10693         (emit_notes_in_bb): Likewise.
10694
10695 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10696
10697         * config/i386/i386.c (ix86_va_start): Remove
10698         unneeded !TARGET_64BIT check.
10699         (ix86_gimplify_va_arg): Ditto.
10700
10701 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10702
10703         * graphite-sese-to-poly.c (build_poly_scop): Always call
10704         rewrite_commutative_reductions_out_of_ssa.
10705
10706 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10707
10708         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10709         flag_associative_math to FLOAT_TYPE_P.  Honour
10710         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10711
10712 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10713
10714         PR c++/64079
10715         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10716         and "%qD" in warning_at instead of "%q+D" in warning.
10717
10718 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10719
10720         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10721         (ix86_function_abi): Cleanup.
10722
10723 2015-07-24  Michael Darling  <darlingm@gmail.com>
10724
10725         PR other/66259
10726         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10727         * configure: Likewise
10728         * configure.ac: Likewise
10729         * doc/install.texi: Likewise
10730         * doc/tm.texi: Likewise
10731         * doc/tm.texi.in: Likewise
10732
10733 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10734
10735         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10736         manually swapping values.
10737         * cse.c (fold_rtx): Likewise.
10738         * lra-eliminations.c (form_sum): Likewise.
10739
10740 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10741
10742         PR target/64003
10743         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10744         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10745         (*jcc_1, *jcc_2, jump, simple_return_internal)
10746         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10747         Set length_nobnd attribute instead of length attribute.
10748         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10749         (length_nobnd): Remove attribute.
10750         (length): Remove length_nobnd processing.
10751
10752 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10753
10754         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10755         for clarity. Broken out of ...
10756         (omp_notice_variable): ... here.
10757
10758 2015-07-24  Gary Funck  <gary@intrepid.com>
10759
10760         PR middle-end/66984
10761         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10762         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10763
10764 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10765
10766         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10767         exit-first loop transform.
10768
10769 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10770
10771         PR 66714
10772         * tree-cfg.c (struct replace_decls_d): New struct.
10773         (replace_block_vars_by_duplicates_1): New function.
10774         (replace_block_vars_by_duplicates): Use it to replace the decls
10775         in the value exprs by duplicates.
10776
10777 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10778
10779         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10780         -shared, -symbolic, -rdynamic.
10781
10782 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10783
10784         PR target/65711
10785         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10786         -dynamic-linker within %{!static %{!shared, and -rdynamic within
10787         %{!static.
10788
10789 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10790
10791         PR ipa/66566
10792         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10793         edge summary is available.
10794
10795 2015-07-24  Richard Biener  <rguenther@suse.de>
10796
10797         * genmatch.c (struct dt_node): Add statistic fields.
10798         (dt_node::analyze): New method.
10799         (decision_tree::gen_gimple): Call analyze on the root node
10800         and print statistics to stderr.
10801         (decision_tree::gen_generic): Likewise.
10802
10803 2015-07-24  Richard Biener  <rguenther@suse.de>
10804
10805         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10806         against the highest or lowest possible integer ...
10807         * match.pd: ... as patterns here.
10808
10809 2015-07-24  Richard Biener  <rguenther@suse.de>
10810
10811         * genmatch.c (struct capture_info): Add same_as field.
10812         (capture_info::capture_info): Initialize same_as.
10813         (capture_info::walk_match): Compute same_as.
10814         (capture_info::walk_result): Compute stuff for the leader.
10815         (capture_info::walk_c_expr): Likewise.
10816         (dt_simplify::gen_1): Only look at leaders when deciding
10817         to force no side-effects or emit side-effects of omitted operands.
10818
10819 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10820
10821         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10822         reg note to the GPR -> FPR save instructions.
10823
10824 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10825
10826         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10827         cheaper.
10828         (s390_expand_insv): Don't generate risbg pattern for constant zero
10829         sources.
10830         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10831         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
10832         splitters.
10833
10834 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10835
10836         * config/s390/s390.c (s390_reorg): Clean up handling of processors
10837         with
10838         -mtune=
10839         (s390_issue_rate): Likewise.
10840         (s390_sched_reorder): Likewise.
10841         (s390_sched_variable_issue): Likewise.
10842         (s390_loop_unroll_adjust): Likewise.
10843         (s390_option_override):  Likewise.
10844
10845 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10846
10847         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10848         processor capabilities with -march=native.
10849         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10850         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
10851         (S390_TARGET_BITS_STRING): Macro to simplify specs.
10852
10853 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10854
10855         * config/s390/s390.c (s390_issue_rate): Handle
10856         PROCESSOR_2094_Z9_EC.
10857         (s390_option_override): Likewise.
10858         (s390_adjust_priority): Likewise.
10859
10860 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10861
10862         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10863         when cross compiling.
10864
10865 2015-07-24  Richard Biener  <rguenther@suse.de>
10866
10867         * fold-const.c (maybe_canonicalize_comparison_1): Move
10868         A code CST canonicalization ...
10869         * match.pd: ... to a pattern here.
10870
10871 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
10872
10873         Revert:
10874         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10875         PR target/63521
10876         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10877         (HONOR_REG_ALLOC_ORDER): Define.
10878
10879 2015-07-24  Richard Biener  <rguenther@suse.de>
10880
10881         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10882         * fold-const.c (fold_comparison): Move parameter does not
10883         alias &local simplification ...
10884         * match.pd: ... as a pattern here.
10885
10886 2015-07-24  Richard Biener  <rguenther@suse.de>
10887
10888         * gimple-fold.c (replace_stmt_with_simplification): Special-case
10889         valueizing call operands.
10890         * gimple-match-head.c (maybe_push_res_to_seq): Take
10891         number of call arguments from ops array.
10892         (do_valueize): New function.
10893         (gimple_simplify): Return true if valueization changed
10894         any operand even if the result didn't simplify further.
10895
10896 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10897
10898         PR middle-end/25530
10899         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10900
10901 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10902
10903         PR middle-end/25529
10904         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10905
10906 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10907
10908         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10909         instruction.
10910
10911 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10912
10913         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10914         clean up.
10915
10916 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
10917
10918         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10919         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
10920         targets here.
10921         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10922         ms_va_list_type_node initialization.
10923
10924 2015-07-23  Jeff Law  <law@redhat.com>
10925
10926         PR lto/66752
10927         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10928         unable to find X NE 0 in the tables, return X as the simplified
10929         condition.
10930         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10931         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10932         to VISISTED_BBS.  */
10933         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10934         after removing the control flow statement and unnecessary edges.
10935
10936 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10937
10938         * tree-pass.h (get_current_pass_name): Removed.
10939
10940 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10941
10942         PR rtl-optimization/64164
10943         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10944         * tree-ssa-copyrename.c: Removed.
10945         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10946         -ftree-coalesce-vars.
10947         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10948         * common.opt (ftree-copyrename): Ignore.
10949         (ftree-coalesce-inlined-vars): Likewise.
10950         * doc/invoke.texi: Remove the ignored options above.
10951         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10952         * tree-ssa-coalesce.h: ... here.
10953         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10954         headers required by it.
10955         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10956         across variables when flag_tree_coalesce_vars.  Check register
10957         use and promoted modes to allow coalescing.  Moved to
10958         tree-ssa-coalesce.c.
10959         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10960         with its member functions to tree-ssa-coalesce.c.
10961         (var_map_base_init): Likewise.  Renamed to
10962         compute_samebase_partition_bases.
10963         (partition_view_normal): Drop want_bases parameter.
10964         (partition_view_bitmap): Likewise.
10965         * tree-ssa-live.h: Adjust declarations.
10966         * tree-ssa-coalesce.c: Include explow.h.
10967         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10968         default defs at the entry point.
10969         (dump_part_var_map): New.
10970         (compute_optimized_partition_bases): New, called by...
10971         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10972         of compute_samebase_partition_bases.  Adjust.
10973         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10974         * cfgexpand.c (leader_merge): New.
10975         (get_rtl_for_parm_ssa_default_def): New.
10976         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10977         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10978         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10979         redundant MEM attr setting.
10980         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10981         from...
10982         (expand_one_stack_var): ... this.  New wrapper to check and
10983         skip already expanded SSA partitions.
10984         (record_alignment_for_reg_var): New, factored out of...
10985         (expand_one_var): ... this.
10986         (expand_one_ssa_partition): New.
10987         (adjust_one_expanded_partition_var): New.
10988         (expand_one_register_var): Check and skip already expanded SSA
10989         partitions.
10990         (expand_used_vars): Don't create DECLs for anonymous SSA
10991         names.  Expand all SSA partitions, then adjust all SSA names.
10992         (pass::execute): Replace the loops that set
10993         SA.partition_to_pseudo from partition leaders and cleared
10994         DECL_RTL for multi-location variables, and that which used to
10995         rename vars and set attrs, with one that clears DECL_RTL and
10996         checks that PARMs and RESULTs default_defs match DECL_RTL.
10997         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10998         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10999         * explow.c (promote_ssa_mode): New.
11000         * explow.h (promote_ssa_mode): Declare.
11001         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11002         * function.c: Include cfgexpand.h.
11003         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11004         (use_register_for_parm_decl): Wrapper for the above to
11005         special-case the result_ptr.
11006         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11007         (split_complex_args): Take assign_parm_data_all argument.
11008         Pass it to rtl_for_parm.  Set up rtl and context for split
11009         args.
11010         (assign_parms_augmented_arg_list): Adjust.
11011         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11012         multiple locations.  Recognize split complex args.
11013         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11014         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11015         (assign_parm_setup_block): Prefer SSA-assigned location.
11016         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11017         if stack_parm is NULL.
11018         (assign_parm_setup_stack): Prefer SSA-assigned location.
11019         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11020         rtl before testing for pointer bounds.  Special-case result_ptr.
11021         (expand_function_start): Maybe reset DECL_RTL of result.
11022         Prefer SSA-assigned location for result and static chain.
11023         Factor out DECL_RESULT and SET_DECL_RTL.
11024         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11025         anonymous SSA names.  Use promote_ssa_mode.
11026         (get_temp_reg): Likewise.
11027         (remove_ssa_form): Adjust.
11028         * stor-layout.c (layout_decl): Don't set mem attributes of
11029         non-MEMs.
11030         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11031         and get its reg_usage for reg invalidation.
11032         (compute_bb_dataflow): Pass it insn.
11033         (emit_notes_in_bb): Likewise.
11034
11035 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11036
11037         PR target/66217
11038         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11039         prototype.
11040         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11041         (rs6000_emit_2insn_and): Handle dot forms.
11042         * config/rs6000/rs6000.md (and<mode>3): Adjust.
11043         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
11044         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11045
11046 2015-07-23  Richard Biener  <rguenther@suse.de>
11047
11048         * generic-match-head.c: Include cgraph.h.
11049         * gimple-match-head.c: Likewise.
11050         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11051         SSA names.
11052         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11053         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
11054         pattern.
11055
11056 2015-07-23  Richard Biener  <rguenther@suse.de>
11057
11058         * gimple-fold.c (fold_gimple_cond): Do not require folding
11059         results to pass valid_gimple_rhs_p.
11060         * tree-cfg.h (fold_cond_expr_cond): Remove.
11061         * tree-cfg.c (fold_cond_expr_cond): Likewise.
11062         (make_edges): Do not call it.
11063         * tree-inline.c (tree_function_versioning): Likewise.
11064
11065 2015-07-23  Tom de Vries  <tom@codesourcery.com>
11066
11067         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11068         vect_force_simple_reduction.
11069         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11070         (vect_is_simple_reduction_1): Add and handle
11071         need_wrapping_integral_overflow parameter.
11072         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11073         need_wrapping_integral_overflow parameter.
11074         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11075         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11076         decl.
11077
11078 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
11079
11080         PR tree-optimization/66926,66951
11081         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11082         INNER_LOOP and fix up condition for renaming virtual operands.
11083
11084 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11085
11086         * combine.c (try_combine): Use std::swap instead of manually
11087         swapping.
11088
11089 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
11090
11091         * config/mips/i6400.md: New file.
11092         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11093         (mips64r6): Likewise.
11094         (i6400): Define.
11095         * config/mips/mips-tables.opt: Regenerate.
11096         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11097         (mips_issue_rate): Add support for i6400.
11098         (mips_multipass_dfa_lookahead): Likewise.
11099         * config/mips/mips.h (TUNE_I6400): Define.
11100         * config/mips/mips.md: Include i6400.md.
11101         (processor): Add i6400.
11102         * doc/invoke.texi (-march=@var{arch}): Add i6400.
11103
11104 2015-07-23  Richard Biener  <rguenther@suse.de>
11105
11106         PR middle-end/66916
11107         * match.pd: Guard widen and sign-change comparison simplification
11108         with single_use.
11109
11110 2015-07-23  Richard Biener  <rguenther@suse.de>
11111
11112         PR tree-optimization/66945
11113         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11114         ::before_dom_children): Force the propagators idea of
11115         non-executable edges to materialize, not what the folder
11116         chooses.
11117
11118 2015-07-23  Richard Biener  <rguenther@suse.de>
11119
11120         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11121         (gimple_cond_make_true): Use 1 != 0.
11122
11123 2015-07-22  DJ Delorie  <dj@redhat.com>
11124
11125         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11126         slashes.
11127
11128         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11129         (ashrhi3): Likewise.
11130         (lshrhi3): Likewise.
11131         (movhi): Take advantage of zero-extend to load small constants.
11132         (movpsi): Likewise.
11133         (and<mode>3): Likewise.
11134         (zero_extendqihi2): Likewise.
11135         (zero_extendqisi2): New.
11136         * config/msp430/constraints.md (N,O): New.
11137         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11138
11139 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11140
11141         PR target/66954
11142         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11143         to enum feature_priority and feature_list.
11144         (fold_builtin_cpu): Add F_AES to enum processor_features
11145         and isa_names_table.
11146
11147 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11148
11149         PR driver/66737
11150         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11151         for 64bit target only.
11152
11153 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11154
11155         * config/nvptx/nvptx.c: Expand some comments.
11156
11157 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11158
11159         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11160         (cortex_a53_advsimd): ...This.
11161
11162 2015-07-22  Richard Biener  <rguenther@suse.de>
11163
11164         * genmatch.c (expr::gen_transform): Clarify error message
11165         and display location.
11166
11167 2015-07-22  Richard Biener  <rguenther@suse.de>
11168
11169         * genmatch.c (struct operand): Add location member.
11170         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11171         constructors.
11172         (struct simplify): Remove match_location and result_location
11173         members.
11174         (elsehwere): Adjust.
11175
11176 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11177
11178         * config/mips/m5100.md: New file.
11179         * config/mips/mips-cpus.def (m5100, m5101): Define.
11180         * config/mips/mips-tables.opt: Regenerate.
11181         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11182         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11183         -march=m5101 to -mips32r5.
11184         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11185         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11186         !-msoft-float.
11187         * config/mips/mips.md: Include m5100.md.
11188         (processor): Add m5100.
11189         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11190
11191 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11192
11193         * config/mips/mips-cpus.def (interaptiv): Define.
11194         * config/mips/mips-tables.opt: Regenerate.
11195         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11196         -mips32r2.
11197         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11198         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11199
11200 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11201
11202         PR target/63521
11203         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11204         (HONOR_REG_ALLOC_ORDER): Define.
11205
11206 2015-07-22  Richard Biener  <rguenther@suse.de>
11207
11208         PR tree-optimization/66952
11209         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11210         blocks we end up executing unconditionally reset all SSA
11211         info such as range and alignment.
11212         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11213         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11214
11215 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11216
11217         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11218         typo in attribute.
11219
11220 2015-07-22  Richard Biener  <rguenther@suse.de>
11221
11222         * genmatch.c (parser::parse_result): Properly handle
11223         match with result operands and conditions.
11224
11225 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11226
11227         PR target/63870
11228         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11229         Add qualifier_struct_load_store_lane_index.
11230         (aarch64_types_loadstruct_lane_qualifiers): Use
11231         qualifier_struct_load_store_lane_index for lane index argument for
11232         last argument.
11233         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11234         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11235         (aarch64_simd_expand_args): Add new argument describing mode of
11236         builtin. Check lane bounds for arguments with
11237         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11238         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11239         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11240         (aarch64_simd_expand_builtin): Handle arguments with
11241         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11242         aarch64_simd_expand_args.
11243         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11244         vst[234]_lane with BUILTIN_VALLDIF.
11245         * config/aarch64/aarch64-simd.md:
11246         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11247         endianness reversal on lane index.
11248         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11249         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11250         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11251         (vec_store_lanesci_lane<mode>): Ditto.
11252         (vec_store_lanesxi_lane<mode>): Ditto.
11253         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11254         reversal of lane index.
11255         (aarch64_ld3_lane<mode>): Ditto.
11256         (aarch64_ld4_lane<mode>): Ditto.
11257         (aarch64_st2_lane<mode>): Ditto.
11258         (aarch64_st3_lane<mode>): Ditto.
11259         (aarch64_st4_lane<mode>): Ditto.
11260         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11261         to qmode. Add new mode parameter. Update uses.
11262         (__LD3_LANE_FUNC): Ditto.
11263         (__LD4_LANE_FUNC): Ditto.
11264         (__ST2_LANE_FUNC): Ditto.
11265         (__ST3_LANE_FUNC): Ditto.
11266         (__ST4_LANE_FUNC): Ditto.
11267
11268 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11269
11270         * doc/invoke.texi (Language Independent Options): Rename node to
11271         Diagnostic Message Formatting Options.
11272
11273 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11274
11275         PR ipa/66424.
11276         * lra-remat.c (operand_to_remat): Prevent using insns with input
11277         subregs processed separately by IRA.
11278
11279 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11280
11281         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11282         straight loops.
11283         (single_imm_use): Check for iterator node.
11284         (num_imm_uses): Likewise.
11285         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11286         (single_imm_use_1): Check for iterator node.
11287
11288 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11289             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11290
11291         * configure.ac: Add check for new options in isl-0.15.
11292         * config.in, configure: Rebuilt.
11293         * graphite-blocking.c: Include <isl/constraint.h>
11294         * graphite-interchange.c,  graphite-poly.c: Likewise.
11295         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11296         * graphite.c: Likewise.
11297         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11298         <isl/union_set.h>.
11299         * graphite-dependences.c: Include <isl/constraint.h>.
11300         (max_number_of_out_dimensions): Returns isl_stat.
11301         (extend_schedule_1): Likewise
11302         (extend_schedule): Corresponding changes.
11303         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11304         <isl/union_set.h>.
11305         (getSingleMap): Change return type of isl_stat.
11306         (optimize_isl): Conditionally use
11307         isl_options_set_schedule_serialize_sccs.
11308         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11309         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11310
11311 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11312
11313         PR target/66956
11314         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11315         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11316
11317 2015-07-21  Richard Biener  <rguenther@suse.de>
11318
11319         PR tree-optimization/66948
11320         * genmatch.c (capture_info::walk_match): Also recurse to
11321         captures.  Properly compute expr state from captures of
11322         captures.
11323         * match.pd: Add single-use guards to
11324         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11325
11326 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11327
11328         * config/nvptx/mkoffload.c (process): Add static destructor call.
11329
11330 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11331
11332         PR middle-end/66915
11333         * match.pd (A - B -> A + (-B)): Don't allow folding
11334         when type if a fixed-point type.
11335
11336 2015-07-20  DJ Delorie  <dj@redhat.com>
11337
11338         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11339         (iorqi3_real): Likewise for set1.
11340
11341 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11342
11343         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11344         for !TARGET_64BIT.
11345
11346 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11347
11348         * graphite-isl-ast-to-gimple.c:
11349         Refactor so that each function can access 'region'. This will help
11350         maintain a parameter rename_map within a region.
11351
11352 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11353
11354         * config/rs6000/rs6000.md (*lt0_disi): New.
11355
11356 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11357
11358         PR target/66217
11359         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11360         "available letters" comment.
11361         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11362         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11363         and_2rld_operand):  Delete.
11364         (and_operand): Adjust.
11365         (rotate_mask_operator): New.
11366         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11367         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11368         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11369         extract_ME): Delete.
11370         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11371         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11372         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11373         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11374         rs6000_emit_2insn_and): New.
11375         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11376         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11377         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11378         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11379         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11380         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11381         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11382         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11383         rs6000_emit_2insn_and): New.
11384         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11385         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11386         handling.
11387         <NOT>: Don't fall through to next case.
11388         <AND>: Handle the various rotate-and-mask cases directly.
11389         <IOR>: Always cost as one insn.
11390         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11391         (and<mode>3): Adjust expander for the new patterns.
11392         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11393         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11394         (*and<mode>3_imm_dot_shifted): New.
11395         (*and<mode>3_mask): Delete, rewrite as ...
11396         (and<mode>3_mask): ... New.
11397         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11398         (andsi3_internal0_nomc): Delete.
11399         (*andsi3_internal6): Delete.
11400         (*and<mode>3_2insn): New.
11401         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11402         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11403         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11404         *insvdi_internal3): Delete.
11405         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11406         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11407         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11408         *ior<mode>_mask): New.
11409         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11410         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11411         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11412         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11413         Delete.
11414         (ashr<mode>3): Delete expander.
11415         (*ashr<mode>3): Rename to ...
11416         (ashr<mode>3): ... This.
11417         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11418         (*rotldi3_internal4, *rotldi3_internal5 and split,
11419         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11420         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11421         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11422         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11423         (splitter for loading a mask): Adjust.
11424         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11425
11426 2015-07-20  Marek Polacek  <polacek@redhat.com>
11427
11428         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11429         output_add_clobbers, output_added_clobbers_hard_reg_p,
11430         gen_rtx_scratch): Remove declarations.
11431
11432 2015-07-20  Marek Polacek  <polacek@redhat.com>
11433
11434         PR c++/55095
11435         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11436
11437 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11438
11439         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11440         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11441
11442 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11443
11444         * combine.c (combine_simplify_rtx): Move simplification step
11445         before various transformations/substitutions.
11446
11447 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11448
11449         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11450         (struct int_traits): Likewise.
11451
11452 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11453
11454         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11455         function to vmsdbgout_function_decl.
11456
11457 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11458
11459         PR target/66922
11460         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11461         from misaligned positions.
11462         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11463
11464 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11465
11466         PR middle-end/46851
11467         PR middle-end/60340
11468         * Makefile.in: Removed omega.o.
11469         * common.opt: Document flag fcheck-data-deps as deprecated.
11470         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11471         its associated params: omega-max-vars, omega-max-geqs,
11472         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11473         omega-max-keys, omega-eliminate-redundant-constraints.
11474         * doc/loop.texi: Remove all the section on Omega.
11475         * graphite-blocking.c: Include missing params.h: it used to be
11476         included through tree-data-ref.h and omega.h.
11477         * graphite-isl-ast-to-gimple.c: Same.
11478         * graphite-optimize-isl.c: Same.
11479         * graphite-sese-to-poly.c: Same.
11480         * graphite.c: Same.
11481         * omega.c: Remove.
11482         * omega.h: Remove.
11483         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11484         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11485         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11486         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11487         * passes.def: Remove pass_check_data_deps.
11488         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11489         (dump_conflict_function): Same.
11490         (dump_subscript): Same.
11491         (print_direction_vector): Same.
11492         (print_dir_vectors): Same.
11493         (print_lambda_vector): Same.
11494         (print_dist_vectors): Same.
11495         (dump_data_dependence_relation): Same.
11496         (dump_data_dependence_relations): Same.
11497         (dump_dist_dir_vectors): Same.
11498         (dump_ddrs): Same.
11499         (init_omega_eq_with_af): Removed.
11500         (omega_extract_distance_vectors): Removed.
11501         (omega_setup_subscript): Removed.
11502         (init_omega_for_ddr_1): Removed.
11503         (init_omega_for_ddr): Removed.
11504         (ddr_consistent_p): Removed.
11505         (compute_affine_dependence): Do not use omega to check data
11506         dependences.
11507         (compute_data_dependences_for_bb): Removed.
11508         (analyze_all_data_dependences): Removed.
11509         (tree_check_data_deps): Removed.
11510         * tree-data-ref.h: Do not include omega.h.
11511         (compute_data_dependences_for_bb): Removed.
11512         (tree_check_data_deps): Removed.
11513         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11514         (make_pass_check_data_deps): Removed.
11515         * tree-ssa-phiopt.c: Include params.h.
11516         * tree-vect-data-refs.c: Same.
11517         * tree-vect-slp.c: Same.
11518
11519 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11520
11521         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11522         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11523         (mem->fpreg splitters): Ditto.
11524         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11525         Disable DFmode for TARGET_64BIT.
11526
11527 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11528
11529         PR target/66906
11530         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11531         chain on the stack.
11532
11533 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11534
11535         * config/nvptx/mkoffload.c (process): Constify host data.
11536         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11537         Constify host data.
11538         (generate_host_descr_file): Likewise.
11539
11540 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11541             Sebastian Pop  <s.pop@samsung.com>
11542
11543         PR middle-end/61929
11544         * graphite-dependences.c (add_pdr_constraints): Renamed
11545         pdr->extent to pdr->subscript_sizes.
11546         * graphite-interchange.c (build_linearized_memory_access): Add
11547         back all gcc_assert's that the "isl_int to isl_val conversion"
11548         patch has removed.  Refactored.
11549         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11550         * graphite-poly.c (new_poly_dr): Same.
11551         (free_poly_dr): Same.
11552         * graphite-poly.h (struct poly_dr): Same.
11553         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11554         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11555         * graphite-scop-detection.h: Fix space.
11556         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11557         back all gcc_assert's removed by a previous patch.
11558         (wrap): Remove the_isl_ctx global variable that the same patch has
11559         added.
11560         (build_loop_iteration_domains): Same.
11561         (add_param_constraints): Same.
11562         (pdr_add_data_dimensions): Same.  Refactored.
11563         (build_poly_dr): Renamed extent to subscript_sizes.
11564
11565 2015-07-17  Marek Polacek  <polacek@redhat.com>
11566
11567         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11568         * match.pd: ... here.
11569
11570 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11571
11572         * config/nvptx/mkoffload.c (process): Constify target data.
11573         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11574         Constify target data.
11575         (generate_target_offloadend_file): Likewise.
11576
11577 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11578
11579         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11580         to allow renaming of PHI arguments on edges incoming from outer
11581         loop header, add corresponding check before start PHI iterator.
11582         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11583         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11584         with true force_vectorize.  Set-up dominator for outer loop too.
11585         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11586         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11587         was marked with force_vectorize and has restricted cfg.
11588         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11589         inner loop.
11590         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11591         do peeling for outer loops.
11592
11593 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11594             Matthias Klose  <doko@ubuntu.com>
11595
11596         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11597         build-sysroot, sysroot from the `Miscenalleous configure options' to
11598         the `Directories' section and strip trailing `/' from with_sysroot.
11599         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11600         * configure: Regenerated.
11601
11602 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11603
11604         PR target/66824
11605         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11606         (TARGET_HARD_DF_REGS): Ditto.
11607         (TARGET_HARD_XF_REGS): Ditto.
11608         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11609         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11610         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11611         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11612         (*movsf_internal): Add alternatives 16 and 17. Enable
11613         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11614
11615 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11616
11617         PR rtl-optimization/66891
11618         * calls.c (expand_call): Wrap precompute_register_parameters with
11619         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11620
11621 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11622
11623         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11624         Define target data struct and initialize it.
11625
11626 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11627
11628         PR rtl-optimization/66626
11629         * ira.h (emit-rtl.h): Include.
11630         (non_spilled_static_chain_regno_p): New.
11631         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11632         unless it is non spilled static chain pseudo.
11633         (assign_hard_rego): Spill memory profitable allocno unless it is
11634         non spilled static chain pseudo.
11635         (allocno_spill_priority_compare): Put non spilled static chain
11636         pseudo at the end of sorted array.
11637         (improve_allocation): Do nothing if we have static chain and
11638         non-local goto.
11639         (allocno__priority_compare_func): Put non spilled static chain
11640         pseudo at the beginning of sorted array.
11641         (move_spill_restore): Ignore non spilled static chain pseudo.
11642         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11643         to non spilled static chain pseudo.
11644         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11645         pseudo at the beginning of sorted array.
11646         (spill_for): Spill non spilled static chain pseudo last.
11647         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11648         check for equivalence.
11649
11650 2015-07-16  Martin Liska  <mliska@suse.cz>
11651
11652         PR ipa/66896.
11653         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11654         dst_ctx if it does not exist.
11655
11656 2015-07-16  Martin Liska  <mliska@suse.cz>
11657
11658         * hash-set.h (remove): New function.
11659         (iterator): New iteration class for hash_set.
11660
11661 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11662
11663         * genattrtab.c (make_canonical): Add a file_location parameter.
11664         Use fatal_at rather than fatal.
11665         (get_attr_value): Likewise.  Update call to make_canonical.
11666         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11667         (make_internal_attr): Update calls accordingly.
11668
11669 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11670
11671         * read-md.h (message_with_line, error_with_line): Delete.
11672         * read-md.c (message_with_line, error_with_line): Delete.
11673         * gensupport.h: Include read-md.h.
11674         (md_rtx_info): New structure.
11675         (read_md_rtx): Use it.  Return a bool success value.
11676         * gensupport.c (read_md_rtx): Likewise.
11677         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11678         (main): Update after interface changes.
11679         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11680         (main): Update after interface changes.
11681         * genattrtab.c (insn_code_number): Delete.
11682         (optimize_attrs): Add a max_insn_code parameter and use it instead
11683         of insn_code_number.
11684         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11685         Use *_at rather than *_with_line functions.
11686         (gen_insn): Likewise.
11687         (gen_delay): Likewise.
11688         (gen_insn_reserv): Likewise.
11689         (gen_bypass): Take an md_rtx_info rather than an rtx.
11690         (main): Update after interface changes.  Use a local max_insn_code
11691         variable instead of insn_code_number.
11692         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11693         an rtx.  Use fatal_at rather than fatal.
11694         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11695         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11696         (gen_absence_set, gen_final_absence_set, gen_automaton)
11697         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11698         (main): Update after interface changes.
11699         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11700         and code number.
11701         (main): Update after interface changes.
11702         * genconditions.c (main): Use new read_md_rtx interface.
11703         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11704         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11705         (main): Update after interface changes.
11706         * genemit.c (insn_code_number, insn_index_number): Delete.
11707         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11708         Use fatal_at rather than fatal.
11709         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11710         rather than fatal.
11711         (gen_split): Likewise.
11712         (main): Update after interface changes.
11713         * genextract.c (line_no): Delete.
11714         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11715         Update call to walk_rtx.
11716         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11717         rather than message_with_line.
11718         (walk_rtx): Add an md_rtx_info argument.  Update call to
11719         VEC_safe_set_locstr.
11720         (main): Update after interface changes.
11721         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11722         and lineno.  Use error_at rather than separate message_with_line
11723         calls and have_error assignments.
11724         (main): Update after interface changes.
11725         * genmddump.c (main): Use new read_md_rtx interface.
11726         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11727         (main): Update after interface changes.
11728         * genoutput.c (next_code_number): Delete.
11729         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11730         (gen_peephole, gen_expand, gen_split): Likewise.
11731         (note_constraint): Likewise.  Use *_at rather than *_with_line
11732         functions.
11733         (main): Update after interface changes.
11734         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11735         rtx and lineno.
11736         (main): Update after interface changes.
11737         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11738         than an rtx and lineno.
11739         (process_define_constraint): Likewise.
11740         (process_define_register_constraint): Likewise.
11741         (main): Update after interface changes.
11742         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11743         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11744         Use *_at rather than *_with_line functions.
11745         (match_pattern_2): Likewise.
11746         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11747         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11748         Use *_at rather than *_with_line functions.
11749         * gentarget-def.c (add_insn): New function.
11750         (main): Use it.  Use new read_md_rtx interface.
11751
11752 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11753
11754         * gensupport.h (compute_test_codes): Take a file_location rather
11755         than a line number.
11756         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11757         rather than *_with_line functions.
11758         (process_define_predicate): Update call to compute_test_codes.
11759         * genpreds.c (validate_exp): Take a file_location rather than a
11760         line number.  Use *_at functions rather than *_with_line functions.
11761         (process_define_predicate): Update call to validate_exp.
11762         (constraint_data): Replace lineno field with a file_location.
11763         (add_constraint): Take a file_location rather than a line number.
11764         Use *_at functions rather than *_with_line functions.  Fix error
11765         message for address constraints.  Update after changes to
11766         validate_exp, constraint_data and compute_test_codes.
11767         (process_define_constraint): Update accordingly.
11768         (process_define_register_constraint): Likewise.
11769
11770 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11771
11772         * genoutput.c (data): Use a file_location to record the source
11773         position.
11774         (nothing): Delete.
11775         (idata, idata_end): Remove initialization.
11776         (constraint_data): Replace lineno with a file_location.
11777         (output_insn_data): Update after changes to data.
11778         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11779         (scan_operands): Likewise, using *_at rather than *_with_line
11780         functions.
11781         (process_template): Likewise.
11782         (validate_insn_alternatives): Likewise.
11783         (validate_insn_operands): Likewise.
11784         (validate_optab_operands): Likewise.
11785         (init_insn_for_nothing): Initialize idata and idata_end.
11786         (note_constraint): Update after changes to constraint_data,
11787         using at rather than with_line functions.
11788         (mdep_constraint_len): Take a file_location rather than a
11789         line number.  Use at rather than with_line functions.
11790
11791 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11792
11793         * read-md.h (fatal_at): Declare.
11794         * read-md.c (fatal_at): New function.
11795         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11796         to record the source position.
11797         (check_attr_test): Take a file_location instead of a line number.
11798         Use fatal_at instead of fatal.
11799         (check_attr_value): Update after above changes, using "at"
11800         rather than "with_line" reporting functions.
11801         (convert_set_attr_alternative): Likewise.
11802         (gen_attr): Likewise.
11803         (check_defs): Likewise.  Don't assign to read_md_filename.
11804         (gen_insn): Update initialization after above changes.
11805         (gen_delay): Likewise.
11806         (write_insn_cases): Print the filename for a define_peephole.
11807         (gen_insn_reserv): Take a line number as argument and update
11808         the call to check_attr_test.
11809         (main): Pass a line number to gen_insn_reserv.
11810
11811 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11812
11813         * read-md.h (file_location): New structure.
11814         (directive_handler_t): Take a file_location rather than a line number.
11815         (message_at, error_at): Declare.
11816         (read_skip_construct): Delete.
11817         * read-md.c (message_with_line_1): Replace with...
11818         (message_at_1): ...this new function.
11819         (message_at, error_at): New functions.
11820         (message_with_line, error_with_line): Update to use message_at_1.
11821         (handle_enum): Take a file_location rather than a line number
11822         and use error_at for error reporting.
11823         (handle_include): Likewise.
11824         (read_skip_construct): Likewise.  Make static.
11825         (handle_file): Update after above changes.  Pass a file_location
11826         rather than a line number to handle_directive.
11827         * gensupport.c (queue_elem): Replace separate filename and lineno
11828         with a file_location.
11829         (queue_pattern): Replace filename and lineno arguments with a
11830         file_location.  Update after change to queue_elem.
11831         (process_define_predicate): Replace lineno argument with a
11832         file_location and use error_at for error reporting.  Update
11833         after above changes.
11834         (process_rtx): Likewise.
11835         (subst_pattern_match): Likewise.
11836         (get_alternatives_number): Likewise.
11837         (alter_predicate_for_insn): Likewise.
11838         (rtx_handle_directive): Likewise.
11839         (is_predicable): Update after above changes, using error_at rather
11840         than error_with_line.
11841         (has_subst_attribute): Likewise.
11842         (identify_predicable_attribute): Likewise.
11843         (alter_attrs_for_subst_insn): Likewise.
11844         (process_one_cond_exec): Likewise.
11845         (process_substs_on_one_elem): Likewise.
11846         (process_define_subst): Likewise.
11847         (check_define_attr_duplicates): Likewise.
11848         (read_md_rtx): Update after change to queue_elem.
11849
11850 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11851
11852         * genoutput.c (next_index_number): Delete.
11853         (data): Remove index_number.
11854         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11855         (main): Remove manipulation of next_index_number.
11856
11857 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11858
11859         * genattrtab.c (check_attr_value): Remove handling of null attrs.
11860         (make_canonical): Likewise.
11861
11862 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
11863
11864         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11865         instead of adjust_address_nv.
11866         (restore_stack_nonlocal): Likewise.
11867         (nonlocal_goto): Likewise.
11868
11869 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11870
11871         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11872         not have a corresponding loop header phi.
11873
11874 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11875
11876         * tree-parloops.c (create_loads_for_reductions): Handle case that
11877         reduction is unused.
11878
11879 2015-07-16  Richard Biener  <rguenther@suse.de>
11880
11881         PR tree-optimization/66894
11882         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11883         about deriving NE_EXPR from truncated values.
11884
11885 2015-07-16  Martin Liska  <mliska@suse.cz>
11886
11887         * alloc-pool.h
11888         (object_allocator): Add new class.
11889         (pool_allocator::initialize): Use the underlying class.
11890         (pool_allocator::allocate): Likewise.
11891         (pool_allocator::remove): Likewise.
11892         (operator new): A new generic allocator.
11893         * asan.c (struct asan_mem_ref): Remove unused members.
11894         (asan_mem_ref_new): Replace new operator with
11895         object_allocator::allocate.
11896         (free_mem_ref_resources): Change deallocation.
11897         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11898         with object_allocator.
11899         * config/sh/sh.c (add_constant): Replace new operator with
11900         object_allocator::allocate.
11901         (sh_reorg): Change call to a release method.
11902         * cselib.c (struct elt_list): Remove unused members.
11903         (new_elt_list): Replace new operator with
11904         object_allocator::allocate.
11905         (new_elt_loc_list): Likewise.
11906         (new_cselib_val): Likewise.
11907         (unchain_one_elt_list): Change delete operator with remove method.
11908         (unchain_one_elt_loc_list): Likewise.
11909         (unchain_one_value): Likewise.
11910         (cselib_finish): Release newly added static allocators.
11911         * cselib.h (struct cselib_val): Remove unused members.
11912         (struct elt_loc_list): Likewise.
11913         * df-problems.c (df_chain_alloc): Replace pool_allocator with
11914         object_allocator.
11915         * df-scan.c (struct df_scan_problem_data): Likewise.
11916         (df_scan_alloc): Likewise.
11917         * df.h (struct dataflow): Likewise.
11918         * dse.c (struct read_info_type): Likewise.
11919         (struct insn_info_type): Likewise.
11920         (struct dse_bb_info_type): Likewise.
11921         (struct group_info): Likewise.
11922         (struct deferred_change): Likewise.
11923         (get_group_info): Likewise.
11924         (delete_dead_store_insn): Likewise.
11925         (free_read_records): Likewise.
11926         (replace_read): Likewise.
11927         (check_mem_read_rtx): Likewise.
11928         (scan_insn): Likewise.
11929         (dse_step1): Likewise.
11930         (dse_step7): Likewise.
11931         * et-forest.c (struct et_occ): Remove unused members.
11932         (et_new_occ): Use allocate instead of new operator.
11933         (et_new_tree): Likewise.
11934         (et_free_tree): Call release method explicitly.
11935         (et_free_tree_force): Likewise.
11936         (et_free_pools): Likewise.
11937         (et_split): Use remove instead of delete operator.
11938         * et-forest.h (struct et_node): Remove unused members.
11939         * ipa-cp.c: Change pool_allocator to object_allocator.
11940         * ipa-inline-analysis.c: Likewise.
11941         * ipa-profile.c: Likewise.
11942         * ipa-prop.c: Likewise.
11943         * ipa-prop.h: Likewise.
11944         * ira-build.c (initiate_cost_vectors): Cast return value.
11945         (ira_allocate_cost_vector): Likewise.
11946         * ira-color.c (struct update_cost_record): Remove unused members.
11947         * lra-int.h (struct lra_live_range): Likewise.
11948         (struct lra_copy): Likewise.
11949         (struct lra_insn_reg): Likewise.
11950         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11951         * lra.c (new_insn_reg): Replace new operator with allocate method.
11952         (free_insn_regs): Same for operator delete.
11953         (finish_insn_regs): Release new static allocator.
11954         (finish_insn_recog_data): Likewise.
11955         (lra_free_copies): Replace delete operator with remove method.
11956         (lra_create_copy): Replace operator new with allocate method.
11957         (invalidate_insn_data_regno_info): Same for remove method.
11958         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11959         (free_debug_insn_changes): Replace delete operator with remove method.
11960         (replace_oldest_value_reg): Replace operator new with allocate method.
11961         (pass_cprop_hardreg::execute): Release new static variable.
11962         * sched-deps.c (sched_deps_init): Change pool_allocator to
11963         object_allocator.
11964         * sel-sched-ir.c: Likewise.
11965         * sel-sched-ir.h: Likewise.
11966         * stmt.c (expand_case): Likewise.
11967         (expand_sjlj_dispatch_table): Likewise.
11968         * tree-sra.c (struct access): Remove unused members.
11969         (struct assign_link): Likewise.
11970         (sra_deinitialize): Release newly added static pools.
11971         (create_access_1):Replace operator new with allocate method.
11972         (build_accesses_from_assign): Likewise.
11973         (create_artificial_child_access): Likewise.
11974         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11975         pool_allocator to object_allocator.
11976         * tree-ssa-pre.c: Likewise.
11977         * tree-ssa-reassoc.c: Likewise.
11978         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11979         * tree-ssa-strlen.c: Likewise.
11980         * tree-ssa-structalias.c: Likewise.
11981         * var-tracking.c (onepart_pool_allocate): New function.
11982         (unshare_variable): Use the newly added function.
11983         (variable_merge_over_cur): Likewise.
11984         (variable_from_dropped): Likewise.
11985         (variable_was_changed): Likewise.
11986         (set_slot_part): Likewise.
11987         (emit_notes_for_differences_1): Likewise.
11988         (vt_finalize): Release newly added static pools.
11989
11990 2015-07-16  Martin Jambor  <mjambor@suse.cz>
11991
11992         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
11993         all uses.  Fix two typos in its general comment.
11994         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
11995
11996 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
11997
11998         * config/i386/linux-common.h (LINK_MPX): New.
11999         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12000         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12001         indicating '-z bndplt' support by linker.
12002         * configure: Regenerate.
12003         * config.in: Regenerate.
12004
12005 2015-07-16  Richard Biener  <rguenther@suse.de>
12006
12007         * fold-const.c (fold_widened_comparison): Remove.
12008         (fold_sign_changed_comparison): Likewise.
12009         (fold_comparison): Move widened and sign-changed comparison
12010         simplification ...
12011         * match.pd: ... to patterns here.
12012         * generic-match-head.c: Include target.h.
12013         * gimple-match-head.c: Likewise.
12014
12015 2015-07-16  Richard Biener  <rguenther@suse.de>
12016
12017         * tree-ssa-dom.c (dom_valueize): New function.
12018         (record_temporary_equivalences): Also record equivalences
12019         for dominating stmts that have uses of equivalences we are
12020         about to record.
12021
12022 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
12023
12024         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12025         add_autoinc_candidates.
12026         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12027         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12028         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12029         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12030         Call new function.
12031         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12032         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12033         Remove parameter struct iv*.  Call add_autoinc_candidates here.
12034         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12035         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12036         Call new function.
12037         (find_iv_candidates): Call new functions.
12038
12039 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12040
12041         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12042         uninitialized-variable warning.
12043
12044 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
12045
12046         PR target/65249
12047         * config/sh/sh.md (movdi): Split simple reg move to two movsi
12048         when the destination is R0.
12049
12050 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
12051
12052         PR target/66866
12053         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12054         * config/i386/i386.c (ix86_expand_pextr): New function.
12055         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
12056         for non-lowpart subregs.
12057         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12058         (insv<mode>): Use SWI248 mode iterator.
12059         (insv<mode>_1): Ditto.
12060
12061 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12062             Sebastian Pop  <s.pop@samsung.com>
12063
12064         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12065         iterator to use_stmt.
12066
12067 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12068             Sebastian Pop <s.pop@samsung.com>
12069
12070         * graphite-scop-detection.c (build_scops_1): Discard scops for
12071         which entry==exit.
12072
12073 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12074             Sebastian Pop <s.pop@samsung.com>
12075
12076         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12077         case of a return statement in scop.
12078
12079 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
12080             Sebastian Pop <s.pop@samsung.com>
12081
12082         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12083         INTEGER_TYPE parameters.
12084         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12085         VECTOR_CST in scan_tree_for_params.
12086         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12087
12088 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12089
12090         * gimple-pretty-print.h: Don't include pretty-print.h.
12091         * tree-streamer.h: Don't include lto-streamer.h.
12092         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12093         * gimple-streamer-in.c: Remove redundant includes.
12094         * gimple-streamer-out.c: Likewise.
12095         * ipa-devirt.c: Likewise.
12096         * ipa-icf.c: Likewise.
12097         * ipa-inline-analysis.c: Likewise.
12098         * ipa-polymorphic-call.c: Likewise.
12099         * ipa-profile.c: Likewise.
12100         * ipa-prop.c: Likewise.
12101         * ipa-pure-const.c: Likewise.
12102         * lto-cgraph.c: Likewise.
12103         * lto-streamer-in.c: Likewise.
12104         * lto-streamer-out.c: Likewise.
12105         * lto-streamer.c: Likewise.
12106         * tree-streamer-in.c: Likewise.
12107         * tree-streamer-out.c: Likewise.
12108         * tree-streamer.c: Likewise.
12109
12110 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
12111
12112         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12113         include input.h.
12114         * opts.c: Remove multiline #include comment.
12115
12116 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12117
12118         * config/nvptx/mkoffload.c (process): Add C++ protection to
12119         emitted code.
12120
12121 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12122
12123         PR target/66854
12124         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12125         null before IEEE 128-bit floating point support patch.
12126
12127 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12128
12129         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12130         for (!c) != {0,...,0} ? a : b for vector modes.
12131
12132 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12133             Martin Jambor  <mjambor@suse.cz>
12134
12135         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12136         struct func_body_info* instead of struct ipa_node_params*, expecting
12137         fbi->info to be filled in.  Replace throughout.  Adjust call to
12138         ipa_load_from_parm_agg.
12139         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12140         instead of struct ipa_node_params*.  Adjust calls to other functions
12141         so that they pass either fbi or fbi->info.
12142         (set_switch_stmt_execution_predicate): Likewise.
12143         (will_be_nonconstant_predicate): Likewise.
12144         (compute_bb_predicates): Likewise.
12145         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12146         struct func_body_info, replace parms_info with fbi.info.  Adjust
12147         calls to functions that now accept struct func_body_info.
12148         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12149         (struct func_body_info): Likewise.
12150         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12151         remove static.  Adjust callers.
12152         (ipa_load_from_parm_agg): Remove.
12153         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12154         (func_body_info): Likewise.
12155         (ipa_load_from_parm_agg): Adjust prototype.
12156
12157 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12158
12159         * gensupport.c (rtx_handle_directive): Adjust.
12160         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12161         instead of expr list rtx.
12162         (add_define_attr_for_define_subst): Likewise.
12163         (add_define_subst_attr): Likewise.
12164         (read_subst_mapping): Likewise.
12165         (read_rtx): Likewise.
12166         * rtl.h (read_rtx): Adjust.
12167
12168 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12169
12170         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12171
12172 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12173
12174         PR target/58066
12175         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12176         (*tls_local_dynamic_base_64_<mode>): Ditto.
12177         (*tls_local_dynamic_base_64_largepic): Ditto.
12178         (tls_global_dynamic_64_<mode>): Update expander pattern.
12179         (tls_local_dynamic_base_64_<mode>): Ditto.
12180
12181 2015-07-15  Richard Biener  <rguenther@suse.de>
12182
12183         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12184         and bool_var == 1 -> bool_var simplifications ...
12185         * match.pd: ... to patterns here.  Factor out negate_expr_p
12186         cases from the A - B -> A + (-B) patterns as negate_expr_p
12187         predicate and add a -(A + B) -> (-B) - A pattern.
12188
12189 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12190
12191         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12192
12193 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12194             Robert Suchanek  <robert.suchanek@imgtec.com>
12195
12196         * config/mips/mips.c (mips_int_mask): New enum.
12197         (mips_shadow_set): Likewise.
12198         (int_mask): New variable.
12199         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12200         (machine_function): Add int_mask and use_shadow_register_set.
12201         (mips_attribute_table): Add attribute handlers for interrupt and
12202         use_shadow_register_set.
12203         (mips_interrupt_mask): New static function.
12204         (mips_handle_interrupt_attr): Likewise.
12205         (mips_handle_use_shadow_register_set_attr): Likewise.
12206         (mips_use_shadow_register_set): Change return type to enum
12207         mips_shadow_set.  Add argument handling for use_shadow_register_set
12208         attribute.
12209         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12210         compare with mips_shadow_set enum.
12211         (mips_compute_frame_info): Add interrupt mask and
12212         use_shadow_register_set to per-function information structure.
12213         Add a stack slot for EPC unconditionally.
12214         (mips_expand_prologue): Compare use_shadow_register_set value
12215         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12216         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12217         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12218         copying the stack pointer from the shadow register set.
12219         * config/mips/mips.h (SR_IM0): New define.
12220         * config/mips/mips.md (mips_rdpgpr): Rename to...
12221         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12222         * doc/extend.texi (Declaring Attributes of Functions): Document
12223         optional arguments for interrupt and use_shadow_register_set
12224         attributes.
12225
12226 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12227
12228         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12229         interrupt attribute.
12230         (mips_expand_prologue): Disable the floating point unit in an ISR.
12231         * config/mips/mips.h (SR_COP1): New define.
12232
12233 2015-07-15  Richard Biener  <rguenther@suse.de>
12234
12235         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12236         to tell how many tokens to peek ahead (default 1).
12237         (parser::eat_token, parser::eat_ident): Return token consumed.
12238         (parser::parse_result): Parse new switch statement.
12239         * match.pd: Use case statements where appropriate.
12240
12241 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12242
12243         PR rtl-optimization/58066
12244         * calls.c (expand_call): Precompute register parameters before stack
12245         alignment is performed.
12246
12247 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12248
12249         PR rtl-optimization/66838
12250         * postreload.c (reload_cse_move2add): Also process
12251         CALL_INSN_FUNCTION_USAGE when resetting information of
12252         call-clobbered registers.
12253
12254 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12255             Cesar Philippidis  <cesar@codesourcery.com>
12256             Chung-Lin Tang  <cltang@codesourcery.com>
12257
12258         * config/nios2/constraints.md (U, v): New constraints.
12259         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12260         (ldstex_memory_operand): New.
12261         * config/nios2/sync.md: New file.
12262         * config/nios2/nios2.md (unspecv): Add new builtin function
12263         UNSPECV codes.
12264         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12265         (top-level): Include sync.md.
12266         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12267         new builtins.
12268         (N2_BUILTINS): Add arch field setting, add new builtins.
12269         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12270         for arch field.
12271         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12272         Also handle ldex/stex/ldsex/stsex builtins.
12273         (nios2_expand_rdprs_builtin): New function.
12274         (nios2_expand_cache_builtin): New function.
12275         (nios2_expand_wrpie_builtin): New function.
12276         (nios2_expand_eni_builtin): New function.
12277         (nios2_expand_builtin): Add arch field handling and new builtin
12278         cases.
12279         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12280         new builtins.
12281         * doc/md.texi (Machine Constraints): Document U and v constraints.
12282
12283 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12284             Cesar Philippidis  <cesar@codesourcery.com>
12285             Chung-Lin Tang  <cltang@codesourcery.com>
12286
12287         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12288         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12289         callee_save_reg_size and uses_anonymous_args fields.
12290         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12291         (nios2_create_cfa_notes): New function.
12292         (nios2_adjust_stack): New function for adjusting stack.
12293         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12294         Use nios2_adjust_stack.
12295         (nios2_expand_epilogue): Likewise.
12296         (nios2_expand_return): New function.
12297         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12298         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12299         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12300         * config/nios2/nios2.md (return): Use nios2_expand_return.
12301
12302 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12303             Cesar Philippidis  <cesar@codesourcery.com>
12304             Chung-Lin Tang  <cltang@codesourcery.com>
12305
12306         * config/nios2/predicates.md (pop_operation): New.
12307         (ldwm_operation, stwm_operation): New.
12308         (nios2_hard_register_operand): New.
12309         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12310         (ldstwm_operation_p): Declare.
12311         (gen_ldstwm_peep): Declare.
12312         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12313         (base_reg_adjustment_p): New.
12314         (pop_operation_p): New.
12315         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12316         (nios2_ldstwm_regset_p): New.
12317         (ldstwm_operation_p): New.
12318         (gen_ldst): New.
12319         (nios2_ldst_parallel): New.
12320         (struct ldswm_operand): Declare.
12321         (compare_ldstwm_operands): New.
12322         (can_use_cdx_ldstw): New.
12323         (gen_ldstwm_peep): New.
12324         * config/nios2/nios2-ldstwm.sml: New.
12325         * config/nios2/nios2.md: Include ldstwm.md.
12326         * config/nios2/ldstwm.md: Generated.
12327
12328 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12329             Cesar Philippidis  <cesar@codesourcery.com>
12330             Chung-Lin Tang  <cltang@codesourcery.com>
12331
12332         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12333         (REG_ALLOC_ORDER): Define.
12334         (ADJUST_REG_ALLOC_ORDER): Define.
12335         (HONOR_REG_ALLOC_ORDER): Define.
12336         (CDX_REG_P): Define.
12337         (ANDCLEAR_INT): Define.
12338         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12339         (nios2_label_align): Declare.
12340         (nios2_cdx_narrow_form_p): Declare.
12341         (nios2_adjust_reg_alloc_order): Declare.
12342         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12343         operation.
12344         (nios2_large_unspec_reloc_p): New function, split from...
12345         (nios2_legitimate_pic_operand_p): ...here.
12346         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12347         (nios2_print_operand_punct_valid_p): New.
12348         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12349         (split_mem_address): New.
12350         (split_alu_insn): New.
12351         (cdxreg): New.
12352         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12353         (enum nios2_add_insn_kind): New.
12354         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12355         (nios2_add_insn_classify): New.
12356         (nios2_add_insn_asm): New.
12357         (nios2_cdx_narrow_form_p): New.
12358         (label_align, min_labelno, max_labelno): New.
12359         (nios2_reorg): New.
12360         (nios2_label_align): New.
12361         (nios2_adjust_reg_alloc_order): New.
12362         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12363         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12364         * config/nios2/constraints.md (P): New constraint.
12365         * config/nios2/predicates.md (const_and_operand): New.
12366         (and_operand): New.
12367         (stack_memory_operand): New.
12368         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12369         (length): Update to use nios2_cdx_narrow_form_p().
12370         (type): Add new insn type values.
12371         (control, alu, st, ld, shift): Update insn reservations with
12372         new insn type values.
12373         (*high, *lo_sum): Define new insn patterns for constant generation.
12374         (movqi_internal, movhi_internal, movsi_internal): Reduce
12375         alternatives, update asm template to handle CDX variants, update
12376         type attributes.
12377         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12378         template, update type attributes.
12379         (extendhisi2, extendqi<mode>2): Likewise.
12380         (addsi3): Change to use function for asm string.
12381         (subsi3): Add CDX notation to asm template, update type attributes.
12382         (negsi3, one_cmplsi3): Likewise.
12383         (andsi3): New pattern, specialized from logical patterns.
12384         (<code>si3): Remove and case, combine alternatives, update asm
12385         template.
12386         (<shift_op>si3): Add CDX notation, update type attributes.
12387         (rotrsi3): Update type attribute.
12388         (*merge, extzv, insv): New insn patterns.
12389         (return): Change to define_expand.
12390         (simple_return): Add CDX notation, update type attributes.
12391         (indirect_jump): Add CDX notation.
12392         (jump): Update asm cases, update length attribute expression.
12393         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12394         (nios2_cbranch): Update asm cases and length attribute expression
12395         to handle CDX variants.
12396         (nios2_cmp<code>): Update asm template.
12397         (nop): Add CDX notation, update type attributes.
12398         (trap): Add CDX notation.
12399         (ctrapsi4): Update asm cases and length attribute expression to
12400         handle CDX variant.
12401         * doc/md.texi (Machine Constraints): Document P constraint.
12402
12403 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12404             Cesar Philippidis  <cesar@codesourcery.com>
12405             Chung-Lin Tang  <cltang@codesourcery.com>
12406
12407         * config/nios2/nios2.h (SMALL_INT12): New macro.
12408         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12409         (nios2_valid_addr_expr_p): Use it.
12410         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12411         with implicit "io" instructions on R2.
12412         * config/nios2/constraints.md (w): New constraint.
12413         * config/nios2/predicates.md (ldstio_memory_operand): New.
12414         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12415         operand predicate and constraint.
12416         (ld<bh>io_signed, st<bhw>io>): Likewise.
12417         * doc/md.texi (Machine Constraints): Document w constraint.
12418
12419 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12420             Cesar Philippidis  <cesar@codesourcery.com>
12421             Chung-Lin Tang  <cltang@codesourcery.com>
12422
12423         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12424         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12425         Nios II architecture level.
12426         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12427         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12428         (OPTION_DEFAULT_SPECS): Define.
12429         (ASM_SPEC): Add -march= spec strings.
12430         * config/nios2/nios2.c (nios2_option_override): Check for
12431         conflicts involving new options.
12432         * config.gcc (nios2*-*-*): Support --with-arch=.
12433         * doc/invoke.texi (Option Summary, Nios II Options): Document
12434         -march=, -mbmx, and -mcdx.
12435
12436 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12437
12438         PR rtl-optimization/66626
12439         * lra-constraints.c (lra_constraints): Prevent equivalence
12440         substitution for static chain pseudo in functions with nonlocal
12441         goto.
12442
12443 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12444
12445         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12446         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12447         -fstack-limit-symbol as well as -fstack-limit-register.
12448         (nios2_expand_prologue): Emit only a single stack limit check,
12449         even if multiple stack adjustments are required.
12450         (nios2_option_override): Diagnose unsupported combination of -fpic
12451         and -stack-limit-symbol.
12452
12453 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12454
12455         * Makefile.in (top_srcdir): New.
12456         * configure.ac: Use AM_ZLIB.
12457         * configure: Regeneated.
12458
12459 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12460
12461         PR target/66840
12462         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12463
12464 2015-07-14  Richard Biener  <rguenther@suse.de>
12465
12466         PR tree-optimization/66863
12467         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12468         what we record for conversion use stmt lhs inequalities.
12469
12470 2015-07-14  Richard Biener  <rguenther@suse.de>
12471
12472         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12473         (decision_tree::gen_gimple): Likewise.
12474
12475 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12476
12477         * gcc.c (greater_than_spec_func): Declare forward.
12478         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12479         -ftree-parallelize-loops={0,1}.
12480         (static_spec_functions): Add greater_than_spec_func function with name
12481         "gt".
12482         (greater_than_spec_func): New function.
12483
12484 2015-07-14  Richard Biener  <rguenther@suse.de>
12485
12486         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12487         wideing type conversion case from record_equivalences_from_incoming_edge
12488         and use record_equality to record equivalences.
12489         (record_equivalences_from_incoming_edge): Call
12490         record_temporary_equivalences.
12491
12492 2015-07-14  Richard Biener  <rguenther@suse.de>
12493
12494         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12495         (struct if_expr): New.
12496         (struct with_expr): Likewise.
12497         (is_a_helper): Add helpers for if_expr and with_expr.
12498         (struct simplify): Add simplify_kind enum and member.  Remove
12499         ifexpr_vec member.
12500         (simplify::simplify): Adjust.
12501         (lower_commutative): Adjust.
12502         (lower_opt_convert): Likewise.
12503         (lower_cond): Likewise.
12504         (replace_id): Handle with_expr and if_expr.
12505         (lower_for): Adjust.
12506         (dt_simplify::gen_1): New recursive worker, split out from ...
12507         (dt_simplify::gen): ... here.  Deal with if and with expansion
12508         recursively.
12509         (capture_info::capture_info): Take context argument
12510         (capture_info::walk_result): Only analyze specific result.
12511         (parser::parse_result): New function.
12512         (parser::parse_simplify): Adjust to parse ifs with then end
12513         else case.
12514         (parser::parse_if): Simplify.
12515         (parser::parse_pattern): Pass down simplify kind.
12516         * match.pd: Convert if structure to new syntax.
12517
12518 2015-07-13  Marek Polacek  <polacek@redhat.com>
12519
12520         * rtl.c (rtx_equal_p_cb): Fix typo.
12521
12522 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12523
12524         * omega.h: Don't include config.h, don't include params.h again if
12525         omega.h has already been included.
12526         * graphite-poly.h: Include sese.h.
12527         * graphite.c: Don't include sese.h, remove needless includes and
12528         minimize includes outside #ifdef HAVE_isl block.
12529         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12530         and wrap entire file in #ifdef HAVE_isl
12531         * graphite-dependences.c: Likewise.
12532         * graphite-interchange.c: Likewise.
12533         * graphite-isl-ast-to-gimple.c: Likewise.
12534         * graphite-optimize-isl.c: Likewise.
12535         * graphite-poly.c: Likewise.
12536         * graphite-scop-detection.c: Likewise.
12537         * graphite-sese-to-poly.c: Likewise.
12538
12539 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12540
12541         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12542
12543 2015-07-13  Renlin Li  <renlin.li@arm.com>
12544
12545         PR rtl/66556
12546         * simplify-rtx.c (simplify_const_relational_operation): Add
12547         side_effects_p checks.
12548
12549 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12550
12551         * bitmap.h: Fix double word typos.
12552         * builtins.c: Same.
12553         * calls.c: Same.
12554         * cfgloopmanip.c: Same.
12555         * cgraph.c: Same.
12556         * cgraph.h: Same.
12557         * cgraphclones.c: Same.
12558         * combine.c: Same.
12559         * config/aarch64/aarch64-protos.h: Same.
12560         * config/aarch64/aarch64.c: Same.
12561         * config/aarch64/aarch64.md: Same.
12562         * config/arm/arm.md: Same.
12563         * config/arm/arm1020e.md: Same.
12564         * config/arm/arm1026ejs.md: Same.
12565         * config/arm/arm926ejs.md: Same.
12566         * config/arm/fa526.md: Same.
12567         * config/arm/fa606te.md: Same.
12568         * config/arm/fa626te.md: Same.
12569         * config/arm/fa726te.md: Same.
12570         * config/arm/fmp626.md: Same.
12571         * config/darwin.c: Same.
12572         * config/epiphany/epiphany.c: Same.
12573         * config/frv/frv.c: Same.
12574         * config/ft32/ft32.c: Same.
12575         * config/gnu-user.h: Same.
12576         * config/h8300/constraints.md: Same.
12577         * config/i386/i386.c: Same.
12578         * config/i386/i386.md: Same.
12579         * config/iq2000/iq2000.md: Same.
12580         * config/mips/mips.c: Same.
12581         * config/mmix/mmix.md: Same.
12582         * config/moxie/moxie.c: Same.
12583         * config/nds32/nds32.md: Same.
12584         * config/pa/pa.h: Same.
12585         * config/rs6000/aix.h: Same.
12586         * config/rs6000/rs6000.h: Same.
12587         * config/sh/sh.c: Same.
12588         * config/tilegx/tilegx.md: Same.
12589         * config/tilepro/gen-mul-tables.cc: Same.
12590         * cse.c: Same.
12591         * dbxout.c: Same.
12592         * doc/invoke.texi: Same.
12593         * dse.c: Same.
12594         * dwarf2out.c: Same.
12595         * final.c: Same.
12596         * gcc.c: Same.
12597         * genmatch.c: Same.
12598         * gimplify.c: Same.
12599         * hash-table.h: Same.
12600         * internal-fn.c: Same.
12601         * ipa-cp.c: Same.
12602         * ipa-devirt.c: Same.
12603         * ipa-icf.c: Same.
12604         * ipa-icf.h: Same.
12605         * ipa-profile.c: Same.
12606         * ipa-prop.c: Same.
12607         * ipa-prop.h: Same.
12608         * ira.c: Same.
12609         * omp-low.c: Same.
12610         * reg-stack.c: Same.
12611         * regcprop.c: Same.
12612         * reorg.c: Same.
12613         * rtl.h: Same.
12614         * sbitmap.h: Same.
12615         * tree-eh.c: Same.
12616         * tree-inline.c: Same.
12617         * tree-sra.c: Same.
12618         * tree-ssa-dom.c: Same.
12619         * tree-ssa-loop-ivopts.c: Same.
12620         * tree-ssa-structalias.c: Same.
12621         * tree-ssa-tail-merge.c: Same.
12622         * tree-ssa-ter.c: Same.
12623         * tree-ssa-threadupdate.c: Same.
12624         * tree-ssa-uninit.c: Same.
12625         * tree-ssanames.c: Same.
12626         * tree-vect-loop-manip.c: Same.
12627         * tree-vrp.c: Same.
12628         * tree.c: Same.
12629         * valtrack.c: Same.
12630         * vec.h: Same.
12631
12632 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12633
12634         PR middle-end/66726
12635         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12636         tree_ssa_phiopt_worker): Call it.
12637
12638 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12639
12640         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12641         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12642         REG_EQUAL note.
12643
12644 2015-07-11  Marek Polacek  <polacek@redhat.com>
12645
12646         PR middle-end/66353
12647         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12648         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12649         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12650         rather than bb_has_abnormal_call_pred.
12651         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12652         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12653         rather than bb_has_abnormal_call_pred.
12654
12655 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12656
12657         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12658         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12659         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12660         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12661         v850_legitimate_address_p): New functions.
12662         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12663
12664 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12665
12666         PR target/66819
12667         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12668         indirect sibcall with register arguments if register available
12669         for argument passing.
12670         (init_cumulative_args): Set cfun->machine->arg_reg_available
12671         to (cum->nregs > 0) or to true if function has a variable
12672         argument list.
12673         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12674         to false if cum->nregs <= 0.
12675         * config/i386/i386.h (machine_function): Add arg_reg_available.
12676
12677 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12678
12679         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12680         and gen_higpart instead of gen_rtx_SUBREG.
12681         * config/i386/i386.md
12682         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12683         (read-modify peephole2): Use gen_lowpart instead of
12684         gen_rtx_SUBREG for operand 5.
12685
12686 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12687
12688         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12689         generated files.
12690         * config/tilepro/mul-tables.c: Regenerate.
12691         * config/tilegx/mul-tables.c: Regenerate.
12692
12693 2015-07-10  Richard Biener  <rguenther@suse.de>
12694
12695         * fold-const.c (distribute_bit_expr): Remove.
12696         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12697         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12698         to A & (B | C) and simplifying A << C1 << C2 to ...
12699         * match.pd: ... patterns here.
12700
12701 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12702
12703         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12704         Mark mem as READONLY and NOTRAP for PIC symbol.
12705
12706 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12707
12708         * gimple-predict.h: New file.
12709         (gimple_predict_predictor, gimple_predict_set_predictor,
12710         gimple_predict_outcome, gimple_predict_set_outcome,
12711         gimple_build_predict): Relocate here.
12712         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12713         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12714         gimple-predict.h.
12715         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12716         * basic-block.h: Don't include cfghooks.h.
12717         * backend.h: Don't include predict.h.
12718         * cfghooks.h: Include predict.h.
12719         * gimple-pretty-print.c: Include gimple-predict.h.
12720         * gimplify.c: Likwise.
12721         * predict.c: Adjust includes.
12722         * tree-inline.c: Likewise.
12723         * asan.c: Likewise.
12724         * auto-inc-dec.c: Likewise.
12725         * auto-profile.c: Likewise.
12726         * bb-reorder.c: Likewise.
12727         * builtins.c: Likewise.
12728         * caller-save.c: Likewise.
12729         * calls.c: Likewise.
12730         * cfganal.c: Likewise.
12731         * cfgbuild.c: Likewise.
12732         * cfg.c: Likewise.
12733         * cfgcleanup.c: Likewise.
12734         * cfgexpand.c: Likewise.
12735         * cfghooks.c: Likewise.
12736         * cfgloopanal.c: Likewise.
12737         * cfgloop.c: Likewise.
12738         * cfgloopmanip.c: Likewise.
12739         * cfgrtl.c: Likewise.
12740         * cgraph.c: Likewise.
12741         * cgraphunit.c: Likewise.
12742         * combine.c: Likewise.
12743         * cprop.c: Likewise.
12744         * cse.c: Likewise.
12745         * dce.c: Likewise.
12746         * dojump.c: Likewise.
12747         * dse.c: Likewise.
12748         * except.c: Likewise.
12749         * expmed.c: Likewise.
12750         * expr.c: Likewise.
12751         * final.c: Likewise.
12752         * fold-const.c: Likewise.
12753         * function.c: Likewise.
12754         * fwprop.c: Likewise.
12755         * gcc-plugin.h: Likewise.
12756         * gcse.c: Likewise.
12757         * genattrtab.c: Likewise.
12758         * genemit.c: Likewise.
12759         * gengtype.c: Likewise.
12760         * genopinit.c: Likewise.
12761         * genoutput.c: Likewise.
12762         * genpreds.c: Likewise.
12763         * genrecog.c: Likewise.
12764         * gimple-fold.c: Likewise.
12765         * gimple-iterator.c: Likewise.
12766         * gimple-ssa-isolate-paths.c: Likewise.
12767         * gimple-ssa-strength-reduction.c: Likewise.
12768         * graph.c: Likewise.
12769         * graphite-blocking.c: Likewise.
12770         * graphite.c: Likewise.
12771         * graphite-dependences.c: Likewise.
12772         * graphite-interchange.c: Likewise.
12773         * graphite-isl-ast-to-gimple.c: Likewise.
12774         * graphite-optimize-isl.c: Likewise.
12775         * graphite-poly.c: Likewise.
12776         * graphite-scop-detection.c: Likewise.
12777         * graphite-sese-to-poly.c: Likewise.
12778         * haifa-sched.c: Likewise.
12779         * ifcvt.c: Likewise.
12780         * internal-fn.c: Likewise.
12781         * ipa-cp.c: Likewise.
12782         * ipa-profile.c: Likewise.
12783         * ipa-split.c: Likewise.
12784         * ipa-utils.c: Likewise.
12785         * ira-build.c: Likewise.
12786         * ira-color.c: Likewise.
12787         * ira-conflicts.c: Likewise.
12788         * ira-costs.c: Likewise.
12789         * ira-emit.c: Likewise.
12790         * ira-lives.c: Likewise.
12791         * jump.c: Likewise.
12792         * loop-doloop.c: Likewise.
12793         * loop-init.c: Likewise.
12794         * loop-invariant.c: Likewise.
12795         * loop-unroll.c: Likewise.
12796         * lower-subreg.c: Likewise.
12797         * lra-assigns.c: Likewise.
12798         * lra.c: Likewise.
12799         * lra-coalesce.c: Likewise.
12800         * lra-constraints.c: Likewise.
12801         * lra-lives.c: Likewise.
12802         * lto-cgraph.c: Likewise.
12803         * lto-streamer-in.c: Likewise.
12804         * mode-switching.c: Likewise.
12805         * modulo-sched.c: Likewise.
12806         * omp-low.c: Likewise.
12807         * optabs.c: Likewise.
12808         * passes.c: Likewise.
12809         * postreload.c: Likewise.
12810         * postreload-gcse.c: Likewise.
12811         * profile.c: Likewise.
12812         * recog.c: Likewise.
12813         * regstat.c: Likewise.
12814         * reload1.c: Likewise.
12815         * reorg.c: Likewise.
12816         * rtlanal.c: Likewise.
12817         * sched-ebb.c: Likewise.
12818         * sel-sched-ir.c: Likewise.
12819         * sese.c: Likewise.
12820         * shrink-wrap.c: Likewise.
12821         * simplify-rtx.c: Likewise.
12822         * stmt.c: Likewise.
12823         * store-motion.c: Likewise.
12824         * tracer.c: Likewise.
12825         * trans-mem.c: Likewise.
12826         * tree-call-cdce.c: Likewise.
12827         * tree-cfg.c: Likewise.
12828         * tree-cfgcleanup.c: Likewise.
12829         * tree-chkp.c: Likewise.
12830         * tree-complex.c: Likewise.
12831         * tree-eh.c: Likewise.
12832         * tree-if-conv.c: Likewise.
12833         * tree-loop-distribution.c: Likewise.
12834         * tree-outof-ssa.c: Likewise.
12835         * tree-parloops.c: Likewise.
12836         * tree-predcom.c: Likewise.
12837         * tree-pretty-print.c: Likewise.
12838         * tree-profile.c: Likewise.
12839         * tree-sra.c: Likewise.
12840         * tree-ssa.c: Likewise.
12841         * tree-ssa-coalesce.c: Likewise.
12842         * tree-ssa-dce.c: Likewise.
12843         * tree-ssa-dom.c: Likewise.
12844         * tree-ssa-forwprop.c: Likewise.
12845         * tree-ssa-ifcombine.c: Likewise.
12846         * tree-ssa-loop-ch.c: Likewise.
12847         * tree-ssa-loop-im.c: Likewise.
12848         * tree-ssa-loop-ivcanon.c: Likewise.
12849         * tree-ssa-loop-ivopts.c: Likewise.
12850         * tree-ssa-loop-manip.c: Likewise.
12851         * tree-ssa-loop-prefetch.c: Likewise.
12852         * tree-ssa-loop-unswitch.c: Likewise.
12853         * tree-ssa-math-opts.c: Likewise.
12854         * tree-ssa-phiopt.c: Likewise.
12855         * tree-ssa-pre.c: Likewise.
12856         * tree-ssa-reassoc.c: Likewise.
12857         * tree-ssa-sink.c: Likewise.
12858         * tree-ssa-tail-merge.c: Likewise.
12859         * tree-ssa-threadedge.c: Likewise.
12860         * tree-ssa-threadupdate.c: Likewise.
12861         * tree-switch-conversion.c: Likewise.
12862         * tree-tailcall.c: Likewise.
12863         * tree-vect-data-refs.c: Likewise.
12864         * tree-vect-loop.c: Likewise.
12865         * tree-vect-loop-manip.c: Likewise.
12866         * tree-vectorizer.c: Likewise.
12867         * tree-vrp.c: Likewise.
12868         * ubsan.c: Likewise.
12869         * value-prof.c: Likewise.
12870         * varasm.c: Likewise.
12871         * var-tracking.c: Likewise.
12872         * config/aarch64/aarch64-builtins.c: Likewise.
12873         * config/aarch64/aarch64.c: Likewise.
12874         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12875         * config/alpha/alpha.c: Likewise.
12876         * config/arc/arc.c: Likewise.
12877         * config/arm/arm.c: Likewise.
12878         * config/avr/avr.c: Likewise.
12879         * config/bfin/bfin.c: Likewise.
12880         * config/c6x/c6x.c: Likewise.
12881         * config/cr16/cr16.c: Likewise.
12882         * config/cris/cris.c: Likewise.
12883         * config/darwin.c: Likewise.
12884         * config/darwin-c.c: Likewise.
12885         * config/epiphany/epiphany.c: Likewise.
12886         * config/epiphany/mode-switch-use.c: Likewise.
12887         * config/epiphany/resolve-sw-modes.c: Likewise.
12888         * config/fr30/fr30.c: Likewise.
12889         * config/frv/frv.c: Likewise.
12890         * config/ft32/ft32.c: Likewise.
12891         * config/h8300/h8300.c: Likewise.
12892         * config/i386/i386.c: Likewise.
12893         * config/i386/winnt.c: Likewise.
12894         * config/ia64/ia64.c: Likewise.
12895         * config/iq2000/iq2000.c: Likewise.
12896         * config/lm32/lm32.c: Likewise.
12897         * config/m32c/m32c.c: Likewise.
12898         * config/m32r/m32r.c: Likewise.
12899         * config/m68k/m68k.c: Likewise.
12900         * config/mcore/mcore.c: Likewise.
12901         * config/mep/mep.c: Likewise.
12902         * config/microblaze/microblaze.c: Likewise.
12903         * config/mips/mips.c: Likewise.
12904         * config/mmix/mmix.c: Likewise.
12905         * config/mn10300/mn10300.c: Likewise.
12906         * config/moxie/moxie.c: Likewise.
12907         * config/msp430/msp430.c: Likewise.
12908         * config/nds32/nds32.c: Likewise.
12909         * config/nds32/nds32-cost.c: Likewise.
12910         * config/nds32/nds32-fp-as-gp.c: Likewise.
12911         * config/nds32/nds32-intrinsic.c: Likewise.
12912         * config/nds32/nds32-isr.c: Likewise.
12913         * config/nds32/nds32-md-auxiliary.c: Likewise.
12914         * config/nds32/nds32-memory-manipulation.c: Likewise.
12915         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12916         * config/nds32/nds32-predicates.c: Likewise.
12917         * config/nios2/nios2.c: Likewise.
12918         * config/nvptx/nvptx.c: Likewise.
12919         * config/pa/pa.c: Likewise.
12920         * config/pdp11/pdp11.c: Likewise.
12921         * config/rl78/rl78.c: Likewise.
12922         * config/rs6000/rs6000.c: Likewise.
12923         * config/rx/rx.c: Likewise.
12924         * config/s390/s390.c: Likewise.
12925         * config/sh/sh.c: Likewise.
12926         * config/sh/sh-mem.cc: Likewise.
12927         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12928         * config/sh/sh_treg_combine.cc: Likewise.
12929         * config/sparc/sparc.c: Likewise.
12930         * config/spu/spu.c: Likewise.
12931         * config/stormy16/stormy16.c: Likewise.
12932         * config/tilegx/tilegx.c: Likewise.
12933         * config/tilepro/tilepro.c: Likewise.
12934         * config/v850/v850.c: Likewise.
12935         * config/vax/vax.c: Likewise.
12936         * config/visium/visium.c: Likewise.
12937         * config/xtensa/xtensa.c: Likewise.
12938
12939 2015-07-10  Richard Biener  <rguenther@suse.de>
12940
12941         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12942         (decision_tree::gen_gimple): Likewise.
12943         (decision_tree::gen_generic): Likewise.
12944
12945 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12946
12947         PR target/66813
12948         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12949         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12950
12951 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
12952
12953         PR middle-end/66820
12954         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12955         or ORT_TASK contexts.
12956         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12957         is non-zero.
12958
12959 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12960
12961         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12962         above function.
12963
12964 2015-07-10  Tom de Vries  <tom@codesourcery.com>
12965
12966         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12967         insert nit + 1 bound.
12968
12969 2015-07-10  Richard Biener  <rguenther@suse.de>
12970
12971         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12972         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12973         (if_convertible_loop_p_1): For this always compute bb predicates.
12974         (if_convertible_loop_p): And free them.
12975
12976 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12977
12978         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12979         in dump message.
12980
12981 2015-07-10  Richard Biener  <rguenther@suse.de>
12982
12983         PR tree-optimization/66823
12984         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12985         inverted predicate.
12986
12987 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
12988
12989         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12990         to handle mips[32|64]r3 and mips[32|64]r5.
12991
12992 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
12993
12994         PR middle-end/66633
12995         * tree-nested.c (get_static_chain): Or in a flag into
12996         info->static_chain_added.
12997         (get_frame_field, get_nonlocal_debug_decl): Likewise.
12998         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12999         2015-07-01 changes.
13000         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13001         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13002         add it to clauses.
13003
13004         PR tree-optimization/66718
13005         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13006         field.
13007         (vect_simd_lane_linear): New function.
13008         (vectorizable_simd_clone_call): Support using linear arguments for
13009         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13010
13011 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13012
13013         PR target/66821
13014         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13015
13016 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13017
13018         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13019         Use machine mode, not enum machine_mode in the prototype.
13020
13021         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13022         classify 128-bit floating point support.
13023         (FLOAT128_IBM_P): Likewise.
13024         (FLOAT128_VECTOR_P): Likewise.
13025         (FLOAT128_2REG_P): Likewise.
13026         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13027         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13028         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13029         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13030
13031         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13032         tests against TFmode/TDmode, since those modes do not use VSX
13033         addresses.
13034         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13035         support.
13036         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13037         tests against TFmode, etc.
13038         (invalid_e500_subreg): Add tests against IFmode/KFmode.
13039         (reg_offset_addressing_ok_p): Likewise.
13040         (rs6000_legitimate_offset_address_p): Likewise.
13041         (rs6000_legitimize_address): Likewise.
13042         (rs6000_legitimize_reload_address): Likewise.
13043         (rs6000_legitimate_address_p): Clean up tests against TFmode and
13044         TDmode to use the new helper macros, which will include IFmode and
13045         KFmode.
13046         (rs6000_emit_move): Likewise.
13047         (rs6000_darwin64_record_arg_recurse): Likewise.
13048         (print_operand): Likewise.
13049         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13050         that uses a single vector register as a vector and not as a
13051         floating point register in terms of the calling sequence.
13052         (rs6000_discover_homogeneous_aggregate): Likewise.
13053         (rs6000_return_in_memory): Likewise.
13054         (init_cumulative_args): Likewise.
13055         (rs6000_function_arg_boundary): Likewise.
13056         (rs6000_function_arg_advance_1): Likewise.
13057         (rs6000_function_arg): Likewise.
13058         (rs6000_pass_by_reference): Likewise.
13059         (rs6000_gimplify_va_arg): Likewise.
13060         (rs6000_secondary_reload_memory): Use machine_mode not enum
13061         machine mode.
13062         (rs6000_split_multireg_move): Use new helper macros.
13063         (spe_func_has_64bit_regs_p): Likewise.
13064         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13065         (output_toc): Use new helper macros.
13066         (rs6000_register_move_cost): Likewise.
13067         (rs6000_function_value): Add IEEE 128-bit floating point calling
13068         sequence support.
13069         (rs6000_libcall_value): Likewise.
13070         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13071         floating point support.
13072         (rs6000_vector_mode_supported_p): Likewise.
13073
13074 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
13075
13076         PR rtl-optimization/66782
13077         * lra-int.h (struct lra_insn_recog_data): Add comment about
13078         clobbered hard regs for arg_hard_regs.
13079         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13080         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13081         Add condition for processing used hard regs.
13082         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13083         Process clobbered hard regs.
13084
13085 2015-07-09  Michael Matz  <matz@suse.de>
13086
13087         * genmatch.c (fprintf_indent): New function.
13088         (operand::gen_transform): Add indent parameter.
13089         (expr::gen_transform, c_expr::gen_transform,
13090         capture::gen_transform): Ditto and use fprintf_indent.
13091         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13092         (dt_operand::gen, dt_operand::gen_predicate,
13093         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13094         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13095         (decision_tree::gen_gimple): Adjust calls and indent generated
13096         code.
13097         (decision_tree::gen_generic): Ditto.
13098         (write_predicate): Ditto.
13099
13100 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13101
13102         PR target/66814
13103         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13104         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13105         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13106         {GENERAL,SSE,MMX}_REG_P where appropriate.
13107
13108 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13109
13110         * lto-streamer.h: Don't include target.h and alloc-pool.h.
13111         * builtins.c: Adjust includes.
13112         * gimple.c: Likewise.
13113         * ipa-icf.c: Likewise.
13114         * lto-opts.c: Likewise.
13115         * ipa-reference.c: Likewise.
13116         * lto-section-out.c: Likewise.
13117         * lto-streamer-in.c: Likewise.
13118         * lto-streamer-out.c: Likewise.
13119         * opts-global.c: Likewise.
13120         * symtab.c: Likewise.
13121         * tree-chkp.c: Likewise.
13122         * tree-ssa-live.c: Likewise.
13123         * tree-streamer-in.c: Likewise.
13124         * tree-streamer-out.c: Likewise.
13125         * config/darwin.c: Likewise.
13126         * config/i386/winnt.c: Likewise.
13127
13128 2015-07-09  Richard Biener  <rguenther@suse.de>
13129
13130         * genmatch.c (struct expr): Add force_single_use flag.
13131         (expr::expr): Add copy constructor.
13132         (capture_info::walk_match): Gather force_single_use captures.
13133         (expr::gen_transform): Use possibly NULLified sequence.
13134         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13135         seq if any constrained expr is not single-use.
13136         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13137         's' flag to force an expression have a single-use if the pattern
13138         simplifies to more than one statement.
13139         * match.pd: Convert most single_use conditionals to :s flags.
13140
13141 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13142
13143         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13144         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13145         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13146
13147 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13148
13149         * flags.h: Don't include flag-types.h or options.h.
13150         * opts-common.c: Adjust includes.
13151         * opts-global.c: Likewise.
13152         * common/config/epiphany/epiphany-common.c: Likewise.
13153
13154 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13155
13156         PR target/66818
13157         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13158         for IA MCU.
13159
13160 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13161
13162         PR target/66817
13163         * config/i386/i386.c (ix86_return_in_memory): Return true
13164         if int_size_in_bytes returns negative for IA MCU.
13165
13166 2015-07-09  Marek Polacek  <polacek@redhat.com>
13167
13168         PR tree-optimization/66718
13169         * Makefile.in (OBJS): Add gimple-laddress.o.
13170         * passes.def: Schedule pass_laddress.
13171         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13172         * tree-pass.h (make_pass_laddress): Declare.
13173         * gimple-laddress.c: New file.
13174
13175 2015-07-09  Richard Biener  <rguenther@suse.de>
13176
13177         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13178
13179 2015-07-09  Richard Biener  <rguenther@suse.de>
13180
13181         PR tree-optimization/66807
13182         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13183
13184 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13185
13186         * function.c (stack_protect_epilogue): Use if rather than switch for
13187         check targetm.have_stack_protect_test.
13188
13189 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13190
13191         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13192         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13193         * config/arc/arc.h: Likewise.
13194         * config/arm/arm.h: Likewise.
13195         * config/bfin/bfin.h: Likewise.
13196         * config/epiphany/epiphany.h: Likewise.
13197         * config/frv/frv.h: Likewise.
13198         * config/ia64/ia64.h: Likewise.
13199         * config/iq2000/iq2000.h: Likewise.
13200         * config/lm32/lm32.h: Likewise.
13201         * config/m32r/m32r.h: Likewise.
13202         * config/mcore/mcore.h: Likewise.
13203         * config/mep/mep.h: Likewise.
13204         * config/microblaze/microblaze.h: Likewise.
13205         * config/mips/mips.h: Likewise.
13206         * config/mmix/mmix.h: Likewise.
13207         * config/mn10300/mn10300.h: Likewise.
13208         * config/nds32/nds32.h: Likewise.
13209         * config/nios2/nios2.h: Likewise.
13210         * config/pa/pa.h: Likewise.
13211         * config/rl78/rl78.h: Likewise.
13212         * config/sh/sh.h: Likewise.
13213         * config/sparc/sparc.h: Likewise.
13214         * config/stormy16/stormy16.h: Likewise.
13215         * config/tilegx/tilegx.h: Likewise.
13216         * config/tilepro/tilepro.h: Likewise.
13217         * config/v850/v850.h: Likewise.
13218         * config/xtensa/xtensa.h: Likewise.
13219         * doc/tm.texi: Regenerate.
13220         * doc/tm.texi.in: Adjust.
13221         * combine.c (simplify_set): Likewise.
13222         (simplify_comparison): Likewise.
13223         * expr.c (store_constructor): Likewise.
13224         * internal-fn.c (expand_arith_overflow): Likewise.
13225         * reload.c (push_reload): Likewise.
13226         (find_reloads): Likewise.
13227         (find_reloads_subreg_address): Likewise.
13228         * reload1.c (eliminate_regs_1): Likewise.
13229         * rtlanal.c (nonzero_bits1): Likewise.
13230         (num_sign_bit_copies1): Likewise.
13231         * simplify-rtx.c (simplify_truncation): Likewise.
13232
13233 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13234
13235         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13236         of AUTO_INC_DEC with the preprocessor.
13237         * combine.c (combine_instructions): Likewise.
13238         (can_combine_p): Likewise.
13239         (try_combine): Likewise.
13240         * emit-rtl.c (try_split): Likewise.
13241         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13242         * lower-subreg.c (resolve_simple_move): Likewise.
13243         * lra.c (update_inc_notes): Likewise.
13244         * recog.c (asm_operand_ok): Likewise.
13245         (constrain_operands): Likewise.
13246         * regrename.c (scan_rtx_address): Likewise.
13247         * reload.c (update_auto_inc_notes): Likewise.
13248         (reg_inc_found_and_valid_p): Likewise.
13249         * reload1.c (reload): Likewise.
13250         (emit_input_reload_insns): Likewise.
13251         (delete_output_reload): Likewise.
13252         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13253         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13254
13255 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13256
13257         * rtl.h: Always define AUTO_INC_DEC.
13258         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13259         * combine.c (combine_instructions): Likewise.
13260         (can_combine_p): Likewise.
13261         (try_combine): Likewise.
13262         * emit-rtl.c (try_split): Likewise.
13263         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13264         * lower-subreg.c (resolve_simple_move): Likewise.
13265         * lra.c (update_inc_notes): Likewise.
13266         * recog.c (asm_operand_ok): Likewise.
13267         (constrain_operands): Likewise.
13268         * regrename.c (scan_rtx_address): Likewise.
13269         * reload.c (update_auto_inc_notes): Likewise.
13270         (find_equiv_reg): Likewise.
13271         * reload1.c (reload): Likewise.
13272         (reload_as_needed): Likewise.
13273         (choose_reload_regs): Likewise.
13274         (emit_input_reload_insns): Likewise.
13275         (delete_output_reload): Likewise.
13276         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13277         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13278
13279 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13280
13281         * combine.c (can_combine_def_p): Don't check the value of
13282         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13283         (combinable_i3pat): Likewise.
13284         (mark_used_regs_combine): Likewise.
13285         * regrename.c (rename_chains): Likewise.
13286         * reload.c (find_reloads_address): Likewise.
13287         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13288
13289 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13290
13291         * combine.c (update_rsp_from_reg_equal): Don't check if
13292         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13293         (reg_nonzero_bits_for_combine): Likewise.
13294         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13295         1.
13296         * config/frv/frv.h: Likewise.
13297         * config/lm32/lm32.h: Likewise.
13298         * config/mep/mep.h: Likewise.
13299         * config/mips/mips.h: Likewise.
13300         * config/rs6000/rs6000.h: Likewise.
13301         * config/sh/sh.h: Likewise.
13302         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13303         * config/tilepro/tilepro.h: Likewise.
13304         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13305         * doc/tm.texi: Regenerate.
13306         * doc/tm.texi.in: Adjust.
13307         * rtlanal.c (nonzero_bits1): Likewise.
13308
13309 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13310
13311         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13312         with the preprocessor.
13313         (combine_instructions): Likewise.
13314         (try_combine): Likewise.
13315         (subst): Likewise.
13316         (distribute_notes): Likewise.
13317
13318 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13319
13320         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13321         defined.
13322         (simplify_set): Likewise.
13323         * cse.c (cse_insn): Likewise.
13324         * fold-const.c (fold_single_bit_test): Likewise.
13325         (fold_unary_loc): Likewise.
13326         * postreload.c (reload_cse_simplify_set): Likewise.
13327         (reload_cse_simplify_operands): Likewise.
13328
13329 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13330
13331         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13332         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13333
13334 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13335
13336         PR target/66746
13337         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13338         __iamcu__ is defined.
13339
13340 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13341
13342         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13343
13344 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13345
13346         PR target/66523
13347         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13348         names from preservation.
13349
13350 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13351
13352         PR target/66806
13353         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13354         change for IAMCU.
13355         (function_arg_advance_32): Don't pass vectors in registers for
13356         IAMCU.
13357         (function_arg_32): Likewise.
13358         (ix86_return_in_memory): Don't return vectors in registers for
13359         IAMCU.
13360
13361 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13362
13363         PR middle-end/66334
13364         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13365         hard regno live at the start of BB with incoming abnormal edges.
13366         * lra-lives.c (process_bb_lives): Ditto.
13367
13368 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13369
13370         PR libgomp/65099
13371         * config/nvptx/mkoffload.c (main): Create an offload image only in
13372         64-bit configurations.
13373
13374 2015-07-08  Martin Liska  <mliska@suse.cz>
13375
13376         PR bootstrap/66744
13377         * tree-sra.c (create_access_1): Call ctor without brackets.
13378         (create_artificial_child_access): Likewise.
13379
13380 2015-07-08  Richard Biener  <rguenther@suse.de>
13381
13382         PR tree-optimization/66793
13383         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13384         Properly split the block after stmts ending it.
13385
13386 2015-07-08  Richard Biener  <rguenther@suse.de>
13387
13388         PR tree-optimization/66794
13389         * passes.c (execute_function_todo): Assert that post-dominators
13390         are not computed.
13391         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13392         Free post-dominators.
13393
13394 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13395
13396         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13397         with early exit.
13398
13399 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13400
13401         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13402         more than or equal 8 and less than 32 when optimizing for size.
13403
13404 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13405
13406         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13407         COSTS_N_INSNS (1) and increment it appropriately throughout the
13408         function.
13409
13410 2015-07-08  Richard Biener  <rguenther@suse.de>
13411
13412         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13413
13414 2015-07-08  Alan Modra  <amodra@gmail.com>
13415
13416         * target.def (rtx_costs): Remove "code" param, add "mode".
13417         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13418         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13419         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13420         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13421         call.  Track mode when given in rtx.
13422         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13423         (default_address_cost): Pass Pmode to rtx_cost.
13424         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13425         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13426         with NULL set.
13427         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13428         (notreg_cost): Add mode param.  Use it.
13429         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13430         mode param and pass to set_src_cost.  Update all calls.
13431         (hash_scan_set): Formatting.
13432         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13433         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13434         * hooks.h: Ditto.
13435         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13436         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13437         emit_store_flag): Update set_src_cost and rtx_cost calls.
13438         * auto-inc-dec.c (attempt_change): Likewise.
13439         * calls.c (precompute_register_parameters): Likewise.
13440         * combine.c (expand_compound_operation, make_extraction,
13441         force_to_mode, distribute_and_simplify_rtx): Likewise.
13442         * dojump.c (prefer_and_bit_test): Likewise.
13443         * dse.c (find_shift_sequence): Likewise.
13444         * expr.c (compress_float_constant): Likewise.
13445         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13446         * ifcvt.c (noce_try_sign_mask): Likewise.
13447         * loop-doloop.c (doloop_optimize): Likewise.
13448         * loop-invariant.c (create_new_invariant): Likewise.
13449         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13450         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13451         lshift_cheap_p): Likewise.
13452         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13453         try_replace_in_use, reload_cse_move2add): Likewise.
13454         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13455         Likewise.
13456         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13457         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13458         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13459         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13460         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13461         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13462         to rtx_cost calls.
13463         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13464         * config/arc/arc.c (arc_rtx_costs): Likewise.
13465         * config/arm/arm.c (arm_rtx_costs): Likewise.
13466         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13467         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13468         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13469         * config/cris/cris.c (cris_rtx_costs): Likewise.
13470         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13471         * config/frv/frv.c (frv_rtx_costs): Likewise.
13472         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13473         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13474         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13475         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13476         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13477         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13478         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13479         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13480         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13481         * config/mep/mep.c (mep_rtx_cost): Likewise.
13482         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13483         * config/mips/mips.c (mips_rtx_costs): Likewise.
13484         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13485         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13486         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13487         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13488         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13489         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13490         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13491         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13492         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13493         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13494         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13495         * config/s390/s390.c (s390_rtx_costs): Likewise.
13496         * config/sh/sh.c (sh_rtx_costs): Likewise.
13497         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13498         * config/spu/spu.c (spu_rtx_costs): Likewise.
13499         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13500         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13501         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13502         * config/v850/v850.c (v850_rtx_costs): Likewise.
13503         * config/vax/vax.c (vax_rtx_costs): Likewise.
13504         * config/visium/visium.c (visium_rtx_costs): Likewise.
13505         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13506         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13507         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13508         mode to rtx_cost calls.
13509         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13510         calls.
13511         (aarch64_rtx_costs_wrapper): Update.
13512         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13513         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13514         rtx_cost calls.
13515         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13516         and rtx_cost calls.
13517         (avr_operand_rtx_cost): Similarly.
13518         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13519         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13520         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13521         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13522         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13523         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13524         rtx_cost.
13525         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13526         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13527         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13528         * doc/tm.texi: Regenerate.
13529
13530 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13531
13532         * tree-core.h: Include symtab.h.
13533         * rtl.h: Include hard-reg-set.h but not flags.h.
13534         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13535         hard-reg-set.h is always included.
13536         * regs.h: Don't include hard-reg-set.h or rtl.h.
13537         * cfg.h: Include dominance.h.
13538         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13539         * backend.h: New.  Aggregate commonly used backend header files.
13540         * gimple-ssa.h: Don't include tree-hasher.h.
13541         * ssa.h: New.  Aggregate commonly used SSA header files.
13542         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13543         * sel-sched-ir.h: Flatten includes.
13544         * lra-int.h: Flatten completely.
13545         * sel-sched-dump.h: Flatten includes.
13546         * ira-int.h: Flatten includes.
13547         * gimple-streamer.h: Remove all includes.
13548         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13549         * resource.h: Flatten hard-reg-set.h and df.h.
13550         * sched-int.h: Flatten insn-arrt.h and df.h.
13551         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13552         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13553         * genattrtab.c (write_header): Adjust generated includes.
13554         * genautomata.c (main): Likewise.
13555         * genconditions.c (write-header): Likewise.
13556         * genemit.c (main): Likewise.
13557         * gengtype.c (open_base_files): Likewise.
13558         * genopinit.c (main): Likewise.
13559         * genoutput.c (output_prologue): Likewise.
13560         * genpeep.c (main): Likewise.
13561         * genpreds.c (write_insn_preds_c): Likewise.
13562         * genrecog.c (write_header): Likewise.
13563         * alias.c: Adjust includes.
13564         * asan.c: Likewise.
13565         * attribs.c: Likewise.
13566         * auto-inc-dec.c: Likewise.
13567         * auto-profile.c: Likewise.
13568         * bb-reorder.c: Likewise.
13569         * bt-load.c: Likewise.
13570         * builtins.c: Likewise.
13571         * caller-save.c: Likewise.
13572         * calls.c: Likewise.
13573         * ccmp.c: Likewise.
13574         * cfg.c: Likewise.
13575         * cfganal.c: Likewise.
13576         * cfgbuild.c: Likewise.
13577         * cfgcleanup.c: Likewise.
13578         * cfgexpand.c: Likewise.
13579         * cfghooks.c: Likewise.
13580         * cfgloop.c: Likewise.
13581         * cfgloopanal.c: Likewise.
13582         * cfgloopmanip.c: Likewise.
13583         * cfgrtl.c: Likewise.
13584         * cgraph.c: Likewise.
13585         * cgraphbuild.c: Likewise.
13586         * cgraphclones.c: Likewise.
13587         * cgraphunit.c: Likewise.
13588         * cilk-common.c: Likewise.
13589         * combine-stack-adj.c: Likewise.
13590         * combine.c: Likewise.
13591         * compare-elim.c: Likewise.
13592         * convert.c: Likewise.
13593         * coverage.c: Likewise.
13594         * cppbuiltin.c: Likewise.
13595         * cprop.c: Likewise.
13596         * cse.c: Likewise.
13597         * cselib.c: Likewise.
13598         * data-streamer-in.c: Likewise.
13599         * data-streamer-out.c: Likewise.
13600         * data-streamer.c: Likewise.
13601         * dbxout.c: Likewise.
13602         * dce.c: Likewise.
13603         * ddg.c: Likewise.
13604         * debug.c: Likewise.
13605         * df-core.c: Likewise.
13606         * df-problems.c: Likewise.
13607         * df-scan.c: Likewise.
13608         * dfp.c: Likewise.
13609         * dojump.c: Likewise.
13610         * dominance.c: Likewise.
13611         * domwalk.c: Likewise.
13612         * double-int.c: Likewise.
13613         * dse.c: Likewise.
13614         * dumpfile.c: Likewise.
13615         * dwarf2asm.c: Likewise.
13616         * dwarf2cfi.c: Likewise.
13617         * dwarf2out.c: Likewise.
13618         * emit-rtl.c: Likewise.
13619         * et-forest.c: Likewise.
13620         * except.c: Likewise.
13621         * explow.c: Likewise.
13622         * expmed.c: Likewise.
13623         * expr.c: Likewise.
13624         * final.c: Likewise.
13625         * fixed-value.c: Likewise.
13626         * fold-const.c: Likewise.
13627         * function.c: Likewise.
13628         * fwprop.c: Likewise.
13629         * gcc-plugin.h: Likewise.
13630         * gcse-common.c: Likewise.
13631         * gcse.c: Likewise.
13632         * generic-match-head.c: Likewise.
13633         * ggc-page.c: Likewise.
13634         * gimple-builder.c: Likewise.
13635         * gimple-expr.c: Likewise.
13636         * gimple-fold.c: Likewise.
13637         * gimple-iterator.c: Likewise.
13638         * gimple-low.c: Likewise.
13639         * gimple-match-head.c: Likewise.
13640         * gimple-pretty-print.c: Likewise.
13641         * gimple-ssa-isolate-paths.c: Likewise.
13642         * gimple-ssa-strength-reduction.c: Likewise.
13643         * gimple-streamer-in.c: Likewise.
13644         * gimple-streamer-out.c: Likewise.
13645         * gimple-walk.c: Likewise.
13646         * gimple.c: Likewise.
13647         * gimplify-me.c: Likewise.
13648         * gimplify.c: Likewise.
13649         * godump.c: Likewise.
13650         * graph.c: Likewise.
13651         * graphite-blocking.c: Likewise.
13652         * graphite-dependences.c: Likewise.
13653         * graphite-interchange.c: Likewise.
13654         * graphite-isl-ast-to-gimple.c: Likewise.
13655         * graphite-optimize-isl.c: Likewise.
13656         * graphite-poly.c: Likewise.
13657         * graphite-scop-detection.c: Likewise.
13658         * graphite-sese-to-poly.c: Likewise.
13659         * graphite.c: Likewise.
13660         * haifa-sched.c: Likewise.
13661         * hw-doloop.c: Likewise.
13662         * ifcvt.c: Likewise.
13663         * init-regs.c: Likewise.
13664         * internal-fn.c: Likewise.
13665         * ipa-chkp.c: Likewise.
13666         * ipa-comdats.c: Likewise.
13667         * ipa-cp.c: Likewise.
13668         * ipa-devirt.c: Likewise.
13669         * ipa-icf-gimple.c: Likewise.
13670         * ipa-icf.c: Likewise.
13671         * ipa-inline-analysis.c: Likewise.
13672         * ipa-inline-transform.c: Likewise.
13673         * ipa-inline.c: Likewise.
13674         * ipa-polymorphic-call.c: Likewise.
13675         * ipa-profile.c: Likewise.
13676         * ipa-prop.c: Likewise.
13677         * ipa-pure-const.c: Likewise.
13678         * ipa-ref.c: Likewise.
13679         * ipa-reference.c: Likewise.
13680         * ipa-split.c: Likewise.
13681         * ipa-utils.c: Likewise.
13682         * ipa-visibility.c: Likewise.
13683         * ipa.c: Likewise.
13684         * ira-build.c: Likewise.
13685         * ira-color.c: Likewise.
13686         * ira-conflicts.c: Likewise.
13687         * ira-costs.c: Likewise.
13688         * ira-emit.c: Likewise.
13689         * ira-lives.c: Likewise.
13690         * ira.c: Likewise.
13691         * jump.c: Likewise.
13692         * langhooks.c: Likewise.
13693         * lcm.c: Likewise.
13694         * loop-doloop.c: Likewise.
13695         * loop-init.c: Likewise.
13696         * loop-invariant.c: Likewise.
13697         * loop-iv.c: Likewise.
13698         * loop-unroll.c: Likewise.
13699         * lower-subreg.c: Likewise.
13700         * lra-assigns.c: Likewise.
13701         * lra-coalesce.c: Likewise.
13702         * lra-constraints.c: Likewise.
13703         * lra-eliminations.c: Likewise.
13704         * lra-lives.c: Likewise.
13705         * lra-remat.c: Likewise.
13706         * lra-spills.c: Likewise.
13707         * lra.c: Likewise.
13708         * lto-cgraph.c: Likewise.
13709         * lto-compress.c: Likewise.
13710         * lto-opts.c: Likewise.
13711         * lto-section-in.c: Likewise.
13712         * lto-section-out.c: Likewise.
13713         * lto-streamer-in.c: Likewise.
13714         * lto-streamer-out.c: Likewise.
13715         * lto-streamer.c: Likewise.
13716         * mcf.c: Likewise.
13717         * mode-switching.c: Likewise.
13718         * modulo-sched.c: Likewise.
13719         * omega.c: Likewise.
13720         * omp-low.c: Likewise.
13721         * optabs.c: Likewise.
13722         * opts-global.c: Likewise.
13723         * passes.c: Likewise.
13724         * plugin.c: Likewise.
13725         * postreload-gcse.c: Likewise.
13726         * postreload.c: Likewise.
13727         * predict.c: Likewise.
13728         * print-rtl.c: Likewise.
13729         * print-tree.c: Likewise.
13730         * profile.c: Likewise.
13731         * real.c: Likewise.
13732         * realmpfr.c: Likewise.
13733         * recog.c: Likewise.
13734         * ree.c: Likewise.
13735         * reg-stack.c: Likewise.
13736         * regcprop.c: Likewise.
13737         * reginfo.c: Likewise.
13738         * regrename.c: Likewise.
13739         * regstat.c: Likewise.
13740         * reload.c: Likewise.
13741         * reload1.c: Likewise.
13742         * reorg.c: Likewise.
13743         * resource.c: Likewise.
13744         * rtl-chkp.c: Likewise.
13745         * rtlanal.c: Likewise.
13746         * rtlhooks.c: Likewise.
13747         * sanopt.c: Likewise.
13748         * sched-deps.c: Likewise.
13749         * sched-ebb.c: Likewise.
13750         * sched-rgn.c: Likewise.
13751         * sched-vis.c: Likewise.
13752         * sdbout.c: Likewise.
13753         * sel-sched-dump.c: Likewise.
13754         * sel-sched-ir.c: Likewise.
13755         * sel-sched.c: Likewise.
13756         * sese.c: Likewise.
13757         * shrink-wrap.c: Likewise.
13758         * simplify-rtx.c: Likewise.
13759         * stack-ptr-mod.c: Likewise.
13760         * stmt.c: Likewise.
13761         * stor-layout.c: Likewise.
13762         * store-motion.c: Likewise.
13763         * stringpool.c: Likewise.
13764         * symtab.c: Likewise.
13765         * target-globals.c: Likewise.
13766         * targhooks.c: Likewise.
13767         * toplev.c: Likewise.
13768         * tracer.c: Likewise.
13769         * trans-mem.c: Likewise.
13770         * tree-affine.c: Likewise.
13771         * tree-browser.c: Likewise.
13772         * tree-call-cdce.c: Likewise.
13773         * tree-cfg.c: Likewise.
13774         * tree-cfgcleanup.c: Likewise.
13775         * tree-chkp-opt.c: Likewise.
13776         * tree-chkp.c: Likewise.
13777         * tree-chrec.c: Likewise.
13778         * tree-complex.c: Likewise.
13779         * tree-data-ref.c: Likewise.
13780         * tree-dfa.c: Likewise.
13781         * tree-diagnostic.c: Likewise.
13782         * tree-dump.c: Likewise.
13783         * tree-eh.c: Likewise.
13784         * tree-emutls.c: Likewise.
13785         * tree-if-conv.c: Likewise.
13786         * tree-inline.c: Likewise.
13787         * tree-into-ssa.c: Likewise.
13788         * tree-iterator.c: Likewise.
13789         * tree-loop-distribution.c: Likewise.
13790         * tree-nested.c: Likewise.
13791         * tree-nrv.c: Likewise.
13792         * tree-object-size.c: Likewise.
13793         * tree-outof-ssa.c: Likewise.
13794         * tree-parloops.c: Likewise.
13795         * tree-phinodes.c: Likewise.
13796         * tree-predcom.c: Likewise.
13797         * tree-pretty-print.c: Likewise.
13798         * tree-profile.c: Likewise.
13799         * tree-scalar-evolution.c: Likewise.
13800         * tree-sra.c: Likewise.
13801         * tree-ssa-address.c: Likewise.
13802         * tree-ssa-alias.c: Likewise.
13803         * tree-ssa-ccp.c: Likewise.
13804         * tree-ssa-coalesce.c: Likewise.
13805         * tree-ssa-copy.c: Likewise.
13806         * tree-ssa-copyrename.c: Likewise.
13807         * tree-ssa-dce.c: Likewise.
13808         * tree-ssa-dom.c: Likewise.
13809         * tree-ssa-dse.c: Likewise.
13810         * tree-ssa-forwprop.c: Likewise.
13811         * tree-ssa-ifcombine.c: Likewise.
13812         * tree-ssa-live.c: Likewise.
13813         * tree-ssa-loop-ch.c: Likewise.
13814         * tree-ssa-loop-im.c: Likewise.
13815         * tree-ssa-loop-ivcanon.c: Likewise.
13816         * tree-ssa-loop-ivopts.c: Likewise.
13817         * tree-ssa-loop-manip.c: Likewise.
13818         * tree-ssa-loop-niter.c: Likewise.
13819         * tree-ssa-loop-prefetch.c: Likewise.
13820         * tree-ssa-loop-unswitch.c: Likewise.
13821         * tree-ssa-loop.c: Likewise.
13822         * tree-ssa-math-opts.c: Likewise.
13823         * tree-ssa-operands.c: Likewise.
13824         * tree-ssa-phiopt.c: Likewise.
13825         * tree-ssa-phiprop.c: Likewise.
13826         * tree-ssa-pre.c: Likewise.
13827         * tree-ssa-propagate.c: Likewise.
13828         * tree-ssa-reassoc.c: Likewise.
13829         * tree-ssa-sccvn.c: Likewise.
13830         * tree-ssa-scopedtables.c: Likewise.
13831         * tree-ssa-sink.c: Likewise.
13832         * tree-ssa-strlen.c: Likewise.
13833         * tree-ssa-structalias.c: Likewise.
13834         * tree-ssa-tail-merge.c: Likewise.
13835         * tree-ssa-ter.c: Likewise.
13836         * tree-ssa-threadedge.c: Likewise.
13837         * tree-ssa-threadupdate.c: Likewise.
13838         * tree-ssa-uncprop.c: Likewise.
13839         * tree-ssa-uninit.c: Likewise.
13840         * tree-ssa.c: Likewise.
13841         * tree-ssanames.c: Likewise.
13842         * tree-stdarg.c: Likewise.
13843         * tree-streamer-in.c: Likewise.
13844         * tree-streamer-out.c: Likewise.
13845         * tree-streamer.c: Likewise.
13846         * tree-switch-conversion.c: Likewise.
13847         * tree-tailcall.c: Likewise.
13848         * tree-vect-data-refs.c: Likewise.
13849         * tree-vect-generic.c: Likewise.
13850         * tree-vect-loop-manip.c: Likewise.
13851         * tree-vect-loop.c: Likewise.
13852         * tree-vect-patterns.c: Likewise.
13853         * tree-vect-slp.c: Likewise.
13854         * tree-vect-stmts.c: Likewise.
13855         * tree-vectorizer.c: Likewise.
13856         * tree-vrp.c: Likewise.
13857         * tree.c: Likewise.
13858         * tsan.c: Likewise.
13859         * ubsan.c: Likewise.
13860         * valtrack.c: Likewise.
13861         * value-prof.c: Likewise.
13862         * var-tracking.c: Likewise.
13863         * varasm.c: Likewise.
13864         * varpool.c: Likewise.
13865         * vmsdbgout.c: Likewise.
13866         * vtable-verify.c: Likewise.
13867         * web.c: Likewise.
13868         * wide-int.cc: Likewise.
13869         * xcoffout.c: Likewise.
13870         * config/aarch64/aarch64-builtins.c: Likewise.
13871         * config/aarch64/aarch64.c: Likewise.
13872         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13873         * config/alpha/alpha.c: Likewise.
13874         * config/arc/arc.c: Likewise.
13875         * config/arm/aarch-common.c: Likewise.
13876         * config/arm/arm-builtins.c: Likewise.
13877         * config/arm/arm-c.c: Likewise.
13878         * config/arm/arm.c: Likewise.
13879         * config/avr/avr-c.c: Likewise.
13880         * config/avr/avr-log.c: Likewise.
13881         * config/avr/avr.c: Likewise.
13882         * config/bfin/bfin.c: Likewise.
13883         * config/c6x/c6x.c: Likewise.
13884         * config/cr16/cr16.c: Likewise.
13885         * config/cris/cris.c: Likewise.
13886         * config/darwin-c.c: Likewise.
13887         * config/darwin.c: Likewise.
13888         * config/epiphany/epiphany.c: Likewise.
13889         * config/epiphany/mode-switch-use.c: Likewise.
13890         * config/epiphany/resolve-sw-modes.c: Likewise.
13891         * config/fr30/fr30.c: Likewise.
13892         * config/frv/frv.c: Likewise.
13893         * config/ft32/ft32.c: Likewise.
13894         * config/h8300/h8300.c: Likewise.
13895         * config/i386/i386-c.c: Likewise.
13896         * config/i386/i386.c: Likewise.
13897         * config/i386/msformat-c.c: Likewise.
13898         * config/i386/winnt-cxx.c: Likewise.
13899         * config/i386/winnt-stubs.c: Likewise.
13900         * config/i386/winnt.c: Likewise.
13901         * config/ia64/ia64-c.c: Likewise.
13902         * config/ia64/ia64.c: Likewise.
13903         * config/iq2000/iq2000.c: Likewise.
13904         * config/lm32/lm32.c: Likewise.
13905         * config/m32c/m32c-pragma.c: Likewise.
13906         * config/m32c/m32c.c: Likewise.
13907         * config/m32r/m32r.c: Likewise.
13908         * config/m68k/m68k.c: Likewise.
13909         * config/mcore/mcore.c: Likewise.
13910         * config/mep/mep-pragma.c: Likewise.
13911         * config/mep/mep.c: Likewise.
13912         * config/microblaze/microblaze-c.c: Likewise.
13913         * config/microblaze/microblaze.c: Likewise.
13914         * config/mips/mips.c: Likewise.
13915         * config/mmix/mmix.c: Likewise.
13916         * config/mn10300/mn10300.c: Likewise.
13917         * config/moxie/moxie.c: Likewise.
13918         * config/msp430/msp430-c.c: Likewise.
13919         * config/msp430/msp430.c: Likewise.
13920         * config/nds32/nds32-cost.c: Likewise.
13921         * config/nds32/nds32-fp-as-gp.c: Likewise.
13922         * config/nds32/nds32-intrinsic.c: Likewise.
13923         * config/nds32/nds32-isr.c: Likewise.
13924         * config/nds32/nds32-md-auxiliary.c: Likewise.
13925         * config/nds32/nds32-memory-manipulation.c: Likewise.
13926         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13927         * config/nds32/nds32-predicates.c: Likewise.
13928         * config/nds32/nds32.c: Likewise.
13929         * config/nios2/nios2.c: Likewise.
13930         * config/nvptx/nvptx.c: Likewise.
13931         * config/pa/pa.c: Likewise.
13932         * config/pdp11/pdp11.c: Likewise.
13933         * config/rl78/rl78-c.c: Likewise.
13934         * config/rl78/rl78.c: Likewise.
13935         * config/rs6000/rs6000-c.c: Likewise.
13936         * config/rs6000/rs6000.c: Likewise.
13937         * config/rx/rx.c: Likewise.
13938         * config/s390/s390-c.c: Likewise.
13939         * config/s390/s390.c: Likewise.
13940         * config/sh/sh-c.c: Likewise.
13941         * config/sh/sh-mem.cc: Likewise.
13942         * config/sh/sh.c: Likewise.
13943         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13944         * config/sh/sh_treg_combine.cc: Likewise.
13945         * config/sol2-c.c: Likewise.
13946         * config/sol2-cxx.c: Likewise.
13947         * config/sol2-stubs.c: Likewise.
13948         * config/sol2.c: Likewise.
13949         * config/sparc/sparc-c.c: Likewise.
13950         * config/sparc/sparc.c: Likewise.
13951         * config/spu/spu-c.c: Likewise.
13952         * config/spu/spu.c: Likewise.
13953         * config/stormy16/stormy16.c: Likewise.
13954         * config/tilegx/mul-tables.c: Likewise.
13955         * config/tilegx/tilegx-c.c: Likewise.
13956         * config/tilegx/tilegx.c: Likewise.
13957         * config/tilepro/mul-tables.c: Likewise.
13958         * config/tilepro/tilepro-c.c: Likewise.
13959         * config/tilepro/tilepro.c: Likewise.
13960         * config/v850/v850-c.c: Likewise.
13961         * config/v850/v850.c: Likewise.
13962         * config/vax/vax.c: Likewise.
13963         * config/visium/visium.c: Likewise.
13964         * config/vms/vms-c.c: Likewise.
13965         * config/vms/vms.c: Likewise.
13966         * config/vxworks.c: Likewise.
13967         * config/xtensa/xtensa.c: Likewise.
13968
13969 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
13970
13971         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13972         Remove operand constraints.  Change operand 2 predicate to
13973         nonmemory operand.  Limit const_int values to mode bitsize.  Only
13974         allow const_int values less than 32 when optimizing for size.
13975         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13976         Remove operand constraints.
13977         (*bt<mode>): Use SImode for const_int values less than 32.
13978         (regmode): Remove mode attribute.
13979
13980 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
13981
13982         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13983         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13984           moxie_legitimate_address_p): New functions.
13985           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13986
13987 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13988
13989         PR tree-optimization/66642
13990         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13991         header comment.  Rename split_edge variable to edge_at_split.  Split
13992         exit edge to create new loop exit bb.  Insert loop exit phis in new
13993         loop exit bb.
13994
13995 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13996
13997         * tree-cfg.c (get_virtual_phi): New function.
13998         * tree-cfg.h (get_virtual_phi): Declare.
13999         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14000         (rewrite_virtuals_into_loop_closed_ssa): New function.
14001         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14002         Declare.
14003         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14004         (transform_to_exit_first_loop_alt): Use
14005         rewrite_virtuals_into_loop_closed_ssa.
14006
14007 2015-07-07  Richard Biener  <rguenther@suse.de>
14008
14009         * fold-const.c (fold_binary_loc): Move
14010         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14011         * match.pd: ... here.
14012         Add (X * C1) % C2 -> 0 simplification pattern derived from
14013         extract_muldiv_1.
14014
14015 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
14016
14017         PR target/66780
14018         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14019         change for target/65249.
14020
14021 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
14022
14023         * symtab.c (address_matters_1): Fix typo in comment above.
14024         (can_increase_alignment_p): Likewise.
14025
14026 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14027
14028         * function.c (free_after_compilation): Clear PROP_cfg in
14029         f->curr_properties.
14030
14031 2015-07-07  Richard Biener  <rguenther@suse.de>
14032
14033         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14034         add which use to.
14035         (add_control_edge): Remove excessive vertical space in dumping.
14036         (process_ssa_edge_worklist): Simulate at most one statement and
14037         return whether we did.  Do not simulate PHIs if they are in a
14038         BB not yet simulated.
14039         (ssa_propagate): Adjust to always drain the BB worklist whenever
14040         a BB is available there, likewise the VARYING edges list before
14041         the interesting edge list.
14042
14043 2015-07-07  Christian Bruel  <christian.bruel@st.com>
14044
14045         PR target/52144
14046         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14047
14048 2015-07-07  Richard Biener  <rguenther@suse.de>
14049
14050         PR middle-end/66739
14051         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14052         A - B.
14053
14054 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14055
14056         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
14057         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
14058         Copy operand 0 to a temporary if !ext_register_operand.  Remove
14059         ancient extract_bit_field workaround.
14060         (insv<mode>_1): Rename from mov<mode>_insv_1.
14061         (*insvqi): Rename from *movqi_insv_2.
14062         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14063         for renamed insvsi_1.
14064         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14065
14066 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14067
14068         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
14069         call to nvptx_reorg_subreg.
14070
14071 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
14072
14073         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14074         * graphite-dependencies.c, graphite-interchange.c,
14075         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14076         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14077         Likewise.
14078
14079 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
14080
14081         * match.pd: Remove element_mode inside HONOR_*.
14082         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14083         (~X | X -> -1, ~X ^ X -> -1): Merge.
14084         * tree.c (build_each_one_cst): New function.
14085         * tree.h (build_each_one_cst): Likewise.
14086
14087 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14088
14089         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14090         PROCESSOR_IAMCU.
14091
14092 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
14093
14094         * config.gcc <mips*-*-*>: Add fused-madd.opt.
14095         * config/mips/mips.opt (mfused-madd): Remove.
14096         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14097         * config/mips/mips.h (TARGET_MIPS8000): New.
14098         (ISA_HAS_FP_MADD4_MSUB4): Remove.
14099         (ISA_HAS_FP_MADDF_MSUBF): Remove.
14100         (ISA_HAS_FP_MADD3_MSUB3): Remove.
14101         (ISA_HAS_NMADD4_NMSUB4): Remove.
14102         (ISA_HAS_NMADD3_NMSUB3): Remove.
14103         (ISA_HAS_FUSED_MADD4): New.
14104         (ISA_HAS_UNFUSED_MADD4): New.
14105         (ISA_HAS_FUSED_MADDF): New.
14106         (ISA_HAS_FUSED_MADD3): New.
14107         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14108         (*fma<mode>4_madd3) New.
14109         (*fma<mode>4_madd4) New.
14110         (*fma<mode>4_maddf) New.
14111         (fms<mode>4) New.
14112         (*fms<mode>4_msub3) New.
14113         (*fms<mode>4_msub4) New.
14114         (fnma<mode>4) New.
14115         (*fnma<mode>4_nmadd3) New.
14116         (*fnma<mode>4_nmadd4) New.
14117         (fnms<mode>4) New.
14118         (*fnms<mode>4_nmsub3) New.
14119         (*fnms<mode>4_nmsub4) New.
14120         (*madd4<mode>) Modify to be unfused only.
14121         (*msub4<mode>) Modify to be unfused only.
14122         (*nmadd4<mode>) Modify to be unfused only.
14123         (*nmsub4<mode>) Modify to be unfused only.
14124         (*madd3<mode>) Remove.
14125         (*msub3<mode>) Remove.
14126         (*nmadd3<mode>) Remove.
14127         (*nmsub3<mode>) Remove.
14128         (*nmadd3<mode>_fastmath) Remove.
14129         (*nmsub3<mode>_fastmath) Remove.
14130         (*nmadd4<mode>_fastmath) Update condition.
14131         (*nmsub4<mode>_fastmath) Update condition.
14132
14133 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14134
14135         PR target/65956
14136         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14137         alignment attribute, exploring one level down for records and arrays.
14138
14139 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14140
14141         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14142         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14143         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14144         ancient extract_bit_field workaround.
14145         (*extv<mode>): Rename from *mov<mode>_extv_1.
14146         (*extvqi): Rename from *movqi_extv_1.
14147         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14148         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14149         to a temporary if !ext_register_operand.  Remove ancient
14150         extract_bit_field workaround.
14151         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14152         (*extzvqi): Rename from *movqi_extzv_2.
14153         (*testqi_ext_3): Remove modes from const_int_operand predicated
14154         operands.  Add "n" constraint.
14155         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14156         operand.  Add "J" constraint.
14157         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14158         const_0_to_63 predicated operand.
14159         (regmode): New insn attribute.
14160         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14161         to nonmemory_operand.  Use regmode insn attribute.
14162         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14163         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14164         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14165         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14166         operands.  Use "N" constraint instead of "n".
14167
14168 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14169
14170         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14171
14172 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14173
14174         PR target/66749
14175         * config/i386/i386.c (iamcu_cost): New.
14176         (m_IAMCU): Likewise.
14177         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14178         (processor_target_table): Add an entry for "iamcu".
14179         (processor_alias_table): Likewise.
14180         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14181         (ix86_adjust_cost): Likewise.
14182         (ia32_multipass_dfa_lookahead): Likewise.
14183         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14184         * config/i386/x86-tune.def: Updated for m_IAMCU.
14185
14186 2015-07-06  Richard Biener  <rguenther@suse.de>
14187
14188         PR tree-optimization/66772
14189         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14190         values are available in the PHI node BB when there are
14191         still unexecutable edges.
14192
14193 2015-07-06  Richard Biener  <rguenther@suse.de>
14194
14195         PR tree-optimization/66767
14196         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14197         Make sure to build the alignment test on a SSA name without
14198         final alignment info valid only if the alignment test
14199         evaluates to true.
14200
14201 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14202
14203         PR target/66620
14204         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14205         loop start when inserting LSETUP.
14206
14207 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14208
14209         PR target/53383
14210         * config/i386/i386.c (ix86_option_override_internal): Allow
14211         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14212
14213 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215         * read-md.c (decimal_string): Rename to ...
14216         (md_decimal_string): ... this.
14217         (handle_enum): Reflect this.
14218
14219 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14220
14221         PR target/66731
14222         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14223
14224 2015-07-06  Richard Biener  <rguenther@suse.de>
14225
14226         PR middle-end/66759
14227         * match.pd: Add missing constraint of y to REAL_CST in
14228         REAL_CST - x CMP y to y - CST CMP x simplification.
14229
14230 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14231
14232         PR tree-optimization/66757
14233         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14234
14235 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14236             Sandra Loosemore <sandra@codesourcery.com>
14237
14238         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14239         Delete extern declaration.
14240         (gprel_constant_p): Add extern declaration.
14241         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14242         instead of nios2_symbol_ref_in_small_data_p.
14243         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14244         (nios2_symbol_ref_in_small_data_p): Make static.
14245         (gprel_constant_p): Make non-static.
14246
14247 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14248
14249         * doc/fragments.texi (Target Fragment): Convert debian.org
14250         link to use https.
14251         * doc/install.texi (Configuration): Ditto.
14252
14253 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14254
14255         PR tree-optimization/66718
14256         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14257         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14258
14259         PR tree-optimization/66718
14260         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14261         vectorizable_load, vectorizable_condition): Move vectype,
14262         nunits, ncopies computation after checking what kind of statement
14263         stmt is.
14264
14265 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14266
14267         * target-insns.def (extv, extzv, insv): New targetm instruction
14268         patterns.
14269         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14270         interface.
14271         * recog.c (simplify_while_replacing): Likewise.
14272
14273 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14274
14275         * target-insns.def (doloop_begin, doloop_end): New targetm
14276         instruction patterns.
14277         * loop-init.c: Include target.h.
14278         (pass_loop2::gate): Use the new targetm patterns instead of
14279         HAVE_*/gen_* interface.
14280         (pass_rtl_doloop::gate): Likewise.
14281         (pass_rtl_doloop::execute): Remove preprocessor condition.
14282         * hw-doloop.c: Build unconditionally.
14283         * loop-doloop.c: Likewise.
14284         (doloop_optimize): Use the new targetm patterns instead of
14285         HAVE_*/gen_* interface.
14286         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14287         * modulo-sched.c (doloop_register_get): Likewise.
14288
14289 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14290
14291         * target-insns.def (clear_cache): New targetm instruction pattern.
14292         * builtins.c (expand_builtin___clear_cache): Use it instead of
14293         HAVE_*/gen_* interface.
14294
14295 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14296
14297         * target-insns.def (allocate_stack, check_stack, probe_stack)
14298         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14299         New targetm instruction patterns.
14300         * explow.c (allocate_dynamic_stack_space): Use them instead of
14301         HAVE_*/gen_* interface.
14302         (emit_stack_probe): Likewise.
14303         (probe_stack_range): Likewise.
14304         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14305
14306 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14307
14308         * target-insns.def (stack_protect_set, stack_protect_test): New
14309         targetm instruction patterns.
14310         * cfgexpand.c (stack_protect_prologue): Use them instead of
14311         HAVE_*/gen_* interface.
14312         * function.c (stack_protect_epilogue): Likewise.
14313
14314 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14315
14316         * expr.h (gen_move_insn_uncast): Delete.
14317         * expr.c (gen_move_insn_uncast): Delete.
14318
14319 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14320
14321         * target-insns.def (restore_stack_block, restore_stack_function)
14322         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14323         (save_stack_nonlocal): New targetm instruction patterns.
14324         * builtins.c (expand_builtin_apply): Use them instead of
14325         HAVE_*/gen_* interface.
14326         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14327
14328 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14329
14330         * target-insns.def (trap): New targetm instruction pattern.
14331         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14332         interface.
14333         * explow.c (allocate_dynamic_stack_space): Likewise.
14334         * ifcvt.c (find_if_header): Likewise.
14335
14336 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14337
14338         * target-insns.def (prefetch): New targetm instruction pattern.
14339         * tree-ssa-loop-prefetch.c: Include targeth.
14340         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14341         of HAVE_*/gen_* interface.
14342         * builtins.c (expand_builtin_prefetch): Likewise.
14343         * toplev.c (process_options): Likewise.
14344
14345 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14346
14347         * target-insns.def (untyped_call, untyped_return): New targetm
14348         instruction patterns.
14349         * builtins.c (expand_builtin_apply): Use them instead of
14350         HAVE_*/gen_* interface.
14351         (result_vector): Define unconditionally.
14352
14353 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14354
14355         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14356         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14357         (nonlocal_goto_receiver): New targetm instruction patterns.
14358         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14359         of HAVE_*/gen_* interface.
14360         (expand_builtin_setjmp_receiver): Likewise.
14361         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14362         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14363
14364 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14365
14366         * target.def: Add code_for_* hooks.
14367         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14368         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14369         * target-insns.def (casesi, tablejump): New targetm instruction
14370         patterns.
14371         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14372         (do_tablejump): Likewise.
14373         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14374         (expand_sjlj_dispatch_table): Likewise.
14375         * targhooks.c (default_case_values_threshold): Likewise.
14376
14377 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14378
14379         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14380         Use rtx_insn * instead of rtx.
14381         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14382         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14383         (nios2_call_tls_get_addr): Likewise.
14384         (nios2_emit_expensive_div): Likewise.
14385         (nios2_emit_move_sequence): Change return type to bool.
14386         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14387         Change return type to bool.
14388
14389 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14390
14391         PR target/66747
14392         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14393
14394 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14395
14396         PR target/66114
14397         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14398         of register_operand.  Remove constraint.
14399
14400 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14401
14402         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14403         the first argument.
14404
14405 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14406
14407         * attribs.c (decl_attributes): Guard inform with the return value
14408         of the preceding warning.
14409
14410 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14411
14412         * doc/invoke.texi (moverride): Move to correct section.
14413
14414 2015-07-03  Richard Biener  <rguenther@suse.de>
14415
14416         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14417         Copy from tree.c
14418         (dt_operand::gen_gimple_expr): After valueizing operands
14419         re-canonicalize operand order for commutative tree codes.
14420
14421 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14422
14423         PR target/66746.
14424         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14425         is defined.
14426         (__crc32w): Likewise.
14427         (__crc32d): Likewise.
14428         (__rdpmc): Likewise.
14429         (__rdtscp): Likewise.
14430         (_rdpmc): Likewise.
14431         (_rdtscp): Likewise.
14432         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14433         is defined.
14434
14435 2015-07-03  Richard Biener  <rguenther@suse.de>
14436
14437         * fold-const.c (fold_mathfn_compare): Remove.
14438         (fold_inf_compare): Likewise.
14439         (fold_comparison): Move floating point comparison simplifications...
14440         * match.pd: ... to patterns here.  Introduce simple_comparisons
14441         operator list and use it for patterns formerly in fold_comparison.
14442
14443 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14444
14445         PR tree-optimization/66119
14446         * toplev.c (process_options): Don't set up default values for
14447         the sra_max_scalarization_size_{speed,size} parameters.
14448         * tree-sra (analyze_all_variable_accesses): If no values
14449         have been set for the sra_max_scalarization_size_{speed,size}
14450         parameters, call get_move_ratio to get target defaults.
14451
14452 2015-07-03  Richard Biener  <rguenther@suse.de>
14453
14454         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14455         * match.pd: ... here.
14456
14457 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14458
14459         PR target/37072
14460         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14461         is not actually the default on FreeBSD.
14462
14463 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14464
14465         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14466         definition.
14467         (CMPGE_8HI): Likewise.
14468         (CMPGE_4SI): Likewise.
14469         (CMPGE_2DI): Likewise.
14470         (CMPGE_U16QI): Likewise.
14471         (CMPGE_U8HI): Likewise.
14472         (CMPGE_U4SI): Likewise.
14473         (CMPGE_U2DI): Likewise.
14474         (CMPLE_16QI): Likewise.
14475         (CMPLE_8HI): Likewise.
14476         (CMPLE_4SI): Likewise.
14477         (CMPLE_2DI): Likewise.
14478         (CMPLE_U16QI): Likewise.
14479         (CMPLE_U8HI): Likewise.
14480         (CMPLE_U4SI): Likewise.
14481         (CMPLE_U2DI): Likewise.
14482         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14483         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14484         ALTIVEC_BUILTIN_VEC_CMPLE.
14485         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14486         floating-point vector modes.
14487         (vector_nlt<mode>): New define_expand.
14488         (vector_nltu<mode>): Likewise.
14489         (vector_ngt<mode>): Likewise.
14490         (vector_ngtu<mode>): Likewise.
14491
14492 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14493
14494         PR rtl-optimization/66706
14495         * combine.c (make_compound_operation): If an AND of SUBREG of
14496         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14497
14498 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14499
14500         * tree-pass.h (make_pass_ch_vect): New.
14501         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14502
14503         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14504         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14505         make_pass_ch_vect): New.
14506         (pass_ch): Extend ch_base.
14507
14508         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14509         (ch_base::copy_headers): ...here.
14510
14511 2015-07-02  Richard Biener  <rguenther@suse.de>
14512
14513         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14514         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14515         (fold_binary_loc): Implement (T)ptr & CST in terms of
14516         get_pointer_alignment_1.
14517         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14518         Make sure to build the alignment test on a SSA name without
14519         final alignment info valid only after the prologue.
14520
14521 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14522
14523         * config/cris/cris.md ("epilogue"): Remove condition.
14524         ("prologue"): Ditto.
14525
14526 2015-07-02  Richard Biener  <rguenther@suse.de>
14527
14528         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14529         parameter to record a condition that is false.
14530         (record_conditions): When recording an extra NE_EXPR that is
14531         true also record a EQ_EXPR that is false.
14532
14533 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14534
14535         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14536         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14537         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14538         (set_iv, find_interesting_uses_address, add_candidate_1): New
14539         argument to alloc_iv.
14540         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14541         duplicate struct iv.
14542         (free_loop_data): Don't free struct iv explicitly.
14543         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14544
14545 2015-07-01  DJ Delorie  <dj@redhat.com>
14546
14547         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14548         (LIB_SPEC): Add.
14549         (SUPPORTS_DISCRIMINATOR): Define.
14550
14551 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14552
14553         PR bootstrap/66685
14554         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14555         there are no CALLs in the same pattern.
14556
14557 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14558
14559         PR rtl-optimization/61047
14560         * rtlanal.c (get_initial_register_offset): New function.
14561         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14562
14563 2015-07-01  Richard Biener  <rguenther@suse.de>
14564
14565         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14566         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14567         ~X CMP C -> X CMP' ~C to ...
14568         * match.pd: ... patterns here.
14569
14570 2015-07-01  Nick Clifton  <nickc@redhat.com>
14571
14572         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14573         a 16-bit value into a 20-bit memory slot.
14574
14575 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14576
14577         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14578         "aarch64_tiny", "aarch64_small", "aarch64_large",
14579         "aarch64_little_endian", "aarch64_big_endian".
14580
14581 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14582
14583         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14584         Document "aarch64_small_fpic".
14585
14586 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14587
14588         * configure.ac: Add check for aarch64 assembler -fpic relocation
14589         modifier support.
14590         * configure: Regenerate.
14591         * config.in: Regenerate.
14592         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14593         to -fPIC if not support of -fpic relocation modifier in assembler.
14594
14595 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14596
14597         PR bootstrap/66685
14598         * rtl.c (classify_insn): Handle returns in PARALLELs.
14599
14600 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14601
14602         PR middle-end/66633
14603         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14604         to true if the function is nested and if not optimizing.
14605         (convert_local_omp_clauses): Initialize need_frame to true if the
14606         function contains nested functions and if not optimizing.
14607
14608 2015-07-01  Richard Biener  <rguenther@suse.de>
14609
14610         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14611         (X & Y) ^ Y -> ~X & Y transforms to ...
14612         * match.pd: ... here.
14613
14614 2015-07-01  Richard Biener <rguenther@suse.de>
14615
14616         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14617         of converts to avoid uninteresting noise from the conversion
14618         simplifying patterns.
14619
14620 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14621
14622         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14623         gcc_assert evaluating its argument for side-effect.
14624
14625 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14626
14627         PR target/64833
14628         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14629         flag_pic is set.
14630
14631 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14632
14633         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14634         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14635         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14636         to the inner DFS walk.
14637
14638 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14639
14640         * target-insns.def (jump): New targetm instruction pattern.
14641         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14642         instead of gen_jump.
14643         (fix_up_crossing_landing_pad): Likewise.
14644         (add_labels_and_missing_jumps): Likewise.
14645         (fix_crossing_conditional_branches): Likewise.
14646         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14647         (force_nonfallthru_and_redirect): Likewise.
14648         * cse.c (cse_insn): Likewise.
14649         * expmed.c (expand_divmod): Likewise.
14650         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14651         * haifa-sched.c (init_before_recovery): Likewise.
14652         (sched_create_recovery_edges): Likewise.
14653         * ifcvt.c (find_cond_trap): Likewise.
14654         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14655         (expand_float, expand_fix): Likewise.
14656         * stmt.c (emit_jump): Likewise.
14657
14658 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14659
14660         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14661         (HAVE_store_multiple, gen_store_multiple): Delete.
14662         * target-insns.def (load_multiple, store_multiple): New targetm
14663         instruction patterns.
14664         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14665         of HAVE_*/gen_* interface.
14666
14667 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14668
14669         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14670         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14671         (gen_mem_signal_fence): Delete.
14672         * target-insns.def (mem_signal_fence, mem_thread_fence)
14673         (memory_barrier): New targetm instruction patterns.
14674         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14675         interface.
14676         (expand_mem_signal_fence): Likewise.
14677
14678 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14679
14680         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14681         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14682         targetm instruction patterns.
14683         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14684         interface.
14685         * calls.c (expand_call): Likewise.
14686         * cfgrtl.c (cfg_layout_finalize): Likewise.
14687         * df-scan.c (df_get_entry_block_def_set): Likewise.
14688         (df_get_exit_block_use_set): Likewise.
14689         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14690         * final.c (final_start_function): Likewise.
14691         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14692         (reposition_prologue_and_epilogue_notes): Likewise.
14693         * reorg.c (find_end_label): Likewise.
14694         * toplev.c (process_options): Likewise.
14695
14696 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14697
14698         * typed-splay-tree.h: New file.
14699
14700 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14701
14702         PR debug/66691
14703         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14704         (lra_substitute_pseudo_within_insn): Ditto.
14705         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14706         of constant.
14707         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14708         to lra_substitute_pseudo.
14709         * lra-lives.c (process_bb_lives): Add an argument to
14710         lra_substitute_pseudo_within_insn call.
14711         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14712         argument to lra_substitute_pseudo and
14713         lra_substitute_pseudo_within_insn calls.
14714         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14715
14716 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14717
14718         * configure: Regenerated.
14719
14720 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14721
14722         * config.gcc: Support i[34567]86-*-elfiamcu target.
14723         * config/i386/iamcu.h: New.
14724         * config/i386/i386.opt: Add -miamcu.
14725         * doc/invoke.texi: Document -miamcu.
14726         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14727         off x87/MMX/SSE/AVX codegen for -miamcu.
14728         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14729         __iamcu/__iamcu__ for -miamcu.
14730         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14731         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14732         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14733         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14734         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14735         MCU by default.  Default long double to 64-bit for Intel MCU.
14736         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14737         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14738         AVX is turned on.
14739         (function_arg_advance_32): Pass value whose size is no larger
14740         than 8 bytes in registers for Intel MCU.
14741         (function_arg_32): Likewise.
14742         (ix86_return_in_memory): Return value whose size is no larger
14743         than 8 bytes in registers for Intel MCU.
14744         (iamcu_alignment): New function.
14745         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14746         true.
14747         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14748         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14749         true.
14750
14751 2015-06-30  Marek Polacek  <polacek@redhat.com>
14752
14753         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14754         both operands of the resulting expression.
14755
14756         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14757         the final expression with the operand's type and then convert
14758         it to the type of the expression.
14759
14760 2015-06-30  Richard Biener  <rguenther@suse.de>
14761
14762         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14763         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14764         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14765         * match.pd: ... to patterns here.
14766
14767 2015-06-30  Richard Biener  <rguenther@suse.de>
14768
14769         PR tree-optimization/66704
14770         * tree-vect-data-refs.c (vect_setup_realignment): Use
14771         make_ssa_name for non-SSA name source.
14772
14773 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14774
14775         PR middle-end/66702
14776         * omp-low.c (simd_clone_adjust): Handle addressable linear
14777         or uniform parameters or non-gimple type uniform parameters.
14778
14779 2015-06-30  Richard Biener  <rguenther@suse.de>
14780
14781         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14782         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14783         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14784         * match.pd: ... here.
14785         Add a few cases of A - B -> A + (-B) when B "easily" negates.
14786         Move (x & y) | x -> x and friends before
14787         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14788
14789 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14790
14791         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14792         -mfix-ut699 is not specified.
14793         (leon3_load): Rename into...
14794         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
14795         is specified.
14796
14797 2015-06-30  Marek Polacek  <polacek@redhat.com>
14798
14799         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14800         * match.pd: ... here.
14801
14802 2015-06-30  Richard Biener  <rguenther@suse.de>
14803
14804         * target-insns.def (canonicalize_funcptr_for_compare): Add.
14805         * fold-const.c (build_range_check): Replace uses of
14806         HAVE_canonicalize_funcptr_for_compare.
14807         (fold_widened_comparison): Likewise.
14808         (fold_sign_changed_comparison): Likewise.
14809         * dojump.c: Include "target.h".
14810         (do_compare_and_jump): Replace uses of
14811         HAVE_canonicalize_funcptr_for_compare and
14812         gen_canonicalize_funcptr_for_compare.
14813         * expr.c (do_store_flag): Likewise.
14814
14815 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14816
14817         PR tree-optimization/66652
14818         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14819         max_loop_iterations to determine if nit + 1 overflows.
14820
14821 2015-06-30  Richard Biener  <rguenther@suse.de>
14822
14823         * tree-vrp.c (register_edge_assert_for_2): Also register
14824         asserts for dominating conversion results.
14825
14826 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
14827
14828         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14829         field in struct iv.
14830
14831 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
14832
14833         PR target/66509
14834         * configure.ac: Fix filds and fildq test for 64-bit.
14835         * configure: Regenerated.
14836
14837 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
14838
14839         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14840         (nvptx_reorg): Here.  Keep the non-subreg pieces.
14841
14842 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14843
14844         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14845         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14846
14847 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
14848
14849         * config/i386/i386.md (*jcc_1): Use %! in asm template.
14850         Set attribute "length_nobnd" instead of "length".
14851         (*jcc_2): Ditto.
14852         (jump): Ditto.
14853         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14854
14855 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
14856
14857         * config/nios2/nios2.c (nios2_delegitimize_address): Make
14858         assert less restrictive.
14859
14860 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14861
14862         PR fortran/66605
14863         * cgraphunit.c (cgraph_node::finalize_function): Do not call
14864         do_warn_unused_parameter.
14865         * function.c (do_warn_unused_parameter): Move from here.
14866         * function.h (do_warn_unused_parameter): Do not declare.
14867
14868 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14869
14870         PR target/65697
14871         * gcc.target/arm/armv-sync-comp-swap.c: New.
14872         * gcc.target/arm/armv-sync-op-acquire.c: New.
14873         * gcc.target/arm/armv-sync-op-full.c: New.
14874         * gcc.target/arm/armv-sync-op-release.c: New.
14875
14876 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14877
14878         PR target/65697
14879         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14880         initial acquire barrier with final barrier.
14881
14882 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14883
14884         PR target/65697
14885         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14886         initial acquire barrier with final barrier.
14887
14888 2015-06-29  Richard Henderson  <rth@redhat.com>
14889
14890         * config/i386/constraints.md (Bf): New constraint.
14891         * config/i386/i386-c.c (ix86_target_macros): Define
14892         __GCC_ASM_FLAG_OUTPUTS__.
14893         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14894         as flags outputs.
14895         * doc/extend.texi (FlagOutputOperands): Document them.
14896
14897 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
14898
14899         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14900         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14901         unspec name.
14902         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14903         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14904         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14905         (aarch64_symbol_context): Ditto.
14906         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14907         and use new pattern name.
14908         (aarch64_expand_mov_immediate): Ditto.
14909         (aarch64_print_operand): Ditto.
14910         (aarch64_classify_tls_symbol): Ditto.
14911
14912 2015-06-29  Marek Polacek  <polacek@redhat.com>
14913             Marc Glisse  <marc.glisse@inria.fr>
14914
14915         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14916         * match.pd: ... pattern here.
14917
14918 2015-06-29  Tom de Vries  <tom@codesourcery.com>
14919
14920         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14921         function structure.
14922
14923 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14924
14925         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14926         feature description, split out the native option, add a link to
14927         the feature documentation, rearrange and slightly rewrite text.
14928         (Aarch64 options, -mcpu): Likewise.
14929         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
14930         +rdma implies Adv. SIMD.
14931
14932 2015-06-29  Marek Polacek  <polacek@redhat.com>
14933
14934         PR c/66322
14935         * function.c (stack_protect_epilogue): Remove a cast to int.
14936         * doc/invoke.texi: Update -Wswitch-bool description.
14937
14938 2015-06-29  Richard Biener  <rguenther@suse.de>
14939
14940         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14941         * fold-const.c (fold_binary_loc): Move &A - &B simplification
14942         via ptr_difference_const ...
14943         * match.pd: ... here.
14944         When matching (X ^ Y) == Y also match with swapped operands.
14945
14946 2015-06-29  Richard Biener  <rguenther@suse.de>
14947
14948         * lto-streamer.h (LTO_major_version): Bump to 5.
14949
14950 2015-06-29  Richard Biener  <rguenther@suse.de>
14951
14952         PR tree-optimization/66677
14953         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14954         STMT_VINFO_VEC_STMT clobbering less strict.
14955
14956 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
14957
14958         PR middle-end/64130
14959         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14960         division, compute max and min when value ranges for dividend and
14961         divisor are available.
14962
14963 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
14964             Sandra Loosemore <sandra@codesourcery.com>
14965
14966         * regrename.h (regrename_do_replace): Change to return bool.
14967         * regrename.c (rename_chains): Check return value of
14968         regname_do_replace.
14969         (regrename_do_replace): Re-validate the modified insns and
14970         return bool status.
14971         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14972         Update to match rename_chains changes.
14973         * config/c6x/c6x.c (try_rename_operands): Assert that
14974         regrename_do_replace returns true.
14975
14976 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
14977
14978         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14979         operand 2 here.  Use copy_addr_to_reg to copy non-index
14980         register operand 2 to a temporary.
14981         (<mode>_stx): Ditto for operand 1.
14982         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14983         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14984         (ix86_store_bounds): Ditto.
14985
14986 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
14987
14988         * print-tree.c (print_node) [TREE_VEC]: Print its length.
14989
14990 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
14991
14992         * gimple.c (gimple_call_set_fndecl): Remove.
14993         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14994         build1_loc directly instead of build_fold_addr_expr_loc.
14995
14996 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14997
14998         * hash-map.h (hash_map::traverse): Use the definition of the
14999         Key typedef rather than the typedef itself.
15000
15001 2015-06-26  Martin Jambor  <mjambor@suse.cz>
15002
15003         PR debug/66301
15004         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15005         NULL instead of calling dump_enabled_p.
15006
15007 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15008
15009         * config/aarch64/aarch64.opt: (override): New.
15010         * doc/invoke.texi (override): Document.
15011         * config/aarch64/aarch64.c (aarch64_flag_desc): New
15012         (aarch64_fusible_pairs): Likewise.
15013         (aarch64_tuning_flags): Likewise.
15014         (aarch64_tuning_override_function): Likewise.
15015         (aarch64_tuning_override_functions): Likewise.
15016         (aarch64_parse_one_option_token): Likewise.
15017         (aarch64_parse_boolean_options): Likewise.
15018         (aarch64_parse_fuse_string): Likewise.
15019         (aarch64_parse_tune_string): Likewise.
15020         (aarch64_parse_one_override_token): Likewise.
15021         (aarch64_parse_override_string): Likewise.
15022         (aarch64_override_options): Parse the -override string if it
15023         is present.
15024
15025 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15026
15027         * config/aarch64/aarch64-protos.h (tune_params): Remove
15028         const from members.
15029         (aarch64_tune_params): Remove const, change to no longer be
15030         a pointer.
15031         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15032         change to no longer be a pointer, initialize to generic_tunings.
15033         (aarch64_min_divisions_for_recip_mul): Change dereference of
15034         aarch64_tune_params to member access.
15035         (aarch64_reassociation_width): Likewise.
15036         (aarch64_rtx_mult_cost): Likewise.
15037         (aarch64_address_cost): Likewise.
15038         (aarch64_branch_cost): Likewise.
15039         (aarch64_rtx_costs): Likewise.
15040         (aarch64_register_move_cost): Likewise.
15041         (aarch64_memory_move_cost): Likewise.
15042         (aarch64_sched_issue_rate): Likewise.
15043         (aarch64_builtin_vectorization_cost): Likewise.
15044         (aarch64_override_options): Take a copy of the selected tuning
15045         struct in to aarch64_tune_params, rather than just setting
15046         a pointer, change dereferences of aarch64_tune_params to member
15047         accesses.
15048         (aarch64_override_options_after_change): Change dereferences of
15049         aarch64_tune_params to member access.
15050         (aarch64_macro_fusion_p): Likewise.
15051         (aarch_macro_fusion_pair_p): Likewise.
15052         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15053
15054 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15055
15056         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15057         (aarch64_tune_flags): Likewise.
15058         (AARCH64_TUNE_FMA_STEERING): Likewise.
15059         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15060         to AARCH64_FL_USE_FMA_STEERING_PASS.
15061         (cortex-a57.cortex-a53): Likewise.
15062         (cortex-a72): Use cortexa72_tunings.
15063         (cortex-a72.cortex-a53): Likewise.
15064         (exynos-m1): Likewise.
15065         * config/aarch64/aarch64-protos.h (tune_params): Add
15066         a field: extra_tuning_flags.
15067         * config/aarch64/aarch64-tuning-flags.def: New.
15068         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15069         (aarch64_extra_tuning_flags): Likewise.
15070         (aarch64_tune_params): Declare here.
15071         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15072         (cortexa53_tunings): Likewise.
15073         (cortexa57_tunings): Likewise.
15074         (thunderx_tunings): Likewise.
15075         (xgene1_tunings): Likewise.
15076         (cortexa72_tunings): New.
15077         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15078          (gate): Check against aarch64_tune_params.
15079         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15080         aarch64-protos.h.
15081
15082 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
15083
15084         * config/aarch64/aarch64-fusion-pairs.def: New.
15085         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15086         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15087         aarch64_fusion_pairs.
15088         (AARCH64_FUSE_MOV_MOVK): Likewise.
15089         (AARCH64_FUSE_ADRP_ADD): Likewise.
15090         (AARCH64_FUSE_MOVK_MOVK): Likewise.
15091         (AARCH64_FUSE_ADRP_LDR): Likewise.
15092         (AARCH64_FUSE_CMP_BRANCH): Likewise.
15093
15094 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15095
15096         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15097         SYMBOL_SMALL_GOT_28K.
15098         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15099         relocation modifiers.
15100         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15101         (ldr_got_small_28k_<mode>): New.
15102         (ldr_got_small_28k_sidi): New.
15103         * config/aarch64/iterators.md (got_modifier): New mode iterator.
15104         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15105         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15106         SYMBOL_SMALL_GOT_28K.
15107         (aarch64_rtx_costs): Add costs for new instruction sequences.
15108         (initialize_aarch64_code_model): Initialize new model.
15109         (aarch64_classify_symbol): Recognize new model and new symbol classification.
15110         (aarch64_asm_preferred_eh_data_format): Support new model.
15111         (aarch64_load_symref_appropriately): Generate new instruction
15112         sequences for -fpic.
15113         (TARGET_USE_PSEUDO_PIC_REG): New definition.
15114         (aarch64_use_pseudo_pic_reg): New function.
15115
15116 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
15117
15118         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15119         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15120         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15121         (aarch64_expand_mov_immediate): Ditto.
15122         (aarch64_print_operand): Ditto.
15123         (aarch64_classify_symbol): Ditto.
15124
15125 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15126
15127         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15128
15129 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15130
15131         PR bootstrap/66638
15132         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15133         assertion failed.  Remove assertion itself.
15134
15135 2015-06-26  Richard Biener  <rguenther@suse.de>
15136
15137         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15138         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15139         in match.pd.
15140         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15141         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15142         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15143         * match.pd: ... patterns here.
15144
15145 2015-06-26  Marek Polacek  <polacek@redhat.com>
15146
15147         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15148         (x | y) & (~x ^ y) -> x & y): New patterns.
15149
15150 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15151
15152         * rtl.h (emit): Add an optional boolean parameter to control
15153         whether barriers are emitted.
15154         * emit-rtl.c (emit): Likewise.
15155         * gensupport.c (get_emit_function): Return null rather than "emit".
15156         * genemit.c (gen_emit_seq): Handle the null return value.
15157         Don't emit barriers after the final instruction in the sequence.
15158         * gentarget-def.c (main): Don't emit barriers after the instruction.
15159
15160 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15161
15162         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15163         TARGET_UNIFIED_ASM.
15164
15165 2015-06-26  Richard Biener  <rguenther@suse.de>
15166
15167         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15168
15169 2015-06-26  Richard Biener  <rguenther@suse.de>
15170
15171         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15172         irrespective on whether the inner operation has a single use
15173         of both off are constant.
15174
15175 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15176             Segher Boessenkool  <segher@kernel.crashing.org>
15177
15178         PR target/66412
15179         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15180         before doing PUT_MODE or PUT_CODE on operands to avoid
15181         in-place RTX modification.
15182
15183 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15184
15185         * gentarget-def.c (def_target_insn): Cast return of strtol to
15186         unsigned int.
15187
15188 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15189
15190         * gimple.h (gimple_call_set_fn): Move inline function.
15191         * gimple.c (gimple_call_set_fn): Relocate here.
15192
15193 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15194
15195         PR target/65979
15196         PR target/66611
15197         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15198         the replacement insn will work.
15199
15200 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15201
15202         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15203         by default.
15204
15205 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15206
15207         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15208         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15209         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15210         (symtab_node::address_can_be_compared_p): Move function.
15211         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15212         definition here.
15213         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15214         * auto-profile.c: Likewise.
15215         * bb-reorder.c: Likewise.
15216         * builtins.c: Likewise.
15217         * calls.c: Likewise.
15218         * cfgexpand.c: Likewise.
15219         * cgraphbuild.c: Likewise.
15220         * cgraphclones.c: Likewise.
15221         * cgraphunit.c: Likewise.
15222         * combine.c: Likewise.
15223         * coverage.c: Likewise.
15224         * data-streamer-in.c: Likewise.
15225         * data-streamer-out.c: Likewise.
15226         * data-streamer.c: Likewise.
15227         * dbxout.c: Likewise.
15228         * dwarf2out.c: Likewise.
15229         * except.c: Likewise.
15230         * expr.c: Likewise.
15231         * final.c: Likewise.
15232         * fold-const.c: Likewise.
15233         * ggc-page.c: Likewise.
15234         * gimple-fold.c: Likewise.
15235         * gimple-iterator.c: Likewise.
15236         * gimple-pretty-print.c: Likewise.
15237         * gimple-streamer-in.c: Likewise.
15238         * gimple-streamer-out.c: Likewise.
15239         * gimple.c: Likewise.
15240         * gimplify.c: Likewise.
15241         * ipa-chkp.c: Likewise.
15242         * ipa-comdats.c: Likewise.
15243         * ipa-cp.c: Likewise.
15244         * ipa-devirt.c: Likewise.
15245         * ipa-icf-gimple.c: Likewise.
15246         * ipa-icf.c: Likewise.
15247         * ipa-inline-analysis.c: Likewise.
15248         * ipa-inline-transform.c: Likewise.
15249         * ipa-inline.c: Likewise.
15250         * ipa-polymorphic-call.c: Likewise.
15251         * ipa-profile.c: Likewise.
15252         * ipa-prop.c: Likewise.
15253         * ipa-pure-const.c: Likewise.
15254         * ipa-ref.c: Likewise.
15255         * ipa-reference.c: Likewise.
15256         * ipa-split.c: Likewise.
15257         * ipa-utils.c: Likewise.
15258         * ipa-visibility.c: Likewise.
15259         * ipa.c: Likewise.
15260         * langhooks.c: Likewise.
15261         * lto-cgraph.c: Likewise.
15262         * lto-compress.c: Likewise.
15263         * lto-opts.c: Likewise.
15264         * lto-section-in.c: Likewise.
15265         * lto-section-out.c: Likewise.
15266         * lto-streamer-in.c: Likewise.
15267         * lto-streamer-out.c: Likewise.
15268         * lto-streamer.c: Likewise.
15269         * omp-low.c: Likewise.
15270         * opts-global.c: Likewise.
15271         * passes.c: Likewise.
15272         * predict.c: Likewise.
15273         * print-tree.c: Likewise.
15274         * profile.c: Likewise.
15275         * ree.c: Likewise.
15276         * sanopt.c: Likewise.
15277         * stor-layout.c: Likewise.
15278         * symtab.c: Likewise.
15279         * toplev.c: Likewise.
15280         * trans-mem.c: Likewise.
15281         * tree-cfg.c: Likewise.
15282         * tree-chkp.c: Likewise.
15283         * tree-eh.c: Likewise.
15284         * tree-emutls.c: Likewise.
15285         * tree-inline.c: Likewise.
15286         * tree-nested.c: Likewise.
15287         * tree-parloops.c: Likewise.
15288         * tree-pretty-print.c: Likewise.
15289         * tree-profile.c: Likewise.
15290         * tree-sra.c: Likewise.
15291         * tree-ssa-alias.c: Likewise.
15292         * tree-ssa-live.c: Likewise.
15293         * tree-ssa-loop-ivcanon.c: Likewise.
15294         * tree-ssa-loop-ivopts.c: Likewise.
15295         * tree-ssa-pre.c: Likewise.
15296         * tree-ssa-sccvn.c: Likewise.
15297         * tree-ssa-strlen.c: Likewise.
15298         * tree-ssa-structalias.c: Likewise.
15299         * tree-streamer-in.c: Likewise.
15300         * tree-streamer-out.c: Likewise.
15301         * tree-streamer.c: Likewise.
15302         * tree-switch-conversion.c: Likewise.
15303         * tree-tailcall.c: Likewise.
15304         * tree-vect-data-refs.c: Likewise.
15305         * tree-vect-stmts.c: Likewise.
15306         * tree-vectorizer.c: Likewise.
15307         * tree.c: Likewise.
15308         * tsan.c: Likewise.
15309         * ubsan.c: Likewise.
15310         * value-prof.c: Likewise.
15311         * varasm.c: Likewise.
15312         * varpool.c: Likewise.
15313         * config/arm/arm.c: Likewise.
15314         * config/bfin/bfin.c: Likewise.
15315         * config/c6x/c6x.c: Likewise.
15316         * config/cris/cris.c: Likewise.
15317         * config/darwin-c.c: Likewise.
15318         * config/darwin.c: Likewise.
15319         * config/i386/i386.c: Likewise.
15320         * config/i386/winnt.c: Likewise.
15321         * config/microblaze/microblaze.c: Likewise.
15322         * config/mips/mips.c: Likewise.
15323         * config/rs6000/rs6000.c: Likewise.
15324         * config/rx/rx.c: Likewise.
15325         * config/s390/s390.c: Likewise.
15326         * config/tilegx/mul-tables.c: Likewise.
15327
15328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15329
15330         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15331         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15332         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15333         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15334         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15335         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15336         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15337         config/microblaze/microblaze.c, config/mips/mips.c,
15338         config/mmix/mmix.c, config/mn10300/mn10300.c,
15339         config/moxie/moxie.c, config/msp430/msp430.c,
15340         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15341         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15342         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15343         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15344         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15345         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15346         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15347         target-def.h include.
15348         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15349
15350 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15351
15352         * Makefile.in (TARGET_DEF): Add target-insns.def.
15353         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15354         (build/gentarget-def.o): New rule.
15355         (genprogrtl): Add target-def.
15356         * target-insns.def, gentarget-def.c: New files.
15357         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15358         based on the contents of target-insns.def.
15359         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15360         (HAVE_return, gen_return): Delete.
15361         * target-def.h: Include insn-target-def.h.
15362         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15363         instead of direct calls.  Rely on them to do the appropriate assertions.
15364         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15365         (convert_jumps_to_returns): Use targetm interface instead of
15366         direct calls.
15367         (thread_prologue_and_epilogue_insns): Likewise.
15368         * reorg.c (find_end_label, dbr_schedule): Likewise.
15369         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15370         * shrink-wrap.c (convert_to_simple_return): Likewise.
15371         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15372
15373 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15374
15375         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15376         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15377         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15378         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15379         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15380         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15381         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15382         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15383         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15384         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15385         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15386         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15387         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15388         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15389         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15390         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15391         includes to end.
15392
15393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15394
15395         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15396         (unbounded_int_hashmap_traits::key_type): Likewise.
15397         * hash-map.h (hash_map): Get the key type from the traits.
15398         * hash-traits.h (default_hash_traits): By default, inherit from the
15399         template parameter.
15400         * alias.c (alias_set_traits): Delete.
15401         (alias_set_entry_d::children): Use alias_set_hash as the first
15402         template parameter.
15403         (record_alias_subset): Update accordingly.
15404         * except.c (tree_hash_traits): Delete.
15405         (type_to_runtime_map): Use tree_hash as the first template parameter.
15406         (init_eh): Update accordingly.
15407         * genmatch.c (capture_id_map_hasher): Delete.
15408         (cid_map_t): Use nofree_string_hash as first template parameter.
15409         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15410         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15411         Use symbol_compare_hash as the first template parameter in
15412         subdivide_hash_map.
15413         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15414         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15415         template parameter.
15416         * passes.c (pass_registry_hasher): Delete.
15417         (name_to_pass_map): Use nofree_string_hash as the first template
15418         parameter.
15419         (register_pass_name): Update accordingly.
15420         * sanopt.c (sanopt_tree_map_traits): Delete.
15421         (sanopt_tree_triplet_map_traits): Delete.
15422         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15423         template parameter.
15424         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15425         the first template parameter.
15426         * sese.c (rename_map_hasher): Delete.
15427         (rename_map_type): Use tree_ssa_name_hash as the first template
15428         parameter.
15429         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15430         (function_summary::m_map): Use map_hash as the first template
15431         parameter.
15432         (function_summary::release): Update accordingly.
15433         * tree-if-conv.c (phi_args_hash_traits): Delete.
15434         (predicate_scalar_phi): Use tree_operand_hash as the first template
15435         parameter to phi_arg_map.
15436         * tree-inline.h (dependence_hasher): Delete.
15437         (copy_body_data::dependence_map): Use dependence_hash as the first
15438         template parameter.
15439         * tree-inline.c (remap_dependence_clique): Update accordingly.
15440         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15441         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15442         parameter.
15443         (addr_stridxptr): Update accordingly.
15444         * value-prof.c (profile_id_traits): Delete.
15445         (cgraph_node_map): Use profile_id_hash as the first template
15446         parameter.
15447         (init_node_map): Update accordingly.
15448         * config/alpha/alpha.c (string_traits): Delete.
15449         (machine_function::links): Use nofree_string_hash as the first
15450         template parameter.
15451         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15452         * config/m32c/m32c.c (pragma_traits): Delete.
15453         (pragma_htab): Use nofree_string_hash as the first template parameter.
15454         (m32c_note_pragma_address): Update accordingly.
15455         * config/mep/mep.c (pragma_traits): Delete.
15456         (pragma_htab): Use nofree_string_hash as the first template parameter.
15457         (mep_note_pragma_flag): Update accordingly.
15458         * config/mips/mips.c (mips16_flip_traits): Delete.
15459         (mflip_mips16_htab): Use nofree_string_hash as the first template
15460         parameter.
15461         (mflip_mips16_use_mips16_p): Update accordingly.
15462         (local_alias_traits): Delete.
15463         (mips16_local_aliases): Use nofree_string_hash as the first template
15464         parameter.
15465         (mips16_local_alias): Update accordingly.
15466
15467 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15468
15469         * hash-map-traits.h (default_hashmap_traits): Delete.
15470
15471 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15472
15473         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15474         (unbounded_int_hashmap_traits): Likewise.
15475         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15476
15477 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15478
15479         * ipa-icf.h (symbol_compare_hash): New class.
15480         (symbol_compare_hashmap_traits): Use it.
15481         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15482         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15483         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15484         default_hashmap_traits.
15485         * sanopt.c (sanopt_tree_triplet_hash): New class.
15486         (sanopt_tree_triplet_map_traits): Use it.
15487
15488 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15489
15490         * gengtype-parse.c (require_template_declaration): Allow '+' in
15491         template parameters.  Consolidate cases.
15492         * hash-traits.h (int_hash): New class.
15493         * alias.c (alias_set_hash): New structure.
15494         (alias_set_traits): Use it.
15495         * symbol-summary.h (function_summary::map_hash): New class.
15496         (function_summary::summary_hashmap_traits): Use it.
15497         * tree-inline.h (dependence_hash): New class.
15498         (dependence_hasher): Use it.
15499         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15500         * value-prof.c (profile_id_hash): New class.
15501         (profile_id_traits): Use it.
15502
15503 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15504
15505         * config/mips/mips.c (mips16_flip_traits): Use it.
15506         (local_alias_traits, mips16_local_aliases): Convert from a map of
15507         rtxes to a map of symbol names.
15508         (mips16_local_alias): Update accordingly.
15509
15510 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15511
15512         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15513         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15514         * passes.c (pass_registry_hasher): Likewise.
15515         * config/alpha/alpha.c (string_traits): Likewise.
15516         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15517         * config/m32c/m32c.c (pragma_traits): Likewise.
15518         * config/mep/mep.c (pragma_traits): Likewise.
15519
15520 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15521
15522         * tree-hash-traits.h (tree_hash): New class.
15523         * except.c: Include tree-hash-traits.h.
15524         (tree_hash_traits): Use tree_hash.
15525
15526 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15527
15528         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15529         * sese.c: Include tree-hash-traits.h.
15530         (rename_map_hasher): Use tree_ssa_name_hasher.
15531
15532 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15533
15534         * tree-hash-traits.h (tree_decl_hash): New class.
15535         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15536         (stridxlist_hash_traits): Use tree_decl_hash.
15537
15538 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15539
15540         * tree-hash-traits.h: New file.
15541         (tree_operand_hash): New class.
15542         * sanopt.c: Include tree-hash-traits.h.
15543         (sanopt_tree_map_traits): Use tree_operand_hash.
15544         * tree-if-conv.c: Include tree-hash-traits.h.
15545         (phi_args_hash_traits): Use tree_operand_hash.
15546         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15547         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15548
15549 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15550
15551         * hash-map-traits.h: Include hash-traits.h.
15552         (simple_hashmap_traits): New class.
15553         * mem-stats.h (hash_map): Change the default traits to
15554         simple_hashmap_traits<default_hash_traits<Key> >.
15555
15556 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15557
15558         * hash-table.h: Update comments.
15559
15560 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15561
15562         * hash-traits.h (default_hash_traits): New structure.
15563         * hash-set.h (default_hashset_traits): Delete.
15564         (hash_set): Use default_hash_traits<Key> instead of
15565         default_hashset_traits.  Delete hash_entry type and use Key directly.
15566         * ipa-devirt.c (pair_traits): Delete.
15567         (default_hash_traits <type_pair>): Override.
15568         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15569         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15570
15571 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15572
15573         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15574
15575 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15576
15577         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15578         (has_is_empty, is_empty_helper): Delete.
15579         (has_mark_deleted, mark_deleted_helper): Delete.
15580         (has_mark_empty, mark_empty_helper): Delete.
15581         (hash_table::is_deleted): Call the Descriptor unconditionally.
15582         (hash_table::is_empty): Likewise.
15583         (hash_table::mark_deleted): Likewise.
15584         (hash_table::mark_empty): Likewise.
15585
15586 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15587
15588         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15589         redundant typedefs and members.
15590         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15591         redundant typedefs.
15592         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15593         * ipa-devirt.c (odr_name_hasher): Likewise.
15594         (polymorphic_call_target_hasher): Likewise.
15595         * ira-costs.c (cost_classes_hasher): Likewise.
15596         * statistics.c (stats_counter_hasher): Likewise.
15597         * trans-mem.c (log_entry_hasher): Likewise.
15598         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15599         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15600         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15601         * var-tracking.c (variable_hasher): Likewise.
15602         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15603         Remove redundant typedefs and members.
15604
15605 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15606
15607         * hash-traits.h (ggc_cache_hasher): Rename to...
15608         (ggc_cache_remove): ...this and remove typedefs.
15609         (ggc_cache_ptr_hash): New class.
15610         * hash-table.h: Update commentary.
15611         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15612         rather than ggc_cache_hasher.
15613         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15614         (const_double_hasher, const_fixed_hasher): Likewise.
15615         * function.c (insn_cache_hasher): Likewise.
15616         * trans-mem.c (tm_wrapper_hasher): Likewise.
15617         * tree.h (tree_decl_map_cache_hasher): Likewise.
15618         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15619         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15620         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15621         * varasm.c (tm_clone_hasher): Likewise.
15622         * config/i386/i386.c (dllimport_hasher): Likewise.
15623         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15624         (tree_hasher): Likewise.
15625
15626 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15627
15628         * hash-traits.h (ggc_hasher): Rename to...
15629         (ggc_remover): ...this and remove typedefs.
15630         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15631         (ggc_ptr_hash): New class.
15632         * hash-table.h: Update comment.
15633         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15634         ggc_hasher.
15635         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15636         (tree_descriptor_hasher): Likewise.
15637         * cgraph.c (function_version_hasher): Likewise.
15638         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15639         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15640         (dw_loc_list_hasher, addr_hasher): Likewise.
15641         * function.h (used_type_hasher): Likewise.
15642         * function.c (temp_address_hasher): Likewise.
15643         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15644         * libfuncs.h (libfunc_hasher): Likewise.
15645         * lto-streamer.h (decl_state_hasher): Likewise.
15646         * optabs.c (libfunc_decl_hasher): Likewise.
15647         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15648         * varasm.c (section_hasher, object_block_hasher): Likewise.
15649         (const_rtx_desc_hasher): Likewise.
15650         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15651         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15652
15653 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15654
15655         * hash-traits.h (free_ptr_hash): New class.
15656         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15657         rather than typed_free_remove.  Remove redudant typedefs.
15658         (external_ref_hasher): Likewise.
15659         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15660         (ehspec_hasher): Likewise.
15661         * ggc-common.c (saving_hasher): Likewise.
15662         * gimplify.c (gimplify_hasher): Likewise.
15663         * haifa-sched.c (delay_i2_hasher): Likewise.
15664         * loop-invariant.c (invariant_expr_hasher): Likewise.
15665         * loop-iv.c (biv_entry_hasher): Likewise.
15666         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15667         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15668         * tree-cfg.c (locus_discrim_hasher): Likewise.
15669         * tree-eh.c (finally_tree_hasher): Likewise.
15670         * tree-into-ssa.c (var_info_hasher): Likewise.
15671         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15672         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15673         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15674         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15675         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15676         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15677         (shared_bitmap_hasher): Likewise.
15678         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15679         * tree-vectorizer.h (peel_info_hasher): Likewise.
15680         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15681         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15682
15683 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15684
15685         * hash-table.h: Update comments.
15686         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15687         (nofree_ptr_hash): New class.
15688         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15689         than typed_noop_remove.  Remove redudant typedefs.
15690         * attribs.c (attribute_hasher): Likewise.
15691         * cfg.c (bb_copy_hasher): Likewise.
15692         * cselib.c (cselib_hasher): Likewise.
15693         * dse.c (invariant_group_base_hasher): Likewise.
15694         * dwarf2cfi.c (trace_info_hasher): Likewise.
15695         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15696         (comdat_type_hasher, loc_list_hasher): Likewise.
15697         * gcse.c (pre_ldst_expr_hasher): Likewise.
15698         * genmatch.c (id_base): Likewise.
15699         * genrecog.c (test_pattern_hasher): Likewise.
15700         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15701         * haifa-sched.c (delay_i1_hasher): Likewise.
15702         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15703         * ipa-icf.h (congruence_class_group_hash): Likewise.
15704         * ipa-profile.c (histogram_hash): Likewise.
15705         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15706         * lto-streamer.h (string_slot_hasher): Likewise.
15707         * lto-streamer.c (tree_entry_hasher): Likewise.
15708         * plugin.c (event_hasher): Likewise.
15709         * postreload-gcse.c (expr_hasher): Likewise.
15710         * store-motion.c (st_expr_hasher): Likewise.
15711         * tree-sra.c (uid_decl_hasher): Likewise.
15712         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15713         (ssa_name_var_hash): Likewise.
15714         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15715         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15716         * tree-ssa-pre.c (pre_expr_d): Likewise.
15717         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15718         * vtable-verify.h (registration_hasher): Likewise.
15719         * vtable-verify.c (vtbl_map_hasher): Likewise.
15720         * config/arm/arm.c (libcall_hasher): Likewise.
15721         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15722         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15723         * config/sol2.c (comdat_entry_hasher): Likewise.
15724         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15725         (print_fold_checksum, fold_checksum_tree): Likewise.
15726         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15727         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15728         (fold_build_call_array_loc): Likewise.
15729         * tree-ssa-ccp.c (gimple_htab): Likewise.
15730         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15731         rather than pointer_type.
15732
15733 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15734
15735         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15736         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15737
15738 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15739
15740         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15741         (ggc_hasher::ggc_mx): Likewise.
15742         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15743         that duplicate ggc_hasher ones.
15744
15745 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15746
15747         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15748         (gt_cleare_cache): Check here for deleted and empty entries.
15749         Replace handle_cache_entry with a call to keep_cache_entry.
15750         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15751         (ggc_cache_hasher::keep_cache_entry): New function.
15752         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15753         (tm_wrapper_hasher::keep_cache_entry): New function.
15754         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15755         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15756         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15757         (type_cache_hasher::keep_cache_entry): New function.
15758         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15759         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15760         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15761         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15762         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15763         (tm_clone_hasher::keep_cache_entry): New function.
15764         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15765         (dllimport_hasher::keep_cache_entry): New function.
15766
15767 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15768
15769         * hash-table.h: Include hash-traits.h.
15770         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15771         (ggc_cache_hasher): Move to...
15772         * hash-traits.h: ...this new file.
15773
15774 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15775
15776         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15777         struct cl_optimization.
15778         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15779         * tree.c (make_node_stat): Allocate cl_optimization struct.
15780         (copy_node_stat): Allocate and copy cl_optimization struct.
15781
15782 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15783
15784         * function.h (struct incoming_args): Move struct.
15785         (pass_by_reference, reference_callee_copied): Remove prototypes.
15786         * emit-rtl.h (struct incoming_args): Relocate struct here.
15787         * calls.h (pass_by_reference, reference_callee_copied): Relocate
15788         prototypes here.
15789         * function.c (pass_by_reference, reference_callee_copied): Move.
15790         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15791         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15792         * ipa-chkp.c: Include calls.h.
15793
15794 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
15795
15796         * alias.h (alias_set_type): Move typedef.
15797         * coretypes.h (alias_set_type): Relocate typedef here.
15798         * rtl.h: Don't include alias.h.
15799
15800 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15801
15802         * cgraph.h (cgraph_rtl_info): Move to rtl.h
15803         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15804         and instance.
15805         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15806         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15807         doesn't exist.
15808         * calls.c: Include hard-reg-set.h before rtl.h.
15809         * ira.c: Likewise.
15810
15811 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15812             Vladimir Makarov  <vmakarov@redhat.com>
15813
15814         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15815         Add assert.
15816
15817 2015-06-25  Richard Biener  <rguenther@suse.de>
15818
15819         * fold-const.c (fold_binary_loc): Move simplification of
15820         (X <<>> C1) & C2 ...
15821         * match.pd: ... here.
15822
15823 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15824
15825         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15826
15827 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15828
15829         * match.pd: Add patterns for vec_conds between 1 and 0.
15830
15831 2015-06-25  Richard Biener  <rguenther@suse.de>
15832
15833         * tree-vect-stmts.c (vectorizable_conversion): Do not set
15834         STMT_VINFO_VEC_STMT for SLP.
15835         (vectorizable_store): Likewise.
15836         (vectorizable_load): Likewise.
15837         (vect_transform_stmt): Catch SLP vectorization clobbering
15838         STMT_VINFO_VEC_STMT.
15839
15840 2015-06-25  Richard Biener  <rguenther@suse.de>
15841
15842         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15843         dumping.
15844         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15845         cleanup resulting dead code and parameters.
15846         (vect_transform_slp_perm_load): Adjust.
15847
15848 2015-06-25  Nick Clifton  <nickc@redhat.com>
15849
15850         * config/bfin/bfin.c (bfin_expand_prologue): Set
15851         current_function_static_stack_size if flag_stack_usage_info is set.
15852         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15853         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15854         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15855         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15856
15857 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15858
15859         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15860         comment that the generated IV is unsigned.
15861
15862 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15863
15864         PR target/29693
15865         * config/arm/arm.c (arm_dbx_register_number): Return
15866         DWARF_FRAME_REGISTERS by default.
15867
15868 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15869
15870         * dominance.c (calculate_dominance_info): Fix verify_dominators call
15871         argument.  Call verify_dominator when reusing dominator info.
15872
15873 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15874
15875         PR target/66563
15876         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15877         an additional element of the unspec vector.  Modify indices
15878         of operands.
15879         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15880         * config/sh/sh.c (prepare_move_operands): Pass incremented
15881         const_int to gen_GOTaddr2picreg.
15882         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15883
15884 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15885
15886         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15887         Condition on TARGET_FLOAT.
15888
15889 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15890
15891         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15892         and (no)crypto.
15893
15894 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15895
15896         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15897
15898         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15899         aarch64_err_no_fpadvsimd.
15900
15901         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15902         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15903         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15904         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15905         Turn error into assert, test TARGET_FLOAT.
15906         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15907         TARGET_FLOAT.
15908
15909 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
15910
15911         PR debug/66482
15912         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15913
15914 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15915
15916         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15917
15918 2015-06-24  Renlin Li <renlin.li@arm.com>
15919
15920         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15921         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15922
15923 2015-06-24  Richard Biener  <rguenther@suse.de>
15924
15925         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15926         (main): Likewise.
15927         (lower_opt_convert): Support lowering of conditional view_convert.
15928         (parser::parse_operation): Likewise.
15929         (parser::parse_for): Likewise.
15930
15931 2015-06-24  Renlin Li  <renlin.li@arm.com>
15932
15933         * varasm.c (emit_local): Use unsigned int for align variable.
15934
15935 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15936
15937         PR target/63408
15938         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15939         for negative numbers.
15940
15941 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15942
15943         PR rtl-optimization/66306
15944         * reload.c (find_reloads): Swap the match_dup info for
15945         commutative operands.
15946
15947 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15948
15949         * config/s390/vx-builtins.md
15950         ("vec_scatter_element<mode>_<non_vec_int>")
15951         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15952         attribute with bhfgq.
15953
15954 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15955
15956         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15957
15958 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15959
15960         * config/s390/s390-builtin-types.def: Add flag to indicate the
15961         options under which the function type is needed.
15962         * config/s390/s390-builtins.def: Add flag to indicate the options
15963         under which the builtin is enabled.
15964         * config/s390/s390-builtins.h: Add flags parameter to macro
15965         definitions.
15966         (bflags_for_builtin): New function.
15967         (flags_for_builtin): Renamed to ...
15968         (opflags_for_builtin): ... this.
15969         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15970         flags_for_builtin to bflags_for_builtin and
15971         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15972         * config/s390/s390.c: Add initialization of bflags_builtin and
15973         opflags_builtin arrays.
15974         Remove code for flags_builtin.
15975         (s390_init_builtins): Only create builtin function types if one of
15976         their flags is active.
15977         Only create builtins if all of their flags are active.
15978         (s390_expand_builtin): Rename flags_for_builtin to
15979         opflags_for_builtin.
15980
15981 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15982
15983         * config/s390/vecintrin.h: Remove internal builtins.
15984
15985 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15986
15987         * config/s390/s390.c (s390_secondary_reload): Fix check for
15988         GENERAL_REGS register class.
15989
15990 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15991
15992         * config/s390/s390.c (s390_support_vector_misalignment): Call
15993         default implementation for !TARGET_VX.
15994
15995 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15996
15997         * config/s390/s390.c (s390_legitimate_constant_p): Add
15998         TARGET_VX check.
15999
16000 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16001
16002         * config/s390/s390.c (s390_vector_abi): New variable definition.
16003         (s390_check_type_for_vector_abi): New function.
16004         (TARGET_ASM_FILE_END): New macro definition.
16005         (s390_asm_file_end): New function.
16006         (s390_function_arg): Call s390_check_type_for_vector_abi.
16007         (s390_gimplify_va_arg): Likewise.
16008         * configure: Regenerate.
16009         * configure.ac: Check for .gnu_attribute Binutils feature.
16010
16011 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
16012
16013         PR target/65803
16014         * config/bfin/bfin.c (hwloop_optimize): Initialize
16015         JUMP_LABEL for newly created jump.
16016
16017 2015-06-23  Tristan Gingold  <gingold@adacore.com>
16018
16019         * collect-utils.c (collect_wait): Unlink the response file here
16020         instead of...
16021         (do_wait): ...here.
16022         (utils_cleanup): ...and here.
16023
16024 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
16025
16026         * df-scan.c: Don't include target-def.h.
16027         * targhooks.c: Likewise.
16028         * config/arm/arm-c.c: Likewise.
16029         * config/i386/i386-c.c: Likewise.
16030         * config/nds32/nds32-cost.c: Likewise.
16031         * config/nds32/nds32-fp-as-gp.c: Likewise.
16032         * config/nds32/nds32-intrinsic.c: Likewise.
16033         * config/nds32/nds32-isr.c: Likewise.
16034         * config/nds32/nds32-md-auxiliary.c: Likewise.
16035         * config/nds32/nds32-memory-manipulation.c: Likewise.
16036         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16037         * config/nds32/nds32-predicates.c: Likewise.
16038
16039 2015-06-23  Richard Biener  <rguenther@suse.de>
16040
16041         PR tree-optimization/66636
16042         * tree-vect-stmts.c (vectorizable_store): Properly compute the
16043         def type for further defs for strided stores.
16044
16045 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
16046
16047         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16048         conditional selects.
16049         (setcc_int<mode>, setcc_float<mode>): Reformat.
16050
16051 2015-06-23  Marek Polacek  <polacek@redhat.com>
16052
16053         * match.pd ((x + y) - (x | y) -> x & y,
16054         (x + y) - (x & y) -> x | y): New patterns.
16055
16056 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
16057
16058         PR 65711
16059         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16060         '-dynamic-linker' within %{!shared: ...}.
16061
16062 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
16063
16064         PR target/66560
16065         * config/i386/predicates.md (addsub_vm_operator): New predicate.
16066         (addsub_vs_operator): Ditto.
16067         (addsub_vs_parallel): Ditto.
16068         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16069         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16070         Put minus RTX before plus and adjust vec_merge selector.
16071         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16072         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16073         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16074         (addsub vec_merge splitters): New combiner splitters.
16075         (addsub vec_select/vec_concat splitters): Ditto.
16076
16077 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
16078
16079         PR tree-optimization/66449
16080         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16081         POINTER_PLUS_EXPR for pointers.
16082
16083 2015-06-23  Alan Modra  <amodra@gmail.com>
16084
16085         * rtlanal.c (commutative_operand_precedence): Correct comments.
16086         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16087         declaration.  Return an int.  Distinguish REG,REG return from
16088         others.
16089         (struct simplify_plus_minus_op_data): Make local to function.
16090         (simplify_plus_minus): Don't set canonicalized if merely sorting
16091         registers.  Avoid packing ops if nothing changes.  White space fixes.
16092
16093 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
16094
16095         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16096         -fdump-ada-spec is passed but not if -fsyntax-only is.
16097
16098 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
16099
16100         PR bootstrap/63740
16101         * lra-lives.c (process_bb_lives): Check insn copying the same
16102         reload pseudo and don't create a copy for it.
16103
16104 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16105
16106         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16107         for cond_stmt.
16108
16109 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16110
16111         * builtins.def (DEF_GOMP_BUILTIN): Test
16112         'flag_tree_parallelize_loops > 1' instead of
16113         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
16114
16115 2015-06-22  Tom de Vries  <tom@codesourcery.com>
16116
16117         * dominance.c (calculate_dominance_info): Verify dominators if
16118         early-out.
16119
16120 2015-06-22  Marek Polacek  <polacek@redhat.com>
16121
16122         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16123         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16124         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16125         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16126
16127 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16128
16129         PR target/65871
16130         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16131         cost of embedded comparison.
16132
16133 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16134
16135         PR target/65914
16136         * config/rs6000/predicates.md (altivec_register_operand): Permit
16137         virtual stack registers.
16138         (vsx_register_operand): Likewise.
16139         (vfloat_operand): Likewise.
16140         (vint_operand): Likewise.
16141         (vlogical_operand): Likewise.
16142
16143 2015-06-22  Richard Biener  <rguenther@suse.de>
16144
16145         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16146         and single_scalar_iteration_cost members.
16147         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16148         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16149         (vect_get_single_scalar_iteration_cost): Remove.
16150         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16151         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16152         * tree-vect-loop.c (destroy_loop_vec_info): Free
16153         scalar_cost_vec.
16154         (vect_get_single_scalar_iteration_cost): Compute result into
16155         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16156         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16157         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16158         (vect_estimate_min_profitable_iters): Use them.
16159
16160 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16161
16162         PR target/52144
16163         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16164         (TARGET_INSERT_ATTRIBUTES): Define.
16165         (thumb_flipper): New var.
16166         * config/arm/arm.opt (-mflip-thumb): New switch.
16167
16168 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16169             Martin Liska  <mliska@suse.cz>
16170
16171         PR ipa/65908
16172         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16173         construction of arg_types.
16174         (sem_function::sem_function): Likewise.
16175         (sem_function::~sem_function): Remove destruction of arg_types.
16176         (sem_function::compatible_parm_types_p): New function.
16177         (sem_function::equals_wpa): Reorg matching of return values
16178         and parameter types.
16179         (sem_function::equals_private): Reorg mathcing of argument types.
16180         (sem_function::parse_tree_args): Remove.
16181         * ipa-icf.h (init_wpa): Do not call it.
16182         (parse_tree_args): Remove.
16183         (compatible_parm_types_p): Declare.
16184         (result_type): Remove.
16185         (arg_types): Remove.
16186
16187 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16188
16189         PR ipa/66351
16190         * ipa-polymorphic-call.c
16191         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16192         initializing alias oracle; fix formating; set base_alias_set if it
16193         is known.
16194
16195 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16196
16197         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16198         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16199         (find_inc): Likewise.
16200         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16201         swapping.
16202         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16203         * df-scan.c (df_swap_refs): Remove.
16204         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16205         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16206         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16207         * fold-const.c (fold_relational_const): Likewise.
16208         * genattrtab.c (simplify_test_exp): Likewise.
16209         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16210         gimple_simplify): Likewise.
16211         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16212         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16213         * ipa-devirt.c (add_type_duplicate): Likewise.
16214         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16215         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16216         * lra.c (lra_create_copy): Likewise.
16217         * lto-streamer-out.c (DFS::DFS): Likewise.
16218         * modulo-sched.c (get_sched_window): Likewise.
16219         * omega.c (omega_pretty_print_problem): Likewise.
16220         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16221         * reload1.c (reloads_unique_chain_p): Likewise.
16222         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16223         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16224         use std::swap.
16225         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16226         manually swapping.
16227         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16228         predicate_mem_writes): Likewise.
16229         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16230         * tree-predcom.c (combine_chains): Likewise.
16231         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16232         refs_may_alias_p_1): Likewise.
16233         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16234         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16235         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16236         number_of_iterations_cond): Likewise.
16237         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16238         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16239         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16240         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16241         * tree-vrp.c (extract_range_from_binary_expr_1,
16242         extract_range_from_unary_expr_1): Likewise.
16243
16244 2015-06-20  Marek Polacek  <polacek@redhat.com>
16245
16246         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16247
16248 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16249
16250         PR target/66591
16251         * config/sh/sh.c (prepare_move_operands): Replace subreg
16252         index term with R0 for base and index addressing.
16253
16254 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16255
16256         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16257         op1 is an fp zero.
16258         (movsf_aarch64): Change condition from register_operand to
16259         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16260         load1.  Change type for alternative 7 to store1.
16261         (movdf_aarch64): Likewise.
16262
16263 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16264
16265         * config/vax/vax.md: Adjust sign/zero extend patterns to
16266         handle SUBREGs in operands[1].
16267
16268 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16269
16270         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16271         of manually swapping.
16272         (expand_vec_perm_interleave2): Likewise.
16273
16274 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16275
16276         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16277         reuse bounds created for abnormal ssa names.
16278
16279 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16280
16281         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16282         (allocate_stack_<mode>): ... this, and add :P on both
16283         match_operand and unspec.
16284         (allocate_stack): New expander.
16285
16286 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16287
16288         PR target/66541
16289         PR target/52144
16290         * config/arm/arm.c (arm_set_current_function): Handle
16291         explicit default options.
16292
16293 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16294
16295         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16296         (zero-extended cmove with mem peephole2): New pattern.
16297         (cmove with mem peephole2): Merge patterns.
16298
16299 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16300
16301         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16302
16303 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16304
16305         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16306         * config/mips/mips.md (*madd4<mode>): Ditto.
16307         (*nmadd3<mode>) Ditto.
16308         (*nmadd4<mode>_fastmath): Ditto.
16309         (*nmadd3<mode>_fastmath): Ditto.
16310         (*nmsub4<mode>): Ditto.
16311         (*nmsub3<mode>): Ditto.
16312         (*nmsub4<mode>_fastmath): Ditto.
16313         (*nmsub3<mode>_fastmath): Ditto.
16314
16315 2015-06-18  Michael Matz  <matz@suse.de>
16316
16317         PR middle-end/66253
16318         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16319         grouped strided stores.
16320         (vectorizable_load): Don't use the DR from first_stmt in
16321         the non-SLP grouped strided case.
16322
16323 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16324
16325         PR target/66569
16326         * function.c (assign_bounds): Add arguments assign_regs,
16327         assign_special, assign_bt.
16328         (assign_parms): For vararg functions handle bounds in BT
16329         and special slots after incoming vararg bounds.
16330
16331 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16332
16333         PR middle-end/66568
16334         * cfgexpand.c (expand_return): Handle missing bounds.
16335         (expand_gimple_stmt_1): Likewise.
16336         * tree-chkp.c (chkp_expand_zero_bounds): New.
16337         * tree-chkp.h (chkp_expand_zero_bounds): New.
16338
16339 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16340
16341         PR middle-end/66567
16342         * ipa-chkp.c (chkp_maybe_create_clone): Require
16343         functions to be instrumentable.
16344         * tree-chkp.c (chkp_replace_function_pointer): Use
16345         chkp_instrumentable_p instead of attribute check.
16346
16347 2015-06-18  Richard Biener  <rguenther@suse.de>
16348
16349         PR tree-optimization/66510
16350         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16351         number of vector loads for SLP permuted loads.
16352         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16353         check the stride for loop vectorization.
16354         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16355         vectorization factor.
16356         (vect_analyze_group_access): If the group size is not a power
16357         of two require a epilogue loop.
16358         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16359         compute and optimizing and alias test pruning after final
16360         vectorization factor computation.
16361         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16362         vector alignment.
16363         (vect_transform_slp_perm_load): Properly compute the original
16364         number of vector load stmts.
16365
16366 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16367
16368         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16369         "unlikely character , in @var" warning.
16370
16371 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16372
16373         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16374         (ix86_function_arg_advance): Ditto.
16375         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16376
16377 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16378
16379         * function.h (struct rtl_data): Remove struct and accessor macros.
16380         * emit-rtl.h (struct rtl_data): Relocate to here.
16381         * Makefile.in (GTFILES): Add emit-rtl.h.
16382         * df-core.c: Include emit-rtl.h.
16383         * genattrtab.c: Likewise.
16384         * genconditions.c: Likewise.
16385         * genpreds.c: Likewise.
16386         * genrecog.c: Likewise.
16387         * regcprop.c: Likewise.
16388         * resource.c: Likewise.
16389         * sched-rgn.c: Likewise.
16390         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16391         * config/i386/winnt.c: Likewise.
16392
16393 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16394
16395         PR middle-end/66429
16396         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16397         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16398         and has_force_vectorize_loops flags from cfun into
16399         child_cfun.
16400         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16401         if simduid is non-NULL.
16402         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16403         * passes.def (pass_simduid_cleanup): Add new pass after loop
16404         passes.
16405         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16406         indirection from htab argument's type.
16407         (shrink_simd_arrays): New function.
16408         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16409         Don't call adjust_simduid_builtins if there are no loops.
16410         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16411         (pass_simduid_cleanup::execute): New method.
16412         (make_pass_simduid_cleanup): New function.
16413
16414 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16415
16416         * tree-core.h (tree_target_option): Make opts field a pointer to a
16417         cl_target_option instead of an instance of the struct.
16418         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16419         the structure.
16420         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16421         TARGET_OPTION_NODE.
16422         (copy_node_stat): Allocate and copy struct cl_target_option.
16423
16424 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16425
16426         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16427         Remove conditional exposure of prototypes.
16428         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16429         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16430         definitions in tree.h with functions.
16431         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16432         anon_aggrname_p.
16433         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16434
16435 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16436
16437         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16438         (*cmp<mode>_signed): ... this.
16439         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16440         (*cmp<mode>_unsigned): ... this.  Remove %b.
16441
16442 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16443
16444         * coretypes.h: Include input.h and as-a.h.
16445         * rtl.h: Include input.h and as-a.h for generator files.
16446         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16447         * vec.c: Don't include diagnostic-core.h.
16448         * alias.c: Do not include input.h, line-map.h or is-a.h.
16449         * asan.c: Likewise.
16450         * attribs.c: Likewise.
16451         * auto-inc-dec.c: Likewise.
16452         * auto-profile.c: Likewise.
16453         * bb-reorder.c: Likewise.
16454         * bt-load.c: Likewise.
16455         * builtins.c: Likewise.
16456         * caller-save.c: Likewise.
16457         * calls.c: Likewise.
16458         * ccmp.c: Likewise.
16459         * cfg.c: Likewise.
16460         * cfganal.c: Likewise.
16461         * cfgbuild.c: Likewise.
16462         * cfgcleanup.c: Likewise.
16463         * cfgexpand.c: Likewise.
16464         * cfghooks.c: Likewise.
16465         * cfgloop.c: Likewise.
16466         * cfgloop.h: Likewise.
16467         * cfgloopanal.c: Likewise.
16468         * cfgloopmanip.c: Likewise.
16469         * cfgrtl.c: Likewise.
16470         * cgraph.c: Likewise.
16471         * cgraphbuild.c: Likewise.
16472         * cgraphclones.c: Likewise.
16473         * cgraphunit.c: Likewise.
16474         * cilk-common.c: Likewise.
16475         * combine-stack-adj.c: Likewise.
16476         * combine.c: Likewise.
16477         * compare-elim.c: Likewise.
16478         * convert.c: Likewise.
16479         * coverage.c: Likewise.
16480         * cppbuiltin.c: Likewise.
16481         * cprop.c: Likewise.
16482         * cse.c: Likewise.
16483         * cselib.c: Likewise.
16484         * data-streamer-in.c: Likewise.
16485         * data-streamer-out.c: Likewise.
16486         * data-streamer.c: Likewise.
16487         * dbxout.c: Likewise.
16488         * dce.c: Likewise.
16489         * ddg.c: Likewise.
16490         * debug.c: Likewise.
16491         * df-core.c: Likewise.
16492         * df-problems.c: Likewise.
16493         * df-scan.c: Likewise.
16494         * df.h: Likewise.
16495         * dfp.c: Likewise.
16496         * diagnostic-core.h: Likewise.
16497         * diagnostic.c: Likewise.
16498         * dojump.c: Likewise.
16499         * dominance.c: Likewise.
16500         * domwalk.c: Likewise.
16501         * double-int.c: Likewise.
16502         * dse.c: Likewise.
16503         * dumpfile.c: Likewise.
16504         * dumpfile.h: Likewise.
16505         * dwarf2asm.c: Likewise.
16506         * dwarf2cfi.c: Likewise.
16507         * dwarf2out.c: Likewise.
16508         * emit-rtl.c: Likewise.
16509         * et-forest.c: Likewise.
16510         * except.c: Likewise.
16511         * explow.c: Likewise.
16512         * expmed.c: Likewise.
16513         * expr.c: Likewise.
16514         * final.c: Likewise.
16515         * fixed-value.c: Likewise.
16516         * fold-const.c: Likewise.
16517         * function.c: Likewise.
16518         * fwprop.c: Likewise.
16519         * gcc-plugin.h: Likewise.
16520         * gcse.c: Likewise.
16521         * generic-match-head.c: Likewise.
16522         * ggc-page.c: Likewise.
16523         * gimple-builder.c: Likewise.
16524         * gimple-expr.c: Likewise.
16525         * gimple-fold.c: Likewise.
16526         * gimple-iterator.c: Likewise.
16527         * gimple-low.c: Likewise.
16528         * gimple-match-head.c: Likewise.
16529         * gimple-pretty-print.c: Likewise.
16530         * gimple-ssa-isolate-paths.c: Likewise.
16531         * gimple-ssa-strength-reduction.c: Likewise.
16532         * gimple-streamer-in.c: Likewise.
16533         * gimple-streamer-out.c: Likewise.
16534         * gimple-streamer.h: Likewise.
16535         * gimple-walk.c: Likewise.
16536         * gimple.c: Likewise.
16537         * gimplify-me.c: Likewise.
16538         * gimplify.c: Likewise.
16539         * godump.c: Likewise.
16540         * graph.c: Likewise.
16541         * graphite-blocking.c: Likewise.
16542         * graphite-dependences.c: Likewise.
16543         * graphite-interchange.c: Likewise.
16544         * graphite-isl-ast-to-gimple.c: Likewise.
16545         * graphite-optimize-isl.c: Likewise.
16546         * graphite-poly.c: Likewise.
16547         * graphite-scop-detection.c: Likewise.
16548         * graphite-sese-to-poly.c: Likewise.
16549         * graphite.c: Likewise.
16550         * haifa-sched.c: Likewise.
16551         * hw-doloop.c: Likewise.
16552         * ifcvt.c: Likewise.
16553         * init-regs.c: Likewise.
16554         * input.c: Likewise.
16555         * internal-fn.c: Likewise.
16556         * ipa-chkp.c: Likewise.
16557         * ipa-comdats.c: Likewise.
16558         * ipa-cp.c: Likewise.
16559         * ipa-devirt.c: Likewise.
16560         * ipa-icf-gimple.c: Likewise.
16561         * ipa-icf.c: Likewise.
16562         * ipa-inline-analysis.c: Likewise.
16563         * ipa-inline-transform.c: Likewise.
16564         * ipa-inline.c: Likewise.
16565         * ipa-polymorphic-call.c: Likewise.
16566         * ipa-profile.c: Likewise.
16567         * ipa-prop.c: Likewise.
16568         * ipa-pure-const.c: Likewise.
16569         * ipa-ref.c: Likewise.
16570         * ipa-reference.c: Likewise.
16571         * ipa-split.c: Likewise.
16572         * ipa-utils.c: Likewise.
16573         * ipa-visibility.c: Likewise.
16574         * ipa.c: Likewise.
16575         * ira-build.c: Likewise.
16576         * ira-color.c: Likewise.
16577         * ira-conflicts.c: Likewise.
16578         * ira-costs.c: Likewise.
16579         * ira-emit.c: Likewise.
16580         * ira-lives.c: Likewise.
16581         * ira.c: Likewise.
16582         * jump.c: Likewise.
16583         * langhooks.c: Likewise.
16584         * lcm.c: Likewise.
16585         * loop-doloop.c: Likewise.
16586         * loop-init.c: Likewise.
16587         * loop-invariant.c: Likewise.
16588         * loop-iv.c: Likewise.
16589         * loop-unroll.c: Likewise.
16590         * lower-subreg.c: Likewise.
16591         * lra-assigns.c: Likewise.
16592         * lra-coalesce.c: Likewise.
16593         * lra-constraints.c: Likewise.
16594         * lra-eliminations.c: Likewise.
16595         * lra-lives.c: Likewise.
16596         * lra-remat.c: Likewise.
16597         * lra-spills.c: Likewise.
16598         * lra.c: Likewise.
16599         * lto-cgraph.c: Likewise.
16600         * lto-compress.c: Likewise.
16601         * lto-opts.c: Likewise.
16602         * lto-section-in.c: Likewise.
16603         * lto-section-out.c: Likewise.
16604         * lto-streamer-in.c: Likewise.
16605         * lto-streamer-out.c: Likewise.
16606         * lto-streamer.c: Likewise.
16607         * mcf.c: Likewise.
16608         * mode-switching.c: Likewise.
16609         * modulo-sched.c: Likewise.
16610         * omega.c: Likewise.
16611         * omp-low.c: Likewise.
16612         * optabs.c: Likewise.
16613         * opts-global.c: Likewise.
16614         * opts.h: Likewise.
16615         * passes.c: Likewise.
16616         * plugin.c: Likewise.
16617         * postreload-gcse.c: Likewise.
16618         * postreload.c: Likewise.
16619         * predict.c: Likewise.
16620         * pretty-print.h: Likewise.
16621         * print-rtl.c: Likewise.
16622         * print-tree.c: Likewise.
16623         * profile.c: Likewise.
16624         * real.c: Likewise.
16625         * realmpfr.c: Likewise.
16626         * recog.c: Likewise.
16627         * ree.c: Likewise.
16628         * reg-stack.c: Likewise.
16629         * regcprop.c: Likewise.
16630         * reginfo.c: Likewise.
16631         * regrename.c: Likewise.
16632         * regstat.c: Likewise.
16633         * reload.c: Likewise.
16634         * reload1.c: Likewise.
16635         * reorg.c: Likewise.
16636         * resource.c: Likewise.
16637         * rtl-chkp.c: Likewise.
16638         * rtl-error.c: Likewise.
16639         * rtlanal.c: Likewise.
16640         * rtlhooks.c: Likewise.
16641         * sanopt.c: Likewise.
16642         * sched-deps.c: Likewise.
16643         * sched-ebb.c: Likewise.
16644         * sched-rgn.c: Likewise.
16645         * sched-vis.c: Likewise.
16646         * sdbout.c: Likewise.
16647         * sel-sched-dump.c: Likewise.
16648         * sel-sched-ir.c: Likewise.
16649         * sel-sched.c: Likewise.
16650         * sese.c: Likewise.
16651         * shrink-wrap.c: Likewise.
16652         * simplify-rtx.c: Likewise.
16653         * stack-ptr-mod.c: Likewise.
16654         * statistics.c: Likewise.
16655         * stmt.c: Likewise.
16656         * stor-layout.c: Likewise.
16657         * store-motion.c: Likewise.
16658         * streamer-hooks.c: Likewise.
16659         * stringpool.c: Likewise.
16660         * symtab.c: Likewise.
16661         * target-globals.c: Likewise.
16662         * targhooks.c: Likewise.
16663         * toplev.c: Likewise.
16664         * tracer.c: Likewise.
16665         * trans-mem.c: Likewise.
16666         * tree-affine.c: Likewise.
16667         * tree-browser.c: Likewise.
16668         * tree-call-cdce.c: Likewise.
16669         * tree-cfg.c: Likewise.
16670         * tree-cfgcleanup.c: Likewise.
16671         * tree-chkp-opt.c: Likewise.
16672         * tree-chkp.c: Likewise.
16673         * tree-chrec.c: Likewise.
16674         * tree-complex.c: Likewise.
16675         * tree-data-ref.c: Likewise.
16676         * tree-dfa.c: Likewise.
16677         * tree-diagnostic.c: Likewise.
16678         * tree-dump.c: Likewise.
16679         * tree-eh.c: Likewise.
16680         * tree-emutls.c: Likewise.
16681         * tree-if-conv.c: Likewise.
16682         * tree-inline.c: Likewise.
16683         * tree-into-ssa.c: Likewise.
16684         * tree-iterator.c: Likewise.
16685         * tree-loop-distribution.c: Likewise.
16686         * tree-nested.c: Likewise.
16687         * tree-nrv.c: Likewise.
16688         * tree-object-size.c: Likewise.
16689         * tree-outof-ssa.c: Likewise.
16690         * tree-parloops.c: Likewise.
16691         * tree-phinodes.c: Likewise.
16692         * tree-predcom.c: Likewise.
16693         * tree-pretty-print.c: Likewise.
16694         * tree-profile.c: Likewise.
16695         * tree-scalar-evolution.c: Likewise.
16696         * tree-sra.c: Likewise.
16697         * tree-ssa-address.c: Likewise.
16698         * tree-ssa-alias.c: Likewise.
16699         * tree-ssa-ccp.c: Likewise.
16700         * tree-ssa-coalesce.c: Likewise.
16701         * tree-ssa-copy.c: Likewise.
16702         * tree-ssa-copyrename.c: Likewise.
16703         * tree-ssa-dce.c: Likewise.
16704         * tree-ssa-dom.c: Likewise.
16705         * tree-ssa-dse.c: Likewise.
16706         * tree-ssa-forwprop.c: Likewise.
16707         * tree-ssa-ifcombine.c: Likewise.
16708         * tree-ssa-live.c: Likewise.
16709         * tree-ssa-loop-ch.c: Likewise.
16710         * tree-ssa-loop-im.c: Likewise.
16711         * tree-ssa-loop-ivcanon.c: Likewise.
16712         * tree-ssa-loop-ivopts.c: Likewise.
16713         * tree-ssa-loop-manip.c: Likewise.
16714         * tree-ssa-loop-niter.c: Likewise.
16715         * tree-ssa-loop-prefetch.c: Likewise.
16716         * tree-ssa-loop-unswitch.c: Likewise.
16717         * tree-ssa-loop.c: Likewise.
16718         * tree-ssa-math-opts.c: Likewise.
16719         * tree-ssa-operands.c: Likewise.
16720         * tree-ssa-phiopt.c: Likewise.
16721         * tree-ssa-phiprop.c: Likewise.
16722         * tree-ssa-pre.c: Likewise.
16723         * tree-ssa-propagate.c: Likewise.
16724         * tree-ssa-reassoc.c: Likewise.
16725         * tree-ssa-sccvn.c: Likewise.
16726         * tree-ssa-scopedtables.c: Likewise.
16727         * tree-ssa-sink.c: Likewise.
16728         * tree-ssa-strlen.c: Likewise.
16729         * tree-ssa-structalias.c: Likewise.
16730         * tree-ssa-tail-merge.c: Likewise.
16731         * tree-ssa-ter.c: Likewise.
16732         * tree-ssa-threadedge.c: Likewise.
16733         * tree-ssa-threadupdate.c: Likewise.
16734         * tree-ssa-uncprop.c: Likewise.
16735         * tree-ssa-uninit.c: Likewise.
16736         * tree-ssa.c: Likewise.
16737         * tree-ssanames.c: Likewise.
16738         * tree-stdarg.c: Likewise.
16739         * tree-streamer-in.c: Likewise.
16740         * tree-streamer-out.c: Likewise.
16741         * tree-streamer.c: Likewise.
16742         * tree-switch-conversion.c: Likewise.
16743         * tree-tailcall.c: Likewise.
16744         * tree-vect-data-refs.c: Likewise.
16745         * tree-vect-generic.c: Likewise.
16746         * tree-vect-loop-manip.c: Likewise.
16747         * tree-vect-loop.c: Likewise.
16748         * tree-vect-patterns.c: Likewise.
16749         * tree-vect-slp.c: Likewise.
16750         * tree-vect-stmts.c: Likewise.
16751         * tree-vectorizer.c: Likewise.
16752         * tree-vrp.c: Likewise.
16753         * tree.c: Likewise.
16754         * tsan.c: Likewise.
16755         * ubsan.c: Likewise.
16756         * valtrack.c: Likewise.
16757         * value-prof.c: Likewise.
16758         * var-tracking.c: Likewise.
16759         * varasm.c: Likewise.
16760         * varpool.c: Likewise.
16761         * vmsdbgout.c: Likewise.
16762         * vtable-verify.c: Likewise.
16763         * web.c: Likewise.
16764         * wide-int.cc: Likewise.
16765         * xcoffout.c: Likewise.
16766         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16767         * common/common-targhooks.c: Likewise.
16768         * config/aarch64/aarch64-builtins.c: Likewise.
16769         * config/aarch64/aarch64.c: Likewise.
16770         * config/alpha/alpha.c: Likewise.
16771         * config/arc/arc.c: Likewise.
16772         * config/arm/aarch-common.c: Likewise.
16773         * config/arm/arm-builtins.c: Likewise.
16774         * config/arm/arm-c.c: Likewise.
16775         * config/arm/arm.c: Likewise.
16776         * config/avr/avr-c.c: Likewise.
16777         * config/avr/avr-log.c: Likewise.
16778         * config/avr/avr.c: Likewise.
16779         * config/bfin/bfin.c: Likewise.
16780         * config/c6x/c6x.c: Likewise.
16781         * config/cr16/cr16.c: Likewise.
16782         * config/cris/cris.c: Likewise.
16783         * config/darwin-c.c: Likewise.
16784         * config/darwin.c: Likewise.
16785         * config/default-c.c: Likewise.
16786         * config/epiphany/epiphany.c: Likewise.
16787         * config/epiphany/mode-switch-use.c: Likewise.
16788         * config/epiphany/resolve-sw-modes.c: Likewise.
16789         * config/fr30/fr30.c: Likewise.
16790         * config/frv/frv.c: Likewise.
16791         * config/ft32/ft32.c: Likewise.
16792         * config/glibc-c.c: Likewise.
16793         * config/h8300/h8300.c: Likewise.
16794         * config/i386/i386-c.c: Likewise.
16795         * config/i386/i386.c: Likewise.
16796         * config/i386/msformat-c.c: Likewise.
16797         * config/i386/winnt-cxx.c: Likewise.
16798         * config/i386/winnt-stubs.c: Likewise.
16799         * config/i386/winnt.c: Likewise.
16800         * config/ia64/ia64-c.c: Likewise.
16801         * config/ia64/ia64.c: Likewise.
16802         * config/iq2000/iq2000.c: Likewise.
16803         * config/lm32/lm32.c: Likewise.
16804         * config/m32c/m32c-pragma.c: Likewise.
16805         * config/m32c/m32c.c: Likewise.
16806         * config/m32r/m32r.c: Likewise.
16807         * config/m68k/m68k.c: Likewise.
16808         * config/mcore/mcore.c: Likewise.
16809         * config/mep/mep-pragma.c: Likewise.
16810         * config/mep/mep.c: Likewise.
16811         * config/microblaze/microblaze-c.c: Likewise.
16812         * config/microblaze/microblaze.c: Likewise.
16813         * config/mips/mips.c: Likewise.
16814         * config/mmix/mmix.c: Likewise.
16815         * config/mn10300/mn10300.c: Likewise.
16816         * config/moxie/moxie.c: Likewise.
16817         * config/msp430/msp430-c.c: Likewise.
16818         * config/msp430/msp430.c: Likewise.
16819         * config/nds32/nds32-cost.c: Likewise.
16820         * config/nds32/nds32-fp-as-gp.c: Likewise.
16821         * config/nds32/nds32-intrinsic.c: Likewise.
16822         * config/nds32/nds32-isr.c: Likewise.
16823         * config/nds32/nds32-md-auxiliary.c: Likewise.
16824         * config/nds32/nds32-memory-manipulation.c: Likewise.
16825         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16826         * config/nds32/nds32-predicates.c: Likewise.
16827         * config/nds32/nds32.c: Likewise.
16828         * config/nios2/nios2.c: Likewise.
16829         * config/nvptx/nvptx.c: Likewise.
16830         * config/pa/pa.c: Likewise.
16831         * config/pdp11/pdp11.c: Likewise.
16832         * config/rl78/rl78-c.c: Likewise.
16833         * config/rl78/rl78.c: Likewise.
16834         * config/rs6000/rs6000-c.c: Likewise.
16835         * config/rs6000/rs6000.c: Likewise.
16836         * config/rx/rx.c: Likewise.
16837         * config/s390/s390-c.c: Likewise.
16838         * config/s390/s390.c: Likewise.
16839         * config/sh/sh-c.c: Likewise.
16840         * config/sh/sh-mem.cc: Likewise.
16841         * config/sh/sh.c: Likewise.
16842         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16843         * config/sh/sh_treg_combine.cc: Likewise.
16844         * config/sol2-c.c: Likewise.
16845         * config/sol2-cxx.c: Likewise.
16846         * config/sol2-stubs.c: Likewise.
16847         * config/sol2.c: Likewise.
16848         * config/sparc/sparc-c.c: Likewise.
16849         * config/sparc/sparc.c: Likewise.
16850         * config/spu/spu-c.c: Likewise.
16851         * config/spu/spu.c: Likewise.
16852         * config/stormy16/stormy16.c: Likewise.
16853         * config/tilegx/mul-tables.c: Likewise.
16854         * config/tilegx/tilegx-c.c: Likewise.
16855         * config/tilegx/tilegx.c: Likewise.
16856         * config/tilepro/mul-tables.c: Likewise.
16857         * config/tilepro/tilepro-c.c: Likewise.
16858         * config/tilepro/tilepro.c: Likewise.
16859         * config/v850/v850-c.c: Likewise.
16860         * config/v850/v850.c: Likewise.
16861         * config/vax/vax.c: Likewise.
16862         * config/visium/visium.c: Likewise.
16863         * config/vms/vms-c.c: Likewise.
16864         * config/vms/vms.c: Likewise.
16865         * config/vxworks.c: Likewise.
16866         * config/winnt-c.c: Likewise.
16867         * config/xtensa/xtensa.c: Likewise.
16868
16869 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
16870
16871         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16872         function.
16873         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16874
16875 2015-06-17  Richard Biener  <rguenther@suse.de>
16876
16877         PR tree-optimization/66251
16878         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16879         stmts for SLP strided stores.
16880
16881         Revert
16882         2015-05-22  Richard Biener  <rguenther@suse.de>
16883
16884         PR tree-optimization/66251
16885         * tree-vect-stmts.c (vectorizable_conversion): Properly
16886         set STMT_VINFO_VEC_STMT even for the SLP case.
16887
16888         2015-05-26  Michael Matz  <matz@suse.de>
16889
16890         PR middle-end/66251
16891         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16892         STMT_VINFO_VEC_STMT, also with SLP.
16893
16894 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
16895
16896         PR target/56766
16897         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16898         (*avx_addsubv4df3_1s): Ditto.
16899         (*sse3_addsubv2df3_1): Ditto.
16900         (*sse3_addsubv2df3_1s): Ditto.
16901         (*avx_addsubv8sf3_1): Ditto.
16902         (*avx_addsubv8sf3_1s): Ditto.
16903         (*sse3_addsubv4sf3_1): Ditto.
16904         (*sse3_addsubv4sf3_1s): Ditto.
16905
16906 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
16907
16908         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16909         (SYSROOT_SUFFIX_SPEC): Update.
16910         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16911         (STARTFILE_PREFIX_SPEC): Update.
16912         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16913         (MULTILIB_REQUIRED): New.
16914         (MULTILIB_OSDIRNAMES): New.
16915         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16916         (MULTILIB_REQUIRED): New.
16917         (MULTILIB_OSDIRNAMES): New.
16918
16919 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
16920
16921         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16922         * config/aarch64/aarch64-options-extensions.def: Update "fP",
16923         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
16924         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16925         (AARCH64_FL_PAN): New.
16926         (AARCH64_FL_LOR): New.
16927         (AARCH64_FL_RDMA): New.
16928         (AARCH64_FL_FOR_ARCH8_1): New.
16929         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16930         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16931
16932 2015-06-16  Martin Liska  <mliska@suse.cz>
16933
16934         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16935         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16936         guard.
16937
16938 2015-06-16  Richard Biener  <rguenther@suse.de>
16939
16940         * tree-vect-stmts.c (vectorizable_store): Adjust.
16941         (vectorizable_load): Likewise.
16942         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16943         Simplify.
16944         (vect_create_data_ref_ptr): Likewise.
16945         (bump_vector_ptr): Adjust.
16946
16947 2015-06-16  Richard Biener  <rguenther@suse.de>
16948
16949         * tree-vect-stmts.c (vectorizable_load): Properly start loads
16950         with the first element if this is grouped loads.
16951
16952 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
16953
16954         * config/arm/arm-protos.h (struct tune_params): Rename
16955         log_op_non_sc to log_op_non_short_circuit, and rename enum
16956         values to expand SC to SHORT_CIRCUIT.
16957         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16958         to LOG_OP_NON_SHORT_CIRCUIT.
16959         (arm_fastmul_tune):Likewise
16960         (arm_strongarm_tune): Likewise.
16961         (arm_xscale_tune): Likewise.
16962         (arm_9e_tune): Likewise.
16963         (arm_marvell_pj4_tune): Likewise.
16964         (arm_v6t2_tune): Likewise.
16965         (arm_cortex_tune): Likewise.
16966         (arm_cortex_a8_tune): Likewise.
16967         (arm_cortex_a7_tune): Likewise.
16968         (arm_cortex_a15_tune): Likewise.
16969         (arm_cortex_a53_tune): Likewise.
16970         (arm_cortex_a57_tune): Likewise.
16971         (arm_xgene1_tune): Likewise.
16972         (arm_cortex_a5_tune): Likewise.
16973         (arm_cortex_a9_tune): Likewise.
16974         (arm_cortex_a12_tune): Likewise.
16975         (arm_v7m_tune): Likewise.
16976         (arm_cortex_m7_tune): Likewise.
16977         (arm_v6m_tune): Likewise.
16978         (arm_fa726te_tune): Likewise.
16979
16980 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
16981
16982         * altivec.md: Delete UNSPEC_VMLADDUHM.
16983         (mulv4si3_p8): New pattern.
16984         (mulv4si3): Use it for POWER8.
16985         (mulv8hi3): Use vmladduhm with zero addend.
16986         (altivec_vmladduhm): Descriptive RTL.
16987
16988 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
16989
16990         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16991         to use neon_move instead of mov_imm.
16992         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16993         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16994
16995         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16996         aarch64_float_const_zero_rtx_p check before TFmode check.
16997         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16998         an fp zero.
16999         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
17000         code and attributes to match.  Change condition from register_operand
17001         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
17002         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
17003         to store2.
17004
17005 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
17006
17007         PR debug/66535
17008         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17009         there is no parent.
17010
17011 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
17012
17013         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17014         HOST_WIDE_INT parameter.
17015
17016 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
17017
17018         PR ipa/66181
17019         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17020         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17021         TYPE_NO_FORCE_BLK.
17022         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17023
17024 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
17025
17026         * rtl.h (classify_insn): Declare.
17027         * emit-rtl.c (classify_insn): Move to...
17028         * rtl.c: ...here and add generator support.
17029         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17030         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17031         * genemit.c (gen_emit_seq): New function.
17032         (gen_expand, gen_split): Use it.
17033
17034 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
17035
17036         * tree.c (make_vector_stat): Fix comment to state that the
17037         function returns a VECTOR_CST.
17038
17039 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
17040
17041         * gensupport.h (add_implicit_parallel): Declare.
17042         * genrecog.c (add_implicit_parallel): Move to...
17043         * gensupport.c (add_implicit_parallel): ...here.
17044         (process_one_cond_exec): Use it.
17045         * genemit.c (gen_insn): Likewise.
17046
17047 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
17048
17049         PR bootstrap/66448
17050         * passes.c (rest_of_decl_compilation): Do not register globals for
17051         early debug if they are declared in built-ins.
17052
17053 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
17054
17055         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17056
17057 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17058
17059         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17060         manually swapping.
17061         (noce_try_cmove_arith): Likewise.
17062         (noce_get_alt_condition): Likewise.
17063
17064 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17065
17066         * common/config/i386/i386-common.c
17067         (OPTION_MASK_ISA_MWAITX_SET): New.
17068         (ix86_handle_option): Handle mwaitx.
17069         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17070         (x86_64-*-*): Likewise.
17071         * config/i386/mwaitxintrin.h: New header.
17072         * config/i386/cpuid.h (bit_MWAITX):  Define.
17073         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17074         MWAITX support.
17075         * config/i386/i386.opt (mwaitx): New.
17076         * config/i386/i386-builtin-types.def
17077         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17078         * config/i386/i386-c.c: Define __MWAITX__ if needed.
17079         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17080         (PTA_MWAITX): New.
17081         (ix86_option_override_internal): Handle new option.
17082         (processor_alias_table): Added PTA_MWAITX.
17083         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17084         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17085         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17086         IX86_BUILTIN_MONITORX  built-ins.
17087         * config/i386/i386.h (TARGET_MWAITX): New.
17088         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17089         UNSPEC_MONITORX.
17090         (mwaitx):  New pattern.
17091         (monitorx_<mode>): New pattern.
17092         * config/i386/x86intrin.h: Include mwaitxintrin.h.
17093         * doc/extend.texi: Document monitorx and mwaitx builtins.
17094         * doc/invoke.texi: Document -mmwaitx option.
17095
17096 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
17097
17098         * emit-rtl.c (need_atomic_barrier_p): Mask model with
17099         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
17100
17101 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17102
17103         * dbxout.c (xcoff_debug_hooks): Provide a function for
17104         register_main_translation_unit hook.
17105
17106 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
17107
17108         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17109         variants cases from switch.
17110         (rs6000_post_atomic_barrier): Same.
17111         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17112         (rs6000_expand_atomic_exchange): Same.
17113         (rs6000_expand_atomic_op): Same.
17114         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17115         SYNC variants cases from switch.
17116         (atomic_load): Same.
17117         (atomic_store): Same.
17118
17119 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17120
17121         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17122         CONST_INT for goto.
17123
17124 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17125
17126         PR bootstrap/66448
17127         * dwarf2out.c (check_die): Check for common duplicate attributes.
17128         (add_location_or_const_value_attribute): Do not add duplicate
17129         attributes.
17130         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17131         time around.
17132         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17133         (gen_type_die_with_usage): Call check_die.
17134         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17135
17136 2015-06-11  Jason Merrill  <jason@redhat.com>
17137
17138         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17139         dies.
17140
17141 2015-06-11  Marek Polacek  <polacek@redhat.com>
17142
17143         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17144
17145 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17146
17147         PR bootstrap/66252
17148         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17149         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17150         (*addx_extend_sp32): Fix pasto.
17151         (*subx_extend): Rename into...
17152         (*subx_extend_sp32): ...this.
17153         (*adddi3_extend_sp32): Add earlyclobber.
17154         (*subdi3_insn_sp32): Likewise.
17155         (*subdi3_extend_sp32): Likewise.
17156         (*and_not_di_sp32): Likewise.
17157         (*or_not_di_sp32): Likewise.
17158         (*xor_not_di_sp32): Likewise.
17159         (*negdi2_sp32): Likewise.
17160         (*one_cmpldi2_sp32): Likewise.
17161
17162 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17163
17164         * debug.h (struct gcc_debug_hooks): Add a
17165         register_main_translation_unit hook.
17166         * debug.c (do_nothing_debug_hooks): Provide a function for this
17167         new hook.
17168         * dbxout.c (dbx_debug_hooks): Likewise.
17169         * sdbout.c (sdb_debug_hooks): Likewise.
17170         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17171         * dwarf2out.c (main_translation_unit): New global variable.
17172         (dwarf2out_register_main_translation_unit): New function
17173         implementing the new hook.
17174         (dwarf2_debug_hooks): Assign
17175         dwarf2out_register_main_translation_unit to this new hook.
17176         (dwarf2out_init): Associate any main translation unit to
17177         comp_unit_die ().
17178
17179 2015-06-11  Marek Polacek  <polacek@redhat.com>
17180
17181         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17182
17183 2015-06-11  Marek Polacek  <polacek@redhat.com>
17184
17185         * match.pd: Use single_use throughout.
17186
17187 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17188
17189         * config/arm/arm.c (arm_option_params_internal): When optimising
17190         for speed set max_insns_skipped when arm_restrict_it.
17191
17192 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17193
17194         PR target/52144
17195         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17196          macros in ...
17197         (arm_cpu_builtins): New function.
17198         (arm_pragma_target_parse): Call arm_cpu_builtins.
17199         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17200         (arm_register_target_pragmas): Likewise.
17201         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17202          Call arm_register_target_pragmas.
17203         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17204         (arm_pragma_target_parse): Likewise.
17205
17206 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17207
17208         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17209         of the second operand.
17210
17211 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17212
17213         PR target/66473
17214         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17215         to prepare mask operand for AVX512 modes.
17216
17217 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17218
17219         PR target/66474
17220         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17221         if you use a constraint that targets a VSX register, you must use
17222         %x<n> in the template.
17223
17224 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17225
17226         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17227         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17228         (define_insn "trap"): New definition.
17229
17230 2015-06-10  Richard Biener  <rguenther@suse.de>
17231
17232         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17233         out from ...
17234         (vect_supported_load_permutation_p): ... here.  Handle
17235         supportable permutations in reductions.
17236         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17237         for vectorizing strided group loads.
17238
17239 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17240
17241         PR target/66470
17242         * config/i386/i386.c (ix86_split_long_move): For collisions
17243         involving direct tls segment refs, move the UNSPEC_TP possibly
17244         wrapped in ZERO_EXTEND out of the address for lea, to each of
17245         the memory loads.
17246
17247 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17248
17249         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17250         dmb sy. Adjust tabs.
17251
17252 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17253
17254         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17255
17256 2015-06-10  Martin Liska  <mliska@suse.cz>
17257
17258         PR bootstrap/66471
17259         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17260         all enum values in mem_alloc_origin.
17261         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17262         name.
17263         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17264         * bitmap.c (bitmap_register): Likewise.
17265         (dump_bitmap_statistics): Likewise.
17266         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17267         (ggc_record_overhead): Likewise.
17268         * hash-map.h: Likewise.
17269         * hash-set.h: Likewise.
17270         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17271         * hash-table.h: Likewise.
17272         * vec.c (vec_prefix::register_overhead): Likewise.
17273         (vec_prefix::release_overhead): Likewise.
17274         (dump_vec_loc_statistics): Likewise.
17275
17276 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17277
17278         PR target/52144
17279         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17280         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17281         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17282         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17283         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17284         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17285         (arm_valid_target_attribute_p): Likewise.
17286         (arm_set_current_function, arm_can_inline_p): Likewise.
17287         (arm_valid_target_attribute_rec): Likewise.
17288         (arm_previous_fndecl): New variable.
17289         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17290         (TARGET_CAN_INLINE_P): Define.
17291         (arm_asm_trampoline_template): Emit mode.
17292         (arm_file_start): Don't set unified syntax.
17293         (arm_declare_function_name): Set unified syntax and mode.
17294         (arm_option_override): Init target_option_default_node.
17295         and target_option_current_node.
17296         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17297         (*call_symbol): Likewise.
17298         * doc/extend.texi: Document ARM/Thumb target attribute.
17299         * doc/invoke.texi: Likewise.
17300
17301 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17302
17303         Revert:
17304         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17305         PR rtl-optimization/64164
17306         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17307         * tree-ssa-copyrename.c: Removed.
17308         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17309         -ftree-coalesce-vars.
17310         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17311         * common.opt (ftree-copyrename): Ignore.
17312         (ftree-coalesce-inlined-vars): Likewise.
17313         * doc/invoke.texi: Remove the ignored options above.
17314         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17315         * tree-ssa-coalesce.h: ... here.
17316         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17317         headers required by it.
17318         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17319         across variables when flag_tree_coalesce_vars.  Check register
17320         use and promoted modes to allow coalescing.  Moved to
17321         tree-ssa-coalesce.c.
17322         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17323         with its member functions to tree-ssa-coalesce.c.
17324         (var_map_base_init): Likewise.  Renamed to
17325         compute_samebase_partition_bases.
17326         (partition_view_normal): Drop want_bases parameter.
17327         (partition_view_bitmap): Likewise.
17328         * tree-ssa-live.h: Adjust declarations.
17329         * tree-ssa-coalesce.c: Include explow.h.
17330         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17331         default defs at the entry point.
17332         (dump_part_var_map): New.
17333         (compute_optimized_partition_bases): New, called by...
17334         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17335         of compute_samebase_partition_bases.  Adjust.
17336         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17337         * cfgexpand.c (leader_merge): New.
17338         (get_rtl_for_parm_ssa_default_def): New.
17339         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17340         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17341         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17342         redundant MEM attr setting.
17343         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17344         from...
17345         (expand_one_stack_var): ... this.  New wrapper to check and
17346         skip already expanded SSA partitions.
17347         (record_alignment_for_reg_var): New, factored out of...
17348         (expand_one_var): ... this.
17349         (expand_one_ssa_partition): New.
17350         (adjust_one_expanded_partition_var): New.
17351         (expand_one_register_var): Check and skip already expanded SSA
17352         partitions.
17353         (expand_used_vars): Don't create DECLs for anonymous SSA
17354         names.  Expand all SSA partitions, then adjust all SSA names.
17355         (pass::execute): Replace the loops that set
17356         SA.partition_to_pseudo from partition leaders and cleared
17357         DECL_RTL for multi-location variables, and that which used to
17358         rename vars and set attrs, with one that clears DECL_RTL and
17359         checks that PARMs and RESULTs default_defs match DECL_RTL.
17360         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17361         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17362         * explow.c (promote_ssa_mode): New.
17363         * explow.h (promote_ssa_mode): Declare.
17364         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17365         * function.c: Include cfgexpand.h.
17366         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17367         (use_register_for_parm_decl): Wrapper for the above to
17368         special-case the result_ptr.
17369         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17370         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17371         multiple locations.
17372         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17373         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17374         (assign_parm_setup_block): Prefer SSA-assigned location.
17375         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17376         if stack_parm is NULL.
17377         (assign_parm_setup_stack): Prefer SSA-assigned location.
17378         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17379         rtl before testing for pointer bounds.  Special-case result_ptr.
17380         (expand_function_start): Maybe reset DECL_RTL of result.
17381         Prefer SSA-assigned location for result and static chain.
17382         Factor out DECL_RESULT and SET_DECL_RTL.
17383         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17384         anonymous SSA names.  Use promote_ssa_mode.
17385         (get_temp_reg): Likewise.
17386         (remove_ssa_form): Adjust.
17387         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17388         and get its reg_usage for reg invalidation.
17389         (compute_bb_dataflow): Pass it insn.
17390         (emit_notes_in_bb): Likewise.
17391         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17392         fail assert on conversion between unsigned types.
17393
17394 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17395
17396         PR tree-optimization/65460
17397         * omp-low.c (expand_omp_target): Set parallelized_function on
17398         cgraph_node for child_fn.
17399
17400 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17401
17402         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17403         parallelized_function before add_new_function.
17404
17405 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17406
17407         * gcc-plugin.h: Move decls to plugin.h and include it.
17408         * plugin.h: Relocate decls from gcc-plugin.h
17409         * ggc-page.c: Include required header files.
17410         * passes.c: Likewise.
17411         * cgraphunit.c: Likewise.
17412
17413 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17414
17415         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17416
17417 2015-06-09  Jason Merrill  <jason@redhat.com>
17418
17419         PR bootstrap/66448
17420         * toplev.c (check_global_declaration): Don't warn about a clone.
17421
17422 2015-06-09  Marek Polacek  <polacek@redhat.com>
17423
17424         PR tree-optimization/66299
17425         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17426         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17427         patterns.
17428
17429 2015-06-09  Richard Biener  <rguenther@suse.de>
17430
17431         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17432         (vect_analyze_slp_instance): Instead do not falsely drop
17433         load permutations.
17434
17435 2015-06-09  Richard Biener  <rguenther@suse.de>
17436
17437         PR middle-end/66423
17438         * match.pd: Handle A % (unsigned)(1 << B).
17439
17440 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17441
17442         * varasm.c (output_object_block_htab): Remove.
17443         (output_object_block_compare): New.
17444         (output_object_blocks): Sort named object_blocks before outputting
17445         them.
17446
17447 2015-06-09  Richard Biener  <rguenther@suse.de>
17448
17449         PR tree-optimization/66419
17450         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17451         consider GROUP_GAP when detecting a perfect subchain.
17452
17453 2015-06-09  Nick Clifton  <nickc@redhat.com>
17454
17455         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17456         place read only data in the .frodata section.
17457
17458 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17459
17460         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17461         (atomic_store<mode>): Likewise.
17462
17463 2015-06-09  Richard Biener  <rguenther@suse.de>
17464
17465         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17466
17467 2015-06-09  Richard Biener  <rguenther@suse.de>
17468
17469         PR middle-end/66413
17470         * tree-inline.c (insert_init_debug_bind): Unshare value.
17471
17472 2015-06-09  Richard Biener  <rguenther@suse.de>
17473
17474         PR tree-optimization/66396
17475         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17476         Rename virtual operands.
17477
17478 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17479
17480         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17481         always return false.
17482
17483 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17484
17485         PR rtl-optimization/64164
17486         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17487         * tree-ssa-copyrename.c: Removed.
17488         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17489         -ftree-coalesce-vars.
17490         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17491         * common.opt (ftree-copyrename): Ignore.
17492         (ftree-coalesce-inlined-vars): Likewise.
17493         * doc/invoke.texi: Remove the ignored options above.
17494         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17495         * tree-ssa-coalesce.h: ... here.
17496         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17497         headers required by it.
17498         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17499         across variables when flag_tree_coalesce_vars.  Check register
17500         use and promoted modes to allow coalescing.  Moved to
17501         tree-ssa-coalesce.c.
17502         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17503         with its member functions to tree-ssa-coalesce.c.
17504         (var_map_base_init): Likewise.  Renamed to
17505         compute_samebase_partition_bases.
17506         (partition_view_normal): Drop want_bases parameter.
17507         (partition_view_bitmap): Likewise.
17508         * tree-ssa-live.h: Adjust declarations.
17509         * tree-ssa-coalesce.c: Include explow.h.
17510         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17511         default defs at the entry point.
17512         (dump_part_var_map): New.
17513         (compute_optimized_partition_bases): New, called by...
17514         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17515         of compute_samebase_partition_bases.  Adjust.
17516         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17517         * cfgexpand.c (leader_merge): New.
17518         (get_rtl_for_parm_ssa_default_def): New.
17519         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17520         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17521         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17522         redundant MEM attr setting.
17523         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17524         from...
17525         (expand_one_stack_var): ... this.  New wrapper to check and
17526         skip already expanded SSA partitions.
17527         (record_alignment_for_reg_var): New, factored out of...
17528         (expand_one_var): ... this.
17529         (expand_one_ssa_partition): New.
17530         (adjust_one_expanded_partition_var): New.
17531         (expand_one_register_var): Check and skip already expanded SSA
17532         partitions.
17533         (expand_used_vars): Don't create DECLs for anonymous SSA
17534         names.  Expand all SSA partitions, then adjust all SSA names.
17535         (pass::execute): Replace the loops that set
17536         SA.partition_to_pseudo from partition leaders and cleared
17537         DECL_RTL for multi-location variables, and that which used to
17538         rename vars and set attrs, with one that clears DECL_RTL and
17539         checks that PARMs and RESULTs default_defs match DECL_RTL.
17540         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17541         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17542         * explow.c (promote_ssa_mode): New.
17543         * explow.h (promote_ssa_mode): Declare.
17544         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17545         * function.c: Include cfgexpand.h.
17546         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17547         (use_register_for_parm_decl): Wrapper for the above to
17548         special-case the result_ptr.
17549         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17550         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17551         multiple locations.
17552         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17553         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17554         (assign_parm_setup_block): Prefer SSA-assigned location.
17555         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17556         if stack_parm is NULL.
17557         (assign_parm_setup_stack): Prefer SSA-assigned location.
17558         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17559         rtl before testing for pointer bounds.  Special-case result_ptr.
17560         (expand_function_start): Maybe reset DECL_RTL of result.
17561         Prefer SSA-assigned location for result and static chain.
17562         Factor out DECL_RESULT and SET_DECL_RTL.
17563         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17564         anonymous SSA names.  Use promote_ssa_mode.
17565         (get_temp_reg): Likewise.
17566         (remove_ssa_form): Adjust.
17567         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17568         and get its reg_usage for reg invalidation.
17569         (compute_bb_dataflow): Pass it insn.
17570         (emit_notes_in_bb): Likewise.
17571         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17572         fail assert on conversion between unsigned types.
17573
17574 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17575
17576         PR debug/58315
17577         * tree-inline.c (reset_debug_binding): New.
17578         (reset_debug_bindings): Likewise.
17579         (expand_call_inline): Call it.
17580
17581 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17582
17583         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17584         TYPE_STRING_FLAG.
17585
17586 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17587
17588         * lto-streamer-out.c (lto_output_location): Stream
17589         reserved locations correctly.
17590         * lto-streamer-in.c (lto_output_location): Likewise.
17591
17592 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17593
17594         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17595         * ggc.h: Don't include statistics.h>
17596         * hash-map.h: Remove all includes.
17597         * hash-set.h: Likewise.
17598         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17599         the include list. Remove <new>.
17600         * inchash.h: Remove all includes.
17601         * mem-stats.h: Likewise.
17602         * vec.h: No special processing for generators or ggc.
17603         * alias.c : Adjust include files.
17604         * alloc-pool.c : Likewise.
17605         * alloc-pool.h : Likewise.
17606         * asan.c : Likewise.
17607         * attribs.c : Likewise.
17608         * auto-inc-dec.c : Likewise.
17609         * auto-profile.c : Likewise.
17610         * bb-reorder.c : Likewise.
17611         * bitmap.c : Likewise.
17612         * bitmap.h : Likewise.
17613         * bt-load.c : Likewise.
17614         * builtins.c : Likewise.
17615         * caller-save.c : Likewise.
17616         * calls.c : Likewise.
17617         * ccmp.c : Likewise.
17618         * cfg.c : Likewise.
17619         * cfganal.c : Likewise.
17620         * cfgbuild.c : Likewise.
17621         * cfgcleanup.c : Likewise.
17622         * cfgexpand.c : Likewise.
17623         * cfghooks.c : Likewise.
17624         * cfgloop.c : Likewise.
17625         * cfgloop.h : Likewise.
17626         * cfgloopanal.c : Likewise.
17627         * cfgloopmanip.c : Likewise.
17628         * cfgrtl.c : Likewise.
17629         * cgraph.c : Likewise.
17630         * cgraphbuild.c : Likewise.
17631         * cgraphclones.c : Likewise.
17632         * cgraphunit.c : Likewise.
17633         * cilk-common.c : Likewise.
17634         * combine-stack-adj.c : Likewise.
17635         * combine.c : Likewise.
17636         * compare-elim.c : Likewise.
17637         * context.c : Likewise.
17638         * convert.c : Likewise.
17639         * coverage.c : Likewise.
17640         * cppbuiltin.c : Likewise.
17641         * cprop.c : Likewise.
17642         * cse.c : Likewise.
17643         * cselib.c : Likewise.
17644         * data-streamer-in.c : Likewise.
17645         * data-streamer-out.c : Likewise.
17646         * data-streamer.c : Likewise.
17647         * data-streamer.h : Likewise.
17648         * dbxout.c : Likewise.
17649         * dce.c : Likewise.
17650         * ddg.c : Likewise.
17651         * debug.c : Likewise.
17652         * df-core.c : Likewise.
17653         * df-problems.c : Likewise.
17654         * df-scan.c : Likewise.
17655         * df.h : Likewise.
17656         * dfp.c : Likewise.
17657         * dojump.c : Likewise.
17658         * dominance.c : Likewise.
17659         * domwalk.c : Likewise.
17660         * double-int.c : Likewise.
17661         * dse.c : Likewise.
17662         * dumpfile.c : Likewise.
17663         * dwarf2asm.c : Likewise.
17664         * dwarf2cfi.c : Likewise.
17665         * dwarf2out.c : Likewise.
17666         * emit-rtl.c : Likewise.
17667         * et-forest.c : Likewise.
17668         * except.c : Likewise.
17669         * except.h : Likewise.
17670         * explow.c : Likewise.
17671         * expmed.c : Likewise.
17672         * expr.c : Likewise.
17673         * final.c : Likewise.
17674         * fixed-value.c : Likewise.
17675         * fold-const.c : Likewise.
17676         * function.c : Likewise.
17677         * fwprop.c : Likewise.
17678         * gcc-plugin.h : Likewise.
17679         * gcc.c : Likewise.
17680         * gcse-common.c : Likewise.
17681         * gcse.c : Likewise.
17682         * genattrtab.c : Likewise.
17683         * genautomata.c : Likewise.
17684         * genconditions.c : Likewise.
17685         * genemit.c : Likewise.
17686         * generic-match-head.c : Likewise.
17687         * genextract.c : Likewise.
17688         * gengtype-state.c : Likewise.
17689         * gengtype.c : Likewise.
17690         * genhooks.c : Likewise.
17691         * genmatch.c : Likewise.
17692         * genmodes.c : Likewise.
17693         * genrecog.c : Likewise.
17694         * gensupport.c : Likewise.
17695         * ggc-common.c : Likewise.
17696         * ggc-internal.h : Likewise.
17697         * ggc-none.c : Likewise.
17698         * ggc-page.c : Likewise.
17699         * gimple-builder.c : Likewise.
17700         * gimple-expr.c : Likewise.
17701         * gimple-fold.c : Likewise.
17702         * gimple-iterator.c : Likewise.
17703         * gimple-low.c : Likewise.
17704         * gimple-match-head.c : Likewise.
17705         * gimple-pretty-print.c : Likewise.
17706         * gimple-ssa-isolate-paths.c : Likewise.
17707         * gimple-ssa-strength-reduction.c : Likewise.
17708         * gimple-ssa.h : Likewise.
17709         * gimple-streamer-in.c : Likewise.
17710         * gimple-streamer-out.c : Likewise.
17711         * gimple-streamer.h : Likewise.
17712         * gimple-walk.c : Likewise.
17713         * gimple.c : Likewise.
17714         * gimplify-me.c : Likewise.
17715         * gimplify.c : Likewise.
17716         * godump.c : Likewise.
17717         * graph.c : Likewise.
17718         * graphds.c : Likewise.
17719         * graphite-blocking.c : Likewise.
17720         * graphite-dependences.c : Likewise.
17721         * graphite-interchange.c : Likewise.
17722         * graphite-isl-ast-to-gimple.c : Likewise.
17723         * graphite-optimize-isl.c : Likewise.
17724         * graphite-poly.c : Likewise.
17725         * graphite-scop-detection.c : Likewise.
17726         * graphite-sese-to-poly.c : Likewise.
17727         * graphite.c : Likewise.
17728         * haifa-sched.c : Likewise.
17729         * hard-reg-set.h : Likewise.
17730         * hw-doloop.c : Likewise.
17731         * ifcvt.c : Likewise.
17732         * inchash.c : Likewise.
17733         * incpath.c : Likewise.
17734         * init-regs.c : Likewise.
17735         * input.c : Likewise.
17736         * internal-fn.c : Likewise.
17737         * ipa-chkp.c : Likewise.
17738         * ipa-comdats.c : Likewise.
17739         * ipa-cp.c : Likewise.
17740         * ipa-devirt.c : Likewise.
17741         * ipa-icf-gimple.c : Likewise.
17742         * ipa-icf.c : Likewise.
17743         * ipa-inline-analysis.c : Likewise.
17744         * ipa-inline-transform.c : Likewise.
17745         * ipa-inline.c : Likewise.
17746         * ipa-polymorphic-call.c : Likewise.
17747         * ipa-profile.c : Likewise.
17748         * ipa-prop.c : Likewise.
17749         * ipa-pure-const.c : Likewise.
17750         * ipa-ref.c : Likewise.
17751         * ipa-reference.c : Likewise.
17752         * ipa-split.c : Likewise.
17753         * ipa-utils.c : Likewise.
17754         * ipa-visibility.c : Likewise.
17755         * ipa.c : Likewise.
17756         * ira-build.c : Likewise.
17757         * ira-color.c : Likewise.
17758         * ira-conflicts.c : Likewise.
17759         * ira-costs.c : Likewise.
17760         * ira-emit.c : Likewise.
17761         * ira-lives.c : Likewise.
17762         * ira.c : Likewise.
17763         * jump.c : Likewise.
17764         * langhooks.c : Likewise.
17765         * lcm.c : Likewise.
17766         * libfuncs.h : Likewise.
17767         * lists.c : Likewise.
17768         * loop-doloop.c : Likewise.
17769         * loop-init.c : Likewise.
17770         * loop-invariant.c : Likewise.
17771         * loop-iv.c : Likewise.
17772         * loop-unroll.c : Likewise.
17773         * lower-subreg.c : Likewise.
17774         * lra-assigns.c : Likewise.
17775         * lra-coalesce.c : Likewise.
17776         * lra-constraints.c : Likewise.
17777         * lra-eliminations.c : Likewise.
17778         * lra-lives.c : Likewise.
17779         * lra-remat.c : Likewise.
17780         * lra-spills.c : Likewise.
17781         * lra.c : Likewise.
17782         * lto-cgraph.c : Likewise.
17783         * lto-compress.c : Likewise.
17784         * lto-opts.c : Likewise.
17785         * lto-section-in.c : Likewise.
17786         * lto-section-out.c : Likewise.
17787         * lto-streamer-in.c : Likewise.
17788         * lto-streamer-out.c : Likewise.
17789         * lto-streamer.c : Likewise.
17790         * lto-streamer.h : Likewise.
17791         * mcf.c : Likewise.
17792         * mode-switching.c : Likewise.
17793         * modulo-sched.c : Likewise.
17794         * omega.c : Likewise.
17795         * omp-low.c : Likewise.
17796         * optabs.c : Likewise.
17797         * opts-global.c : Likewise.
17798         * opts.h : Likewise.
17799         * passes.c : Likewise.
17800         * plugin.c : Likewise.
17801         * postreload-gcse.c : Likewise.
17802         * postreload.c : Likewise.
17803         * predict.c : Likewise.
17804         * print-rtl.c : Likewise.
17805         * print-tree.c : Likewise.
17806         * profile.c : Likewise.
17807         * read-md.c : Likewise.
17808         * read-md.h : Likewise.
17809         * read-rtl.c : Likewise.
17810         * real.c : Likewise.
17811         * realmpfr.c : Likewise.
17812         * recog.c : Likewise.
17813         * ree.c : Likewise.
17814         * reg-stack.c : Likewise.
17815         * regcprop.c : Likewise.
17816         * reginfo.c : Likewise.
17817         * regrename.c : Likewise.
17818         * regstat.c : Likewise.
17819         * reload.c : Likewise.
17820         * reload1.c : Likewise.
17821         * reorg.c : Likewise.
17822         * resource.c : Likewise.
17823         * rtl-chkp.c : Likewise.
17824         * rtl.c : Likewise.
17825         * rtl.h : Likewise.
17826         * rtlanal.c : Likewise.
17827         * rtlhash.c : Likewise.
17828         * rtlhash.h : Likewise.
17829         * rtlhooks.c : Likewise.
17830         * sanopt.c : Likewise.
17831         * sched-deps.c : Likewise.
17832         * sched-ebb.c : Likewise.
17833         * sched-rgn.c : Likewise.
17834         * sched-vis.c : Likewise.
17835         * sdbout.c : Likewise.
17836         * sel-sched-dump.c : Likewise.
17837         * sel-sched-ir.c : Likewise.
17838         * sel-sched-ir.h : Likewise.
17839         * sel-sched.c : Likewise.
17840         * sese.c : Likewise.
17841         * shrink-wrap.c : Likewise.
17842         * shrink-wrap.h : Likewise.
17843         * simplify-rtx.c : Likewise.
17844         * stack-ptr-mod.c : Likewise.
17845         * statistics.c : Likewise.
17846         * stmt.c : Likewise.
17847         * stor-layout.c : Likewise.
17848         * store-motion.c : Likewise.
17849         * stringpool.c : Likewise.
17850         * symtab.c : Likewise.
17851         * target-globals.c : Likewise.
17852         * targhooks.c : Likewise.
17853         * tlink.c : Likewise.
17854         * toplev.c : Likewise.
17855         * tracer.c : Likewise.
17856         * trans-mem.c : Likewise.
17857         * tree-affine.c : Likewise.
17858         * tree-affine.h : Likewise.
17859         * tree-browser.c : Likewise.
17860         * tree-call-cdce.c : Likewise.
17861         * tree-cfg.c : Likewise.
17862         * tree-cfgcleanup.c : Likewise.
17863         * tree-chkp-opt.c : Likewise.
17864         * tree-chkp.c : Likewise.
17865         * tree-chrec.c : Likewise.
17866         * tree-complex.c : Likewise.
17867         * tree-data-ref.c : Likewise.
17868         * tree-dfa.c : Likewise.
17869         * tree-diagnostic.c : Likewise.
17870         * tree-dump.c : Likewise.
17871         * tree-eh.c : Likewise.
17872         * tree-eh.h : Likewise.
17873         * tree-emutls.c : Likewise.
17874         * tree-hasher.h : Likewise.
17875         * tree-if-conv.c : Likewise.
17876         * tree-inline.c : Likewise.
17877         * tree-inline.h : Likewise.
17878         * tree-into-ssa.c : Likewise.
17879         * tree-iterator.c : Likewise.
17880         * tree-loop-distribution.c : Likewise.
17881         * tree-nested.c : Likewise.
17882         * tree-nrv.c : Likewise.
17883         * tree-object-size.c : Likewise.
17884         * tree-outof-ssa.c : Likewise.
17885         * tree-parloops.c : Likewise.
17886         * tree-phinodes.c : Likewise.
17887         * tree-predcom.c : Likewise.
17888         * tree-pretty-print.c : Likewise.
17889         * tree-profile.c : Likewise.
17890         * tree-scalar-evolution.c : Likewise.
17891         * tree-sra.c : Likewise.
17892         * tree-ssa-address.c : Likewise.
17893         * tree-ssa-alias.c : Likewise.
17894         * tree-ssa-ccp.c : Likewise.
17895         * tree-ssa-coalesce.c : Likewise.
17896         * tree-ssa-copy.c : Likewise.
17897         * tree-ssa-copyrename.c : Likewise.
17898         * tree-ssa-dce.c : Likewise.
17899         * tree-ssa-dom.c : Likewise.
17900         * tree-ssa-dse.c : Likewise.
17901         * tree-ssa-forwprop.c : Likewise.
17902         * tree-ssa-ifcombine.c : Likewise.
17903         * tree-ssa-live.c : Likewise.
17904         * tree-ssa-loop-ch.c : Likewise.
17905         * tree-ssa-loop-im.c : Likewise.
17906         * tree-ssa-loop-ivcanon.c : Likewise.
17907         * tree-ssa-loop-ivopts.c : Likewise.
17908         * tree-ssa-loop-manip.c : Likewise.
17909         * tree-ssa-loop-niter.c : Likewise.
17910         * tree-ssa-loop-prefetch.c : Likewise.
17911         * tree-ssa-loop-unswitch.c : Likewise.
17912         * tree-ssa-loop.c : Likewise.
17913         * tree-ssa-math-opts.c : Likewise.
17914         * tree-ssa-operands.c : Likewise.
17915         * tree-ssa-phiopt.c : Likewise.
17916         * tree-ssa-phiprop.c : Likewise.
17917         * tree-ssa-pre.c : Likewise.
17918         * tree-ssa-propagate.c : Likewise.
17919         * tree-ssa-reassoc.c : Likewise.
17920         * tree-ssa-sccvn.c : Likewise.
17921         * tree-ssa-scopedtables.c : Likewise.
17922         * tree-ssa-sink.c : Likewise.
17923         * tree-ssa-strlen.c : Likewise.
17924         * tree-ssa-structalias.c : Likewise.
17925         * tree-ssa-tail-merge.c : Likewise.
17926         * tree-ssa-ter.c : Likewise.
17927         * tree-ssa-threadedge.c : Likewise.
17928         * tree-ssa-threadupdate.c : Likewise.
17929         * tree-ssa-uncprop.c : Likewise.
17930         * tree-ssa-uninit.c : Likewise.
17931         * tree-ssa.c : Likewise.
17932         * tree-ssanames.c : Likewise.
17933         * tree-stdarg.c : Likewise.
17934         * tree-streamer-in.c : Likewise.
17935         * tree-streamer-out.c : Likewise.
17936         * tree-streamer.c : Likewise.
17937         * tree-streamer.h : Likewise.
17938         * tree-switch-conversion.c : Likewise.
17939         * tree-tailcall.c : Likewise.
17940         * tree-vect-data-refs.c : Likewise.
17941         * tree-vect-generic.c : Likewise.
17942         * tree-vect-loop-manip.c : Likewise.
17943         * tree-vect-loop.c : Likewise.
17944         * tree-vect-patterns.c : Likewise.
17945         * tree-vect-slp.c : Likewise.
17946         * tree-vect-stmts.c : Likewise.
17947         * tree-vectorizer.c : Likewise.
17948         * tree-vectorizer.h : Likewise.
17949         * tree-vrp.c : Likewise.
17950         * tree.c : Likewise.
17951         * tsan.c : Likewise.
17952         * ubsan.c : Likewise.
17953         * valtrack.c : Likewise.
17954         * valtrack.h : Likewise.
17955         * value-prof.c : Likewise.
17956         * var-tracking.c : Likewise.
17957         * varasm.c : Likewise.
17958         * varpool.c : Likewise.
17959         * vec.c: Likewise.
17960         * vmsdbgout.c : Likewise.
17961         * vtable-verify.c : Likewise.
17962         * vtable-verify.h : Likewise.
17963         * web.c : Likewise.
17964         * wide-int.cc : Likewise.
17965         * xcoffout.c : Likewise.
17966         * config/aarch64/aarch64-builtins.c : Likewise.
17967         * config/aarch64/aarch64.c : Likewise.
17968         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17969         * config/alpha/alpha.c : Likewise.
17970         * config/arc/arc.c : Likewise.
17971         * config/arm/aarch-common.c : Likewise.
17972         * config/arm/arm-builtins.c : Likewise.
17973         * config/arm/arm-c.c : Likewise.
17974         * config/arm/arm.c : Likewise.
17975         * config/avr/avr-c.c : Likewise.
17976         * config/avr/avr-log.c : Likewise.
17977         * config/avr/avr.c : Likewise.
17978         * config/bfin/bfin.c : Likewise.
17979         * config/c6x/c6x.c : Likewise.
17980         * config/cr16/cr16.c : Likewise.
17981         * config/cris/cris.c : Likewise.
17982         * config/darwin-c.c : Likewise.
17983         * config/darwin.c : Likewise.
17984         * config/default-c.c : Likewise.
17985         * config/epiphany/epiphany.c : Likewise.
17986         * config/epiphany/mode-switch-use.c : Likewise.
17987         * config/epiphany/resolve-sw-modes.c : Likewise.
17988         * config/fr30/fr30.c : Likewise.
17989         * config/frv/frv.c : Likewise.
17990         * config/ft32/ft32.c : Likewise.
17991         * config/glibc-c.c : Likewise.
17992         * config/h8300/h8300.c : Likewise.
17993         * config/i386/i386-c.c : Likewise.
17994         * config/i386/i386.c : Likewise.
17995         * config/i386/msformat-c.c : Likewise.
17996         * config/i386/winnt-cxx.c : Likewise.
17997         * config/i386/winnt-stubs.c : Likewise.
17998         * config/i386/winnt.c : Likewise.
17999         * config/ia64/ia64-c.c : Likewise.
18000         * config/ia64/ia64.c : Likewise.
18001         * config/iq2000/iq2000.c : Likewise.
18002         * config/lm32/lm32.c : Likewise.
18003         * config/m32c/m32c-pragma.c : Likewise.
18004         * config/m32c/m32c.c : Likewise.
18005         * config/m32r/m32r.c : Likewise.
18006         * config/m68k/m68k.c : Likewise.
18007         * config/mcore/mcore.c : Likewise.
18008         * config/mep/mep-pragma.c : Likewise.
18009         * config/mep/mep.c : Likewise.
18010         * config/microblaze/microblaze-c.c : Likewise.
18011         * config/microblaze/microblaze.c : Likewise.
18012         * config/mips/mips.c : Likewise.
18013         * config/mmix/mmix.c : Likewise.
18014         * config/mn10300/mn10300.c : Likewise.
18015         * config/moxie/moxie.c : Likewise.
18016         * config/msp430/msp430-c.c : Likewise.
18017         * config/msp430/msp430.c : Likewise.
18018         * config/nds32/nds32-cost.c : Likewise.
18019         * config/nds32/nds32-fp-as-gp.c : Likewise.
18020         * config/nds32/nds32-intrinsic.c : Likewise.
18021         * config/nds32/nds32-isr.c : Likewise.
18022         * config/nds32/nds32-md-auxiliary.c : Likewise.
18023         * config/nds32/nds32-memory-manipulation.c : Likewise.
18024         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18025         * config/nds32/nds32-predicates.c : Likewise.
18026         * config/nds32/nds32.c : Likewise.
18027         * config/nios2/nios2.c : Likewise.
18028         * config/nvptx/nvptx.c : Likewise.
18029         * config/pa/pa.c : Likewise.
18030         * config/pdp11/pdp11.c : Likewise.
18031         * config/rl78/rl78-c.c : Likewise.
18032         * config/rl78/rl78.c : Likewise.
18033         * config/rs6000/rs6000-c.c : Likewise.
18034         * config/rs6000/rs6000.c : Likewise.
18035         * config/rx/rx.c : Likewise.
18036         * config/s390/s390-c.c : Likewise.
18037         * config/s390/s390.c : Likewise.
18038         * config/sh/sh-c.c : Likewise.
18039         * config/sh/sh-mem.cc : Likewise.
18040         * config/sh/sh.c : Likewise.
18041         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18042         * config/sh/sh_treg_combine.cc : Likewise.
18043         * config/sol2-c.c : Likewise.
18044         * config/sol2-cxx.c : Likewise.
18045         * config/sol2-stubs.c : Likewise.
18046         * config/sol2.c : Likewise.
18047         * config/sparc/sparc-c.c : Likewise.
18048         * config/sparc/sparc.c : Likewise.
18049         * config/spu/spu-c.c : Likewise.
18050         * config/spu/spu.c : Likewise.
18051         * config/stormy16/stormy16.c : Likewise.
18052         * config/tilegx/mul-tables.c : Likewise.
18053         * config/tilegx/tilegx-c.c : Likewise.
18054         * config/tilegx/tilegx.c : Likewise.
18055         * config/tilepro/mul-tables.c : Likewise.
18056         * config/tilepro/tilepro-c.c : Likewise.
18057         * config/tilepro/tilepro.c : Likewise.
18058         * config/v850/v850-c.c : Likewise.
18059         * config/v850/v850.c : Likewise.
18060         * config/vax/vax.c : Likewise.
18061         * config/visium/visium.c : Likewise.
18062         * config/vms/vms-c.c : Likewise.
18063         * config/vms/vms.c : Likewise.
18064         * config/vxworks.c : Likewise.
18065         * config/winnt-c.c : Likewise.
18066         * config/xtensa/xtensa.c : Likewise.
18067
18068 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
18069
18070         PR lto/65378
18071         * ipa-utils.h (warn_types_mismatch): Update prototype.
18072         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18073         parameters.
18074         (type_mismatch_p): New function.
18075         (warn_types_mismatch): Reorg to work better on non-C++ types.
18076         (odr_types_equivalent_p): Add loc1/loc2 parameters.
18077         (add_type_duplicate): Update.
18078
18079 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18080
18081         PR rtl-optimization/66444
18082         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18083         call_used_regs.
18084
18085 2015-06-08  Richard Biener  <rguenther@suse.de>
18086
18087         PR tree-optimization/66422
18088         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18089         block after inserted gcc_unreachable.
18090
18091 2015-06-08  Nick Clifton  <nickc@redhat.com>
18092
18093         * config/rx/rx.c (rx_function_value): Do not promote vector types.
18094         (rx_promote_function_mode): Likewise.
18095         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18096
18097 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
18098
18099         * genattrtab.c (insn_alternatives): Change type from int *
18100         to uint64_t *.
18101         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18102         (get_attr_value): Change type of num_alt to uint64_t.
18103         (compute_alternative_mask): Change return type from
18104         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18105         (make_alternative_compare, mk_attr_alt): Change argument type
18106         from int to uint64_t.
18107         (simplify_test_exp): Change type of i from int to uint64_t.
18108         Shift ((uint64_t) 1) instead of 1 up.
18109         (main): Adjust oballocvec first argument from int to uint64_t.
18110         Shift ((uint64_t) 1) instead of 1 up.
18111
18112 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
18113
18114         PR other/65366
18115         * gdbhooks.py: Import sys.
18116         (intptr): New function.  Replace int(...) by intptr(...).
18117
18118 2015-06-08  Richard Biener  <rguenther@suse.de>
18119
18120         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18121         adjustment for gaps at the end of a SLP load group properly.
18122         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18123         all permutations we can generate.
18124         (vect_transform_slp_perm_load): Use the correct group-size.
18125
18126 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18127
18128         * genmatch.c (expr::gen_transform): For conditions, guess the type
18129         from the second operand.
18130
18131 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18132
18133         PR tree-optimization/66442
18134         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18135         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18136         if the loop latch is not a singleton.  Use
18137         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18138
18139 2015-06-08  Marek Polacek  <polacek@redhat.com>
18140
18141         PR sanitizer/66452
18142         * toplev.c (check_global_declaration): Don't warn about artificial
18143         decls.
18144
18145 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18146
18147         PR tree-optimization/66436
18148         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18149         dump file.
18150         * gimplify.c: Add tree-dump.h include.
18151         (gimplify_function_tree): Dump function to gimple dump file.
18152         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18153         dump file.
18154
18155 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18156
18157         PR tree-optimization/66435
18158         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18159         function.
18160
18161 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18162
18163         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18164         of ptr_type_node to not be ptr_to_node.
18165         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18166         TREE_TYPE of pointers.
18167         * gimple-expr.c (useless_type_conversion): Reorder the check for
18168         function pointers and TYPE_CANONICAL.
18169
18170 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18171
18172         PR bootstrap/66319
18173         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18174         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18175         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18176         later.
18177         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18178         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18179         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18180         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18181         and non iso if unix2003.
18182
18183 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18184
18185         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18186
18187 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18188
18189         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18190         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18191         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18192         except.c, final.c, function.c, gcse-common.c, genemit.c,
18193         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18194         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18195         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18196         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18197         more derived ones.
18198
18199 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18200
18201         * combine.c (combine_split_insns): Remove cast.
18202         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18203         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18204         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18205         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18206         * genemit.c (gen_split): Change return type of generated functions to
18207         rtx_insn.
18208         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18209         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18210         gen_peephole2_* functions.
18211         (print_subroutine, main): Likewise.
18212         * recog.c (peephole2_optimize): Remove cast.
18213         (peep2_next_insn): Promote return type to rtx_insn.
18214         * recog.h (peep2_next_insn): Fix prototype.
18215         * rtl.h (try_split, split_insns): Likewise.
18216
18217 2015-06-06  DJ Delorie  <dj@redhat.com>
18218
18219         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18220         and subtraction too.
18221
18222 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18223
18224         PR target/66410
18225         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18226         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18227         instead of Snd.  Disparage Sid/z alternative with '^'.
18228
18229 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18230
18231         * dwarf2out.c: Remove deferred_locations*.
18232         (dwarf2_debug_hooks): Add early_finish hook.
18233         Remove global_decl hook.
18234         Add early_global_decl and late_global_decl hook.
18235         New global early_dwarf.
18236         New structure set_early_dwarf.
18237         (output_die): Indicate whether a DIE was generated early
18238         when generating assembly with -dA.
18239         (struct limbo_die_struct): Document created_for field.
18240         Remove file_table_last_lookup.
18241         (remove_AT): Return TRUE if successful.
18242         (remove_child_TAG): Clear die_parent.
18243         (reparent_child): New function abstracted from...
18244         (splice_child_die): ...here.
18245         (new_die): ICE if a DIE ends up in limbo too late.
18246         (check_die): New.
18247         (defer_location): Remove.
18248         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18249         (fill_variable_array_bounds): New.
18250         (decl_start_label): Call fill_variable_array_bounds.
18251         (gen_formal_parameter_die): Rewrite to reuse previously generated
18252         DIEs.
18253         (gen_subprogram_die): Same.
18254         (gen_variable_die): Same.
18255         (gen_const_die): Same.
18256         (gen_label_die): Same.
18257         (gen_lexical_block_die): Same.
18258         (decl_will_get_specification_p): New.
18259         (local_function_static): New.
18260         (gen_struct_or_union_type_die): Fill in variable-length fields.
18261         (gen_typedef_die): Fill in variable-length typedefs.
18262         (gen_tagged_type_die): Gracefully return on error_mark_node.
18263         Handle re-entrancy.
18264         (gen_type_die_with_usage): Handle variable-length types.
18265         Remove duplicate code for ARRAY_TYPE case.
18266         (process_scope_var): Only process imported modules during early
18267         dwarf.
18268         (dwarf2out_early_global_decl): New.
18269         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18270         (dwarf2out_type_decl): Set early_dwarf while calling
18271         dwarf2out_decl.
18272         (dwarf2out_decl): Verify that we did not recreate a previously
18273         generated DIE.
18274         Do not return on DECL_EXTERNALs in VAR_DECLs.
18275         Abstract some code to local_function_static.
18276         (lookup_filename): Remove use of file_table_last_lookup.
18277         Gracefully exit on missing file_name.
18278         (dwarf2out_finish): Verify limbo list.
18279         Remove deferred_locations_list use.
18280         Move deferred_asm_name and limbo flushing to...
18281         (dwarf2out_early_finish): ...here.  New.
18282         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18283         deferred_asm_name, and file_table_last_lookup.
18284         * cgraph.h (referred_to_p): Add default argument.
18285         * cgraphunit.c (referred_to_p): Add and handle include_self
18286         argument.
18287         (analyze_functions): Add first_time argument.
18288         Call check_global_declaration for all symbols.
18289         Call late_global_decl for nodes for moribund nodes.
18290         (finalize_compilation_unit): Add new argument to
18291         analyze_functions.
18292         Call early_global_decl for functions.
18293         Call early_finish debug hook.
18294         * dbxout.c (dbxout_early_global_decl): New.
18295         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18296         (dbx_debug_hooks): Add new hooks.
18297         (xcoff_debug_hooks): Same.
18298         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18299         Add early and late debug hooks.
18300         Remove global_decl hook.
18301         * debug.h (struct gcc_debug_hooks): Add early_finish,
18302         early_global_decl, and late_global_decl fields.
18303         Remove global_decl field.
18304         Document gcc_debug_hooks.
18305         * gengtype.c (output_typename): Remove.
18306         * godump.c (go_early_global_decl): New.
18307         (go_late_global_decl): New.
18308         (go_global_decl): Remove.
18309         (dump_go_spec_init): Remove global_decl.  Add
18310         {early,late}_global_decl.
18311         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18312         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18313         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18314         (write_global_declarations): Remove.
18315         (global_decl_processing): New.
18316         * langhooks.h (struct lang_hooks_for_decls): Remove
18317         final_write_globals field.
18318         Add post_compilation_parsing_cleanups field.
18319         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18320         * sdbout.c: Add early and late_global_decl hooks.  Remove
18321         sdbout_global_decl hook.
18322         Add early_finish field for sdb_debug_hooks.
18323         (sdbout_global_decl): Remove.
18324         (sdbout_early_global_decl): New.
18325         (sdbout_late_global_decl): New.
18326         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18327         * toplev.c (check_global_declaration): Rename from
18328         check_global_declaration_1.
18329         Adapt to use symtab infrastructure.
18330         (check_global_declarations): Remove.
18331         (emit_debug_global_declarations): Remove.
18332         (compile_file): Remove call to final_write_globals langhook.
18333         Run the actual compilation process.
18334         Perform any post compilation parser cleanups.
18335         Generate late debug info.
18336         * toplev.h (check_global_declaration): New.
18337         (check_global_declaration_1): Remove.
18338         (check_global_declarations): Remove.
18339         (write_global_declarations): Remove.
18340         (emit_debug_global_declarations): Remove.
18341         (global_decl_processing): New.
18342         * tree-core.h (struct tree_block): Add DIE field.
18343         * tree.h (BLOCK_DIE): New.
18344         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18345         throughout.
18346         (vmsdbgout_early_global_decl): New.
18347         (vmsdbgout_late_global_decl): New.
18348         Add early_finish debug hook field to vmsdbg_debug_hooks.
18349         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18350         Add early and late_global_decl debug hooks.
18351
18352 2015-06-05  Julian Brown  <julian@codesourcery.com>
18353             Sandra Loosemore  <sandra@codesourcery.com>
18354
18355         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18356         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18357         to print-sysroot-suffix.sh script.
18358
18359 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18360
18361         merge from gomp4 branch:
18362         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18363
18364         PR tree-optimization/65443
18365         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18366         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18367         (try_transform_to_exit_first_loop_alt): New function.
18368         (transform_to_exit_first_loop): Use
18369         try_transform_to_exit_first_loop_alt.
18370
18371 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18372
18373         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18374         emit_cmp_and_jump_insns with the mode of target.
18375
18376 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18377
18378         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18379
18380 2015-06-04  DJ Delorie  <dj@redhat.com>
18381
18382         * config/msp430/msp430.md (movsi_s): New.  Special case for
18383         storing a 20-bit symbol into a 32-bit register.
18384         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18385         * config/msp430/predicates.md (msp430_symbol_operand): New.
18386
18387 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18388
18389         * c-family/c-common.c (noplt): New attribute.
18390         (handle_noplt_attribute): New handler.
18391         * calls.c (prepare_call_address): Check for noplt
18392         attribute.
18393         * config/i386/i386.c (ix86_expand_call): Check
18394         for noplt attribute.
18395         (ix86_nopic_noplt_attribute_p): New function.
18396         (ix86_output_call_insn): Output indirect call for non-pic
18397         no plt calls.
18398         * doc/extend.texi (noplt): Document new attribute.
18399         * doc/invoke.texi: Document new attribute.
18400
18401 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18402
18403         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18404         real.h, and fixed-value.h when included in host source files.
18405         * double-int.h: Remove redundant #includes listed above.
18406         * fixed-value.h: Likewise.
18407         * real.h: Likewise.
18408         * wide-int.h: Likewise.
18409         * inchash.h: Likewise.
18410         * rtl.h: Add some include files When included from a generator file.
18411         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18412         * internal-fn.h: Don't include coretypes.h.
18413         * alias.c: Adjust includes for restructured coretypes.h.
18414         * asan.c: Likewise.
18415         * attribs.c: Likewise.
18416         * auto-inc-dec.c: Likewise.
18417         * auto-profile.c: Likewise.
18418         * bb-reorder.c: Likewise.
18419         * bt-load.c: Likewise.
18420         * builtins.c: Likewise.
18421         * caller-save.c: Likewise.
18422         * calls.c: Likewise.
18423         * ccmp.c: Likewise.
18424         * cfg.c: Likewise.
18425         * cfganal.c: Likewise.
18426         * cfgbuild.c: Likewise.
18427         * cfgcleanup.c: Likewise.
18428         * cfgexpand.c: Likewise.
18429         * cfghooks.c: Likewise.
18430         * cfgloop.c: Likewise.
18431         * cfgloop.h: Likewise.
18432         * cfgloopanal.c: Likewise.
18433         * cfgloopmanip.c: Likewise.
18434         * cfgrtl.c: Likewise.
18435         * cgraph.c: Likewise.
18436         * cgraphbuild.c: Likewise.
18437         * cgraphclones.c: Likewise.
18438         * cgraphunit.c: Likewise.
18439         * cilk-common.c: Likewise.
18440         * combine-stack-adj.c: Likewise.
18441         * combine.c: Likewise.
18442         * compare-elim.c: Likewise.
18443         * convert.c: Likewise.
18444         * coverage.c: Likewise.
18445         * cppbuiltin.c: Likewise.
18446         * cprop.c: Likewise.
18447         * cse.c: Likewise.
18448         * cselib.c: Likewise.
18449         * data-streamer-in.c: Likewise.
18450         * data-streamer-out.c: Likewise.
18451         * data-streamer.c: Likewise.
18452         * dbxout.c: Likewise.
18453         * dce.c: Likewise.
18454         * ddg.c: Likewise.
18455         * debug.c: Likewise.
18456         * df-core.c: Likewise.
18457         * df-problems.c: Likewise.
18458         * df-scan.c: Likewise.
18459         * df.h: Likewise.
18460         * dfp.c: Likewise.
18461         * dojump.c: Likewise.
18462         * dominance.c: Likewise.
18463         * domwalk.c: Likewise.
18464         * double-int.c: Likewise.
18465         * dse.c: Likewise.
18466         * dumpfile.c: Likewise.
18467         * dwarf2asm.c: Likewise.
18468         * dwarf2cfi.c: Likewise.
18469         * dwarf2out.c: Likewise.
18470         * dwarf2out.h: Likewise.
18471         * emit-rtl.c: Likewise.
18472         * et-forest.c: Likewise.
18473         * except.c: Likewise.
18474         * explow.c: Likewise.
18475         * expmed.c: Likewise.
18476         * expr.c: Likewise.
18477         * final.c: Likewise.
18478         * fixed-value.c: Likewise.
18479         * fold-const.c: Likewise.
18480         * function.c: Likewise.
18481         * fwprop.c: Likewise.
18482         * gcc-plugin.h: Likewise.
18483         * gcse.c: Likewise.
18484         * generic-match-head.c: Likewise.
18485         * ggc-page.c: Likewise.
18486         * gimple-builder.c: Likewise.
18487         * gimple-expr.c: Likewise.
18488         * gimple-fold.c: Likewise.
18489         * gimple-iterator.c: Likewise.
18490         * gimple-low.c: Likewise.
18491         * gimple-match-head.c: Likewise.
18492         * gimple-pretty-print.c: Likewise.
18493         * gimple-ssa-isolate-paths.c: Likewise.
18494         * gimple-ssa-strength-reduction.c: Likewise.
18495         * gimple-streamer-in.c: Likewise.
18496         * gimple-streamer-out.c: Likewise.
18497         * gimple-streamer.h: Likewise.
18498         * gimple-walk.c: Likewise.
18499         * gimple.c: Likewise.
18500         * gimplify-me.c: Likewise.
18501         * gimplify.c: Likewise.
18502         * godump.c: Likewise.
18503         * graph.c: Likewise.
18504         * graphite-blocking.c: Likewise.
18505         * graphite-dependences.c: Likewise.
18506         * graphite-interchange.c: Likewise.
18507         * graphite-isl-ast-to-gimple.c: Likewise.
18508         * graphite-optimize-isl.c: Likewise.
18509         * graphite-poly.c: Likewise.
18510         * graphite-scop-detection.c: Likewise.
18511         * graphite-sese-to-poly.c: Likewise.
18512         * graphite.c: Likewise.
18513         * haifa-sched.c: Likewise.
18514         * hooks.h: Likewise.
18515         * hw-doloop.c: Likewise.
18516         * ifcvt.c: Likewise.
18517         * incpath.c: Likewise.
18518         * init-regs.c: Likewise.
18519         * internal-fn.c: Likewise.
18520         * ipa-chkp.c: Likewise.
18521         * ipa-comdats.c: Likewise.
18522         * ipa-cp.c: Likewise.
18523         * ipa-devirt.c: Likewise.
18524         * ipa-icf-gimple.c: Likewise.
18525         * ipa-icf.c: Likewise.
18526         * ipa-inline-analysis.c: Likewise.
18527         * ipa-inline-transform.c: Likewise.
18528         * ipa-inline.c: Likewise.
18529         * ipa-polymorphic-call.c: Likewise.
18530         * ipa-profile.c: Likewise.
18531         * ipa-prop.c: Likewise.
18532         * ipa-pure-const.c: Likewise.
18533         * ipa-ref.c: Likewise.
18534         * ipa-reference.c: Likewise.
18535         * ipa-split.c: Likewise.
18536         * ipa-utils.c: Likewise.
18537         * ipa-visibility.c: Likewise.
18538         * ipa.c: Likewise.
18539         * ira-build.c: Likewise.
18540         * ira-color.c: Likewise.
18541         * ira-conflicts.c: Likewise.
18542         * ira-costs.c: Likewise.
18543         * ira-emit.c: Likewise.
18544         * ira-lives.c: Likewise.
18545         * ira.c: Likewise.
18546         * jump.c: Likewise.
18547         * langhooks.c: Likewise.
18548         * lcm.c: Likewise.
18549         * loop-doloop.c: Likewise.
18550         * loop-init.c: Likewise.
18551         * loop-invariant.c: Likewise.
18552         * loop-iv.c: Likewise.
18553         * loop-unroll.c: Likewise.
18554         * lower-subreg.c: Likewise.
18555         * lra-assigns.c: Likewise.
18556         * lra-coalesce.c: Likewise.
18557         * lra-constraints.c: Likewise.
18558         * lra-eliminations.c: Likewise.
18559         * lra-lives.c: Likewise.
18560         * lra-remat.c: Likewise.
18561         * lra-spills.c: Likewise.
18562         * lra.c: Likewise.
18563         * lto-cgraph.c: Likewise.
18564         * lto-compress.c: Likewise.
18565         * lto-opts.c: Likewise.
18566         * lto-section-in.c: Likewise.
18567         * lto-section-out.c: Likewise.
18568         * lto-streamer-in.c: Likewise.
18569         * lto-streamer-out.c: Likewise.
18570         * lto-streamer.c: Likewise.
18571         * mcf.c: Likewise.
18572         * mode-switching.c: Likewise.
18573         * modulo-sched.c: Likewise.
18574         * omega.c: Likewise.
18575         * omp-low.c: Likewise.
18576         * optabs.c: Likewise.
18577         * opts-global.c: Likewise.
18578         * passes.c: Likewise.
18579         * plugin.c: Likewise.
18580         * postreload-gcse.c: Likewise.
18581         * postreload.c: Likewise.
18582         * predict.c: Likewise.
18583         * print-rtl.c: Likewise.
18584         * print-tree.c: Likewise.
18585         * profile.c: Likewise.
18586         * real.c: Likewise.
18587         * realmpfr.c: Likewise.
18588         * realmpfr.h: Likewise.
18589         * recog.c: Likewise.
18590         * ree.c: Likewise.
18591         * reg-stack.c: Likewise.
18592         * regcprop.c: Likewise.
18593         * reginfo.c: Likewise.
18594         * regrename.c: Likewise.
18595         * regs.h: Likewise.
18596         * regstat.c: Likewise.
18597         * reload.c: Likewise.
18598         * reload1.c: Likewise.
18599         * reorg.c: Likewise.
18600         * resource.c: Likewise.
18601         * rtl-chkp.c: Likewise.
18602         * rtlanal.c: Likewise.
18603         * rtlhooks.c: Likewise.
18604         * sanopt.c: Likewise.
18605         * sched-deps.c: Likewise.
18606         * sched-ebb.c: Likewise.
18607         * sched-rgn.c: Likewise.
18608         * sched-vis.c: Likewise.
18609         * sdbout.c: Likewise.
18610         * sel-sched-dump.c: Likewise.
18611         * sel-sched-ir.c: Likewise.
18612         * sel-sched.c: Likewise.
18613         * sese.c: Likewise.
18614         * shrink-wrap.c: Likewise.
18615         * shrink-wrap.h: Likewise.
18616         * simplify-rtx.c: Likewise.
18617         * stack-ptr-mod.c: Likewise.
18618         * statistics.c: Likewise.
18619         * stmt.c: Likewise.
18620         * stor-layout.c: Likewise.
18621         * store-motion.c: Likewise.
18622         * stringpool.c: Likewise.
18623         * symtab.c: Likewise.
18624         * target-globals.c: Likewise.
18625         * targhooks.c: Likewise.
18626         * toplev.c: Likewise.
18627         * tracer.c: Likewise.
18628         * trans-mem.c: Likewise.
18629         * tree-affine.c: Likewise.
18630         * tree-affine.h: Likewise.
18631         * tree-browser.c: Likewise.
18632         * tree-call-cdce.c: Likewise.
18633         * tree-cfg.c: Likewise.
18634         * tree-cfgcleanup.c: Likewise.
18635         * tree-chkp-opt.c: Likewise.
18636         * tree-chkp.c: Likewise.
18637         * tree-chrec.c: Likewise.
18638         * tree-complex.c: Likewise.
18639         * tree-data-ref.c: Likewise.
18640         * tree-dfa.c: Likewise.
18641         * tree-diagnostic.c: Likewise.
18642         * tree-dump.c: Likewise.
18643         * tree-eh.c: Likewise.
18644         * tree-emutls.c: Likewise.
18645         * tree-if-conv.c: Likewise.
18646         * tree-inline.c: Likewise.
18647         * tree-into-ssa.c: Likewise.
18648         * tree-iterator.c: Likewise.
18649         * tree-loop-distribution.c: Likewise.
18650         * tree-nested.c: Likewise.
18651         * tree-nrv.c: Likewise.
18652         * tree-object-size.c: Likewise.
18653         * tree-outof-ssa.c: Likewise.
18654         * tree-parloops.c: Likewise.
18655         * tree-phinodes.c: Likewise.
18656         * tree-predcom.c: Likewise.
18657         * tree-pretty-print.c: Likewise.
18658         * tree-pretty-print.h: Likewise.
18659         * tree-profile.c: Likewise.
18660         * tree-scalar-evolution.c: Likewise.
18661         * tree-sra.c: Likewise.
18662         * tree-ssa-address.c: Likewise.
18663         * tree-ssa-alias.c: Likewise.
18664         * tree-ssa-ccp.c: Likewise.
18665         * tree-ssa-coalesce.c: Likewise.
18666         * tree-ssa-copy.c: Likewise.
18667         * tree-ssa-copyrename.c: Likewise.
18668         * tree-ssa-dce.c: Likewise.
18669         * tree-ssa-dom.c: Likewise.
18670         * tree-ssa-dse.c: Likewise.
18671         * tree-ssa-forwprop.c: Likewise.
18672         * tree-ssa-ifcombine.c: Likewise.
18673         * tree-ssa-live.c: Likewise.
18674         * tree-ssa-loop-ch.c: Likewise.
18675         * tree-ssa-loop-im.c: Likewise.
18676         * tree-ssa-loop-ivcanon.c: Likewise.
18677         * tree-ssa-loop-ivopts.c: Likewise.
18678         * tree-ssa-loop-manip.c: Likewise.
18679         * tree-ssa-loop-niter.c: Likewise.
18680         * tree-ssa-loop-prefetch.c: Likewise.
18681         * tree-ssa-loop-unswitch.c: Likewise.
18682         * tree-ssa-loop.c: Likewise.
18683         * tree-ssa-loop.h: Likewise.
18684         * tree-ssa-math-opts.c: Likewise.
18685         * tree-ssa-operands.c: Likewise.
18686         * tree-ssa-phiopt.c: Likewise.
18687         * tree-ssa-phiprop.c: Likewise.
18688         * tree-ssa-pre.c: Likewise.
18689         * tree-ssa-propagate.c: Likewise.
18690         * tree-ssa-reassoc.c: Likewise.
18691         * tree-ssa-sccvn.c: Likewise.
18692         * tree-ssa-scopedtables.c: Likewise.
18693         * tree-ssa-sink.c: Likewise.
18694         * tree-ssa-strlen.c: Likewise.
18695         * tree-ssa-structalias.c: Likewise.
18696         * tree-ssa-tail-merge.c: Likewise.
18697         * tree-ssa-ter.c: Likewise.
18698         * tree-ssa-threadedge.c: Likewise.
18699         * tree-ssa-threadupdate.c: Likewise.
18700         * tree-ssa-uncprop.c: Likewise.
18701         * tree-ssa-uninit.c: Likewise.
18702         * tree-ssa.c: Likewise.
18703         * tree-ssanames.c: Likewise.
18704         * tree-stdarg.c: Likewise.
18705         * tree-streamer-in.c: Likewise.
18706         * tree-streamer-out.c: Likewise.
18707         * tree-streamer.c: Likewise.
18708         * tree-switch-conversion.c: Likewise.
18709         * tree-tailcall.c: Likewise.
18710         * tree-vect-data-refs.c: Likewise.
18711         * tree-vect-generic.c: Likewise.
18712         * tree-vect-loop-manip.c: Likewise.
18713         * tree-vect-loop.c: Likewise.
18714         * tree-vect-patterns.c: Likewise.
18715         * tree-vect-slp.c: Likewise.
18716         * tree-vect-stmts.c: Likewise.
18717         * tree-vectorizer.c: Likewise.
18718         * tree-vrp.c: Likewise.
18719         * tree.c: Likewise.
18720         * tsan.c: Likewise.
18721         * ubsan.c: Likewise.
18722         * valtrack.c: Likewise.
18723         * value-prof.c: Likewise.
18724         * var-tracking.c: Likewise.
18725         * varasm.c: Likewise.
18726         * varpool.c: Likewise.
18727         * vmsdbgout.c: Likewise.
18728         * vtable-verify.c: Likewise.
18729         * web.c: Likewise.
18730         * wide-int-print.cc: Likewise.
18731         * wide-int-print.h: Likewise.
18732         * wide-int.cc: Likewise.
18733         * xcoffout.c: Likewise.
18734         * config/aarch64/aarch64-builtins.c: Likewise.
18735         * config/aarch64/aarch64.c: Likewise.
18736         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18737         * config/alpha/alpha.c: Likewise.
18738         * config/arc/arc.c: Likewise.
18739         * config/arm/aarch-common.c: Likewise.
18740         * config/arm/arm-builtins.c: Likewise.
18741         * config/arm/arm-c.c: Likewise.
18742         * config/arm/arm.c: Likewise.
18743         * config/avr/avr-c.c: Likewise.
18744         * config/avr/avr-log.c: Likewise.
18745         * config/avr/avr.c: Likewise.
18746         * config/bfin/bfin.c: Likewise.
18747         * config/c6x/c6x.c: Likewise.
18748         * config/cr16/cr16.c: Likewise.
18749         * config/cris/cris.c: Likewise.
18750         * config/darwin-c.c: Likewise.
18751         * config/darwin.c: Likewise.
18752         * config/default-c.c: Likewise.
18753         * config/epiphany/epiphany.c: Likewise.
18754         * config/epiphany/mode-switch-use.c: Likewise.
18755         * config/epiphany/resolve-sw-modes.c: Likewise.
18756         * config/fr30/fr30.c: Likewise.
18757         * config/frv/frv.c: Likewise.
18758         * config/ft32/ft32.c: Likewise.
18759         * config/glibc-c.c: Likewise.
18760         * config/h8300/h8300.c: Likewise.
18761         * config/i386/i386-c.c: Likewise.
18762         * config/i386/i386.c: Likewise.
18763         * config/i386/msformat-c.c: Likewise.
18764         * config/i386/winnt-cxx.c: Likewise.
18765         * config/i386/winnt-stubs.c: Likewise.
18766         * config/i386/winnt.c: Likewise.
18767         * config/ia64/ia64-c.c: Likewise.
18768         * config/ia64/ia64.c: Likewise.
18769         * config/iq2000/iq2000.c: Likewise.
18770         * config/lm32/lm32.c: Likewise.
18771         * config/m32c/m32c-pragma.c: Likewise.
18772         * config/m32c/m32c.c: Likewise.
18773         * config/m32r/m32r.c: Likewise.
18774         * config/m68k/m68k.c: Likewise.
18775         * config/mcore/mcore.c: Likewise.
18776         * config/mep/mep-pragma.c: Likewise.
18777         * config/mep/mep.c: Likewise.
18778         * config/microblaze/microblaze-c.c: Likewise.
18779         * config/microblaze/microblaze.c: Likewise.
18780         * config/mips/mips.c: Likewise.
18781         * config/mmix/mmix.c: Likewise.
18782         * config/mn10300/mn10300.c: Likewise.
18783         * config/moxie/moxie.c: Likewise.
18784         * config/msp430/msp430-c.c: Likewise.
18785         * config/msp430/msp430.c: Likewise.
18786         * config/nds32/nds32-cost.c: Likewise.
18787         * config/nds32/nds32-fp-as-gp.c: Likewise.
18788         * config/nds32/nds32-intrinsic.c: Likewise.
18789         * config/nds32/nds32-isr.c: Likewise.
18790         * config/nds32/nds32-md-auxiliary.c: Likewise.
18791         * config/nds32/nds32-memory-manipulation.c: Likewise.
18792         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18793         * config/nds32/nds32-predicates.c: Likewise.
18794         * config/nds32/nds32.c: Likewise.
18795         * config/nios2/nios2.c: Likewise.
18796         * config/nvptx/nvptx.c: Likewise.
18797         * config/pa/pa.c: Likewise.
18798         * config/pdp11/pdp11.c: Likewise.
18799         * config/rl78/rl78-c.c: Likewise.
18800         * config/rl78/rl78.c: Likewise.
18801         * config/rs6000/rs6000-c.c: Likewise.
18802         * config/rs6000/rs6000.c: Likewise.
18803         * config/rx/rx.c: Likewise.
18804         * config/s390/s390-c.c: Likewise.
18805         * config/s390/s390.c: Likewise.
18806         * config/sh/sh-c.c: Likewise.
18807         * config/sh/sh-mem.cc: Likewise.
18808         * config/sh/sh.c: Likewise.
18809         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18810         * config/sh/sh_treg_combine.cc: Likewise.
18811         * config/sol2-c.c: Likewise.
18812         * config/sol2-cxx.c: Likewise.
18813         * config/sol2-stubs.c: Likewise.
18814         * config/sol2.c: Likewise.
18815         * config/sparc/sparc-c.c: Likewise.
18816         * config/sparc/sparc.c: Likewise.
18817         * config/spu/spu-c.c: Likewise.
18818         * config/spu/spu.c: Likewise.
18819         * config/stormy16/stormy16.c: Likewise.
18820         * config/tilegx/mul-tables.c: Likewise.
18821         * config/tilegx/tilegx-c.c: Likewise.
18822         * config/tilegx/tilegx.c: Likewise.
18823         * config/tilepro/mul-tables.c: Likewise.
18824         * config/tilepro/tilepro-c.c: Likewise.
18825         * config/tilepro/tilepro.c: Likewise.
18826         * config/v850/v850-c.c: Likewise.
18827         * config/v850/v850.c: Likewise.
18828         * config/vax/vax.c: Likewise.
18829         * config/visium/visium.c: Likewise.
18830         * config/vms/vms-c.c: Likewise.
18831         * config/vms/vms.c: Likewise.
18832         * config/vxworks.c: Likewise.
18833         * config/winnt-c.c: Likewise.
18834         * config/xtensa/xtensa.c: Likewise.
18835         * common/config/bfin/bfin-common.c: Likewise.
18836
18837 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
18838
18839         * tree.h (tree_code_for_canonical_type_merging): New function.
18840         * tree.c (gimple_canonical_types_compatible_p): Use
18841         tree_code_for_canonical_type_merging..
18842
18843 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18844
18845         PR c++/66192
18846         PR target/66200
18847         * doc/tm.texi: Regenerate.
18848         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18849         * target.def (TARGET_RELAXED_ORDERING): Likewise.
18850         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18851         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18852         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18853         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18854         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18855         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18856         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18857
18858 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18859
18860         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18861         register fma steering pass.
18862         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18863         AARCH64_TUNE_FMA_STEERING.
18864
18865 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
18866
18867         * tree.c (verify_type_variant): Verify that type and variant is
18868         compatible.
18869         (gimple_canonical_types_compatible_p): Look for main variants.
18870
18871 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18872
18873         * config.gcc (powerpc*-*-*): Add support for a new configure
18874         option --with-advance-toolchain=<xxx> which overrides using the
18875         default header files, libraries and dynamic linker.
18876
18877         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18878         specs to support the configure --with-advance-toolchain=<xxx>
18879         option.
18880         (INCLUDE_EXTRA_SPEC): Likewise.
18881         (LINK_OS_EXTRA_SPEC32): Likewise.
18882         (LINK_OK_EXTRA_SPEC64): Likewise.
18883         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18884         (DYNAMIC_LINKER_PREFIX): Likewise.
18885         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18886         toolchain support.
18887         (GLIBC_DYNAMIC_LINKER32): Likewise.
18888         (GLIBC_DYNAMIC_LINKER64): Likewise.
18889         (LINK_OS_LINUX_SPEC32): Likewise.
18890         (LINK_OS_LINUX_SPEC64): Likewise.
18891
18892         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18893         configuration option.
18894
18895 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
18896
18897         PR target/66275
18898         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18899         to determine current function ABI.
18900         (ix86_function_value_regno_p): Ditto.
18901
18902 2015-06-03  Martin Liska  <mliska@suse.cz>
18903
18904         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18905         * bitmap.h (struct bitmap_usage): Likewise.
18906         * ggc-common.c (struct ggc_usage): Likewise.
18907         * mem-stats.h (struct mem_location): Likewise.
18908         (struct mem_usage): Likewise.
18909         * vec.c (struct vec_usage): Likewise.
18910
18911 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
18912
18913         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18914         -Bsymbolic.
18915
18916 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
18917
18918         * doc/plugins.texi (enum plugin_event): New event.
18919         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18920         and PLUGIN_FINISH_FUNCTION.
18921         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18922         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18923
18924 2015-06-03  Richard Biener  <rguenther@suse.de>
18925
18926         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18927         compute GROUP_GAP for the first element.
18928         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18929         on in-group gaps.
18930
18931 2015-06-03  Nick Clifton  <nickc@redhat.com>
18932
18933         * config/rl78/rl78-real.md: Add peepholes to avoid a register
18934         copy when calling a function.
18935         * config/rl78/rl78.c (need_to_save): Do not push the frame
18936         pointer in an interrupt handler prologue if it is never used.
18937
18938 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18939
18940         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18941
18942 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18943
18944         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18945         reference when cloning alias node.
18946
18947 2015-06-03  Martin Liska  <mliska@suse.cz>
18948
18949         * alloc-pool.h (struct pool_usage): Correct space padding.
18950         * ggc-page.c (ggc_print_statistics): Align columns in a report.
18951         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18952         * tree.c (dump_tree_statistics): Align columns in a report.
18953
18954 2015-06-03  Martin Liska  <mliska@suse.cz>
18955
18956         * alloc-pool.c (allocate_pool_descriptor): Remove.
18957         (struct pool_output_info): Likewise.
18958         (print_alloc_pool_statistics): Likewise.
18959         (dump_alloc_pool_statistics): Likewise.
18960         * alloc-pool.h (struct pool_usage): New struct.
18961         (pool_allocator::initialize): Change usage of memory statistics
18962         to a new interface.
18963         (pool_allocator::release): Likewise.
18964         (pool_allocator::allocate): Likewise.
18965         (pool_allocator::remove): Likewise.
18966         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18967         for a pool allocator.
18968         * mem-stats.h (struct mem_location): Add new ctor.
18969         (struct mem_usage): Add counter for number of
18970         instances.
18971         (mem_alloc_description::register_descriptor): New overload of
18972         * mem-stats.h (mem_location::to_string): New function.
18973         * bitmap.h (struct bitmap_usage): Use this new function.
18974         * ggc-common.c (struct ggc_usage): Likewise.
18975         the function.
18976
18977 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18978
18979         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18980         of GCC_INSN_FLAGS_H block.
18981
18982 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18983
18984         * explow.c (plus_constant): Update check after force_const_mem call
18985         to see if the value returned is not a NULL_RTX.
18986
18987 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18988
18989         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18990         remove instumentation thunks calling reachable functions.
18991         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18992         * lto/lto-partition.c (privatize_symbol_name_1): New.
18993         (privatize_symbol_name): Privatize both decl and orig_decl
18994         names for instrumented functions.
18995         * cgraph.c (cgraph_node::verify_node): Add transparent
18996         alias chain check for instrumented node.
18997
18998 2015-06-03  Marek Polacek  <polacek@redhat.com>
18999
19000         PR c/64223
19001         PR c/29358
19002         * tree.c (attribute_value_equal): Handle attribute format.
19003         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19004
19005 2015-06-03  Richard Biener  <rguenther@suse.de>
19006
19007         PR tree-optimization/63916
19008         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19009         Forward-propagate non-invariant addresses by splicing their
19010         reference ops if the result isn't going to be used by PRE.
19011         (vn_reference_lookup_3): Remove pointless assert.
19012
19013 2015-06-03  Richard Biener  <rguenther@suse.de>
19014
19015         PR tree-optimization/66375
19016         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19017         add to the evolution before following SSA edges.
19018
19019 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
19020
19021         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19022         (dump_use, dump_cand, find_induction_variables): Pass new argument
19023         to dump_iv.
19024         (record_use): Preserve the ssa name information in IV.
19025
19026 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
19027
19028         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19029         NO_MODE_TEST.
19030         (add_mode_tests): Don't add mode tests if the predicate only
19031         accepts scalar constant integers.  Otherwise, allow the mode
19032         of "op" to be VOIDmode if the predicate does accept such integers.
19033
19034 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
19035
19036         PR target/66258
19037         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19038         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19039         (aarch64_secondary_reload): Likewise
19040         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19041         to !TARGET_FLOAT.
19042         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19043         Likewise.
19044
19045 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
19046             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19047
19048         PR target/65768
19049         * cprop.c (try_replace_reg): Check cost of constants before propagating.
19050
19051 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19052
19053         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19054         provide access to the IBM extended double floating point mode if
19055         long double is IEEE 128-bit floating point.
19056         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19057         point if long double is the IBM extended double type.
19058
19059         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19060         enable adding IEEE 128-bit floating point support.
19061         (-mfloat128-software): Likewise.
19062         (-mfloat128-sw): Likewise.
19063
19064         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19065         128-bit floating point types to occupy any register if
19066         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
19067         -mfloat128-software is enabled.
19068         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19069         support.
19070         (rs6000_option_override_internal): Add -mfloat128-* support.
19071         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19072
19073         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19074         and float128 type nodes.
19075         (ieee128_float_type_node): Likewise.
19076         (ibm128_float_type_node): Likewise.
19077
19078 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19079
19080         PR target/66136
19081         * config/aarch64/geniterators.sh: Rewrite in awk.
19082
19083 2015-06-02  Martin Liska  <mliska@suse.cz>
19084
19085         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19086         values to avoid -Wmaybe-uninitialized errors.
19087
19088 2015-06-02  Richard Biener  <rguenther@suse.de>
19089
19090         PR debug/65549
19091         * dwarf2out.c (lookup_context_die): New function.
19092         (resolve_addr): Avoid forcing a full DIE for the
19093         target of a DW_TAG_GNU_call_site during late compilation.
19094         Instead create a stub DIE without a type if we have a
19095         context DIE present.
19096
19097 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
19098
19099         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19100
19101 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19102
19103         PR tree-optimization/48052
19104         * cfgloop.h (struct control_iv): New.
19105         (struct loop): New field control_ivs.
19106         * tree-ssa-loop-niter.c : Include "stor-layout.h".
19107         (number_of_iterations_lt): Set no_overflow information.
19108         (number_of_iterations_exit): Init control iv in niter struct.
19109         (record_control_iv): New.
19110         (estimate_numbers_of_iterations_loop): Call record_control_iv.
19111         (loop_exits_before_overflow): New.  Interface factored out of
19112         scev_probably_wraps_p.
19113         (scev_probably_wraps_p): Factor loop niter related code into
19114         loop_exits_before_overflow.
19115         (free_numbers_of_iterations_estimates_loop): Free control ivs.
19116         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19117
19118 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19119
19120         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19121         the target doesn't belong to the current function.
19122
19123 2015-06-02  Marek Polacek  <polacek@redhat.com>
19124
19125         PR middle-end/66345
19126         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19127         get_maxval_strlen does not produce an INTEGER_CST.
19128
19129 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19130
19131         * config/arc/constraints.md: Use lower-case names in match_code.
19132         * config/mmix/constraints.md: Likewise.
19133
19134 2015-06-02  Richard Biener  <rguenther@suse.de>
19135
19136         PR tree-optimization/65961
19137         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19138         check and clarify dump message.
19139         (vect_build_slp_tree): If all children are built up from scalars
19140         build up the parent from scalars instead.
19141         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19142
19143 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19144
19145         PR other/65366
19146         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19147         instead of print ... .
19148
19149 2015-06-02  Alan Modra  <amodra@gmail.com>
19150
19151         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19152         2014-08-11 change.
19153
19154 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19155
19156         PR tree-optimization/52563
19157         PR tree-optimization/62173
19158         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19159         (alloc_iv, set_iv): New parameter.
19160         (determine_biv_step): Delete.
19161         (find_bivs): Inline original determine_biv_step.  Pass new
19162         argument to set_iv.
19163         (idx_find_step): Use no_overflow information for conversion.
19164         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19165         resolve_mixers handle folded_casts.
19166         (instantiate_scev_name): Change bool parameter to bool pointer.
19167         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19168         (instantiate_array_ref, instantiate_scev_not): Ditto.
19169         (instantiate_scev_3, instantiate_scev_2): Ditto.
19170         (instantiate_scev_1, instantiate_scev_r): Ditto.
19171         (instantiate_scev_convert, ): Change parameter.  Pass argument
19172         to chrec_convert_aggressive.
19173         (instantiate_scev): Change argument.
19174         (resolve_mixers): New parameter and set it.
19175         (scev_const_prop): New argument.
19176         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19177         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19178         of chrec_conert_1.
19179         (chrec_convert): New parameter.  Move definition below.
19180         (chrec_convert_aggressive): New parameter and set it.  Call
19181         convert_affine_scev.
19182         * tree-chrec.h (chrec_convert): New parameter.
19183         (chrec_convert_aggressive): Ditto.
19184
19185 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19186
19187         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19188         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19189         the LHS of a no-return call if its type has variable size.
19190         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19191         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19192
19193 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19194
19195         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19196         * config.in: Regenerate.
19197
19198 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19199
19200         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19201         consecutive accesses within outer-loop with force_vectorize
19202         for references with zero step in inner-loop.
19203
19204 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19205
19206         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19207         rather than from gcc/build directory.
19208
19209 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19210
19211         PR target/65697
19212         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19213         for __sync memory models, emit initial loads and final barriers as
19214         appropriate.
19215
19216 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19217
19218         PR target/65697
19219         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19220         (aarch64_split_atomic_op): Check for __sync memory models, emit
19221         appropriate initial loads and final barriers.
19222
19223 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19224
19225         * Makefile.in: Fix gcov dependencies that should
19226         not point to a build folder.
19227
19228 2015-06-01  Richard Biener  <rguenther@suse.de>
19229
19230         Revert
19231         2015-05-29  Richard Biener  <rguenther@suse.de>
19232
19233         PR tree-optimization/66314
19234         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19235         parameter that says which loop the new block belongs to.
19236         (ssa_create_duplicates): Blocks duplicated for the threaded
19237         path belong to the loop of the thread destination.
19238
19239 2015-06-01  Martin Liska  <mliska@suse.cz>
19240
19241         * sched-deps.c: Include pool-alloc.h before
19242         cselib.h header file is included.
19243
19244 2015-06-01  Richard Biener  <rguenther@suse.de>
19245
19246         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19247         functions.
19248
19249 2015-06-01  Martin Liska  <mliska@suse.cz>
19250
19251         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19252         a function local variable.
19253
19254 2015-06-01  Martin Liska  <mliska@suse.cz>
19255
19256         * alloc-pool.c (create_alloc_pool): Remove.
19257         (empty_alloc_pool): Likewise.
19258         (free_alloc_pool): Likewise.
19259         (free_alloc_pool_if_empty): Likewise.
19260         (pool_alloc): Likewise.
19261         (pool_free): Likewise.
19262         * alloc-pool.h: Remove old declarations.
19263
19264 2015-06-01  Martin Liska  <mliska@suse.cz>
19265
19266         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19267         (ira_create_object): Likewise.
19268         (ira_create_allocno): Likewise.
19269         (ira_create_live_range): Likewise.
19270         (copy_live_range): Likewise.
19271         (ira_finish_live_range): Likewise.
19272         (ira_free_allocno_costs): Likewise.
19273         (finish_allocno): Likewise.
19274         (finish_allocnos): Likewise.
19275         (initiate_prefs): Likewise.
19276         (ira_create_pref): Likewise.
19277         (finish_pref): Likewise.
19278         (finish_prefs): Likewise.
19279         (initiate_copies): Likewise.
19280         (ira_create_copy): Likewise.
19281         (finish_copy): Likewise.
19282         (finish_copies): Likewise.
19283         (finish_prefs): Likewise.
19284
19285 2015-06-01  Martin Liska  <mliska@suse.cz>
19286
19287         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19288         (allocate_and_init_ipcp_value): Likewise.
19289         (ipcp_lattice::add_value): Likewise.
19290         (merge_agg_lats_step): Likewise.
19291         (ipcp_driver): Likewise.
19292         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19293         (ipa_free_all_structures_after_iinln): Likewise.
19294         * ipa-prop.h: Likewise.
19295
19296 2015-06-01  Martin Liska  <mliska@suse.cz>
19297
19298         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19299         pool allocator.
19300         (set_hint_predicate): Likewise.
19301         (inline_summary_alloc): Likewise.
19302         (reset_inline_edge_summary): Likewise.
19303         (reset_inline_summary): Likewise.
19304         (set_cond_stmt_execution_predicate): Likewise.
19305         (set_switch_stmt_execution_predicate): Likewise.
19306         (compute_bb_predicates): Likewise.
19307         (estimate_function_body_sizes): Likewise.
19308         (inline_free_summary): Likewise.
19309
19310 2015-06-01  Martin Liska  <mliska@suse.cz>
19311
19312         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19313         (ipa_edge_duplication_hook): Likewise.
19314         (ipa_free_all_structures_after_ipa_cp): Likewise.
19315         (ipa_free_all_structures_after_iinln): Likewise.
19316
19317 2015-06-01  Martin Liska  <mliska@suse.cz>
19318
19319         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19320         (ipa_profile_generate_summary): Likewise.
19321         (ipa_profile_read_summary): Likewise.
19322         (ipa_profile): Likewise.
19323
19324 2015-06-01  Martin Liska  <mliska@suse.cz>
19325
19326         * tree-ssa-structalias.c (new_var_info): Use new type-based
19327         pool allocator.
19328         (new_constraint): Likewise.
19329         (init_alias_vars): Likewise.
19330         (delete_points_to_sets): Likewise.
19331
19332 2015-06-01  Martin Liska  <mliska@suse.cz>
19333
19334         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19335         (free_strinfo): Likewise.
19336         (pass_strlen::execute): Likewise.
19337
19338 2015-06-01  Martin Liska  <mliska@suse.cz>
19339
19340         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19341         pool allocator.
19342         (vn_reference_insert_pieces): Likewise.
19343         (vn_phi_insert): Likewise.
19344         (visit_reference_op_call): Likewise.
19345         (copy_phi): Likewise.
19346         (copy_reference): Likewise.
19347         (process_scc): Likewise.
19348         (allocate_vn_table): Likewise.
19349         (free_vn_table): Likewise.
19350
19351 2015-06-01  Martin Liska  <mliska@suse.cz>
19352
19353         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19354         pool allocator.
19355         (add_repeat_to_ops_vec): Likewise.
19356         (get_ops): Likewise.
19357         (maybe_optimize_range_tests): Likewise.
19358         (init_reassoc): Likewise.
19359         (fini_reassoc): Likewise.
19360
19361 2015-06-01  Martin Liska  <mliska@suse.cz>
19362
19363         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19364         pool allocator.
19365         (bitmap_set_new): Likewise.
19366         (get_or_alloc_expr_for_constant): Likewise.
19367         (get_or_alloc_expr_for): Likewise.
19368         (phi_translate_1): Likewise.
19369         (compute_avail): Likewise.
19370         (init_pre): Likewise.
19371         (fini_pre): Likewise.
19372
19373 2015-06-01  Martin Liska  <mliska@suse.cz>
19374
19375         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19376         (delete_dep_node): Likewise.
19377         (create_deps_list): Likewise.
19378         (free_deps_list): Likewise.
19379         (sched_deps_init): Likewise.
19380         (sched_deps_finish): Likewise.
19381
19382 2015-06-01  Martin Liska  <mliska@suse.cz>
19383
19384         * regcprop.c (free_debug_insn_changes): Use new type-based
19385         pool allocator.
19386         (replace_oldest_value_reg): Likewise.
19387         (pass_cprop_hardreg::execute): Likewise.
19388
19389 2015-06-01  Martin Liska  <mliska@suse.cz>
19390
19391         * ira-build.c (initiate_cost_vectors): Use new type-based
19392         pool allocator.
19393         (ira_allocate_cost_vector): Likewise.
19394         (ira_free_cost_vector): Likewise.
19395         (finish_cost_vectors): Likewise.
19396
19397 2015-06-01  Martin Liska  <mliska@suse.cz>
19398
19399         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19400         pool allocator.
19401         (free_sched_pools): Likewise.
19402         * sel-sched-ir.h (_list_alloc): Likewise.
19403         (_list_remove): Likewise.
19404
19405 2015-06-01  Martin Liska  <mliska@suse.cz>
19406
19407         * stmt.c (add_case_node): Use new type-based pool allocator.
19408         (expand_case): Likewise.
19409         (expand_sjlj_dispatch_table): Likewise.
19410
19411 2015-06-01  Martin Liska  <mliska@suse.cz>
19412
19413         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19414         (free_bb): Likewise.
19415         (pass_cse_reciprocals::execute): Likewise.
19416
19417 2015-06-01  Martin Liska  <mliska@suse.cz>
19418
19419         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19420         (sra_deinitialize) Likewise.
19421         (create_access_1) Likewise.
19422         (build_accesses_from_assign) Likewise.
19423         (create_artificial_child_access) Likewise.
19424
19425 2015-06-01  Martin Liska  <mliska@suse.cz>
19426
19427         * dse.c (get_group_info):Use new type-based pool allocator.
19428         (dse_step0) Likewise.
19429         (free_store_info) Likewise.
19430         (delete_dead_store_insn) Likewise.
19431         (free_read_records) Likewise.
19432         (record_store) Likewise.
19433         (replace_read) Likewise.
19434         (check_mem_read_rtx) Likewise.
19435         (scan_insn) Likewise.
19436         (dse_step1) Likewise.
19437         (dse_step7) Likewise.
19438
19439 2015-06-01  Martin Liska  <mliska@suse.cz>
19440
19441         * df-scan.c (struct df_scan_problem_data):Use new type-based
19442         pool allocator.
19443         (df_scan_free_internal) Likewise.
19444         (df_scan_alloc) Likewise.
19445         (df_grow_reg_info) Likewise.
19446         (df_free_ref) Likewise.
19447         (df_insn_create_insn_record) Likewise.
19448         (df_mw_hardreg_chain_delete) Likewise.
19449         (df_insn_info_delete) Likewise.
19450         (df_free_collection_rec) Likewise.
19451         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19452         (df_sort_and_compress_mws) Likewise.
19453         (df_ref_create_structure) Likewise.
19454         (df_ref_record) Likewise.
19455
19456 2015-06-01  Martin Liska  <mliska@suse.cz>
19457
19458         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19459         (df_chain_unlink_1) Likewise.
19460         (df_chain_unlink) Likewise.
19461         (df_chain_remove_problem) Likewise.
19462         (df_chain_alloc) Likewise.
19463         (df_chain_free) Likewise.
19464         * df.h (struct dataflow) Likewise.
19465
19466 2015-06-01  Martin Liska  <mliska@suse.cz>
19467
19468         * cselib.c (new_elt_list):Use new type-based pool allocator.
19469         (new_elt_loc_list) Likewise.
19470         (unchain_one_elt_list) Likewise.
19471         (unchain_one_elt_loc_list) Likewise.
19472         (unchain_one_value) Likewise.
19473         (new_cselib_val) Likewise.
19474         (cselib_init) Likewise.
19475         (cselib_finish) Likewise.
19476
19477 2015-06-01  Martin Liska  <mliska@suse.cz>
19478
19479         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19480         (sh_reorg) Likewise.
19481
19482 2015-06-01  Martin Liska  <mliska@suse.cz>
19483
19484         * cfg.c (initialize_original_copy_tables):Use new type-based
19485         pool allocator.
19486         (free_original_copy_tables) Likewise.
19487         (copy_original_table_clear) Likewise.
19488         (copy_original_table_set) Likewise.
19489
19490 2015-06-01  Martin Liska  <mliska@suse.cz>
19491
19492         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19493         pool allocator.
19494         (asan_mem_ref_new) Likewise.
19495         (free_mem_ref_resources) Likewise.
19496
19497 2015-06-01  Martin Liska  <mliska@suse.cz>
19498
19499         * var-tracking.c (variable_htab_free):Use new type-based
19500         pool allocator.
19501         (attrs_list_clear) Likewise.
19502         (attrs_list_insert) Likewise.
19503         (attrs_list_copy) Likewise.
19504         (shared_hash_unshare) Likewise.
19505         (shared_hash_destroy) Likewise.
19506         (unshare_variable) Likewise.
19507         (var_reg_delete_and_set) Likewise.
19508         (var_reg_delete) Likewise.
19509         (var_regno_delete) Likewise.
19510         (drop_overlapping_mem_locs) Likewise.
19511         (variable_union) Likewise.
19512         (insert_into_intersection) Likewise.
19513         (canonicalize_values_star) Likewise.
19514         (variable_merge_over_cur) Likewise.
19515         (dataflow_set_merge) Likewise.
19516         (remove_duplicate_values) Likewise.
19517         (variable_post_merge_new_vals) Likewise.
19518         (dataflow_set_preserve_mem_locs) Likewise.
19519         (dataflow_set_remove_mem_locs) Likewise.
19520         (variable_from_dropped) Likewise.
19521         (variable_was_changed) Likewise.
19522         (set_slot_part) Likewise.
19523         (clobber_slot_part) Likewise.
19524         (delete_slot_part) Likewise.
19525         (loc_exp_insert_dep) Likewise.
19526         (notify_dependents_of_changed_value) Likewise.
19527         (emit_notes_for_differences_1) Likewise.
19528         (vt_emit_notes) Likewise.
19529         (vt_initialize) Likewise.
19530         (vt_finalize) Likewise.
19531
19532 2015-06-01  Martin Liska  <mliska@suse.cz>
19533
19534         * ira-color.c (init_update_cost_records):Use new type-based
19535         pool allocator.
19536         (get_update_cost_record) Likewise.
19537         (free_update_cost_record_list) Likewise.
19538         (finish_update_cost_records) Likewise.
19539         (initiate_cost_update) Likewise.
19540
19541 2015-06-01  Martin Liska  <mliska@suse.cz>
19542
19543         * lra.c (init_insn_regs): Use new type-based pool allocator.
19544         (new_insn_reg) Likewise.
19545         (free_insn_reg) Likewise.
19546         (free_insn_regs) Likewise.
19547         (finish_insn_regs) Likewise.
19548         (init_insn_recog_data) Likewise.
19549         (init_reg_info) Likewise.
19550         (finish_reg_info) Likewise.
19551         (lra_free_copies) Likewise.
19552         (lra_create_copy) Likewise.
19553         (invalidate_insn_data_regno_info) Likewise.
19554
19555 2015-06-01  Martin Liska  <mliska@suse.cz>
19556
19557         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19558         (free_live_range_list) Likewise.
19559         (create_live_range) Likewise.
19560         (copy_live_range) Likewise.
19561         (lra_merge_live_ranges) Likewise.
19562         (remove_some_program_points_and_update_live_ranges) Likewise.
19563         (lra_live_ranges_init) Likewise.
19564         (lra_live_ranges_finish) Likewise.
19565
19566 2015-06-01  Martin Liska  <mliska@suse.cz>
19567
19568         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19569         (et_new_tree): Likewise.
19570         (et_free_tree): Likewise.
19571         (et_free_tree_force): Likewise.
19572         (et_free_pools): Likewise.
19573         (et_split): Likewise.
19574
19575 2015-06-01  Martin Liska  <mliska@suse.cz>
19576
19577         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19578         to header file.
19579         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19580         (pool_allocator::release): Likewise.
19581         (inline pool_allocator::release_if_empty): Likewise.
19582         (inline pool_allocator::~pool_allocator): Likewise.
19583         (pool_allocator::allocate): Likewise.
19584         (pool_allocator::remove): Likewise.
19585
19586 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19587
19588         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19589         in comment.
19590
19591 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19592
19593         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19594         to fusible_ops.
19595         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19596         (arm_macro_fusion_p): Likewise.
19597         (arm_macro_fusion_pair_p): Likewise.
19598
19599 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19600
19601         * config/aarch64/aarch64-protos.h (tune_params): Rename
19602         fuseable_ops to fusible_ops.
19603         * config/aarch64/aarch64.c (generic_tunings): Rename
19604         fuseable_ops to fusible_ops.
19605         (cortexa53_tunings): Likewise.
19606         (cortexa57_tunings): Likewise.
19607         (thunderx_tunings): Likewise.
19608         (xgene1_tunings): Likewise.
19609         (aarch64_macro_fusion_p): Likewise.
19610         (aarch64_macro_fusion_pair_p): Likewise.
19611
19612 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19613
19614         * config/s390/driver-native.c: New file.
19615         * config/s390/x-native: New file.
19616         * config.host: Add new files for s390.
19617         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19618         and -march=native
19619         * config.gcc: Likewise.
19620         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19621         * config/s390/s390-opts.h (enum processor_type): Ditto.
19622         * config/s390/s390.c (s390_option_override): Catch unhandled
19623         PROCESSOR_NATIVE
19624
19625 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19626
19627         PR target/65527
19628         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19629         redirection for instrumented calls.
19630         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19631         (append_compiler_options): Append -fcheck-pointer-bounds.
19632         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19633         (chkp_redirect_edge): New.
19634         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19635         (chkp_redirect_edge): New.
19636
19637 2015-06-01  Richard Biener  <rguenther@suse.de>
19638
19639         PR tree-optimization/66280
19640         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19641         def-use walking.
19642
19643 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19644
19645         * config/aarch64/aarch64.md
19646         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19647         logic_shift_imm.
19648
19649 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19650
19651         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19652         Remove obsolete kludge.
19653
19654 2015-06-01  Richard Biener  <rguenther@suse.de>
19655
19656         * tree-ssa-reassoc.c (get_rank): Simplify.
19657
19658 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19659
19660         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19661         * configure: Regenerated.
19662
19663 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19664
19665         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19666         issue (add space between string literal and macro).
19667         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19668
19669 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19670
19671         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19672         implict or explicit -fPIE or -fpie.
19673
19674 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19675
19676         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19677
19678 2015-05-28  DJ Delorie  <dj@redhat.com>
19679
19680         * expmed.c (extract_bit_field_1): Avoid clobbering a
19681         yet-to-be-used base/index register.
19682
19683 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19684
19685         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19686         (alias_stats): Add num_universal.
19687         (alias_set_subset_of): Special case pointers; be ready for NULL
19688         children.
19689         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19690         children.
19691         (init_alias_set_entry): Break out from ...
19692         (record_alias_subset): ... here; propagate new fields;
19693         allocate children only when really needed.
19694         (get_alias_set): Do less generous pointer globbing.
19695         (dump_alias_stats_in_alias_c): Update statistics.
19696
19697 2015-05-30  Alan Modra  <amodra@gmail.com>
19698
19699         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19700         correct block for use of r12.
19701         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19702
19703 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19704
19705         PR target/66215
19706         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19707         with -mhotpatch=.
19708
19709 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19710
19711         PR tree-optimization/66142
19712         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19713         virtual phis that feed themselves.
19714
19715 2015-05-29  Richard Biener  <rguenther@suse.de>
19716
19717         PR tree-optimization/66314
19718         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19719         parameter that says which loop the new block belongs to.
19720         (ssa_create_duplicates): Blocks duplicated for the threaded
19721         path belong to the loop of the thread destination.
19722
19723 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19724
19725         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19726         to cleanup-saved-temps.
19727         * doc/sourcebuild.texi (Clean up generated test files): Expand
19728         introduction.
19729         (dg-keep-saved-temps): Document new proc.
19730         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19731         cleanup-saved-temps): Remove.
19732
19733 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19734
19735         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19736         gcc_AC_CHECK_DECLS.
19737         * configure: Regenerate.
19738
19739 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19740
19741         * config/nios2/linux.h (CPP_SPEC): Define.
19742
19743 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19744
19745         * config/microblaze/linux.h (CPP_SPEC): Define.
19746
19747 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19748
19749         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19750         -pthread is specified.
19751
19752 2015-05-28  Richard Biener  <rguenther@suse.de>
19753
19754         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19755         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19756         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19757         after pattern recog.
19758         (vect_create_epilog_for_reduction): Properly handle reductions
19759         with patterns.
19760         (vectorizable_reduction): Likewise.
19761         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19762         reduction chains.
19763         (vect_get_constant_vectors): Create the correct number of
19764         initial values for reductions.
19765         (vect_schedule_slp_instance): Handle reduction chains that are
19766         type changing properly.
19767         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19768
19769 2015-05-28  Richard Biener  <rguenther@suse.de>
19770
19771         PR tree-optimization/66142
19772         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19773         values better in memcpy destination handling.  Handle non-aliasing
19774         we discover here.
19775
19776 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
19777
19778         PR target/63810
19779         * config/darwin-c.c (version_components): New global enum.
19780         (parse_version, version_as_legacy_macro)
19781         (version_as_modern_macro, macosx_version_as_macro): New functions.
19782         (version_as_macro): Remove.
19783         (darwin_cpp_builtins): Use new function.
19784
19785 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
19786
19787         * builtins.c (expand_builtin_acc_on_device): Mark parameters
19788         with ATTRIBUTE_UNUSED.
19789
19790 2015-05-28  Julian Brown  <julian@codesourcery.com>
19791
19792         PR libgomp/65742
19793
19794         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19795         sequence for !ACCEL_COMPILER.
19796
19797 2015-05-28  Nick Clifton  <nickc@redhat.com>
19798
19799         * config/rx/rx.c (push_regs): New function.  Extracts code from...
19800         (rx_expand_prologue): ... here.  Use push_regs to push even small
19801         spans of registers.
19802         (pop_regs): New function.
19803         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
19804         registers.
19805
19806 2015-05-28  Richard Biener  <rguenther@suse.de>
19807
19808         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19809         member.
19810         (SLP_INSTANCE_BODY_COST_VEC): Remove.
19811         (vect_update_slp_costs_according_to_vf): Likewise.
19812         (vect_slp_analyze_operations): Update prototype.
19813         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19814         vect_update_slp_costs_according_to_vf, adjust.
19815         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19816         (vect_analyze_slp_cost_1): Likewise.
19817         (vect_analyze_slp_cost): Likewise.  Properly deal with
19818         widening reduction ops.  Commit body costs.
19819         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
19820         cost for loops from here.
19821         (vect_slp_analyze_operations): But do it from here when
19822         the vectorization factor is known and stmts are analyzed.
19823         (vect_bb_vectorization_profitable_p): Simplify.
19824         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19825         (vect_update_slp_costs_according_to_vf): Remove.
19826
19827 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
19828             H.J. Lu  <hongjiu.lu@intel.com>
19829
19830         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19831         (BUILD_CFLAGS): Likewise.
19832         (BUILD_CXXFLAGS): Likewise.
19833         (LINKER): Add @NO_PIE_FLAG@.
19834         (BUILD_LDFLAGS): Likewise.
19835         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19836         --enable-default-pie.
19837         * common.opt (fPIE): Initialize to -1.
19838         (fpie): Likewise.
19839         (no-pie): New option.
19840         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19841         * configure.ac: Add --enable-default-pie.
19842         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
19843         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
19844         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
19845         * gcc.c (NO_PIE_SPEC): New.
19846         (PIE_SPEC): Likewise.
19847         (NO_FPIE1_SPEC): Likewise.
19848         (FPIE1_SPEC): Likewise.
19849         (NO_FPIE2_SPEC): Likewise.
19850         (FPIE2_SPEC): Likewise.
19851         (NO_FPIE2_SPEC): Likewise.
19852         (FPIE_SPEC): Likewise.
19853         (NO_FPIE_SPEC): Likewise.
19854         (NO_FPIC1_SPEC): Likewise.
19855         (FPIC1_SPEC): Likewise.
19856         (NO_FPIC2_SPEC): Likewise.
19857         (FPIC2_SPEC): Likewise.
19858         (NO_FPIC2_SPEC): Likewise.
19859         (FPIC_SPEC): Likewise.
19860         (NO_FPIC_SPEC): Likewise.
19861         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19862         (FPIE1_OR_FPIC1_SPEC): Likewise.
19863         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19864         (FPIE2_OR_FPIC2_SPEC): Likewise.
19865         (NO_FPIE_AND_FPIC_SPEC): Likewise.
19866         (FPIE_OR_FPIC_SPEC): Likewise.
19867         (LD_PIE_SPEC): Likewise.
19868         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
19869         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19870         * config/darwin.h (PIE_SPEC): Renamed to ...
19871         (DARWIN_PIE_SPEC): This.
19872         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19873         * config/darwin9.h (PIE_SPEC): Renamed to ...
19874         (DARWIN_PIE_SPEC): This.
19875         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19876         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19877         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19878         FPIE2_OR_FPIC2_SPEC.
19879         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19880         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19881         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19882         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19883         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19884         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19885         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19886         * config/m32r/m32r.h (ASM_SPEC): Likewise.
19887         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19888         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19889         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19890         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19891         * config/sparc/linux.h (ASM_SPEC): Likewise.
19892         * config/sparc/linux64.h (ASM_SPEC): Likewise.
19893         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19894         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19895         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19896         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19897         * config/sparc/sparc.h (ASM_SPEC): Likewise.
19898         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19899         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19900         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19901         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19902         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19903         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19904         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19905         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19906         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19907         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19908         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19909         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19910         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19911         * config/vax/linux.h (ASM_SPEC): Likewise.
19912         * doc/install.texi: Document --enable-default-pie.
19913         * doc/invoke.texi: Document -no-pie.
19914         * config.in: Regenerated.
19915         * configure: Likewise.
19916
19917 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19918
19919         PR rtl-optimization/66168
19920         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19921         can_move_invariant_reg.
19922
19923 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
19924
19925         PR target/66148
19926         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19927         REG_EQUAL note when doing insert.
19928
19929         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19930         instead of "%d" for 'o' operand.
19931
19932 2015-05-27  Nathan Sidwell  <nathan@acm.org>
19933
19934         PR c++/66270
19935         * tree.c (build_pointer_type_for_mode): Canonical type does not
19936         inherit can_alias_all.
19937         (build_reference_type_for_mode): Likewise.
19938
19939 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19940
19941         * expr.h (array_at_struct_end_p): Move to...
19942         (array_ref_element_size): Likewise.
19943         (component_ref_field_offset): Likewise.
19944         * tree.h (array_ref_element_size): ...here.
19945         (array_at_struct_end_p): Likewise.
19946         (component_ref_field_offset): Likewise.
19947         * expr.c (array_ref_element_size): Move to...
19948         (array_ref_low_bound): Likewise.
19949         (array_at_struct_end_p): Likewise.
19950         (array_ref_up_bound): Likewise.
19951         (component_ref_field_offset): Likewise.
19952         * tree.c (array_ref_element_size): ...here.
19953         (array_ref_low_bound): Likewise.
19954         (array_ref_up_bound): Likewise.
19955         (array_at_struct_end_p): Likewise.
19956         (component_ref_field_offset): Likewise.
19957
19958 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19959             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19960
19961         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19962
19963 2015-05-27  Jason Merrill  <jason@redhat.com>
19964
19965         PR bootstrap/66304
19966         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19967         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19968         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19969
19970 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
19971
19972         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19973         is true.
19974
19975         * statistics.c (statistics_fini_pass): Print pass name.
19976
19977 2015-05-27  Richard Biener  <rguenther@suse.de>
19978
19979         PR tree-optimization/66272
19980         Revert parts of
19981         2014-08-15  Richard Biener  <rguenther@suse.de>
19982
19983         PR tree-optimization/62031
19984         * tree-data-ref.c (dr_analyze_indices): Do not set
19985         DR_UNCONSTRAINED_BASE.
19986         (dr_may_alias_p): All indirect accesses have to go the
19987         formerly DR_UNCONSTRAINED_BASE path.
19988         * tree-data-ref.h (struct indices): Remove
19989         unconstrained_base member.
19990         (DR_UNCONSTRAINED_BASE): Remove.
19991
19992 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
19993
19994         * dwarf2out.c: Remove block_map.
19995         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19996         (gen_lexical_block_die): Same.
19997         (dwarf2out_function_decl): Remove block_map use.
19998         (dwarf2out_c_finalize): Same.
19999         * tree-core.h (struct tree_block): Add die field.
20000         * tree.h (BLOCK_DIE): New.
20001
20002 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20003
20004         PR target/65358
20005         * expr.c (memory_load_overlap): New function.
20006         (emit_push_insn): When pushing partial args to the stack would
20007         clobber the register part load the overlapping part into a pseudo
20008         and put it into the hard reg after pushing.  Change return type
20009         to bool.  Add bool argument.
20010         * expr.h (emit_push_insn): Change return type to bool.
20011         Add bool argument.
20012         * calls.c (expand_call): Cancel sibcall optimization when encountering
20013         partial argument on targets with ARGS_GROW_DOWNWARD and
20014         !STACK_GROWS_DOWNWARD.
20015         (emit_library_call_value_1): Update callsite of emit_push_insn.
20016         (store_one_arg): Likewise.
20017
20018 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
20019
20020         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20021
20022 2015-05-27  Martin Liska  <mliska@suse.cz>
20023
20024         * Makefile.in: Add additional dependencies related to memory report
20025         enhancement.
20026         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20027         * bitmap.c (struct bitmap_descriptor_d): Remove.
20028         (struct loc): Likewise.
20029         (struct bitmap_desc_hasher): Likewise.
20030         (bitmap_desc_hasher::hash): Likewise.
20031         (bitmap_desc_hasher::equal): Likewise.
20032         (get_bitmap_descriptor): Likewise.
20033         (bitmap_register): User new memory descriptor API.
20034         (register_overhead): Likewise.
20035         (bitmap_find_bit): Register nsearches and search_iter statistics.
20036         (struct bitmap_output_info): Remove.
20037         (print_statistics): Likewise.
20038         (dump_bitmap_statistics): Use new memory descriptor.
20039         * bitmap.h (struct bitmap_usage): New class.
20040         * genmatch.c: Extend header file inclusion.
20041         * genpreds.c: Likewise.
20042         * ggc-common.c (struct ggc_usage): New class.
20043         (struct ggc_loc_desc_hasher): Remove.
20044         (ggc_loc_desc_hasher::hash): Likewise.
20045         (ggc_loc_desc_hasher::equal): Likewise.
20046         (struct ggc_ptr_hash_entry): Likewise.
20047         (struct ptr_hash_hasher): Likewise.
20048         (ptr_hash_hasher::hash): Likewise.
20049         (ptr_hash_hasher::equal): Likewise.
20050         (make_loc_descriptor): Likewise.
20051         (ggc_prune_ptr): Likewise.
20052         (dump_ggc_loc_statistics): Use new memory descriptor.
20053         (ggc_record_overhead): Likewise.
20054         (ggc_free_overhead): Likewise.
20055         (final_cmp_statistic): Remove.
20056         (cmp_statistic): Likewise.
20057         (ggc_add_statistics): Liekwise.
20058         (ggc_prune_overhead_list): Likewise.
20059         * hash-map-traits.h: New file.
20060         * hash-map.h (struct default_hashmap_traits): Move the traits to a
20061         separate header file.
20062         * hash-set.h: Pass memory statistics info to ctor.
20063         * hash-table.c (void dump_hash_table_loc_statistics): New function.
20064         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20065         (hash_table::~hash_table): Register memory release operation.
20066         (hash_table::alloc_entries): Handle memory allocation operation.
20067         (hash_table::expand): Likewise.
20068         * inchash.c (iterative_hash_hashval_t): Move implementation to header
20069         file.
20070         (iterative_hash_host_wide_int): Likewise.
20071         * inchash.h (class hash): Likewise.
20072         * mem-stats-traits.h: New file.
20073         * mem-stats.h: New file.
20074         (mem_location): Add new class.
20075         (mem_usage): Likewise.
20076         (mem_alloc_description): Likewise.
20077         * sese.c: Add new header file inclusision.
20078         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20079         and hash_set.
20080         * tree-sra.c: Add new header file inclusision.
20081         * vec.c (struct vec_descriptor): Remove.
20082         (hash_descriptor): Likewise.
20083         (struct vec_usage): Likewise.
20084         (struct ptr_hash_entry): Likewise.
20085         (hash_ptr): Likewise.
20086         (eq_ptr): Likewise.
20087         (vec_prefix::register_overhead): Use new memory descriptor API.
20088         (vec_prefix::release_overhead): Likewise.
20089         (add_statistics): Remove.
20090         (dump_vec_loc_statistics): Use new memory descriptor API.
20091         * vec.h (struct vec_prefix): Likewise.
20092         (va_heap::reserve): Likewise.
20093         (va_heap::release): Likewise.
20094         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20095
20096 2015-05-27  Richard Biener  <rguenther@suse.de>
20097
20098         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20099         earlier and remove ??? comment.
20100         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20101         and got called from loop analysis bail out.  Always pass the SLP
20102         node to the vectorizable_* functions.
20103         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20104         the premature SLP check here.
20105         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20106         detected SLP stmts.
20107         (vect_detect_hybrid_slp_1): Likewise.
20108
20109 2015-05-26  Jeff Law  <law@redhat.com>
20110
20111         * combine.c (find_split_point): Verify that the shift count is a
20112         constant when choosing (plus (ashift ...)) as a split point.
20113
20114         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20115         No functional changes.
20116
20117 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
20118
20119         * ipa-polymorphic-call.c
20120         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20121         case when call target is already known.
20122
20123 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20124
20125         PR target/65979
20126         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20127         take into account the case that operands[1] and operands[2]
20128         are the same register.
20129
20130 2015-05-26  Michael Matz  <matz@suse.de>
20131
20132         PR middle-end/66251
20133
20134         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20135         stores.
20136         (vect_create_vectorized_demotion_stmts): Always set
20137         STMT_VINFO_VEC_STMT, also with SLP.
20138         (vectorizable_store): Handle strided group stores.
20139
20140 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20141
20142         PR target/66049
20143         * config/aarch64/aarch64.md
20144         (*adds_shift_imm_<mode>):  New pattern.
20145         (*subs_shift_imm_<mode>):  Likewise.
20146         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20147         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20148         (*add_uxt<mode>_shift2): Likewise.
20149         (*add_uxtsi_shift2_uxtw): Likewise.
20150         (*sub_uxt<mode>_shift2): Likewise.
20151         (*sub_uxtsi_shift2_uxtw): Likewise.
20152
20153 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20154
20155         * config/rs6000/constraints.md (Y, U): Use match_test.
20156
20157 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20158
20159         PR target/52144
20160         * config/arm/arm.c (arm_option_check_internal)
20161         (arm_option_params_internal): Check opts->target_flags to set macros.
20162         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20163         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20164         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20165         (builtin_define): Replaced with def_or_undef_macro.
20166         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20167         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20168         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20169         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20170         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20171         (TARGET_ARM_FEATURE_LDREX_P)
20172         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20173         * config/arm/arm-c.c (def_or_undef_macro): New function.
20174         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20175
20176 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20177
20178         * c-common.h (builtin_define_with_int_value)
20179         (builtin_define_type_sizeof): Declare.
20180         * c-cppbuiltin.c (builtin_define_with_int_value)
20181         (builtin_define_type_sizeof): Externalize.
20182         (builtin_define_std): Cleanup declaration.
20183         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20184         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20185         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20186         (builtin_define, builtin_assert): New macros.
20187
20188 2015-05-26  Richard Biener  <rguenther@suse.de>
20189
20190         PR tree-optimization/66142
20191         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20192         MEM_REFs for the same base address.
20193
20194 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20195
20196         PR ipa/66181
20197         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20198
20199 2015-05-26  Jason Merrill  <jason@redhat.com>
20200
20201         * configure.ac: Set CXXFLAGS for ISL test.
20202         * configure: Regenerate.
20203
20204         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20205         strstr and basename.
20206         * configure: Regenerate.
20207
20208 2015-05-26  Richard Biener  <rguenther@suse.de>
20209
20210         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20211         X % C -> X & (C - 1) for C being a power-of two to ...
20212         * match.pd: ... patterns.
20213
20214 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20215
20216         * match.pd (swapped_tcc_comparison): New operator list.
20217         (-A CMP -B): New simplification.
20218         * fold-const.c (fold_comparison): Remove corresponding code.
20219
20220 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20221
20222         * caller-save.c (init_caller_save): Base temporary register numbers
20223         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20224         * cfgloopanal.c (init_set_costs): Likewise.
20225         * dojump.c (prefer_and_bit_test): Likewise.
20226         * expr.c (init_expr_target): Likewise.
20227         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20228         * lower-subreg.c (init_lower_subreg): Likewise.
20229         * postreload.c (reload_cse_regs_1): Likewise.
20230
20231 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20232
20233         * gensupport.h (compute_test_codes): Declare.
20234         * gensupport.c (compute_predicate_codes): Rename to...
20235         (compute_test_codes): ...this.  Generalize error message.
20236         (process_define_predicate): Update accordingly.
20237         * genpreds.c (compute_maybe_allows): Delete.
20238         (add_constraint): Use compute_test_codes to determine whether
20239         something can accept a SUBREG, REG or MEM.
20240
20241 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20242
20243         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20244         'memory model' to align with C++11; fix description of memory orders;
20245         fix a few typos.
20246
20247 2015-05-26  Richard Biener  <rguenther@suse.de>
20248
20249         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20250         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20251         detect whether we apply SLP.  Remove call to
20252         vect_update_slp_costs_according_to_vf.
20253         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20254         vect_update_slp_costs_according_to_vf from here.  Dispatch
20255         to vect_slp_analyze_operations to analyze SLP stmts.
20256         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20257         unused bb_vec_info parameter, adjust assert.
20258         (vect_slp_analyze_operations): Pass in the slp instance tree
20259         instead of bb_vec_info.
20260         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20261         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20262
20263 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20264
20265         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20266         Q_REGS.  Expand comment.
20267         (REG_CLASS_NAMES): Ditto.
20268         (REG_CLASS_CONTENTS): Ditto.
20269
20270 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20271
20272         PR target/66274
20273         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20274         when LEGACY_INT_REGNO_P is processed.
20275
20276 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20277
20278         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20279
20280 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20281
20282         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20283         register if not marked dead/unused, before return.
20284
20285 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20286
20287         PR lto/66180
20288         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20289         is set; check for assembler name at LTO time.
20290         (type_in_anonymous_namespace): Remove hacks, check that all
20291         anonymous types are called "<anon>"
20292         (odr_type_p): Simplify; add check for "<anon>"
20293         (odr_subtypes_equivalent): Add odr_type_p check.
20294         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20295         assembler name.
20296
20297 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20298
20299         * ipa-utils.h (method_class_type): Remove.
20300         * cgraphunit.c (walk_polymorphic_call_targets): Use
20301         TYPE_METHOD_BASETYPE.
20302         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20303         on main variants only.
20304         (method_class_type): Remove.
20305         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20306         (build_type_inheritance_graph): Likewise.
20307         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20308         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20309         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20310
20311 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20312
20313         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20314         is_typedef_decl, typedef_variant_p): Constify.
20315         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20316         is_typedef_decl, typedef_variant_p): Constify.
20317
20318 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20319
20320         * defaults.h (gen_tablejump): New function.
20321         (HAVE_tablejump): Add default value.
20322         * expr.c: Adjust.
20323         * stmt.c: Likewise.
20324
20325 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20326
20327         * defaults.h (gen_store_multiple): New function.
20328         (HAVE_store_multiple): Add default value.
20329         * expr.c (move_block_from_reg): Adjust.
20330
20331 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20332
20333         * defaults.h (gen_load_multiple): New function.
20334         (HAVE_load_multiple): Add default value.
20335         * expr.c (move_block_to_reg): Adjust.
20336
20337 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20338
20339         * defaults.h (gen_mem_signal_fence): New function.
20340         (HAVE_mem_signal_fence): Add default value.
20341         * optabs.c: Adjust.
20342
20343 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20344
20345         * defaults.h (gen_memory_barrier): New function.
20346         (HAVE_memory_barrier): Add default value.
20347         * optabs.c: Adjust.
20348
20349 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20350
20351         * defaults.h (gen_mem_thread_fence): New function.
20352         (HAVE_mem_thread_fence): Add default definition.
20353         * optabs.c: Adjust.
20354
20355 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20356
20357         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20358         instead of if it is defined.
20359         (combine_simplify_rtx): Likewise.
20360         * lra-constraints.c (process_address_1): Likewise.
20361         * config/darwin.c: Adjust.
20362         * genconfig.c (main): Always define HAVE_lo_sum.
20363
20364 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20365
20366         * genmatch.c (parser::parse_operation): Reject expanding
20367         operator-list inside 'for'.
20368
20369 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20370
20371         * genmatch.c (parser::parse_for): Reject iterator if used as
20372         operator-list.
20373
20374 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20375
20376         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20377         after end of id-list.
20378
20379 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20380
20381         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20382         we do not try to compute canonical type for type that does not need
20383         alias set.
20384         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20385         FUNCITON_TYPE.
20386         * tree.h (type_with_alias_set_p): New.
20387
20388 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20389
20390         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20391         function attributes.
20392         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20393
20394 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20395
20396         * Makefile.in (check_gcc_parallelize): Delete.
20397         (lang_checks_parallelized): Update comment.
20398
20399 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20400
20401         PR rtl-optimization/66237
20402         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20403         location of an "as_a" cast.
20404
20405 2015-05-22  Jeff Law  <law@redhat.com>
20406
20407         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20408         (peepholes with non-canonical RTL sources): Remove.
20409         (peepholes for indexed stores of FP regs in integer modes): Match and
20410         generate canonical RTL.
20411
20412 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20413
20414         PR tree-optimization/63387
20415         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20416         ((x ord x) & (y ord y) -> (x ord y),
20417         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20418         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20419         vectors like scalars.
20420
20421 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20422
20423         * convert.c (convert_to_integer, convert_to_vector): Include the
20424         types in the error message.
20425
20426 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20427
20428         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20429         simplifications.
20430
20431 2015-05-22  Jeff Law  <law@redhat.com>
20432
20433         * config/pa/pa.md (integer_indexed_store splitters): Use
20434         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20435         insns -- adjusting the constant 2nd operand accordingly.
20436
20437         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20438         (plus (ashift X log2) Y) if it is a split point.
20439
20440         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20441         out of hppa_legitimize_address to handle both forms of a multiply
20442         by 2, 4 or 8.
20443         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20444         Always generate the ASHIFT variant as the result is not directly
20445         used in a MEM.  Update comments and refactor slightly to improve
20446         readability.
20447
20448 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20449
20450         PR target/65491
20451         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20452         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20453         (aarch64_composite_type_p): Return false if given type and mode are
20454         for a short vector.
20455
20456 2015-05-22  Richard Biener  <rguenther@suse.de>
20457
20458         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20459         member.
20460         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20461         patterns when determining whether SLP is pure.
20462         (vect_is_slp_reduction): Remove check for pattern stmts.
20463         (vect_is_simple_reduction_1): Remove dead code.
20464         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20465         (vect_get_and_check_slp_defs): Pass in the stmt number.
20466         Allow the first def in a reduction to be not a pattern stmt when
20467         the rest of the stmts def are patterns.
20468         (vect_build_slp_tree_1): Allow tcc_expression codes like
20469         SAD_EXPR and DOT_PROD_EXPR.
20470         (vect_build_slp_tree): Adjust.
20471         (vect_analyze_slp): Refactor and move BB vect error message ...
20472         (vect_slp_analyze_bb_1): ... here.
20473
20474 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20475
20476         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20477         for CSWTCH temporary.
20478
20479 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20480
20481         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20482         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20483         unknown unspecs.
20484
20485 2015-05-22  Richard Biener  <rguenther@suse.de>
20486
20487         PR tree-optimization/66251
20488         * tree-vect-stmts.c (vectorizable_conversion): Properly
20489         set STMT_VINFO_VEC_STMT even for the SLP case.
20490
20491 2015-05-22  Marek Polacek  <polacek@redhat.com>
20492
20493         * doc/extend.texi: Use @pxref instead of @xref.
20494
20495 2015-05-22  hiraditya  <hiraditya@msn.com>
20496
20497         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20498         redundant if.
20499
20500 2015-05-22  Richard Biener  <rguenther@suse.de>
20501
20502         PR tree-optimization/65701
20503         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20504         Move peeling cost models into one place.  Peel for alignment
20505         for single loads only if an aligned load is cheaper than
20506         an unaligned load.
20507
20508 2015-05-22  Marek Polacek  <polacek@redhat.com>
20509
20510         PR c/47043
20511         * doc/extend.texi (Enumerator Attributes): New section.
20512         Document syntax of enumerator attributes.
20513
20514 2015-05-22  Richard Biener  <rguenther@suse.de>
20515
20516         * tree-vect-loop.c (get_reduction_op): New function.
20517         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20518         Make ready for BB reductions.
20519         (vect_create_epilog_for_reduction): Use get_reduction_op.
20520         (vectorizable_reduction): Init reduc_index to a valid value.
20521         Adjust vect_model_reduction_cost call.
20522         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20523         operand for reduction defaults.  Add SAD_EXPR support.
20524         Assert we have a neutral op for SLP reductions.
20525         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20526         walking pattern stmt ops only recurse to SSA names.
20527
20528 2015-05-22  Richard Biener  <rguenther@suse.de>
20529
20530         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20531         assert with guard, remove check on detected reduction.
20532         (vect_recog_sad_pattern): Likewise.
20533         (vect_recog_widen_sum_pattern): Likewise.
20534
20535 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20536
20537         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20538         __always_inline__ attribute.
20539         (vaesdq_u8): Likewise.
20540         (vaesmcq_u8): Likewise.
20541         (vaesimcq_u8): Likewise.
20542         (vsha1cq_u32): Likewise.
20543         (vsha1mq_u32): Likewise.
20544         (vsha1pq_u32): Likewise.
20545         (vsha1h_u32): Likewise.
20546         (vsha1su0q_u32): Likewise.
20547         (vsha1su1q_u32): Likewise.
20548         (vsha256hq_u32): Likewise.
20549         (vsha256h2q_u32): Likewise.
20550         (vsha256su0q_u32): Likewise.
20551         (vsha256su1q_u32): Likewise.
20552         (vmull_p64): Likewise.
20553         (vmull_high_p64): Likewise.
20554
20555 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20556
20557         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20558         preprocessor.
20559         * output.h: Likewise.
20560         * genconfig.c (main): Alwways define HAVE_peephole.
20561         * genpeep.c: Don't emit checks of HAVE_peephole.
20562
20563 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20564
20565         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20566         check HAVE_conditional_move with the preprocessor.
20567
20568 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20569
20570         * genconfig.c (main): Always define HAVE_conditional_move.
20571         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20572         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20573         is defined.
20574
20575 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20576
20577         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20578         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20579         and FRAME_POINTER_REGNUM with the preprocessor.
20580
20581 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20582
20583         * defaults.h: Add default for STACK_PUSH_CODE.
20584         * expr.c: Don't redefine STACK_PUSH_CODE.
20585         * recog.c: Likewise.
20586
20587 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20588
20589         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20590         sched-deps.c: Use if instead of preprocessor checks with
20591         STACK_GROWS_DOWNWARD.
20592
20593 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20594
20595         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20596         is defined.
20597         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20598         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20599         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20600         * doc/tm.texi: Regenerate.
20601
20602 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20603
20604         PR target/66232
20605         * config/i386/constraints.md (Bg): New constraint for GOT memory
20606         operand.
20607         * config/i386/i386.md (*call_got_x32): New pattern.
20608         (*call_value_got_x32): Likewise.
20609         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20610
20611 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20612
20613         PR tree-optimization/66233
20614         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20615         Simplify.
20616
20617 2015-05-21  Jeff Law  <law@redhat.com>
20618
20619         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20620         than MULT for shadd sequences.
20621
20622 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20623
20624         * alias.c (alias_stats): New static var.
20625         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20626         (dump_alias_stats_in_alias_c): New function.
20627         * alias.h (dump_alias_stats_in_alias_c): Declare.
20628         * tree-ssa-alias.c (dump_alias_stats): Call it.
20629
20630 2015-05-08  Michael Matz  <matz@suse.de>
20631
20632         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20633         to strided_p.
20634         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20635         (STMT_VINFO_STRIDED_P): ... this.
20636         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20637         (vect_verify_datarefs_alignment): Likewise.
20638         (vect_enhance_data_refs_alignment): Likewise.
20639         (vect_analyze_data_ref_access): Likewise.
20640         (vect_analyze_data_refs): Accept strided stores.
20641         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20642         (vect_model_load_cost): Adjust for macro rename.
20643         (vectorizable_mask_load_store): Likewise.
20644         (vectorizable_load): Likewise.
20645         (vectorizable_store): Open code strided stores.
20646
20647 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20648
20649         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20650         Document sqrt_insn.
20651
20652 2015-05-21  Richard Biener  <rguenther@suse.de>
20653
20654         PR c++/66211
20655         * match.pd: Guard pattern optimzing (int)(float)int
20656         conversions to apply only on GIMPLE.
20657
20658 2015-05-21  Jeff Law  <law@redhat.com>
20659
20660         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20661         multiply-accumulate/shift-add insn generation.
20662
20663 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20664
20665         PR target/54236
20666         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20667         operands[1] are the same.
20668
20669 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20670
20671         PR middle-end/66221
20672         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20673         build_distinct_type_copy to copy bounds.
20674
20675 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20676
20677         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20678         Change to unsigned int.
20679
20680 2015-05-20  Jeff Law  <law@redhat.com>
20681
20682         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20683         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20684         (pa_shadd_constant_p): Allow constants for shadd insns rather
20685         than valid scaling constants for memory addresses.
20686         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20687         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20688         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20689         (shift-add insns using ASHIFT): New patterns.
20690
20691 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20692
20693         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20694         feasible.
20695         (fix_up_fall_thru_edges): Likewise.
20696         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20697         from to rtx_insn to rtx_code_label where feasible.
20698         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20699         gen_move_insn (returned type changed to rtx_insn).
20700         * builtins.c (expand_errno_check): Fix arguments of
20701         do_compare_rtx_and_jump (now expects rtx_code_label).
20702         (expand_builtin_acc_on_device): Likewise.
20703         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20704         invert_jump (now exprects rtx_jump_insn).
20705         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20706         (construct_init_block): Use rtx_code_label.
20707         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20708         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20709         calling redirect_jump.
20710         (patch_jump_insn): Likewise.
20711         (redirect_branch_edge): Likewise.
20712         (force_nonfallthru_and_redirect): Likewise.
20713         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20714         when suitable.
20715         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20716         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20717         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20718         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20719         to store the value retured by gen_label_rtx.
20720         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20721         rtx_jump_insn.
20722         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20723         (split_branches): Fix calls of redirect_jump.
20724         * dojump.c (jumpifnot): Promote argument type from rtx to
20725         rtx_code_label.
20726         (jumpifnot_1): Likewise.
20727         (jumpif): Likewise.
20728         (jumpif_1): Likewise.
20729         (do_jump_1): Likewise.
20730         (do_jump): Likewise. Use rtx_code_label when feasible.
20731         (do_jump_by_parts_greater_rtx): Likewise.
20732         (do_jump_by_parts_zero_rtx): Likewise.
20733         (do_jump_by_parts_equality_rtx): Likewise.
20734         (do_compare_rtx_and_jump): Likewise.
20735         * dojump.h: Update function prototypes.
20736         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20737         returns rtx_insn).
20738         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20739         rtx_jump_insn.
20740         (emit_label_before): Likewise.
20741         (emit_jump_insn_after_noloc): Likewise.
20742         (emit_jump_insn_after_setloc): Likewise.
20743         (emit_jump_insn_after): Likewise
20744         (emit_jump_insn_before_setloc): Likewise.
20745         (emit_jump_insn_before): Likewise.
20746         (emit_label_before): Promote return type to rtx_code_label.
20747         (emit_label): Likewise.
20748         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20749         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20750         gen_move_insn.
20751         (emit_stack_restore): Likewise.
20752         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20753         (do_cmp_and_jump): Likewise.
20754         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20755         from rtx to rtx_code_label.
20756         (gen_move_insn_uncast): New function.
20757         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20758         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20759         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20760         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20761         invert_jump_1 and redirect_jump_1.
20762         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20763         do_compare_rtx_and_jump.
20764         (expand_addsub_overflow): Likewise.
20765         (expand_neg_overflow): Likewise.
20766         (expand_mul_overflow): Likewise.
20767         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20768         return value of gen_move_insn.
20769         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20770         * loop-doloop.c (add_test): Use rtx_code_label.
20771         (doloop_modify): Likewise.
20772         (doloop_optimize): Likewise.
20773         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20774         * lra-constraints.c (emit_spill_move): Remove cast of value returned
20775         by gen_move_insn.
20776         (inherit_reload_reg): Add cast when calling dump_insn_slim.
20777         (split_reg): Likewise.
20778         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20779         gen_move_insn.
20780         * optabs.c (expand_binop_directly): Remove casts of values returned by
20781         maybe_gen_insn.
20782         (expand_unop_direct): Likewise.
20783         (expand_abs): Likewise.
20784         (maybe_emit_unop_insn): Likewise.
20785         (maybe_gen_insn): Promote return type to rtx_insn.
20786         * optabs.h: Update prototype of maybe_gen_insn.
20787         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20788         redundant cast.
20789         * recog.c (struct peep2_insn_data): Promote type of insn field to
20790         rtx_insn.
20791         (peep2_reinit_state): Use NULL instead of NULL_RTX.
20792         (peep2_attempt): Remove casts of insn in peep2_insn_data.
20793         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20794         * recog.h (struct insn_gen_fn): Promote return types of function
20795         pointers and operator ().from rtx to rtx_insn.
20796         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20797         (fill_eager_delay_slots): Likewise.
20798         (relax_delay_slots): Likewise.
20799         (make_return_insns): Likewise.
20800         (dbr_schedule): Likewise.
20801         (optimize_skips): Likewise.
20802         (reorg_redirect_jump): Likewise.
20803         (fill_slots_from_thread): Likewise.
20804         * reorg.h: Update prototypes.
20805         * resource.c (find_dead_or_set_registers): Use dyn_cast to
20806         rtx_jump_insn instead of check.  Use it's jump_target method.
20807         * rtl.h (rtx_jump_insn::jump_label): Define new method.
20808         (rtx_jump_insn::jump_target): Define new method.
20809         (rtx_jump_insn::set_jump_target): Define new method.
20810         * rtlanal.c (tablejump_p): Promote type of one local variable.
20811         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20812         (sched_analyze_insn): Likewise.
20813         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20814         (print_insn): Likewise.
20815         * stmt.c (label_rtx): Promote return type to rtx_insn.
20816         (force_label_rtx): Likewise.
20817         (jump_target_rtx): Define new function.
20818         (expand_label): Use it, get rid of one cast.
20819         (expand_naked_return): Promote rtx to rtx_code_label.
20820         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20821         (expand_case): Use rtx_code_label instread of rtx where feasible.
20822         (expand_sjlj_dispatch_table): Likewise.
20823         (emit_case_nodes): Likewise.
20824         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
20825         * store-motion.c (insert_store): Make use of new return type of
20826         gen_move_insn and remove a cast.
20827         (replace_store_insn): Likewise.
20828
20829 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
20830
20831         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20832         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20833
20834 2015-05-20  Jeff Law  <law@redhat.com>
20835
20836         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20837         dispose of the jump thread path when the jump threading
20838         opportunity is cancelled.
20839
20840 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20841
20842         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20843         when printing the caret character.
20844
20845 2015-05-20  Marek Polacek  <polacek@redhat.com>
20846
20847         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20848
20849 2015-05-20  Marek Polacek  <polacek@redhat.com>
20850
20851         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20852         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20853         * gimple-fold.c (canonicalize_bool): Likewise.
20854         (same_bool_result_p): Likewise.
20855         * tree-if-conv.c (parse_predicate): Likewise.
20856
20857 2015-05-20  Marek Polacek  <polacek@redhat.com>
20858
20859         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20860         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20861
20862 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20863
20864         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20865         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20866         values.
20867
20868 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
20869
20870         * config/mips/mips.h (micromips_globals): Declare.
20871
20872 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
20873
20874         * timevar.def (TV_INITIALIZE_RTL): New.
20875         * toplev.c (initialize_rtl): Use an auto_timevar to account this
20876         function's time to TV_INITIALIZE_RTL.
20877
20878 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20879
20880         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20881         gimple_build_nop calls.
20882         (chkp_find_bounds_for_elem): Likewise.
20883         (chkp_get_zero_bounds): Likewise.
20884         (chkp_get_none_bounds): Likewise.
20885         (chkp_get_bounds_by_definition): Likewise.
20886         (chkp_generate_extern_var_bounds): Likewise.
20887         (chkp_get_bounds_for_decl_addr): Likewise.
20888         (chkp_get_bounds_for_string_cst): Likewise.
20889
20890 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
20891
20892         PR tree-optimization/65447
20893         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20894         (dump_use, dump_uses): Support to dump sub use.
20895         (record_use): New parameters to support sub use.  Remove call to
20896         dump_use.
20897         (record_sub_use, record_group_use): New functions.
20898         (compute_max_addr_offset, split_all_small_groups): New functions.
20899         (group_address_uses, rewrite_use_address): New functions.
20900         (strip_offset): New declaration.
20901         (find_interesting_uses_address): Call record_group_use.
20902         (add_candidate): New assertion.
20903         (infinite_cost_p): Move definition forward.
20904         (add_costs): Check INFTY cost and return immediately.
20905         (get_computation_cost_at): Clear setup cost and dependent bitmap
20906         for sub uses.
20907         (determine_use_iv_cost_address): Compute cost for sub uses.
20908         (rewrite_use_address_1): Rename from old rewrite_use_address.
20909         (free_loop_data): Free sub uses.
20910         (tree_ssa_iv_optimize_loop): Call group_address_uses.
20911
20912 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20913             Jim Wilson  <jim.wilson@linaro.org>
20914
20915         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20916         new  fields loadv and storev.
20917         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20918         Initialize loadv and storev.
20919         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20920         (cortexa53_extra_costs): Likewise.
20921         (cortexa57_extra_costs): Likewise.
20922         (xgene1_extra_costs): Likewise.
20923         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20924         rtx_costs.
20925
20926 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20927
20928         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20929          storev.
20930         (cortexa8_extra_costs): Likewise.
20931         (cortexa5_extra_costs): Likewise.
20932         (cortexa7_extra_costs): Likewise.
20933         (cortexa12_extra_costs): Likewise.
20934         (cortexa15_extra_costs): Likewise.
20935         (v7m_extra_costs): Likewise.
20936
20937 2015-05-20  Jeff Law  <law@redhat.com>
20938
20939         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20940         instead of open-coded version.  Also delete the jump thread created
20941         within this function.
20942
20943 2015-05-20  Alan Modra  <amodra@gmail.com>
20944
20945         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20946         stack adjusting insn.  Formatting.
20947         (rs6000_emit_prologue): Track stack adjusting insn, and use of
20948         r12.  If possible, emit first -fsplit-stack arg pointer insn
20949         before stack adjust.  Don't use r12 to save cr if split-stack.
20950
20951 2015-05-20  Alan Modra  <amodra@gmail.com>
20952
20953         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20954         Define.
20955         (rs6000_supports_split_stack): New function.
20956         * gcc/config/rs6000/rs6000.c (machine_function): Add
20957         split_stack_arg_pointer.
20958         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20959         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20960         rather than virtual_incoming_args_rtx.
20961         (rs6000_va_start): Likewise.
20962         (split_stack_arg_pointer_used_p): New function.
20963         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20964         (morestack_ref): New var.
20965         (gen_add3_const, rs6000_expand_split_stack_prologue,
20966         rs6000_internal_arg_pointer, rs6000_live_on_entry,
20967         rs6000_split_stack_space_check): New functions.
20968         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20969         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20970         (UNSPECV_SPLIT_STACK_RETURN): Define.
20971         (split_stack_prologue, load_split_stack_limit,
20972         load_split_stack_limit_di, load_split_stack_limit_si,
20973         split_stack_return, split_stack_space_check): New expands and insns.
20974         * gcc/config/rs6000/rs6000-protos.h
20975         (rs6000_expand_split_stack_prologue): Declare.
20976         (rs6000_split_stack_space_check): Declare.
20977
20978 2015-05-20  Alan Modra  <amodra@gmail.com>
20979
20980         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20981         (direct_return): Test vrsave_size rather than vrsave_mask.
20982         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
20983         (rs6000_emit_epilogue): Likewise.
20984
20985 2015-05-20  Alan Modra  <amodra@gmail.com>
20986
20987         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20988         when not saving registers.
20989         (debug_stack_info): Adjust to omit printing unused offsets,
20990         as before.
20991         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20992         expression.
20993
20994 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20995
20996         PR c++/65835
20997         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20998         value_type to const char *.
20999
21000 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21001
21002         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21003         to build a biarch toolchain again.
21004
21005 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21006
21007         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21008         or implicit declarations.
21009         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21010         into it.
21011         (get_odr_type): Check type has linkage before adding bases.
21012         (register_odr_type): Check that type has linkage before adding it.
21013         (type_known_to_have_no_deriavations_p): Rename to ..
21014         (type_known_to_have_no_derivations_p): This one.
21015         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21016         (type_known_to_have_no_derivations_p): This one.
21017         * ipa-polymorphic-call.c
21018         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21019         type has linkage.
21020
21021 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21022
21023         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21024         (layout_type): Use RECORD_OR_UNION_TYPE_P.
21025
21026 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21027
21028         * config/s390/s390.c (s390_vector_bool_type_p): New function.
21029         (s390_invalid_binary_op): New function.
21030         (TARGET_INVALID_BINARY_OP): Define macro.
21031
21032 2015-05-19  David Sherwood  <david.sherwood@arm.com>
21033
21034         * loop-invariant.c (create_new_invariant): Don't calculate address cost
21035         if mode is not a scalar integer.
21036         (get_inv_cost): Increase computational cost for unused invariants.
21037
21038 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21039
21040         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
21041         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
21042         * config/s390/s390-builtin-types.def: New file.
21043         * config/s390/s390-builtins.def: New file.
21044         * config/s390/s390-builtins.h: New file.
21045         * config/s390/s390-c.c: New file.
21046         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21047         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21048         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21049         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21050         prototypes.
21051         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21052         Include.
21053         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21054         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21055         variable definitions.
21056         (s390_const_operand_ok): New function.
21057         (s390_expand_builtin): Rewrite.
21058         (s390_init_builtins): New function.
21059         (s390_handle_vectorbool_attribute): New function.
21060         (s390_attribute_table): Add s390_vector_bool attribute.
21061         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21062         (s390_branch_condition_mask): Generate masks for new modes.
21063         (s390_expand_vec_compare_cc): New function.
21064         (s390_mangle_type): Add mangling for vector bool types.
21065         (enum s390_builtin): Remove.
21066         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21067         efpc builtins.
21068         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21069         s390_cpu_cpp_builtins.
21070         (REGISTER_TARGET_PRAGMAS): New macro.
21071         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21072         (insn_cmp mode attribute): Add new CC modes.
21073         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21074         (lcbb): New pattern definition.
21075         * config/s390/s390intrin.h: Include vecintrin.h.
21076         * config/s390/t-s390: New file.
21077         * config/s390/vecintrin.h: New file.
21078         * config/s390/vector.md: Include vx-builtins.md.
21079         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21080         support.
21081
21082 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21083
21084         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21085         CCVFHE.
21086         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21087         (s390_select_ccmode): Likewise.
21088         (s390_canonicalize_comparison): Swap operands if necessary.
21089         (s390_expand_vec_compare_scalar): Expand DFmode compare using
21090         single element vector instructions.
21091         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21092         (s390_branch_condition_mask): Generate CC masks for the new modes.
21093         * config/s390/s390.md (v0, vf, vd): New mode attributes.
21094         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21095         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21096         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21097         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21098         (*extend<DSF:mode><BFP:mode>2): New insn definition.
21099         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21100         (extend<DSF:mode><BFP:mode>2): Turn into expander.
21101         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21102         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21103         (sqrt<mode>2): Add vector instruction.
21104
21105 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21106
21107         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21108         constraints.
21109         * config/s390/predicates.md (const0_operand, constm1_operand)
21110         (constable_operand): Accept vector operands.
21111         * config/s390/s390-modes.def: Add supported vector modes.
21112         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21113         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21114         (s390_bytemask_vector_p, s390_expand_vec_strlen)
21115         (s390_expand_vec_compare, s390_expand_vcond)
21116         (s390_expand_vec_init): Add prototypes.
21117         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21118         (s390_vector_mode_supported_p): New function.
21119         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21120         (s390_contiguous_bitmask_vector_p): New function.
21121         (s390_bytemask_vector_p): New function.
21122         (s390_split_ok_p): Vector regs don't work either.
21123         (regclass_map): Add VEC_REGS.
21124         (s390_legitimate_constant_p): Handle vector constants.
21125         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21126         (legitimate_reload_vector_constant_p): New function.
21127         (s390_preferred_reload_class): Handle CONST_VECTOR.
21128         (s390_reload_symref_address):  Likewise.
21129         (s390_secondary_reload): Vector memory instructions only support
21130         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21131         (s390_emit_ccraw_jump): New function.
21132         (s390_expand_vec_strlen): New function.
21133         (s390_expand_vec_compare): New function.
21134         (s390_expand_vcond): New function.
21135         (s390_expand_vec_init): New function.
21136         (s390_dwarf_frame_reg_mode): New function.
21137         (print_operand): Handle addresses with 'O' and 'R' constraints.
21138         (NR_C_MODES, constant_modes): Add vector modes.
21139         (s390_output_pool_entry): Handle vector constants.
21140         (s390_hard_regno_mode_ok): Handle vector registers.
21141         (s390_class_max_nregs): Likewise.
21142         (s390_cannot_change_mode_class): New function.
21143         (s390_invalid_arg_for_unprototyped_fn): New function.
21144         (s390_function_arg_vector): New function.
21145         (s390_function_arg_float): Remove size variable.
21146         (s390_pass_by_reference): Handle vector arguments.
21147         (s390_function_arg_advance): Likewise.
21148         (s390_function_arg): Likewise.
21149         (s390_return_in_memory): Vector values are returned in a VR if
21150         possible.
21151         (s390_function_and_libcall_value): Handle vector arguments.
21152         (s390_gimplify_va_arg): Likewise.
21153         (s390_call_saved_register_used): Consider the arguments named.
21154         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21155         targets.
21156         (s390_preferred_simd_mode): New function.
21157         (s390_support_vector_misalignment): New function.
21158         (s390_vector_alignment): New function.
21159         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21160         (TARGET_VECTOR_MODE_SUPPORTED_P)
21161         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21162         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21163         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21164         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21165         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21166         (FIRST_PSEUDO_REGISTER): Increase value.
21167         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21168         (VECTOR_REG_P): Define macros.
21169         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21170         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21171         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21172         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21173         Add vector registers.
21174         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21175         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21176         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21177         memory.
21178         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21179         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21180         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21181         (VR*_REGNUM): New constants.
21182         (ALL): New mode iterator.
21183         (INTALL): Remove mode iterator.
21184         Include vector.md.
21185         (movti): Implement TImode moves for VRs.
21186         Disable TImode splitter for VR targets.
21187         Implement splitting TImode GPR<->VR moves.
21188         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21189         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21190         reload<mode>_la_in, reload<mode>_la_out.
21191         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21192         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21193         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21194         (mov<mode> SF SD): Prefer lder, lde for loading.
21195         Add lrl and strl instructions.
21196         Add vector instructions.
21197         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21198         Call s390_expand_vec_strlen on z13.
21199         (*cc_to_int): Change predicate to nonimmediate_operand.
21200         (addti3): Rename to *addti3.  New expander.
21201         (subti3): Rename to *subti3.  New expander.
21202         * config/s390/vector.md: New file.
21203
21204 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21205
21206         * common/config/s390/s390-common.c (processor_flags_table): Add
21207         z13.
21208         * config.gcc: Add z13.
21209         * config/s390/s390-opts.h (enum processor_type): Add
21210         PROCESSOR_2964_Z13.
21211         * config/s390/s390.c (s390_adjust_priority): Check for
21212         PROCESSOR_2964_Z13.
21213         (s390_reorg): Likewise.
21214         (s390_sched_reorder): Likewise.
21215         (s390_sched_variable_issue): Likewise.
21216         (s390_loop_unroll_adjust): Likewise.
21217         (s390_option_override): Likewise. Default to -mvx when available.
21218         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21219         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21220         (TARGET_VX_ABI): Define macros.
21221         macros.
21222         (TARGET_DEFAULT): Add MASK_OPT_VX.
21223         * config/s390/s390.md ("cpu" attribute): Add z13.
21224         ("cpu_facility" attribute): Add vec.
21225         * config/s390/s390.opt (processor_type): Add z13.
21226         (mvx): New options.
21227         * doc/invoke.texi: Add z13 option for -march.
21228
21229 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21230
21231         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21232         mode check to make sure that only scalar integer values are
21233         accepted.
21234
21235 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21236
21237         * tree.c (verify_type_variant): Fix #undef.
21238         (gimple_canonical_types_compatible_p): Move here from lto.c
21239         (verify_type): Verify TYPE_CANONICAL compatibility.
21240         * tree.h (gimple_canonical_types_compatible_p): Declare.
21241
21242 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21243
21244         PR middle-end/66199
21245         * tree.h (OMP_TEAMS_COMBINED): Define.
21246         * gimplify.c (enum gimplify_omp_var_data): Add
21247         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21248         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21249         (omp_notice_variable): Accept both ORT_TEAMS
21250         and ORT_COMBINED_TEAMS.  Don't recurse if
21251         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21252         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21253         GOVD_FIRSTPRIVATE.
21254         (omp_no_lastprivate): New function.
21255         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21256         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21257         notice_outer and set appropriate bits, otherwise make
21258         sure default(none) combined constructs won't complain.
21259         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21260         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21261         omp_no_lastprivate either remove the clause or turn it
21262         into OMP_CLAUSE_PRIVATE.
21263         (gimplify_omp_for): Fix up handling of implicit
21264         lastprivate or linear iterators.
21265         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21266         ORT_COMBINED_TEAMS.
21267         * omp-low.c (lower_omp_for_lastprivate): For combined
21268         for simd use fd.loop.n2 from the for rather than simd.
21269
21270 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21271
21272         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21273         instead of gen_rtx_raw_REG.
21274         (cris_expand_epilogue): Likewise.
21275         * config/microblaze/microblaze.c (microblaze_classify_address):
21276         Likewise.
21277         * config/sparc/sparc.md: Likewise.
21278
21279 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21280
21281         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21282         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21283         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21284         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21285         Use CASE_CONST_SCALAR_INT.
21286         (print_operand) <case 'M'>: Use mode_width_operand to check the
21287         value of the constant.
21288         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21289         * config/alpha/predicates.md (input_operand): Use general_operand
21290         instead of match_code as operand check.
21291         (symbolic_operand): Use match_code with subexpression digits.
21292         * config/alpha/constraints.md (Q): Ditto.
21293
21294 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21295
21296         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21297
21298 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21299
21300         * config/s390/s390.c (s390_secondary_reload): Fix check for
21301         load/store relative.
21302
21303 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21304
21305         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21306         alternative_mask to uint64_t.
21307
21308 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21309
21310         PR tree-optimization/66187
21311         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21312         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21313         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21314
21315 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21316
21317         * diagnostic.c (diagnostic_report_current_module): Strengthen
21318         local "new_map" from const line_map * to
21319         const line_map_ordinary *.
21320         * genmatch.c (error_cb): Likewise for local "map".
21321         (output_line_directive): Likewise for local "map".
21322         * input.c (expand_location_1): Likewise for local "map".
21323         Pass NULL rather than &map to
21324         linemap_unwind_to_first_non_reserved_loc, since the value is never
21325         read from there, and the value written back not read from here.
21326         (is_location_from_builtin_token): Strengthen local "map" from
21327         const line_map * to const line_map_ordinary *.
21328         (dump_location_info): Strengthen locals "map" from
21329         line_map *, one to const line_map_ordinary *, the other
21330         to const line_map_macro *.
21331         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21332         const line_map * to const line_map_macro *.
21333         (maybe_unwind_expanded_macro_loc): Add a call to
21334         linemap_check_macro when writing to the "map" field of the
21335         loc_map_pair.
21336         Introduce local const line_map_ordinary * "ord_map", using it in
21337         place of "map" in the part of the function where we know we have
21338         an ordinary map.  Strengthen local "m" from const line_map * to
21339         const line_map_ordinary *.
21340
21341 2015-05-19  Nick Clifton  <nickc@redhat.com>
21342
21343         PR target/66156
21344         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21345         separate source and destination registers.
21346
21347 2015-05-19  Richard Biener  <rguenther@suse.de>
21348
21349         PR tree-optimization/66165
21350         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21351         for no load permutation.
21352
21353         PR tree-optimization/66185
21354         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21355         when building the SLP node from scalars.
21356
21357 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21358             Tristan Gingold  <gingold@adacore.com>
21359
21360         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21361         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21362         (expand_stack_restore): Call record_new_stack_level.
21363         (expand_stack_save): Do not call do_pending_stack_adjust.
21364         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21365         * calls.c (expand_call): Call record_new_stack_level for alloca.
21366         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21367         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21368         (update_sjlj_context): New global function.
21369         * except.h (update_sjlj_context): Declare.
21370         * explow.c (record_new_stack_level): New global function.
21371         (allocate_dynamic_stack_space): Call record_new_stack_level.
21372         * explow.h (record_new_stack_level): Declare.
21373         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21374         * cfgrtl.c (duplicate_insn_chain): Likewise.
21375
21376 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21377
21378         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21379         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21380         STACK_GROWS_DOWNWARD as normal if.
21381         (expand_call): Likewise.
21382
21383 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21384
21385         PR target/54236
21386         * config/sh/sh.md (*round_int_even): New insn_and_split and
21387         accompanying new unnamed split.
21388
21389 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21390
21391         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21392         (bitmap_clear_range): Likewise.
21393         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21394         bitmap_set_range unconditionally.
21395         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21396         * df-scan.c (df_mark_reg): Likewise.
21397         * haifa-sched.c (setup_ref_regs): Likewise.
21398         * sched-rgn.c (update_live_1): Likewise.
21399
21400 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21401
21402         * regs.h (END_HARD_REGNO): Delete.
21403         (END_REGNO): Move to...
21404         * rtl.h: ...here.
21405         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21406         * caller-save.c (mark_set_regs): Likewise.
21407         * combine.c (move_deaths, distribute_notes): Likewise.
21408         * cse.c (invalidate, invalidate_for_call): Likewise.
21409         * df-scan.c (df_ref_record): Likewise.
21410         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21411         (record_last_reg_set_info): Likewise.
21412         * reg-stack.c (convert_regs_exit): Likewise.
21413         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21414         * resource.c (update_live_status): Likewise.
21415         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21416
21417 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21418
21419         * rtl.h (reg_info): Add an nregs field.
21420         (REG_NREGS): Use it.
21421         (SET_REGNO_RAW): Delete.
21422         (set_regno_raw): New function.
21423         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21424         (END_REGNO): Redefine in terms of REG_NREGS.
21425         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21426         SET_REGNO_RAW.
21427         * emit-rtl.c (set_mode_and_regno): Likewise.
21428         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21429         instead of SET_REGNO_RAW.
21430
21431 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21432
21433         * rtl.h (PUT_MODE_RAW): New macro.
21434         (PUT_REG_NOTE_KIND): Use it.
21435         (set_mode_and_regno): Declare.
21436         (gen_raw_REG): Change regno to "unsigned int".
21437         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21438         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21439         use set_mode_and_regno to change the mode of registers.
21440         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21441         * emit-rtl.c (set_mode_and_regno): New function.
21442         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21443         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21444         * expr.c (init_expr_target): Likewise.
21445         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21446         * postreload.c (reload_cse_simplify_operands): Likewise.
21447
21448 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21449
21450         * caller-save.c (init_caller_save): Use word_mode and
21451         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21452         * expr.c (init_expr_target): Likewise.
21453         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21454         * postreload.c (reload_cse_regs_1): Likewise.
21455
21456 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21457
21458         * rtl.def (REG): Change format to "r".
21459         * rtl.h (rtunion): Remove rt_reg.
21460         (reg_info): New structure.
21461         (rtx_def): Add reg field to main union.
21462         (X0REGATTR): Delete.
21463         (REG_CHECK): New macro.
21464         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21465         * rtl.c (rtx_format): Document "r".
21466         (rtx_code_size): Handle REG specially.
21467         * gengenrtl.c (special_format): Return true for formats
21468         that include 'r'.
21469         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21470         Deal with REG_ATTRS after the field loop.
21471         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21472         * expmed.c (init_expmed): Call gen_raw_REG instead of
21473         gen_rtx_raw_REG.
21474         * expr.c (init_expr_target): Likewise.
21475         * regcprop.c (maybe_mode_change): Likewise.
21476         * varasm.c (make_decl_rtl): Likewise.
21477         * final.c (leaf_renumber_regs_insn): Return early after
21478         handling REGs.
21479         * genemit.c (gen_exp): Handle 'r' fields.
21480         * genpeep.c (match_rtx): Likewise.
21481         * gensupport.c (subst_pattern_match): Likewise.
21482         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21483         (alter_constraints, subst_dup): Likewise.
21484         * read-rtl.c (read_rtx_code): Likewise.
21485         * print-rtl.c (print_rtx): Likewise.
21486         * genrecog.c (find_operand, find_matching_operand): Likewise.
21487         (validate_pattern, match_pattern_2): Likewise.
21488         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21489         (rtx_test::regno_field): New function.
21490         (operator ==, safe_to_hoist_p, transition_parameter_type)
21491         (parameter_type_string, print_parameter_value)
21492         (print_nonbool_test, print_test): Handle new enum values.
21493         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21494         * lra-constraints.c (operands_match_p): Likewise.
21495
21496 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21497
21498         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21499         Change type of new_regno to unsigned int.
21500         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21501         new_regno to unsigned int.
21502         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21503         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21504         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21505         (SET_REGNO_RAW): Add space after ",".
21506
21507 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21508
21509         * rtl.h (REG_NREGS): New macro
21510         * alias.c (record_set): Use it.
21511         * cfgcleanup.c (mark_effect): Likewise.
21512         * combine.c (likely_spilled_retval_1): Likewise.
21513         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21514         (move_deaths, distribute_notes): Likewise.
21515         * cselib.c (cselib_record_set): Likewise.
21516         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21517         * df-scan.c (df_mark_reg): Likewise.
21518         * dse.c (look_for_hardregs): Likewise.
21519         * dwarf2out.c (reg_loc_descriptor): Likewise.
21520         (multiple_reg_loc_descriptor): Likewise.
21521         * expr.c (write_complex_part, read_complex_part): Likewise.
21522         (emit_move_complex): Likewise.
21523         * haifa-sched.c (setup_ref_regs): Likewise.
21524         * ira-lives.c (mark_hard_reg_live): Likewise.
21525         * lra.c (lra_set_insn_recog_data): Likewise.
21526         * mode-switching.c (create_pre_exit): Likewise.
21527         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21528         (reload_combine_recognize_pattern): Likewise.
21529         (reload_combine_note_use, move2add_record_mode): Likewise.
21530         (reload_cse_move2add): Likewise.
21531         * reg-stack.c (subst_stack_regs_pat): Likewise.
21532         * regcprop.c (kill_value, copy_value): Likewise.
21533         (copyprop_hardreg_forward_1): Likewise.
21534         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21535         (build_def_use): Likewise.
21536         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21537         (deps_analyze_insn): Likewise.
21538         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21539         * sel-sched.c (count_occurrences_equiv): Likewise.
21540         * valtrack.c (dead_debug_insert_temp): Likewise.
21541
21542 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21543
21544         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21545         * dse.c (note_add_store): Likewise.
21546         * ira-lives.c (mark_hard_reg_dead): Likewise.
21547         * loop-invariant.c (mark_reg_store): Likewise.
21548         (mark_reg_death): Likewise.
21549         * postreload.c (reload_combine): Likewise.
21550         (reload_combine_note_store): Likewise.
21551         (reload_combine_note_use): Likewise.
21552         * recog.c (peep2_reg_dead_p): Likewise.
21553
21554 2015-05-19  Alan Modra  <amodra@gmail.com>
21555
21556         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21557         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21558         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21559         unused predicates.
21560         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21561         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21562         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21563         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21564
21565 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21566
21567         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21568         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21569         (join2_loadhi): Likewise.
21570         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21571         load-load and store-stores.
21572         * config/mips/mips.opt (mload-store-pairs): New option.
21573         (TARGET_LOAD_STORE_PAIRS): New macro.
21574         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21575         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21576         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21577
21578 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21579
21580         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21581         explicit swaps.
21582         * dojump.c (do_compare_rtx_and_jump): Likewise.
21583         * expmed.c (emit_store_flag_1): Likewise.
21584         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21585         * final.c (sprint_ul): Use std::reverse for reversing a string.
21586         * fold-const.c (extract_muldiv_1): Use std::swap.
21587         * genmodes.c (emit_mode_int_n): Likewise.
21588         * ifcvt.c (dead_or_predicable): Likewise.
21589         * ira-build.c (ira_merge_live_ranges): Likewise.
21590         (swap_allocno_copy_ends_if_necessary): Likewise.
21591         * ira.c (ira_setup_alts): Likewise.
21592         * loop-iv.c (iv_analyze_expr): Likewise.
21593         (implies_p): Likewise.
21594         (canon_condition): Likewise.
21595         * lra-constraints.c (swap_operands): Likewise.
21596         * lra-lives.c (lra_merge_live_ranges): Likewise.
21597         * omega.c (swap): Remove.
21598         (bswap): Remove.
21599         (omega_unprotect_1): Use std::swap.
21600         (omega_solve_geq): Likewise.
21601         * optabs.c (expand_binop_directly): Likewise.
21602         (expand_binop): Likewise.
21603         (emit_conditional_move): Likewise.
21604         (emit_conditional_add): Likewise.
21605         * postreload.c (reload_cse_simplify_operands): Likewise.
21606         * reg-stack.c (emit_swap_insn): Likewise.
21607         (swap_to_top): Likewise.
21608         (compare_for_stack_reg): Likewise.
21609         (subst_asm_stack_regs): Likewise.
21610         * reload.c (find_reloads): Likewise.
21611         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21612         * sel-sched.c (invoke_reorder_hooks): Likewise.
21613         (create_block_for_bookkeeping): Likewise.
21614         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21615         (lambda_matrix_right_hermite): Use std::swap.
21616         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21617         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21618         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21619         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21620         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21621         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21622         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21623         * tree-vrp.c (compare_ranges): Likewise.
21624         * var-tracking.c (add_with_sets): Likewise.
21625         (vt_find_locations): Likewise.
21626
21627 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21628
21629         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21630         pie executables.
21631         (FBSD_ENDFILE_SPEC): Likewise.
21632         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21633         config/freebsd-spec.h.
21634         (ENDFILE_SPEC): Likewise.
21635
21636 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21637             Richard Henderson  <rth@redhat.com>
21638
21639         PR target/57032
21640         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21641         Check for a memory location that is not a reference (using an AND)
21642         to an unaligned location here.
21643         * config/alpha/predicates.md (normal_memory_operand): Remove.
21644
21645 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21646
21647         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21648         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21649
21650 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21651
21652         * config/mips/mips.c (micromips_globals): New variable.
21653         (mips_set_compression_mode): Save and reinitialize target-dependent
21654         state for microMIPS.
21655
21656 2015-05-18  Martin Liska  <mliska@suse.cz>
21657
21658         * dbgcnt.def: Add new counter.
21659         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21660
21661 2015-05-18  Martin Liska  <mliska@suse.cz>
21662
21663         * dbgcnt.def: Sort counters.
21664         * opts.c (common_handle_option): Do not compile if
21665         -fdbg-cnt-list is enabled.
21666
21667 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21668
21669         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21670         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21671         address operator to va_list operand.
21672         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21673         unconditionally.
21674         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21675         operand.
21676         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21677         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21678         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21679
21680 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21681
21682         * tree-ssa-tail-merge.c: Fix whitespace.
21683
21684 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21685
21686         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21687         cortex-a17, and cortex-a17.cortex-a7.
21688
21689 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21690
21691         PR target/54236
21692         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21693
21694 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21695
21696         PR target/66174
21697         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21698         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21699         to a register for AVX512F modes.
21700
21701 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21702
21703         * toplev.c (emit_debug_global_declarations): Do not output debug info
21704         when doing slim LTO objects.
21705
21706 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21707
21708         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21709         odr_types_equivalent_p): Declare.
21710         (odr_type_p): Use gcc_checking_assert.
21711         (type_in_anonymous_namespace_p) Declare.
21712         (type_with_linkage_p): Declare.
21713         * common.opt (Wlto-type-mismatch): New warning.
21714         * ipa-devirt.c (compound_type_base): New function.
21715         (odr_or_derived_type_p): New function.
21716         (odr_types_equivalent_p): New function.
21717         (add_type_duplicate): Simplify.
21718         (type_with_linkage_p): Add hack to prevent false positives on C types
21719         (type_in_anonymous_namespace_p): Likewise.
21720         * tree.c (need_assembler_name_p): Use type_with_linkage.
21721         * tree.h (type_in_anonymous_namespace_p): Remove.
21722         * doc/invoke.texi (-Wlto-type-mismatch): Document
21723
21724 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21725
21726         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21727         (verify_type): Verify STRING_FLAG.
21728
21729 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21730
21731         PR fortran/44054
21732         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21733         with accessor function.
21734         * tree-diagnostic.c (diagnostic_report_current_function): Use
21735         diagnostic_location function.
21736         (maybe_unwind_expanded_macro_loc): Likewise.
21737         (virt_loc_aware_diagnostic_finalizer): Likewise.
21738         (default_tree_printer): Replace locus pointer with accessor function.
21739         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21740         (diagnostic_set_info_translated): Initialize second location.
21741         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21742         (diagnostic_show_locus): Handle two locations. Call
21743         diagnostic_print_caret_line.
21744         (diagnostic_print_caret_line): New.
21745         (default_diagnostic_starter): Use diagnostic_location function.
21746         (diagnostic_report_diagnostic): Use diagnostic_location function.
21747         (verbatim): Do not set text.locus.
21748         * diagnostic.h (struct diagnostic_info): Remove location field.
21749         (struct diagnostic_context): Make caret_chars an array of two.
21750         (diagnostic_location): New inline.
21751         (diagnostic_expand_location): Handle two locations.
21752         (diagnostic_same_line): New inline.
21753         (diagnostic_print_caret_line): Declare.
21754         (CARET_LINE_MARGIN): New constant.
21755         * pretty-print.c (pp_printf): Do not set text.locus.
21756         (pp_verbatim): Do not set text.locus.
21757         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21758         (struct text_info): Replace locus pointer with locations
21759         array. Add accessor functions.
21760
21761 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21762             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21763
21764         PR target/65768
21765         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21766         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21767          large constants in register instead of splitting them.
21768
21769 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21770
21771         PR target/66140
21772         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21773         replacements in memory addresses.
21774         (get_unaligned_address): Ditto.
21775
21776 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
21777
21778         * config/ft32/*: New files for FT32 port.
21779         * doc/install.texi: Add FT32 information.
21780         * doc/invoke.texi: Add FT32 information.
21781         * doc/md.texi: Add FT32 information.
21782         * doc/contrib.texi: Self added.
21783
21784 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
21785
21786         PR tree-optimization/64454
21787         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21788         (-1 - A -> ~A): Remove unnecessary condition.
21789
21790 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
21791
21792         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21793         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21794         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21795
21796 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
21797
21798         * ipa-chkp.h (chkp_wrap_function): New.
21799         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21800         (chkp_wrap_function_name): New.
21801         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21802         to get wrapper name.
21803         * lto-cgraph.c: Include ipa-chkp.h.
21804         (input_cgraph_1): Avoid alias chain for wrappers.
21805
21806 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21807
21808         PR middle-end/66134
21809         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21810         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21811
21812 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21813
21814         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21815         (AARCH64_FL_SLOWMUL): Delete.
21816         (AARCH64_FL_CRC): Redefine to 1<<3.
21817         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21818
21819 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21820
21821         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21822         casting.
21823
21824 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21825
21826         * config/alpha/alpha.md (extendqidi2): Use general_operand
21827         instead of some_operand for operand[1] predicate.
21828         (extendhidi2): Ditto.
21829         (cbranchdi4): Use general_operand instead of some_operand
21830         for operand[1] and operands[2] predicates.
21831         (cstoredi4): Ditto.
21832         * config/alpha/predicates.md (some_operand): Remove unused predicate.
21833         (some_ni_operand): Ditto.
21834
21835 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21836
21837         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21838         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
21839         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21840         low part of the constant using alpha_emit_set_const_1.
21841         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21842
21843 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
21844
21845         * varasm.c (output_constant_pool_1): Pass down alignment from
21846         constant pool entry's descriptor to output_constant_pool_2.
21847         (output_object_block): Add comment prior to call to
21848         output_constant_pool_1.
21849
21850 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
21851
21852         PR rtl-optimization/65862
21853         * target.def (ira_change_pseudo_allocno_class): New hook.
21854         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21855         value of the hook.
21856         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21857         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21858         hook.
21859         * ira-costs.c (find_costs_and_classes): Call the hook and change
21860         classes when it is necessary.
21861         * doc/tm.texi: Update.
21862
21863 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
21864
21865         * config/i386/i386.md (sibcall_memory): Check that register with
21866         callee address is not also used as one of the arguments, instead
21867         of checking that it is not live after the sibcall.
21868         (sibcall_pop_memory): Ditto.
21869         (sibcall_value_memory): Ditto.
21870         (sibcall_value_pop_memory): Ditto.
21871
21872 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
21873
21874         * generic-match-head.c (types_match): Handle non-types.
21875         * gimple-match-head.c (types_match): Likewise.
21876         * match.pd: Remove unnecessary TREE_TYPE for types_match.
21877
21878 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
21879
21880         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21881         (csneg3<mode>_insn): Enable expansion of pattern.
21882
21883 2015-05-14  Nick Clifton  <nickc@redhat.com>
21884
21885         * config/rl78/rl78.c (rl78_select_section): Select the correct
21886         default section based upon the category of the decl.
21887
21888 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21889
21890         PR rtl-optimization/30967
21891         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21892         destination mode for the cost of scc patterns.
21893
21894 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21895
21896         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21897         using SWIM248 mode iterator.
21898         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21899         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
21900         for operand[2] constraint.
21901         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21902
21903 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21904
21905         PR middle-end/66133
21906         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21907         make sure it is never noreturn, even when the task body does not
21908         return.
21909         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21910         right before GIMPLE_OMP_RETURN.
21911         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21912         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
21913         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21914
21915 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21916
21917         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21918         * tree-ssa-math-opts.c: Include params.h
21919         (pow_synth_sqrt_info): New struct.
21920         (representable_as_half_series_p): New function.
21921         (get_fn_chain): Likewise.
21922         (print_nested_fn): Likewise.
21923         (dump_fractional_sqrt_sequence): Likewise.
21924         (dump_integer_part): Likewise.
21925         (expand_pow_as_sqrts): Likewise.
21926         (gimple_expand_builtin_pow): Use above to attempt to expand
21927         pow as series of square roots.  Removed now unused variables.
21928
21929 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21930
21931         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21932         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21933         Remove *p0 and *p1 arguments.  Rewrite function.
21934         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21935         (alpha_split_const_mov): Update calls to alpha_extract_integer and
21936         alpha_emit_set_long_const.
21937         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21938         (alpha_output_mi_thunk_osf): Ditto.
21939         * config/alpha/alpha.md (movti): Do not check operands[1]
21940         for CONST_DOUBLE.
21941
21942 2015-05-13  Richard Biener  <rguenther@suse.de>
21943
21944         PR tree-optimization/66129
21945         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21946         commutative.
21947         (vect_schedule_slp_instance): Fix typo.
21948
21949 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
21950
21951         * common.opt (fdump-internal-locations): New option.
21952         * input.c: Include diagnostic-core.h.
21953         (get_end_location): New function.
21954         (write_digit): New function.
21955         (write_digit_row): New function.
21956         (dump_location_range): New function.
21957         (dump_labelled_location_range): New function.
21958         (dump_location_info): New function.
21959         * input.h (dump_location_info): New prototype.
21960         * toplev.c (compile_file): Handle flag_dump_locations.
21961
21962 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21963
21964         * gimple-expr.h (is_gimple_constant): Reorder.
21965         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21966
21967 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21968
21969         * combine.c (simplify_set): When generating a CC set, if the
21970         source already is in the correct mode, do not wrap it in a
21971         compare.  Simplify the rest of that code.
21972
21973 2015-05-13  Richard Biener  <rguenther@suse.de>
21974
21975         PR tree-optimization/66123
21976         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21977         a taken edge.
21978
21979 2015-05-13  Richard Biener  <rguenther@suse.de>
21980
21981         PR middle-end/66110
21982         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21983         specially.
21984         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21985
21986 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
21987
21988         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21989         * aclocal.m4: Regenerated with automake-1.11.6.
21990
21991 2015-05-13  Tom de Vries  <tom@codesourcery.com>
21992
21993         PR tree-optimization/66010
21994         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21995         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21996         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
21997         and rval based on do_deref.
21998
21999 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22000
22001         PR target/65103
22002         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22003         link time constants into adress expressions and therefore set
22004         their cost to 0.
22005
22006 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
22007
22008         PR target/66112
22009         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22010         Use SWI248 iterator instead of SWI.
22011         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
22012         Use eq_attr "alternative" "0" instead of match_test in
22013         length_immediate attribute computation.
22014         (*mulvhi4, *mulvhi4_1): New define_insns.
22015
22016         PR target/66112
22017         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22018         SIGNED to get precision of non-negative value.
22019
22020 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22021
22022         PR target/66048
22023         * function.c (diddle_return_value_1): Process bounds first.
22024         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22025         register.
22026
22027 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22028
22029         PR rtl-optimization/64616
22030         * loop-invariant.c (can_move_invariant_reg): New.
22031         (move_invariant_reg): Call above new function to decide whether
22032         instruction can just be moved, skipping creation of temporary
22033         register.
22034
22035 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22036
22037         PR target/pr66047.c
22038         * i386.c (ix86_function_sseregparm): Only return -1 if local function
22039         with implied regparm is called from -mno-sse function.
22040         (init_cumulative_args): Output error if ix86_function_sseregparm
22041         return -1 and SSE register would be needed.
22042         (function_arg_advance_32): Likewise.
22043         (function_arg_32): Likewise.
22044         * i386.h (ix86_args): Add decl field.
22045
22046 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22047
22048         PR ipa/65873
22049         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22050         inlines across optimization boundary.
22051
22052 2015-05-12  Jason Merrill  <jason@redhat.com>
22053
22054         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22055         string literal and macro name.
22056
22057 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
22058
22059         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22060         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22061         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22062
22063 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22064
22065         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22066         (-Wmisleading-indentation): New option.
22067         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22068
22069 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
22070
22071         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22072         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22073         (alpha_extract_integer): Ditto.
22074         (alpha_legitimate_constant_p): Ditto.
22075         (alpha_split_tmode_pair): Ditto.
22076         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22077         (alpha_expand_mov): Ditto.
22078         (print_operand): Remove handling of 'H' modifier.
22079         <case 'm'>: Remove CONST_DOUBLE handling.
22080         (summarize_insn): Handle CONST_WIDE_INT.
22081         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22082         (anddi3): Ditto.
22083         (movti): Handle CONST_WIDE_INT.
22084         * config/alpha/constraints.md ('H'): Remove constraint definition.
22085         ('G'): Do not match MODE_FLOAT class.
22086         * config/alpha/predicates.md (const0_operand): Also match
22087         const_wide_int.
22088         (non_add_const_operand): Ditto.
22089         (non_zero_const_operand): Ditto.
22090         (some_operand): Ditto.
22091         (input_operand): Ditto.  Handle CONST_WIDE_INT.
22092         (and_operand): Do not match const_double.
22093         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22094
22095 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
22096
22097         PR target/65697
22098         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22099         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22100         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22101         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22102         is_mm_seq_cst, is_mm_sync): New accessor functions.
22103         * builtins.c (expand_builtin_sync_operation,
22104         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22105         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22106         (get_memmodel,  expand_builtin_atomic_compare_exchange,
22107         expand_builtin_atomic_load, expand_builtin_atomic_store,
22108         expand_builtin_atomic_clear): Use new accessor routines.
22109         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22110         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22111         (maybe_emit_sync_lock_test_and_set): Use new accessors and
22112         MEMMODEL_SYNC_ACQUIRE.
22113         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22114         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22115         expand_atomic_store): Use new accessors.
22116         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22117         * tsan.c (instrument_builtin_call): Update check for memory model beyond
22118         final enum to use MEMMODEL_LAST.
22119         * c-family/c-common.c: Use new accessor for memmodel_base.
22120         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22121         accessors.
22122         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22123         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22124         mem_thread_fence, *dmb): Likewise.
22125         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22126         alpha_split_compare_and_swap_12): Likewise.
22127         * config/arm/arm.c (arm_expand_compare_and_swap,
22128         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22129         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22130         atomic_loaddi): Likewise.
22131         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22132         Likewise.
22133         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22134         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22135         use new accessors.
22136         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22137         atomic_store<mode>, atomic_compare_and_swap<mode>,
22138         atomic_exchange<mode>): Use new accessors.
22139         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22140         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22141         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22142         rs6000_post_atomic_barrier): Add new cases.
22143         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22144         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22145         (atomic_load<mode>): Add new cases and use new accessors.
22146         (store_quadpti): Add new cases.
22147         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22148         accessors.
22149         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22150         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22151         model, not 8.
22152
22153 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22154
22155         * ipa-devirt.c (type_with_linkage_p): New function.
22156         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22157         type has linkage.
22158         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22159         (can_be_name_hashed_p): Simplify.
22160         (hash_odr_name): Check that type has linkage before checking if it is
22161         anonymous.
22162         (types_same_for_odr): Likewise.
22163         (odr_name_hasher::equal): Likewise.
22164         (odr_subtypes_equivalent_p): Likewise.
22165         (warn_types_mismatch): Likewise.
22166         (get_odr_type): Likewise.
22167         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22168         * ipa-utils.h (odr_type_p): Move offline.
22169         * tree.c (need_assembler_name_p): Fix handling of types
22170         without linkages.
22171         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22172
22173 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22174
22175         * timevar.c (timevar_enable): Delete in favor of...
22176         (g_timer): New global.
22177         (struct timevar_def): Move to timevar.h inside class timer.
22178         (struct timevar_stack_def): Likewise.
22179         (timevars): Delete global in favor of field "m_timevars" within
22180         class timer in timevar.h
22181         (stack): Likewise, in favor of field "m_stack".
22182         (unused_stack_instances): Likewise, in favor of field
22183         "m_unused_stack_instances".
22184         (start_time): Likewise, in favor of field "m_start_time".
22185         (get_time): Eliminate check for timevar_enable.
22186         (timer::timer): New function, built from part of timevar_init.
22187         (timevar_init): Rewrite idempotency test from using
22188         "timevar_enable" bool to using dynamic allocation of "g_timer".
22189         Move rest of implementation into timer's constructor.
22190         (timevar_push_1): Rename to...
22191         (timer::push): ...this, adding "m_" prefixes to variables that
22192         are now fields of timer.
22193         (timevar_pop_1): Likewise, rename to...
22194         (timer::pop): ...this, and add "m_" prefixes.
22195         (timevar_start): Replace test for "timevar_enable" with one for
22196         "g_timer", and move bulk of implementation to...
22197         (timer::start): ...here, adding "m_" prefixes.
22198         (timevar_stop): Likewise, from here...
22199         (timer::stop): ...to here.
22200         (timevar_cond_start): Likewise, from here...
22201         (timer::cond_start): ...to here.
22202         (timevar_cond_stop): Likewise, from here...
22203         (timer::cond_stop): ...to here.
22204         (validate_phases): Rename to...
22205         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22206         locals "total" and "tv" const.
22207         (timevar_print): Rename to...
22208         (timer::print): ...this, and add "m_" prefixes.  Make locals
22209         "total" and "tv" const.  Eliminate test for timevar_enable.
22210         * timevar.h (timevar_enable): Eliminate.
22211         (g_timer): New declaration.
22212         (timevar_push_1): Eliminate.
22213         (timevar_pop_1): Eliminate.
22214         (timevar_print): Eliminate.
22215         (class timer): New class.
22216         (timevar_push): Rewrite to use g_timer.
22217         (timevar_pop): Likewise.
22218         * toplev.c (toplev::~toplev): Likewise.
22219
22220 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22221
22222         * arm-protos.h (arm_sched_autopref): Delete.
22223         (tune_params): Re-organize, use enums for flag values.
22224         (FUSE_OPS): New macro.
22225         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22226         (ARM_PREFETCH_BENEFICIAL): Likewise.
22227         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22228         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22229         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22230         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22231         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22232         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22233         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22234         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22235         format.
22236         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22237         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22238         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22239
22240 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22241
22242         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22243         "break".
22244
22245 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22246             Sandra Loosemore <sandra@codesourcery.com>
22247
22248         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22249         value.
22250         (REG_CLASS_NAMES): Add "IJMP_REGS".
22251         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22252         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22253         use new "c" register constraint.
22254         * config/nios2/constraint.md (c): New register constraint
22255         corresponding to IJMP_REGS.
22256
22257 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22258
22259         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22260         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22261         define_splits): Delete, revamp, transmogrify into ...
22262         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22263         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22264         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22265         New.
22266
22267 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22268
22269         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22270         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22271
22272 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22273
22274         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22275         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22276         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22277         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22278         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22279         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22280         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22281         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22282         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22283         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22284         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22285         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22286         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22287         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22288         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22289         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22290         and 30 corresponding splitters): Delete.
22291
22292 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22293
22294         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22295         zero_extract.
22296
22297 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22298
22299         * combine.c (recog_for_combine_1): New function, factored out
22300         from recog_for_combine.
22301         (change_zero_ext): New function.
22302         (recog_for_combine): If recog fails, try again with the pattern
22303         modified by change_zero_ext; if that still fails, restore the
22304         pattern.
22305
22306 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22307
22308         * combine.c (get_undo_marker): New function.
22309         (undo_to_marker): New function, largely factored out from ...
22310         (undo_all): ... this.  Adjust.
22311
22312 2015-05-12  Richard Biener  <rguenther@suse.de>
22313
22314         PR tree-optimization/66101
22315         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22316         fixup if we turn a loop exit edge to a fallthru edge.
22317
22318 2015-05-12  Richard Biener  <rguenther@suse.de>
22319
22320         PR tree-optimization/37021
22321         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22322         (SLP_TREE_TWO_OPERATORS): New define.
22323         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22324         SLP_TREE_TWO_OPERATORS.
22325         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22326         SLP node.
22327         (vect_build_slp_tree): Adjust.
22328         (vect_analyze_slp_cost_1): Likewise.
22329         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22330         emitting two vector stmts and mixing the results.
22331
22332 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22333
22334         * call.c (print_z_candidates): Remove dead code.
22335
22336 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22337
22338         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22339         and zEC12_simple_fp.
22340         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22341         to 1.
22342
22343 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22344
22345         PR tree-optimization/66010
22346         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22347         ifn_va_arg.
22348         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22349         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22350         va_lists are passed, and remove corresponding handling.
22351         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22352         do_deref argument to ifn_va_arg.
22353         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22354         ifn_va_arg.
22355
22356 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22357
22358         PR target/65955
22359         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22360         REG before taking its REGNO.
22361
22362 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22363
22364         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22365         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22366         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22367         present to get more accurate information about the number of sign bit
22368         copies and non zero bits.
22369
22370 2015-05-12  Richard Biener  <rguenther@suse.de>
22371
22372         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22373         do not allow unrolling.
22374
22375 2015-05-11  Richard Henderson  <rth@redhat.com>
22376
22377         * config/i386/i386-modes.def (CCP): New.
22378         * config/i386/i386.c (put_condition_code): Handle it.
22379         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22380
22381 2015-05-11  Richard Henderson  <rth@redhat.com>
22382
22383         * target.def (md_asm_clobbers): Replace with...
22384         (md_asm_adjust): this.
22385         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22386         (TARGET_MD_ASM_ADJUST): New.
22387         * tm.texi: Rebuild.
22388         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22389         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22390         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22391
22392         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22393         constraints instead of lists of outputs and inputs.
22394         (expand_asm_stmt): Save and restore input_location around the
22395         body of the function.  Move asm data into vectors instead of
22396         building tree lists.  Generate cleanup sequences as needed,
22397         rather than waiting til the end.  Use new md_asm_adjust hook.
22398
22399         * config/vxworks.c: Include vec.h before target.h.
22400         * gimple.c: Likewise.
22401         * incpath.c: Likewise.
22402         * mode-switching.c: Likewise.
22403
22404         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22405         (cris_md_asm_adjust): this.
22406         (TARGET_MD_ASM_CLOBBERS): Remove.
22407         (TARGET_MD_ASM_ADJUST): New.
22408         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22409         (ix86_md_asm_adjust): this.
22410         (TARGET_MD_ASM_CLOBBERS): Remove.
22411         (TARGET_MD_ASM_ADJUST): New.
22412         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22413         (mn10300_md_asm_adjust): this.
22414         (TARGET_MD_ASM_CLOBBERS): Remove.
22415         (TARGET_MD_ASM_ADJUST): New.
22416         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22417         (rs6000_md_asm_adjust): this.
22418         (TARGET_MD_ASM_CLOBBERS): Remove.
22419         (TARGET_MD_ASM_ADJUST): New.
22420         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22421         (visium_md_asm_adjust): this.
22422         (TARGET_MD_ASM_CLOBBERS): Remove.
22423         (TARGET_MD_ASM_ADJUST): New.
22424
22425 2015-05-11  Richard Henderson  <rth@redhat.com>
22426
22427         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22428         if noutputs is zero.
22429         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22430
22431         * cfgexpand.c (expand_asm_operands): Merge into...
22432         (expand_asm_stmt): ... here.
22433
22434         * cfgexpand.c (expand_asm_operands): Don't call
22435         resolve_asm_operand_names.
22436         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22437
22438 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22439
22440         * dwarf2out.c (gen_member_die): Sanity check that we access
22441         TYPE_MAIN_VARIANT for TYPE_METHODS.
22442         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22443         checking TYPE_METHODS.
22444         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22445         if non-null.
22446         (build_distinct_type_copy): Clear TYPE_METHODS.
22447         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22448         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22449         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22450
22451 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22452
22453         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22454         (emit_pattern_before_setloc): Likewise.
22455
22456 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22457
22458         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22459         for define_peephole2s.
22460         (get_peephole2_pattern): New function.
22461         (main): Use it.  Call validate_pattern.
22462
22463 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22464
22465         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22466         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22467         (Last callee saved reg is different for AVR_TINY architecture)
22468
22469 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22470
22471         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22472         when looking for memory references.
22473
22474 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22475
22476         PR target/65753
22477         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22478         via function pointers.
22479
22480 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22481
22482         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22483         indirect call by forcing address into a pseudo with -fno-plt.
22484         * common.opt (flag_plt): New option.
22485         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22486         ([-fno-plt]): Document.
22487
22488 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22489
22490         PR bootstrap/66105
22491         * config/rs6000/option-defaults.h: Add space between string literal
22492         and macro name.
22493
22494 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22495
22496         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22497         accross ARM targets.
22498
22499 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22500
22501         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22502         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22503
22504 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22505
22506         PR rtl-optimization/66076
22507         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22508         Don't grow the heap array if it is already big enough from a
22509         previous iteration.
22510
22511 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22512
22513         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22514         (is_called_in_ARM_mode): Remove.
22515         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22516         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22517         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22518          arm_declare_function_name.
22519
22520 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22521
22522         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22523         (arm_option_params_internal); New function.
22524         (arm_option_check_internal): New function.
22525         (arm_option_override_internal): New function.
22526         (thumb_code, thumb1_code): Remove.
22527         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22528         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22529         (thumb_code, thumb1_code): Remove.
22530         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22531
22532 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22533
22534         * config/alpha/alpha.c (alpha_emit_set_const_1)
22535         (alpha_emit_set_long_const, alpha_extract_integer)
22536         (alpha_legitimate_constant_p, alpha_split_const_mov)
22537         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22538         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22539         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22540         HOST_WIDE_INT_1U.
22541         * config/alpha/predicates.md (mode_mask_operand): Do not match
22542         const_double RTX.
22543         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22544         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22545         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22546         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22547         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22548
22549 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22550
22551         PR target/65780
22552         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22553         default_binds_local_p_2.
22554         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22555         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22556
22557 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22558
22559         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22560
22561 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22562
22563         Patch by Richard Biener
22564         * coverage.c (coverage_obj_init): Delay building of type variant
22565         until the type is finished.
22566
22567 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22568
22569         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22570         mismatch between C and C++ type; compoare correctly ARG_TYPES
22571         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22572         (odr_types_equivalent_p): Fix wording of warning about attributes;
22573         it is OK to match prototype and non-prototype.
22574
22575 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22576
22577         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22578         TYPE_ARG_TYPES list.
22579         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22580         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22581
22582 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22583
22584         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22585         * tree.h (is_lang_specific): Constify.
22586
22587 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22588
22589         PR tree-optimization/64454
22590         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22591         Rewrite.
22592
22593 2015-05-08  Jason Merrill  <jason@redhat.com>
22594
22595         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22596         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22597         config/darwin.h, config/darwin9.h, config/elfos.h,
22598         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22599         config/microblaze/microblaze.h, config/mips/mips.h,
22600         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22601         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22602         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22603         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22604         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22605         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22606         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22607         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22608         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22609         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22610         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22611         between string literal and macro name.
22612
22613 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22614
22615         * jump.c: Change argument types to rtx_insn *.
22616         * rtl.h: Adjust.
22617
22618 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22619
22620         * lra-constraints.c: Change argument type to rtx_insn *.
22621
22622 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22623
22624         * df-problems.c: Change argument type to rtx_insn *.
22625
22626 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22627
22628         * combine.c: Change argument type to rtx_insn *.
22629
22630 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22631
22632         * rtl.h: Adjust.
22633         * rtlanal.c: Change argument type to rtx_insn *.
22634
22635 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22636
22637         * sched-deps.c: Change argument types to rtx_insn *.
22638         * sched-int.h: Adjust.
22639
22640 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22641
22642         * dwarf2cfi.c: Change argument type to rtx_insn *.
22643
22644 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22645
22646         * ira.c (decrease_live_ranges_number): Changetype of local
22647         variable to rtx_insn *.
22648         * recog.c: Change argument types to rtx_insn *.
22649         * recog.h: Adjust.
22650
22651 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22652
22653         * reorg.c: Change argument types to rtx_insn *.
22654
22655 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22656
22657         * ira-color.c: Change argument types to rtx_insn *.
22658         * lra-eliminations.c: Likewise.
22659         * ira.h: Adjust.
22660
22661 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22662
22663         * gcse.c: Change argument types to rtx_insn *.
22664
22665 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22666
22667         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22668
22669 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22670
22671         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22672         rtx_insn *.
22673         * rtl.h: Adjust.
22674
22675 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22676
22677         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22678         * rtl.h: Adjust.
22679
22680 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22681
22682         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22683         * rtl.h: Adjust.
22684
22685 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22686
22687         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22688         * rtl.h: Adjust.
22689
22690 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22691
22692         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22693         * rtl.h: Adjust.
22694
22695 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22696
22697         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22698         to rtx_insn *.
22699         * rtl.h: Adjust.
22700
22701 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22702
22703         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22704         to rtx_insn *.
22705         * rtl.h: Likewise.
22706
22707 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22708
22709         * except.c (can_nonlocal_goto): Change type of argument to
22710         rtx_insn *.
22711         * rtl.h: Adjust.
22712
22713 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22714
22715         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22716         * rtl.h: Adjust.
22717
22718 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22719
22720         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22721         * cfgrtl.c (can_delete_label_p): Adjust.
22722         * rtl.h: likewise.
22723
22724 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22725
22726         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22727
22728 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22729
22730         * except.c (make_reg_eh_region_note): Change argument to
22731         rtx_insn *.
22732         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22733         * except.h: Adjust.
22734
22735 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22736
22737         * mode-switching.c (commit_mode_sets): Change type of local
22738         variable from rtx to rtx_insn *.
22739
22740 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22741
22742         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22743         Add ^ to grep command.
22744         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22745         arg to last gimple_simplify declaration.  Add missing gimple_build
22746         declaration for built-in function case with four tree args.
22747
22748 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22749             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22750
22751         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22752         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22753         (GNU_USER_DYNAMIC_LINKERN32): Update.
22754
22755 2015-05-08  Richard Biener  <rguenther@suse.de>
22756
22757         PR tree-optimization/66036
22758         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22759         Handle strided group loads.
22760         (vect_verify_datarefs_alignment): Likewise.
22761         (vect_enhance_data_refs_alignment): Likewise.
22762         (vect_analyze_group_access): Likewise.
22763         (vect_analyze_data_ref_access): Likewise.
22764         (vect_analyze_data_ref_accesses): Likewise.
22765         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22766         (vectorizable_load): Likewise.
22767
22768 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22769
22770         * config/rs6000/rs6000.md: Require operand inequality in one
22771         of the peepholes.
22772
22773 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22774             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22775
22776         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22777         from (set ...).
22778         * config/rx/rx.md (movdi, movdf): Likewise.
22779         Likewise for define_peephole2s.
22780
22781 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22782
22783         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22784         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22785         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22786         vtst_u64): Rewrite using gcc vector extensions.
22787
22788 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22789
22790         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22791         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22792
22793 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22794
22795         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22796
22797 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22798
22799         * config/glibc-stdint.h (OPTION_MUSL): Define.
22800         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22801         Change the definition based on OPTION_MUSL for 64 bit targets.
22802         * config/linux.h (OPTION_MUSL): Redefine.
22803         * config/alpha/linux.h (OPTION_MUSL): Redefine.
22804         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22805         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22806
22807 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22808             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22809
22810         * config.gcc (LIBC_MUSL): New tm_defines macro.
22811         * config/linux.h (OPTION_MUSL): Define.
22812         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22813         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22814         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22815         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22816         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22817         * config/linux.opt (mmusl): New option.
22818         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22819         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22820         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22821         * configure: Regenerate.
22822
22823 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22824             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22825
22826         PR target/48904
22827         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22828         * config/i386/knetbsd-gnu64.h: New file.
22829
22830 2015-05-08  Marek Polacek  <polacek@redhat.com>
22831
22832         PR c/64918
22833         * doc/invoke.texi: Document -Woverride-init-side-effects.
22834
22835 2015-05-07  Marek Polacek  <polacek@redhat.com>
22836
22837         PR c/65179
22838         * doc/invoke.texi: Document -Wshift-negative-value.
22839
22840 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
22841
22842         * gcov-tool.c (do_merge): Refactore to remove int ret.
22843         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22844         !type == FUNC to type != FUNC.
22845         * reload.h (struct target_reload): Changee to type of
22846         x_spill_indirect_levels from bool to unsigned char.
22847
22848 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
22849
22850         * rtl.h (always_void_p): New function.
22851         * gengenrtl.c (always_void_p): Likewise.
22852         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22853         with code foo are always VOIDmode.
22854         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22855         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22856         compare-elim.c, config/aarch64/aarch64.c,
22857         config/aarch64/aarch64.md, config/alpha/alpha.c,
22858         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22859         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22860         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22861         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22862         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22863         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22864         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22865         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22866         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22867         config/ia64/vect.md, config/iq2000/iq2000.c,
22868         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22869         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22870         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22871         config/mep/mep.c, config/microblaze/microblaze.c,
22872         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22873         config/mn10300/mn10300.c, config/msp430/msp430.c,
22874         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22875         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22876         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22877         config/rs6000/altivec.md, config/rs6000/rs6000.c,
22878         config/rs6000/rs6000.md, config/rs6000/vector.md,
22879         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22880         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22881         config/sh/sh.md, config/sh/sh_treg_combine.cc,
22882         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22883         config/spu/spu.md, config/stormy16/stormy16.c,
22884         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22885         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22886         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22887         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22888         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22889         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22890         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22891         var-tracking.c: Update calls accordingly.
22892
22893 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22894
22895         PR middle-end/192
22896         PR middle-end/54303
22897         * varasm.c (function_mergeable_rodata_prefix): New function.
22898         (mergeable_string_section): Use it.
22899         (mergeable_constant_section): Use it.
22900
22901 2015-05-07  Jeff Law  <law@redhat.com>
22902
22903         PR target/39726
22904         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22905         simplifier to narrow arithmetic.
22906         * generic-match-head.c: (types_match, single_use): New functions.
22907         * gimple-match-head.c: (types_match, single_use): New functions.
22908
22909 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22910
22911         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22912         rtx type.
22913
22914 2015-05-07  Richard Biener  <rguenther@suse.de>
22915
22916         PR tree-optimization/66002
22917         * passes.def: Schedule another pass_merge_phi after ifcombine, right
22918         before phiopt.
22919
22920 2015-05-07  Marek Polacek  <polacek@redhat.com>
22921             Martin Uecker  <uecker@eecs.berkeley.edu>
22922
22923         * doc/invoke.texi: Document -fsanitize=bounds-strict.
22924         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22925         into SANITIZE_NONDEFAULT.
22926         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22927
22928 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
22929
22930         PR target/66015
22931         * config/alpha/alpha.c (alpha_override_options_after_change): New.
22932         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22933         (alpha_override_options): Move align_loops, align_jumps and
22934         align_functions handling into alpha_override_options_after_change.
22935
22936 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
22937             Chris Jones  <chrisj@nvidia.com>
22938             Joshua Conner  <jconner@nvidia.com>
22939
22940         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22941         linking of crtfastmath.o.
22942         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22943
22944 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
22945
22946         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22947         (cstore<mode>4_unsigned_imm): New expander.
22948         (cstore<mode>4): Remove empty constraint strings.  Use the new
22949         expanders.
22950
22951 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
22952
22953         PR target/64208
22954         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22955         alternatives.
22956
22957 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22958
22959         * config/aarch64/geniterators.sh: Use standard BRE in sed.
22960
22961 2015-05-06  Alan Modra  <amodra@gmail.com>
22962
22963         PR target/66033
22964         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22965         (UNSPEC_NOP): Define.
22966         (reload_vsx_from_gpr<mode>): Add missing DONE.
22967         (reload_gpr_from_vsx<mode>): Likewise.
22968         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22969         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22970
22971 2015-05-06  Christian Bruel  <christian.bruel@st.com>
22972
22973         PR target/66015
22974         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22975         align_jumps, align_functions into aarch64_override_options_after_change.
22976
22977 2015-05-06  Richard Biener  <rguenther@suse.de>
22978
22979         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22980         vect_transform_slp_perm_load to check if we support a permutation
22981         for basic-block vectorization.
22982
22983 2015-05-06  Nick Clifton  <nickc@redhat.com>
22984
22985         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22986         used, even if it is not being used as a frame pointer.
22987
22988 2015-05-05  Jason Merrill  <jason@redhat.com>
22989
22990         * dwarf2out.c (gen_member_die): Don't emit anything for an
22991         anonymous class constructor.
22992
22993 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
22994
22995         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22996         that it reflects the block structure.
22997         (afdo_propagate_edge): Likewise.
22998         (afdo_calculate_branch_prob): Likewise.
22999         (afdo_annotate_cfg): Likewise.
23000         * cfgcleanup.c (equal_different_set_p): Likewise.
23001         (try_crossjump_to_edge): Likewise.
23002         * cgraph.c (cgraph_node::verify_node): Likewise.
23003         * cgraphunit.c (expand_all_functions): Likewise.
23004         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23005         (exact_dependency_1): Likewise.
23006         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23007         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23008         * gensupport.c (process_define_subst): Likewise.
23009         * lto-wrapper.c (merge_and_complain): Likewise.
23010         * tree-if-conv.c (if_convertible_bb_p): Likewise.
23011         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23012         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23013         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23014         * tree-vect-loop.c (vectorizable_reduction): Likewise.
23015         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23016         * tree-vect-stmts.c (vectorizable_shift): Likewise.
23017         * tree-vrp.c (vrp_finalize): Likewise.
23018         * tree.c (variably_modified_type_p): Likewise.
23019
23020 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
23021
23022         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23023         on darwin12 and later.
23024         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23025         file to pass -rdynamic on darwin12 and later.
23026         * config/darwin.opt (rdynamic): Add.
23027
23028 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23029
23030         * doc/extend.texi (C Extensions): Update menu for moved Variable
23031         Attributes and Type Attributes sections.
23032
23033 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23034
23035         PR target/65990
23036         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23037         if rep_8byte stringop strategy was specified for 32-bit target.
23038
23039 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
23040
23041         PR target/65915
23042         * config/i386/i386.md (vector convert to float spltiter): Check for
23043         xmm16+, when splitting scalar float conversion.
23044         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23045
23046 2015-05-05  Nick Clifton  <nickc@redhat.com>
23047
23048         * config/msp430/msp430-opts.h (enum msp430_regions): New.
23049         * config/msp430/msp430.c (msp430_override_options): Complain if
23050         -mcode-region or -mdata-region is used on a non MSP430X.
23051         (msp430_section_attr): New function.  Checks lower, upper and
23052         either attributes.
23053         (msp430_attribute_table): Add lower, upper and either.
23054         (gen_prefix): New function.  Generates a prefix for a section
23055         name.
23056         (msp430_select_section): New function - handles the choice of
23057         section for an object.  Takes into account memory region
23058         attributes and options.
23059         (msp430_function_section): Use gen_prefix.
23060         (TARGET_SECTION_TYPE_FLAGS): Define.
23061         (msp430_section_type_flags): New function.
23062         (TARGET_ASM_UNIQUE_SECTION): Define.
23063         (msp430_unique_section): New function.
23064         (msp430_output_aligned_decl_common): New function.
23065         (msp430_do_not_relax_short_jumps): New function.
23066         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23067         Define.
23068         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23069         * config/msp430/msp430-protos.h
23070         (msp430_do_not_relax_short_jumps): New prototype.
23071         (msp430_output_aligned_decl_common): New prototype.
23072         * config/msp430/msp430.md (length): New attribute.
23073         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23074         then use a long code sequence for short jumps.
23075         * config/msp430/msp430.opt (mcode-region): New.
23076         (mdata-region): New.
23077         * doc/invoke.texi: Document new options.
23078         * doc/extend.texi: Document new attributes.
23079
23080 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23081
23082         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23083         (tune_params): Add field branch_costs.
23084         (aarch64_branch_cost): Declare.
23085         * gcc/config/aarch64.c (generic_branch_cost): New.
23086         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23087         (cortexa53_tunings): Likewise.
23088         (cortexa57_tunings): Likewise.
23089         (thunderx_tunings): Likewise.
23090         (xgene1_tunings): Likewise.
23091         (aarch64_branch_cost): Define.
23092         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23093
23094 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23095
23096         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23097         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23098         * config/i386/i386.md: Ditto.
23099         * config/i386/winnt.c: Ditto.
23100
23101 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
23102
23103         * doc/extend.texi (__atomic Builtins): Move implementation details
23104         to the end of the description, rewrite opening paragraphs, state
23105         difference with __sync builtins, state C11/C++11 assumptions,
23106         weaken itemized descriptions, add explanation of memory model
23107         behaviour, expand description of compare-exchange, simplify text.
23108
23109 2015-05-05  Renlin Li  <renlin.li@arm.com>
23110
23111         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23112
23113 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
23114
23115         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23116         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23117         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23118         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23119         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23120         * configure: Regenerate.
23121         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23122         * doc/install.texi (aarch64*-*-*): Document new
23123         --enable-fix-cortex-a53-843419 option.
23124         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23125         and -mno-fix-cortex-a53-843419 options.
23126
23127 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23128
23129         PR target/65871
23130         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23131
23132 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23133
23134         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23135         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23136         compatibility problems.
23137
23138 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23139
23140         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23141         constraints.
23142         (cbranchsi4_reg): New.
23143         * config/microblaze/microblaze.c
23144         (microblaze_expand_conditional_branch_reg): New.
23145         * config/microblaze/microblaze-protos.h
23146         (microblaze_expand_conditional_branch_reg): New prototype.
23147
23148 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23149
23150         * config/microblaze/microblaze.md (peephole2): New.
23151
23152 2015-05-04  Jeff Law  <law@redhat.com>
23153
23154         Revert:
23155         2015-05-04  Jeff Law  <law@redhat.com>
23156
23157         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23158         simplifier to narrow arithmetic.
23159         * generic-match-head.c: (types_match, single_use): New functions.
23160         * gimple-match-head.c: (types_match, single_use): New functions.
23161
23162 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23163
23164         PR target/65987
23165         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23166         (split_branches): Likewise.
23167
23168 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23169
23170         * common.opt (fdelete-null-pointer-checks): Init to -1.
23171         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23172         override flag_delete_null_pointer_checks default.
23173         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23174         behavior re address zero.  Better document target-specific behavior.
23175         (-fisolate-errneous-paths-dereference): Mention relationship to
23176         -fdelete-null-pointer-checks.
23177
23178 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23179
23180         PR tree-optimization/65984
23181         * ubsan.c: Include tree-cfg.h.
23182         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23183         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23184
23185 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23186
23187         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23188         to CONST_DOUBLE_P predicate.
23189         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23190         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23191         allow only operands that satisfy standard_sse_constant_p predicate.
23192         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23193         to CONST_DOUBLE_P predicate.
23194
23195 2015-05-04  Jeff Law  <law@redhat.com>
23196
23197         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23198         simplifier to narrow arithmetic.
23199         * generic-match-head.c: (types_match, single_use): New functions.
23200         * gimple-match-head.c: (types_match, single_use): New functions.
23201
23202 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23203
23204         * config/arm/arm.c: Restore bootstrap.
23205
23206 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23207
23208         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23209         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23210         as CONST_WIDE_INT, not CONST_DOUBLE.
23211         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23212         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23213         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23214         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23215         (ix86_build_signbit_mask): Rewrite using wide ints.
23216         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23217         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23218         (find_constant): Ditto.
23219         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23220         using gen_int_mode.
23221         * config/i386/predicates.md (x86_64_immediate_operand)
23222         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23223         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23224         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23225         (const0_operand): Also match const_wide_int.
23226         (constm1_operand): Ditto.
23227         (const1_operand): Ditto.
23228
23229 2015-05-04  Richard Biener  <rguenther@suse.de>
23230
23231         PR tree-optimization/65965
23232         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23233         store groups at gaps.
23234
23235 2015-05-04  Richard Biener  <rguenther@suse.de>
23236
23237         PR tree-optimization/65935
23238         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23239         then make sure to apply that swapping to the IL.
23240
23241 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23242
23243         * Makefile.in (PATCHLEVEL_c): New variable.
23244         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23245         expand the same way as if DEVPHASE_c was non-empty.
23246
23247 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23248
23249         PR target/65559
23250         * lto-wrapper.c (run_gcc): Open filename
23251         in binary-mode.
23252
23253 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23254
23255         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23256         sections up in file, to immediately after the Function Attributes
23257         section.
23258
23259 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23260
23261         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23262
23263 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23264
23265         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23266         (insert_partition_copy_on_edge): Adjust.
23267         (insert_rtx_to_part_on_edge): Likewise.
23268         (insert_part_to_rtx_on_edge): Likewise.
23269
23270 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23271
23272         * function.c (set_return_jump_label): Change type of argument to
23273         rtx_insn *.
23274         * function.h (set_return_jump_label): Adjust.
23275
23276 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23277
23278         * reload.h (struct reg_equivs_t): Change type of init to
23279         rtx_insn *.
23280         * ira.c (fix_reg_equiv_init): Adjust.
23281         * reload1.c (eliminate_regs_1): Likewise.
23282         (init_eliminable_invariants): Likewise.
23283
23284 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23285
23286         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23287         * cselib.h (fp_setter_insn): Adjust.
23288
23289 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23290
23291         * recog.c (struct validate_replace_src_data): Change type of
23292         insn field to rtx_insn *.
23293         (validate_replace_src_group): Change type of argument to rtx_insn *.
23294         * recog.h (validate_replace_src_group): Adjust.
23295
23296 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23297
23298         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23299         * sched-deps.c: Likewise.
23300         * sched-int.h: Likewise.
23301         * sched-rgn.c: Likewise.
23302         * sel-sched.c: Likewise.
23303
23304 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23305
23306         to rtx_insn *.
23307         * config/i386/i386.c: Change the type of some arguments to
23308         rtx_insn *.
23309         * config/arm/arm.c: Likewise.
23310
23311 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23312
23313         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23314
23315 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23316
23317         * regcprop.c (kill_autoinc_value): Change type of argument to
23318         rtx_insn *.
23319
23320 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23321
23322         * genrecog.c (print_subroutine): Adjust.
23323         * recog.c (get_bool_attr_mask_uncached): Likewise.
23324         * recog.h (struct recog_data_d): Change the type of insn to
23325         rtx_insn *.
23326
23327 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23328
23329         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23330
23331 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23332
23333         * df-problems.c (df_set_note): Change type of argument to
23334         rtx_insn *.
23335
23336 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23337
23338         * builtins.c (expand_builtin_trap): Change type of local
23339         variable to rtx_insn *.
23340         (add_sched_insns_for_speculation): Likewise.
23341         (ix86_emit_save_regs): Likewise.
23342         (get_scratch_register_on_entry): Likewise.
23343         (ix86_emit_restore_reg_using_pop): Likewise.
23344         (ix86_emit_leave): Likewise.
23345         (ix86_emit_restore_regs_using_mov): Likewise.
23346         (ix86_expand_epilogue): Likewise.
23347         Likewise.
23348         (rl78_alloc_physical_registers_umul): Likewise.
23349         * cselib.c (discard_useless_locs): Likewise.
23350         (cselib_invalidate_regno): Likewise.
23351         (cselib_invalidate_mem): Likewise.
23352         * function.c (expand_function_start): Likewise.
23353         (emit_use_return_register_into_block): Likewise.
23354         * gcse.c: Likewise.
23355         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23356         * ifcvt.c (noce_get_alt_condition): Likewise.
23357         * loop-doloop.c (doloop_condition_get): Likewise.
23358         * lra-constraints.c (inherit_in_ebb): Likewise.
23359         * modulo-sched.c (sms_schedule_by_order): Likewise.
23360         * recog.c (next_insn_tests_no_inequality): Likewise.
23361         * reorg.c (emit_delay_sequence): Likewise.
23362         (update_reg_dead_notes): Likewise.
23363         (fix_reg_dead_note): Likewise.
23364         (fill_slots_from_thread): Likewise.
23365         (delete_computation): Likewise.
23366
23367 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23368
23369         * doc/extend.texi (Variable Attributes): Add menu and proper
23370         @nodes to subsections.  Move Microsoft Windows attributes to
23371         their own subsection.
23372         (Type Attributes): Reorganize introduction to remove duplicate
23373         list of attributes.  Add menu and proper @nodes to subsections.
23374         Alphabetize the main table of common attributes.
23375
23376 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23377
23378         * match.pd: New simplification patterns.
23379         (x + (x & 1))  -> ((x + 1) & ~1)
23380         (x & ~(x & y)) -> ((x & ~y))
23381         (x | ~(x | y)) -> ((x | ~y))
23382
23383 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23384
23385         * target.def (attribute_table): Mention that struct attribute_spec
23386         is defined in tree-core.h rather than tree.h
23387         * doc/tm.texi: Regenerate.
23388
23389 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23390
23391         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23392         accordingly.
23393
23394 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23395
23396         PR translation/65959
23397         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23398
23399 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23400
23401         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23402         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23403         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23404         Return value depending on target.
23405         (generic_tunings): Initialize new target settings.
23406         (cortexa53_tunings): Likewise.
23407         (cortexa57_tunings): Likewise.
23408         (thunderx_tunings): Likewise.
23409         (xgene1_tunings): Likewise.
23410
23411 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23412
23413         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23414         Make Cortex-A53 shift costs more accurate.
23415
23416 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23417
23418         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23419         UNSIGNED_FLOAT.
23420
23421 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23422
23423         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23424         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23425
23426 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23427
23428         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23429         Add cost of op0 in the compare-with-fpzero case.
23430
23431 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23432
23433         * builtins.c (fold_builtin_1): Remove spurious second
23434         semicolon.
23435         * cgraph.h (symtab_node::get_availability): Likewise.
23436         * opts.c (common_handle_option): Remove spurious second semicolon.
23437         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23438         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23439
23440 2015-04-30  Caroline Tice  <cmtice@google.com>
23441
23442         PR gcov-profile/65929
23443         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23444         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23445         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23446         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23447         * doc/tm.texi: Regenerate.
23448         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23449         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23450         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23451         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23452
23453 2015-04-30  Marek Polacek  <polacek@redhat.com>
23454
23455         * varasm.c (handle_cache_entry): Fix logic.
23456
23457 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23458
23459         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23460         (*extrsi5_insn_uxtw_alt): Likewise.
23461         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23462         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23463         operations.
23464
23465 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23466
23467         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23468         fabd in ABS case.
23469
23470 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23471
23472         * config/aarch64/aarch64.md
23473         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23474         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23475         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23476         appropriately.  Handle alternative EON form.
23477
23478 2015-04-30  Renlin Li  <renlin.li@arm.com>
23479
23480         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23481         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23482
23483 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23484
23485         PR ipa/65873
23486         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23487         -fstrict-aliasing boundaries.
23488
23489 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23490
23491         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23492         and [SU]MNEGL patterns.
23493
23494 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23495
23496         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23497         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23498         combined arithmetic-shift ops.  Properly handle all shift and extend
23499         operations that can occur in combination with PLUS/MINUS.
23500         Rename maybe_fma to compound_p.
23501         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23502         arithmetic and shift operations.
23503
23504 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23505
23506         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23507         rather than arith_shift cost when costing ADD/MINUS of an
23508         extended value.
23509
23510 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23511
23512         PR lto/65948
23513         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23514         to itself.
23515
23516 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23517
23518         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23519         are for the same position.
23520
23521 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23522
23523         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23524         vectorize_loops.
23525         (vectorize_loops): Use it.
23526
23527 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23528
23529         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23530         for aggregate types.
23531         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23532         type to be non_ODR.
23533         * tree.c (need_assembler_name_p): Compute mangled name for
23534         non-fundamental types and integer types.
23535
23536 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23537
23538         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23539         manual swaps.
23540         * expr.c (expand_expr_real_2): Likewise.
23541
23542 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23543
23544         * tree.c (build_common_builtin_nodes): Do not build
23545         __builtin_alloca_with_align as equivalent of library alloca.
23546
23547 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23548
23549         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23550         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23551         bugus variants.
23552         * tree.c: Include print-tree.h and ipa-utils.h
23553         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23554         (free_lang_data_in_cgraph): Call verify_type.
23555         (verify_type_variant): New function.
23556         (verify_type): New function.
23557         * tree.h (verify_type): Declare.
23558
23559 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23560
23561         * config/mips/mips-cpus.def: (mips4): Change default processor
23562         from PROCESSOR_R8000 to PROCESSOR_R10000.
23563
23564 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23565
23566         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23567         la/jalr instead of jal.
23568
23569 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23570
23571         PR target/65871
23572         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23573         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23574         (setcc+movzbl peephole2): Check also clobbered reg.
23575         (setcc+andl peephole2): Ditto.
23576
23577 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23578
23579         PR libgomp/65099
23580         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23581         (main): Set it depending on "-foffload-abi=[...]".
23582         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23583         compiler.
23584
23585 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23586
23587         PR target/65770
23588         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23589         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23590         Flip lane index back at assembly time for bigendian.
23591
23592 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23593
23594         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23595         * gimplify.c (gimplify_omp_workshare): Use it.
23596
23597 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23598
23599         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23600         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23601         build/inchash.o
23602         * genrecog.c: Rewrite most of the code except for the third page.
23603
23604 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23605
23606         * inchash.h, inchash.c: Include bconfig.h for build objects.
23607         * Makefile.in (build/inchash.o): New rule.
23608
23609 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23610
23611         PR target/65924
23612         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23613         number in type attribute expression.
23614
23615 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23616
23617         * loop-iv.c (canon_condition): Generalize to all types of integer
23618         constant.
23619
23620 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23621
23622         * gimple-walk.c: Prune duplicate or unneeded includes.
23623         (walk_gimple_asm): Only call parse_input_constraint or
23624         parse_output_constraint if their findings are used.
23625         Honour parse_input_constraint and parse_output_constraint
23626         result.
23627
23628 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23629
23630         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23631
23632 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23633
23634         PR tree-optimization/65893
23635         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23636         pass_dce.
23637
23638 2015-04-29  Richard Biener  <rguenther@suse.de>
23639
23640         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23641         compute GROUP_SIZE for basic-block SLP.
23642         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23643         take into account gaps.
23644         (vect_get_mask_element): Properly reject references to previous
23645         vectors.
23646         (vect_transform_slp_perm_load): Likewise.
23647
23648 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23649
23650         PR target/64835
23651         * config/i386/i386.c (ix86_default_align): New function.
23652         (ix86_override_options_after_change): Call ix86_default_align.
23653         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23654         (ix86_override_options_after_change): New function.
23655
23656 2015-04-28  Jeff Law  <law@redhat.com>
23657
23658         * tree-ssa-dom.c (record_equality); Fix comment typos.
23659
23660 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23661
23662         PR tree-optimization/65887
23663         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23664
23665 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23666
23667         * doc/extend.texi (Declaring Attributes of Functions): Split into
23668         subsections by target.  Alphabetize the table of common attributes.
23669         Rewrite some of the introductory text to reflect the new structure.
23670         Update some cross-references to point to the new subsections.
23671         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23672         duplicate copies in the discussion of function, label, and type
23673         attributes.
23674
23675 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23676
23677         PR bootstrap/65910
23678         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23679
23680 2015-04-28  Jason Merrill  <jason@redhat.com>
23681
23682         PR c++/65734
23683         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23684         (finalize_type_size): Respect TYPE_USER_ALIGN.
23685         (layout_type) [ARRAY_TYPE]: Likewise.
23686
23687 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23688
23689         * config/arm/arm.md (*arm_movt): Fix type attribute.
23690         (*cmpsi_shiftsi): Likewise.
23691         (*cmpsi_shiftsi_swp): Likewise.
23692         (*movsicc_insn): Likewise.
23693         (*cond_move): Likewise.
23694         (*if_plus_move): Likewise.
23695         (*if_move_plus): Likewise.
23696         (*if_arith_move): Likewise.
23697         (*if_move_arith): Likewise.
23698         (*if_shift_move): Likewise.
23699         (*if_move_shift): Likewise.
23700         (*arm_movtas_ze): Likewise.
23701         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23702         redundancy and type attribute.
23703         (*thumb2_movsi_insn): Fix type attribute.
23704         (*thumb2_addsi_short): Likewise.
23705         (thumb2_addsi3_compare0): Likewise.
23706         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23707         attributes accordingly.
23708
23709 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23710
23711         PR other/65911
23712         * function.c (pad_to_arg_alignment): Add parentheses.
23713
23714 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23715
23716         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23717         libgcc/config/frv/elf-lib.h.
23718
23719 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23720
23721         * tree-call-cdce.c: Fix example in header comment.
23722
23723 2015-04-28  Richard Biener  <rguenther@suse.de>
23724
23725         PR tree-optimization/62283
23726         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23727         fails fatally and we are vectorizing a basic-block simply
23728         cause the child to be constructed piecewise.
23729         (vect_analyze_slp_cost_1): Adjust.
23730         (vect_detect_hybrid_slp_stmts): Likewise.
23731         (vect_bb_slp_scalar_cost): Likewise.
23732         (vect_get_constant_vectors): For piecewise constructed
23733         constants place them after the last def.
23734         (vect_get_slp_defs): Adjust.
23735         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23736         externals for basic-block vectorization.
23737
23738 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23739
23740         PR target/63503
23741         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23742         aarch64-*-*.
23743         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23744         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23745         (AARCH64_TUNE_FMA_STEERING): Likewise.
23746         * config/aarch64/aarch64-cores.def: Set
23747         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23748         FMUL/FMADD instructions.
23749         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23750         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23751         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23752         * config/aarch64/cortex-a57-fma-steering.h: New file.
23753         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23754
23755 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23756
23757         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23758
23759 2015-04-28  Richard Biener  <rguenther@suse.de>
23760
23761         PR tree-optimization/65851
23762         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23763         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23764         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23765         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23766         (ccp_visit_phi_node): Adjust.
23767         (evaluate_stmt): For simplifications to SSA names return its
23768         lattice value if that isn't VARYING.  Return immediately when
23769         simplified to a constant.
23770         (visit_assignment): Adjust.
23771         (ccp_visit_stmt): Likewise.
23772
23773 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23774
23775         PR tree-optimization/65818
23776         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23777         evaluated.
23778
23779 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23780
23781         * calls.c (save_fixed_argument_area): Don't check
23782         ARGS_GROW_DOWNWARD with the preprocessor.
23783         (restore_fixed_argument_area): Likewise.
23784         (mem_overlaps_already_clobbered_arg_p): Likewise.
23785         (check_sibcall_argument_overlap): Likewise.
23786         (expand_call): Likewise.
23787         (emit_library_call_value_1): Likewise.
23788         (store_one_arg): Likewise.
23789         * function.c (assign_parms): Likewise.
23790         (locate_and_pad_parm): Likewise.
23791         (pad_to_arg_alignment): Likewise.
23792         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23793
23794 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23795
23796         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23797         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23798         * calls.c (save_fixed_argument_area): Don't chekc if
23799         ARGS_GROW_DOWNWARD is defined.
23800         (restore_fixed_argument_area): Likewise.
23801         (mem_overlaps_already_clobbered_arg_p): Likewise.
23802         (check_sibcall_argument_overlap): Likewise.
23803         (expand_call): Likewise.
23804         (emit_library_call_value_1): Likewise.
23805         (store_one_arg): Likewise.
23806         * function.c (assign_parms): Likewise.
23807         (locate_and_pad_parm): Likewise.
23808         (pad_to_arg_alignment): Likewise.
23809         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23810
23811 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23812
23813         * defaults.h (gen_epilogue): New function.
23814         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23815         defined.
23816         * cfgrtl.c (cfg_layout_finalize): Likewise.
23817         * df-scan.c: Likewise.
23818         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23819         (reposition_prologue_and_epilogue_notes): Likewise.
23820         * reorg.c (find_end_label): Likewise.
23821         * toplev.c: Likewise.
23822
23823 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23824
23825         * bb-reorder.c (HAVE_return): Don't check if its undefined.
23826         * defaults.h (gen_simple_return): New function.
23827         (gen_simple_return): Likewise.
23828         (HAVE_return): Add default definition to false.
23829         (HAVE_simple_return): Likewise.
23830         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23831         HAVE_return and HAVE_simple_return are defined.
23832         * function.c (gen_return_pattern): Likewise.
23833         (convert_jumps_to_returns): Likewise.
23834         (thread_prologue_and_epilogue_insns): Likewise.
23835         * reorg.c (find_end_label): Likewise.
23836         (dbr_schedule): Likewise.
23837         * shrink-wrap.c: Likewise.
23838         * shrink-wrap.h: Likewise.
23839
23840 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23841
23842         * defaults.h (EPILOGUE_USES): Add default definition of false.
23843         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23844         * resource.c (init_resource_info): Likewise.
23845
23846 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23847
23848         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23849         to false.
23850         * dwarf2out.c (field_byte_offset): REmove check if
23851         PCC_BITFIELD_TYPE_MATTERS is defined.
23852         * stor-layout.c (layout_decl): Likewise.
23853         (update_alignment_for_field): Likewise.
23854         (place_field): Likewise.
23855
23856 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23857
23858         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23859         true.
23860         * regrename.c (check_new_reg_p): Remove check if
23861         HARD_REGNO_RENAME_OK is defined.
23862         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23863
23864 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23865
23866         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23867         * cse.c (fold_rtx): Likewise.
23868         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23869         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23870         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23871         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23872         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23873         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23874         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23875         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23876         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23877         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23878         * Likewise.
23879         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23880         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23881         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23882         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23883         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23884         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23885         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23886         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23887         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23888         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23889         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23890         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23891         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23892         * doc/tm.texi: Regenerate.
23893         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23894         either true or false.
23895
23896 2015-04-27  Jeff Law  <law@redhat.com>
23897
23898         PR tree-optimization/65217
23899         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23900         of them has a single use, make sure it is the LHS of the implied
23901         copy.
23902
23903 2015-04-28  Alan Modra  <amodra@gmail.com>
23904
23905         PR target/65810
23906         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23907         (offsettable_ok_by_alignment): Use minimum of decl and toc
23908         pointer alignment.  Replace dead code with assertion.
23909         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
23910         case if size exceeds toc pointer alignment.
23911         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23912         (rs6000_emit_move): Likewise.
23913         * configure.ac: Add linker toc pointer alignment check.
23914         * configure: Regenerate.
23915         * config.in: Regenerate.
23916
23917 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
23918
23919         * config.gcc: Add h8300-*-linux.
23920         * config/h8300/linux.h: New.
23921         * config/h8300/t-linux: New.
23922         * config/h8300/h8300.c (h8300_option_override): Normal mode
23923         is not supported for h8300-*-linux.
23924         (h8300_file_start): Target priority change.
23925         (get_shift_alg): Likewise.
23926         (h8300_shift_need_scratch_p): Likewise.
23927         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23928         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23929
23930 2015-04-27  Caroline Tice  <cmtice@google.com>
23931
23932         * final.c (final_scan_insn):  Output cold_function_name as function
23933         type.
23934         * varasm.c (cold_function_name):  Make global.
23935         (assemble_start_function):  Re-set cold_function_name.
23936         (assemble_end_function): Output cold partition size.
23937         * varasm.h (cold_function_name):  Declare global.
23938
23939 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
23940
23941         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23942         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23943         constraint.
23944         (*movxi_internal_avx512f): Ditto.
23945         (define_split): Check for xmm16+, when splitting scalar float_extend.
23946         (*extendsfdf2_mixed): Use "v" constraint.
23947         (define_split): Check for xmm16+, when splitting scalar float_truncate.
23948         (*truncdfsf_fast_sse): Use "v" constraint.
23949         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23950         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23951         (define_peephole2): Check for xmm16+, when converting scalar
23952         float_truncate.
23953         (define_peephole2): Check for xmm16+, when converting scalar
23954         float_extend.
23955         (*fop_<mode>_comm_mixed): Use "v" constraint.
23956         (*fop_<mode>_comm_sse): Ditto.
23957         (*fop_<mode>_1_mixed): Ditto.
23958         (*sqrt<mode>2_sse): Ditto.
23959         (*ieee_s<ieee_maxmin><mode>3): Ditto.
23960
23961 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23962
23963         * combine.c (simplify_if_then_else): Use std::swap instead
23964         of manually swapping.
23965         (known_cond): Likewise.
23966         (simplify_comparison): Likewise.
23967
23968 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
23969
23970         PR target/64579
23971         * config/rs6000/htm.md: Remove all define_expands.
23972         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23973         UNSPECV_HTM_TABORTWCI): Remove.
23974         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23975         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23976         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23977         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23978         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23979         tabortwci_internal): Remove define_insns.
23980         (tabort<wd>c, tabort<wd>ci): New define_insns.
23981         (tabort): Use gpc_reg_operand.
23982         (tcheck): Remove operand.
23983         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23984         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23985         expected value.
23986         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23987         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
23988         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23989         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23990         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23991         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23992         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23993         (tcheck): Remove builtin argument.
23994         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23995         not TARGET_64BIT.
23996         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
23997         tabortdc and tabortdci builtins when not in 64-bit mode.
23998         Modify code to handle the loss of the HTM define_expands.
23999         Emit code to copy the CR register to TARGET.
24000         (htm_init_builtins): Modify code to handle the loss of the HTM
24001         define_expands.
24002         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24003         (RS6000_BTC_64BIT): Likewise.
24004         (RS6000_BTC_CR): New macro.
24005         * doc/extend.texi: Update documentation for htm builtins.
24006
24007 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24008
24009         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24010         of manually swapping.
24011         (simplify_associative_operation): Likewise.
24012         (simplify_binary_operation): Likewise.
24013         (simplify_plus_minus): Likewise.
24014         (simplify_relational_operation): Likewise.
24015         (simplify_ternary_operation): Likewise.
24016
24017 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24018
24019         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24020         (xs_hi_nonmemory_operand): Remove error.
24021         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24022         general_operand rather than xs_hi_general_operand.
24023
24024 2015-04-27  Richard Biener  <rguenther@suse.de>
24025
24026         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24027         (record_equivalences_from_stmt): Valueize rhs.
24028         (record_equality): Canonicalize x and y order via
24029         tree_swap_operands_p.  Do not swap operands for same loop depth.
24030
24031 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
24032
24033         PR target/65296
24034         PR target/65895
24035         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24036         Add hint how to use own spec file.
24037
24038 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
24039
24040         PR tree-optimization/65875
24041         * tree-vrp.c (update_value_range): If in is_new case setting
24042         old_vr to VR_VARYING, also set new_vr to it.  Remove
24043         old_vr->type == VR_VARYING test.
24044         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24045         SSA_PROP_INTERESTING if update_value_range returned true,
24046         but new range is VR_VARYING.
24047
24048 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24049
24050         * combine.c (sign_extend_short_imm): New.
24051         (set_nonzero_bits_and_sign_copies): Use above new function for sign
24052         extension of src short immediate.
24053         (reg_nonzero_bits_for_combine): Likewise for tem.
24054
24055 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24056
24057         * stor-layout.c (self_referential_component_ref_p): New predicate.
24058         (copy_self_referential_tree_r): Use it.
24059         (self_referential_size): Punt for simple operations directly involving
24060         self-referential component references.
24061         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24062
24063 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24064
24065         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24066
24067 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
24068
24069         * vec.h (vec): Make splice arguments const.  Update definitions
24070         accordingly.
24071
24072 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
24073
24074         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24075         alternatives.
24076
24077 2015-04-26  Tom de Vries  <tom@codesourcery.com>
24078
24079         PR tree-optimization/65826
24080         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24081
24082 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
24083
24084         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24085         (*madd3<mode>): Ditto.
24086         (*msub4<mode>): Ditto.
24087         (*msub3<mode>): Ditto.
24088         (*nmadd4<mode>): Ditto.
24089         (*nmadd3<mode>): Ditto.
24090         (*nmadd4<mode>_fastmath): Ditto.
24091         (*nmadd3<mode>_fastmath): Ditto.
24092         (*nmsub4<mode>): Ditto.
24093         (*nmsub3<mode>): Ditto.
24094         (*nmsub4<mode>_fastmath): Ditto.
24095         (*nmsub3<mode>_fastmath): Ditto.
24096
24097 2015-04-24  Jason Merrill  <jason@redhat.com>
24098
24099         PR c++/50800
24100         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24101         down when building TYPE_CANONICAL.
24102         (build_pointer_type_for_mode): Likewise.
24103
24104 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
24105
24106         * genrecog.c (validate_pattern): Check matching constraint refers
24107         to a lower numbered operand.
24108
24109 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24110
24111         PR target/65849
24112         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24113         save to independent variables use the Save attribute.  This will
24114         allow these options to be modified with the #pragma/attribute
24115         target support.
24116         (-mallow-movmisalign): Likewise.
24117         (-mallow-df-permute): Likewise.
24118         (-msched-groups): Likewise.
24119         (-malways-hint): Likewise.
24120         (-malign-branch-targets): Likewise.
24121         (-mvectorize-builtins): Likewise.
24122         (-msave-toc-indirect): Likewise.
24123
24124         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24125         can be set via the #pragma/attribute target support.
24126         (rs6000_opt_vars): Likewise.
24127         (rs6000_inner_target_options): If VSX was set, also set
24128         -mno-avoid-indexed-addresses.
24129
24130 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24131
24132         * config/arm/iterators.md (shiftable_ops): Rename to...
24133         (SHIFTABLE_OPS): ... This.  Update use in comments.
24134         (ior_xor): Rename to...
24135         (IOR_XOR): ... This.
24136         (vqh_ops): Rename to...
24137         (VQH_OPS): ... This.
24138         (vqhs_ops): Rename to...
24139         (VQHS_OPS): ... This.
24140         (rshifts): Rename to...
24141         (RSHIFTS): ... This.
24142         (returns): Rename to...
24143         (RETURNS): ... This.
24144         * config/arm/arm.md: Update uses of the above.
24145         * config/arm/neon.md: Likewise.
24146
24147 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24148
24149         * config.host (case ${host}): Add aarch64*-*-linux case.
24150         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24151         fields to all the cores.
24152         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24153         Add MCPU_MTUNE_NATIVE_SPECS.
24154         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24155         field to all extensions.
24156         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24157         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24158         Adjust definition of AARCH64_OPT_EXTENSION.
24159         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24160         (MCPU_MTUNE_NATIVE_SPECS): Define.
24161         * config/aarch64/driver-aarch64.c: New file.
24162         * config/aarch64/x-arch64: New file.
24163         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24164         -mtune and -march.
24165
24166 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24167             Wei Mi  <wmi@google.com>
24168
24169         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24170         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24171         (ix86_operands_ok_for_move_multiple): Ditto.
24172         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24173         (movlpd/movhpd to movupd peephole2): Ditto.
24174
24175 2015-04-24  Marek Polacek  <polacek@redhat.com>
24176
24177         PR c/61534
24178         * input.h (from_macro_expansion_at): Define.
24179
24180         PR c/63357
24181         * doc/invoke.texi: Update description of -Wlogical-op.
24182
24183 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24184
24185         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24186         ternary operator in fprintf and harmonize spacing.
24187
24188 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24189
24190         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24191         Mark operand1 commutative.
24192
24193 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24194
24195         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24196         input operands in memory.
24197         (*vec_concatv2si_sse4_1): Ditto.
24198         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24199         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24200         register_operand.
24201         (vec_extract_hi_v32hi): Ditto.
24202         (vec_extract_hi_v64hi): Ditto.
24203         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24204
24205 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24206             Steven Bosscher <steven@gcc.gnu.org>
24207
24208         PR rtl-optimization/34503
24209         * cprop.c (cprop_reg_p): New.
24210         (hash_scan_set): Use above function to check if register can be
24211         propagated.
24212         (find_avail_set): Return up to two sets, one whose source is a
24213         register and one whose source is a constant.  Sets are returned in an
24214         array passed as parameter rather than as a return value.
24215         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24216         sets returned by find_avail_set, starting with the one whose source is
24217         a constant. Use cprop_reg_p to check if register can be propagated.
24218         (do_local_cprop): Use cprop_reg_p to check if register can be
24219         propagated.
24220         (implicit_set_cond_p): Likewise.
24221
24222 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24223
24224         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24225         (sem_function::equals): IGNORED_NODES parameter is now unused;
24226         update call of equals_private.
24227         (sem_function::equals_private): Do not call equals_wpa; skip
24228         gimple body matching if there is no body.
24229         (sem_function::init): Add logic to hash tthunk info.
24230         (sem_function::parse): Also parse thunks.
24231         * ipa-icf.h (equals_private): Update declaration.
24232
24233 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24234
24235         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24236         asterisk from name so this can be generated directly.
24237         (*altivec_stvx_<mode>_internal): Likewise.
24238         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24239         that this is never called during or after reload/lra.
24240         (rs6000_frame_related): Remove split_reg
24241         argument and logic that references it.
24242         (emit_frame_save): Remove last parameter from call to
24243         rs6000_frame_related.
24244         (rs6000_emit_prologue): Remove last parameter from eight calls to
24245         rs6000_frame_related.  Force generation of stvx instruction for
24246         Altivec register saves.  Remove split_reg handling, which is no
24247         longer needed.
24248         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24249         Altivec register restores.
24250
24251 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24252
24253         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24254         match category changes in ISA 2.07B.
24255
24256 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24257
24258         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24259         iterators.
24260         (cmp_op, cmp_type): New code attributes.
24261         (NEON_VCMP, NEON_VACMP): New int iterators.
24262         (cmp_op_unsp): New int attribute.
24263         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24264         (neon_vceq<mode>): Delete.
24265         (neon_vc<cmp_op><mode>_insn): New pattern.
24266         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24267         (neon_vcgeu<mode>): Delete.
24268         (neon_vcle<mode>): Likewise.
24269         (neon_vclt<mode>: Likewise.
24270         (neon_vcage<mode>): Likewise.
24271         (neon_vcagt<mode>): Likewise.
24272         (neon_vca<cmp_op><mode>): New define_expand.
24273         (neon_vca<cmp_op><mode>_insn): New pattern.
24274         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24275
24276 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24277
24278         * tree.h (attribute_value_equal): Declare.
24279         * tree.c (attribute_value_equal): Export.
24280
24281 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24282
24283         * ipa-icf.c (sem_item::compare_attributes): New function.
24284         (sem_item::compare_referenced_symbol_properties): Compare variable
24285         attributes.
24286         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24287         (sem_function::param_used_p): New function.
24288         (sem_function::equals_wpa): Fix attribute comparsion; match
24289         parameter type codes; do not compare paremter flags when
24290         they are not used; compare edge flags; compare indirect calls.
24291         (sem_item::update_hash_by_addr_refs): Hash reference type.
24292         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24293         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24294         reference use type.
24295         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24296         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24297
24298 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24299
24300         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24301         cleanup.
24302         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24303         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24304         (sem_item::compare_referenced_symbol_properties): New.
24305         (sem_item::hash_referenced_symbol_properties): New.
24306         (sem_item::compare_cgraph_references): Rename to ...
24307         (sem_item::compare_symbol_references): ... this one; use
24308         compare_referenced_symbol_properties.
24309         (sem_function::equals_wpa): Do not compare
24310         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24311         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24312         (sem_item::update_hash_by_addr_refs): Call
24313         hash_referenced_symbol_properties.
24314         (sem_item::update_hash_by_local_refs): Cleanup.
24315         (sem_function::merge): Do not mix up symbol properties.
24316         (sem_variable::equals_wpa): Use compare_symbol_references.
24317         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24318         (sem_item::hash_referenced_symbol_properties): New.
24319         (sem_item::compare_symbol_references): New.
24320         (sem_item::compare_cgraph_references): Remove.
24321
24322 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24323
24324         PR target/26702
24325         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24326         Emit size of local.
24327
24328 2015-04-23  Nick Clifton  <nickc@redhat.com>
24329
24330         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24331         ATTRIBUTE_UNUSED to x parameter.
24332         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24333
24334 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24335
24336         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24337         TARGET_CRYPTO to TARGET_P8_VECTOR>
24338         (crypto_vpermxor_<mode>): Likewise.
24339         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24340         (BU_CRYPTO_3A): Likewise.
24341         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24342         (BU_CRYPTO_OVERLOAD_3A): New #define.
24343         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24344         (VPMSUMH): Likewise.
24345         (VPMSUMW): Likewise.
24346         (VPMSUMD): Likewise.
24347         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24348         (VPERMXOR_V4SI): Likewise.
24349         (VPERMXOR_V8HI): Likewise.
24350         (VPERMXOR_V16QI): Likewise.
24351         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24352         BU_CRYPTO_OVERLOAD_2A.
24353         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24354         BU_CRYPTO_OVERLOAD_3A.
24355         * config/rs6000/rs6000.opt (mcrypto): Change description of
24356         option.
24357
24358 2015-04-23  Richard Biener  <rguenther@suse.de>
24359
24360         * passes.def: Remove copy propagation passes run directly after CCP.
24361         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24362         SSA names.
24363         (ccp_visit_phi_node): Rework to handle first executable edge
24364         specially.
24365
24366 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24367
24368         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24369         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24370         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24371         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24372         (thumb_legimitimize_reload_address): Remove.
24373         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24374         Remove.
24375         (thumb_legimitimize_reload_address): Remove.
24376
24377 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24378
24379         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24380
24381 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24382
24383         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24384         MAX_LDM_STM_OPS.
24385         (store_multiple): Likewise.
24386
24387 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24388
24389         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24390         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24391         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24392         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24393         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24394         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24395         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24396         Specify issue_rate value.
24397         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24398         large switch statement.
24399         (arm_marvell_pj4_tune): New struct.
24400         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24401         struct.
24402
24403 2015-04-23  Richard Biener  <rguenther@suse.de>
24404
24405         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24406         (vect_find_last_store_in_slp_instance): Rename to ...
24407         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24408         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24409         and vec_construct for external defs when estimating prologue cost.
24410         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24411         Compute costs here only when vectorizing loops.
24412         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24413         have been determined.
24414         (vect_schedule_slp_instance): Simplify vectorized code placement
24415         and prepare for in-BB external defs.
24416         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24417         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24418         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24419         guard.
24420         (vect_model_load_cost): Likewise.
24421         (vectorizable_store): Instead add it here.
24422         (vectorizable_load): Likewise.
24423         (vect_is_simple_use): Dump def type textually.
24424
24425 2015-04-23  Richard Biener  <rguenther@suse.de>
24426
24427         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24428         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24429         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24430         instead of get_eh_region_from_lp_number.
24431         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24432         the SCEV cache.
24433
24434 2015-04-23  Anton Blanchard  <anton@samba.org>
24435
24436         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24437         need for -mprofile-kernel to save LR to stack.
24438
24439 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24440
24441         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24442         adjustments.
24443         (insn_is_swappable_p): Return 1 for a convert from double to
24444         single precision when all of its uses are splats of BE element
24445         zero.
24446
24447 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24448
24449         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24450
24451 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24452
24453         PR target/65456
24454         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24455         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24456         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24457         option.
24458         (rs6000_builtin_mask_for_load): Return 0 for targets with
24459         efficient unaligned VSX accesses so that the vectorizer will use
24460         direct unaligned loads.
24461         (rs6000_builtin_support_vector_misalignment): Always return true
24462         for targets with efficient unaligned VSX accesses.
24463         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24464         stores on targets with efficient unaligned VSX accesses is almost
24465         always the same as the cost of an aligned load or store, so model
24466         it that way.
24467         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24468         unaligned vectors if we have efficient unaligned VSX accesses.
24469         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24470         undocumented option.
24471
24472 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24473
24474         Revert:
24475         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24476
24477         * config.gcc (LIBC_MUSL): New tm_defines macro.
24478         * config/linux.h (OPTION_MUSL): Define.
24479         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24480         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24481         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24482
24483         * config/linux.opt (mmusl): New option.
24484         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24485         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24486
24487         * configure: Regenerate.
24488
24489 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24490
24491         * config.gcc (LIBC_MUSL): New tm_defines macro.
24492         * config/linux.h (OPTION_MUSL): Define.
24493         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24494         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24495         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24496
24497         * config/linux.opt (mmusl): New option.
24498         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24499         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24500
24501         * configure: Regenerate.
24502
24503 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24504
24505         * doc/invoke.texi (-fsanitize-sections): Update description.
24506         * asan.c (set_sanitized_sections): Parse incoming arg.
24507         (section_sanitized_p): Support wildcards.
24508
24509 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24510
24511         PR tree-optimization/65823
24512         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24513         equality between ap_copy and ap.
24514
24515 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24516
24517         PR target/47098
24518         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24519
24520 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24521
24522         PR target/47122
24523         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24524
24525 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24526
24527         PR target/55144
24528         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24529         remove already contained t-files.
24530
24531 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24532
24533         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24534         Remove unneeded forward declarations.
24535         (suitable_for_tail_call_opt_p): Commentary typo fix.
24536
24537 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24538
24539         * varasm.c (emit_bss): Remove redundant guard.
24540
24541 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24542
24543         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24544
24545 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24546
24547         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24548
24549 2015-04-22  Hale Wang  <hale.wang@arm.com>
24550             Terry Guo  <terry.guo@arm.com>
24551
24552         PR rtl-optimization/64818
24553         * combine.c (can_combine_p): Don't combine user-specified
24554         register if it is in an asm input.
24555
24556 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24557
24558         PR ipa/65076
24559         * passes.def (early_optimizations): Add pass_dse.
24560
24561 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24562
24563         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24564         * reorg.c (redundant_insn): Remove ifdef
24565         INSN_REFERENCES_ARE_DELAYED.
24566         * resource.c (mark_referenced_resources): Likewise.
24567
24568 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24569
24570         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24571         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24572         * resource.c (mark_set_resources): Likewise.
24573
24574 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24575
24576         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24577         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24578         (flow_find_head_matching_sequence): Likewise.
24579         (try_head_merge_bb): Likewise.
24580         * combine.c (can_combine_p): Likewise.
24581         (try_combine): Likewise.
24582         (distribute_notes): Likewise.
24583         * df-problems.c (can_move_insns_across): Likewise.
24584         * final.c (final): Likewise.
24585         * gcse.c (insert_insn_end_basic_block): Likewise.
24586         * ira.c (find_moveable_pseudos): Likewise.
24587         * reorg.c (try_merge_delay_insns): Likewise.
24588         (fill_simple_delay_slots): Likewise.
24589         (fill_slots_from_thread): Likewise.
24590         * sched-deps.c (sched_analyze_2): Likewise.
24591
24592 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24593
24594         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24595         PIC_OFFSET_TABLE_REGNUM.
24596
24597 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24598
24599         * alias.c (init_alias_target): Remove ifdef
24600         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24601         * df-scan.c (df_insn_refs_collect): Likewise.
24602         (df_get_regular_block_artificial_uses): Likewise.
24603         (df_get_eh_block_artificial_uses): Likewise.
24604         (df_get_entry_block_def_set): Likewise.
24605         (df_get_exit_block_use_set): Likewise.
24606         * emit-rtl.c (gen_rtx_REG): Likewise.
24607         * ira.c (ira_setup_eliminable_regset): Likewise.
24608         * reginfo.c (init_reg_sets_1): Likewise.
24609         * regrename.c (rename_chains): Likewise.
24610         * reload1.c (reload): Likewise.
24611         (eliminate_regs_in_insn): Likewise.
24612         * resource.c (mark_referenced_resources): Likewise.
24613         (init_resource_info): Likewise.
24614
24615 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24616
24617         * defaults.h (MASK_RETURN_ADDR): New definition.
24618         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24619         MASK_RETURN_ADDR.
24620
24621 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24622
24623         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24624         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24625         RETURN_ADDR_OFFSET.
24626         (expand_builtin_frob_return_addr): Likewise.
24627
24628 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24629
24630         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24631         (try_redirect_by_replacing_jump): Likewise.
24632         (rtl_tidy_fallthru_edge): Likewise.
24633         * combine.c (insn_a_feeds_b): Likewise.
24634         (find_split_point): Likewise.
24635         (simplify_set): Likewise.
24636         * cprop.c (cprop_jump): Likewise.
24637         * cse.c (cse_extended_basic_block): Likewise.
24638         * df-problems.c (can_move_insns_across): Likewise.
24639         * function.c (emit_use_return_register_into_block): Likewise.
24640         * haifa-sched.c (sched_init): Likewise.
24641         * ira.c (find_moveable_pseudos): Likewise.
24642         * loop-invariant.c (find_invariant_insn): Likewise.
24643         * lra-constraints.c (curr_insn_transform): Likewise.
24644         * postreload.c (reload_combine_recognize_const_pattern):
24645         * Likewise.
24646         * reload.c (find_reloads): Likewise.
24647         * reorg.c (delete_scheduled_jump): Likewise.
24648         (steal_delay_list_from_target): Likewise.
24649         (steal_delay_list_from_fallthrough): Likewise.
24650         (redundant_insn): Likewise.
24651         (fill_simple_delay_slots): Likewise.
24652         (fill_slots_from_thread): Likewise.
24653         (delete_computation): Likewise.
24654         * sched-rgn.c (add_branch_dependences): Likewise.
24655
24656 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24657
24658         * genconfig.c (main): Always define HAVE_cc0.
24659         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24660         HAVE_cc0.
24661         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24662         (flow_find_head_matching_sequence): Likewise.
24663         (try_head_merge_bb): Likewise.
24664         * cfgrtl.c (rtl_merge_blocks): Likewise.
24665         (try_redirect_by_replacing_jump): Likewise.
24666         (rtl_tidy_fallthru_edge): Likewise.
24667         * combine.c (do_SUBST_MODE): Likewise.
24668         (insn_a_feeds_b): Likewise.
24669         (combine_instructions): Likewise.
24670         (can_combine_p): Likewise.
24671         (try_combine): Likewise.
24672         (find_split_point): Likewise.
24673         (subst): Likewise.
24674         (simplify_set): Likewise.
24675         (distribute_notes): Likewise.
24676         * cprop.c (cprop_jump): Likewise.
24677         * cse.c (cse_extended_basic_block): Likewise.
24678         * df-problems.c (can_move_insns_across): Likewise.
24679         * final.c (final): Likewise.
24680         (final_scan_insn): Likewise.
24681         * function.c (emit_use_return_register_into_block): Likewise.
24682         * gcse.c (insert_insn_end_basic_block): Likewise.
24683         * haifa-sched.c (sched_init): Likewise.
24684         * ira.c (find_moveable_pseudos): Likewise.
24685         * loop-invariant.c (find_invariant_insn): Likewise.
24686         * lra-constraints.c (curr_insn_transform): Likewise.
24687         * optabs.c (prepare_cmp_insn): Likewise.
24688         * postreload.c (reload_combine_recognize_const_pattern):
24689         * Likewise.
24690         * reload.c (find_reloads): Likewise.
24691         (find_reloads_address_1): Likewise.
24692         * reorg.c (delete_scheduled_jump): Likewise.
24693         (steal_delay_list_from_target): Likewise.
24694         (steal_delay_list_from_fallthrough): Likewise.
24695         (try_merge_delay_insns): Likewise.
24696         (redundant_insn): Likewise.
24697         (fill_simple_delay_slots): Likewise.
24698         (fill_slots_from_thread): Likewise.
24699         (delete_computation): Likewise.
24700         (relax_delay_slots): Likewise.
24701         * sched-deps.c (sched_analyze_2): Likewise.
24702         * sched-rgn.c (add_branch_dependences): Likewise.
24703
24704 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24705
24706         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24707         that is trivially ded on non cc0 targets.
24708         (simplify_set): Likewise.
24709         (mark_used_regs_combine): Likewise.
24710         * cse.c (new_basic_block): Likewise.
24711         (fold_rtx): Likewise.
24712         (cse_insn): Likewise.
24713         (cse_extended_basic_block): Likewise.
24714         (set_live_p): Likewise.
24715         * rtlanal.c (canonicalize_condition): Likewise.
24716         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24717
24718 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24719
24720         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24721         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24722         * final.c: Likewise.
24723         * jump.c: Likewise.
24724         * recog.c: Likewise.
24725         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24726         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24727
24728 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24729
24730         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24731         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24732         * builtins.c (expand_builtin): Remove check if
24733         EH_RETURN_DATA_REGNO is defined.
24734         * df-scan.c (df_bb_refs_collect): Likewise.
24735         (df_get_exit_block_use_set): Likewise.
24736         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24737         * ira-lives.c (process_bb_node_lives): Likewise.
24738         * lra-lives.c (process_bb_lives): Likewise.
24739
24740 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24741
24742         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24743         FIRST_PSEUDO_REG): New.
24744         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24745         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24746         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24747         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24748         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24749         (FIRST_INT_REG): New.
24750         (LAST_INT_REG): New.
24751         (FIRST_*_REG): Define using *_REG.
24752         (LAST_*_REG): Ditto.
24753         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24754         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24755         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24756
24757 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24758
24759         * expmed.c: (synth_mult): Only assume overlapping
24760         shift with previous steps in alg_sub_t_m2 case.
24761
24762 2015-04-21  Richard Biener  <rguenther@suse.de>
24763
24764         PR tree-optimization/65650
24765         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24766         transitions involving copies.
24767         (set_lattice_value): Adjust for copy lattice state.
24768         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24769         if that doesn't dominate the merge point.
24770         (bit_value_unop): Adjust what we treat as varying mask.
24771         (bit_value_binop): Likewise.
24772         (bit_value_assume_aligned): Likewise.
24773         (evaluate_stmt): When we simplified to a SSA name record a copy
24774         instead of dropping to varying.
24775         (visit_assignment): Simplify.
24776
24777         * gimple-match.h (gimple_simplify): Add another callback.
24778         * gimple-fold.c (fold_stmt_1): Adjust caller.
24779         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24780         for the 2nd callback.
24781         * gimple-match-head.c (gimple_simplify): Add a callback that is
24782         used to valueize the stmt operands and use it that way.
24783
24784 2015-04-21  Richard Biener  <rguenther@suse.de>
24785
24786         PR tree-optimization/65788
24787         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24788
24789 2015-04-21  Richard Biener  <rguenther@suse.de>
24790
24791         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24792         vec_construct cost by vec_stmt_cost.
24793
24794 2015-04-21  Richard Biener  <rguenther@suse.de>
24795
24796         * cfghooks.h (create_basic_block): Replace with two overloads
24797         for RTL and GIMPLE.
24798         (split_block): Likewise.
24799         * cfghooks.c (split_block): Rename to ...
24800         (split_block_1): ... this.
24801         (split_block): Add two type-safe overloads for RTL and GIMPLE.
24802         (split_block_after_labels): Call split_block_1.
24803         (create_basic_block): Rename to ...
24804         (create_basic_block_1): ... this.
24805         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24806         (create_empty_bb): Call create_basic_block_1.
24807         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24808         split_block_after_labels.
24809         * omp-low.c (expand_parallel_call): Likewise.
24810         (expand_omp_target): Likewise.
24811         (simd_clone_adjust): Likewise.
24812         * tree-chkp.c (chkp_get_entry_block): Likewise.
24813         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24814         create_basic_block overload.
24815         (cgraph_node::expand_thunk): Likewise.
24816         * tree-cfg.c (make_blocks): Likewise.
24817         (handle_abnormal_edges): Likewise.
24818         * tree-inline.c (copy_bb): Likewise.
24819
24820 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24821
24822         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24823         New pattern.
24824         (*xor_one_cmplsidi3_ze): Likewise.
24825
24826 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24827
24828         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24829         use df_remove_problem rather than manually removing problems, leaving
24830         holes in df->problems_in_order[].
24831
24832 2015-04-21  Tom de Vries  <tom@codesourcery.com>
24833
24834         PR tree-optimization/65802
24835         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24836
24837 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24838
24839         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24840         Increase to 128.
24841         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24842         at '.'.  Assert that there's enough space for everything.
24843
24844 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24845
24846         PR tree-optimization/64950
24847         Revert:
24848         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
24849
24850         PR target/41089
24851         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24852         as volatile.
24853
24854 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
24855
24856         PR rtl-optimization/64916
24857         * cfgcleanup.c (values_equal_p): New function.
24858         (can_replace_by): Use it.
24859
24860 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
24861
24862         PR c++/65801
24863         * doc/invoke.texi ([-Wnarrowing]): Update.
24864
24865 2015-04-20  Jeff Law  <law@redhat.com>
24866
24867         PR tree-optimization/65658
24868         * tree-ssa-threadupdate.c (redirection_block_p): Remove
24869         redundant test for GIMPLE_ASSIGN in last change.
24870
24871 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
24872
24873         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24874         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24875         (legitimize_tls_address): Ditto.
24876         (ix86_expand_move): Ditto.
24877         (ix86_expand_binary_operator): Remove reload_in_progress checks.
24878         (ix86_expand_unary_operator): Ditto.
24879         * config/i386/predicates.md (index_register_operand): Ditto.
24880
24881 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
24882
24883         * reorg.c (try_merge_delay_insns): Improve correctness checking
24884         for targets with multiple delay slots.
24885
24886 2015-04-20  Jeff Law  <law@redhat.com>
24887
24888         PR tree-optimization/65658
24889         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24890         statements too.
24891
24892 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24893
24894         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24895         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24896         Delete.
24897
24898 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
24899
24900         PR debug/65807
24901         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24902
24903 2015-04-20  Richard Biener  <rguenther@suse.de>
24904
24905         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24906         * gimple-fold.c (gimple_build_valueize): New function.
24907         (gimple_build): Always use gimple_build_valueize as valueize hook.
24908
24909 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24910
24911         PR target/64134
24912         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24913         and overwrite variable parts if <= 1/2 the elements are variable.
24914
24915 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
24916
24917         PR rtl-optimization/65805
24918         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24919         Don't use difference of offset and previous offset if
24920         update_sp_offset is non-zero.
24921         (eliminate_regs_in_insn): Ditto.
24922         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24923         lra_eliminate_regs_1 call.
24924         * lra-constraints.c (get_equiv_with_elimination): Ditto.
24925
24926 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
24927
24928         * hash-table.h: Remove version of hash_table that stored value_type *.
24929         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24930         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24931         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24932         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24933         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24934         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24935         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24936         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24937         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24938         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24939         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24940         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24941         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24942         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24943         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24944         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24945
24946 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24947             Jakub Jelinek  <jakub@redhat.com>
24948
24949         PR target/65787
24950         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24951         subsequent SH_NONE operand does not overwrite an existing *special
24952         value.
24953         (adjust_extract): Handle case where a vec_extract operation is
24954         wrapped in a PARALLEL.
24955
24956 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24957
24958         PR target/65780
24959         * config/i386/i386.c (ix86_binds_local_p): Define only if
24960         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24961
24962 2015-04-17  Jeff Law  <law@redhat.com>
24963
24964         PR tree-optimization/47679
24965         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24966         * tree-ssa-scopedtables.c: New file.
24967         * tree-ssa-scopedtables.h: New file.
24968         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24969         (const_and_copies): Change name/type.
24970         (record_const_or_copy): Move into tree-ssa-scopedtables.c
24971         (record_const_or_copy_1): Similarly.
24972         (restore_vars_to_original_value): Similarly.
24973         (pass_dominator::execute): Create and destroy const_and_copies table.
24974         (thread_across_edge): Update passing of const_and_copies.
24975         (record_temporary_equivalence): Use method calls rather than
24976         manipulating const_and_copies directly.
24977         (record_equality, cprop_into_successor_phis): Similarly.
24978         (dom_opt_dom_walker::before_dom_children): Similarly.
24979         (dom_opt_dom_walker::after_dom_children): Similarly.
24980         (eliminate_redundant_computations): Similarly.
24981         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24982         (record_temporary_equivalence): Likewise.
24983         (invalidate_equivalences): Likewise.
24984         (record_temporary_equivalences_from_phis): Update due to type
24985         change of const_and_copies.  Use method calls rather than
24986         manipulating the stack directly.
24987         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24988         (thread_through_normal_block, thread_across_edge): Likewise.
24989         (thread_across_edge): Likewise.
24990         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24991         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
24992         of equiv_stack.
24993         (identify_jump_threads): Update due to type change of equiv_stack.
24994         (finalize_jump_threads): Delete the equiv_stack when complete.
24995
24996 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
24997
24998         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24999         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25000         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25001
25002 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
25003
25004         PR target/65535
25005         * config.gcc: Exit with a comment when we do not have a major version
25006         number for the FreeBSD target.
25007
25008 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25009
25010         PR target/65689
25011         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25012         maybe_allows_mem bitfields.
25013         (maybe_allows_none_start, maybe_allows_none_end,
25014         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25015         maybe_allows_mem_end): New variables.
25016         (compute_maybe_allows): New function.
25017         (add_constraint): Use it to initialize maybe_allows_reg and
25018         maybe_allows_mem fields.
25019         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25020         is_address constraints such that those that allow neither mem nor
25021         reg come first, then those that only allow reg but not mem, then
25022         those that only allow mem but not reg, then the rest.
25023         (write_allows_reg_mem_function): New function.
25024         (write_tm_preds_h): Call it.
25025         * stmt.c (parse_output_constraint, parse_input_constraint): Use
25026         the generated insn_extra_constraint_allows_reg_mem function
25027         instead of always setting *allows_reg = true; *allows_mem = true;
25028         for unknown extra constraints.
25029
25030 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25031
25032         PR target/65780
25033         * output.h (default_binds_local_p_3): New.
25034         * varasm.c (default_binds_local_p_3): Make it public.  Take an
25035         argument to indicate if common symbol may be local.  If common
25036         symbol may be local, treat non-external variable as defined
25037         locally.
25038         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25039         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25040         * config/i386/i386.c (ix86_binds_local_p): New.
25041         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25042         ix86_binds_local_p.
25043
25044 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25045
25046         PR debug/65771
25047         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25048         trying mem_loc_descriptor on XEXP (rtl, 0).
25049
25050 2015-04-17  Martin Liska  <mliska@suse.cz>
25051
25052         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25053         Release symbol_compare_collection.
25054         * ipa-reference.c: Add TODO that a vector should be released.
25055
25056 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25057
25058         PR target/65296
25059         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25060         to new AVR-LibC file layout (bug #44574).
25061         (*avrlibc_devicelib): Same.
25062         * config/avr/avr-mcus.def: Adjust comments.
25063         * config/avr/avr.opt (nodevicelib): Adjust help.
25064
25065 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
25066
25067         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25068
25069 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
25070
25071         PR c++/64527
25072         * gimplify.c (gimplify_init_constructor): Always emit a
25073         side-effecting constructor.
25074
25075 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25076
25077         PR tree-optimization/64950
25078         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25079         in cfun->curr_properties.
25080         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25081         if we generate an IFN_VA_ARG.
25082         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25083         function if PROP_gimple_lva is not set in src function.
25084
25085 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25086             Michael Matz  <matz@suse.de>
25087
25088         PR tree-optimization/64950
25089         * gimple-iterator.c (update_modified_stmts): Remove static.
25090         * gimple-iterator.h (update_modified_stmts): Declare.
25091         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25092         (gimplify_va_arg_internal): New function.
25093         (gimplify_va_arg_expr): Use IFN_VA_ARG.
25094         * gimplify.h (gimplify_va_arg_internal): Declare.
25095         * internal-fn.c (expand_VA_ARG): New unreachable function.
25096         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25097         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25098         (expand_ifn_va_arg): New function.
25099         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25100         (pass_stdarg::execute): Call expand_ifn_va_arg.
25101         (pass_data_lower_vaarg): New pass_data.
25102         (pass_lower_vaarg): New gimple_opt_pass.
25103         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25104         (make_pass_lower_vaarg): New function.
25105         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25106         properties_required field.
25107         * passes.def (all_passes): Add pass_lower_vaarg.
25108         * tree-pass.h (PROP_gimple_lva): Add define.
25109         (make_pass_lower_vaarg): Declare.
25110
25111 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25112
25113         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25114         * calls.c (call_expr_flags): Same.
25115
25116 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25117
25118         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25119         (pass_stdarg::execute): ... here.
25120
25121 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25122             Michael Matz  <matz@suse.de>
25123
25124         * tree-cfg.c (make_blocks_1): Factor out of ...
25125         (make_blocks): ... here.
25126         (make_edges_bb): Factor out of ...
25127         (make_edges): ... here.
25128         (gimple_find_sub_bbs): New function.
25129         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25130
25131 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25132
25133         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25134
25135 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25136
25137         * asan.c (set_sanitized_sections): New function.
25138         (section_sanitized_p): Ditto.
25139         (asan_protect_global): Optionally sanitize user-defined
25140         sections.
25141         * asan.h (set_sanitized_sections): Declare new function.
25142         * common.opt (fsanitize-sections): New option.
25143         * doc/invoke.texi (-fsanitize-sections): Document new option.
25144         * opts-global.c (handle_common_deferred_options): Handle new
25145         option.
25146
25147 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25148
25149         PR debug/65771
25150         * dwarf2out.c (loc_list_from_tree): Return NULL
25151         for DEBUG_EXPR_DECL.
25152
25153 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25154
25155         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25156         same attributes.
25157
25158 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25159
25160         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25161         node itself when computing left conflict subnode size.
25162
25163 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25164
25165         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25166         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25167         *fop_<mode>_1_sse using enabled attribute.  Use
25168         register_mixssei387nonimm_operand operand 1 predicate. Change
25169         alternative 3 constraints from "x" to "v".
25170
25171 2015-04-16  Richard Biener  <rguenther@suse.de>
25172
25173         PR tree-optimization/65774
25174         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25175         bit-value tracking on.
25176
25177 2015-04-16  Richard Biener  <rguenther@suse.de>
25178
25179         PR tree-optimization/64277
25180         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25181         simplify upper bound handling.
25182         (search_for_addr_array): Simplify.
25183         (check_array_bounds): Handle ADDR_EXPRs here.
25184         (check_all_array_refs): Simplify.
25185
25186 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25187
25188         * config/i386/i386.c (print_reg): Rewrite function.
25189
25190 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25191
25192         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25193         Invert the condition.
25194
25195 2015-04-16  Renlin Li  <renlin.li@arm.com>
25196
25197         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25198         simplifications for UNSIGNED_FLOAT.
25199
25200 2015-04-16  Nick Clifton  <nickc@redhat.com>
25201
25202         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25203         MUL_UNINIT.
25204         (enum rl78_cpu_type): New.
25205         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25206         (umulhi3_shift_virt): Remove m constraint from operand 1.
25207         (umulqihi3_virt): Likewise.
25208         * config/rl78/rl78.c (rl78_option_override): Add code to process
25209         -mcpu and -mmul options.
25210         (rl78_alloc_physical_registers): Add code to handle divhi and
25211         divsi valloc attributes.
25212         (set_origin): Likewise.
25213         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25214         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25215         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25216         __RL78_Gxx__.
25217         (ASM_SPEC): Pass -mcpu on to assembler.
25218         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25219         (mulqi3_rl78): Likewise.
25220         (mulhi3_g13): Likewise.
25221         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25222         (mulsi3): Likewise.
25223         (mulhi3_g14): Add clobbers of AX and BC.
25224         (mulsi3_g14): Likewise.
25225         (mulsi3_g13): Likewise.
25226         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25227         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25228         * config/rl78/rl78.opt (mmul): Initialise value to
25229         RL78_MUL_UNINIT.
25230         (mcpu): New option.
25231         (m13, m14, mrl78): New option aliases.
25232         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25233         (MULTILIB_DIRNAMES): Add g13 and g14.
25234         * doc/invoke.texi: Document -mcpu and -mmul options.
25235
25236 2015-04-16  Richard Biener  <rguenther@suse.de>
25237
25238         * tree-ssa-ccp.c (likely_value): See if we have operands that
25239         are marked as never simulate again and return CONSTANT in this
25240         case.
25241         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25242         not have any operands that will be simulated again as
25243         not being simulated again.
25244
25245 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25246
25247         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25248         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25249         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25250         attribute.
25251         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25252         enabled attribute.
25253         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25254         *float<SWI48:mode><MODEF:mode>2_sse.
25255         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25256         enabled attribute.
25257         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25258         enabled attribute.
25259
25260 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25261
25262         PR other/65487
25263         * function.c (push_dummy_function): New function.
25264         (init_dummy_function_start): Use push_dummy_function.
25265         (pop_dummy_function): New function.  Factored out of ...
25266         (expand_dummy_function_end): ... here.
25267         * function.h (push_dummy_function, pop_dummy_function): Declare.
25268         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25269         pop_dummy_function.
25270         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25271
25272 2015-04-15  Jeff Law  <law@redhat.com>
25273
25274         PR tree-optimization/47679
25275         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25276         need for forward declaration in upcoming changes.
25277         (record_conditions, record_edge_info): Likewise.
25278
25279         PR rtl-optimization/42522
25280         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25281         SIGN_EXTRACT as a whole object rather than simplifying
25282         its operand.
25283
25284 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25285
25286         PR ipa/65765
25287         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25288         and GIMPLE_PREDICT use break instead of return true. For
25289         GIMPLE_EH_DISPATCH, compare dispatch region.
25290
25291 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25292
25293         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25294         details about the implementation.  Make clear preference for
25295         __atomic builtins.  Reduce possibility of future change.
25296
25297 2015-04-15  Nick Clifton  <nickc@redhat.com>
25298
25299         * config/rx/rx.opt (mallow-string-insns): New option.
25300         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25301         builtin if string instructions are denied.
25302         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25303         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25304         appropriate.
25305         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25306         * config/rx/rx.md (movstr): Enable pattern only if string
25307         instructions are allowed.
25308         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25309         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25310         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25311         (MULTILIB_DIRNAMES): Add no-strings.
25312         * doc/invoke.texi: Document -mno-allow-string-insns.
25313
25314 2015-04-15  Alan Modra  <amodra@gmail.com>
25315
25316         PR target/65408
25317         PR target/58744
25318         PR middle-end/36043
25319         * calls.c (load_register_parameters): Don't load past end of
25320         mem unless suitably aligned.
25321
25322 2015-04-15  Nick Clifton  <nickc@redhat.com>
25323
25324         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25325         decrement instruction as being frame related.
25326         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25327         based addresses.
25328         If zero extending a function address enclose the operation in
25329         %code(...).
25330         (rl78_preferred_reload_class): New function.
25331         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25332         * config/rl78/rl78.md: Remove useless constraints in expanders.
25333         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25334         (mulhi3_rl78): Likewise.
25335         (mulhi3_g13): Likewise.
25336         (mulsi3_rl78): Likewise.
25337         (es_addr): Move to before the multiply patterns.
25338
25339 2015-04-15  Alan Modra  <amodra@gmail.com>
25340
25341         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25342         and sequence_stack.  Add seq.
25343         (seq_stack): Delete.
25344         * function.c (prepare_function_start): Don't access x_last_insn.
25345         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25346         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25347         * emit_rtl.c (start_sequence, push_topmost_sequence,
25348         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25349         sequence accessors.
25350         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25351         remove_insn): Likewise.  Simplify.
25352         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25353         and pop_topmost_sequence.
25354         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25355         debug insns.
25356         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25357
25358 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25359
25360         PR target/65729
25361         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25362         the assertiion.
25363
25364 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25365
25366         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25367         (LEGACY_INT_REGNO_P): Ditto.
25368         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25369         (ANY_MASK_REG_P): Remove.
25370         (BND_REG_P): Rename from ANY_BND_REG_P.
25371         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25372         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25373         Merge 64byte and 32byte SSE handling.
25374
25375 2015-04-14  Nick Clifton  <nickc@redhat.com>
25376
25377         * expr.c (expand_assignment): Force an address offset computation
25378         into a register before changing its mode.
25379         (expand_expr_real_1): Likewise.
25380
25381 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25382
25383         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25384         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25385         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25386         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25387         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25388         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25389         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25390         and __aarch64_vget_lane_any.
25391
25392 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25393
25394         PR rtl-optimization/65761
25395         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25396         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25397
25398 2015-04-14  Richard Biener  <rguenther@suse.de>
25399
25400         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25401         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25402
25403 2015-04-14  Richard Biener  <rguenther@suse.de>
25404
25405         PR tree-optimization/65758
25406         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25407         against -1.
25408         (ccp_lattice_meet): Likewise.
25409         (bit_value_unop): Likewise.
25410         (bit_value_binop): Likewise.
25411         (bit_value_assume_aligned): Likewise.
25412
25413 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25414
25415         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25416         function.
25417
25418 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25419
25420         PR tree-optimization/63387
25421         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25422         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25423
25424 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25425
25426         * config/i386/predicates.md (any_QIreg_operand): Rename from
25427         q_regs_operand.  Do not process subregs.
25428         (QIreg_operand): Use QI_REGNO_P predicate.
25429         (ext_QIreg_operand): Ditto.
25430         (ext_register_operand): Ditto.
25431         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25432         (AND splitters): Ditto.
25433         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25434         (AND with -256 splitter): Use any_QIreg_operand predicate and
25435         SWI248 mode for operand 0.
25436         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25437         mode for operand 0.
25438         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25439
25440 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25441
25442         * doc/plugins.texi: Rewrite first introductory paragraph.
25443
25444 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25445
25446         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25447         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25448
25449 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25450
25451         * ipa-profie.c (ipa_profile): Check number of parameters
25452         and possible polymorphic call targets before
25453         devirtualizing.
25454
25455 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25456
25457         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25458         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25459
25460 2015-04-13  Richard Biener  <rguenther@suse.de>
25461
25462         PR tree-optimization/65204
25463         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25464         takens for bit-CCP.
25465
25466 2015-04-13  Richard Biener  <rguenther@suse.de>
25467
25468         PR target/65660
25469         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25470         and cond_not_taken_branch_cost to 4 and 2.
25471         (bdver2_cost): Likewise.
25472         (bdver3_cost): Likewise.
25473         (bdver4_cost): Likewise.
25474
25475 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25476
25477         * hash-table.h (hash_table constructor): Add mem stats.
25478         (alloc_entries): Likewise.
25479
25480 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25481
25482         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25483         * passes.c (execute_one_pass): Only add transform if pass has one.
25484
25485 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25486
25487         * config/i386/i386.c (ix86_option_override_internal): Don't set
25488         -fprefetch-loop-arrays if optimizing for size.
25489
25490 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25491             Gerald Pfeifer  <gerald@pfeifer.com>
25492
25493         * doc/contrib.texi (Contributors): Add Martin Jambor and
25494         Michael Matz.
25495
25496 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25497
25498         * BASE-VER: Set to 6.0.0.
25499
25500         PR tree-optimization/65747
25501         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25502         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25503
25504 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25505
25506         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25507         sentence.  Improve grammar.
25508
25509 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25510
25511         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25512
25513 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25514
25515         PR ipa/65743
25516         * ipa-inline-transform.c (speculation_removed): Remove static var.
25517         (check_speculations): New function.
25518         (clone_inlined_nodes): Do not check spculations.
25519         (inline_call): Call check_speculations.
25520         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25521         consider non-invariants.
25522
25523 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25524             Martin Liska  <mliska@suse.cz>
25525
25526         PR ipa/65722
25527         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25528         variable can not match.
25529         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25530         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25531
25532 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25533
25534         PR tree-optimization/65735
25535         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25536         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25537         same bb rather than just into the same phi node.
25538         (thread_through_normal_block): Adjust caller.
25539
25540 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25541
25542         * doc/contrib.texi (Contributors): Add Ira Rosen.
25543
25544 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25545
25546         * gcov.c (find_source): Fix miswording in error message.
25547         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25548         (ix86_expand_sse_comi_round): Fix typo in error message.
25549
25550 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25551
25552         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25553
25554 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25555
25556         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25557
25558 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25559
25560         PR target/65710
25561         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25562         Print bad_spills_num and insn_pseudos_num.
25563
25564 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25565
25566         PR target/65694
25567         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25568         when creating +1 values for SImode.
25569
25570 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25571
25572         PR target/65729
25573         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25574         assert.
25575
25576 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25577             Iain Sandoe  <iain@codesourcery.com>
25578
25579         PR target/65351
25580         * configure: Regenerate.
25581
25582 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25583
25584         PR target/65671
25585         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25586
25587 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25588
25589         * doc/contrib.texi (Contributors): Add John Marino.
25590
25591 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25592
25593         PR tree-optimization/65709
25594         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25595         TREE_TYPE (TREE_TYPE (t)).
25596
25597 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25598
25599         PR target/65710
25600         * lra-int.h (lra_bad_spill_regno_start): New.
25601         * lra.c (lra_bad_spill_regno_start): New.
25602         (lra): Set up lra_bad_spill_regno_start.  Set up
25603         lra_constraint_new_regno_start unconditionally.
25604         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25605         spill preferences.
25606
25607 2015-04-09  Marek Polacek  <polacek@redhat.com>
25608             Jakub Jelinek  <jakub@redhat.com>
25609
25610         PR middle-end/65554
25611         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25612         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25613         of STRIP_NOPS.
25614
25615 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25616
25617         PR rtl-optimization/65693
25618         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25619         #ifndef HAVE_cc0.
25620
25621 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25622
25623         PR target/65296
25624         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25625         device specs file if "device-specs%s" didn't resolve to a path.
25626
25627 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25628
25629         PR target/65676
25630         * config/i386/i386.c (fixup_modeless_constant): New.
25631         (ix86_expand_args_builtin): Fixup modeless constant operand.
25632         (ix86_expand_round_builtin): Ditto.
25633         (ix86_expand_special_args_builtin): Ditto.
25634         (ix86_expand_builtin): Ditto.
25635
25636 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25637
25638         PR target/65693
25639         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25640         any pow2 integer in between 2 and 0x80000000U inclusive.
25641
25642 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25643
25644         PR rtl-optimization/65693
25645         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25646         from an rtx_insn * to an rtx.
25647         (try_combine): Adjust both callers.  Use it once more.
25648
25649 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25650
25651         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25652         (chkp_make_static_const_bounds): Search existing
25653         symbol by assembler name.  Use make_decl_one_only.
25654         (chkp_get_zero_bounds_var): Remove node search which
25655         is now performed in chkp_make_static_const_bounds.
25656         (chkp_get_none_bounds_var): Likewise.
25657
25658 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25659
25660         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25661         to an example.
25662
25663 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25664
25665         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25666
25667 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25668
25669         * doc/extend.texi (__sync Builtins): Fix grammar.
25670
25671 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25672
25673         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25674
25675 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25676
25677         * varasm.c (emit_local): Move definition of align.
25678
25679 2015-04-08  Julian Brown  <julian@codesourcery.com>
25680
25681         * config/nvptx/mkoffload.c (process): Support variable mapping.
25682
25683 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25684
25685         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25686         alpha_links **.
25687         (alpha_write_one_linkage): Correct typo.
25688
25689 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25690
25691         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25692
25693 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25694
25695         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25696
25697 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25698
25699         * tree-chkp.h (chkp_insert_retbnd_call): New.
25700         * tree-chkp.c (chkp_insert_retbnd_call): New.
25701         * ipa-split.c (insert_bndret_call_after): Remove.
25702         (split_function): Use chkp_insert_retbnd_call.
25703         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25704         bounds for instrumented functions.
25705
25706 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25707
25708         PR ipa/65540
25709         * calls.c (initialize_argument_information): When producing tail
25710         call also turn SSA_NAMES passed by references to original PARM_DECLs
25711
25712 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25713
25714         PR target/65648
25715         * lra-remat.c (do_remat): Process input and non-input insn
25716         registers separately.
25717
25718 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25719
25720         PR debug/65678
25721         * valtrack.c (debug_lowpart_subreg): New function.
25722         (dead_debug_insert_temp): Use it.
25723
25724         PR middle-end/65680
25725         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25726         into signed HOST_WIDE_INT the same as negative bit_offset.
25727
25728 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25729
25730         * ipa-comdats.c (ipa_comdats): Visit all thunks
25731         to set proper comdat group.
25732
25733 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25734
25735         PR target/65489
25736         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25737         on constants for NEON VSTRUCT modes.
25738
25739 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25740             Iain Sandoe  <iain@codesourcery.com>
25741
25742         PR target/65351
25743         * configure: Regenerate.
25744
25745 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25746
25747         PR target/65614
25748         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25749         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25750         that LFD is used to load double constants instead of LFS.  Add
25751         defaults for all costs structures.  Add comments for missing
25752         initialization fields.
25753         (size32_cost): Likewise.
25754         (size64_cost): Likewise.
25755         (rs64a_cost): Likewise.
25756         (mpccore_cost): Likewise.
25757         (ppc403_cost): Likewise.
25758         (ppc405_cost): Likewise.
25759         (ppc440_cost): Likewise.
25760         (ppc476_cost): Likewise.
25761         (ppc601_cost): Likewise.
25762         (ppc603_cost): Likewise.
25763         (ppc604_cost): Likewise.
25764         (ppc604e_cost): Likewise.
25765         (ppc620_cost): Likewise.
25766         (ppc630_cost): Likewise.
25767         (ppccell_cost): Likewise.
25768         (ppc750_cost): Likewise.
25769         (ppc7450_cost): Likewise.
25770         (ppc8540_cost): Likewise.
25771         (ppce300c2c3_cost): Likewise.
25772         (ppce500mc_cost): Likewise.
25773         (ppce500mc64_cost): Likewise.
25774         (ppce5500_cost): Likewise.
25775         (ppce6500_cost): Likewise.
25776         (titan_cost): Likewise.
25777         (power4_cost): Likewise.
25778         (power6_cost): Likewise.
25779         (power7_cost): Likewise.
25780         (power8_cost): Likewise.
25781         (ppca2_cost): Likewise.
25782         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25783
25784         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25785         instead of XXLOR to copy SFmode to clear out dirty bits created
25786         when SFmode denormals are generated.
25787         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25788         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25789
25790 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25791
25792         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25793         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25794         * config/aarch64/aarch64-tune.md: Regenerate.
25795
25796 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25797
25798         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25799         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25800         * config/arm/arm-cores.def (exynos-m1): New core.
25801         * config/arm/arm-tune.md: Regenerate.
25802         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25803         * config/arm/bpabi.h: Likewise.
25804
25805 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25806
25807         * ipa-cp (set_single_call_flag): Remove too
25808         restrictive assert.
25809
25810 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
25811
25812         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25813         GOMP_offload_unregister from the destructor.
25814
25815 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25816
25817         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25818         flags for instrumentation thunk.
25819         (chkp_produce_thunks): Likewise.
25820
25821 2015-04-05  Martin Liska  <mliska@suse.cz>
25822
25823         PR ipa/65665
25824         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25825         has computed data structure.
25826         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25827
25828 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
25829
25830         * invoke.texi (inline-unit-growth): Increase growth to 20%
25831         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25832
25833 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
25834
25835         PR target/65647
25836         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
25837         value checking.
25838         (lra_rematerialization_iter): New.
25839         * lra.c (lra): Initialize lra_rematerialization_iter.
25840         Stop updating lra_constraint_new_regno_start after switching of
25841         inheritance and rematerialization.
25842         * lra-remat.c (lra_rematerialization_iter): New.
25843         (lra_remat): Add printing pass iteration.  Do rematerialization
25844         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25845
25846 2015-04-04  Richard Biener  <rguenther@suse.de>
25847
25848         PR tree-optimization/64909
25849         PR tree-optimization/65660
25850         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25851         to take a cost vector for scalar iteration cost.
25852         (vect_get_single_scalar_iteration_cost): Likewise.
25853         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25854         Compute the scalar iteration cost into a cost vector.
25855         (vect_get_known_peeling_cost): Use the scalar cost vector to
25856         account for the cost of the peeled iterations.
25857         (vect_estimate_min_profitable_iters): Likewise.
25858         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25859         Likewise.
25860
25861 2015-04-04  Alan Modra  <amodra@gmail.com>
25862
25863         PR target/65576
25864         PR target/65240
25865         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25866         0.0 constant unless TARGET_VSX.
25867         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25868         alternative.
25869
25870 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25871
25872         PR ipa/65654
25873         * ipa-inline-transform.c (inline_call): Skip sanity check to work
25874         around the ICE
25875
25876 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25877
25878         PR ipa/65655
25879         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25880         speculative indirect edges to avoid ordering issue.
25881
25882 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25883
25884         PR ipa/65076
25885         * ipa-inline.c (edge_badness): Add combined size to the denominator.
25886
25887 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
25888
25889         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25890         TYPE_ARTIFICIAL on the .omp_data* types.
25891
25892 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25893
25894         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25895         instrumentation thunks.
25896
25897 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25898
25899         * config/i386/i386.c (ix86_expand_call): Avoid nested
25900         PARALLEL in returned call value.
25901
25902 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25903
25904         * lto-cgraph.c (input_cgraph_1): Always link instrumented
25905         assembler name with original one.
25906
25907 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25908
25909         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25910
25911 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25912
25913         Revert parts of r216820.
25914         * config/i386/i386.md (movqi_internal): Correct type calculation
25915         for alternatives 3 and 5.
25916
25917 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
25918
25919         PR preprocessor/61977
25920         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25921         predefine __vector/__bool/__pixel macros nor context sensitive
25922         macros for CLK_ASM.
25923         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25924
25925 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
25926
25927         * config/pa/pa.c (pa_output_move_double): Directly handle register
25928         indexed memory operand.  Simplify handling of scaled register indexed
25929         memory operands.
25930
25931 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25932
25933         PR driver/65444
25934         * config/i386/linux-common.h (MPX_SPEC): New.
25935         (CHKP_SPEC): Add MPX_SPEC.
25936         * doc/invoke.texi (-fcheck-pointer-boudns): Document
25937         possible issues with '-z bndplt' support in linker.
25938
25939 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25940
25941         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25942         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25943         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25944         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25945         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25946
25947 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
25948
25949         * config/i386/sync.md (UNSPEC_MOVA): Remove.
25950         (atomic_load<mode>): Change operand 0 predicate to
25951         nonimmediate_operand and fix up the destination when needed.
25952         Use UNSPEC_LDA.
25953         (atomic_loaddi_fpu): Use UNSPEC_LDA.
25954         (atomic_store<mode>): Change operand 1 predicate to
25955         nonimmendate_operand and move the source to register when needed.
25956         Use UNSPEC_STA.
25957         (atomic_store<mode>_1): Use UNSPEC_STA.
25958         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25959         Fix moves from memory operand.  Use UNSPEC_STA.
25960
25961 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25962
25963         * expmed.c (strict_volatile_bitfield_p): Check that the access will
25964         not cross a MODESIZE boundary.
25965         (store_bit_field, extract_bit_field): Added assertions in the
25966         strict volatile bitfields code path.
25967
25968 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25969
25970         PR target/65624
25971         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25972         Increase args array size by one to avoid buffer overflow.
25973
25974 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25975
25976         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25977         split_part.
25978         * ipa-inline.c (edge_badness): Add wrapper penalty.
25979         (sum_callers): Move up.
25980         (inline_small_functions): Set single_caller.
25981         * ipa-inline.h (inline_summary): Add single_caller.
25982         * ipa-split.c (split_function): Set split_part.
25983         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25984         * cgraph.h (cgraph_node): Add split_part.
25985
25986 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
25987
25988         PR target/58945
25989         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25990         Do not split operands 0 and operands 2 to halfmode.
25991         (atomic_compare_and_swap<mode>): Update for
25992         atomic_compare_and_swap<dwi>_doubleword changes.
25993
25994 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25995
25996         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25997         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25998         no caching is done.
25999
26000 2015-03-31  Martin Liska  <mliska@suse.cz>
26001
26002         PR ipa/65557
26003         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26004         has already filled up function summary.
26005         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26006
26007 2015-03-31  Richard Biener  <rguenther@suse.de>
26008
26009         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26010         of types.
26011
26012 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26013
26014         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26015         nested functions.
26016         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26017         (s390_asm_output_function_label): Adapt to new signature of
26018         s390_function_num_hotpatch_hw
26019         Optimise the code generating assembler output.
26020         Add comments to assembler file.
26021
26022 2015-03-31  Richard Biener  <rguenther@suse.de>
26023
26024         PR middle-end/65626
26025         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26026         of the noreturn call so it is last and cleanup_control_flow_bb
26027         can do the CFG part.
26028
26029 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
26030
26031         PR target/65531
26032         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26033         same_comdat_group for external symbols.
26034         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26035         infinite same_comdat_group traversal loop.
26036
26037 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
26038
26039         PR plugins/61176
26040         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26041         automatically to $headers.
26042
26043 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
26044
26045         PR ipa/65610
26046         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26047         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26048         function.
26049         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26050         Use it.
26051         * ipa-prop.c (param_type_may_change_p): Likewise.
26052         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26053         (remove_unused_scope_block_p): Add in_ctor_dtor_block
26054         argument.  Before inlining, preserve
26055         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26056         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
26057         recursive calls.
26058         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26059
26060 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26061
26062         PR ipa/65076
26063         * ipa-inline.c (edge_badness): Base denominator on callee's
26064         grwoth squared.
26065
26066 2015-03-27  Martin Jambor  <mjambor@suse.cz>
26067
26068         PR ipa/65478
26069         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26070         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26071         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26072         node_calling_single_call.
26073         * ipa-cp.c (count_callers): New function.
26074         (set_single_call_flag): Likewise.
26075         (initialize_node_lattices): Count callers and set single_flag_call if
26076         necessary.
26077         (incorporate_penalties): New function.
26078         (good_cloning_opportunity_p): Use it, dump new flags.
26079         (propagate_constants_topo): Set node_within_scc flag if appropriate.
26080         * doc/invoke.texi (ipa-cp-recursion-penalty,
26081         ipa-cp-single-call-pentalty): Document.
26082
26083 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26084
26085         PR ipa/65588
26086         * symtab.c (symtab_node::get_partitioning_class): Register vars
26087         are duplicated.
26088         * varpool.c (symbol_table::output_variables) Do not assemble unefined
26089         decls for non-symbols.
26090
26091 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26092
26093         PR target/65248
26094         * output.h (default_binds_local_p_2): New.
26095         * varasm.c (default_binds_local_p_2): Renamed to ...
26096         (default_binds_local_p_3): This.  Don't return true on protected
26097         data symbol if protected data may be external.
26098         (default_binds_local_p): Use default_binds_local_p_3.
26099         (default_binds_local_p_1): Likewise.
26100         (default_binds_local_p_2): New.
26101         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26102         default_binds_local_p_2 if TARGET_MACHO is undefined.
26103
26104 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
26105
26106         PR target/65593
26107         * config/i386/i386.c (legitimize_pic_address): If base
26108         is SYMBOL_REF or LABEL_REF using %rip addressing, force
26109         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26110
26111 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26112
26113         PR target/65531
26114         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26115         comdat groups.
26116
26117 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
26118
26119         PR ipa/65600
26120         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26121         of optimized out indirect call.
26122         (redirect_to_unreachable): Always build symbol table node for
26123         BUILT_IN_UNREACHABLE
26124
26125 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26126
26127         PR target/65407
26128         * ira-costs.c (record_reg_classes): Process all constraint string
26129         containing 0-9.
26130
26131 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26132
26133         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26134         memory_operand.
26135
26136         PR target/65052
26137         * config/c6x/constraints.md (S3): New constraint.
26138         * config/c6x/c6x.md (real_jump): Use it.
26139
26140 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26141
26142         PR middle-end/65595
26143         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26144         do redirection if the call is not optimized out.
26145
26146 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26147
26148         PR target/65495
26149         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26150         (fchkp-check-incomplete-type): Add LTO.
26151         (fchkp-zero-input-bounds-for-main): Likewise.
26152         (fchkp-first-field-has-own-bounds): Likewise.
26153         (fchkp-narrow-bounds): Likewise.
26154         (fchkp-narrow-to-innermost-array): Likewise.
26155         (fchkp-use-static-bounds): Likewise.
26156         (fchkp-use-static-const-bounds): Likewise.
26157         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26158
26159 2015-03-27  Marek Polacek  <polacek@redhat.com>
26160
26161         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26162
26163 2015-03-27  Marek Polacek  <polacek@redhat.com>
26164
26165         PR sanitizer/65583
26166         * ubsan.c (ubsan_create_edge): New function.
26167         (instrument_bool_enum_load): Call it.
26168         (instrument_nonnull_arg): Likewise.
26169         (instrument_nonnull_return): Likewise.
26170         (instrument_object_size): Likewise.
26171
26172 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26173
26174         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26175         auto_vec.
26176
26177 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26178
26179         PR lto/65536
26180         * lto-streamer.h (class lto_location_cache): New.
26181         (struct data_in): Add location_cache.
26182         (lto_input_location): Update prototype.
26183         (stream_input_location_now): New.
26184         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26185         pointer to location.
26186         (stream_input_location): Update.
26187         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26188         (warn_odr): Apply location cache before warning.
26189         (lto_input_location): Update prototype.
26190         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26191         Use stream_input_location_now.
26192         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26193         variable.
26194         (lto_location_cache::cmp_loc): New function.
26195         (lto_location_cache::apply_location_cache): New function.
26196         (lto_location_cache::accept_location_cache): New function.
26197         (lto_location_cache::revert_location_cache): New function.
26198         (lto_location_cache::input_location): New function.
26199         (lto_input_location): Do location caching.
26200         (stream_input_location_now): New function.
26201         (input_eh_region, input_struct_function_base): Use
26202         stream_input_location_now.
26203         (lto_data_in_create): use new.
26204         (lto_data_in_delete): Use delete.
26205         * tree-streamer-in.c (unpack_ts_block_value_fields,
26206         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26207         lto_input_ts_exp_tree_pointers): Update for cached location api.
26208
26209 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26210
26211         PR ipa/65076
26212         * passes.def: Add pass_nothrow.
26213         * ipa-pure-const.c: (pass_data_nothrow): New.
26214         (pass_nothrow): New.
26215         (pass_nothrow::execute): New.
26216         (make_pass_nothrow): New.
26217         * tree-pass.h (make_pass_nothrow): Declare.
26218
26219 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26220
26221         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26222         edge to change by speculation resolution or redirection.
26223         (edge_set_predicate): Likewise.
26224         (inline_summary_t::duplicate): Likewise.
26225         (remap_edge_summaries): Likewise.
26226
26227 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26228
26229         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26230         New macros.
26231         (can_inline_edge_p): Relax option matching for always inline functions.
26232
26233 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26234
26235         PR target/65561
26236         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26237         Check operand 4 and operand 0 for equality.
26238         (avx512f_vextract<shuffletype>32x4_1_maskm):
26239         Check operand 6 and operand 0 for equality.
26240         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26241         for equality.
26242         (vec_extract_hi_<mode>_maskm): Ditto.
26243
26244 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26245
26246         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26247         dead calls back to live.
26248         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26249         cross check to ...
26250         (cgraph_node::verify_node): ... here; verify only callee edges,
26251         not caller.
26252         * cif-code.def (CILK_SPAWN): New code.
26253
26254 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26255
26256         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26257         (edge_set_predicate): Use it to mark unreachable edges.
26258         (inline_summary_t::duplicate): Remove unnecesary code.
26259         (remap_edge_summaries): Likewise.
26260         (dump_inline_summary): Report contains_cilk_spawn.
26261         (compute_inline_parameters): Compute contains_cilk_spawn.
26262         (inline_read_section, inline_write_summary): Stream
26263         contains_cilk_spawn.
26264         * ipa-inline.c (can_inline_edge_p): Do not touch
26265         DECL_STRUCT_FUNCTION that may not be available;
26266         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26267         remove check for callee_fun->can_throw_non_call_exceptions and
26268         replace it by optimization attribute check; check for flag_exceptions.
26269         * ipa-inline-transform.c (inline_call): Maintain
26270         DECL_FUNCTION_PERSONALITY
26271         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26272
26273 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26274
26275         PR tree-optimization/65551
26276         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26277         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26278
26279 2015-03-26  Richard Biener  <rguenther@suse.de>
26280
26281         PR middle-end/65555
26282         * tree-cfg.c (verify_gimple_call): Do not require a call to
26283         have no LHS if it wasn't recognized as control altering yet.
26284
26285 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26286
26287         PR tree-optimization/64715
26288         * passes.def: Add another instance of pass_object_sizes before ccp1.
26289         * tree-object-size.c (pass_object_sizes::execute): In
26290         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26291         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26292         __bos result and the computed constant.  Remove redundant
26293         checks, obsoleted by gimple_call_builtin_p test.
26294
26295         * var-tracking.c (variable_tracking_main_1): Don't track
26296         variables for targetm.no_register_allocation targets.
26297
26298 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26299
26300         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26301         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26302
26303 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26304
26305         PR target/65569
26306         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26307         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26308         0.0 is correctly setup.
26309         (extenddftf2_internal): Likewise.
26310
26311 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26312
26313         PR tree-optimization/65177
26314         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26315         (bb_in_bbs): New.
26316         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26317         edges not adjacent on the path to the original code.
26318
26319 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26320
26321         PR bootstrap/65537
26322         * doc/install.texi (Building a native compiler): Document new
26323         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26324         configuration assumes that the host supports the linker plugin.
26325
26326 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26327
26328         PR target/65508
26329         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26330         chain for generated call.
26331
26332 2015-03-25  Richard Biener  <rguenther@suse.de>
26333
26334         * passes.c (pass_manager::execute_early_local_passes): Guard
26335         execution of pass_chkp_instrumentation_passes with
26336         flag_check_pointer_bounds.
26337         (pass_chkp_instrumentation_passes::gate): Likewise.
26338
26339 2015-03-25  Martin Liska  <mliska@suse.cz>
26340
26341         PR tree-optimization/65538
26342         * symbol-summary.h (function_summary::~function_summary):
26343         Relese memory for allocated summaries.
26344         (function_summary::release): New function.
26345
26346 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26347
26348         PR lto/65515
26349         * lto-streamer-out.c (DFS::worklist): New struct.
26350         (DFS::worklist_vec): New data member.
26351         (DFS::next_dfs_num): Remove.
26352         (DFS::DFS): Rewritten using worklist instead of recursion,
26353         using most of code from DFS::DFS_write_tree.
26354         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26355         pass it to DFS_write_tree calls.
26356         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26357         quick initial checks push it into worklist_vec and return.
26358
26359 2015-03-25  Richard Biener  <rguenther@suse.de>
26360
26361         PR middle-end/65519
26362         * genmatch.c (expr::gen_transform): Re-write to avoid
26363         using gimple_build.
26364
26365 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26366
26367         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26368
26369 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26370
26371         * config/arm/arm.opt (print_tune_info): New option.
26372         * config/arm/arm.c (arm_print_tune_info): New function.
26373         (arm_file_start): Call arm_print_tune_info.
26374         * config/arm/arm-protos.h (struct tune_params): Add comment.
26375         * doc/invoke.texi (@item -mprint-tune-info): New item.
26376         (-mtune): mention it in ARM Option Summary.
26377
26378 2015-03-25  DJ Delorie  <dj@redhat.com>
26379
26380         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26381         correct clause.
26382
26383 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26384             Martin Liska  <mliska@suse.cz>
26385
26386         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26387         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26388         (sem_item::add_type): New function.
26389         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26390         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26391         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26392         (sem_function::equals_wpa): Fix typo.
26393         * ipa-icf.h (sem_item::add_type): New function.
26394         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26395         order.
26396
26397 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26398
26399         PR tree-optimization/65533
26400         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26401         with swapped operands, call vect_free_slp_tree on
26402         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26403         vector.
26404
26405 2015-03-24  Richard Biener  <rguenther@suse.de>
26406
26407         PR middle-end/65517
26408         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26409         for fixup if necessary.
26410
26411 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26412
26413         * doc/extend.texi (Function Attributes): Add @cindex entries
26414         for all attributes and regularize their format.  Delete text
26415         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26416         information about "eightbit_data", "tiny_data", and "model"
26417         variable attributes to the Variable Attributes section.  Fix
26418         some obvious typos and copy-editing issues.
26419         (Variable Attributes, Type Attributes): Likewise add/fix
26420         @cindex entries for all attributes.
26421
26422 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26423
26424         PR target/65523
26425         * tree-chkp.c (chkp_build_returned_bound): Ignore
26426         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26427
26428 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26429
26430         PR target/65505
26431         * config/sh/predicates.md (simple_mem_operand,
26432         displacement_mem_operand): Add test for reg.
26433         (short_displacement_mem_operand): Test for displacement_mem_operand
26434         before invoking sh_disp_addr_displacement.
26435         * config/sh/constraints.md (Sdd, Sra): Simplify.
26436         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26437         Remove redundant displacement_mem_operand tests.
26438
26439 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26440
26441         PR target/65296
26442         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26443         the same -mmcu=MCU more than once.
26444
26445 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26446
26447         PR bootstrap/65522
26448         * ipa-devirt.c: Remove duplicate demangle.h include.
26449
26450         PR target/65504
26451         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26452         on the pseudo.
26453         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26454         REG_POINTER on *destptr after adjusting it for prologue size.
26455
26456         PR ipa/65521
26457         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26458         ultimate_alias_target ()->order ints instead of
26459         ultimate_alias_target () pointers.
26460
26461 2015-03-23  Richard Biener  <rguenther@suse.de>
26462
26463         PR tree-optimization/65518
26464         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26465         interleaving cases we generate absymal code for.
26466
26467 2015-03-23  Richard Biener  <rguenther@suse.de>
26468
26469         PR tree-optimization/65494
26470         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26471         matches here.
26472         (vect_analyze_slp_instance): But do that here, always and once.
26473
26474 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26475
26476         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26477         adding T or multiplying by T+1 and subracting T.
26478
26479 2015-03-22  Jeff Law  <law@redhat.com>
26480
26481         PR rtl-optimization/64317
26482         * Makefile.in (OBJS): Add gcse-common.c
26483         * gcse.c: Include gcse-common.h
26484         (struct modify_pair_s): Move structure definition to gcse-common.h
26485         (compute_transp): Move function to gcse-common.c.
26486         (canon_list_insert): Similarly.
26487         (record_last_mem_set_info): Break out some code and put it into
26488         gcse-common.c.  Call into the new common code.
26489         (compute_local_properties): Pass additional arguments to compute_transp.
26490         * postreload-gcse.c: Include gcse-common.h and df.h
26491         (modify_mem_list_set, blocks_with_calls): New variables.
26492         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26493         (get_bb_avail_insn): Pass in the expression index too.
26494         (alloc_mem): Allocate memory for the new bitmaps and lists.
26495         (free_mem): Free memory for the new bitmaps and lists.
26496         (insert_expr_in_table): Record a bitmap index for each entry we
26497         add to the table.
26498         (record_last_mem_set_info): Call into common code in gcse-common.c.
26499         (get_bb_avail_insn): If no available insn was found in the requested
26500         BB.  If BB has a single predecessor, see if the expression is
26501         transparent in BB and available in that single predecessor.
26502         (compute_expr_transp): New wrapper for compute_transp.
26503         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26504         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26505         (gcse_after_reload_main): If there are elements in the hash table,
26506         then compute transparency for all the elements in the hash table.
26507         * gcse-common.h: New file.
26508         * gcse-common.c: New file.
26509
26510 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26511
26512         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26513         as an adjective.
26514         (System Headers): Likewise.
26515         (Ifdef): Likewise.
26516         (Traditional macros): Likewise.
26517         (Invocation): Likewise.
26518         (Option Index): Likewise.
26519         * doc/cppopts.texi (-M): Likewise.
26520         (-finput-charset): Likewise.
26521         (--help): Likewise.
26522         * doc.invoke.texi (AVR Options): Likewise.
26523         (V850 Options): Likewise.
26524
26525 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26526
26527         PR ipa/65475
26528         * ipa-devirt.c: Include demangle.h
26529         (odr_type_d): Add field rtti_broken.
26530         (odr_subtypes_equivalent_p): Do not require name to match.
26531         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26532         bypass the tests; be ready for function referneces in vtables that are
26533         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26534         (warn_odr): Give up for nameless types.
26535         (warn_types_mismatch): Report mismatch in mangled names;
26536         report mismatch in anonymous namespaces; look into component types to
26537         give useful error; report when mismatch is dragged in from other ODR
26538         type.
26539         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26540         duplicated diagnostics.
26541         (add_type_duplicate): Reorder checks so more informative ones come
26542         first; fix typo; do not output "the extra base is defined here" when
26543         we did not warn.
26544         (BINFO_N_BASE_BINFOS): Relax sanity check.
26545
26546 2015-03-22  Martin Liska  <mliska@suse.cz>
26547             Jakub Jelinek  <jakub@redhat.com>
26548
26549         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26550         masks that can potentially include a builtin.
26551         (ix86_add_new_builtins): Introduce fast filter for isa values
26552         that cannot trigger builtin inclusion.
26553
26554 2015-03-22  Martin Liska  <mliska@suse.cz>
26555
26556         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26557         (sem_item::update_hash_by_local_refs): Likewise.
26558         (sem_variable::get_hash): Empty line is fixed.
26559         (sem_item_optimizer::execute): Include adding of hash references.
26560         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26561         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26562         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26563         (sem_item::update_hash_by_local_refs): Likewise.
26564
26565 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26566
26567         PR ipa/65502
26568         * ipa-comdats.c (enqueue_references): Walk through thunks.
26569         (ipa_comdats): Likewise.
26570         (set_comdat_group_1): New function.
26571
26572 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26573
26574         PR ipa/65475
26575         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26576         non-polymorphic
26577
26578 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26579             Gerald Pfeifer  <gerald@pfeifer.com>
26580
26581         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26582
26583 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26584             Sandra Loosemore  <sandra@codesourcery.com>
26585
26586         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26587         function parameter declaration.
26588         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26589         Update arguments to nios2_adjust_call_address().
26590         (sibcall_internal): Rename from *sibcall.
26591         (sibcall_value_internal): Rename from *sibcall_value.
26592         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26593         (nios2_large_got_address): Add target temp reg parameter.
26594         (nios2_got_address): Adjust call to nios2_large_got_address, add
26595         force_reg around it.
26596         (nios2_load_pic_address): Add target temp reg parameter, replace call
26597         to nios2_got_address with corresponding code.
26598         (nios2_legitimize_constant_address): Update call to
26599         nios2_load_pic_address.
26600         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26601         to use temp reg for PIC loading purposes.
26602         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26603         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26604         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26605
26606 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26607
26608         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26609         usage of "the @option{...}".
26610         (-Wopenmp-simd): Likewise.
26611         (-fsanitize-recover): Likewise.
26612         (-fsanitize-undefined-trap-on-error): Likewise.
26613         (-flto): Likewise.
26614         (tracer-dynamic-coverage-feedback): Likewise.
26615         (reorder-block-duplicate-feedback): Likewise.
26616         (loop-unroll-jam-size): Likewise.
26617         (-B): Likewise.
26618         (-I-): Likewise.
26619         (-mabs=legacy): Likewise.
26620         (-mupper-regs-df): Likewise.
26621         (-mupper-regs-sf): Likewise.
26622         (-mpointers-to-nested-functions): Likewise.
26623
26624 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26625
26626         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26627
26628 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26629
26630         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26631         additional index entries and cross-references.
26632         (-fchkp-check-incomplete-type): Likewise.
26633         (-fchkp-first-field-has-own-bounds): Likewise.
26634         (-fchkp-narrow-to-innermost-array): Likewise.
26635         (-fchkp-use-fast-string-functions): Likewise.
26636         (-fchkp-use-nochk-string-functions): Likewise.
26637         (-fchkp-use-static-const-bounds): Likewise.
26638         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26639         (-fchkp-instrument-marked-only): Likewise.
26640         (-fchkp-use-wrappers): Likewise.
26641         (-static-libmpx): Likewise.
26642         (-static-libmpxwrappers): Likewise.
26643         * doc/extend.texi (bnd_legacy): Likewise.
26644         (bnd_instrument): Likewise.
26645         (bnd_variable_size): Likewise.
26646         (Pointer Bounds Checker builtins): Likewise.
26647
26648 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26649
26650         PR tree-optimization/65458
26651         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26652         * cgraph.h (cgraph_node): Add parallelized_function field.
26653         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26654         (input_overwrite_node): Read parallelized_function field.
26655         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26656         parallelized_function on cgraph_node for child_fn.
26657         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26658         Remove include of gt-tree-parloops.h.
26659         (parallelized_functions): Remove static variable.
26660         (parallelized_function_p): Rewrite using parallelized_function field of
26661         cgraph_node.
26662         (create_loop_fn): Remove adding to parallelized_functions.
26663         * Makefile.in (GTFILES): Remove tree-parloops.c
26664
26665 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26666
26667         PR rtl-optimization/64366
26668         * lra.c (lra_update_insn_regno_info): Consider regs in
26669         CALL_INSN_FUNCTION_USAGE memory.
26670
26671 2015-03-20  Richard Biener  <rguenther@suse.de>
26672
26673         PR middle-end/64715
26674         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26675         for type comparison and gcc_checking_assert.
26676         (chrec_fold_plus_poly_poly): Likewise.
26677         (chrec_fold_multiply_poly_poly): Likewise.
26678         (chrec_convert_1): Likewise.
26679         * gimplify.c (gimplify_expr): Remove premature folding of
26680         &X + CST to &MEM[&X, CST].
26681
26682 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26683
26684         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26685         already is final.
26686         (ipa_inline): Recompute inline_failed codes.
26687         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26688         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26689         CIF_FINAL_ERROR.
26690
26691 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26692
26693         PR rtl-optimization/60851
26694         * recog.c (constrain_operands): Accept a pseudo register before reload
26695         for LRA enabled targets.
26696
26697 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26698
26699         PR target/65240
26700         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26701         -ffast-math handling that kept non-0 constants live in the RTL
26702         until reload.  Remove logic testing the number of instructions it
26703         took to create a constant in a GPR that was never used, due to a
26704         test for soft-float earlier.
26705         (memory_fp_constant): Delete, no longer used.
26706
26707         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26708         alternatives for loading non-0 constants into GPRs for hard
26709         floating point that is no longer needed due to changes in
26710         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26711         (mov<mode>_hardfloat32): Likewise.
26712         (mov<mode>_hardfloat64): Likewise.
26713         (mov<mode>_64bit_dm): Likewise.
26714         (movtd_64bit_nodm): Likewise.
26715         (pre-reload move FP constant define_split): Delete define_split,
26716         since it is no longer used.
26717         (extenddftf2_internal): Remove GHF constraints that are not valid
26718         for extenddftf2.
26719
26720 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26721
26722         PR rtl-optimization/63491
26723         * lra-constraints.c (check_and_process_move): Use src instead of
26724         sreg.  Remove some dead code.
26725
26726 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26727
26728         PR ipa/65380
26729         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26730         (sem_variable::merge): Likewise.
26731
26732 2015-03-19  Martin Liska  <mliska@suse.cz>
26733
26734         PR ipa/65465
26735         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26736         all fields of cgraph_thunk_info.
26737
26738 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26739
26740         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26741         clone instrumented thunks.
26742
26743 2015-03-19  Richard Biener  <rguenther@suse.de>
26744
26745         Revert
26746         2015-03-10  Richard Biener  <rguenther@suse.de>
26747
26748         PR middle-end/63155
26749         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26750         * tree-ssa-coalesce.c: Include timevar.h.
26751         (attempt_coalesce): Handle graph being NULL.
26752         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26753         Split out abnormal coalescing to ...
26754         (perform_abnormal_coalescing): ... this function.
26755         (coalesce_ssa_name): Perform abnormal coalescing without computing
26756         live/conflict.
26757         (verify_ssa_coalescing_worker): New function.
26758         (verify_ssa_coalescing): Likewise.
26759
26760 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26761             Jakub Jelinek  <jakub@redhat.com>
26762
26763         PR sanitizer/65400
26764         * tsan.c (instrument_gimple): Clear tail call flag on
26765         calls.
26766
26767 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26768
26769         PR sanitizer/65400
26770         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26771         call in the return bb.
26772         (find_split_points): Add RETURN_BB argument, don't call
26773         find_return_bb.
26774         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
26775         if true append TSAN_FUNC_EXIT internal call after the call to
26776         the split off function.
26777         (execute_split_functions): Call find_return_bb here.
26778         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26779         Adjust find_split_points and split_function calls.
26780
26781 2015-03-18  DJ Delorie  <dj@redhat.com>
26782
26783         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26784         (iorqi3_virt): Likewise.
26785
26786 2015-03-18  Tom de Vries  <tom@codesourcery.com>
26787
26788         * tree-parloops.c (parallelize_loops): Make static.
26789         * tree-parloops.h (parallelize_loops): Remove extern declaration.
26790
26791 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
26792
26793         PR middle-end/64491
26794         Revert:
26795         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
26796
26797         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26798         condition would be removed due to undefined behaviour.
26799
26800 2015-03-18  Martin Liska  <mliska@suse.cz>
26801
26802         PR ipa/65432
26803         * cgraph.c (cgraph_node::get_create): Remove unnecessary
26804         xstrdup_for_dump wrapper.
26805         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26806         sem_item::name.
26807         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26808         with xstrdup_for_dump.
26809         (sem_variable::equals): Likewise.
26810         (sem_item_optimizer::read_section): Use symtab_node::name instead of
26811         sem_item::name.
26812         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26813         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26814         symtab_node::asm_name with xstrdup_for_dump.
26815         (congruence_class::dump): Use symtab_node::name instead of
26816         sem_item::name.
26817         * ipa-icf.h (symtab_node::name): Remove.
26818         (symtab_node::asm_name): Likewise.
26819
26820 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26821
26822         PR tree-optimization/65450
26823         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26824         function.
26825         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26826         it instead of duplicate_ssa_name_ptr_info.
26827
26828         PR target/65222
26829         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26830
26831 2015-03-18  Richard Biener  <rguenther@suse.de>
26832
26833         * tree-data-ref.h (struct access_matrix): Remove.
26834         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26835         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26836         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26837         (am_vector_index_for_loop): Likewise.
26838         (struct data_reference): Remove access_matrix member.
26839         (DR_ACCESS_MATRIX): Remove.
26840         (lambda_vector_new): Add comment.
26841         (lambda_matrix_new): Use XOBNEWVEC.
26842
26843 2015-03-18  Richard Biener  <rguenther@suse.de>
26844
26845         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26846         (pass_ch::execute): Cleanup the CFG only if we did sth.
26847         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26848
26849 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26850
26851         * expmed.c (synth_mult): Use std::swap instead of manually
26852         swapping algorithms.
26853
26854 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26855
26856         PR target/65078
26857         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26858
26859 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
26860
26861         PR target/65296
26862         * config/avr/avr.opt (-nodevicelib): New option.
26863         * doc/invoke.texi (AVR Options): Document it.
26864         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26865         libgcc.a, libc.a, libm.a.
26866         * config/avr/specs.h: Same.
26867         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26868         which don't (directly) depend on the device.  Print more help.
26869         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26870         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26871         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26872         case of an error.
26873         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26874         for specs file name.
26875         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26876         * config/avr/avr-mcus.def: Adjust initializers and comments.
26877
26878 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
26879
26880         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26881         DECL_ONE_ONLY to check if decl is one only.
26882         * ipa-split.c (consider_split): Limit splitt of one only functions.
26883
26884 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26885
26886         PR tree-optimization/65427
26887         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26888         functions.
26889         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26890
26891 2015-03-16  Marek Polacek  <polacek@redhat.com>
26892
26893         * cgraph.h (add_new_static_var): Remove declaration.
26894         * varpool.c (add_new_static_var): Remove function.
26895
26896 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26897
26898         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26899         instead of vec<tree> * with vec_alloc and release for args.
26900         Adjust all users.
26901
26902         PR middle-end/65431
26903         * omp-low.c (delete_omp_context): Only splay_tree_delete
26904         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26905         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
26906
26907 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26908
26909         PR sanitizer/64820
26910         * cfgexpand.c (align_base): New function.
26911         (alloc_stack_frame_space): Call it.
26912         (expand_stack_vars): Align prev_frame to be sure
26913         data->asan_vec elements aligned properly.
26914
26915 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
26916
26917         PR middle-end/65409
26918         * expr.c (store_field): Do not do a direct block copy if the source is
26919         a PARALLEL with BLKmode.
26920
26921 2015-03-16  Tom de Vries  <tom@codesourcery.com>
26922
26923         PR middle-end/65414
26924         Revert:
26925         2015-03-12  Tom de Vries  <tom@codesourcery.com>
26926
26927         PR rtl-optimization/64895
26928         * lra-lives.c (check_pseudos_live_through_calls): Use
26929         actual_call_used_reg_set instead of call_used_reg_set, if available.
26930
26931 2015-03-16  Alan Modra  <amodra@gmail.com>
26932
26933         PR target/63150
26934         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26935         Modify Z->r bswapdi splitter to use dest in place of scratch.
26936         In r->Z and Z->r bswapdi splitter rename word_high, word_low
26937         to word1, word2 and rearrange logic to suit.
26938         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26939         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
26940         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26941         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
26942         early clobber.
26943
26944 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
26945
26946         PR tree-optimization/65369
26947         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26948         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26949         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26950
26951         PR tree-optimization/65418
26952         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26953         are casts in the first PLUS_EXPR operand, ensure tbias and
26954         *totallowp are in the inner type.
26955
26956         PR rtl-optimization/65401
26957         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26958         argument.  If true, adjust_address_nv of x with big-endian
26959         correction for the mode widening to GET_MODE (y).
26960         (make_field_assignment): Don't do MEM mode widening here.
26961         Use MEM_P instead of GET_CODE == MEM.
26962
26963 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
26964
26965         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26966         the external decls.
26967
26968 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26969
26970         PR target/64600
26971         * config/arm/arm.c (arm_gen_constant, AND case): Use
26972         ARM_SIGN_EXTEND when constructing AND mask.
26973
26974 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26975
26976         * graph.c (print_graph_cfg): Make function names visible and append
26977         parenthesis to it.  Also make groups of basic blocks belonging to the
26978         same function visible.
26979
26980 2015-03-12  Richard Biener  <rguenther@suse.de>
26981
26982         PR middle-end/44563
26983         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26984         to avoid quadratic behavior with inline expansion splitting blocks.
26985         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26986         with the successor if the predecessor will be merged with it.
26987         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26988         entry block with its successor.
26989
26990 2015-03-13  Richard Biener  <rguenther@suse.de>
26991
26992         PR middle-end/44563
26993         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26994         (cleanup_tree_cfg_1): Do not call it.
26995         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26996         (fixup_noreturn_call): Mark the stmt as control altering.
26997         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26998         here.
26999         (pass_data_fixup_cfg): Produce a dump file.
27000         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27001         (need_noreturn_fixup): New global.
27002         (pass_dominator::execute): Fixup queued noreturn calls.
27003         (optimize_stmt): Queue calls that became noreturn for fixup.
27004         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27005         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27006         (el_to_fixup): New global.
27007         (eliminate_dom_walker::before_dom_childre): Queue calls that
27008         became noreturn for fixup.
27009         (eliminate): Fixup queued noreturn calls.
27010         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27011         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27012         (substitute_and_fold_dom_walker::before_dom_children): Queue
27013         alls that became noreturn for fixup.
27014         (substitute_and_fold): Fixup queued noreturn calls.
27015
27016 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
27017
27018         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27019         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27020         are building; for methods check ODR type of class they belong to if
27021         they may lead to a polymorphic call.
27022         (sem_function::compare_polymorphic_p): Be bit smarter about testing
27023         when function may lead to a polymorphic call.
27024         (sem_function::compare_type_list): Remove.
27025         (sem_variable::equals): Update use of compatible_types_p.
27026         (sem_variable::parse_tree_refs): Remove.
27027         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27028         cdtor.
27029         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27030         matching here.
27031         (func_checker::compatible_polymorphic_types_p): Break out from ...
27032         (unc_checker::compatible_types_p): ... here.
27033         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27034         Declare.
27035         (unc_checker::compatible_types_p): Update.
27036         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27037         Remove.
27038
27039 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27040
27041         PR rtl-optimization/65235
27042         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27043         When first element of vec_concat is const_int, calculate its size
27044         using second element.
27045
27046 2015-03-12  Richard Biener  <rguenther@suse.de>
27047
27048         PR middle-end/65270
27049         * fold-const.c (operand_equal_p): Fix ordering of resetting
27050         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27051
27052 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27053
27054         * config/s390/s390.c (s390_reorg): Move code to output nops after label
27055         to s390_reorg ().
27056         (s390_asm_output_function_label): Likewise.
27057         * config/s390/s390.c (s390_asm_output_function_label):
27058         Fix function label alignment with -mhtopatch.
27059         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27060         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27061         ("nop_2_byte"): New define_insn.
27062         ("nop_4_byte"): Likewise.
27063         ("nop_6_byte"): Likewise.
27064         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27065         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27066
27067 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27068
27069         PR target/65103
27070         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27071         register.
27072
27073 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
27074
27075         PR target/65044
27076         * toplev.c (process_options): Restrict Pointer Bounds Checker
27077         usage with Address Sanitizer.
27078
27079 2015-03-12  Richard Biener  <rguenther@suse.de>
27080
27081         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27082         to split on.
27083         * omp-low.c (expand_omp_taskreg): Split block before removing
27084         the stmt.
27085         (expand_omp_target): Likewise.
27086         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27087         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27088         stmt to split_block.
27089
27090 2015-03-12  Tom de Vries  <tom@codesourcery.com>
27091
27092         PR rtl-optimization/64895
27093         * lra-lives.c (check_pseudos_live_through_calls): Use
27094         actual_call_used_reg_set instead of call_used_reg_set, if available.
27095
27096 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27097
27098         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27099         (cgraph_node::remove): Likewise.
27100         (cgraph_node::get_untransformed_body): Likewise.
27101         * varpool.c (varpool_node::remove): Likewise.
27102         (varpool_node::get_constructor): Add sanity check.
27103
27104 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
27105
27106         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27107         old GCC versions.
27108         (-fabi-compat-version): Likewise.
27109         (-ffriend-injection): Likewise.
27110         (-Wdeclaration-after-statement): Likewise.
27111         (-fomit-frame-pointer): Likewise.
27112         (-ftree-coalesce-inlined-vars): Likewise.
27113         (-fvisibility=): Likewise.
27114         * doc/extend.texi (Typeof): Likewise.
27115         (Zero Length): Likewise.
27116         (Escaped Newlines): Likewise.
27117         (Compound Literals): Likewise.
27118         (Function Attributes): Likewise.
27119         (Label Attributes): Likewise.
27120         (Type Attributes): Likewise.
27121         (Function Names): Likewise.
27122         (Other Builtins): Likewise.
27123         (Function Specific Option Pragmas): Likewise.
27124         (C++ Interface): Likewise.
27125
27126 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27127
27128         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27129
27130 2015-03-11  Marek Polacek  <polacek@redhat.com>
27131
27132         PR tree-optimization/65388
27133         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27134
27135 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27136
27137         PR target/65296
27138         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27139         * configure: Regenerate.
27140         * config.in: Regenerate.
27141         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27142         [-mn-flash]: Document it.
27143         [__AVR_ARCH__]: Document avrtiny.
27144
27145         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27146         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27147         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27148
27149 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27150
27151         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27152
27153 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27154
27155         PR target/65242
27156         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27157         allow reloads of PLUS in floating point/VSX registers.
27158
27159 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27160
27161         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27162         crypto_sha256_fast.
27163         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27164
27165 2015-03-11  Richard Biener  <rguenther@suse.de>
27166
27167         PR tree-optimization/65310
27168         * tree-sra.c (build_ref_for_offset): Also preserve larger
27169         alignment.
27170
27171 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27172
27173         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27174
27175 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27176
27177         PR target/65368
27178         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27179         new define_expand.
27180         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27181
27182 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27183
27184         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27185         (sem_function::equals_wpa): ... here.
27186
27187 2015-03-10  Marek Polacek  <polacek@redhat.com>
27188             Jakub Jelinek  <jakub@redhat.com>
27189
27190         PR sanitizer/65367
27191         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27192         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27193         separately.
27194
27195 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27196
27197         PR target/65286
27198         * config/rs6000/t-linux: For powerpc64* target set
27199         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27200
27201 2015-03-10  Richard Biener  <rguenther@suse.de>
27202
27203         PR middle-end/44563
27204         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27205         for redirect_all_calls.
27206
27207 2015-03-10  Marek Polacek  <polacek@redhat.com>
27208
27209         * gdbinit.in (pcfun): Define and document.
27210
27211 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27212
27213         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27214         of libgomp-plugin.h.
27215         (find_target_compiler): Support a case when the path to gcc is
27216         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27217         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27218         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27219         libgomp-plugin.h.
27220         (main): Use GCC_INSTALL_NAME as target_driver_name.
27221         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27222         define.
27223         (mkoffload.o): Remove obsolete include path and defines.
27224         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27225
27226 2015-03-10  Richard Biener  <rguenther@suse.de>
27227
27228         PR middle-end/63155
27229         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27230         * tree-ssa-coalesce.c: Include timevar.h.
27231         (attempt_coalesce): Handle graph being NULL.
27232         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27233         Split out abnormal coalescing to ...
27234         (perform_abnormal_coalescing): ... this function.
27235         (coalesce_ssa_name): Perform abnormal coalescing without computing
27236         live/conflict.
27237         (verify_ssa_coalescing_worker): New function.
27238         (verify_ssa_coalescing): Likewise.
27239
27240 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27241
27242         PR target/65296
27243         * config.gcc (extra_options) [avr]: Remove.
27244         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27245         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27246         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27247
27248         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27249         (-mmcu=): Add Var and MissingArgError properties.
27250         (-march=): Remove.
27251         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27252         * config/avr/t-multilib: Regenerate.
27253         * config/avr/specs.h: New file.
27254         * config/avr/driver-avr.c: New file.
27255         * config/avr/genopt.sh: Remove file.
27256         * config/avr/avr-tables.opt: Remove file.
27257         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27258         * config/avr/avr-c.c: Same.
27259         * avr-arch.h: Same.
27260         (avr_current_device): Remove proto.
27261         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27262         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27263         (EXTRA_SPEC_FUNCTIONS): Define.
27264         (avr_devicespecs_file): New specs function proto.
27265         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27266         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27267         (avr_current_device): Remove definition and usage.
27268         (avr_set_core_architecture): New static function.
27269         (avr_option_override): Use it.
27270         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27271         (mcu_name): New static array.
27272         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27273         (avr_inform_devices, avr_inform_core_architectures): New functions.
27274         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27275         (avrlibc.h) [WITH_AVRLIBC]: Include.
27276         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27277         (print_mcu): Rewrite from scratch.
27278         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27279         Forward to avr-specific specs defined in device-specs file.
27280         * config/avr/t-avr (driver-avr.o): New rule.
27281         (avr-devices.o): Depend on avr-arch.h.
27282         (avr-mcus): No more depend on avr-tables.opt.
27283         (avr-tables.opt): Remove rule.
27284         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27285
27286 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27287
27288         * c-family/c.opt (fchkp-use-wrappers): New.
27289         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27290         (chkp_wrap_function): New.
27291         (chkp_build_instrumented_fndecl): Support wrapped
27292         functions.
27293         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27294         (-fchkp-check-incomplete-type): New.
27295         (-fchkp-first-field-has-own-bounds): New.
27296         (-fchkp-narrow-bounds): New.
27297         (-fchkp-narrow-to-innermost-array): New.
27298         (-fchkp-optimize): New.
27299         (-fchkp-use-fast-string-functions): New.
27300         (-fchkp-use-nochk-string-functions): New.
27301         (-fchkp-use-static-bounds): New.
27302         (-fchkp-use-static-const-bounds): New.
27303         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27304         (-fchkp-check-read): New.
27305         (-fchkp-check-write): New.
27306         (-fchkp-store-bounds): New.
27307         (-fchkp-instrument-calls): New.
27308         (-fchkp-instrument-marked-only): New.
27309         (-fchkp-use-wrappers): New.
27310         (-static-libmpx): New.
27311         (-static-libmpxwrappers): New.
27312
27313 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27314
27315         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27316         (CHKP_SPEC): Add wrappers library.
27317         * c-family/c.opt (static-libmpxwrappers): New.
27318
27319 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27320
27321         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27322         (LIBMPX_SPEC): New.
27323         (CHKP_SPEC): New.
27324         * gcc.c (CHKP_SPEC): New.
27325         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27326         * c-family/c.opt (static-libmpx): New.
27327
27328 2015-03-10  Richard Biener  <rguenther@suse.de>
27329
27330         PR middle-end/44563
27331         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27332         for compare_type.
27333         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27334         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27335         (cgraph_add_edge_to_call_site_hash): Likewise.
27336         (cgraph_node::get_edge): Likewise.
27337         (cgraph_edge::set_call_stmt): Likewise.
27338         (cgraph_edge::remove_caller): Likewise.
27339
27340 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27341
27342         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27343         (callee_saved_gpr_regs_size): ... this.
27344         (callee_saved_regs_first_regno): Rename to ...
27345         (callee_saved_first_gpr_regno): ... this.
27346         (callee_saved_regs_last_regno) Rename to ...
27347         (callee_saved_last_gpr_regno): ... this.
27348         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27349         variables.
27350         (nds32_initial_elimination_offset): Likewise.
27351         (nds32_expand_prologue): Likewise.
27352         (nds32_expand_epilogue): Likewise.
27353         (nds32_expand_prologue_v3push): Likewise.
27354         (nds32_expand_epilogue_v3pop): Likewise.
27355         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27356         Adjust renamed variables.
27357         (nds32_output_stack_pop): Likewise.
27358
27359 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27360
27361         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27362         code in comment.
27363
27364 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27365
27366         PR rtl-optimization/65321
27367         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27368         than shift mode.
27369         * var-tracking.c (use_narrower_mode): Likewise.
27370
27371 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27372
27373         PR tree-optimization/65355
27374         * varasm.c (notice_global_symbol): Do not produce RTL.
27375         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27376         anchor.
27377         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27378         check for section anchors.
27379
27380 2015-03-10  Alan Modra  <amodra@gmail.com>
27381
27382         PR target/65286
27383         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27384         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27385         given --with-cpu=native.
27386         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27387         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27388         and powerpc64le.
27389         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27390         rs6000_isa_flags rather than TARGET_64BIT.
27391
27392 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27393             Kaz Kojima  <kkojima@gcc.gnu.org>
27394
27395         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27396
27397 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27398
27399         PR lto/65361
27400         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27401         on a TREE_BINFO, instead use BINFO_TYPE.
27402
27403 2015-03-09  Richard Biener  <rguenther@suse.de>
27404
27405         PR middle-end/65270
27406         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27407         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27408         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27409         of that.  When comparing dereferences compare alignment.
27410         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27411
27412 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27413
27414         * ipa-inline-analysis.c (check_callers): Check
27415         node->can_remove_if_no_direct_calls_and_refs_p.
27416         (growth_likely_positive): Reorganize to call
27417         can_remove_if_no_direct_calls_p later.
27418         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27419         will_be_removed_from_program_if_no_direct_calls_p): Add
27420         will_inline parameter.
27421         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27422         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27423         Handle inliner case correctly.
27424
27425 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27426
27427         PR tree-optimization/63743
27428         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27429         had its definition forwarded by TER.
27430
27431 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27432
27433         PR lto/65316
27434         * ipa-utils.h (types_odr_comparable): Add strict argument.
27435         * ipa-devirt.c: Fix whitespace;
27436         (odr_hasher): Remove.
27437         (odr_name_hasher, odr_vtable_hasher): New hashers.
27438         (can_be_name_hashed_p): New predicate.
27439         (hash_type_name): remove.
27440         (hash_odr_name): New.
27441         (odr_name_hasher::hash): new.
27442         (can_be_vtable_hashed_p): New.
27443         (hash_odr_vtable): New.
27444         (odr_vtable_hasher::hash): New.
27445         (types_same_for_odr): Add strict parameter.
27446         (types_odr_comparable): Likewise.
27447         (odr_name_hasher::equal): New.
27448         (odr_vtable_hasher::equal): New.
27449         (odr_name_hasher::remove): New.
27450         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27451         (odr_vtable_hash_type): New.
27452         (odr_vtable_hash): New.
27453         (odr_subtypes_equivalent_p): Do strict comparsion.
27454         (add_type_duplicate): Merge type names; cleanup; avoid type
27455         duplicates.
27456         (register_odr_type): Initialize vtable hash.
27457         (build_type_inheritance_graph): Likewise
27458         (get_odr_type): Reorg to use two hashes.
27459         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27460         output.
27461         (ipa_devirt): Dump type_inheritance_graph.
27462         (types_same_for_odr): Add strict mode.
27463
27464 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27465
27466         PR ipa/65334
27467         * cgraph.h (symtab_node): Add definition_alignment,
27468         can_increase_alignment_p and increase_alignment.
27469         * symtab.c (symtab_node::can_increase_alignment_p,
27470         increase_alignment_1, symtab_node::increase_alignment,
27471         symtab_node::definition_alignment): New.
27472         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27473         can_increase_alignment_p.
27474         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27475         * tree-vect-stmts.c (ensure_base_align): Likewise.
27476         * varasm.c (function_section_1): Use definition_alignment.
27477         (assemble_start_function): Likewise.
27478         (emit_local): likewise.
27479         (build_constant_desc): Likewsie.
27480         (output_constant_def_contents): Likewise.
27481         (place_block_symbol): Likewise.
27482         (output_object_block): Likewise.
27483
27484 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27485
27486         PR ipa/65316
27487         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27488         when outputting debug.
27489
27490 2015-03-07  Marek Polacek  <polacek@redhat.com>
27491             Martin Uecker  <uecker@eecs.berkeley.edu>
27492
27493         PR sanitizer/65280
27494         * doc/invoke.texi: Update description of -fsanitize=bounds.
27495
27496 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27497
27498         * tree-ssa-phiopt.c (neg_replacement): Remove.
27499         (tree_ssa_phiopt_worker): Remove negate optimization.
27500
27501 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27502
27503         PR ipa/65302
27504         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27505
27506 2015-03-06  Richard Biener  <rguenther@suse.de>
27507
27508         PR middle-end/64928
27509         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27510         and liveout_obstack members.
27511         (calculate_live_on_exit): Remove.
27512         (calculate_live_ranges): Change declaration.
27513         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27514         (new_tree_live_info): Adjust.
27515         (calculate_live_ranges): Delete livein when not wanted.
27516         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27517         Deal with partly deleted live info.
27518         (loe_visit_block): Remove temporary bitmap by using
27519         bitmap_ior_and_compl_into.
27520         (live_worklist): Adjust accordingly.
27521         (calculate_live_on_exit): Make static.
27522         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27523         we do not need livein.
27524
27525 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27526
27527         * real.c (real_from_string): Fix typo in assertion.
27528
27529 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27530
27531         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27532         the patch.
27533
27534 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27535
27536         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27537
27538 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27539
27540         PR target/64342
27541         * lra-assigns.c (find_hard_regno_for): Rename to
27542         find_hard_regno_for_1.  Add a new parameter.
27543         (find_hard_regno_for): New function using find_hard_regno_for_1.
27544
27545 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27546
27547         PR rtl-optimization/65067
27548         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27549         strict volatile bitfield handling.
27550
27551 2015-03-05  Martin Liska  <mliska@suse.cz>
27552
27553         PR ipa/65318
27554         * ipa-icf.c (sem_variable::equals): Compare variables types.
27555
27556 2015-03-05  Richard Henderson  <rth@redhat.com>
27557
27558         PR target/65121
27559         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27560         correctly check weak symbol binding.
27561
27562 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27563
27564         PR middle-end/65315
27565         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27566         needed alignment.
27567
27568 2015-03-05  Martin Liska  <mliska@suse.cz>
27569
27570         * ipa-inline.c (inline_small_functions): Set default value to
27571         prevent warning during bootstrap.
27572         * tree.h: Add pragma guard that ignores false positives during
27573         bootstrap.
27574
27575 2015-03-05  Richard Biener  <rguenther@suse.de>
27576
27577         PR tree-optimization/65310
27578         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27579         Properly preserve alignment of the base of the access.
27580
27581 2015-03-05  Richard Biener  <rguenther@suse.de>
27582
27583         PR ipa/65270
27584         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27585         Compare dependence info.
27586
27587 2015-03-05  Richard Biener  <rguenther@suse.de>
27588
27589         PR middle-end/65233
27590         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27591         tree-into-ssa.h.
27592         (walk_ssa_copies): Revert last chage.  Instead do not walk
27593         SSA names registered for SSA update.
27594
27595 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27596
27597         PR ipa/65270
27598         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27599         vtable references for their containing type.
27600         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27601         and type attributes.
27602
27603 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27604
27605         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27606         before negating it.
27607         * stor-layout.c (finalize_record_size): Revert latest change.
27608
27609 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27610
27611         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27612
27613 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27614
27615         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27616         for correct comdat handling.
27617         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27618         Likewise.
27619         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27620         (used_from_object_file_p_worker): Remove.
27621         (cgraph_node::only_called_directly_or_alised): Add
27622         used_from_object_file_p.
27623         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27624         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27625         can_remove_if_no_direct_calls_and_refs_p.
27626
27627 2015-03-04  Nick Clifton  <nickc@redhat.com>
27628
27629         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27630         General register class.
27631         * config/rl78/rl78-real.md: Replace general register constraints
27632         with real+virtual register constraints.
27633
27634 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27635
27636         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27637         from checking for -mhtm option.
27638
27639 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27640
27641         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27642         (struct ipa_sra_check_caller_data): Add has_thunk field.
27643         (ipa_sra_check_caller): Check for thunk.
27644         (ipa_sra_preliminary_function_checks): Give up on function with
27645         thunks.
27646         (ipa_early_sra): Use call_for_symbol_and_aliases.
27647
27648 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27649
27650         PR target/65249
27651         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27652         called for __stack_chk_guard symbol.
27653
27654 2015-03-03  DJ Delorie  <dj@redhat.com>
27655
27656         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27657         inc/dec.
27658         (*addhi3_real): Likewise.
27659         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27660         pattern to match incrementing memory.
27661         * config/rl78/predicates.md (rl78_1_2_operand): New.
27662         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27663         it's the same and only mem.
27664         (rl78_alloc_physical_registers_op2): If there's effectively only
27665         one MEM, transcode it into HL.
27666         (rl78_far_p): Reject addresses that aren't legitimate.
27667
27668 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27669
27670         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27671         negating it.
27672
27673         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27674
27675 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27676
27677         Implement call0 ABI for xtensa
27678         * config/xtensa/constraints.md ("a" constraint): Include stack
27679         pointer in case of call0 ABI.
27680         ("q" constraint): Make empty in case of call0 ABI.
27681         ("D" constraint): Include stack pointer in case of call0 ABI.
27682         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27683         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27684         prototypes.
27685         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27686         variable.
27687         (xtensa_regno_to_class): Make it a local variable in the
27688         function xtensa_regno_to_class.
27689         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27690         macro, function prototype and implementation.
27691         (reg_nonleaf_alloc_order): Make it a local variable in the
27692         function order_regs_for_local_alloc.
27693         (xtensa_conditional_register_usage): New function.
27694         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27695         (xtensa_valid_move): Allow direct moves to stack pointer
27696         register in call0 ABI.
27697         (xtensa_setup_frame_addresses): Only spill register windows in
27698         windowed ABI.
27699         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27700         call0 ABI respectively.
27701         (xtensa_function_arg_1): Only mark a7 register for copying in
27702         windowed ABI.
27703         (xtensa_call_save_reg): New function.
27704         (compute_frame_size): Add space for callee saved register
27705         storage to the frame size in call0 ABI.
27706         (xtensa_expand_prologue): Generate code to set up stack frame
27707         and save callee-saved registers in call0 ABI.
27708         (xtensa_expand_epilogue): New function.
27709         (xtensa_set_return_address): New function.
27710         (xtensa_return_addr): Calculate return address in call0 ABI.
27711         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27712         emit copying code in windowed ABI.
27713         (order_regs_for_local_alloc): Add preferred register allocation
27714         order for non-leaf function in call0 ABI.
27715         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27716         (xtensa_asm_trampoline_template): Add trampoline generation for
27717         call0 ABI.
27718         (xtensa_trampoline_init): Add trampoline initialization for
27719         call0 ABI.
27720         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27721         functions.
27722         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27723         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27724         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27725         ABI call-used registers.
27726         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27727         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27728         call0 ABI.
27729         (REG_CLASS_CONTENTS): Include all registers into the preferred
27730         reload registers set, adjust the set in the
27731         xtensa_conditional_register_usage.
27732         (xtensa_regno_to_class): Drop variable declaration.
27733         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27734         function.
27735         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27736         respectively.
27737         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27738         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27739         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27740         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27741         location in call0 ABI.
27742         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27743         stack adjustment size when handling exception.
27744         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27745         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27746         definitions.
27747         ("return" pattern): Generate ret.n/ret in call0 ABI.
27748         ("epilogue" pattern): Expand epilogue.
27749         ("nonlocal_goto" pattern): Use default in call0 ABI.
27750         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27751         emit eh_set_a0_* depending on ABI.
27752         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27753         ("eh_set_a0_call0", "blockage"): New patterns.
27754
27755 2015-03-03  Martin Liska  <mliska@suse.cz>
27756
27757         PR ipa/65287
27758         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27759
27760 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27761
27762         PR 65138/target
27763         * config/rs6000/rs6000-tables.opt: Regenerate table.
27764
27765 2015-03-03  Renlin Li  <renlin.li@arm.com>
27766
27767         * doc/md.texi (@item ^): Change ? into ^.
27768
27769 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27770
27771         * doc/tm.texi: Regenerated.
27772
27773 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27774
27775         * builtins.c (expand_builtin_return_addr): Add
27776         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27777         surrounding #ifdef.
27778         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27779         definition to 1.
27780         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27781         Likewise.
27782         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27783         undefined.
27784         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27785         paragraph.
27786
27787 2015-03-03  Martin Jambor  <mjambor@suse.cz>
27788             Eric Botcazou  <ebotcazou@adacore.com>
27789
27790         * tree-sra.c (ipa_sra_check_caller_data): New type.
27791         (has_caller_p): Removed.
27792         (ipa_sra_check_caller): New function.
27793         (ipa_sra_preliminary_function_checks): Use it.
27794
27795 2015-03-03  Martin Liska  <mliska@suse.cz>
27796
27797         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27798         instead of if branch.
27799
27800 2015-03-03  Martin Liska  <mliska@suse.cz>
27801
27802         PR ipa/65282
27803         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27804
27805 2015-03-23  Jeff Law  <law@redhat.com>
27806
27807         PR tree-optimization/65241
27808         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27809         hash table if INSERT is true.
27810
27811 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27812
27813         PR target/65296
27814         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27815
27816 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27817
27818         PR target/64331
27819         * config/avr/avr.c (context.h, tree-pass.h): Include them.
27820         (avr_pass_data_recompute_notes): New static variable.
27821         (avr_pass_recompute_notes): New class.
27822         (avr_register_passes): New static function.
27823         (avr_option_override): Call it.
27824
27825 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27826
27827         Fix various problems with specs file generation.
27828
27829         PR target/65296
27830         * config.gcc (extra_gcc_objs) [avr]: Remove.
27831         * config/avr/driver-avr.c: Remove file.
27832         * config/avr/t-avr (driver-avr.o): Remove rule.
27833         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27834         INCLUDES to build.  Depend on TM_H.
27835         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
27836         build warnings.  Fix non-matching types and non-existing %-codes.
27837         (tm.h): Include.
27838         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27839         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27840         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27841         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27842         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27843         (LIBGCC_SPEC): Remove definitions.
27844
27845 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27846
27847         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27848         to create a register in testing mode.
27849
27850 2015-03-03  Martin Liska  <mliska@suse.cz>
27851             Jan Hubicka  <hubicka@ucw.cz>
27852
27853         PR ipa/65263
27854         * cgraph.c (cgraph_node::has_thunk_p): New function.
27855         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27856         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27857         (sem_function::merge): Assert is changed.
27858
27859 2015-03-03  Martin Liska  <mliska@suse.cz>
27860             Martin Jambor  <mjambor@suse.cz>
27861
27862         PR ipa/65087
27863         * ipa-icf.c (sem_item_optimizer::execute): Change function
27864         return value to boolean.
27865         (sem_item_optimizer::merge_classes): Likewise.
27866         (ipa_icf_driver): Return TODO_remove_functions in case there's
27867         a merge operation processed.
27868         * ipa-icf.h: Change function return value to boolean.
27869
27870 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27871
27872         PR 65138/target
27873         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27874         processor type for 64-bit little endian PowerPC.
27875
27876         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27877         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
27878         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
27879         printing built-in mask so it does not pass NULL pointers.
27880
27881         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27882         -mcpu=powerpc64le.
27883
27884 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
27885
27886         PR target/58158
27887         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27888         !ISA_HAS_FP_CONDMOVE.
27889
27890 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
27891
27892         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27893         reload_completed.
27894
27895 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
27896
27897         * doc/invoke.texi (Options for Code Generation Conventions):
27898         Fix URL of DSO paper.
27899
27900 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27901
27902         PR ipa/65130
27903         * ipa-inline.c (check_callers): Looks for recursion.
27904         (inline_to_all_callers): Give up on uninlinable or recursive edges.
27905         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27906         summary of inline clones.
27907         (do_estimate_growth_1): Fix recursion check.
27908
27909 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27910
27911         PR ipa/64988
27912         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27913         comdat groups.
27914
27915 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27916             Aldy Hernandez  <aldyh@redhat.com>
27917
27918         PR lto/65276
27919         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27920         when checking TYPE_BINFO.
27921
27922 2015-03-02  Richard Biener  <rguenther@suse.de>
27923
27924         PR ipa/65270
27925         * ipa-icf-gimple.c: Include builtins.h.
27926         (func_checker::compare_memory_operand): Compare base alignment.
27927
27928 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27929
27930         PR target/65184
27931         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27932         are never passed by reference.
27933
27934 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27935
27936         PR target/65183
27937         * tree-chkp.c (chkp_check_lower): Don't check against
27938         zero bounds for already instrumented functions.
27939         (chkp_check_upper): Likewise.
27940         (chkp_fini): Clean pass local data to avoid wrong reusage.
27941
27942 2015-02-28  Martin Liska  <mliska@suse.cz>
27943             Jan Hubicka  <hubicka@ucw.cz>
27944
27945         * ipa-icf.c (sem_variable::equals): Improve debug output;
27946         get variable constructor.
27947         (sem_variable::parse): Do not filter out too early; give up on
27948         volatile and register vars.
27949         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27950         variables.
27951         * ipa-icf.h (sem_variable::init): Do not set ctor.
27952         (sem_variable::ctor): Remove.
27953
27954 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
27955
27956         PR middle-end/65233
27957         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27958
27959 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27960
27961         * ipa-icf.c: Include stor-layout.h
27962         (sem_function::compare_cgraph_references): Rename to ...
27963         (sem_item::compare_cgraph_references): ... this one.
27964         (sem_variable::equals_wpa): New function
27965         (sem_variable::equals): Do not check stuff already verified by
27966         equals_wpa.
27967         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27968         * ipa-icf.h (sem_item): Add compare_cgraph_references.
27969         (sem_function): Remove compare_cgraph_references.
27970         (sem_variable): Turns equals_wpa into non-inline.
27971
27972 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27973
27974         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27975         (sem_item::add_expr): New function.
27976         (sem_function::hash_stmt): Handle operands of most statements.
27977         (sem_variable::get_hash): Hash the actual constructor.
27978         * ipa-icf.h (sem_item): Add add_expr.
27979         (sem_function): Update prototype of hash_stmt
27980
27981 2015-02-28  Martin Liska  <mliska@suse.cz>
27982             Jan Hubicka  <hubicka@ucw.cz>
27983
27984         PR ipa/65245
27985         * ipa-icf-gimple.c (func_checker::compare_function_decl):
27986         Remove.
27987         (func_checker::compare_variable_decl): Skip symtab vars.
27988         (func_checker::compare_cst_or_decl): Update.
27989         * ipa-icf.c (sem_function::parse): Do not consider aliases.
27990         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27991         use correct symtab predicates.
27992         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27993         (sem_variable::parse):  Update comment.
27994         (sem_item_optimizer::build_graph): Consider ultimate aliases
27995         for references.
27996
27997 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27998
27999         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28000         of OBJ_TYPE_REF.
28001
28002 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28003
28004         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28005         (sem_variable::merge) Likewise.
28006
28007 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28008
28009         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28010         target; also match flag_ipa_devirt.
28011
28012 2015-03-01  Martin Liska  <mliska@suse.cz>
28013             Jan Hubicka  <hubicka@ucw.cz>
28014
28015         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28016         Validate variable alignment.
28017         * ipa-icf.c (sem_function::equals_private): Be more precise
28018         about non-common function attributes.
28019         (sem_variable::equals): Likewise.
28020
28021 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28022
28023         PR ipa/65237
28024         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28025         across COMDAT group boundary.
28026
28027 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28028
28029         PR ipa/65232
28030         * ipa-icf.c (clear_decl_rtl): New function.
28031         (sem_function::merge): Clear RTL before forming alias.
28032         (sem_variable::merge): Clear RTL before forming alias.
28033
28034 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
28035
28036         PR ipa/65236
28037         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28038
28039 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
28040
28041         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28042         to neon_to_gp<q>.
28043
28044 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28045
28046         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28047         a typo in the description.
28048
28049 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28050
28051         PR target/64317
28052         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28053         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28054         * lra-constraints.c: Include "params.h".
28055         (EBB_PROBABILITY_CUTOFF): Use
28056         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28057         (lra_inheritance): Use '<' instead of '<=' for
28058         EBB_PROBABILITY_CUTOFF.
28059         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28060         Document change.
28061
28062 2015-02-27  Martin Liska  <mliska@suse.cz>
28063
28064         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28065         vector length condition.
28066
28067 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
28068
28069         * doc/extend.texi (x86 transactional memory intrinsics):
28070         Reorganize discussion of _xbegin.  Clarify that the return
28071         value is a bit mask.  Expand example and move to end of section.
28072
28073 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28074             Aldy Hernandez  <aldyh@redhat.com>
28075
28076         PR rtl-optimization/65220
28077         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28078
28079 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28080
28081         PR target/65032
28082         * lra-remat.c (update_scratch_ops): New.
28083         (do_remat): Call it.
28084         * lra.c (lra_register_new_scratch_op): New. Take code from ...
28085         (remove_scratches): ... here.
28086         * lra-int.h (lra_register_new_scratch_op): New prototype.
28087
28088 2015-02-27  Marek Polacek  <polacek@redhat.com>
28089
28090         PR c/65040
28091         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28092         -Wformat-signedness anymore.
28093
28094 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28095
28096         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28097         function.
28098         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28099
28100 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28101
28102         * config/s390/s390.c (enum s390_builtin):
28103         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28104         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28105         (s390_init_builtins): Generate new builtin functions.
28106         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28107         (s390_sfpc, s390_efpc): New pattern definitions.
28108
28109 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28110
28111         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28112         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28113         (s390_builtin_decls): New array.
28114         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28115         (s390_builtin_decl): New function.
28116         (TARGET_BUILTIN_DECL): Define macro.
28117
28118 2015-02-27  Richard Biener  <rguenther@suse.de>
28119
28120         PR middle-end/63175
28121         * builtins.c (get_object_alignment_2): Make sure to re-apply
28122         the ANDed mask after recursing to its operand gets us a new
28123         misalignment bit position.
28124
28125 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28126             Martin Liska  <mliska@suse.cz>
28127
28128         PR bootstrap/65150
28129         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28130         Use address_matters_p.
28131         (redirect_all_callers, set_addressable): New functions.
28132         (sem_function::merge): Reorganize and fix merging issues.
28133         (sem_variable::merge): Likewise.
28134         (sem_variable::compare_sections): Remove.
28135         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28136         Optimization flag.
28137         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28138         redirect them.
28139         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28140         decl is used.
28141         (address_matters_1): New function.
28142         (symtab_node::address_matters_p): New function.
28143         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28144         check for merged flag.
28145         * cgraph.h (address_matters_p): Declare.
28146         (symtab_node::address_taken_from_non_vtable_p): Remove.
28147         (symtab_node::address_can_be_compared_p): New method.
28148         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28149         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28150         Remove.
28151         (comdat_can_be_unshared_p_1) Use address_matters_p.
28152         (update_vtable_references): Fix formating.
28153         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28154         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28155         * cgraphclones.c: Preserve merged and icf_merged flags.
28156
28157 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28158
28159         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28160         (Label Attributes): Likewise.
28161         (Cilk Plus Builtins): Likewise.
28162         (ARC SIMD Built-in Functions): Likewise.
28163         (ARM C Language Extensions (ACLE)): Likewise.
28164         (PowerPC Built-in Functions): Likewise.
28165         (PowerPC Hardware Transactional Memory Built-in Functions):
28166         Likewise.
28167
28168 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28169
28170         PR tree-optimization/65216
28171         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28172         new stmt and new SSA_NAME for lhs whenever the arguments have
28173         changed and weren't just swapped.  Fix comment typo.
28174
28175         PR tree-optimization/65215
28176         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28177         for PDP endian targets.
28178         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28179         Fix up formatting issues.
28180         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28181         size is smaller than the original, adjust MEM_REF offset by the
28182         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28183         is_gimple_min_invariant test to avoid adding address temporaries.
28184
28185 2015-02-26  Martin Liska  <mliska@suse.cz>
28186             Jan Hubicka  <hubicka@ucw.cz>
28187
28188         PR ipa/64693
28189         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28190         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28191         (sem_item_optimizer::process_cong_reduction): Include division by
28192         sensitive references.
28193         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28194         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28195         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28196
28197 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28198
28199         PR target/65192
28200         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28201         Remove.
28202         * config/avr/avr.c: Same.
28203         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28204         Refuse any constant address not in 0..0xbf.
28205         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28206         tiny_valid_direct_memory_access_range from insn conditions.
28207         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28208
28209 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28210
28211         PR target/61142
28212         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28213         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28214         * config/sh/predicates.md (const_logical_operand): New predicate.
28215         * config/sh/sh.md: Add new peephole2 patterns.
28216
28217 2015-02-26  Marek Polacek  <polacek@redhat.com>
28218
28219         PR ipa/65008
28220         * ipa-inline.c (early_inliner): Recompute inline parameters.
28221
28222 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28223
28224         PR target/65171
28225         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28226         instructions with TImode operands are included in the analysis.
28227
28228 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28229
28230         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28231         of an EDGE_FSM_THREAD.
28232
28233 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28234
28235         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28236
28237 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28238
28239         PR debug/46102
28240         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28241
28242 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28243
28244         PR tree-optimization/65048
28245         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28246         (thread_through_all_blocks): Call valid_jump_thread_path.
28247         Remove invalid FSM jump-thread paths.
28248
28249 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28250
28251         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28252         (ipa_write_optimization_summaries): Likewise.
28253         * tree-streamer.h: Include data-streamer.h.
28254         (streamer_mode_table): Declare extern variable.
28255         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28256         * lto-streamer-out.c (lto_output_init_mode_table,
28257         lto_write_mode_table): New functions.
28258         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28259         offloading LTO.
28260         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28261         (lto_create_simple_input_block): Add mode_table argument to the
28262         lto_input_block constructors.
28263         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28264         Likewise.
28265         * data-streamer-in.c (string_for_index): Likewise.
28266         * ipa-inline-analysis.c (inline_read_section): Likewise.
28267         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28268         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28269         * lto-streamer-in.c (lto_read_body_or_constructor,
28270         lto_input_toplevel_asms): Likewise.
28271         (lto_input_mode_table): New function.
28272         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28273         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28274         Use bp_pack_machine_mode.
28275         * real.h (struct real_format): Add name field.
28276         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28277         (class lto_input_block): Add mode_table member.
28278         (lto_input_block::lto_input_block): Add mode_table_ argument,
28279         initialize mode_table.
28280         (struct lto_file_decl_data): Add mode_table field.
28281         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28282         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28283         unpack_ts_decl_common_value_fields,
28284         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28285         * tree-streamer.c (streamer_mode_table): New variable.
28286         * real.c (ieee_single_format, mips_single_format,
28287         motorola_single_format, spu_single_format, ieee_double_format,
28288         mips_double_format, motorola_double_format,
28289         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28290         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28291         ibm_extended_format, mips_extended_format, ieee_quad_format,
28292         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28293         decimal_single_format, decimal_double_format, decimal_quad_format,
28294         ieee_half_format, arm_half_format, real_internal_format): Add name
28295         field.
28296         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28297
28298 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28299
28300         PR target/65161
28301         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28302         reordering for selective scheduling.
28303
28304 2015-02-26  Terry Guo  <terry.guo@arm.com>
28305
28306         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28307         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28308         (arm_arch_no_volatile_ce): Declare new global variable.
28309         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28310         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28311         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28312         (TARGET_NO_VOLATILE_CE): New macro.
28313         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28314         volatile memory access in IT block
28315
28316 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28317
28318         PR tree-optimization/61917
28319         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28320         that reduc_def_stmt is null.
28321
28322 2015-02-25  Martin Liska  <mliska@suse.cz>
28323
28324         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28325         hard register variables.
28326
28327 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28328
28329         PR target/64212
28330         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28331         (symtab::noninterposable_alias): Likewise.
28332
28333 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28334
28335         PR target/65167
28336         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28337         bounds registers.
28338         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28339
28340 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28341
28342         PR target/64997
28343         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28344         as split condition; force split via '#' in output pattern.
28345
28346 2015-02-25  Richard Biener  <rguenther@suse.de>
28347             Kai Tietz  <ktietz@redhat.com>
28348
28349         PR tree-optimization/61917
28350         * tree-vect-loop.c (vectorizable_reduction): Allow
28351         vect_internal_def without reduction to exit graceful.
28352
28353 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28354
28355         PR target/65196
28356         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28357         only with NONDEBUG_INSN_P.
28358
28359 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28360
28361         Use variadic macros with avr-log.c.
28362
28363         * config/avr/avr-protos.h (avr_vdump): New prototype.
28364         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28365         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28366         * config/avr/avr-log.c: Adjust comments.
28367         (avr_vdump): New function.
28368         (avr_vadump): Pass caller as 2nd argument instead of format string.
28369         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28370         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28371
28372 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28373
28374         PR lto/64374
28375         * target.def (target_option_stream_in): New target hook.
28376         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28377         targetm.target_option.post_stream_in if non-NULL.
28378         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28379         * doc/tm.texi: Updated.
28380         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28381         function.
28382         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28383
28384 2015-02-24  Jeff Law  <law@redhat.com>
28385
28386         PR target/65117
28387         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28388         of operand 0 and operand 2.
28389         (zero_cost_loop_end, loop_end): Similarly.
28390
28391 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28392
28393         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28394         CXX_MEM_STAT_INFO.
28395
28396 2015-02-24  DJ Delorie  <dj@redhat.com>
28397
28398         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28399         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28400         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28401         instead of hardcoding SImode.
28402
28403 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28404
28405         * omp-low.c (create_omp_child_function): Tag entrypoint
28406         functions with a special attribute.
28407
28408 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28409
28410         PR target/65058
28411         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28412
28413 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28414
28415         PR rtl-optimization/65123
28416         * lra-remat.c (operand_to_remat): Check hard regs in insn
28417         definition too.
28418
28419 2015-02-24  Nick Clifton  <nickc@redhat.com>
28420
28421         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28422         to the assembler.
28423
28424 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28425
28426         PR libgomp/64625
28427         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28428         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28429         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28430         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28431         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28432         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28433         (BUILT_IN_GOACC_PARALLEL): Specify as
28434         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28435         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28436         * builtin-types.def
28437         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28438         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28439         Remove function types.
28440         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28441         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28442         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28443         New function types.
28444
28445 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28446
28447         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28448
28449 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28450
28451         PR tree-optimization/65170
28452         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28453         if val[1] < 0, clear also val[2] and return 3.
28454
28455 2015-02-24  Alan Modra  <amodra@gmail.com>
28456
28457         PR target/65172
28458         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28459         when *base is a reg.  Handle nested plus addresses.  Simplify
28460         pre_modify test.
28461
28462 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28463
28464         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28465         use natural alignment when optimizing for size.
28466
28467 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28468
28469         PR target/65153
28470         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28471         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28472         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28473
28474 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28475
28476         PR fortran/63427
28477         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28478         too big for a wide_int.  Implement missing wrapping operation.
28479
28480 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28481
28482         PR target/65163
28483         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28484         instead of const_int 4294901760.
28485
28486 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28487
28488         * config/avr/t-avr: Fix typo in comment.
28489
28490 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28491
28492         * doc/rtl.texi (fma): Clarify documentation.
28493
28494 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28495
28496         PR debug/58123
28497         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28498         over input_location.
28499
28500 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28501
28502         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28503         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28504         restrict alignments to absolute_biggest_alignment.
28505         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28506         Define.
28507         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28508         * doc/tm.texi: Regenerate.
28509         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28510
28511 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28512
28513         PR target/64172
28514         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28515
28516 2015-02-20  Richard Biener  <rguenther@suse.de>
28517
28518         PR tree-optimization/65136
28519         * tree-ssa-propagate.c: Include cfgloop.h.
28520         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28521         arguments with constants.
28522
28523 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28524             Martin Liska  <mliska@suse.cz>
28525
28526         PR target/63892
28527         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28528         don't try to create_thunk if stdarg_p.  If
28529         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28530         redirect_callers if possible.
28531         (sem_item_optimizer::execute): Call unregister_hooks here...
28532         (ipa_icf_driver): ... instead of here.
28533
28534 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28535
28536         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28537         Mark operand 0 as earlyclobber in 2nd alternative.
28538         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28539         Write negated shift amount into QI lowpart operand 0 and use it
28540         in the shift step.
28541         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28542
28543 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28544
28545         * cgraph.h (clone_function_name_1): Declare.
28546         * cgraphclones.c (clone_function_name_1): New function.
28547         (clone_function_name): Use it.
28548         * lto-partition.c: Include "stringpool.h".
28549         (must_not_rename, maybe_rewrite_identifier)
28550         (validize_symbol_for_target): New static functions.
28551         (privatize_symbol_name): Use must_not_rename.
28552         (promote_symbol): Call validize_symbol_for_target.
28553         (lto_promote_cross_file_statics): Likewise.
28554         (lto_promote_statics_nonwpa): Likewise.
28555
28556 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28557
28558         PR target/64452
28559         * config/avr/avr.md (pushhi_insn): New insn.
28560         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28561
28562 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28563             Jakub Jelinek  <jakub@redhat.com>
28564
28565         * tree-streamer.c (preload_common_nodes): Don't preload
28566         TI_VA_LIST* for offloading.
28567         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28568         in_lto_p.
28569
28570 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28571
28572         * config/pa/pa.c (pa_emit_move_sequence): Always force
28573         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28574         note on insn.
28575
28576         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28577         (TARGET_ASM_RELOC_RW_MASK): Define.
28578         (pa_cannot_force_const_mem): Revert previous change.
28579
28580 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28581             Jan Hubicka  <hubicka@ucw.cz>
28582
28583         PR ipa/65028
28584         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28585         across jump functions.
28586
28587 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28588
28589         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28590
28591 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28592
28593         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28594
28595 2015-02-19  Richard Henderson  <rth@redhat.com>
28596
28597         PR middle-end/65074
28598         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28599         test DECL_EXTERNAL independent of symtab_node.
28600
28601 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28602
28603         PR lto/65012
28604         * varpool.c (varpool_node::get_constructor): Return early
28605         if this->lto_file_data is NULL.
28606
28607 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28608
28609         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28610         (rank_for_schedule_debug): Update.
28611         (ready_sort): Make static.  Move sorting logic to ...
28612         (ready_sort_debug, ready_sort_real): New static functions.
28613         (schedule_block): Sort both debug insns and real insns in preparation
28614         for ready list trimming.  Improve debug output.
28615         * sched-int.h (ready_sort): Remove global declaration.
28616
28617 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28618
28619         * ipa-icf.c (sem_function::equals_private): Adjust.
28620         (sem_function::bb_dict_test): Take a vec<int> * instead of
28621         auto_vec<int>.
28622         * ipa-icf.h (bb_dict_test): Likewise.
28623
28624 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28625
28626         PR gcov-profile/64634
28627         * tree-eh.c (frob_into_branch_around): Fix up typos
28628         in function comment.
28629         (lower_catch): Put eh_seq resulting from EH lowering of
28630         the cleanup sequence after the cleanup rather than before it.
28631
28632 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28633
28634         * common.opt (fstdarg-opt): New option.
28635         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28636         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28637         (@item -fstdarg-opt): New item.
28638
28639 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28640
28641         PR target/65064
28642         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28643         for common symbols.
28644
28645 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28646
28647         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28648         insn-modes.h.
28649         (ALL_HOST_OBJS): Add mkoffload.o.
28650         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28651
28652 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28653
28654         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28655         (compare_virtual_tables): Be smarter about skipping typeinfos;
28656         do sane output on virtual table table mismatch.
28657         (warn_odr): Be ready for forward declarations of enums;
28658         output sane info on base mismatch and virtual table mismatch.
28659         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28660         when only one type is polymorphic.
28661         (get_odr_type): Fix hashtable corruption.
28662         (dump_odr_type): Dump mangled names.
28663
28664 2015-02-18  Richard Biener  <rguenther@suse.de>
28665
28666         PR tree-optimization/65063
28667         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28668         have replaced looparound PHIs.
28669
28670 2015-02-18  Martin Liska  <mliska@suse.cz>
28671
28672         * lto-streamer.c (lto_streamer_init): Encapsulate
28673         streamer_check_handled_ts_structures with checking macro.
28674
28675 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28676
28677         PR ipa/65087
28678         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28679         section if !implicit_section.
28680         (cgraph_node::create_version_clone_with_body): Likewise.
28681         * trans-mem.c (ipa_tm_create_version): Likewise.
28682
28683 2015-02-18  Richard Biener  <rguenther@suse.de>
28684
28685         PR tree-optimization/62217
28686         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28687         into BIVs.
28688
28689 2015-02-18  Marek Polacek  <polacek@redhat.com>
28690
28691         PR sanitizer/65081
28692         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28693         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28694         is in range [-16K, -1].  Don't issue run-time error if
28695         (ptr > ptr + offset).
28696
28697 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28698
28699         * doc/install.texi (nvptx-*-none): New section.
28700         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28701         * config/nvptx/nvptx.opt: Update.
28702
28703         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28704         (access_check): New functions, copied from
28705         config/i386/intelmic-mkoffload.c.
28706         (main): For non-installed testing, look in all COMPILER_PATHs for
28707         GCC_INSTALL_NAME.
28708
28709         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28710
28711 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28712             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28713
28714         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28715         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28716
28717 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28718
28719         * ipa-visibility.c (function_and_variable_visibility): Only
28720         check locality if node is not already local.
28721         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28722         call_for_symbol_and_aliases instead of
28723         call_for_symbol_thunks_and_aliases.
28724         (ipa_inline): Likewise.
28725         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28726         first walk aliases.
28727         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28728         call_for_symbol_and_aliases.
28729         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28730         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28731         (ipa_propagate_frequency): Update.
28732         (ipa_profile): Add opt_for_fn gueards.
28733
28734 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28735
28736         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28737         * doc/invoke.texi (SH options): Document it.
28738         * config/sh/sh.c (sh_insn_length_adjustment): Check
28739         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28740
28741 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28742
28743         * common.opt (fipa-cp-alignment): New.
28744         * ipa-cp.c (ipcp_store_alignment_results): Check
28745         flag_ipa_cp_alignment.
28746         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28747         -O2.
28748         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28749         * doc/invoke.texi: Document -fipa-cp-alignment.
28750
28751 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28752
28753         PR target/64793
28754         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28755         to nil.  Adjust comments.
28756
28757 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28758
28759         * ipa-visibility.c (function_and_variable_visibility): Only
28760         check locality if node is not already local.
28761         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28762         call_for_symbol_and_aliases instead of
28763         call_for_symbol_thunks_and_aliases.
28764         (ipa_inline): Likewise.
28765         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28766         first walk aliases.
28767         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28768         call_for_symbol_and_aliases.
28769         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28770         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28771         (ipa_propagate_frequency): Update.
28772         (ipa_profile): Add opt_for_fn guards.
28773
28774 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
28775
28776         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28777         skipping of "strange" tokens.
28778
28779 2015-02-17  Jeff Law  <law@redhat.com>
28780
28781         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
28782         obsolete comment.
28783
28784 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
28785
28786         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28787         as forcing a HARD_DEP between instructions, thereby
28788         disallowing rewriting to break dependencies.
28789
28790 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28791
28792         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28793         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28794         variables in boundary that have no inlitalizer encoded and are
28795         not aliases.
28796         * varasm.c (default_binds_local_p_2): External definitions do not
28797         count as definitions here.
28798
28799 2015-02-16  Jeff Law  <law@redhat.com>
28800
28801         PR tree-optimization/64823
28802         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28803         statements.
28804         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28805         threading through blocks with PHIs, but no statements.
28806         (thread_through_normal_block): Distinguish between blocks where
28807         we did not process all the statements and blocks with no statements.
28808
28809 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
28810             James Greenhalgh  <james.greenhalgh@arm.com>
28811
28812         PR ipa/64963
28813         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28814         section if not linkonce.  Fix up formatting.
28815         (cgraph_node::create_version_clone_with_body): Copy section.
28816         * trans-mem.c (ipa_tm_create_version): Likewise.
28817
28818 2015-02-16  Richard Biener  <rguenther@suse.de>
28819
28820         PR tree-optimization/65077
28821         * tree-ssa-structalias.c (get_constraint_for_1): Handle
28822         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28823         (find_func_aliases): Allow float values to carry pointers again.
28824
28825 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28826
28827         * doc/install.texi (Specific): Reorder targets list to put
28828         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
28829         from the top menu.
28830
28831 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28832             David Edelsohn  <dje.gcc@gmail.com>
28833
28834         PR target/65058
28835         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28836         mapping class to external variable or function reference.
28837         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28838         mapping class.
28839
28840 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
28841
28842         PR target/53348
28843         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28844         ASM_WEAKEN_DECL if defined.
28845
28846 2015-02-16  Richard Biener  <rguenther@suse.de>
28847
28848         PR lto/65015
28849         * varasm.c (default_file_start): For LTO produced units
28850         emit <artificial> as file directive.
28851
28852 2015-02-16  Richard Biener  <rguenther@suse.de>
28853
28854         PR tree-optimization/63593
28855         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28856         stmts and releasing SSA names until...
28857         (execute_pred_commoning): ... after processing all chains.
28858
28859 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28860
28861         PR ipa/65059
28862         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28863         external functions.
28864
28865 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
28866
28867         * doc/bugreport.texi: Adjust section titles throughout the file
28868         to use "Title Case".
28869         * doc/extend.texi: Likewise.
28870         * doc/gcov.texi: Likewise.
28871         * doc/implement-c.texi: Likewise.
28872         * doc/implement-cxx.texi: Likewise.
28873         * doc/invoke.texi: Likewise.
28874         * doc/objc.texi: Likewise.
28875         * doc/standards.texi: Likewise.
28876         * doc/trouble.texi: Likewise.
28877
28878 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
28879
28880         * cgraph.h (symtab_node::has_aliases_p): Simplify.
28881         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28882         * tree.c (lookup_binfo_at_offset): Make static.
28883         (get_binfo_at_offset): Do not shadow offset; add explanatory
28884         comment.
28885
28886 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
28887
28888         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28889         for all floading point loads and stores except those using a register
28890         index address.
28891         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28892         to a register.
28893
28894 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28895
28896         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28897         (do_estimate_growth_1): Record if any uninlinable edge was seen.
28898         (estimate_growth): Handle uninlinable edges correctly.
28899         (check_callers): New.
28900         (growth_likely_positive): Handle aliases correctly.
28901
28902 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28903
28904         * ipa-chkp.c: Use iterate_direct_aliases.
28905         * symtab.c (resolution_used_from_other_file_p): Move inline.
28906         (symtab_node::create_reference): Fix formating.
28907         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28908         (symtab_node::iterate_reference): Move inline.
28909         (symtab_node::iterate_referring): Move inline.
28910         (symtab_node::iterate_direct_aliases): Move inline.
28911         (symtab_node::used_from_object_file_p_worker): Inline into ...
28912         (symtab_node::used_from_object_file_p): ... this one; move inline.
28913         (symtab_node::call_for_symbol_and_aliases): Move inline;
28914         use iterate_direct_aliases.
28915         (symtab_node::call_for_symbol_and_aliases_1): New method.
28916         (cgraph_node::call_for_symbol_and_aliases): Move inline;
28917         use iterate_direct_aliases.
28918         (cgraph_node::call_for_symbol_and_aliases_1): New method.
28919         (varpool_node::call_for_node_and_aliases): Rename to ...
28920         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28921         use iterate_direct_aliases.
28922         (varpool_node::call_for_symbol_and_aliases_1): New method.
28923         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28924         (ipa_discover_readonly_nonaddressable_var): Update.
28925         * ipa-devirt.c: Fix formating.
28926         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28927         Move inline.
28928         (cgraph_node::call_for_symbol_and_aliases): Move inline.
28929         (cgraph_node::call_for_symbol_and_aliases_1): New function..
28930         * cgraph.h (used_from_object_file_p_worker): Remove.
28931         (resolution_used_from_other_file_p): Move inline.
28932         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28933         (symtab_node::iterate_reference): Move inline.
28934         (symtab_node::iterate_referring): Move inline.
28935         (symtab_node::iterate_direct_aliases): Move inline.
28936         (symtab_node::used_from_object_file_p_worker): Inline into ...
28937         (symtab_node::used_from_object_file_p): Move inline.
28938         * tree-emutls.c (ipa_lower_emutls): Update.
28939         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28940         (varpool_node::call_for_node_and_aliases): Remove.
28941
28942 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
28943
28944         PR tree-optimization/62209
28945         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28946         op == range->exp, insert seq and gimplified code after labels
28947         instead of after the phi.
28948
28949 2015-02-13  Jeff Law  <law@redhat.com>
28950
28951         PR bootstrap/65060
28952         Revert my change for tree-optimization/64823.
28953
28954 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28955
28956         PR tree-optimization/65053
28957         * tree-ssa-phiopt.c (value_replacement): When moving assign before
28958         cond, either reset VR on lhs or set it to phi result VR.
28959
28960 2015-02-13  Jeff Law  <law@redhat.com>
28961
28962         PR tree-optimization/64823
28963         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28964         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28965         threading through blocks with PHIs, but no statements.
28966         (thread_through_normal_block): Distinguish between blocks where
28967         we did not process all the statements and blocks with no statements.
28968
28969         PR rtl-optimization/47477
28970         * match.pd (convert (plus/minus (convert @0) (convert @1): New
28971         simplifier to narrow arithmetic.
28972
28973 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
28974
28975         PR ipa/65028
28976         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28977         polymorphic call info when type is not known to be preserved.
28978
28979 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
28980
28981         PR ipa/65028
28982         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28983         (inline_call): Use it.
28984
28985 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
28986
28987         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28988         GOMP_DEVICE_NVIDIA_PTX.
28989
28990 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28991
28992         PR ipa/65034
28993         * stmt.c (emit_case_nodes): Use void_type_node instead of
28994         NULL_TREE as LABEL_DECL type.
28995
28996 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
28997
28998         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28999         constraints.
29000         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29001         symbolic references to data to be forced to constant memory on the
29002         SOM target.
29003
29004 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
29005
29006         PR tree-optimization/65002
29007         * tree-cfg.c (pass_data_fixup_cfg): Don't update
29008         SSA on start.
29009         * tree-sra.c (some_callers_have_no_vuse_p): New.
29010         (ipa_early_sra): Reject functions whose callers
29011         assume function is read only.
29012
29013 2015-02-13  Richard Biener  <rguenther@suse.de>
29014
29015         PR lto/65015
29016         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29017         for LTO produced CUs.
29018
29019 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
29020
29021         PR tree-optimization/64705
29022         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29023         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29024         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29025         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29026         expand_simple_operations.
29027
29028 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29029             Richard Henderson  <rth@redhat.com>
29030
29031         PR rtl/32219
29032         * cgraphunit.c (cgraph_node::finalize_function): Set definition
29033         before notice_global_symbol.
29034         (varpool_node::finalize_decl): Likewise.
29035         * varasm.c (default_binds_local_p_2): Rename from
29036         default_binds_local_p_1, add weak_dominate argument.  Use direct
29037         returns instead of assigning to local variable.  Unify varpool and
29038         cgraph paths via symtab_node.  Reject undef weak variables before
29039         testing visibility.  Reorder tests for simplicity.
29040         (default_binds_local_p): Use default_binds_local_p_2.
29041         (default_binds_local_p_1): Likewise.
29042         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29043         via symtab_node.
29044         (default_elf_asm_output_external): Emit visibility when specified.
29045
29046 2015-02-13  Alan Modra  <amodra@gmail.com>
29047
29048         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29049         code setting up r11 for out-of-line fp restore.
29050
29051 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
29052
29053         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29054         (muser-mode): Likewise.
29055
29056 2015-02-13  Alan Modra  <amodra@gmail.com>
29057
29058         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29059         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29060
29061 2015-02-12  David Howells  <dhowells@redhat.com>
29062
29063         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29064         warning.
29065         * tree-ssa-uninit.c (dump_predicates): Likewise.
29066         * opts.c (print_filtered_help): Likewise.
29067
29068 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29069
29070         * dwarf2out.c (output_die): Use "%s", name instead of name to
29071         avoid -Wformat-security warning.
29072
29073         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29074         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29075         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29076         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29077
29078 2015-02-12  Jason Merrill  <jason@redhat.com>
29079
29080         * common.opt (-flifetime-dse): New.
29081
29082 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
29083
29084         PR sanitizer/65019
29085         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29086
29087         PR tree-optimization/65014
29088         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29089         use original second operand of arg0 or arg1 instead of
29090         that adjusted by STRIP_NOPS.
29091
29092 2015-02-11  Jeff Law  <law@redhat.com>
29093
29094         PR target/63347
29095         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29096         that needs to be queued, just queue it for a single cycle.
29097
29098 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
29099
29100         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29101         bodies of thunks; comment on why.
29102         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29103         symbols are extern.
29104
29105 2015-02-11  Richard Henderson  <rth@redhat.com>
29106
29107         PR sanitize/65000
29108         * tree-eh.c (mark_reachable_handlers): Mark source and destination
29109         regions of __builtin_eh_copy_values.
29110
29111 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29112
29113         PR middle-end/65003
29114         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29115         ultimate alias is MEM with SYMBOL_REF satisfying
29116         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
29117         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29118
29119 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29120
29121         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29122         "diagnostic-core.h".
29123         (main): Initialize progname, and call diagnostic_initialize.
29124
29125         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29126         instead of __OPENMP_TARGET__.
29127
29128         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29129         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29130         hard-coding PTX_ID.
29131
29132 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29133
29134         * doc/sourcebuild.texi (pie_enabled): Document.
29135
29136 2015-02-11  Martin Liska  <mliska@suse.cz>
29137
29138         PR ipa/64813
29139         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29140         a return value for call to a function that is noreturn.
29141
29142 2015-02-11  Richard Biener  <rguenther@suse.de>
29143
29144         PR lto/65015
29145         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29146         and -fresolution.
29147
29148 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29149
29150         PR target/64893
29151         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29152         Change the first argument type to size_type_node and add another
29153         size_type_node.
29154         (aarch64_simd_expand_builtin): Handle the new argument to
29155         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29156         print an out when the first two arguments are not
29157         nonzero integer constants.
29158         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29159         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29160
29161 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29162
29163         PR target/61925
29164         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29165         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29166         (ix86_set_current_function): Rewritten.
29167         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29168         when creating builtin fndecls.
29169
29170 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29171
29172         PR ipa/65005
29173         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29174         function.
29175         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29176         have no comdat group.
29177         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29178         (lto_output_varpool_node): Always output alias info.
29179         (output_refs): Output refs of boundary aliases, too.
29180         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29181         (output_symtab): Output call eges in thunks in boundary.
29182         (get_alias_symbol): Remove.
29183         (input_node, input_varpool_node): Do not special case weakrefs.
29184         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29185         alias and thunks targets in the boundary; do not take removed symbols
29186         from their comdat groups.
29187         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29188         (cgraph_node::global_info): Remove.
29189         (cgraph_node::rtl_info): Look through aliases and thunks.
29190         * cgrpah.h (global_info): Remove.
29191         (non_local_p): Remove.
29192
29193 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29194             Sandra Loosemore  <sandra@codesourcery.com>
29195
29196         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29197         to inline asm.  List dialects in proper order.
29198
29199 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29200             Sandra Loosemore  <sandra@codesourcery.com>
29201
29202         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29203
29204 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29205
29206         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29207         modified) reference to Solaris.
29208
29209 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29210
29211         * doc/extend.texi (Extended Asm): Fix typos.
29212
29213 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29214
29215         PR sanitizer/65004
29216         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29217
29218 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29219
29220         PR target/64661
29221         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29222         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29223         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29224         * config/sh/constraints.md (Ara, Add): New constraints.
29225         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29226         predicates.
29227         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29228         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29229         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29230         Sra constraint.  Convert to insn_and_split.  Add workaround for
29231         PR 64974.
29232         (atomic_compare_and_swap<mode>_hard): Copy to
29233         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29234         Use atomic_mem_operand_0 predicate.
29235         (atomic_compare_and_swap<mode>_soft_gusa,
29236         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29237         AraAdd constraints.
29238         (atomic_compare_and_swap<mode>_soft_tcb,
29239         atomic_compare_and_swap<mode>_soft_imask,
29240         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29241         atomic_mem_operand_0 predicate and SraSdd constraints.
29242         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29243         constraint.
29244         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29245         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29246         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29247         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29248         force_reg on the memory address.
29249         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29250         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29251         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29252         atomic_mem_operand_1 predicate and Sra constraint.
29253         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29254         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29255         Use atomic_mem_operand_1 predicate.
29256         (atomic_<fetchop_name><mode>_hard): Copy to
29257         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29258         Use atomic_mem_operand_1 predicate.
29259         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29260         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29261         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29262         insn_and_split.  Use atomic_mem_operand_1 predicate.
29263         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29264         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29265         Use atomic_mem_operand_1 predicate.
29266         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29267         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29268         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29269         in generated insn with original mem operand before emitting the insn.
29270         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29271         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29272         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29273         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29274         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29275         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29276         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29277         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29278         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29279         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29280         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29281         atomic_not_fetch<mode>_soft_tcb,
29282         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29283         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29284         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29285         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29286
29287 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29288
29289         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29290         and 3 earlyclobber operands.
29291
29292 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29293
29294         * common.opt (fstack-reuse): Mark as optimization.
29295
29296 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29297
29298         PR ipa/64982
29299         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29300
29301 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29302
29303         PR tree-optimization/64326
29304         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29305
29306 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29307
29308         PR gcov-profile/61889
29309         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29310
29311 2015-02-10  Richard Biener  <rguenther@suse.de>
29312
29313         PR tree-optimization/64995
29314         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29315         value we use is final.
29316         (visit_reference_op_store): Always valueize op.
29317         (visit_use): Properly valueize vuses.
29318
29319 2015-02-10  Richard Biener  <rguenther@suse.de>
29320
29321         PR tree-optimization/64909
29322         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29323         pass a scalar-stmt count estimate to the cost model.
29324         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29325
29326 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29327
29328         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29329         enabled by default together with var-tracking.
29330
29331 2015-02-10  Nick Clifton  <nickc@redhat.com>
29332
29333         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29334         included in previous rl78 commit.
29335
29336 2015-02-10  Richard Biener  <rguenther@suse.de>
29337
29338         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29339         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29340         return the bitpack.
29341
29342 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29343
29344         PR gcov-profile/61889
29345         * config.in: regenerate.
29346         * configure.in: Likewise.
29347         * configure.ac: Check for ftw.h.
29348         * gcov-tool.c: Check for ftw.h before using nftw.
29349
29350 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29351
29352         PR lto/64076
29353         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29354         assert when not in lto mode.
29355
29356 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29357
29358         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29359         initialization/assignment of conflict_size.
29360
29361 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29362
29363         PR ipa/64978
29364         * ipa-cp.c (gather_caller_stats): Skip thunks.
29365         (propagate_constants_topo): Skip aliases.
29366
29367 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29368
29369         PR target/64761
29370         * config/sh/sh.c (sh_option_override): Don't change
29371         -freorder-blocks-and-partition to -freorder-blocks even when
29372         unwinding is enabled.
29373         (sh_can_follow_jump): Return false if the followee jump is
29374         a crossing jump when -freorder-blocks-and-partition is specified.
29375         * config/sh/sh.md (*jump_compact_crossing): New insn.
29376
29377 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29378             Kaz Kojima  <kkojima@gcc.gnu.org>
29379
29380         PR target/64761
29381         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29382         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29383         (sh_can_redirect_branch): Rename to ...
29384         (sh_can_follow_jump): ... this.  Constify argument types.
29385         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29386         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29387         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29388         * doc/tm.texi: Regenerate.
29389
29390 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29391
29392         PR sanitizer/64981
29393         * builtins.c (expand_builtin): Call targetm.expand_builtin
29394         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29395
29396 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29397
29398         PR ipa/61548
29399         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29400
29401 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29402
29403         PR ipa/63566
29404         * ipa-icf.c (set_local): New function.
29405         (sem_function::merge): Use it.
29406
29407 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29408
29409         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29410         (add_type_duplicate): Fix comparison of BINFOs.
29411
29412 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29413
29414         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29415         on getting VOID pointer.
29416
29417 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29418
29419         PR target/64979
29420         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29421         va_list escapes.
29422
29423 2015-02-09  Richard Biener  <rguenther@suse.de>
29424
29425         * genmatch.c (replace_id): Copy expr_type.
29426
29427 2015-02-09  Richard Biener  <rguenther@suse.de>
29428
29429         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29430         (streamer_write_tree_bitfields): Declare.
29431         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29432         properly unpack padding.
29433         (unpack_value_fields): Inline ...
29434         (streamer_read_tree_bitfields): ... here.
29435         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29436         and properly add padding bits.
29437         (streamer_pack_tree_bitfields): Fold into ...
29438         (streamer_write_tree_bitfields): ... this new function,
29439         exposing the bitpack object.
29440         * lto-streamer-out.c (lto_write_tree_1): Call
29441         streamer_write_tree_bitfields.
29442
29443 2015-02-09  Richard Biener  <rguenther@suse.de>
29444
29445         PR tree-optimization/54000
29446         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29447         (struct ivopts_data): Add loop_loc member.
29448         (tree_ssa_iv_optimize_loop): Dump loop location.
29449         (create_new_ivs): Likewise, also dump number of IVs generated.
29450
29451 2015-02-09  Martin Liska  <mliska@suse.cz>
29452
29453         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29454         just if not yet registered.
29455         (ipa_icf_generate_summary): Register callgraph hooks.
29456
29457 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29458
29459         * config/aarch64/aarch64.c (gty_dummy): Delete.
29460
29461 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29462
29463         PR ipa/63566
29464         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29465         (cgraph_node::local_p): Remove thunk related FIXME.
29466
29467 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29468
29469         PR ipa/63566
29470         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29471         is local and optimized.
29472         (ix86_function_sseregparm): Likewise; also use target's SSE math
29473         settings; error out instead of silently generating wrong code
29474         on mismatches.
29475         (init_cumulative_args): Look through aliases.
29476
29477 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29478
29479         PR ipa/63566
29480         * ipa-split.c (execute_split_functions): Split if function has aliases.
29481
29482 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29483
29484         PR ipa/63566
29485         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29486         aliases before trying to expand it.
29487         (cgraph_node::expand_thunk): Fix formating.
29488
29489 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29490
29491         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29492         (Using Assembly Language with C): Expand introduction.
29493         (Basic Asm): Copy-edit.  Add more information about uses of
29494         basic asm.
29495         (Extended Asm): Copy-edit.  Document new escape syntax and
29496         %l[label] syntax.
29497         (Global Reg Vars): Copy-edit.
29498         (Local Reg Vars): Likewise.
29499
29500 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29501
29502         PR debug/2714
29503         PR bootstrap/64256
29504         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29505         (DBX_CONTIN_CHAR): Define.
29506
29507 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29508             Brian Rzycki  <b.rzycki@samsung.com>
29509
29510         PR tree-optimization/64878
29511         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29512         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29513         Stop recursion at loop phi nodes after having visited a loop phi node.
29514
29515 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29516
29517         * toplev.c (process_options): Change flag_ipa_ra before creating
29518         optimization_{default,current}_node.
29519
29520         PR ipa/64896
29521         * cgraphunit.c (cgraph_node::expand_thunk): If
29522         restype is not is_gimple_reg_type nor the thunk_fndecl
29523         returns aggregate_value_p, set restmp to a temporary variable
29524         instead of resdecl.
29525
29526 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29527
29528         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29529
29530 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29531
29532         PR target/64205
29533         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29534         add a general secondary reload handler for SDmode, unless we have
29535         both read/write support for SDmode.
29536
29537 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29538
29539         PR middle-end/64937
29540         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29541         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29542         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29543         1 before, push it to abstract_vec.
29544         (dwarf2out_abstract_function): Adjust caller.  Don't call
29545         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29546         DECL_ABSTRACT_P flags for all abstract_vec elts.
29547
29548 2015-02-06  Renlin Li  <renlin.li@arm.com>
29549
29550         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29551         complex gimple.
29552         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29553
29554 2015-02-06  Jeff Law  <law@redhat.com>
29555
29556         PR target/64889
29557         * config/h8300/h8300.c (push): New argument "in_prologue".
29558         Pass "in_prologue" along to "F".
29559         (h8300_push_pop): Corresponding changes.
29560         (h8300_expand_prologue): Likewise.
29561         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29562
29563 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29564
29565         PR rtl-optimization/64957
29566         PR debug/64817
29567         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29568         IOR rather than for AND.
29569
29570 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29571
29572         PR target/62631
29573         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29574         of shift-add and (add + shift) operations.  Rename local variable.
29575
29576 2015-02-05  Jeff Law  <law@redhat.com>
29577
29578         PR target/17306
29579         * config/h8300/constraints.md (U): Correctly dectect
29580         "eightbit_data" memory addresses.
29581         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29582         handle (const (plus (symbol_ref (x)))) where x is declared
29583         as an 8-bit data memory address.
29584         * config/h8300/h8300.md (call, call_value): Correctly detect
29585         "funcvec" functions.
29586
29587         PR target/43264
29588         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29589         24 to 28 bits for the H8/300.
29590
29591 2015-02-06  Alan Modra  <amodra@gmail.com>
29592
29593         PR target/64876
29594         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29595         (rs6000_call_aix): Use it.
29596
29597 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29598
29599         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29600         check.
29601
29602 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29603
29604         * config/h8300/constraints.md ("U" constraint): Use strict
29605         variant of REG_OK_FOR_BASE_P after reload has started.
29606
29607 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29608
29609         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29610         define to zero if !TARGET_NEON.
29611         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29612
29613 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29614             Trevor Saunders  <tsaunders@mozilla.com>
29615
29616         PR ipa/61548
29617         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29618
29619 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29620
29621         PR ipa/61548
29622         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29623         when removing varpool nodes.
29624
29625 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29626
29627         PR ipa/61548
29628         * varpool.c (varpool_node::remove): Fix order of variables.
29629
29630 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29631
29632         PR ipa/64686
29633         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29634         speculation resolution and key updates.
29635
29636 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29637
29638         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29639         about not letting any speculative edges unupdated.
29640
29641 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29642
29643         PR gcov/64123
29644         * gcov-io.c (gcov_var): Export.
29645
29646 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29647
29648         PR middle-end/64922
29649         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29650         edges that become speculative.
29651
29652 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29653
29654         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29655         or DW_LANG_Fortran08.
29656         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29657         DW_LANG_Fortran08.
29658         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29659         "GNU Fortran2008" language strings.
29660         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29661         * langhooks.h (lang_GNU_Fortran): New prototype.
29662         * langhooks.c (lang_GNU_Fortran): New function.
29663         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29664         lang_GNU_Fortran.
29665
29666 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29667
29668         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29669         (RTX_OK_FOR_OLO10_P): Likewise.
29670
29671 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29672
29673         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29674
29675 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29676
29677         PR middle-end/64922
29678         * gimple.c: Include gimple-ssa.h.
29679         (maybe_remove_unused_call_args): New function.
29680         * gimple.h (maybe_remove_unused_call_args): Declare.
29681         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29682         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29683         * gimple-fold.c (gimple_fold_call): Likewise.
29684
29685 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29686
29687         PR rtl-optimization/64905
29688         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29689         pointer alignment if it isn't needed.
29690
29691 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29692
29693         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29694         cortex-a72.cortex-a53.
29695         * config/aarch64/aarch64-tune.md: Regenerate.
29696         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29697
29698 2015-02-04  Nick Clifton  <nickc@redhat.com>
29699
29700         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29701         inside a MEM.
29702
29703 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29704
29705         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29706         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29707         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29708         of DEF_BUILTIN.
29709         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29710         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29711         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29712         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29713         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29714         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29715         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29716         * tree-core.h (enum built_in_function): In between
29717         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29718         for builtins that use DEF_BUILTIN_CHKP macro.
29719
29720 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29721
29722         PR debug/64817
29723         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29724         operands for tcc_comparison exprs.  Fix typos.
29725
29726         PR debug/64817
29727         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29728         of two XORs that have an intervening AND or IOR.
29729
29730         PR debug/64817
29731         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29732         simplification of XOR of AND to not allocate new rtx before
29733         committing to a simplification.
29734
29735 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29736
29737         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29738         manual swaps in all peepholes.
29739
29740 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29741
29742         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29743         of manual swapping implementation.
29744         (aarch64_expand_vec_perm_const_1): Likewise.
29745
29746 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29747
29748         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29749         (generic_addrcost_table): Remove NAMED_PARAM.
29750         (cortexa57_addrcost_table): Likewise.
29751         (xgene1_addrcost_table): Likewise.
29752         (generic_regmove_table): Likewise.
29753         (cortexa53_regmove_table): Likewise.
29754         (xgene1_regmove_table): Likewise.
29755         (generic_vector_table): Likewise.
29756         (cortexa57_vector_table): Likewise.
29757         (xgene1_vector_table): Likewise.
29758         (generic_tunings): Likewise.
29759         (cortexa53_tunings): Likewise.
29760         (cortexa57_tunings): Likewise.
29761         (xgene1_tunings): Likewise.
29762
29763 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29764
29765         * config/arm/arm-cores.def: Add cortex-a72 and
29766         cortex-a72.cortex-a53.
29767         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29768         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29769         * config/arm/arm-tune.md: Regenerate.
29770         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29771         "cortex-a72.cortex-a53".
29772         * doc/invoke.texi (ARM Options/-mtune): Likewise.
29773
29774 2015-02-04  Nick Clifton  <nickc@redhat.com>
29775
29776         PR target/64408
29777         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29778         of accepted codes.
29779         (nonimmediate_di_operand): Likewise.
29780
29781         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29782         prefixes of known F5 using MSP430 MCUs.
29783
29784 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29785
29786         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29787         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29788         instead of __builtin_sqrt.
29789
29790 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
29791
29792         * varasm.c (do_assemble_alias): Follow transparent alias
29793         chain for target.
29794         (default_assemble_visibility): Follow transparent alias
29795         chain for decl name.
29796
29797 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29798
29799         PR middle-end/62103
29800         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29801         to compute size of referenced value in the constant case.
29802
29803 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29804
29805         PR rtl-optimization/64756
29806         * cse.c (invalidate_dest): New function.
29807         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
29808         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29809         invalidate and do not record it.
29810
29811 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
29812
29813         PR target/64660
29814         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29815         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29816         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29817         atomic_nand<mode>_soft_tcb): New insns.
29818         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29819         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29820         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29821         Split into atomic_not_fetchsi_hard if operands[0] is unused.
29822         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29823         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29824         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
29825         atomic_not<mode>_hard if operands[0] is unused.
29826         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29827         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29828         if operands[0] is unused.
29829         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
29830         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29831         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29832         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29833         unused.
29834         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
29835         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29836         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29837         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29838         if operands[0] is unused.
29839         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
29840         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29841         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
29842         atomic_nand_fetchsi_hard if operands[0] is unused.
29843         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
29844         atomic_nand<mode>_hard if operands[0] is unused.
29845         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
29846         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29847         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
29848         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29849         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
29850         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29851         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29852         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29853         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
29854         atomic_not<mode>_hard if operands[0] is unused.
29855         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29856         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29857         unused.
29858         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29859         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29860         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
29861         atomic_nand<mode>_hard if operands[0] is unused.
29862         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29863         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29864
29865 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
29866
29867         PR jit/64810
29868         * Makefile.in (GCC_OBJS): Add gcc-main.o.
29869         * gcc-main.c: New file, containing "main" taken from gcc.c.
29870         * gcc.c (do_self_spec): Free decoded_options.
29871         (class driver): Move declaration to gcc.h.
29872         (main): Move declaration and implementation to new file
29873         gcc-main.c.
29874         (driver_get_configure_time_options): New function.
29875         * gcc.h (class driver): Move this declaration here, from
29876         gcc.c.
29877         (driver_get_configure_time_options): New declaration.
29878
29879 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
29880
29881         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29882         cross-module inlining.
29883         * cgraph.h (cgraph_node): Add flag merged.
29884         * ipa-icf.c (sem_function::merge): Maintain it.
29885
29886 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
29887
29888         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29889         instead of OBJECT_P.
29890
29891 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
29892
29893         PR target/62631
29894         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29895         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29896         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29897         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29898
29899 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29900
29901         PR other/63504
29902         * combine.c (reg_n_sets_max): New variable.
29903         (can_change_dest_mode, reg_nonzero_bits_for_combine,
29904         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29905         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29906         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29907         (rest_of_handle_combine): Initialize reg_n_sets_max.
29908
29909 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
29910
29911         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29912         if some always_inline was inlined, apply changes before inlining
29913         heuristically.
29914
29915 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
29916
29917         PR jit/64810
29918         * config/arm/arm.c (arm_option_override): Set
29919         arm_selected_arch/cpu/tune to NULL on entry.
29920
29921 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
29922             Andrew Pinski  <pinskia@gcc.gnu.org>
29923             Jakub Jelinek  <jakub@gcc.gnu.org>
29924
29925         PR target/64231
29926         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29927         integer typing for small model. Use IN_RANGE.
29928
29929 2015-02-02  Richard Biener  <rguenther@suse.de>
29930
29931         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29932         * tree-vrp.c (vrp_valueize_1): Likewise.
29933
29934 2015-02-02  Alan Modra  <amodra@gmail.com>
29935
29936         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29937         than mem for toc_restore.
29938         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29939         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29940         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29941
29942 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
29943
29944         PR target/64047
29945         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29946         explicit default options.
29947
29948 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
29949
29950         PR ipa/64872
29951         * ipa-utils.c (ipa_merge_profiles): Add release argument.
29952         * ipa-icf.c (sem_function::merge): Do not release body when merging.
29953         * ipa-utils.h (ipa_merge_profiles): Update prototype.
29954
29955 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
29956
29957         PR debug/64817
29958         * cfgexpand.c (deep_ter_debug_map): New variable.
29959         (avoid_deep_ter_for_debug): New function.
29960         (expand_debug_expr): If TERed SSA_NAME is in
29961         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29962         instead of trying to expand SSA_NAME's def stmt.
29963         (expand_debug_locations): When expanding debug bind
29964         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29965         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29966         value.
29967         (pass_expand::execute): Call avoid_deep_ter_for_debug on
29968         all debug bind stmts.  Delete deep_ter_debug_map after
29969         expand_debug_location if non-NULL and clear it.
29970
29971 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
29972
29973         PR target/64851
29974         * config/sh/sync.md (atomic_fetch_notsi_hard,
29975         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29976         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29977         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29978         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29979         atomic_not_fetch<mode>_soft_imask): New insns.
29980
29981 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29982
29983         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29984         (rank_for_schedule_debug): Split from ...
29985         (rank_for_schedule): ... this.
29986         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29987         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29988
29989 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29990
29991         * doc/md.texi (Machine Constraints): Alphabetize table by target.
29992         * doc/extend.texi (x86 Variable Attributes): Move section to
29993         correct alphabetization after renaming.
29994         (x86 Type Attributes): Likewise.
29995         (Target Builtins): Re-alphabetize menu.
29996         (x86 Built-in Functions): Move section to correct alphabetization
29997         after renaming.
29998         (x86 transactional memory intrinsics): Likewise.
29999         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30000         and x86 Windows Options in table and menu.
30001         (x86 Options): Move section to correct alphabetization after
30002         renaming.
30003         (x86 Windows Options): Likewise.
30004
30005 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
30006
30007         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30008         preferred names of the architecture and its 32- and 64-bit
30009         variants.
30010         * doc/invoke.texi: Likewise.
30011         * doc/md.texi: Likewise.
30012
30013 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30014
30015         PR target/64882
30016         * config/i386/predicates.md (address_no_seg_operand): Reject
30017         non-CONST_INT_P operands in invalid mode.
30018
30019 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
30020
30021         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30022         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
30023         * config/i386/predicates.md (address_no_seg_operand): Call
30024         address_operand with VOIDmode.
30025         (vsib_address_operand): Ditto.
30026         (address_mpx_no_base_operand): Ditto.
30027         (address_mpx_no_index_operand): Ditto.
30028
30029 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30030
30031         PR target/64688
30032         * lra-constraints.c (original_subreg_reg_mode): New.
30033         (simplify_operand_subreg): Try to simplify subreg of const.  Use
30034         original_subreg_reg_mode for it.
30035         (swap_operands): Update original_subreg_reg_mode.
30036         (curr_insn_transform): Set up original_subreg_reg_mode.
30037
30038 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30039
30040         PR target/64617
30041         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30042         function.
30043         (process_alt_operands): Use it.
30044         (curr_insn_transform): Check the optional reload pseudo class is
30045         ok for the mode.
30046
30047 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
30048
30049         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30050         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30051         prototype.
30052         * toplev.h (init_asm_output): Update comment on use of
30053         UNKNOWN_LOCATION with fatal_error.
30054         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30055         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30056         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30057         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30058         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30059         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30060         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30061         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30062         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30063         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30064         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30065         fatal_error changed to pass input_location as first argument.
30066
30067 2015-01-30  Martin Liska  <mliska@suse.cz>
30068
30069         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30070         in #pragma GCC diagnostic guards.
30071
30072 2015-01-30  Richard Biener  <rguenther@suse.de>
30073
30074         PR tree-optimization/64829
30075         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30076         not add a widening conversion pattern but hand off extra
30077         widenings to callers.
30078         (vect_recog_widen_mult_pattern): Handle extra widening produced
30079         by vect_handle_widen_op_by_const.
30080         (vect_recog_widen_shift_pattern): Likewise.
30081         (vect_pattern_recog_1): Remove excess vertical space in dumping.
30082         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30083         (vect_init_vector_1): Likewise.
30084         (vect_get_vec_def_for_operand): Likewise.
30085         (vect_finish_stmt_generation): Likewise.
30086         (vectorizable_load): Likewise.
30087         (vect_analyze_stmt): Likewise.
30088         (vect_is_simple_use): Likewise.
30089
30090 2015-01-29  Jeff Law  <law@redhat.com>
30091
30092         * combine.c (try_combine): Fix typo in comment.
30093
30094 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
30095
30096         PR target/64580
30097         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30098         (rs6000_stack_info): Add assert.
30099         (rs6000_output_savres_externs): New function, split off from...
30100         (rs6000_output_function_prologue): ... here.  Do not call it for
30101         thunks.
30102
30103 2015-01-29  Jeff Law  <law@redhat.com>
30104
30105         PR target/15184
30106         * combine.c (try_combine): If I0 is a memory load and I3 a store
30107         to a related address, increase the "goodness" of doing a 4-insn
30108         combination with I0-I3.
30109         (make_field_assignment): Handle SUBREGs in the ior+and case.
30110
30111 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
30112
30113         PR tree-optimization/64746
30114         * tree-if-conv.c (mask_exists): New function.
30115         (predicate_mem_writes): Save created mask with given size for further
30116         use.
30117         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30118         (ifcvt_repair_bool_pattern): Collect all statements that are root
30119         of bool pattern and use iterative algorithm to remove multiple uses
30120         of predicates, display number of required iterations.
30121
30122 2015-01-29  Richard Biener  <rguenther@suse.de>
30123
30124         PR tree-optimization/64853
30125         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30126         stmt will get simulated again.
30127         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30128
30129 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30130
30131         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30132         return_in_pc.  Remove redundant assignments.
30133         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30134         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30135
30136 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30137
30138         * config/i386/i386.c (ix86_mode_after): Make static.
30139
30140 2015-01-29  Richard Biener  <rguenther@suse.de>
30141
30142         PR tree-optimization/64844
30143         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30144         dump cost model analysis.
30145         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30146         Do not register adjusted load/store costs here.
30147
30148 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30149             Uros Bizjak  <ubizjak@gmail.com>
30150
30151         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30152         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30153         using x86_use_pseudo_pic_reg.
30154         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30155         support for fixed PIC register.
30156         (ix86_use_pseudo_pic_reg): Not static any more.
30157
30158 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30159
30160         PR middle-end/64805
30161         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30162         to avoid error in cgraph node verification.
30163
30164 2015-01-29  Marek Polacek  <polacek@redhat.com>
30165
30166         * doc/standards.texi: Reflect that the default for C is gnu11.
30167
30168 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30169
30170         PR target/64761
30171         * reorg.c (switch_text_sections_between_p): New function.
30172         (relax_delay_slots): Call it when testing if the jump insn
30173         is removable.  Use targetm.can_follow_jump when testing if
30174         the conditional branch can follow an unconditional jump.
30175
30176 2015-01-27  Caroline Tice  <cmtice@google.com>
30177
30178         Committing VTV Cywin/Ming patch for Patrick Wollgast
30179         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30180         if -fvtable-verify=preinit/std is used.
30181         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30182         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30183         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30184         if -fvtable-verify=preinit/std is used.
30185         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30186         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30187         if -fvtable-verify=preinit/std is used.
30188         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30189         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30190         * varasm.c (assemble_variable): Add code to properly set the comdat
30191         section and name for the .vtable_map_vars section in case the
30192         target is PE or COFF.
30193
30194 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30195
30196         PR ipa/64801
30197         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30198         make sane BB profile.
30199         (cgraph_node::expand_thunk): Make sane BB profile.
30200         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30201         * cgraph.h (init_lowered_empty_function): Update prototype.
30202         * config/i386/i386.c (make_resolver_func): Update call.
30203         * predict.c (gate): Disable branch prediction pass if
30204         profile is already there.
30205
30206 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30207
30208         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30209         * opth-gen.awk: Likewise.
30210         * common.opt: Mark flag_fp_contract_mode as Optimization.
30211
30212 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30213
30214         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30215         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30216
30217 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30218
30219         PR target/64659
30220         * config/sh/predicates.md (atomic_arith_operand,
30221         atomic_logical_operand): Remove.
30222         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30223         (atomic_arith_operand_0): New predicate.
30224         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30225         Use atomic_arith_operand_0 for input values.
30226         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30227         atomic_compare_and_swap<mode>_soft_gusa,
30228         atomic_compare_and_swap<mode>_soft_tcb,
30229         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30230         arith_reg_operand instead of register_operand.
30231         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30232         atomic_arith_operand_0 for newval input.
30233         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30234         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30235         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30236         arith_reg_operand instead of register_operand.
30237         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30238         fetchop_predicate_1, fetchop_constraint_1_llcs,
30239         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30240         fetchop_constraint_1_imask): New code iterator attributes.
30241         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30242         register_operand.  Use fetchop_predicate_1.
30243         (atomic_fetch_<fetchop_name>si_hard,
30244         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30245         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30246         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30247         and arith_reg_operand instead of register_operand.  Use
30248         fetchop_predicate_1, fetchop_constraint_1_gusa.
30249         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30250         and arith_reg_operand instead of register_operand.  Use
30251         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30252         to allow R0 usage.
30253         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30254         and arith_reg_operand instead of register_operand.  Use
30255         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30256         to allow R0 usage.
30257         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30258         register_operand.  Use atomic_logical_operand_1.
30259         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30260         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30261         arith_reg_operand instead of register_operand.
30262         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30263         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30264         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30265         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30266         register_operand.  Use fetchop_predicate_1.
30267         (atomic_<fetchop_name>_fetchsi_hard,
30268         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30269         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30270         fetchop_constraint_1_llcs.
30271         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30272         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30273         fetchop_constraint_1_gusa.
30274         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30275         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30276         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30277         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30278         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30279         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30280         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30281         register_operand.  Use atomic_logical_operand_1.
30282         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30283         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30284         arith_reg_operand instead of register_operand.
30285         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30286         arith_reg_operand instead of register_operand.  Use logical_operand
30287         and K08.  Adjust asm sequence to allow R0 usage.
30288         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30289         arith_reg_operand instead of register_operand.  Use logical_operand
30290         and K08.
30291
30292 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30293
30294         PR other/63504
30295         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30296         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30297         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30298         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30299         all bits in *val_wide.
30300
30301 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30302
30303         * varpool.c (tls_model_names): Fix names.
30304         (varpool_node::dump): Dump tls- prefix for tls models.
30305
30306 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30307             Bernd Schmidt  <bernds@codesourcery.com>
30308             Nathan Sidwell  <nathan@codesourcery.com>
30309
30310         * config/nvptx/mkoffload.c: New file.
30311         * config/nvptx/t-nvptx: Add build rules for it.
30312         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30313         (extra_programs): Add mkoffload.
30314         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30315         function.
30316         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30317
30318 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30319
30320         PR middle-end/64809
30321         * cfgexpand.c (reorder_operands): Skip debug gimples.
30322
30323 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30324
30325         PR tree-optimization/64277
30326         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30327         range info when possible to refine estimation.
30328
30329 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30330
30331         PR tree-optimization/64718
30332         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30333         be a 16bit unsigned integer when n->range is 16.
30334         (bswap_replace): Convert src to that type if necessary for all bswap
30335         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30336         set in pass_optimize_bswap::execute ().
30337
30338 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30339
30340         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30341         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30342         integer and floating point variants.
30343         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30344
30345 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30346
30347         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30348         for all vector modes.
30349
30350 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30351
30352         PR bootstrap/64612
30353         * doc/sourcebuild.texi (comdat_group): Document.
30354
30355 2015-01-28  Terry Guo  <terry.guo@arm.com>
30356
30357         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30358
30359 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30360
30361         * toplev.c (print_version): Add param "show_global_state", and
30362         only print GGC and plugin information if it is true.
30363         (init_asm_output): Pass in "true" for the new param when calling
30364         print_version.
30365         (process_options): Likewise.
30366         (toplev::main): Likewise.
30367         * toplev.h (print_version): Add new param to decl.
30368
30369 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30370
30371         PR ipa/60871
30372         PR ipa/64139
30373         * tree.c (lookup_binfo_at_offset): New function.
30374         (get_binfo_at_offset): Use it.
30375
30376 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30377
30378         PR ipa/64282
30379         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30380         on vtable being vtable.
30381
30382 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30383
30384         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30385         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30386         -mhotpatch= option.
30387         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30388         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30389         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30390         Renamed.
30391         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30392         (s390_hotpatch_hw_max): New name.
30393         (s390_hotpatch_trampoline_halfwords): Renamed.
30394         (s390_hotpatch_hw_before_label): New name.
30395         (get_hotpatch_attribute): Removed.
30396         (s390_hotpatch_hw_after_label): New name.
30397         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30398         attribute.
30399         (s390_attribute_table): Ditto.
30400         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30401         (s390_function_num_hotpatch_hw): New name.
30402         Remove special handling of inline functions and hotpatching.
30403         Return number of nops before and after the function label.
30404         (s390_can_inline_p): Removed.
30405         (s390_asm_output_function_label): Emit a configurable number of nops
30406         after the function label.
30407         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30408         (TARGET_CAN_INLINE_P) Removed.
30409         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30410
30411 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30412             Jiong Wang  <jiong.wang@arm.com>
30413
30414         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30415         of scratch reg.
30416         (cb<optab><mode>1): Likewise.
30417         * config/aarch64/iterators.md (bcond): New define_code_attr.
30418
30419 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30420
30421         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30422         memory accesses.
30423
30424 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30425
30426         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30427         FPR->GPR moves.
30428
30429 2015-01-27  Richard Biener  <rguenther@suse.de>
30430
30431         * tree-vrp.c (update_value_range): Intersect the range with
30432         old recorded SSA name range information.
30433
30434 2015-01-27  Nick Clifton  <nickc@redhat.com>
30435
30436         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30437         BC, DE and HL registers directly, not via AX.
30438         When decrementing the stack pointer by a large amount, transfer SP
30439         into AX and perform the subtraction there.
30440         (rl78_expand_epilogue): Perform the inverse of the above
30441         enhancements.
30442
30443 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30444
30445         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30446
30447 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30448             Yury Gribov  <y.gribov@samsung.com>
30449
30450         PR ubsan/64741
30451         * ubsan.c (ubsan_source_location): Refactor code.
30452         (ubsan_type_descriptor): Update type size. Refactor code.
30453
30454 2015-01-27  Richard Biener  <rguenther@suse.de>
30455
30456         PR tree-optimization/56273
30457         PR tree-optimization/59124
30458         PR tree-optimization/64277
30459         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30460         from the first VRP pass.
30461
30462 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30463
30464         PR ipa/64776
30465         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30466         handle the first argument in the same loop as all the other arguments.
30467
30468         PR rtl-optimization/61058
30469         * jump.c (cleanup_barriers): Update basic block boundaries
30470         if BLOCK_FOR_INSN is non-NULL on PREV.
30471
30472 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30473
30474         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30475         bounds narrowing, already instrumented calls and calls to
30476         not instrumentable functions.
30477
30478 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30479
30480         PR tree-optimization/64807
30481         * wide-int.cc (wi::divmod_internal): Clear
30482         b_dividend[dividend_blocks_needed].
30483
30484 2015-01-26  DJ Delorie  <dj@redhat.com>
30485
30486         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30487         volatile memory references.
30488
30489 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30490
30491         PR target/49263
30492         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30493         remove_insn.
30494         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30495         shifts if it already fits into K08.
30496
30497 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30498
30499         PR ipa/64730
30500         * ipa-inline.c (inline_small_functions): Print "unknown" even
30501         if edge->call_stmt is non-NULL, but has builtins or unknown
30502         location.
30503
30504         PR middle-end/64421
30505         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30506         with asterisk, skip the first character.
30507
30508 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30509
30510         PR target/64806
30511         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30512         order change.
30513
30514 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30515
30516         PR target/64795
30517         * config/i386/i386.md (*movdi_internal): Also check operand 0
30518         to determine TYPE_LEA operand.
30519         (*movsi_internal): Ditto.
30520
30521 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30522
30523         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30524         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30525
30526 2015-01-26  Renlin Li  <renlin.li@arm.com>
30527
30528         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30529         the comment.
30530         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30531         for higher part.
30532
30533 2015-01-26  Richard Biener  <rguenther@suse.de>
30534
30535         PR middle-end/64764
30536         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30537         combining two BIT_AND_EXPR predicates.
30538
30539 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30540
30541         PR bootstrap/64754
30542         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30543
30544 2015-01-26  Terry Guo  <terry.guo@arm.com>
30545
30546         * config/arm/arm.c (arm_file_start): Update the assignment of
30547         Tag_ABI_HardFP_use.
30548
30549 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30550
30551         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30552         pipeline model.
30553         config/arm/arm.md: Include the new Cortex-A57 model.
30554         (generic_sched): Don't use generic_sched when tuning for
30555         Cortex-A57.
30556
30557 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30558             Uros Bizjak  <ubizjak@gmail.com>
30559
30560         * config/i386/i386.c (get_builtin_code_for_version): Add
30561         support for BMI and BMI2 multiversion functions.
30562
30563 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30564
30565         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30566         (extract_bit_field): Likewise.
30567         (extract_low_bits): Likewise.
30568         (expand_mult): Likewise.
30569         (expand_mult_highpart_adjust): Likewise.
30570
30571 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30572
30573         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30574         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30575         * config/i386/i386.c (processor_model): Add
30576         M_INTEL_COREI7_BROADWELL.
30577         (arch_names_table): Add "broadwell".
30578
30579 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30580
30581         PR target/49263
30582         PR target/53987
30583         PR target/64345
30584         PR target/59533
30585         PR target/52933
30586         PR target/54236
30587         PR target/51244
30588         * config/sh/sh-protos.h
30589         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30590         sh_extending_set_of_reg::use_as_unextended_reg,
30591         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30592         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30593         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30594         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30595         (sh_treg_insns): New class.
30596         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30597         (scope_counter): New class.
30598         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30599         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30600         sh_extending_set_of_reg::can_use_as_unextended_reg,
30601         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30602         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30603         sh_split_treg_set_expr): New functions.
30604         (addsubcosts): Handle treg_set_expr.
30605         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30606         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30607         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30608         (sh_insn_operands_modified_between_p): Make non-static.
30609         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30610         simple_mem_operand in addition to displacement_mem_operand.
30611         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30612         (treg_set_expr, treg_set_expr_not_const01,
30613         arith_reg_or_treg_set_expr): New predicates.
30614         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30615         arith_or_int_operand instead of logical_operand.  Convert to
30616         insn_and_split.  Try to optimize constant operand in splitter.
30617         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30618         (*tstqi_t_zero): Delete.
30619         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30620         (tstsi_t_and_not): Delete.
30621         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30622         Convert to insn_and_split.
30623         (unnamed split, tstsi_t_zero_extract_xor,
30624         tstsi_t_zero_extract_subreg_xor_little,
30625         tstsi_t_zero_extract_subreg_xor_big): Delete.
30626         (*tstsi_t_shift_mask): New insn_and_split.
30627         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30628         to recombine with surrounding insns when splitting.
30629         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30630         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30631         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30632         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30633         (*cbranch_div0s: Delete.
30634         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30635         Try to recombine with surrounding insns when splitting.  Add operand
30636         order variants.
30637         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30638         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30639         *addc_r_r_msb, *addc_2r_msb): Delete.
30640         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30641         order variant.
30642         (*addc_negreg_t): New insn_and_split.
30643         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30644         Try to recombine with surrounding insns when splitting.
30645         Add operand order variants.
30646         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30647         insn_and_split patterns.
30648         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30649         surrounding insns when splitting.
30650         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30651         (*rotcl): Likewise.  Add zero_extract variant.
30652         (*ashrsi2_31): New insn_and_split.
30653         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30654         (*zero_extend<mode>si2_disp_mem): Update comment.
30655         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30656         condition.
30657         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30658         with surrounding insns when splitting.
30659         (any_treg_expr_to_reg): New insn_and_split.
30660         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30661         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30662         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30663         *zero_extract_2): New single bit zero extract patterns.
30664         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30665         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30666         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30667         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30668         set destination.
30669         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30670         register_operand for set source.
30671
30672 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30673
30674         * i386.opt (prefetch_sse): New targetsave.
30675         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30676         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30677         ix86_cost/ix86_tune_cost.
30678
30679 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30680
30681         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30682         Support the JIT by using 0 as the language type.
30683
30684 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30685
30686         PR target/64317
30687         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30688         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30689         (mark_regno_live, process_bb_lives): Pass new parameter value to
30690         make_hard_regno_born.
30691
30692 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30693
30694         PR rtl-optimization/63637
30695         PR rtl-optimization/60663
30696         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30697         if elt->cost is MAX_COST for ASM_OPERANDS.
30698         (find_sets_in_insn): Fix up comment typo.
30699         (cse_insn): Don't set src_volatile for all non-volatile
30700         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30701         or with "memory" clobber.  Set elt->cost to MAX_COST
30702         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30703         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30704
30705 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30706
30707         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30708         alternative 1.
30709
30710 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30711
30712         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30713         libgcc/config/i386/elf-lib.h.
30714
30715 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30716
30717         PR driver/64737
30718         * gcc.c (print_configuration): Don't print a blank line at the end
30719         here...
30720         (run_attempt): ... but here unstead.
30721
30722         PR middle-end/64734
30723         * omp-low.c (scan_sharing_clauses): Don't ignore
30724         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30725         on target data/update constructs.
30726
30727 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30728
30729         PR target/50928
30730         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30731         (DEBUG_RELOAD): Removed define.
30732         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30733         (m32c_function_arg): Added a type cast.
30734         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30735         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30736         * config/m32c/bitops.md (andqi3_16): Likewise.
30737         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30738         (push_a01_l): Likewise.
30739
30740 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30741
30742         PR jit/64721
30743         * main.c (main): Construct toplev instances with init_signals=true.
30744         * toplev.c (general_init): Add param "init_signals", and use it to
30745         conditionalize the calls to signal and host_hooks.extra_signals.
30746         (toplev::toplev): Add param "init_signals".
30747         (toplev::main): When invoking general_init, pass m_init_signals
30748         to control whether signal-handlers are installed.
30749         * toplev.h (toplev::toplev): Add param "init_signals".
30750         (toplev::m_init_signals): New field.
30751
30752 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30753
30754         PR jit/64722
30755         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30756         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30757         latter may be affected by the former (e.g. on i686).
30758
30759 2015-01-23  Martin Liska  <mliska@suse.cz>
30760
30761         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30762         false positive during profiledbootstrap.
30763
30764 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30765
30766         PR libgomp/64672
30767         * lto-opts.c (lto_write_options): Output non-explicit conservative
30768         -fno-openacc.
30769         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30770         (append_compiler_options): Pass -fopenacc through.
30771
30772 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30773
30774         PR libgomp/64707
30775         * lto-opts.c (lto_write_options): Output non-explicit conservative
30776         -fno-openmp.
30777         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30778         (append_compiler_options): Pass -fopenmp through.
30779
30780 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30781
30782         PR debug/64511
30783         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30784         GTY markup.
30785
30786         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30787         * diagnostic.def (DK_ICE_NOBT): New kind.
30788         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30789         like DK_ICE, but never print backtrace.
30790         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30791         (internal_error_no_backtrace): New function.
30792         * gcc.c (execute): Use internal_error_no_backtrace instead of
30793         internal_error.
30794
30795 2015-01-22  Jeff Law  <law@redhat.com>
30796
30797         PR target/52076
30798         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30799         improve code density for small immediate to memory case.
30800         (insv): Better handle bitfield assignments when the field is
30801         being set to all ones.
30802         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30803         operand predicate.
30804
30805 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30806             Jakub Jelinek  <jakub@redhat.com>
30807
30808         PR middle-end/64729
30809         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30810         for !TARGET_LIBC_PROVIDES_SSP version and
30811         -fstack-protector-{all,strong,explicit} otherwise.
30812         * config/freebsd.h (LINK_SSP_SPEC): Handle
30813         -fstack-protector-{strong,explicit}.
30814
30815 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
30816             H.J. Lu  <hongjiu.lu@intel.com>
30817
30818         PR ipa/64694
30819         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30820         heap.
30821
30822 2015-01-22  Wei Mi  <wmi@google.com>
30823
30824         PR rtl-optimization/64557
30825         * dse.c (record_store): Call get_addr for mem_addr.
30826         (check_mem_read_rtx): Likewise.
30827
30828 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30829
30830         * fold-const.c (const_binop): Add early return for non-tcc_binary.
30831
30832 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
30833
30834         * toplev.c (init_local_tick): Process the failure when read
30835         fails for random_seed.
30836
30837         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30838         'pretty_name' to avoid memory overflow.
30839
30840 2015-01-22  Richard Biener  <rguenther@suse.de>
30841
30842         PR middle-end/64728
30843         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30844         abnormal coalescing on undefined SSA names.
30845
30846 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
30847
30848         PR target/64688
30849         PR target/64477
30850         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30851         for alternative 3.
30852         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30853
30854 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
30855
30856         PR middle-end/63325
30857         * fold-const.c (fold_checksum_tree): Don't include value of
30858         expr->decl_with_vis.symtab_node in the checksum.
30859
30860 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30861
30862         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30863
30864 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30865
30866         PR driver/64690
30867         * gcc.c (insert_comments): New function.
30868         (try_generate_repro): Call it.
30869         (append_text): Removed.
30870
30871 2015-01-22  Richard Biener  <rguenther@suse.de>
30872
30873         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30874         with IL incompatible options.  Properly honor user optimize
30875         attributes.
30876
30877 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
30878
30879         PR rtl-optimization/64682
30880         * combine.c (distribute_notes): When moving a death note for
30881         a register that is set in the new I2, make sure to put it
30882         before that new I2.
30883
30884 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
30885
30886         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30887         not TARGET_DEFAULT.
30888
30889 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
30890
30891         PR debug/64511
30892         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30893         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30894         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30895
30896         PR sanitizer/64706
30897         * doc/invoke.texi (-fsanitize=vptr): Document.
30898
30899         PR rtl-optimization/62078
30900         * dse.c: Include cfgcleanup.h.
30901         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30902         anything call purge_all_dead_edges and cleanup_cfg at the end
30903         of the pass.
30904
30905 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
30906
30907         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30908         edges.
30909
30910 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30911
30912         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30913         decl attribute.
30914
30915 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30916             Tejas Belagod <Tejas.Belagod@arm.com>
30917
30918         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30919         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30920         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30921         Removed.
30922
30923 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30924             Tejas Belagod <Tejas.Belagod@arm.com>
30925
30926         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30927         (aarch64_reverse_mask): New decls.
30928         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30929         (insn_count): New mode_attr.
30930         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30931         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30932         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30933         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30934         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30935         (aarch64_simd_st4): New patterns.
30936         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30937         (aarch64_reverse_mask): New functions.
30938
30939 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
30940
30941         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30942         Declare.
30943         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30944         addressing modes for BE.
30945         (aarch64_print_operand): Add 'R' specifier.
30946         (aarch64_simd_disambiguate_copy): Delete.
30947         (aarch64_simd_emit_reg_reg_move): New function.
30948         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30949         in define_splits for structural moves.
30950         (mov<mode>): Use less restrictive predicates.
30951         (*aarch64_mov<mode>): Simplify and only allow for LE.
30952         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30953
30954 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
30955
30956         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30957
30958 2015-01-21  Richard Henderson  <rth@redhat.com>
30959
30960         PR target/64669
30961         * ccmp.c (used_in_cond_stmt_p): Remove.
30962         (expand_ccmp_expr): Don't use it.
30963
30964 2015-01-21  Nick Clifton  <nickc@redhat.com>
30965
30966         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30967         PARALLELs.
30968
30969 2015-01-21  Richard Biener  <rguenther@suse.de>
30970
30971         PR middle-end/64313
30972         * tree-core.h (builtin_info, builtin_info_type): Turn from
30973         an object with two arrays into an array of an object with
30974         decl and two flags, implicit_p and declared_p.
30975         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30976         set_builtin_decl, set_builtin_decl_implicit_p,
30977         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30978         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30979         * builtins.c (builtin_info): Adjust.
30980         * gimplify.c (gimplify_addr_expr): References to builtins
30981         that have been declared by the user makes them eligible for
30982         use by the compiler.  Call set_builtin_decl_implicit_p on them.
30983
30984 2015-01-20  Jeff Law  <law@redhat.com>
30985
30986         PR target/59946
30987         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30988         allow pc-relative addresses in operand predicates or constraints.
30989
30990 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
30991
30992         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30993         neon on aarch32 processors for stringops.
30994
30995 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30996
30997         PR ipa/63576
30998         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30999
31000 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31001
31002         PR lto/45375
31003         * ipa-inline.c: Include lto-streamer.h
31004         (report_inline_failed_reason): Output source file differences and
31005         flags on optimization/target node mismatch.
31006         (can_inline_edge_p): Consider caller to be the outer inline function;
31007         be less restrictive about matching opimize and optimize_size attributes.
31008         (inline_account_function_p): Break out from ...
31009         (inline_small_functions): ... here.
31010         * ipa-inline-transform.c (clone_inlined_nodes): Use
31011         inline_account_function_p.
31012         (inline_call): Use optimize attribution; use inline_account_function_p.
31013         (inline_transform): Use opt_for_fn.
31014         * ipa-inline.h (inline_account_function_p): Declare.
31015
31016 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
31017
31018         PR debug/64663
31019         * dwarf2out.c (decl_piece_node): Don't put bitsize into
31020         mode if bitsize <= 0.
31021         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31022         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31023         sizes and positions.
31024
31025 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
31026
31027         * config/nios2/nios2.c (nios2_asm_file_end): Implement
31028         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31029         needed.
31030         (TARGET_ASM_FILE_END): Define.
31031
31032 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31033
31034         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31035         (struct tune_params): Use the enum.
31036         * arm.c (arm_*_tune): Update.
31037         (arm_option_override): Update.
31038
31039 2015-01-20  Richard Biener  <rguenther@suse.de>
31040
31041         PR ipa/64684
31042         * ipa-reference.c (add_static_var): Inline ...
31043         (analyze_function): ... here after splitting out from ...
31044         (is_proper_for_analysis): ... this.
31045
31046 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
31047
31048         PR target/64149
31049         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31050         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31051         replace the conditional with it's true branch.
31052         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31053         (arm_lra_p): Remove.
31054
31055 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31056
31057         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31058
31059 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31060
31061         * config/tilegx/mul-tables.c: Move symtab.h include after
31062         coretypes.h include.
31063         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31064         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31065         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31066         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31067         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31068
31069 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
31070
31071         PR bootstrap/64676
31072         Revert:
31073         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31074
31075         PR rtl-optimization/64081
31076         * loop-iv.c (def_pred_latch_p): New function.
31077         (latch_dominating_def): Allow specific cases with non-single
31078         definitions.
31079         (iv_get_reaching_def): Likewise.
31080         (check_complex_exit_p): New function.
31081         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31082         with exits not executing on any iteration.
31083
31084 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31085
31086         PR lto/45375
31087         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31088         to set branch cost.
31089
31090 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31091
31092         PR lto/45375
31093         * i386.c (gate): Check flag_expensive_optimizations and
31094         optimize_size.
31095         (ix86_option_override_internal): Drop optimize_size condition
31096         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31097         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31098         MASK_PREFER_AVX128.
31099         (ix86_avx256_split_vector_move_misalign,
31100         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31101         * sse.md (all uses of TARGET_PREFER_AVX128): Add
31102         optimize_insn_for_speed_p check.
31103
31104 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
31105
31106         * config/mips/mips.h (FP_ASM_SPEC): New define.
31107         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31108         instead.
31109
31110 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
31111
31112         PR target/53988
31113         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31114         nullptr for insn when reaching the first insn.
31115         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31116         (sh_insn_operands_modified_between_p): Add nullptr check.
31117         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
31118         sign extending mem load if the insn contains any UNSPEC or
31119         UNSPEC_VOLATILE.
31120
31121 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31122
31123         * params.def (inline-unit-growth): Drop to 15%.
31124         * invoke.texi (inline-unit-growth): Document change.
31125
31126 2015-01-19  Martin Liska  <mliska@suse.cz>
31127
31128         PR ipa/64668
31129         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31130         function for second argument of OBJ_TYPE_REF.
31131
31132 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31133
31134         PR ipa/64218
31135         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31136         whether function is an alias.
31137
31138 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31139
31140         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31141         cases.
31142
31143 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31144
31145         PR rtl-optimization/64671
31146         * lra-remat.c (operand_to_remat): Don't consider jump and call
31147         insns.
31148
31149 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31150
31151         PR target/59828
31152         * config/rs6000/default64.h: Include rs6000-cpus.def.
31153         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31154         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31155         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31156         and POWER8.
31157         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31158         POWER8.
31159         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31160         pseudo-op to specify assembler dialect.
31161
31162 2015-01-19  Martin Liska  <mliska@suse.cz>
31163
31164         PR ipa/64664
31165         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31166         Handle safe potentially removed nodes during filtering.
31167
31168 2015-01-19  Martin Liska  <mliska@suse.cz>
31169
31170         * doc/extend.texi (no_icf): Add new attribute description.
31171         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31172         where the pass attempts to merge a function with no_icf attribute.
31173
31174 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31175
31176         PR target/64532
31177         * doc/md.texi (ARM Options): Document register constraints.
31178
31179 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31180             Andrew Pinski  <apinski@cavium.com>
31181
31182         PR target/64304
31183         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31184         (ashl<mode>3): Don't expand if operands[2] is not constant.
31185
31186 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31187
31188         PR target/64448
31189         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31190         Match xor-and-xor RTL pattern.
31191
31192 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
31193
31194         PR rtl-optimization/64081
31195         * loop-iv.c (def_pred_latch_p): New function.
31196         (latch_dominating_def): Allow specific cases with non-single
31197         definitions.
31198         (iv_get_reaching_def): Likewise.
31199         (check_complex_exit_p): New function.
31200         (check_simple_exit): Use check_complex_exit_p to allow certain cases
31201         with exits not executing on any iteration.
31202
31203 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
31204
31205         * common.opt (fgraphite): Fix a typo.
31206
31207 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31208
31209         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31210         pattern.
31211         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31212         uminp, smax_nanp, smin_nanp): New builtins.
31213         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31214         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31215         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31216         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31217         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31218         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31219         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31220         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31221         vpminnms_f32): Rewrite using builtin functions.
31222
31223 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31224
31225         PR libgomp/64625
31226         * omp-low.c (offload_symbol_decl): Remove variable.
31227         (get_offload_symbol_decl): Remove function.
31228         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31229         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31230         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31231         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31232         BUILT_IN_GOACC_UPDATE don't pass it at all.
31233
31234 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31235
31236         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31237         callers.
31238
31239 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31240
31241         * ipa-chkp.c (chkp_produce_thunks): Add early param
31242         to split thunks production into two passes.  Keep
31243         'always_inline' function bodies after the first pass.
31244         (pass_data_ipa_chkp_early_produce_thunks): New.
31245         (pass_ipa_chkp_early_produce_thunks): New.
31246         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31247         chkp_produce_thunks signature.
31248         (make_pass_ipa_chkp_early_produce_thunks): New.
31249         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31250         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31251         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31252
31253 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31254
31255         * cgraph.c (cgraph_node::dump): Dump profile flags.
31256
31257 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31258
31259         PR target/64652
31260         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31261         reg appear first in the parallel.
31262
31263 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31264
31265         * ipa-reference.c (set_reference_optimization_summary,
31266         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31267         disabled.
31268         (ignore_module_statics): New static var.
31269         (propagate_bits): If ipa-reference is disabled, do not look into local
31270         properties.
31271         (analyze_function): Disable analysis when ipa_reference is disabled.
31272         (generate_summary): Do not dump when reference is disabled;
31273         collect vars accessed from functions with ipa-reference disabled.
31274         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31275         node flags.
31276         (gate): Enable for LTO.
31277         (ignore_edge_p): New function.
31278         (propagate): Skip functions w/o ipa-reference analysis.
31279         * optc-save-gen.awk: Handle optimize_debug correctly.
31280         * opth-gen.awk: Likewise.
31281         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31282         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31283         fira-share-save-slots, fira-share-spill-slots,
31284         fmodulo-sched-allow-regmoves, fpartial-inlining,
31285         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31286         ftracer, ftree-parallelize-loops, fassociative-math,
31287         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31288         Optimization
31289         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31290         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31291         Optimization.
31292         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31293         Fix for IPA.
31294
31295 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31296
31297         PR ipa/64378
31298         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31299         flag correctly.
31300         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31301
31302 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31303
31304         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31305         Remove duplicate option listings.
31306
31307 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31308
31309         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31310         (autofdo_source_profile::get_callsite_total_count,
31311         function_instance::get_function_instance_by_decl,
31312         string_table::get_index, string_table::get_index_by_decl,
31313         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31314         Fix comment typos. Reformatting and minor code rearrangement.
31315
31316 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31317
31318         * config/rs6000/rs6000.md (probe_stack): Delete.
31319         (probe_stack_address): New.
31320
31321 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31322
31323         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31324         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31325
31326 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31327
31328         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31329         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31330         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31331         snafu.
31332         (rs6000_libcall_value): Use the new function.
31333
31334 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31335
31336         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31337
31338 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31339
31340         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31341         implement a more precise life analysis for it during backward scan.
31342
31343 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31344
31345         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31346
31347 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31348
31349         PR rtl-optimization/52773
31350         * calls.c (emit_library_call_value): When pushing arguments use
31351         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31352         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31353         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31354
31355 2015-01-17  Jeff Law  <law@redhat.com>
31356
31357         PR rtl-optimization/32790
31358         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31359         not ZERO_EXTEND in SET_DESTs.
31360
31361 2015-01-17  Alan Modra  <amodra@gmail.com>
31362
31363         * cprop.c (do_local_cprop): Revert last change.
31364
31365 2015-01-16  DJ Delorie  <dj@redhat.com>
31366             Nick Clifton  <nickc@redhat.com>
31367
31368         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31369         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31370         (subqi3_real): Likewise.
31371         (subhi3_real): Likewise.
31372         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31373         (cbranchhi4_real): Likewise.
31374         (cbranchhi4_real_inverted): Likewise.
31375         (cbranchsi4_real_lt): Likewise.
31376         (cbranchsi4_real_ge): Likewise.
31377         (cbranchsi4_real_ge): Likewise.
31378         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31379         (sub<mode>3_virt): Likewise.
31380         (cbranchqi4_virt): Likewise.
31381         (cbranchhi4_virt): Likewise.
31382         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31383         always use '[reg+imm]' even when imm is zero.
31384         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31385         (rl78_general_operand): New.
31386         (rl78_nonimmediate_operand): New.
31387         (rl78_nonfar_operand): Use them.
31388         (rl78_nonfar_nonimm_operand): Likewise.
31389         (rl78_stack_based_mem): Fix.
31390         * config/rl78/constraints.md (Ibqi): New.
31391         (IBqi): New.
31392         (Wsa): New.
31393         (Wsf): New.
31394         (Cs1): Fix.
31395         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31396         (iorqi3): Likewise.
31397         (xorqi3): Likewise.
31398         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31399
31400         * config/rl78/constrains (Qs8): New constraint.
31401         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31402         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31403         * config/rl78/rl78-real.md (update_Z): New attribute.
31404         Update patterns to set it.
31405         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31406         shorter compare and branch sequence can be used.
31407         (cbranchhi4_real): Likewise.
31408         (cbranchhi4_real_inverted): Likewise.
31409
31410         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31411         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31412         address space.
31413         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31414         (rl78_option_override): Allow -mes0 only if C.
31415         (characterize_address): Support subregs of symbol_refs.
31416         (rl78_addr_space_address_mode): Move.  Add __near.
31417         (rl78_far_p): Likewise.
31418         (rl78_addr_space_pointer_mode): Likewise.
31419         (rl78_as_legitimate_address): Likewise.
31420         (rl78_addr_space_subset_p): Likewise.
31421         (rl78_addr_space_convert): Likewise.
31422         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31423         symbols with -mes0.
31424         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31425         addressing.
31426         (rl78_alloc_physical_registers_op1): Change logic to prefer
31427         symbol[BC] addressing.
31428         (frodata_section): New.
31429         (rl78_asm_init_sections): Initialize it.
31430         (rl78_select_section): Put __far readonly symbols in .frodata.
31431         (rl78_make_type_far): New.
31432         (rl78_insert_attributes): Force all readonly symbols to be
31433         __far when -mes0.
31434         (rl78_asm_out_integer): New.
31435         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31436         * config/rl78/rl78.opt (-mes0): New.
31437
31438         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31439         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31440         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31441         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31442         (rl78_saddr_p): New.
31443         (rl78_output_aligned_common): New.
31444         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31445         (rl78_handle_saddr_attribute): New.
31446         (rl78_handle_naked_attribute): New.
31447         (rl78_attribute_table): Add saddr.
31448         (rl78_print_operand_1): Don't print '!' on saddr operands.
31449         (rl78_print_operand_1): Strip encodings.
31450         (rl78_sfr_p): New.
31451         (rl78_strip_name_encoding): New.
31452         (rl78_attrlist_to_encoding): New.
31453         (rl78_encode_section_info): New.
31454         (rl78_asm_init_sections): New.
31455         (rl78_select_section): New.
31456         (rl78_output_labelref): New.
31457         (rl78_output_aligned_common): New.
31458         (rl78_asm_out_integer): New.
31459         (rl78_asm_ctor_dtor): New.
31460         (rl78_asm_constructor): New.
31461         (rl78_asm_destructor): New.
31462
31463         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31464         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31465         (transcode_memory_rtx): Update.
31466         (rl78_expand_epilogue): Use A_REG instead of 0.
31467
31468 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31469
31470         * config/arm/arm-protos.h (struct tune_params): New field
31471         sched_autopref_queue_depth.
31472         * config/arm/arm.c (sched-int.h): Include header.
31473         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31474         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31475         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31476         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31477         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31478         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31479         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31480         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31481         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31482         * config/arm/t-arm (arm.o): Update.
31483         * haifa-sched.c (update_insn_after_change): Update.
31484         (rank_for_schedule): Use auto-prefetcher model, if requested.
31485         (autopref_multipass_init): New static function.
31486         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31487         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31488         variable for debug dumps.
31489         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31490         (autopref_multipass_dfa_lookahead_guard): New global function that
31491         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31492         (init_h_i_d): Update.
31493         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31494         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31495         (autopref_multipass_data_): Structure for auto-prefetcher data.
31496         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31497         (struct _haifa_insn_data:autopref_multipass_data): New field.
31498         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31499         (autopref_multipass_dfa_lookahead_guard): Declare.
31500
31501 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31502
31503         * rtlanal.c (get_base_term): Handle SCRATCH.
31504
31505 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31506
31507         * config/aarch64/aarch64.c
31508         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31509         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31510         * config/arm/arm.c
31511         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31512         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31513
31514 2015-01-17  Alan Modra  <amodra@gmail.com>
31515
31516         * cprop.c (do_local_cprop): Disallow replacement of fixed
31517         hard registers.
31518
31519 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31520
31521         PR target/62066
31522         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31523         early return 0.
31524
31525 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31526
31527         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31528         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31529
31530 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31531
31532         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31533         * config/arm/thumb1.md: ... Here.
31534
31535 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31536
31537         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31538         TImode for TARGET_32BIT.
31539
31540 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31541
31542         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31543         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31544         as ...
31545         (rs6000_abi_word_mode): New function.
31546
31547 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31548
31549         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31550         instead of UNITS_PER_WORD to describe the size of stack slots.
31551
31552 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31553
31554         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31555         as rs6000_promote_function_mode.  Move comment to there.
31556         (rs6000_promote_function_mode): New function.
31557
31558 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31559
31560         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31561         -mpowerpc64 is active.
31562
31563 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31564
31565         PR middle-end/64353
31566         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31567         virtuals on start.
31568
31569 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31570
31571         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31572         introduced in revision 219724.
31573
31574 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31575             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31576
31577         PR target/64263
31578         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31579         destination is not a GP reg.
31580         (*movdi_aarch64): Likewise.
31581
31582 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31583
31584         PR target/64623
31585         * config/rs6000/default64.h: Revert ISA change.
31586
31587 2015-01-16  Richard Biener  <rguenther@suse.de>
31588
31589         PR middle-end/64614
31590         * tree-ssa-uninit.c: Include tree-cfg.h.
31591         (MAX_SWITCH_CASES): New define.
31592         (convert_control_dep_chain_into_preds): Handle switch statements.
31593         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31594         (normalize_one_pred_1): Do not split bit-manipulations.
31595         Record (x & CST).
31596
31597 2015-01-16  Richard Biener  <rguenther@suse.de>
31598
31599         PR tree-optimization/64568
31600         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31601         complex load rewriting for TARGET_MEM_REFs.
31602
31603 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31604
31605         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31606
31607 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31608
31609         PR target/64149
31610         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31611         variable.
31612         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31613         (aarch64_lra_p): Remove.
31614
31615 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31616
31617         PR target/64363
31618         * ipa-chkp.h (chkp_instrumentable_p): New.
31619         * ipa-chkp.c: Include tree-inline.h.
31620         (chkp_instrumentable_p): New.
31621         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31622         Fix processing of not instrumentable functions.
31623         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31624         not instrumentable functions.
31625         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31626         chkp_instrumentable_p.
31627         * tree-inline.h (copy_forbidden): New.
31628         * tree-inline.c (copy_forbidden): Not static anymore.
31629
31630 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31631
31632         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31633         ptr1, ptr2 unused.
31634
31635 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31636
31637         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31638         type OP_OUT to OP_INOUT.
31639
31640 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31641
31642         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31643         (high x) y) to y if x and y have the same base.
31644
31645 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31646
31647         * config/arm/cortex-a57.md: New.
31648         * config/aarch64/aarch64.md: Include it.
31649         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31650         * config/aarch64/aarch64-tune.md: Regenerate.
31651
31652 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31653
31654         PR target/64015
31655         * ccmp.c (expand_ccmp_next): New function.
31656         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31657         and compare insn sequence.
31658         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31659         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31660         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31661         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31662         (*ccmp_ior): Changed to ccmp_ior<mode>.
31663         (cmp<mode>): New pattern.
31664         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31665         parameters.
31666         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31667
31668 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31669
31670         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31671         _mm256_bsrli_epi128): New.
31672         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31673
31674 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31675
31676         * expmed.c (store_bit_field_using_insv): Improve warning message.
31677         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31678
31679 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31680
31681         PR rtl-optimization/64011
31682         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31683         there is partial overflow.
31684
31685 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31686
31687         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31688         prototype.
31689         (nds32_expand_epilogue_v3pop): Likewise.
31690         * config/nds32/nds32.md (sibcall): Define this for sibling call
31691         optimization.
31692         (sibcall_register): Likewise.
31693         (sibcall_immediate): Likewise.
31694         (sibcall_value): Likewise.
31695         (sibcall_value_register): Likewise.
31696         (sibcall_value_immediate): Likewise.
31697         (sibcall_epilogue): Likewise.
31698         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31699         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31700         (nds32_expand_epilogue_v3pop): Likewise.
31701
31702 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31703
31704         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31705         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31706         (return_internal): New.
31707         (return): Define this named pattern.
31708         (simple_return): Define this named pattern.
31709         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31710         pattern instead of unspec_volatile_func_return.
31711         (nds32_expand_epilogue_v3pop): Likewise.
31712         (nds32_can_use_return_insn): New function.
31713
31714 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31715
31716         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31717         * config/nds32/nds32.md (pop25return): New.
31718         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31719         pop25return pattern.
31720
31721 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31722
31723         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31724         -mforbid-fp-as-gp, and -mex9 options.
31725
31726 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31727
31728         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31729         remove -mgp-direct option.
31730
31731 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31732
31733         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31734         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31735
31736 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31737
31738         * ipa-inline.c (inline_small_functions): Work around hints
31739         cache issue.
31740
31741 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31742
31743         PR target/59710
31744         * doc/invoke.texi (Option Summary): Document new Nios II
31745         -mgpopt= syntax.
31746         (Nios II Options): Likewise.
31747         * config/nios2/nios2.opt: Add -mgpopt= option support.
31748         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31749         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31750         * config/nios2/nios2.c (nios2_option_override): Adjust
31751         -mgpopt defaulting.
31752         (nios2_in_small_data_p): Return true for explicit small data
31753         sections even with -G0.
31754         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31755         option choices.
31756
31757 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31758
31759         PR ipa/64612
31760         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31761         of comdat locals.
31762         (inline_call): Fix removal of aliases.
31763
31764 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31765
31766         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31767         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31768         * opts.c (common_handle_option): Add -fsanitize=vptr.
31769         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31770         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31771         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31772         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31773         (ubsan_expand_vptr_ifn): New prototype.
31774         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31775         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31776         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31777         expand_LOOP_VECTORIZED): Make argument nameless, remove
31778         ATTRIBUTE_UNUSED.
31779         (expand_UBSAN_VPTR): New function.
31780         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31781         in fn spec.
31782         (UBSAN_VPTR): New internal function.
31783         * sanopt.c (tree_map_traits): Renamed to ...
31784         (sanopt_tree_map_traits): ... this.
31785         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31786         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31787         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
31788         (maybe_optimize_ubsan_vptr_ifn): New function.
31789         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31790         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
31791         -fsanitize=vptr.
31792         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31793         internal calls like pure functions for aliasing, even when they
31794         have other side-effects that prevent making them ECF_PURE.
31795         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31796         (ubsan_expand_vptr_ifn): New function.
31797
31798 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31799
31800         PR rtl-optimization/64110
31801         * stmt.c (parse_output_constraint): Process '^' and '$'.
31802         (parse_input_constraint): Ditto.
31803         * lra-constraints.c (process_alt_operands): Process the new
31804         constraints.
31805         * ira-costs.c (record_reg_classes): Process the new constraint
31806         '^'.
31807         * genoutput.c (indep_constraints): Add '^' and '$'.
31808         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31809         * doc/md.texi: Add description of the new constraints.
31810
31811 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
31812             Bernd Schmidt  <bernds@codesourcery.com>
31813             Cesar Philippidis  <cesar@codesourcery.com>
31814             James Norris  <jnorris@codesourcery.com>
31815             Tom de Vries  <tom@codesourcery.com>
31816             Ilmir Usmanov  <i.usmanov@samsung.com>
31817             Dmitry Bocharnikov  <dmitry.b@samsung.com>
31818             Evgeny Gavrin  <e.gavrin@samsung.com>
31819             Jakub Jelinek  <jakub@redhat.com>
31820
31821         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31822         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31823         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31824         New function types.
31825         * builtins.c: Include "gomp-constants.h".
31826         (expand_builtin_acc_on_device): New function.
31827         (expand_builtin, is_inexpensive_builtin): Handle
31828         BUILT_IN_ACC_ON_DEVICE.
31829         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31830         New macros.
31831         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31832         flag_openmp.
31833         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31834         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31835         i386/intelmic-offload.h.
31836         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31837         to libgomp and its dependencies.
31838         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31839         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31840         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31841         * config/ia64/hpux.h (LIB_SPEC): Likewise.
31842         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31843         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31844         * doc/generic.texi: Update for OpenACC changes.
31845         * doc/gimple.texi: Likewise.
31846         * doc/invoke.texi: Likewise.
31847         * doc/sourcebuild.texi: Likewise.
31848         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31849         GF_OMP_FOR_KIND_OACC_LOOP.
31850         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31851         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31852         GF_OMP_TARGET_KIND_OACC_UPDATE,
31853         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31854         Dump more data.
31855         * gimple.c: Update comments for OpenACC changes.
31856         * gimple.def: Likewise.
31857         * gimple.h: Likewise.
31858         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31859         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31860         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31861         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31862         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31863         appropriate place.
31864         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31865         * gimplify.c: Include "gomp-constants.h".
31866         Update comments for OpenACC changes.
31867         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31868         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31869         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31870         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31871         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31872         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31873         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31874         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31875         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31876         OMP_CLAUSE_SEQ.
31877         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31878         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31879         OMP_CLAUSE_SET_MAP_KIND.
31880         (gimplify_oacc_cache): New function.
31881         (gimplify_omp_for): Handle OACC_LOOP.
31882         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31883         OACC_DATA.
31884         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31885         OACC_EXIT_DATA, OACC_UPDATE.
31886         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31887         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31888         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31889         (gimplify_body): Consider flag_openacc next to flag_openmp.
31890         * lto-streamer-out.c: Include "gomp-constants.h".
31891         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31892         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31893         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31894         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31895         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31896         (BUILT_IN_ACC_ON_DEVICE): New builtins.
31897         * omp-low.c: Include "gomp-constants.h".
31898         Update comments for OpenACC changes.
31899         (struct omp_context): Add reduction_map, gwv_below, gwv_this
31900         members.
31901         (extract_omp_for_data, use_pointer_for_field, install_var_field)
31902         (new_omp_context, delete_omp_context, scan_sharing_clauses)
31903         (create_omp_child_function, scan_omp_for, scan_omp_target)
31904         (check_omp_nesting_restrictions, lower_reduction_clauses)
31905         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31906         Update for OpenACC changes.
31907         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31908         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31909         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31910         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31911         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31912         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
31913         OMP_CLAUSE_MAP_*.
31914         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31915         Handle GF_OMP_FOR_KIND_OACC_LOOP.
31916         (expand_omp_target, lower_omp_target): Handle
31917         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31918         GF_OMP_TARGET_KIND_OACC_UPDATE,
31919         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31920         GF_OMP_TARGET_KIND_OACC_DATA.
31921         (pass_expand_omp::execute, execute_lower_omp)
31922         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31923         flag_openmp.
31924         (offload_symbol_decl): New variable.
31925         (oacc_get_reduction_array_id, oacc_max_threads)
31926         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31927         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31928         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31929         (oacc_gimple_assign, oacc_initialize_reduction_data)
31930         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31931         functions.
31932         (is_targetreg_ctx): Remove function.
31933         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31934         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31935         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31936         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31937         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31938         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31939         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31940         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31941         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31942         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31943         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31944         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31945         * tree-core.h: Update comments for OpenACC changes.
31946         (enum omp_clause_map_kind): Remove.
31947         (struct tree_omp_clause): Change type of map_kind member from enum
31948         omp_clause_map_kind to unsigned char.
31949         * tree-inline.c: Update comments for OpenACC changes.
31950         * tree-nested.c: Likewise.  Include "gomp-constants.h".
31951         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31952         (convert_tramp_reference_stmt, convert_gimple_call): Update for
31953         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31954         OMP_CLAUSE_SET_MAP_KIND.
31955         * tree-pretty-print.c: Include "gomp-constants.h".
31956         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31957         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31958         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31959         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31960         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31961         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
31962         instead of OMP_CLAUSE_MAP_*.
31963         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31964         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31965         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31966         * tree-streamer-in.c: Include "gomp-constants.h".
31967         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31968         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
31969         * tree-streamer-out.c: Include "gomp-constants.h".
31970         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31971         OMP_CLAUSE_MAP_*.
31972         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31973         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31974         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31975         * tree.c (omp_clause_num_ops): Update accordingly.
31976         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31977         Likewise.
31978         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31979         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31980         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31981         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31982         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31983         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31984         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31985         (OMP_CLAUSE_SET_MAP_KIND): New macro.
31986         * varpool.c (varpool_node::get_create): Consider flag_openacc next
31987         to flag_openmp.
31988         * config/i386/intelmic-offload.h: New file.
31989         * config/nvptx/offload.h: Likewise.
31990
31991 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31992
31993         * explow.h: Remove duplicate contents.
31994         * dojump.h: Likewise.
31995
31996 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
31997
31998         * arm.c (arm_xgene_tune): Add default initializer for instruction
31999         fusion.
32000
32001 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
32002
32003         PR ipa/64068
32004         PR ipa/64559
32005         * ipa.c (symbol_table::remove_unreachable_nodes):
32006         Do not put abstract origins into boundary.
32007
32008 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
32009
32010         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32011         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32012
32013 2015-01-15  Steve Ellcey  <sellcey@mips.com>
32014
32015         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32016         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32017         builtins.def, and chkp-builtins.def.
32018
32019 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
32020
32021         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32022         ISA 2.7 (POWER8).
32023
32024 2015-01-15  Richard Biener  <rguenther@suse.de>
32025
32026         PR tree-optimization/61743
32027         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32028         information on PHIs for some simple cases.
32029
32030 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32031
32032         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32033         Include xgene1.md.
32034         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32035         * config/arm/arm-cores.def (xgene1): New entry.
32036         * config/arm/arm-tables.opt: Regenerate.
32037         * config/arm/arm-tune.md: Regenerate.
32038         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32039
32040 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32041
32042         * tree-if-conv.c: Include hash-map.h.
32043         (aggressive_if_conv): New variable.
32044         (fold_build_cond_expr): Add simplification of non-zero condition.
32045         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32046         destination block is not always executed.
32047         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32048         than two predecessors if AGGRESSIVE_IF_CONV is true.
32049         (if_convertible_stmt_p): Fix commentary.
32050         (all_preds_critical_p): New function.
32051         (has_pred_critical_p): New function.
32052         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32053         BB can have more than two predecessors and all incoming edges can be
32054         critical.
32055         (predicate_bbs): Skip predication for loop exit block, use build2_loc
32056         to compute predicate for true edge.
32057         (find_phi_replacement_condition): Delete this function.
32058         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32059         Allow interchange PHI arguments if EXTENDED is false.
32060         Change check that block containing reduction statement candidate
32061         is predecessor of phi-block since phi may have more than two arguments.
32062         (phi_args_hash_traits): New helper structure.
32063         (struct phi_args_hash_traits): New type.
32064         (phi_args_hash_traits::hash): New function.
32065         (phi_args_hash_traits::equal_keys): New function.
32066         (gen_phi_arg_condition): New function.
32067         (predicate_scalar_phi): Add handling of phi nodes with more than two
32068         arguments, delete COND and TRUE_BB arguments, insert body of
32069         find_phi_replacement_condition to predicate ordinary phi nodes.
32070         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32071         delete call of find_phi_replacement_condition and invoke
32072         predicate_scalar_phi with two arguments.
32073         (insert_gimplified_predicates): Add assert that non-predicated block
32074         don't have statements to insert.
32075         (ifcvt_split_critical_edges): New function.
32076         (ifcvt_split_def_stmt): Likewise.
32077         (ifcvt_walk_pattern_tree): Likewise.
32078         (stmt_is_root_of_bool_pattern): Likewise.
32079         (ifcvt_repair_bool_pattern): Likewise.
32080         (ifcvt_local_dce): Likewise.
32081         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32082         is copy of inner or outer loop force_vectorize field, invoke
32083         ifcvt_split_critical_edges, ifcvt_local_dce and
32084         ifcvt_repair_bool_pattern for aggressive if-conversion.
32085
32086 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
32087
32088         * config/aarch64/aarch64.md: Include xgene1.md.
32089         * config/aarch64/xgene1.md: New file.
32090
32091 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
32092
32093         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32094         xgene1 (APM XGene-1) core definition.
32095         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32096         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32097         * doc/invoke.texi: Document -mcpu=xgene1.
32098
32099 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32100
32101         * dojump.h: New header file.
32102         * explow.h: Likewise.
32103         * expr.h: Remove includes.
32104         Move expmed.c prototypes to expmed.h.
32105         Move dojump.c prototypes to dojump.h.
32106         Move alias.c prototypes to alias.h.
32107         Move explow.c prototypes to explow.h.
32108         Move calls.c prototypes to calls.h.
32109         Move emit-rtl.c prototypes to emit-rtl.h.
32110         Move varasm.c prototypes to varasm.h.
32111         Move stmt.c prototypes to stmt.h.
32112         (saved_pending_stack_adjust): Move to dojump.h.
32113         (adjust_address): Move to explow.h.
32114         (adjust_address_nv): Move to emit-rtl.h.
32115         (adjust_bitfield_address): Likewise.
32116         (adjust_bitfield_address_size): Likewise.
32117         (adjust_bitfield_address_nv): Likewise.
32118         (adjust_automodify_address_nv): Likewise.
32119         * explow.c (expr_size): Move to expr.c.
32120         (int_expr_size): Likewise.
32121         (tree_expr_size): Likewise.
32122         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32123         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32124         * genemit.c (main): Generate includes statistics.h, real.h,
32125         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32126         stmt.h.
32127         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32128         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32129         explow.h, emit-rtl.h, stmt.h.
32130         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32131         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32132         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32133         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32134         emit-rtl.h, varasm.h, stmt.h.
32135         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32136         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32137         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32138         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32139         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32140         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32141         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32142         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32143         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32144         tm.h tree.h varasm.h vec.h wide-int.h.
32145         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32146         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32147         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32148         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32149         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32150         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32151         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32152         * loop-iv.c: Likewise.
32153         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32154         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32155         statistics.h stmt.h tree.h varasm.h wide-int.h.
32156         * lra-constraints.c: Likewise.
32157         * lra-eliminations.c: Likewise.
32158         * lra-lives.c: Likewise.
32159         * lra-remat.c: Likewise.
32160         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32161         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32162         statistics.h stmt.h tree.h varasm.h wide-int.h.
32163         * hw-doloop.c: Likewise.
32164         * ira-color.c: Likewise.
32165         * ira-emit.c: Likewise.
32166         * loop-doloop.c: Likewise.
32167         * loop-invariant.c: Likewise.
32168         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32169         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32170         statistics.h stmt.h tree.h varasm.h wide-int.h.
32171         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32172         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32173         statistics.h stmt.h tree.h varasm.h wide-int.h.
32174         * combine-stack-adj.c: Likewise.
32175         * cse.c: Likewise.
32176         * ddg.c: Likewise.
32177         * ifcvt.c: Likewise.
32178         * ira-costs.c: Likewise.
32179         * jump.c: Likewise.
32180         * lra-coalesce.c: Likewise.
32181         * lra-spills.c: Likewise.
32182         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32183         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32184         stmt.h varasm.h wide-int.h.
32185         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32186         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32187         varasm.h.
32188         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32189         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32190         statistics.h stmt.h varasm.h wide-int.h.
32191         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32192         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32193         varasm.h wide-int.h.
32194         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32195         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32196         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32197         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32198         statistics.h stmt.h.
32199         * config/tilepro/tilepro.c: Likewise.
32200         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32201         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32202         * config/pdp11/pdp11.c: Likewise.
32203         * config/xtensa/xtensa.c: Likewise.
32204         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32205         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32206         varasm.h.
32207         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32208         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32209         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32210         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32211         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32212         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32213         * rtl-chkp.c: Likewise.
32214         * tree-chkp-opt.c: Likewise.
32215         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32216         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32217         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32218         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32219         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32220         statistics.h stmt.h.
32221         * tree-vect-data-refs.c: Likewise.
32222         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32223         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32224         rtl.h statistics.h stmt.h varasm.h.
32225         * internal-fn.c: Likewise.
32226         * ipa-icf-gimple.c: Likewise.
32227         * lto-section-out.c: Likewise.
32228         * tree-data-ref.c: Likewise.
32229         * tree-nested.c: Likewise.
32230         * tree-outof-ssa.c: Likewise.
32231         * tree-predcom.c: Likewise.
32232         * tree-pretty-print.c: Likewise.
32233         * tree-scalar-evolution.c: Likewise.
32234         * tree-ssa-strlen.c: Likewise.
32235         * tree-vect-loop.c: Likewise.
32236         * tree-vect-patterns.c: Likewise.
32237         * tree-vect-slp.c: Likewise.
32238         * tree-vect-stmts.c: Likewise.
32239         * tsan.c: Likewise.
32240         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32241         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32242         stmt.h.
32243         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32244         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32245         statistics.h stmt.h varasm.h.
32246         * loop-unroll.c: Likewise.
32247         * ubsan.c: Likewise.
32248         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32249         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32250         stmt.h varasm.h.
32251         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32252         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32253         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32254         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32255         statistics.h stmt.h.
32256         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32257         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32258         statistics.h stmt.h varasm.h.
32259         * gimple-match-head.c: Likewise.
32260         * lto-cgraph.c: Likewise.
32261         * lto-section-in.c: Likewise.
32262         * lto-streamer-in.c: Likewise.
32263         * lto-streamer-out.c: Likewise.
32264         * tree-affine.c: Likewise.
32265         * tree-cfg.c: Likewise.
32266         * tree-cfgcleanup.c: Likewise.
32267         * tree-if-conv.c: Likewise.
32268         * tree-into-ssa.c: Likewise.
32269         * tree-ssa-alias.c: Likewise.
32270         * tree-ssa-copyrename.c: Likewise.
32271         * tree-ssa-dse.c: Likewise.
32272         * tree-ssa-forwprop.c: Likewise.
32273         * tree-ssa-live.c: Likewise.
32274         * tree-ssa-math-opts.c: Likewise.
32275         * tree-ssa-pre.c: Likewise.
32276         * tree-ssa-sccvn.c: Likewise.
32277         * tree-tailcall.c: Likewise.
32278         * tree-vect-generic.c: Likewise.
32279         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32280         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32281         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32282         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32283         * varasm.c: Likewise.
32284         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32285         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32286         varasm.h.
32287         * init-regs.c: Likewise.
32288         * ira.c: Likewise.
32289         * omp-low.c: Likewise.
32290         * stack-ptr-mod.c: Likewise.
32291         * tree-ssa-reassoc.c: Likewise.
32292         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32293         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32294         varasm.h.
32295         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32296         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32297         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32298         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32299         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32300         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32301         * tree-ssa-phiopt.c: Likewise.
32302         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32303         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32304         * config/fr30/fr30.c: Likewise.
32305         * config/frv/frv.c: Likewise.
32306         * expr.c: Likewise.
32307         * final.c: Likewise.
32308         * optabs.c: Likewise.
32309         * passes.c: Likewise.
32310         * simplify-rtx.c: Likewise.
32311         * stmt.c: Likewise.
32312         * toplev.c: Likewise.
32313         * var-tracking.c: Likewise.
32314         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32315         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32316         * lower-subreg.c: Likewise.
32317         * postreload-gcse.c: Likewise.
32318         * ree.c: Likewise.
32319         * reginfo.c: Likewise.
32320         * store-motion.c: Likewise.
32321         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32322         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32323         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32324         fixed-value.h hashtab.h statistics.h stmt.h.
32325         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32326         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32327         * except.c: Likewise.
32328         * explow.c: Likewise.
32329         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32330         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32331         varasm.h.
32332         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32333         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32334         * tree-ssa-structalias.c: Likewise.
32335         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32336         fixed-value.h insn-config.h real.h statistics.h.
32337         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32338         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32339         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32340         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32341         * cfgbuild.c: Likewise.
32342         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32343         fixed-value.h real.h rtl.h statistics.h stmt.h.
32344         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32345         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32346         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32347         fixed-value.h real.h statistics.h stmt.h.
32348         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32349         fixed-value.h real.h statistics.h stmt.h varasm.h.
32350         * cprop.c: Likewise.
32351         * modulo-sched.c: Likewise.
32352         * postreload.c: Likewise.
32353         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32354         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32355         statistics.h stmt.h varasm.h.
32356         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32357         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32358         rtl.h statistics.h stmt.h varasm.h.
32359         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32360         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32361         varasm.h.
32362         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32363         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32364         varasm.h.
32365         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32366         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32367         varasm.h.
32368         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32369         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32370         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32371         function.h real.h statistics.h stmt.h varasm.h.
32372         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32373         insn-config.h real.h statistics.h stmt.h.
32374         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32375         statistics.h stmt.h.
32376         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32377         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32378         statistics.h stmt.h varasm.h.
32379         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32380         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32381         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32382         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32383         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32384         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32385         statistics.h stmt.h varasm.h.
32386         * ipa-polymorphic-call.c: Likewise.
32387         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32388         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32389         statistics.h stmt.h.
32390         * config/c6x/c6x.c: Likewise.
32391         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32392         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32393         statistics.h stmt.h varasm.h.
32394         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32395         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32396         stmt.h varasm.h.
32397         * ipa-split.c: Likewise.
32398         * tree-eh.c: Likewise.
32399         * tree-ssa-dce.c: Likewise.
32400         * tree-ssa-loop-niter.c: Likewise.
32401         * tree-vrp.c: Likewise.
32402         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32403         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32404         stmt.h.
32405         * config/nds32/nds32-fp-as-gp.c: Likewise.
32406         * config/nds32/nds32-intrinsic.c: Likewise.
32407         * config/nds32/nds32-isr.c: Likewise.
32408         * config/nds32/nds32-md-auxiliary.c: Likewise.
32409         * config/nds32/nds32-memory-manipulation.c: Likewise.
32410         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32411         * config/nds32/nds32-predicates.c: Likewise.
32412         * config/nds32/nds32.c: Likewise.
32413         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32414         fixed-value.h hashtab.h real.h statistics.h.
32415         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32416         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32417         * config/arm/arm.c: Likewise.
32418         * config/avr/avr.c: Likewise.
32419         * config/bfin/bfin.c: Likewise.
32420         * config/h8300/h8300.c: Likewise.
32421         * config/i386/i386.c: Likewise.
32422         * config/ia64/ia64.c: Likewise.
32423         * config/iq2000/iq2000.c: Likewise.
32424         * config/m32c/m32c.c: Likewise.
32425         * config/m32r/m32r.c: Likewise.
32426         * config/m68k/m68k.c: Likewise.
32427         * config/mcore/mcore.c: Likewise.
32428         * config/mep/mep.c: Likewise.
32429         * config/mips/mips.c: Likewise.
32430         * config/mn10300/mn10300.c: Likewise.
32431         * config/moxie/moxie.c: Likewise.
32432         * config/pa/pa.c: Likewise.
32433         * config/rl78/rl78.c: Likewise.
32434         * config/rx/rx.c: Likewise.
32435         * config/s390/s390.c: Likewise.
32436         * config/sh/sh.c: Likewise.
32437         * config/sparc/sparc.c: Likewise.
32438         * config/spu/spu.c: Likewise.
32439         * config/stormy16/stormy16.c: Likewise.
32440         * config/v850/v850.c: Likewise.
32441         * config/vax/vax.c: Likewise.
32442         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32443         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32444         * config/msp430/msp430.c: Likewise.
32445         * predict.c: Likewise.
32446         * value-prof.c: Likewise.
32447         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32448         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32449         * config/microblaze/microblaze.c: Likewise.
32450         * config/nios2/nios2.c: Likewise.
32451         * config/rs6000/rs6000.c: Likewise.
32452         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32453         insn-config.h real.h rtl.h statistics.h stmt.h.
32454         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32455         insn-config.h real.h statistics.h stmt.h.
32456         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32457         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32458         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32459         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32460         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32461         fixed-value.h real.h statistics.h stmt.h.
32462         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32463         fixed-value.h statistics.h stmt.h.
32464         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32465         stmt.h.
32466
32467 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32468
32469         * gengtype.c (create_user_defined_type): Workaround
32470         -Wmaybe-uninitialized false positives.
32471         * cse.c (fold_rtx): Likewise.
32472         * loop-invariant.c (gain_for_invariant): Likewise.
32473
32474 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32475
32476         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32477         set the memory attributes in all cases but clear MEM_EXPR if need be.
32478
32479 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32480
32481         PR tree-optimization/64434
32482         * cfgexpand.c (reorder_operands): New function.
32483         (expand_gimple_basic_block): Insert call of reorder_operands if
32484         optimized is true.
32485
32486 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32487
32488         * config/mips/micromips.md (*swp): Remove explicit parallel.
32489         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32490         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32491         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32492         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32493         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32494         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32495         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32496         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32497         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32498         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32499         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32500         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32501         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32502         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32503         (mips_wrdsp): Likewise.
32504         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32505         parallel.
32506         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32507         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32508         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32509         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32510         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32511         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32512         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32513         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32514         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32515
32516 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32517
32518         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32519         (mips_print_operand): Support 'y' to print exact log2 in decimal
32520         of a const_int.
32521         * config/mips/mips.h (ISA_HAS_LSA): New define.
32522         (ISA_HAS_DLSA): Likewise.
32523         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32524         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32525
32526 2015-01-15  Martin Liska  <mliska@suse.cz>
32527
32528         PR target/64377
32529         * optc-save-gen.awk: Add support for array types.
32530
32531 2015-01-15  Richard Biener  <rguenther@suse.de>
32532
32533         PR middle-end/64365
32534         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32535         for MEM_REF access functions with the same base can never partially
32536         overlap.
32537
32538 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32539
32540         * common.opt: New option -fstack-protector-explicit.
32541         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32542         (stack_protect_decl_phase): Handle stack_protect attribute for
32543         explicit stack protection requests.
32544         (expand_used_vars): Similarly.
32545         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32546         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32547         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32548
32549 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32550
32551         PR target/53988
32552         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32553         reg-reg copies.
32554         (sh_extending_set_of_reg): New struct.
32555         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32556         sh_remove_reg_dead_or_unused_notes): New Declarations.
32557         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32558         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32559         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32560         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32561         convert to insn_and_split and use new function sh_split_tst_subregs.
32562
32563 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32564
32565         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32566         option.
32567         (Optimization Options): Move -fuse-ld documentation to...
32568         (Link Options): ...here.
32569
32570 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32571
32572         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32573         offsets.
32574         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32575         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32576         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32577         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32578         instead of ZR for the memory operand of LL/SC.
32579         (compare_and_swap_12, sync_add<mode>): Likewise.
32580         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32581         (sync_new_<optab>_12, sync_nand_12): Likewise.
32582         (sync_old_nand_12, sync_new_nand_12): Likewise.
32583         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32584         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32585         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32586         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32587         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32588         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32589         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32590         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32591         * doc/md.texi (ZC): Update description.
32592
32593 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32594
32595         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32596         memory model is CONSUME.
32597         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32598         expand_builtin_atomic_store): Change invalid memory model errors to
32599         warnings.
32600         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32601         and issue warning for CONSUME.
32602
32603 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32604
32605         * lto-cgraph: Update function comments for
32606         lto_symtab_encoder_encode_*.
32607
32608 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32609
32610         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32611
32612 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32613
32614         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32615         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32616         lto_stream_offload_p instead.
32617         * lto-streamer.h (select_what_to_stream): Remove argument.
32618         * passes.c (ipa_write_summaries): Likewise.
32619         * tree-pass.h (ipa_write_summaries): Likewise.
32620
32621 2015-01-14  Richard Biener  <rguenther@suse.de>
32622
32623         PR tree-optimization/59354
32624         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32625         groups larger than the slp group size as having gaps.
32626
32627 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32628
32629         PR middle-end/59448
32630         * builtins.c (get_memmodel): Promote consume to acquire always.
32631
32632 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32633
32634         PR target/64386
32635         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32636         V32HImode.
32637
32638 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32639
32640         PR target/64393
32641         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32642         Enable AVX512BW.
32643         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32644         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32645         AVX512VBMI, as it implies AVX512BW.
32646
32647 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32648
32649         PR target/64387
32650         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32651         (vec_unpacks_hi_v16sf): Ditto.
32652
32653 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32654
32655         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32656         is not available.
32657
32658 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32659
32660         * doc/invoke.texi (mapcs): Mention deprecation.
32661         (mapcs-frame): Likewise.
32662
32663 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32664
32665         PR target/64453
32666         * config/arm/arm.c (callee_saved_reg_p): Define.
32667         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32668         register is callee saved instead of !call_used_regs[reg].
32669         (thumb1_compute_save_reg_mask): Likewise.
32670
32671 2015-01-14  Hale Wang  <hale.wang@arm.com>
32672
32673         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32674         Cortex-M7.
32675
32676 2015-01-14  Richard Biener  <rguenther@suse.de>
32677
32678         PR lto/64415
32679         * tree-inline.c (insert_debug_decl_map): Check destination
32680         function MAY_HAVE_DEBUG_STMTS.
32681         (insert_init_debug_bind): Likewise.
32682         (insert_init_stmt): Remove redundant check.
32683         (remap_gimple_stmt): Drop debug stmts if the destination
32684         function has var-tracking assignments disabled.
32685
32686 2015-01-14  Martin Liska  <mliska@suse.cz>
32687
32688         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32689         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32690
32691 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32692
32693         PR target/64460
32694         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32695         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32696
32697 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32698
32699         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32700         level from an ARCH; do not inject the default.
32701         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32702         MIPS_ISA_LEVEL_SPEC.
32703         (MIPS_ISA_NAN2008_SPEC): Update comment.
32704         (BASE_DRIVER_SELF_SPECS): Likewise.
32705         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32706         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32707         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32708         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32709         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32710
32711 2015-01-14  Richard Biener  <rguenther@suse.de>
32712
32713         PR tree-optimization/64493
32714         PR tree-optimization/64495
32715         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32716         assign the proper vectorized PHI to the inner loop exit PHIs.
32717
32718 2015-01-14  Joey Ye  <joey.ye@arm.com>
32719
32720         * config/arm/arm.c (arm_compute_save_reg_mask):
32721         Do not save lr in case of tail call.
32722         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32723
32724 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32725
32726         * tree-vrp.c (check_array_ref): Emit more warnings
32727         for warn_array_bounds >= 2.
32728         * common.opt: New option -Warray-bounds=.
32729         * doc/invoke.texi: Document -Warray-bounds=.
32730
32731 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32732
32733         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32734         (mforbid-fp-as-gp): Remove.
32735         (mex9): Remove.
32736         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32737         (nds32_symbol_load_store_p): Remove.
32738         (nds32_fp_as_gp_check_available): Clean up implementation.
32739         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32740         cases.
32741         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32742         fp-as-gp and ex9 cases.
32743
32744 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32745
32746         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32747         for bintuils bug 14342.
32748         (init_ic_make_global_vars): Likewise.
32749         (gimple_init_edge_profiler): Likewise.
32750         (gimple_gen_ic_func_profiler): Likewise.
32751
32752 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32753
32754         * ipa-inline.c (inline_small_functions): Swap the operands in
32755         enum.
32756
32757 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32758
32759         PR ipa/64481
32760         * ipa-inline-analysis.c (node_growth_cache): Remove.
32761         (initialize_growth_caches): Do not initialize it.
32762         (free_growth_caches): Do not free it.
32763         (do_estimate_growth): Rename to ...
32764         (estimate_growth): ... this one; drop growth cache code.
32765         (growth_likely_positive): Always go the heuristics way.
32766         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32767         (reset_edge_caches): Do not reset node growth.
32768         (heap_edge_removal_hook): Do not maintain cache.
32769         (inline_small_functions): Likewise; strenghten sanity check.
32770         (ipa_inline): Do not maintain caches.
32771         * ipa-inline.h (node_growth_cache): Remove.
32772         (do_estimate_growth): Remove to ...
32773         (estimate_growth): this one; remove inline version.
32774         (reset_node_growth_cache): Remove.
32775
32776 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32777
32778         PR ipa/64565
32779         * ipa-inline.c (inline_small_functions): Update callee keys after
32780         resolving speculation
32781         (inline_small_functions): Always check monotonicity of the queue.
32782
32783 2015-01-13  Marek Polacek  <polacek@redhat.com>
32784
32785         PR middle-end/64391
32786         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32787
32788 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32789
32790         PR rtl-optimization/64286
32791         * ree.c (combine_reaching_defs): Move part of comment earlier,
32792         remove !SCALAR_INT_MODE_P check.
32793         (add_removable_extension): Don't add vector mode
32794         extensions if all uses of the source register aren't the same
32795         vector extensions.
32796
32797 2015-01-13  Renlin Li  <renlin.li@arm.com>
32798
32799         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32800         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32801
32802 2015-01-13  Martin Liska  <mliska@suse.cz>
32803
32804         * ipa-icf.c (sem_function::equals_private): Call new functions
32805         cl_target_option_print_diff and cl_optimization_print_diff.
32806         * optc-save-gen.awk (cl_target_option_print_diff): New function.
32807         (cl_optimization_print_diff): Likewise.
32808         * opth-gen.awk: Likewise.
32809
32810 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
32811
32812         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32813         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32814         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32815         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32816         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32817         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32818
32819 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32820
32821         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32822         instead of src mode.
32823
32824 2015-01-13  Richard Biener  <rguenther@suse.de>
32825
32826         PR lto/64373
32827         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32828         DECL_CONTEXT.
32829
32830 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32831
32832         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32833         volatile mems.
32834         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32835
32836 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32837
32838         PR middle-end/63974
32839         * cfgexpand.c (expand_computed_goto): Don't call
32840         convert_memory_address here.
32841
32842 2015-01-13  Richard Biener  <rguenther@suse.de>
32843
32844         PR tree-optimization/64406
32845         * tree-loop-distibution.c (pass_loop_distribution::execute):
32846         Reset the SCEV hashtable if we distributed anything.
32847
32848 2015-01-13  Richard Biener  <rguenther@suse.de>
32849
32850         PR tree-optimization/64404
32851         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32852         SLP types for CSEd loads.
32853
32854 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32855
32856         PR tree-optimization/64436
32857         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32858         merge of two symbolic numbers for a bitwise OR to ...
32859         (perform_symbolic_merge): This. Also fix computation of the range and
32860         end of the symbolic number corresponding to the result of a bitwise OR.
32861
32862 2015-01-13  Richard Biener  <rguenther@suse.de>
32863
32864         PR tree-optimization/64568
32865         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32866         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32867
32868 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32869
32870         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32871         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32872
32873 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32874
32875         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32876         target-specific symbol_ref flag.
32877         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32878         resides in rodata section.
32879         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32880         (nds32_encode_section_info): New function.
32881
32882 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32883
32884         * config/nds32/nds32.md (call): Use pseudo instruction bal which
32885         clobbers TA_REGNUM if large code model is specified.
32886         (call_register): Likewise.
32887         (call_immediate): Likewise.
32888         (call_value): Likewise.
32889         (call_value_register): Likewise.
32890         (call_value_immediate): Likewise.
32891
32892 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32893
32894         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32895         (TARGET_CMODEL_MEDIUM): New macro.
32896         (TARGET_CMODEL_LARGE): New macro.
32897         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32898         code model setting in assembly code.
32899
32900 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32901
32902         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32903         Remove MASK_GP_DIRECT flag.
32904         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32905         one of the multilib default options.
32906         * config/nds32/nds32.opt (mgp-direct): Remove.
32907         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32908         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
32909
32910 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32911
32912         * config/nds32/nds32.opt (mcmodel): Add new option.
32913         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32914         to describe code model.
32915
32916 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
32917
32918         PR target/64479
32919         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32920
32921 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
32922
32923         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32924         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32925         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32926         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32927         __builtin_sh_set_fpscr.
32928
32929 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32930
32931         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32932         after a funtion name just to indicate it is a function.
32933         ([-fsanitize-undefined-trap-on-error]): Likewise.
32934         ([-fdbg-cnt=]): Likewise.
32935         ([-mmemcpy]): Likewise.
32936         ([-mflush-func]): Likewise.
32937         ([-msynci]): Likewise.
32938
32939 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32940
32941         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32942         example.
32943
32944 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
32945
32946         PR tree-optimization/64563
32947         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32948         instead of != VR_VARYING.
32949
32950         PR target/64513
32951         * config/i386/i386.c (ix86_expand_prologue): Add
32952         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32953
32954         PR tree-optimization/64454
32955         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32956         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32957         for signed or [0, op1 - 1] for unsigned modulo.
32958         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32959         even if op1 does not satisfy integer_pow2p.
32960
32961         PR other/64370
32962         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32963
32964 2015-01-12  Jeff Law  <law@redhat.com>
32965
32966         PR target/64461
32967         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32968         (trunchiqi2, truncsihi2): Similarly.
32969
32970         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32971         rather than calling F.
32972
32973 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32974
32975         * tsan.c (instrument_expr): Use force_gimple_operand.
32976         Use may_be_nonaddressable_p instead of is_gimple_addressable.
32977
32978 2015-01-12  Richard Biener  <rguenther@suse.de>
32979
32980         PR tree-optimization/64530
32981         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32982         back dr1.
32983
32984 2015-01-12  Richard Biener  <rguenther@suse.de>
32985
32986         PR middle-end/64357
32987         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32988         latches properly.
32989
32990 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32991
32992         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32993         Cortex-A17 tuning parameters.
32994         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32995
32996 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32997
32998         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32999         * config/arm/arm.c (arm_macro_fusion_p): New function.
33000         (arm_macro_fusion_pair_p): Likewise.
33001         (TARGET_SCHED_MACRO_FUSION_P): Define.
33002         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33003         (ARM_FUSE_NOTHING): Likewise.
33004         (ARM_FUSE_MOVW_MOVT): Likewise.
33005         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33006         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33007         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33008         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33009         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33010         arm_cortex_a5_tune): Specify fuseable_ops value.
33011
33012 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33013
33014         PR bootstrap/64561
33015         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33016         test for PIE with copy reloc.
33017         * configure: Regenerated.
33018
33019 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33020
33021         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33022         in gen_rtx_REG.
33023         (arm_tls_descseq_addr): Likewise.
33024         (arm_gen_movmemqi): Likewise.
33025         (arm_expand_epilogue_apcs_frame): Likewise.
33026         (arm_expand_epilogue): Likewise.
33027         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
33028         in gen_rtx_REG.
33029
33030 2015-01-12  Martin Liska  <mliska@suse.cz>
33031
33032         PR ipa/64550
33033         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33034         volatility for correct operands.
33035
33036 2015-01-12  Martin Liska  <mliska@suse.cz>
33037
33038         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33039         indication that a function is not leaf.
33040         (sem_function::compare_polymorphic_p): Likewise.
33041
33042 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33043
33044         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33045         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33046         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33047         fold-const.h, tree-check.h.
33048
33049 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33050
33051         PR ipa/63967
33052         PR ipa/64425
33053         * ipa-inline.c (compute_uninlined_call_time,
33054         compute_inlined_call_time): Use counts for extra precision when
33055         needed possible.
33056         (big_speedup_p): Fix formating.
33057         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33058         (relative_time_benefit): Remove.
33059         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33060         merge guessed and read profile paths.
33061         (inline_small_functions): Count only !optimize_size functions into
33062         initial size; be more lax about sanity check when profile is used;
33063         be sure to update inlined function profile when profile is read.
33064
33065 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
33066
33067         PR ipa/63470
33068         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33069         cost when edge becomes direct.
33070         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33071         is resolved or when introducing new speculation.
33072
33073 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
33074
33075         PR ipa/64551
33076         PR ipa/64552
33077         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33078         '||' to fix typo issue.
33079
33080         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33081         accept and return NULL.
33082
33083 2015-01-12  Martin Liska  <mliska@suse.cz>
33084
33085         * cgraph.c (cgraph_edge::remove_callee): Move function to header
33086         file for being inlined.
33087         (cgraph_set_edge_callee): Delete.
33088         (cgraph_edge::redirect_callee): Move function to header file
33089         for being inlined.
33090         (cgraph_edge::make_direct): Use new function.
33091         (cgraph_edge::dump_edge_flags): New function created from
33092         static dump_edge_flags function.
33093         (cgraph_node::dump): Use new function.
33094         (cgraph_edge::verify_count_and_frequency): New function created
33095         from verify_edge_count_and_frequency.
33096         (cgraph_edge::verify_corresponds_to_fndecl): New function created
33097         from verify_edge_corresponds_to_fndecl.
33098         (verify_edge_corresponds_to_fndecl): Delete.
33099         (cgraph_node::verify_node): Use new function.
33100         * cgraph.h (cgraph_edge::set_callee): New function.
33101         (cgraph_edge::dump_edge_flags): Likewise.
33102         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33103
33104 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
33105
33106         * ipa-utils.c (estimate_function_body_sizes): Do not
33107         free node params when called late with early=true.
33108
33109 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
33110
33111         * doc/md.texi (Instruction Patterns): Rewrite text for
33112         clarity.
33113         (Example): Likewise.
33114
33115 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
33116
33117         * doc/invoke.texi (Option Summary): Break long lines.
33118         [(-fdiagnostics-color)]: Put long literal in @smallexample
33119         instead of inline.
33120         [(-fsanitize-recover)]: Likewise.
33121         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33122         [(-ffast-math)]: Likewise.
33123         [(--param max-inline-insns-recursive)]: Likewise.
33124         [(--param max-inline-recursive-depth)]: Likewise.
33125         [(-mno-text-section-literals)]: Likewise.
33126
33127 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33128
33129         * doc/install.texi: Update for libgomp being renamed from "GNU
33130         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33131         Runtime Library".
33132         * doc/sourcebuild.texi: Likewise.
33133
33134 2015-01-10  Anthony Green  <green@moxielogic.com>
33135
33136         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33137         mul.x availability for moxiebox configuration.
33138
33139 2015-01-09  Anthony Green  <green@moxielogic.com>
33140
33141         * config/moxie/moxie.md: Tabify assembly output.
33142
33143 2015-01-09  Anthony Green  <green@moxielogic.com>
33144
33145         * config/moxie/moxie.md (CC_REG): Correct register definition.
33146
33147 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33148
33149         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33150         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33151         of log files.
33152
33153 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33154
33155         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33156
33157 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33158             Jakub Jelinek  <jakub@redhat.com>
33159
33160         PR middle-end/64412
33161         * lto-streamer.h (lto_stream_offload_p): New declaration.
33162         * lto-streamer.c (lto_stream_offload_p): New variable.
33163         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33164         at the same time as section_name_prefix.
33165         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33166         if lto_stream_offload_p.
33167         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33168         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33169         (write_ts_function_decl_tree_pointers): Don't
33170         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33171         * tree-streamer-in.c (unpack_value_fields): Don't stream
33172         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33173         (lto_input_ts_function_decl_tree_pointers): Don't stream
33174         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33175         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33176         instead of section_name_prefix string comparisons.
33177
33178 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33179
33180         PR rtl-optimization/64536
33181         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33182         tablejumps.
33183
33184 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33185
33186         PR tree-optimization/64322
33187         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33188         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33189
33190 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33191
33192         PR rtl-optimization/64539
33193         * regcprop.c (kill_clobbered_values): Factor out of ...
33194         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33195         instead of note_stores with kill_clobbered_value.
33196
33197 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33198
33199          * ginclude/unwind-arm-common.h: Revert previous commit.
33200
33201 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33202
33203         * config.gcc (arm*-*-freebsd*): New configuration.
33204         * config/arm/freebsd.h: New file.
33205         * config.host: Add extra components for arm*-*-freebsd*.
33206         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33207         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33208
33209 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33210
33211         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33212         for -mcpu=e6500.
33213         * config/rs6000/t-rtems: Add e6500 multilibs.
33214
33215 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33216
33217         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33218         MPC8540.
33219
33220 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33221
33222         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33223         MULTILIB_EXCEPTIONS.
33224
33225 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33226
33227         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33228         MULTILIB_EXCEPTIONS.
33229
33230 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33231
33232         * config/arm/t-rtems-eabi: Rename to...
33233         * config/arm/t-rtems: ...this.
33234         * config/arm/rtems-eabi.h: Rename to...
33235         * config/arm/rtems.h: ...this.
33236         * config.gcc (arm*-*-rtems*): Reflect changes above.
33237
33238 2015-01-09  Richard Biener  <rguenther@suse.de>
33239
33240         PR tree-optimization/64410
33241         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33242         on the LHS.
33243         (execute_update_addresses_taken): Deal with that.
33244         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33245         loads/stores for complex variables.
33246
33247 2015-01-09  Martin Liska  <mliska@suse.cz>
33248
33249         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33250         name comparison.
33251         (func_checker::compare_memory_operand): New function.
33252         (func_checker::compare_operand): Split case to newly
33253         added functions.
33254         (func_checker::compare_cst_or_decl): New function.
33255         (func_checker::compare_gimple_call): Identify
33256         memory operands.
33257         (func_checker::compare_gimple_assign): Likewise.
33258         * ipa-icf-gimple.h: New function.
33259
33260 2015-01-09  Martin Liska  <mliska@suse.cz>
33261
33262         PR ipa/64503
33263         * sreal.c (sreal::dump): Change unsigned format to signed for
33264         m_exp value.
33265         (sreal::to_double): Replace exp2 with scalbln.
33266
33267 2015-01-09  Martin Liska  <mliska@suse.cz>
33268
33269         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33270         * ipa-icf.c (sem_function::equals_private): Add support for target and
33271         (sem_item_optimizer::merge_classes): Remove redundant function
33272         optimization flags comparison.
33273         * tree.h (target_opts_for_fn): New function.
33274
33275 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33276
33277         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33278
33279 2015-01-09  Kito Cheng  <kito@0xlab.org>
33280
33281         PR rtl-optimization/64348
33282         * lra-constraints.c (split_reg): Fix caller-save store/restore
33283         instruction generation.
33284
33285 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33286
33287         PR gcov-profile/61790
33288         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33289         long long.  Fallback to int64_t if host doesn't have long long and
33290         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33291
33292 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33293
33294         PR tree-optimization/63989
33295         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33296         from 1000 to 10000.
33297         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33298         (get_stridx): If we don't have a record for certain SSA_NAME,
33299         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33300         constant offset, call get_stridx_plus_constant.
33301         (get_stridx_plus_constant): New function.
33302         (zero_length_string): Don't use get_stridx here.
33303
33304         PR target/55023
33305         PR middle-end/64388
33306         * dse.c (struct insn_info): Mention frame_read set also
33307         before reload for tail calls on some targets.
33308         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33309         also before reload for tail calls if
33310         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33311         instead of add_non_frame_wild_read for non-const/memset
33312         tail calls after reload.
33313
33314 2015-01-08  Jason Merrill  <jason@redhat.com>
33315
33316         * ubsan.c (do_ubsan_in_current_function): New.
33317         (pass_ubsan::gate): Use it.
33318         * ubsan.h: Declare it.
33319         * convert.c (convert_to_integer): Use it.
33320
33321 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33322
33323         PR target/64338
33324         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33325         compare_code when it is unconditionally overwritten afterwards.
33326         Use ix86_reverse_condition instead of reverse_condition.  Don't
33327         change code if *reverse_condition* returned UNKNOWN and don't
33328         swap ct/cf and negate diff in that case.
33329
33330 2015-01-08  Mike Stump  <mikestump@comcast.net>
33331
33332         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33333         (pass_tsan_O0::gate): Likewise.
33334         * extend.texi (Function Attributes): Add no_sanitize_thread
33335         documentation.
33336
33337 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33338
33339         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33340         for registering builtins.
33341         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33342         add -fopenmp to the argv_obstack used when invoking
33343         compile_for_target.
33344
33345         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33346         add "-m32" or "-m64" to argv_obstack.
33347         (generate_host_descr_file): Likewise, when invoking host_compiler.
33348         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33349         ld.
33350
33351 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33352
33353         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33354         tstsi_t insns.
33355
33356 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33357
33358         PR target/55212
33359         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33360         constant load if constant operand fits into I08.
33361
33362 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33363
33364         PR sanitizer/64336
33365         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33366         and TREE_THIS_VOLATILE for MEM_REFs.
33367         (build5_stat): Fix up initialization of TREE_READONLY and
33368         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33369
33370 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33371
33372         PR target/64533
33373         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33374         of r for the second alternative of the destination operand.
33375
33376 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33377
33378         PR target/36557
33379         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33380
33381 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33382
33383         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33384         keywords.
33385         ([-fivar-visibility], [-fvisibility]): Likewise.
33386
33387 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33388
33389         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33390         the file where @code, @command, etc is more appropriate.
33391
33392 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33393
33394         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33395         of -mrecip= documentation.
33396
33397 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33398
33399         PR target/64505
33400         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33401         correct reload handler if -m32 -mpowerpc64 is used.
33402
33403 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33404
33405         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33406
33407 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33408
33409         PR target/64507
33410         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33411
33412 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33413
33414         PR tree-optimization/63259
33415         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33416         if optab exists for 16bit byteswap.
33417
33418 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33419
33420         * opts.c (common_handle_option): Add support for
33421         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33422         * doc/invoke.texi: Document -fno-sanitize=all,
33423         -f{,no-}sanitize-recover=all.  Document that
33424         -fsanitize=float-cast-overflow is not enabled
33425         by -fsanitize=undefined.  Fix up documentation
33426         of -f{,no-}sanitize-recover.
33427
33428 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33429
33430         * config.gcc: Add Visium support.
33431         * configure.ac: Likewise.
33432         * configure: Regenerate.
33433         * doc/extend.texi (interrupt attribute): Add Visium.
33434         * doc/invoke.texi: Document Visium options.
33435         * doc/install.texi: Document Visium target.
33436         * doc/md.texi: Document Visium constraints.
33437         * common/config/visium: New directory.
33438         * config/visium: Likewise.
33439
33440 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33441
33442         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33443         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33444
33445 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33446
33447         * combine.c (combine_validate_cost): Do not count the cost of a
33448         split I2 twice.  Do not display it twice in the dump, either.
33449
33450 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33451
33452         Revert parts of r219199.
33453         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33454         <inttypes.h>.
33455         ([-Wtraditional]): Restore markup on <limits.h>.
33456
33457 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33458
33459         PR c++/31397
33460         * doc/invoke.texi: Document -Wsuggest-override.
33461
33462 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33463
33464         PR rtl-optimization/64287
33465         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33466         (process_options): Disable flag_ipa_ra if profiling.
33467
33468 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33469
33470         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33471
33472 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33473
33474         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33475         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33476         put under #if TARGET_LOOPS guard.
33477
33478 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33479
33480         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33481
33482 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33483
33484         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33485         * rtl.h (refers_to_regno_p): Add overload.
33486         * cse.c: Use it.
33487         * bt-load.c: Likewise.
33488         * combine.c: Likewise.
33489         * df-scan.c: Likewise.
33490         * sched-deps.c: Likewise.
33491         * config/s390/s390.c: Likewise.
33492         * config/m32r/m32r.c: Likewise.
33493         * config/rs6000/spe.md: Likewise.
33494         * config/rs6000/rs6000.c: Likewise.
33495         * config/pa/pa.c: Likewise.
33496         * config/stormy16/stormy16.c: Likewise.
33497         * config/cris/cris.c: Likewise.
33498         * config/arc/arc.md: Likewise.
33499         * config/arc/arc.c: Likewise.
33500         * config/sh/sh.md: Likewise.
33501         * config/sh/sh.c: Likewise.
33502         * config/frv/frv.c: Likewise.
33503
33504 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33505
33506         PR sanitizer/64265
33507         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33508         call as cleanup of the whole body.
33509         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33510         * tsan.c (replace_func_exit): New function.
33511         (instrument_func_exit): Moved earlier.
33512         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33513         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33514         been found.
33515         (tsan_pass): Don't call instrument_func_exit.
33516         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33517         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33518         inlining.
33519
33520         PR sanitizer/64344
33521         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33522         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33523         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33524         if the result is integer_zerop, return NULL_TREE.
33525         * convert.c (convert_to_integer): Pass expr as ARG.
33526
33527         PR tree-optimization/64465
33528         * tree-inline.c (redirect_all_calls): During inlining
33529         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33530         changed the stmt to a non-throwing call.
33531
33532 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33533
33534         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33535         etc markup throughout the file.
33536
33537 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33538
33539         Enable experimental TSAN support for Ada.
33540         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33541
33542 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33543
33544         PR tree-optimization/64494
33545         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33546         clear SSA_NAME_ANTI_RANGE_P flag.
33547
33548 2015-01-05  Marek Polacek  <polacek@redhat.com>
33549
33550         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33551
33552 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33553
33554         Update copyright years.
33555
33556         * gcc.c (process_command): Update copyright notice dates.
33557         * gcov-dump.c: Ditto.
33558         * gcov.c: Ditto.
33559         * doc/cpp.texi: Bump @copying's copyright year.
33560         * doc/cppinternals.texi: Ditto.
33561         * doc/gcc.texi: Ditto.
33562         * doc/gccint.texi: Ditto.
33563         * doc/gcov.texi: Ditto.
33564         * doc/install.texi: Ditto.
33565         * doc/invoke.texi: Ditto.
33566
33567         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33568
33569 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33570
33571         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33572         verb tense, etc.
33573         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33574         ([-Wabi]): Likewise.
33575         ([-fmessage-length]): Likewise.
33576         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33577         ([-Wno-discarded-qualifiers]): Likewise.
33578         ([-Wnodiscarded-array-qualifiers]): Likewise.
33579         ([-Wno-virtual-move-assign]): Likewise.
33580         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33581         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33582         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33583         ([-fsanitize-undefined-trap-on-error]): Likewise.
33584         ([-floop-interchange]): Likewise.
33585         ([-ftree-coalesce-inlined-vars]): Likewise.
33586         ([-fvect-cost-model]): Likewise.
33587         ([-flto]): Likewise.
33588         ([--param]): Likewise.
33589         (Spec Files): Likewise.
33590         ([-mstrict-align]): Likewise.
33591         ([-mfix-cortex-a53-835769]): Likewise.
33592         ([-march], [-mtune]): Likewise.
33593         ([-mpic-register]): Likewise.
33594         ([-munaligned-access]): Likewise.
33595         ([-msp8]): Likewise.
33596         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33597         (AVR Built-in Macros): Likewise.
33598         ([-mpreferred-stack-boundary]): Likewise.
33599         ([-mtune-crtl]): Likewise.
33600         ([-mashf]): Likewise.
33601         ([-mmcu=]): Likewise.
33602         ([-minrt]): Likewise.
33603         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33604         ([-mupper-regs]): Likewise.
33605         ([-matomic-model]): Likewise.
33606         ([-mdiv]): Likewise.
33607         ([-mzdcbranch]): Likewise.
33608         ([-mdisable-callt]): Likewise.
33609         ([-msoft-float]): Likewise.
33610         ([-m8byte-align]): Likewise.
33611         ([-fstack-reuse]): Likewise.
33612
33613 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33614
33615         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33616         Fix markup, light copy-editing.
33617         ([-fauto-profile]): Rewrite to fix formatting and content
33618         problems.
33619
33620 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33621
33622         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33623         Copy-edit description.
33624         ([-fisolate-erroneous-paths-attribute]): Likewise.
33625         * common.opt (fisolate-erroneous-paths-dereference):
33626         Copy-edit description.
33627         (fisolate-erroneous-paths-attribute): Likewise.
33628
33629 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33630
33631         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33632         tidy grammar.
33633
33634 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33635
33636         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33637         ([-fvtv-debug]): Likewise.
33638         ([-Wc++-compat]): Likewise.
33639         ([-Wc++11-compat]): Likewise.
33640         ([-Wc++14-compat]): Likewise.
33641         ([-Wno-sized-deallocation]): Likewise.
33642         ([-femit-class-debug-always]): Likewise.
33643         ([-femit-struct-debug-detailed]): Likewise.
33644         ([-fno-keep-inline-dllexport]): Likewise.
33645         ([-fira-algorithm]): Likewise.
33646         ([-fira-region]): Likewise.
33647         ([-flra-remat]): Likewise.
33648         ([-fipa-ra]): Likewise.
33649         ([-fhoist-adjacent-loads]): Likewise.
33650         ([-fisolate-erroneous-paths-dereference]): Likewise.
33651         ([-fisolate-erroneous-paths-attribute]): Likewise.
33652         ([-ftree-switch-conversion]): Likewise.
33653         ([-ftree-tail-merge]): Likewise.
33654         ([-ftree-loop-if-convert]): Likewise.
33655         ([-ftree-loop-if-convert-stores]): Likewise.
33656         ([-ftree-loop-distribution]): Likewise.
33657         ([-ftree-loop-distribute-patterns]): Likewise.
33658         ([-flto-compression-level]): Likewise.
33659         ([-flto-report]): Likewise.
33660         ([-flto-report-wpa]): Likewise.
33661         ([-fuse-linker-plugin]): Likewise.
33662         ([-mfix-cortex-a53-835769]): Likewise.
33663         ([-mno-fix-cortex-a53-835769]): Likewise.
33664         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33665         explicit listing; add a note to the discussion indicating they
33666         exist.  Reorder table to group similar options.  Add missing
33667         @opindex entries.  Add @need commands throughout the table to
33668         allow it to be split across multiple pages.
33669         ([-m8bit-idiv]): Fix @opindex.
33670         ([-mavx256-split-unaligned-load]): Likewise.
33671         ([-mavx256-split-unaligned-store]): Likewise.
33672         ([-mstack-protector-guard]): Likewise.
33673         ([-mcpu=]): Likewise.
33674         ([-mcpu]): Likewise.
33675         ([-mpointer-size=]): Likewise.
33676
33677 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33678
33679         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33680         instead of `m' constraint.  Likewise for unnamed movb comparison
33681         patterns using reg_before_reload_operand predicate.
33682         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33683         predicate to reject register index and LO_SUM DLT memory forms
33684         after reload.
33685
33686 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33687
33688         * doc/invoke.texi (Option Summary): Fix spelling of
33689         -fdevirtualize-at-ltrans.
33690         ([-fdevirtualize]): Fix markup.
33691         ([-fdevirtualize-speculatively]): Fix typo.
33692         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33693         implementor-speaky.
33694         * common.opt (fdevirtualize-at-ltrans): Likewise.
33695         * ipa-devirt.c: Fix typos in comments throughout the file.
33696         (ipa_devirt): Fix typos in format strings for dump output.
33697
33698 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33699
33700         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33701         discussion of defaults, light copy-editing.
33702
33703 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33704
33705         * tsan.c (instrument_expr): corrected previous checkin.
33706
33707 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33708
33709         Instrument bit field and unaligned accesses for TSAN.
33710         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33711         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33712         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33713         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33714         unaligned memory regions.
33715
33716 2015-01-01  Anthony Green  <green@moxielogic.com>
33717
33718         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33719         Restrict move source register offsets to 16 bits.
33720 \f
33721 Copyright (C) 2015 Free Software Foundation, Inc.
33722
33723 Copying and distribution of this file, with or without modification,
33724 are permitted in any medium without royalty provided the copyright
33725 notice and this notice are preserved.