re PR tree-optimization/58497 (SLP vectorizes identical operations)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-10-22  Richard Biener  <rguenther@suse.de>
2
3         PR tree-optimization/58497
4         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5         (expand_vector_operations_1): Use it.  Lower operations on
6         all uniform vectors to scalar operations if the HW supports it.
7
8 2015-10-22  Richard Biener  <rguenther@suse.de>
9
10         PR tree-optimization/19049
11         PR tree-optimization/65962
12         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
13         to strided accesses if single-element interleaving doesn't work.
14
15 2015-10-22  Richard Biener  <rguenther@suse.de>
16
17         PR middle-end/68046
18         PR middle-end/61893
19         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
20         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
21         (expand_unop): Likewise.
22
23 2015-10-22  Richard Biener  <rguenther@suse.de>
24
25         * fold-const.c (fold_addr_of_array_ref_difference): Properly
26         convert operands before folding a MINUS_EXPR.
27         (fold_binary_loc): Move simplification of MINUS_EXPR on
28         converted POINTER_PLUS_EXPRs ...
29         * match.pd: ... here.
30
31 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
32
33         * builtins.c (fold_builtin_tan): Delete.
34         (fold_builtin_1): Handle constant tan arguments here.
35         * match.pd: Simplify (tan (atan x)) to x.
36
37 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
38
39         * builtins.c (fold_builtin_cproj): Delete.
40         (fold_builtin_1): Handle constant arguments here.
41         (build_complex_cproj): Move and rename to...
42         * tree.c: (build_complex_inf): ...this.
43         * tree.h (build_complex_inf): Declare.
44         * match.pd: Fold cproj(x)->x if x has no infinity.
45         Use build_complex_inf for existing cproj rules.
46
47 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
48
49         PR target/68015
50         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
51         already have a comparison result.
52
53 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
54
55         PR target/63304
56         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
57         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
58         (aarch64_classify_address): Likewise.
59         (aarch64_secondary_reload): Likewise.
60         (aarch64_override_options_after_change_1): Adjust.
61         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
62         Use aarch64_nopcrelative_literal_loads.
63         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
64         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
65         Declare.
66
67 2015-10-21  Martin Sebor  <msebor@redhat.com>
68
69         PR driver/68043
70         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
71         (print_filtered_help): Reference aliased option's name and encourage
72         readers to use it in preference to the alias if the former is not
73         documented.  Mention when using an option is diagnosed.
74         * gcc.c (display_help): End each sentence with a period.
75
76         * ada/gcc-interface/lang.opt: End each sentence that describes
77         an option with a period.
78         * c-family/c.opt: Same.
79         * common.opt: Same.
80         * config/aarch64/aarch64.opt: Same.
81         * config/alpha/alpha.opt: Same.
82         * config/arc/arc.opt: Same.
83         * config/arm/arm.opt: Same.
84         * config/avr/avr.opt: Same.
85         * config/bfin/bfin.opt: Same.
86         * config/c6x/c6x.opt: Same.
87         * config/cr16/cr16.opt: Same.
88         * config/cris/cris.opt: Same.
89         * config/cris/linux.opt: Same.
90         * config/darwin.opt: Same.
91         * config/epiphany/epiphany.opt: Same.
92         * config/fr30/fr30.opt: Same.
93         * config/frv/frv.opt: Same.
94         * config/ft32/ft32.opt: Same.
95         * config/g.opt: Same.
96         * config/h8300/h8300.opt: Same.
97         * config/i386/cygming.opt: Same.
98         * config/i386/djgpp.opt: Same.
99         * config/i386/i386.opt: Same.
100         * config/i386/interix.opt: Same.
101         * config/i386/mingw-w64.opt: Same.
102         * config/i386/mingw.opt: Same.
103         * config/ia64/ia64.opt: Same.
104         * config/ia64/ilp32.opt: Same.
105         * config/iq2000/iq2000.opt: Same.
106         * config/linux.opt: Same.
107         * config/lm32/lm32.opt: Same.
108         * config/lynx.opt: Same.
109         * config/m32c/m32c.opt: Same.
110         * config/m32r/m32r.opt: Same.
111         * config/m68k/ieee.opt: Same.
112         * config/m68k/m68k.opt: Same.
113         * config/mcore/mcore.opt: Same.
114         * config/mep/mep.opt: Same.
115         * config/microblaze/microblaze.opt: Same.
116         * config/mips/mips.opt: Same.
117         * config/mmix/mmix.opt: Same.
118         * config/mn10300/mn10300.opt: Same.
119         * config/moxie/moxie.opt: Same.
120         * config/msp430/msp430.opt: Same.
121         * config/nios2/elf.opt: Same.
122         * config/nios2/nios2.opt: Same.
123         * config/nvptx/nvptx.opt: Same.
124         * config/pa/pa-hpux.opt: Same.
125         * config/pa/pa-hpux1010.opt: Same.
126         * config/pa/pa-hpux1111.opt: Same.
127         * config/pa/pa-hpux1131.opt: Same.
128         * config/pa/pa.opt: Same.
129         * config/pa/pa64-hpux.opt: Same.
130         * config/pdp11/pdp11.opt: Same.
131         * config/rl78/rl78.opt: Same.
132         * config/rs6000/476.opt: Same.
133         * config/rs6000/aix64.opt: Same.
134         * config/rs6000/darwin.opt: Same.
135         * config/rs6000/linux64.opt: Same.
136         * config/rs6000/rs6000.opt: Same.
137         * config/rs6000/sysv4.opt: Same.
138         * config/s390/s390.opt: Same.
139         * config/s390/tpf.opt: Same.
140         * config/sh/sh.opt: Same.
141         * config/sol2.opt: Same.
142         * config/sparc/long-double-switch.opt: Same.
143         * config/sparc/sparc.opt: Same.
144         * config/spu/spu.opt: Same.
145         * config/stormy16/stormy16.opt: Same.
146         * config/tilegx/tilegx.opt: Same.
147         * config/tilepro/tilepro.opt: Same.
148         * config/v850/v850.opt: Same.
149         * config/vax/vax.opt: Same.
150         * config/visium/visium.opt: Same.
151         * config/vms/vms.opt: Same.
152         * config/vxworks.opt: Same.
153         * config/xtensa/xtensa.opt: Same.
154         * fortran/lang.opt: Same.
155
156 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
157             Sebastian Pop  <s.pop@samsung.com>
158
159         * graphite-scop-detection.c (parameter_index_in_region): Update call to
160         invariant_in_sese_p_rec.
161         * graphite-sese-to-poly.c (extract_affine): Same.
162         * sese.c (invariant_in_sese_p_rec): Pass in an extra
163         parameter has_vdefs.
164         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
165         variable depends on virtual definitions in the current region.
166         * sese.h (invariant_in_sese_p_rec): Update declaration.
167
168 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
169             Sebastian Pop  <s.pop@samsung.com>
170
171         * graphite-scop-detection.c (build_scops): Do not handle scops
172         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
173         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
174
175 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
176
177         * config.in: Regenerate.
178         * configure: Regenerate.
179         * configure.ac (CHECKING_P): Define.
180         * system.h: Use CHECKING_P.
181
182 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
183
184         PR ipa/67056
185         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
186         is negative we don't know the type.
187         (check_stmt_for_type_change): Skip constructors of non-polymorphic
188         types as those won't help devirutalization.
189
190 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
191
192         * fold-const.c (operand_equal_p): Add code matching empty constructors.
193
194 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
195
196         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
197         comments.
198         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
199         Add comments on sign of the result.
200         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
201         Recurse on operand #1 instead of operand #0.
202         <CEIL_MOD_EXPR>: Do not recurse.
203         <ROUND_MOD_EXPR>: Likewise.
204
205 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
206
207         * cfgrtl.c (pass_free_cfg::execute): Adjust.
208         * final.c (dbr_sequence_length): Always define.
209         (shorten_branches): Adjust.
210         * genattr-common.c (main): Always define DELAY_SLOTS.
211         * genattr.c (main): Unconditionally declare functions and define
212         macros related to delay slots.
213         * genattrtab.c (write_eligible_delay): Adjust.
214         (main): Always write out delay slot functions.
215         * opts.c (default_options_table): Adjust.
216         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
217         (redirect_with_delay_list_safe_p): Likewise.
218         (fill_simple_delay_slots): Likewise.
219         (fill_slots_from_thread): Likewise.
220         (make_return_insns): Likewise.
221         (dbr_schedule): Likewise.
222         (rest_of_handle_delay_slots): Likewise.
223         (pass_delay_slots::gate): Likewise.
224         * toplev.c (process_options): Likewise.
225
226 2015-10-21  Richard Henderson  <rth@redhat.com>
227
228         * targhooks.c (default_addr_space_pointer_mode): Remove check
229         for generic address space.
230         (default_addr_space_address_mode): Likewise.
231         (default_addr_space_valid_pointer_mode): Likewise.
232         (default_addr_space_legitimate_address_p): Likewise.
233         (default_addr_space_legitimize_address): Likewise.
234         * target.def (addr_space.pointer_mode): Update documentation
235         of default behavior.
236         (addr_space.address_mode): Likewise.
237         * tm.texi: Update.
238
239         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
240         address spaces.
241
242 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
243
244         * builtins.c (fold_builtin_cabs): Delete.
245         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
246         * match.pd: Add rules previously handled by fold_builtin_cabs.
247
248 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
249
250         * fold-const.h (fold_strip_sign_ops): Delete.
251         * fold-const.c (fold_strip_sign_ops): Likewise.
252         (fold_unary_loc, fold_binary_loc): Remove calls to it.
253         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
254         (fold_builtin_ccos): Delete.
255         (fold_builtin_pow): Don't call fold_strip_sign_ops.
256         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
257         Remove fndecl argument.
258         (fold_builtin_1): Update calls accordingly.  Handle constant
259         cos, cosh, ccos and ccosh here.
260
261 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
262
263         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
264         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
265         * common.opt (fssa-backprop): New option.
266         * fold-const.h (negate_mathfn_p): Declare.
267         * fold-const.c (negate_mathfn_p): Make public.
268         * timevar.def (TV_TREE_BACKPROP): New.
269         * tree-pass.h (make_pass_backprop): Declare.
270         * passes.def (pass_backprop): Add.
271         * gimple-ssa-backprop.c: New file.
272
273 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
274             Sebastian Pop  <s.pop@samsung.com>
275
276         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
277         Do not call create_empty_if_region_on_edge when cond_expr is true.
278         (translate_isl_ast_node_for): Check whether a guard has been generated.
279
280 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
281
282         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
283         (operator=): Removed.
284         (dr_info): Make alias_set number the last argument with default
285         value of invalid_alias_set.
286         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
287         of dr_info.
288         (rewrite_reductions_out_of_ssa): Iterate only through the
289         basic blocks which are inside region.
290         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
291         * sese.h (struct sese_l): Removed assignment operator.
292         (split_region_for_bb): Removed dead code.
293
294 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
295
296         * graphite-poly.h (struct dr_info): Removed conversion constructor.
297         (struct scop): Renamed scop::region to scop::scop_info
298         (scop_set_region): Same.
299         (SCOP_REGION): Removed
300         (SCOP_CONTEXT): Removed.
301         (POLY_SCOP_P): Removed.
302         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
303         Rename scop->region to scop->scop_info.
304         (add_parameters_to_ivs_params): Same.
305         (graphite_regenerate_ast_isl): Same.
306         * graphite-poly.c (new_scop): Same.
307         (free_scop): Same.
308         (print_scop_params): Same.
309         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
310         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
311         (dot_all_scops_1): Rename scop->region to scop->scop_info.
312         (scop_detection::nb_pbbs_in_loops): Same.
313         (find_scop_parameters): Same.
314         (try_generate_gimple_bb): Same.
315         (gather_bbs::before_dom_children): Same.
316         (gather_bbs::after_dom_children): Same.
317         (build_scops): Same.
318         * graphite-sese-to-poly.c (build_scop_scattering): Same.
319         (extract_affine_chrec): Same.
320         (extract_affine): Same.
321         (set_scop_parameter_dim): Same.
322         (build_loop_iteration_domains): Same.
323         (create_pw_aff_from_tree): Same.
324         (add_param_constraints): Same.
325         (build_scop_iteration_domain): Same.
326         (build_scop_drs): Same.
327         (analyze_drs_in_stmts): Same.
328         (insert_out_of_ssa_copy_on_edge): Same.
329         (rewrite_close_phi_out_of_ssa):Same.
330         (rewrite_reductions_out_of_ssa):Same.
331         (handle_scalar_deps_crossing_scop_limits):Same.
332         (rewrite_cross_bb_scalar_deps):Same.
333         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
334         (build_poly_scop):Same.
335         (build_alias_set): Use pointer to dr_info.
336         * graphite.c (print_graphite_scop_statistics):
337         (graphite_transform_loops):
338         * sese.h (struct sese_l): Remove conversion constructor.
339
340 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
341
342         PR middle-end/67966
343         * tree.c (verify_type): Verify that TYPE_MODE match
344         between TYPE_CANONICAL and type.
345         * expr.c (store_expr_with_bounds): Revert my previous change.
346         * expmed.c (store_bit_field_1): Revert prevoius change.
347         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
348         to match for all types.
349
350 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
351
352         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
353         nesting.
354
355 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
356
357         * doc/tm.texi: Regenerated.
358         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
359         * stor-layout.c (layout_type): Use mode to get vector mask size.
360         * target.def (get_mask_mode): New.
361         * targhooks.c (default_get_mask_mode): New.
362         * targhooks.h (default_get_mask_mode): New.
363         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
364         for boolean vector.
365         * tree.c (MAX_BOOL_CACHED_PREC): New.
366         (nonstandard_boolean_type_cache): New.
367         (build_nonstandard_boolean_type): New.
368         (make_vector_type): Vector mask has no canonical type.
369         (build_truth_vector_type): New.
370         (build_same_sized_truth_vector_type): New.
371         (truth_type_for): Support vector masks.
372         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
373         (build_truth_vector_type): New.
374         (build_same_sized_truth_vector_type): New.
375         (build_nonstandard_boolean_type): New.
376         * tree-cfg.c (verify_gimple_comparison) Require boolean
377         vector type for vector comparison.
378         (verify_gimple_assign_ternary): Likewise.
379         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
380         condition operand.
381         * tree-vect-stmts.c (vectorizable_condition): Use boolean
382         vector type for vector comparison.
383         * tree-vect-generic.c (elem_op_func): Add new operand to hold
384         vector type.
385         (do_unop): Adjust to modified function type.
386         (do_binop): Likewise.
387         (do_plus_minus): Likewise.
388         (do_negate); Likewise.
389         (expand_vector_piecewise): Likewise.
390         (do_cond): Likewise.
391         (do_compare): Use comparison instead of condition.
392         (expand_vector_divmod): Use boolean vector type for comparison.
393         (expand_vector_operations_1): Skip scalar mask operations.
394
395 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
396
397         * omp-low.c (simd_clone_create): Set in_other_partition
398         for created clones.
399
400 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
401
402         * doc/extend.exp (Local Register Variables): Rewrite.
403
404 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
405
406         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
407         and x*x in cases where the operands are sign ops.  Extend these
408         rules to handle copysign as a sign op (including for cos, cosh
409         and pow, which already treated negate and abs as sign ops).
410
411 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
412
413         PR target/68018
414         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
415         for 64-bit MS_ABI targets also when default incoming stack boundary
416         is overriden.
417
418 2015-10-21  Richard Biener  <rguenther@suse.de>
419
420         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
421         cond stmts, enhanced and split out from ...
422         (vn_phi_eq): ... here.
423
424 2015-10-21  Richard Biener  <rguenther@suse.de>
425
426         PR middle-end/68031
427         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
428         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
429         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
430         make sure they are not registered for update.
431
432 2015-10-21  Richard Biener  <rguenther@suse.de>
433
434         PR tree-optimization/68026
435         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
436         unsigned VARYING values.
437
438 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
439
440         * asan.c (asan_emit_stack_protection): Don't pass local stack to
441         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
442         NULL and use local stack than.
443         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
444         in addition to __asan_init.
445         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
446         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
447         * asan.h (asan_intercepted_p): Handle new string builtins.
448         * ubsan.c (ubsan_use_new_style_p): New function.
449         (ubsan_instrument_float_cast): If location is unknown, assign
450         input_location to loc. Propagate loc to ubsan_create_data if
451         ubsan_use_new_style_p returned true.
452
453 2015-10-21  Jeff Law  <law@redhat.com>
454
455         * Makefile.in (OBJS): Remove sched-vis.c
456         * sched-vis.c: Removed.  Code moved into...
457         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
458         * rtl.h: Remove prototypes for functions now living in print-rtl.c
459         * print-rtl.h Add prototypes for new functions in print-rtl.c.
460         * auto-inc-dec.c: Include print-rtl.h
461         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
462         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
463
464         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
465         ATTRIBUTE_UNUSED.
466
467 2015-10-21  Richard Biener  <rguenther@suse.de>
468             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
469
470         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
471         to match.pd.
472         Move (a * (1 << b)) is (a << b) to match.pd.
473         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
474         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
475         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
476
477         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
478         New simplifier.
479         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
480         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
481         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
482         : New simplifier.
483         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
484         New simplifier.
485         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
486
487 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
488             Szabolcs Nagy  <szabolcs.nagy@arm.com>
489             Alan Modra  <amodra@gmail.com>
490
491         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
492         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
493         (LINK_SPEC): Add %(link_secure_plt).
494         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
495         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
496
497 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
498             Szabolcs Nagy  <szabolcs.nagy@arm.com>
499
500         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
501         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
502
503 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
504
505         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
506         New function.
507         (fusion_load_store): Use it.
508         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
509         ldp and stp in VD modes.
510         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
511         (store_pair<mode>, VD): Likewise.
512
513 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
514
515         PR rtl-optimization/67609
516         * lra-splill.c (lra_final_code_change): Don't remove all
517         sub-registers.
518
519 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
520
521         * simplify-rtx.c (simplify_binary_operation): If either operand was
522         a constant pool reference use them if all other simplifications failed.
523
524 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
525
526         * config/aarch64/aarch64.md
527         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
528         * config/aarch64/aarch64-simd.md
529         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
530         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
531         (aarch64_fpconst_pow_of_2): New function.
532         (aarch64_vec_fpconst_pow_of_2): Likewise.
533         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
534         prototype.
535         (aarch64_vec_fpconst_pow_of_2): Likewise.
536         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
537         (aarch64_fp_vec_pow2): Likewise.
538
539 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
540
541         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
542         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
543         * config/alpha/alpha.c (alpha_function_arg_advance): Update
544         ALPHA_ARG_SIZE usage.
545         (alpha_arg_partial_bytes): Ditto.
546
547 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
548
549         PR target/66810
550         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
551         error_mark_node decls.
552
553 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
554
555         PR target/67963
556         PR target/67985
557         * common/config/i386/i386-common.c (ix86_handle_option): Remove
558         OPT_miamcu handling.
559         * config/i386/i386.c (PTA_NO_80387): New macro.
560         (processor_alias_table): Add PTA_NO_80387 to lakemont.
561         (ix86_option_override_internal): Update MASK_80387 from
562         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
563         SSE math only if 80387 is supported.  Don't change
564         MASK_FLOAT_RETURNS.
565         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
566         80387 is supported.
567         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
568         if TARGET_80387 is true and TARGET_IAMCU is false.
569         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
570         is true and TARGET_IAMCU_P is false.
571
572 2015-10-20  Richard Biener  <rguenther@suse.de>
573
574         PR tree-optimization/68017
575         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
576
577 2015-10-20  Martin Liska  <mliska@suse.cz>
578
579         * cgraphclones.c (cgraph_node::create_virtual_clone):
580         Verify cgraph_node.local.versionable instead of calling
581         tree_versionable_function_p.
582         * ipa-cp.c (determine_versionability): Save the information
583         to ipa_node_params summary.
584         (ipcp_versionable_function_p): Use it.
585         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
586         (ipcp_generate_summary): Do not compute cgraph_node
587         versionability.
588         * ipa-inline-analysis.c (inline_generate_summary): Compute
589         versionability for all cgraph nodes.
590         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
591         ipa_node_params::versionability.
592         * ipa-prop.h (struct ipa_node_params): Declare it.
593
594 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
595
596         PR other/67868
597         * varasm.c (assemble_variable): Move special vtv handling to..
598         (handle_vtv_comdat_sections): .. here. New function.
599         (output_object_block): Handle vtv sections.
600
601 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
602
603         PR target/66912
604         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
605
606 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
607
608         * doc/extend.texi: Update documentation WRT inline functions.
609
610 2015-10-20  Alan Modra  <amodra@gmail.com>
611
612         PR go/66870
613         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
614         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
615         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
616
617 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
618
619         PR rtl-optimization/66790
620         * df.h (DF_MIR): New macro.
621         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
622         (DF_MIR_INFO_BB): New macro.
623         (DF_MIR_IN, DF_MIR_OUT): New macros.
624         (struct df_mir_bb_info): New.
625         (df_mir): New macro.
626         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
627         declarations.
628         (df_mir_get_bb_info): New.
629         * df-problems.c (struct df_mir_problem_data): New.
630         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
631         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
632         df_mir_confluence_0, df_mir_confluence_n,
633         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
634         df_mir_bottom_dump, df_mir_verify_solution_start,
635         df_mir_verify_solution_end): New.
636         (problem_MIR): New.
637         (df_mir_add_problem, df_mir_simulate_one_insn): New.
638         * timevar.def (TV_DF_MIR): New.
639         * ree.c: Include bitmap.h
640         (add_removable_extension): Add an INIT_REGS parameter.  Use it
641         to skip zero-extensions that may get an uninitialized register.
642         (find_removable_extensions): Compute must-initialized registers
643         using the MIR dataflow problem. Update the call to
644         add_removable_extension.
645         (find_and_remove_re): Call df_mir_add_problem.
646
647 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
648
649         * common/config/mn10300/mn10300-common.c
650         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
651         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
652
653 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
654
655         * doc/extend.texi (Explicit Register Variables): Simplify and
656         avoid unnecessary and confusion abbreviations.  Update cross
657         references.
658         doc/implement-c.tex: Update cross reference.
659
660 2015-10-19  Jeff Law  <law@redhat.com>
661
662         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
663         that create irreducible loops unless the path elimiantes a multiway
664         branch.
665
666 2015-10-19  Richard Biener  <rguenther@suse.de>
667
668         PR tree-optimization/67975
669         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
670         * tree-cfg.c (extract_true_false_controlled_edges): Split out
671         core worker from ...
672         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
673         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
674         instead of block number for PHIs with two or one args.
675         (vn_phi_eq): Compare edge predicates of PHIs that are in different
676         blocks.
677
678 2015-10-19  Richard Biener  <rguenther@suse.de>
679
680         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
681         (gimple_stmt_nonnegative_warnv_p): Use it.
682         * match.pd (CPROJ): New operator list.
683         (cproj (complex ...)): Move simplifications from ...
684         * builtins.c (fold_builtin_cproj): ... here.
685
686 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
687
688         * config/i386/i386.c (ix86_expand_vector_move): Use
689         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
690         alignment.
691
692 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
693
694         * doc/invoke.texi: Replace @optindex with @opindex.
695
696 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
697
698         PR target/67995
699         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
700         arch= is set,  clear all bits in x_ix86_isa_flags, except for
701         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
702
703 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
704
705         PR middle-end/68002
706         * common.opt (fkeep-static-functions): New option.
707         * doc/invoke.texi: Document it.
708         * cgraphunit.c (cgraph_node::finalize_function): Use it.
709
710 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
711
712         * sched-int.h (struct autopref_multipass_data_): Remove offset
713         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
714         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
715         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
716         (autopref_rank_data): New function.
717         (autopref_rank_for_schedule): Use it.
718         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
719
720 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
721
722         PR other/65800
723         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
724
725 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
726
727         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
728         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
729         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
730         (STANDARD_STARTFILE_PREFIX_1): New.
731         (STANDARD_STARTFILE_PREFIX_2): New.
732
733 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
734
735         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
736         (darwin_driver_init): Note a version-min when provided on the c/l.
737         * config/darwin.h (%darwin_minversion): Remove.
738         * config/i386/darwin.h: Likewise.
739         * config/rs6000/darwin.h: Likewise.
740         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
741         rather than an arbitrary constant.
742
743 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
744
745         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
746         PPC, detect conflicts between -arch and multilib settings.  Detect
747         and warn about conflicts between multiple -arch definitions.
748
749 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
750
751         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
752
753 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
754
755         * lra-constraints.c (add_next_usage_insn): Change argument type
756         from rtx to rtx_insn *.
757
758 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
759
760         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
761         for Lakemont.
762
763 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
764
765         * config/tilepro/gen-mul-tables.cc: Adjust include files.
766         * config/tilegx/mul-tables.c: Regenerate.
767         * config/tilepro/mul-tables.c: Regenerate.
768
769         * config/tilegx/tilegx-c.c: Adjust include files.
770         * config/tilegx/tilegx.c: Likewise.
771         * config/tilepro/tilepro-c.c: Likewise.
772         * config/tilepro/tilepro.c: Likewise.
773         * config/aarch64/aarch64-builtins.c: Likewise.
774         * config/aarch64/aarch64.c: Likewise.
775         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
776         * config/alpha/alpha.c: Likewise.
777         * config/arc/arc.c: Likewise.
778         * config/arm/aarch-common.c: Likewise.
779         * config/arm/arm-builtins.c: Likewise.
780         * config/arm/arm-c.c: Likewise.
781         * config/arm/arm.c: Likewise.
782         * config/avr/avr-c.c: Likewise.
783         * config/avr/avr-devices.c: Likewise.
784         * config/avr/avr-log.c: Likewise.
785         * config/avr/avr.c: Likewise.
786         * config/bfin/bfin.c: Likewise.
787         * config/c6x/c6x.c: Likewise.
788         * config/cr16/cr16.c: Likewise.
789         * config/cris/cris.c: Likewise.
790         * config/darwin-c.c: Likewise.
791         * config/darwin-driver.c: Likewise.
792         * config/darwin.c: Likewise.
793         * config/default-c.c: Likewise.
794         * config/epiphany/epiphany.c: Likewise.
795         * config/epiphany/mode-switch-use.c: Likewise.
796         * config/epiphany/resolve-sw-modes.c: Likewise.
797         * config/fr30/fr30.c: Likewise.
798         * config/frv/frv.c: Likewise.
799         * config/ft32/ft32.c: Likewise.
800         * config/glibc-c.c: Likewise.
801         * config/h8300/h8300.c: Likewise.
802         * config/i386/host-cygwin.c: Likewise.
803         * config/i386/host-mingw32.c: Likewise.
804         * config/i386/i386-c.c: Likewise.
805         * config/i386/i386.c: Likewise.
806         * config/i386/msformat-c.c: Likewise.
807         * config/i386/winnt-cxx.c: Likewise.
808         * config/i386/winnt-stubs.c: Likewise.
809         * config/i386/winnt.c: Likewise.
810         * config/ia64/ia64-c.c: Likewise.
811         * config/ia64/ia64.c: Likewise.
812         * config/iq2000/iq2000.c: Likewise.
813         * config/lm32/lm32.c: Likewise.
814         * config/m32c/m32c-pragma.c: Likewise.
815         * config/m32c/m32c.c: Likewise.
816         * config/m32r/m32r.c: Likewise.
817         * config/mcore/mcore.c: Likewise.
818         * config/mep/mep-pragma.c: Likewise.
819         * config/mep/mep.c: Likewise.
820         * config/microblaze/microblaze-c.c: Likewise.
821         * config/microblaze/microblaze.c: Likewise.
822         * config/mips/mips-tables.opt
823         * config/mips/mips.c: Likewise.
824         * config/mmix/mmix.c: Likewise.
825         * config/mn10300/mn10300.c: Likewise.
826         * config/moxie/moxie.c: Likewise.
827         * config/msp430/msp430-c.c: Likewise.
828         * config/msp430/msp430.c: Likewise.
829         * config/nds32/nds32-cost.c: Likewise.
830         * config/nds32/nds32-fp-as-gp.c: Likewise.
831         * config/nds32/nds32-intrinsic.c: Likewise.
832         * config/nds32/nds32-isr.c: Likewise.
833         * config/nds32/nds32-md-auxiliary.c: Likewise.
834         * config/nds32/nds32-memory-manipulation.c: Likewise.
835         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
836         * config/nds32/nds32-predicates.c: Likewise.
837         * config/nds32/nds32.c: Likewise.
838         * config/nios2/nios2.c: Likewise.
839         * config/nvptx/mkoffload.c: Likewise.
840         * config/nvptx/nvptx.c: Likewise.
841         * config/pa/pa.c: Likewise.
842         * config/pdp11/pdp11.c: Likewise.
843         * config/rl78/rl78-c.c: Likewise.
844         * config/rl78/rl78.c: Likewise.
845         * config/rs6000/host-darwin.c: Likewise.
846         * config/rs6000/rs6000-c.c: Likewise.
847         * config/rs6000/rs6000-linux.c: Likewise.
848         * config/rs6000/rs6000.c: Likewise.
849         * config/rx/rx.c: Likewise.
850         * config/s390/s390-c.c: Likewise.
851         * config/s390/s390.c: Likewise.
852         * config/sh/sh-c.c: Likewise.
853         * config/sh/sh-mem.cc: Likewise.
854         * config/sh/sh.c: Likewise.
855         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
856         * config/sh/sh_treg_combine.cc: Likewise.
857         * config/sol2-c.c: Likewise.
858         * config/sol2-cxx.c: Likewise.
859         * config/sol2-stubs.c: Likewise.
860         * config/sol2.c: Likewise.
861         * config/sparc/sparc-c.c: Likewise.
862         * config/sparc/sparc.c: Likewise.
863         * config/spu/spu-c.c: Likewise.
864         * config/spu/spu.c: Likewise.
865         * config/stormy16/stormy16.c: Likewise.
866         * config/v850/v850-c.c: Likewise.
867         * config/v850/v850.c: Likewise.
868         * config/vax/vax.c: Likewise.
869         * config/visium/visium.c: Likewise.
870         * config/vms/vms-c.c: Likewise.
871         * config/vms/vms.c: Likewise.
872         * config/vxworks.c: Likewise.
873         * config/winnt-c.c: Likewise.
874         * config/xtensa/xtensa.c: Likewise.
875
876 2015-10-16  Christian Bruel  <christian.bruel@st.com>
877
878         PR target/67745
879         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
880         (FUNCTION_BOUNDARY_P): New macro:
881         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
882         New hook.
883         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
884         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
885         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
886         * gcc/function.c (allocate_struct_function): Call
887         relayout_function hook.
888         * gcc/passes.c (rest_of_decl_compilation): Likewise.
889
890 2015-10-16  Christian Bruel  <christian.bruel@st.com>
891
892         PR target/67745
893         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
894         * config/arm/arm.c (arm_option_override_internal): Call
895         arm_override_options_after_change_1.
896         (arm_override_options_after_change): New function.
897         (arm_override_options_after_change_1): Likewise.
898         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
899
900 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
901
902         Revert:
903         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
904         empty constructors.
905
906 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
907
908         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
909         argument is an ADDR_EXPR.
910
911 2015-10-16  Richard Biener  <rguenther@suse.de>
912
913         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
914         and get rid of force_gimple_operand_gsi.
915         (gimple_fold_builtin_memory_chk): Likewise.
916         (gimple_fold_builtin_stxcpy_chk): Likewise.
917         (rewrite_to_defined_overflow): Likewise.
918         (gimple_convert_to_ptrofftype): New function.
919         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
920
921 2015-10-16  Richard Biener  <rguenther@suse.de>
922
923         * tree-nested.h (build_addr): Adjust prototype.
924         * tree-nested.c (build_addr): Remove context argument and use
925         mark_addressable.
926         (get_static_chain): Adjust calls to build_addr.
927         (convert_nl_goto_reference): Likewise.
928         (convert_tramp_reference_op): Likewise.
929         (finalize_nesting_tree_1): Likewise.
930         * value-prof.c (gimple_ic): Likewise.
931         * gimple-low.c (lower_builtin_setjmp): Likewise.
932         * tree-parloops.c (take_address_of): Likewise.
933         (create_call_for_reduction_1): Likewise.
934         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
935         (gimple_gen_ic_func_profiler): Likewise.
936
937 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
938
939         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
940         empty constructors.
941
942 2015-10-16  Michael Collison  <michael.collison@linaro.org>
943             Andrew Pinski <andrew.pinski@caviumnetworks.com>
944
945         * match.pd ((x < y) && (x < z) -> x < min (y,z),
946         (x > y) and (x > z) -> x > max (y,z))
947
948 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
949             Szabolcs Nagy  <szabolcs.nagy@arm.com>
950
951         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
952         (DYNAMIC_LINKER): Renamed to ...
953         (GLIBC_DYNAMIC_LINKER): This.
954         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
955
956 2015-10-15  Marek Polacek  <polacek@redhat.com>
957
958         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
959         gimple_call_builtin instead of is_gimple_call.
960
961 2015-10-15  Richard Biener  <rguenther@suse.de>
962
963         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
964
965 2015-10-15  Richard Biener  <rguenther@suse.de>
966
967         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
968         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
969         * tree-vect-loop.c (get_initial_def_for_induction): Drop
970         use of force_gimple_operand in favor of gimple_build.
971         Use vect_get_new_ssa_name.
972         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
973         (vectorizable_mask_load_store): Likewise.
974         (vectorizable_call): Likewise.
975         (vectorizable_store): Likewise.
976         (vectorizable_load): Likewise.
977         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
978
979 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
980
981         PR tree-optimization/67945
982         * tree-pass.h (PROP_gimple_opt_math): New property flag.
983         * generic-match-head.c (canonicalize_math_p): New function.
984         * gimple-match-head.c: Include tree-pass.h.
985         (canonicalize_math_p): New function.
986         * match.pd: Group math built-in rules into simplifications
987         and canonicalizations.  Guard the latter with canonicalize_math_p.
988         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
989         PROP_gimple_opt_math property.
990
991 2015-10-15  Marek Polacek  <polacek@redhat.com>
992
993         PR tree-optimization/67953
994         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
995
996 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
997
998         * config.gcc: Recognize "." in architecture base name for AArch64.
999
1000 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1001
1002         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1003         ROUND_UP macro.
1004         * config/mips/mips.c (mips_setup_incoming_varargs): Use
1005         ROUND_DOWN to calculate off.
1006         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1007         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1008         rounded_size.
1009
1010 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1011
1012         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1013
1014 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
1015             Torvald Riegel  <triegel@redhat.com>
1016
1017         PR target/67281
1018         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1019         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1020         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1021         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1022         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
1023         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1024         trechkpt, treclaim, tsr, ttest): New define_expands.
1025         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1026         __TM_FENCE__ for htm.
1027         * doc/extend.texi: Update documentation for htm builtins.
1028
1029 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
1030
1031         PR target/67967
1032         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1033         REG_CFA_EXPRESSION to aligned SSE stores.
1034
1035 2015-10-14  Jeff Law  <law@redhat.com>
1036
1037         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1038         num_threaded_edges for successful FSM threads too.
1039
1040 2015-10-14  Richard Biener  <rguenther@suse.de>
1041
1042         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1043         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
1044         (vect_get_vec_def_for_operand): Remove unused parameter.
1045         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1046         (vect_create_epilog_for_reduction): Likewise.
1047         (vectorizable_reduction): Likewise.
1048         (vectorizable_live_operation): Likewise.
1049         * tree-vect-patterns.c (type_conversion_p): Likewise.
1050         (vect_recog_vector_vector_shift_pattern): Likewise.
1051         (check_bool_pattern): Likewise.
1052         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1053         (vect_analyze_slp_cost_1): Likewise.
1054         * tree-vect-stmts.c (process_use): Likewise.
1055         (vect_get_vec_def_for_operand): Do not handle reductions.
1056         (vect_get_vec_defs): Adjust.
1057         (vectorizable_mask_load_store): Likewise.
1058         (vectorizable_call): Likewise.
1059         (vectorizable_simd_clone_call): Likewise.
1060         (vect_get_loop_based_defs): Likewise.
1061         (vectorizable_conversion): Likewise.
1062         (vectorizable_assignment): Likewise.
1063         (vectorizable_shift): Likewise.
1064         (vectorizable_operation): Likewise.
1065         (vectorizable_store): Likewise.
1066         (vectorizable_load): Likewise.
1067         (vect_is_simple_cond): Likewise.
1068         (vectorizable_condition): Likewise.
1069         (vect_is_simple_use): Remove unused parameters.
1070         (vect_is_simple_use_1): Adjust and rename.
1071
1072 2015-10-14  Richard Biener  <rguenther@suse.de>
1073
1074         PR tree-optimization/67915
1075         * match.pd: Handle comparisons of addresses of STRING_CSTs.
1076         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1077         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1078         stmt folding in favor of GIMPLE one.
1079
1080 2015-10-14  Marek Polacek  <polacek@redhat.com>
1081
1082         PR tree-optimization/67815
1083         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1084         (reassociate_bb): Call it.
1085
1086 2015-10-14  Richard Biener  <rguenther@suse.de>
1087
1088         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1089         Reset info at start.
1090         (vect_analyze_group_access_1): Add debug print.
1091         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1092         (vect_compute_single_scalar_iteration_cost): ... to this.
1093         (vect_analyze_loop_2): Adjust.
1094         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1095         * tree-vectorizer.h: ... here.
1096         (add_stmt_info_to_vec): Remove.
1097         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1098
1099 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1100
1101         * targhooks.c (default_target_option_pragma_parse): Do not warn if
1102         called on behalf of "#pragma GCC pop_options".
1103
1104 2015-10-14  Tom de Vries  <tom@codesourcery.com>
1105
1106         * cfganal.c (verify_no_unreachable_blocks): New function.
1107         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1108         verify_no_unreachable_blocks.
1109         cfganal.h (verify_no_unreachable_blocks): Declare.
1110
1111 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
1112
1113         * common.opt: Add flag_checking.
1114         * system.h (CHECKING_P): Define.
1115
1116 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
1117             Aldy Hernandez  <aldyh@redhat.com>
1118             Ilya Verbin  <ilya.verbin@intel.com>
1119
1120         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1121         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1122         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1123         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1124         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1125         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1126         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1127         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1128         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1129         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1130         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1131         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1132         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1133         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1134         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1135         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1136         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1137         (struct cgraph_simd_clone_arg): Adjust comment.
1138         * coretypes.h (struct gomp_ordered): New forward decl.
1139         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1140         set critical clauses to it.
1141         (gimple_build_omp_ordered): Return gomp_ordered * instead of
1142         gimple *.  Add CLAUSES argument, set ordered clauses to it.
1143         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1144         GIMPLE_OMP_ORDERED.
1145         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1146         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1147         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
1148         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1149         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
1150         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1151         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
1152         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1153         renumber
1154         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1155         (gomp_critical): Add clauses field.
1156         (gomp_ordered): New struct.
1157         (is_a_helper <gomp_ordered *>::test): New inline.
1158         (gimple_build_omp_critical): Add CLAUSES argument.
1159         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
1160         instead of gimple *.
1161         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1162         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1163         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1164         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1165         inline functions.
1166         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1167         (dump_gimple_omp_target): Handle enter data and exit data.
1168         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1169         (dump_gimple_omp_critical): Print clauses.
1170         (dump_gimple_omp_ordered): New function.
1171         (dump_gimple_omp_task): Handle taskloop.
1172         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1173         GIMPLE_OMP_ORDERED.
1174         * gimple-walk.c (walk_gimple_op): Walk clauses on
1175         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1176         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1177         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1178         (struct gimplify_omp_ctx): Add loop_iter_var,
1179         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1180         and target_firstprivatize_array_bases fields.
1181         (delete_omp_context): Release loop_iter_var.
1182         (gimplify_bind_expr): Handle ORT_NONE.
1183         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1184         ORT_COMBINED_TARGET.
1185         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1186         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1187         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
1188         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
1189         ctx->target_map_scalars_firstprivate.
1190         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
1191         data sharing clauses.  For data sharing clause with VLA decl
1192         on omp target/target data don't add firstprivate for the pointer.
1193         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1194         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1195         the addition of ORT_COMBINED_TARGET.
1196         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
1197         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
1198         pointers as zero length array sections and
1199         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1200         data sharing.
1201         (omp_check_private): Handle omp_member_access_dummy_var vars.
1202         (find_decl_expr): New function.
1203         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
1204         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1205         Handle OMP_CLAUSE_GANG separately.  Handle
1206         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1207         clauses.  Diagnose linear clause on combined
1208         distribute {, parallel for} simd construct, unless it is the loop
1209         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1210         Handle map clauses with COMPONENT_REF.  Initialize
1211         ctx->target_map_scalars_firstprivate,
1212         ctx->target_firstprivatize_array_bases and
1213         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
1214         linear clause even to target region if combined.  Remove
1215         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1216         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
1217         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1218         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
1219         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1220         For linear clause on worksharing loop combined with parallel add
1221         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
1222         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
1223         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
1224         taskloop if needed.
1225         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1226         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1227         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1228         GOMP_MAP_POINTER.
1229         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
1230         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1231         in target body.  Handle removal of struct mapping if struct is not
1232         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
1233         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
1234         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
1235         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1236         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1237         clause appear together.  Handle
1238         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
1239         clause if it has map-type-modifier always.  Handle
1240         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1241         clauses.
1242         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1243         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1244         callers.
1245         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
1246         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
1247         iterators in doacross loops.
1248         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1249         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
1250         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
1251         for the addition of ORT_COMBINED_TARGET.
1252         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1253         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
1254         and OMP_TARGET_EXIT_DATA.
1255         (gimplify_omp_ordered): New function.
1256         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1257         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
1258         Gimplify clauses on OMP_CRITICAL.
1259         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1260         expand_GOMP_SIMD_ORDERED_END): New functions.
1261         * internal-fn.def (GOMP_SIMD_ORDERED_START,
1262         GOMP_SIMD_ORDERED_END): New internal functions.
1263         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1264         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1265         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1266         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1267         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1268         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1269         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1270         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1271         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1272         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1273         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1274         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1275         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1276         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1277         adjust type.
1278         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1279         GOMP_target_data_41, adjust type.
1280         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1281         GOMP_target_update_41, adjust type.
1282         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1283         field.
1284         (struct omp_for_data): Add ordered and simd_schedule fields.
1285         (omp_member_access_dummy_var, unshare_and_remap_1,
1286         unshare_and_remap, is_taskloop_ctx): New functions.
1287         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1288         (extract_omp_for_data): Handle taskloops and doacross loops
1289         and simd schedule modifier.
1290         (omp_adjust_chunk_size): New function.
1291         (get_ws_args_for): Use it.
1292         (lookup_sfield): Change first argument to splay_tree_key,
1293         add overload with first argument tree.
1294         (maybe_lookup_field): Likewise.
1295         (use_pointer_for_field): Handle omp_member_access_dummy_var.
1296         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1297         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1298         (build_outer_var_ref): Add LASTPRIVATE argument, handle
1299         taskloops and omp_member_access_dummy_var vars.
1300         (build_sender_ref): Change first argument to splay_tree_key,
1301         add overload with first argument tree.
1302         (install_var_field): For mask & 8 use &DECL_UID as key instead
1303         of the tree itself.
1304         (fixup_child_record_type): Const qualify *.omp_data_i.
1305         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1306         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1307         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1308         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1309         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1310         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1311         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1312         kinds.
1313         (add_taskreg_looptemp_clauses): New function.
1314         (scan_omp_parallel): Use it.
1315         (scan_omp_task): Likewise.
1316         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1317         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1318         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1319         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
1320         sandwiched taskloop constructs.  Type check
1321         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
1322         region.  Diagnose depend(source) or depend(sink:...) on
1323         target constructs or task/taskloop.
1324         (handle_simd_reference): Use get_name.
1325         (lower_rec_input_clauses): Likewise.  Ignore all
1326         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1327         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
1328         before passing it to omp_clause_{default,copy}_ctor.  Handle
1329         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
1330         lastprivate_firstprivate flag for linear that needs copyin and
1331         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1332         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1333         on taskloop lookup decl in outer context.  Pass true to
1334         build_outer_var_ref lastprivate argument.  Handle
1335         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1336         outside of outer taskloop for.
1337         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1338         OMP_CLAUSE_DECL.
1339         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1340         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
1341         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
1342         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
1343         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1344         abstract origin.  Handle omp_member_access_dummy_var vars.
1345         (expand_parallel_call): Use expand_omp_build_assign.
1346         (expand_task_call): Handle taskloop construct expansion.  Add
1347         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
1348         integers.  Add priority argument to GOMP_task* calls.  Or in
1349         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1350         GOMP_task call.
1351         (expand_omp_build_assign): Add prototype.  Add AFTER
1352         argument, if true emit statements after *GSI_P and continue linking.
1353         (expand_omp_taskreg): Adjust expand_task_call caller.
1354         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1355         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1356         zero_iter2_bb and first_zero_iter2 arguments, handle computation
1357         of counts even for ordered loops.
1358         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1359         (expand_omp_ordered_source, expand_omp_ordered_sink,
1360         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1361         functions.
1362         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
1363         clauses on worksharing loop.  Handle DOACROSS loop expansion.
1364         (expand_omp_for_static_nochunk): Handle linear clauses on
1365         worksharing loop.  Adjust expand_omp_for_init_counts
1366         callers.
1367         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
1368         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
1369         expand_omp_for_init_counts callers.
1370         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1371         functions.
1372         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1373         Handle doacross loops.
1374         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1375         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
1376         GOMP_target_{41,update_41,enter_exit_data} libcalls.
1377         (expand_omp): Don't expand ordered depend constructs here, record
1378         ord_stmt instead for later expand_omp_for_generic.
1379         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1380         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1381         clause as stand-alone directive.
1382         (lower_omp_ordered_clauses): New function.
1383         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1384         don't lower anything.
1385         (lower_omp_for_lastprivate): Use last _looptemp_ clause
1386         on taskloop for comparison.
1387         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
1388         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1389         expansion for linear adjustments.
1390         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1391         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1392         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
1393         to tree * pointing to the stmt's clauses.
1394         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1395         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1396         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1397         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1398         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1399         clauses.  Always use short kind and 8-bit align shift.
1400         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1401         (struct lower_omp_regimplify_operands_data): New type.
1402         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1403         New functions.
1404         (lower_omp_1): Use lower_omp_regimplify_operands instead of
1405         gimple_regimplify_operands.
1406         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1407         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
1408         clause as stand-alone directive.
1409         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1410         (simd_clone_mangle): Mangle the various linear kinds
1411         per the new ABI.
1412         (simd_clone_adjust_argument_types): Handle
1413         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1414         (simd_clone_init_simd_arrays): Don't do anything for uval.
1415         (simd_clone_adjust): Handle
1416         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1417         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1418         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1419         * omp-low.h (omp_member_access_dummy_var): New prototype.
1420         * passes.def (pass_simduid_cleanup): Schedule another copy of the
1421         pass after all optimizations.
1422         * tree.c (omp_clause_code_name): Add entries for
1423         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1424         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1425         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
1426         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1427         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1428         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
1429         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1430         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1431         clauses.
1432         * tree-core.h (enum omp_clause_linear_kind): New.
1433         (struct tree_omp_clause): Change type of map_kind
1434         from unsigned char to unsigned int.  Add subcode.if_modifier
1435         and subcode.linear_kind fields.
1436         (enum omp_clause_code): Add
1437         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1438         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1439         (OMP_CLAUSE_REDUCTION): Document
1440         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1441         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1442         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1443         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
1444         operand.
1445         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
1446         operand.
1447         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1448         codes.
1449         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1450         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1451         char.
1452         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1453         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1454         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1455         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1456         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1457         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1458         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1459         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1460         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1461         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1462         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1463         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1464         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1465         * tree-inline.c (remap_gimple_stmt): Handle clauses on
1466         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
1467         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1468         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1469         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1470         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1471         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1472         (convert_local_omp_clauses): Likewise.
1473         * tree-pretty-print.c (dump_omp_clause): Handle
1474         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1475         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1476         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1477         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1478         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
1479         GOMP_MAP_FORCE_DEALLOC.  Handle
1480         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1481         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1482         and clauses on OMP_ORDERED and OMP_CRITICAL.
1483         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1484         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1485         (vectorize_loops): Adjust comments.
1486         (pass_simduid_cleanup::execute): Likewise.
1487         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1488         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1489         * wide-int.h (wi::gcd): New.
1490
1491 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1492
1493         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1494         (ix86_function_arg_advance): Ditto.
1495         (ix86_function_arg): Ditto.
1496         (ix86_gimplify_va_arg): Ditto.
1497         (ix86_class_max_nregs): Ditto.
1498         (inline_memory_move_cost): Ditto.
1499         (ix86_set_reg_reg_cost): Ditto.
1500         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1501
1502 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
1503
1504         PR middle-end/67912
1505         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1506
1507 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
1508
1509         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1510         ROUND_UP macro and UNITS_PER_WORD * 2.
1511         * config/sparc/sparc.c (sparc_compute_frame_size):
1512         Use ROUND_UP and ROUND_DOWN macros where applicable.
1513         (function_arg_record_value, function_arg_record_value_1)
1514         (function_arg_record_value_1): Ditto.
1515         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1516         alignment to double-word.
1517         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1518         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1519         rounded_size.
1520
1521 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
1522
1523         * gcc/rtl.h (print_insn): Fix prototype.
1524
1525 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1526
1527         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1528         -1.  Add assert that returned entry matches phi argument.
1529         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1530         free_stmt_vec_info_vec ...
1531         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
1532         with -1.
1533
1534 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
1535
1536         PR tree-optimization/67909, 67947
1537         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1538         really skip the inner loop.
1539
1540 2015-10-13  Jeff Law  <law@redhat.com>
1541
1542         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1543         Allow single block jump threading paths.
1544
1545 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1546
1547         PR tree-optimization/67476
1548         * doc/invoke.texi (@item parloops-schedule): New item.
1549         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1550         * tree-parloops.c: Include params-enum.h.
1551         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1552
1553 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1554
1555         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1556         * params-enum.h: New file.
1557         * opts.c (handle_param): Handle case that param arg is a string.
1558         * params-list.h: Handle DEFPARAMENUM5 in params.def.
1559         * params.c (find_param): New function, factored out of ...
1560         (set_param_value): ... here.
1561         (param_string_value_p): New function.
1562         * params.h (struct param_info): Add value_names field.
1563         (find_param, param_string_value_p): Declare.
1564
1565 2015-10-13  Tom de Vries  <tom@codesourcery.com>
1566
1567         PR tree-optimization/67476
1568         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1569
1570 2015-10-13  Richard Biener  <rguenther@suse.de>
1571
1572         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1573         the data dependence vector.
1574         (vect_peeling_hash_insert): Get the peeling hash table as argument.
1575         (vect_peeling_hash_get_lowest_cost): Likewise.
1576         (vect_enhance_data_refs_alignment): Adjust.
1577         (struct _vect_peel_info, struct _vect_peel_extended_info,
1578         struct peel_info_hasher): Move from ...
1579         * tree-vectorizer.h: ... here.
1580         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1581         (LOOP_VINFO_PEELING_HTAB): Likewise.
1582         (struct _loop_vec_info): Remove min_profitable_iters and
1583         peeling_htab members.
1584         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1585         here.
1586         (destroy_loop_vec_info): Adjust.
1587         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1588         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1589         to estimate alias versioning cost.
1590         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1591
1592 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
1593
1594         * real.h (real_isinteger): Declare.
1595         * real.c (real_isinteger): New function.
1596         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1597         if y is an even integer.
1598
1599 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1600
1601         revert:
1602         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1603         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1604         counts when these are more informative.
1605
1606 2015-10-12  Jeff Law  <law@redhat.com>
1607
1608         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1609         (fsm_find_control_stmt_paths): Change name of first argument to
1610         more accurately relfect what it really is.  Handle simplification
1611         of GIMPLE_COND after finding a thread path for NAME.
1612         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1613         nontrivial conditions to be handled by FSM threader.
1614         (thread_through_normal_block): Extract the name to looup via
1615         FSM threader from COND_EXPR.
1616
1617         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1618         restriction that traced SSA_NAME is a user variable.
1619
1620 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1621
1622         PR tree-optimization/67476
1623         * omp-low.c (expand_omp_for_generic): Add missing phis.
1624
1625 2015-10-12  Tom de Vries  <tom@codesourcery.com>
1626
1627         PR tree-optimization/67476
1628         * omp-low.c (expand_omp_for_generic): Handle simple latch.
1629
1630 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
1631
1632         * config/aarch64/aarch64-simd-builtins.def: Update builtins
1633         tables: add tbl3 and tbx4.
1634         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1635         (aarch64_tbx4v8qi): New.
1636         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1637         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1638         Rewrite using builtin functions.
1639         * config/aarch64/iterators.md (UNSPEC_TBX): New.
1640
1641 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1642
1643         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1644         ROUND_UP macro.
1645         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1646         Use ROUND_UP and ROUND_DOWN macros where applicable.
1647         (rs6000_darwin64_record_arg_flush): Ditto.
1648         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1649         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1650         rounded_size.
1651
1652 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
1653
1654         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1655         (AARCH64_ROUND_DOWN): Ditto.
1656         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1657
1658 2015-10-12  Richard Biener  <rguenther@suse.de>
1659
1660         PR ipa/67783
1661         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1662         code that analyzes IVs on each stmt but in a cheaper way avoiding
1663         quadratic behavior.
1664
1665 2015-10-12  Nick Clifton  <nickc@redhat.com>
1666
1667         * config/msp430/msp430.c (msp430_mcu_names): Rename to
1668         msp430_mcu_data, add fields for ISA and hardware multiply
1669         support.  Import latest data from the devices.csv file.
1670         (msp430_override_option): Use the data from the new array.
1671         (msp430_use_f5_series_hwmult): Likewise.
1672         (use_32bit_hwmult): Likewise.
1673         (msp430_no_hwmult): Likewise.
1674         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1675         MCU names.
1676         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1677         not recognised then no hardware multiply support is assumed and
1678         that only the MSP430 ISA is allowed.
1679
1680 2015-10-12  Richard Biener  <rguenther@suse.de>
1681
1682         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1683         related code ...
1684         (vect_analyze_loop_2): ... here.
1685
1686 2015-10-11  Jason Merrill  <jason@redhat.com>
1687
1688         PR c++/67557
1689         * expr.c (store_field): Call store_constructor directly when
1690         storing a CONSTRUCTOR into a target smaller than its type.
1691         Guard against unsafe bitwise copy.
1692
1693 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1694
1695         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1696         counts when these are more informative.
1697
1698 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1699
1700         * tree-profile.c (tree_profiling): Do not clear
1701         pure/const when not instrumenting.
1702         (pass tree_profile): Add dump of symtab.
1703
1704 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
1705
1706         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1707         addresses.
1708         (fold_addr_of_array_ref_difference): Likewise.
1709
1710 2015-10-11  Jeff Law  <law@redhat.com>
1711
1712         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1713         tree-ssa-threadbackward.c.
1714         (fsm_find_control_statement_thread_paths): Likewise.
1715         (thread_through_normal_block): Break out FSM bits and move them
1716         into a new function in tree-ssa-threadbackward.c.  Call new function
1717         instead.
1718         Minimize header file usage.
1719         * tree-ssa-threadbackward.h: New file.
1720         * tree-ssa-threadbackward.c: Likewise.
1721         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1722
1723 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
1724
1725         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1726
1727 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
1728
1729         PR rtl-optimization/67864
1730         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1731         fallthrough edges for conditional jumps.  Don't sort candidate
1732         edges if not optimizing for speed.
1733
1734 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1735
1736         * defaults.h (REVERSE_CONDITION): New default definition.
1737         * jump.c (reversed_comparison_code_parts): Adjust.
1738
1739 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1740
1741         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1742         check HARD_FRAME_POINTER_IS_ARG_POINTER.
1743
1744 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1745
1746         * defaults.h (FRAME_ADDR_RTX): New default definition.
1747         * builtins.c (expand_builtin_return_addr): Adjust.
1748
1749 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1750
1751         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1752         * builtins.c (expand_builtin_return_addr): Adjust.
1753
1754 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1755
1756         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1757         * builtins.c (expand_builtin_return_addr): Adjust.
1758         * doc/tm.texi: Likewise.
1759         * doc/tm.texi.in: Likewise.
1760         * except.c (expand_builtin_unwind_init): Likewise.
1761
1762 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1763
1764         * builtins.c (expand_builtin_return_addr): Adjust.
1765         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1766
1767 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1768
1769         * tree.c (type_with_interoperable_signedness): New.
1770         (gimple_canonical_types_compatible_p): Use it.
1771         * tree.h (type_with_interoperable_signedness): Declare
1772
1773 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
1774
1775         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1776         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1777         when OEP_ADDRESS_OF is se.
1778
1779 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1780             Sebastian Pop  <s.pop@samsung.com>
1781
1782         * graphite-dependences.c (scop_get_dependences): Add dump of the
1783         data dependence graph.
1784         * graphite-poly.c (print_isl_union_map): New.
1785         (debug_isl_union_map): New.
1786         * graphite-poly.h (print_isl_union_map): Declare.
1787         (debug_isl_union_map): Declare.
1788
1789 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
1790             Sebastian Pop  <s.pop@samsung.com>
1791
1792         * graphite-poly.c (print_iteration_domain): Remove verbosity.
1793         Remove OpenScop formatting.
1794         (print_iteration_domains): Same.
1795         (debug_iteration_domain): Same.
1796         (debug_iteration_domains): Same.
1797         (print_pdr): Same.
1798         (debug_pdr): Same.
1799         (dump_gbb_cases): Same.
1800         (dump_gbb_conditions): Same.
1801         (print_pdrs): Same.
1802         (debug_pdrs): Same.
1803         (print_pbb_body): Same.
1804         (print_pbb): Same.
1805         (print_scop_params): Same.
1806         (print_scop_context): Same.
1807         (print_scop): Same.
1808         (debug_pbb_domain): Same.
1809         (debug_pbb): Same.
1810         (debug_scop_context): Same.
1811         (debug_scop): Same.
1812         (debug_scop_params): Same.
1813         * graphite-poly.h: Same.
1814         * graphite.c (graphite_transform_loops): Same.
1815
1816 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1817
1818         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1819         call that isn't needed.
1820
1821 2015-10-09  Jeff Law  <law@redhat.com>
1822
1823         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1824         rather than moving each name to the freelist individually.
1825
1826 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
1827
1828         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1829         * frame-header-opt.c: New file.
1830         * config/mips/mips-proto.h (mips_register_frame_header_opt):
1831         Add prototype.
1832         * config/mips/mips.c (mips_compute_frame_info): Check
1833         optimize_call_stack flag.
1834         (mips_option_override): Register new frame_header_opt pass.
1835         (mips_frame_info, mips_int_mask, mips_shadow_set,
1836         machine_function): Move these types to...
1837         * config/mips/mips.h: here.
1838         (machine_function): Add does_not_use_frame_header and
1839         optimize_call_stack fields.
1840         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1841         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1842         Document new flags.
1843         * config/mips/mips.opt (mframe-header-opt): Add new option.
1844
1845 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
1846
1847         * config/i386/i386.c
1848         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1849         ROUND_DOWN where applicable.
1850
1851 2015-10-09  Jeff Law  <law@redhat.com>
1852
1853         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1854         correct statement.
1855
1856 2015-10-09  Renlin Li  <renlin.li@arm.com>
1857
1858         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1859         operands[0] and operands[2].
1860         (neon_vtrn<mode>_insn): Likewise.
1861         (neon_vzip<mode>_insn): Likewise.
1862
1863 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1864
1865         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1866         ((X & C2) << C1): Expand to...
1867         (X {&,^,|} C2 << C1): ...This.
1868         ((X & C2) >> C1): Expand to...
1869         (X {&,^,|} C2 >> C1): ...This.
1870
1871 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
1872
1873         PR target/67895
1874         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1875         Adjust embedded rounding/SAE specifier position.
1876         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1877         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1878         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1879         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1880         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1881         Likewise.
1882         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1883
1884 2015-10-09  Martin Jambor  <mjambor@suse.cz>
1885
1886         tree-optimization/67794
1887         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1888         between types of state,ents but accept original definitions as a
1889         parameter.
1890         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1891         iterate over definitions.
1892
1893 2015-10-09  James Norris  <jnorris@codesourcery.com>
1894
1895         * config/rs6000/rs6000.c (rs6000_offload_options): New.
1896         (TARGET_OFFLOAD_OPTIONS): New.
1897
1898 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
1899
1900         PR middle-end/67891
1901         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1902
1903         PR middle-end/67766
1904         * function.c (expand_function_end): Move return value
1905         promotion past the handling of PARALLELs and CONCATs.
1906
1907         PR rtl-optimization/67828
1908         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1909         (tree_may_unswitch_on): Don't unswitch on expressions
1910         involving undefined values.
1911
1912 2015-10-09  Richard Biener  <rguenther@suse.de>
1913
1914         * genmatch.c (print_operand): Fix formatting.
1915         (dt_node::append_simplify): Warn for multiple simplifiers
1916         that match the same pattern.
1917         * match.pd (log (exp @0)): Remove duplicates.
1918
1919 2015-10-09  Richard Biener  <rguenth@suse.de>
1920
1921         PR target/67366
1922         * gimple-fold.c (optabs-query.h): Include
1923         (gimple_fold_builtin_memory_op): Allow unaligned stores
1924         when movmisalign_optabs are available.
1925
1926 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1927
1928         PR target/67366
1929         * config/arm/arm.md (movmisalign<mode>): New.
1930         * config/arm/iterators.md (HSI): New.
1931
1932 2015-10-09  Richard Biener  <rguenther@suse.de>
1933
1934         PR tree-optimization/67891
1935         * gimple-match.h (gimple_simplified_result_is_gimple_val):
1936         New helper.
1937         (gimple_resimplify1): Declare.
1938         (gimple_resimplify2): Likewise.
1939         (gimple_resimplify3): Likewise.
1940         * gimple-match-head.c (gimple_resimplify1): Export.
1941         (gimple_resimplify2): Likewise.
1942         (gimple_resimplify3): Likewise.
1943         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
1944         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1945         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
1946         to avoid creating stmts without VN info.
1947
1948 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
1949
1950         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
1951         of availability.
1952
1953 2015-10-08  Jeff Law  <law@redhat.com>
1954
1955         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
1956         and release_ssa_name in two places.
1957         (gimple_stringop_fixed_value): Similarly.
1958
1959         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
1960         release_defs.
1961
1962         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
1963         unlink_stmt_vdef and release_ssa_name_fn.
1964
1965         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
1966         release_defs.
1967
1968 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1969
1970         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
1971         SSE register save area to 16 bytes only if the incoming stack
1972         boundary is no less than 16 bytes.
1973
1974 2015-10-08  Jeff Law  <law@redhat.com>
1975
1976         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
1977         release_ssa_name.  Fix typo in comment.
1978
1979 2015-10-08  Nathan Sidwell  <nathan@acm.org>
1980
1981         * config/nvptx/nvptx.h (struct machine_function): Add comment.
1982         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
1983         may return pointer as well as in memory.
1984         (nvptx_output_return): Likewise.
1985
1986 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1987
1988         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
1989         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
1990         * match.pd: Add rules previously handled by fold_builtin_sqrt
1991         and fold_builtin_cbrt.
1992
1993 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
1994
1995         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
1996         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
1997         * fold-const.h (tree_unary_nonnegative_warnv_p)
1998         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
1999         (tree_expr_nonnegative_warnv_p): Add depth parameters.
2000         * fold-const.c: Include gimple-fold.h and params.h.
2001         (tree_ssa_name_nonnegative_warnv_p): New function.
2002         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2003         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2004         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2005         Add a depth parameter and increment it for recursive calls to
2006         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
2007         to handle SSA names.
2008         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2009         (gimple_stmt_nonnegative_warnv_p): Declare.
2010         * tree-vrp.c (remove_range_assertions): Remove assert that condition
2011         cannot be proven false.
2012         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2013         (gimple_stmt_nonnegative_warnv_p): Move to...
2014         * gimple-fold.c: ...here.  Add depth parameters and pass them
2015         down to the tree routines.  Accept statements that aren't
2016         assignments or calls but just return false for them.
2017         (gimple_val_nonnegative_real_p): Delete.
2018         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2019         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2020         Check HONOR_NANs first.
2021
2022 2015-10-08  Martin Jambor  <mjambor@suse.cz>
2023
2024         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
2025         unnecessary MIN.
2026
2027 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2028
2029         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2030         in the tail of outer-loop.
2031
2032 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
2033
2034         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2035         return UI_NONE.
2036
2037 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2038
2039         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2040         "cfghooks.h", add prototypes for introduced new functions.
2041         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2042         checks on ability of loop unswitching to tree_unswitch_single_loop;
2043         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2044         on innermost loop check.
2045         (tree_unswitch_single_loop): Add all required checks on ability of
2046         loop unswitching under zero recursive level guard.
2047         (tree_unswitch_outer_loop): New function.
2048         (find_loop_guard): Likewise.
2049         (empty_bb_without_guard_p): Likewise.
2050         (used_outside_loop_p): Likewise.
2051         (get_vop_from_header): Likewise.
2052         (hoist_guard): Likewise.
2053         (check_exit_phi): Likewise.
2054
2055 2015-10-08  Marek Polacek  <polacek@redhat.com>
2056
2057         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2058         ops element.
2059
2060 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2061
2062         PR c/65345
2063         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2064         create_tmp_var_raw instead of create_tmp_var.
2065
2066 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
2067
2068         * expr.c (store_expr_with_bounds): Handle aggregate moves from
2069         BLKmode.
2070         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2071         to define gimple type system; compare aggregates only by size.
2072
2073 2015-10-07  Jeff Law  <law@redhat.com>
2074
2075         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2076         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2077         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
2078         unnecessarily.
2079
2080 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2081             Sebastian Pop  <s.pop@samsung.com>
2082
2083         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2084         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2085         (generate_isl_schedule): Same.
2086         * graphite-optimize-isl.c (scop_get_domains): Same.
2087         (apply_schedule_map_to_scop): Same.
2088         * graphite-poly.c (print_iteration_domains): Same.
2089         (remove_gbbs_in_scop): Same.
2090         (new_scop): Same.
2091         (free_scop): Same.
2092         (print_scop): Same.
2093         * graphite-poly.h (struct scop): Rename bbs to pbbs.
2094         (SCOP_BBS): Remove.
2095         * graphite-scop-detection.c (compare_bb_depths): Remove.
2096         (graphite_sort_dominated_info): Remove.
2097         (try_generate_gimple_bb): Move out of scop_detection.
2098         (all_non_dominated_preds_marked_p): Remove.
2099         (build_scop_bbs_1): Remove.
2100         (build_scop_bbs): Remove.
2101         (nb_pbbs_in_loops): Do not use SCOP_BBS.
2102         (find_scop_parameters): Same.
2103         (sese_dom_walker): Rename gather_bbs.
2104         (before_dom_children): Call try_generate_gimple_bb and collect gbb
2105         and pbb.
2106         (build_scops): Call gather_bbs.
2107         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2108         (add_conditions_to_constraints): Same.
2109         (build_scop_iteration_domain): Same.
2110         (build_scop_drs): Same.
2111         (new_pbb_from_pbb): Same.
2112         * sese.c (new_sese_info): Create bbs.
2113         * sese.h (struct sese_info_t): Add bbs.
2114
2115 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
2116
2117         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2118         encoding in 64-bit mode.
2119
2120 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         PR target/66697
2123         * config/i386/i386.c (ix86_option_override_internal): Always use
2124         8-byte minimum stack boundary in 64-bit mode.
2125         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2126         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2127         Add a REG_CFA_EXPRESSION note if needed.
2128         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2129         (ix86_handle_force_align_arg_pointer_attribute): New.
2130         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2131         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2132         with ix86_handle_force_align_arg_pointer_attribute.
2133         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2134
2135 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2136             Sebastian Pop  <s.pop@samsung.com>
2137
2138         * graphite-scop-detection.c (parameter_index_in_region): Remove
2139         use of SESE_ADD_PARAMS.
2140         (find_scop_parameters): Same.
2141         * sese.c (new_sese_info): Same.
2142         * sese.h (struct sese_info_t): Remove add_params.
2143         (SESE_ADD_PARAMS): Remove.
2144
2145 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
2146             Sebastian Pop  <s.pop@samsung.com>
2147
2148         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2149         an sese_info_p.
2150         (copy_def): Same.
2151         (copy_internal_parameters): Same.
2152         (translate_isl_ast_to_gimple): Use an sese_l.
2153         (build_iv_mapping): Same.
2154         * graphite-poly.c (new_sese): Rename new_sese_info.
2155         (free_sese): Rename free_sese_info.
2156         * graphite-poly.h (struct scop): Use an sese_info_p.
2157         (scop_set_region): Same.
2158         * graphite-scop-detection.c (struct sese_l): Moved...
2159         (get_entry_bb): Moved...
2160         (get_exit_bb): Moved...
2161         (parameter_index_in_region_1): Use an sese_info_p.
2162         (parameter_index_in_region): Same.
2163         (scan_tree_for_params): Same.
2164         (find_params_in_bb): Same.
2165         (sese_dom_walker): Use an sese_l.
2166         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2167         (reduction_phi_p): Same.
2168         (parameter_index_in_region_1): Use an sese_info_p.
2169         (propagate_expr_outside_region): Use an sese_l.
2170         * graphite.c: Replace uses of SCOP_REGION.
2171         * sese.c (sese_record_loop): Use an sese_info_p.
2172         (build_sese_loop_nests): Same.
2173         (sese_build_liveouts_use): Same.
2174         (sese_build_liveouts_bb): Same.
2175         (sese_build_liveouts_bb): Same.
2176         (sese_bad_liveouts_use): Same.
2177         (sese_reset_debug_liveouts_bb): Same.
2178         (sese_build_liveouts): Same.
2179         (new_sese): Renamed new_sese_info.
2180         (free_sese): Renamed free_sese_info.
2181         (set_rename): Use an sese_info_p.
2182         (graphite_copy_stmts_from_block): Same.
2183         (copy_bb_and_scalar_dependences): Same.
2184         (outermost_loop_in_sese_1): Use an sese_l.
2185         (outermost_loop_in_sese): Same.
2186         (if_region_set_false_region): Use an sese_info_p.
2187         (move_sese_in_condition): Same.
2188         (scalar_evolution_in_region): Use an sese_l.
2189         * sese.h (struct sese_l): ... here.
2190         (SESE_ENTRY): Remove.
2191         (SESE_ENTRY_BB): Remove.
2192         (SESE_EXIT): Remove.
2193         (SESE_EXIT_BB): Remove.
2194         (sese_contains_loop): Use an sese_info_p.
2195         (sese_nb_params): Same.
2196         (bb_in_sese_p): Use an sese_l.
2197         (stmt_in_sese_p): Same.
2198         (defined_in_sese_p): Same.
2199         (loop_in_sese_p): Same.
2200         (sese_loop_depth): Same.
2201         (struct ifsese_s): Use an sese_info_p.
2202         (gbb_loop_at_index): Use an sese_l.
2203         (nb_common_loops): Same.
2204         (scev_analyzable_p): Same.
2205
2206 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2207
2208         * config/i386/i386.c (ix86_conditional_register_usage): Use
2209         CALL_USED_REGISTERS_MASK.
2210         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2211
2212 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2213
2214         PR bootstrap/67385
2215         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2216         * configure: Regenerated.
2217
2218 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         PR target/67850
2221         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2222         (ix86_set_current_function): This.
2223         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2224
2225 2015-10-07  Richard Biener  <rguenther@suse.de>
2226
2227         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2228         (vinfo_for_stmt): Adjust.
2229         (set_vinfo_for_stmt): Likewise.
2230         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2231         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2232         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2233         of inner loop.
2234         (vect_analyze_loop_1): Remove.
2235         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2236         inner loop when vectorizing an outer loop by splitting out from ...
2237         (vect_analyze_loop_form): ... here.
2238
2239 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2240
2241         PR c/65345
2242         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2243         Use create_tmp_var_raw instead of create_tmp_var.
2244
2245 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
2246
2247         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2248         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2249         * real.c (CACHED_FRACTION): New helper macro.
2250         (dconst_third_ptr): Use it.
2251         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2252         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2253         dconst_sixth.
2254         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2255
2256 2015-10-06  Jeff Law  <law@redhat.com>
2257
2258         PR tree-optimization/67816
2259         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2260         from remove_jump_threads_starting_at.  Accept an edge rather than
2261         a basic block.
2262         * tree-ssa-threadupdate.c (removed_edges): New hash table.
2263         (remove_jump_threads_including): Note edges that get removed from
2264         the CFG for later pruning of jump threading paths including them.
2265         (thread_through_all_blocks): Remove paths which include edges that
2266         have been removed.
2267         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2268         on each outgoing edges when optimizing away a control statement.
2269
2270 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2271
2272         * reorg.c (emit_delay_sequence): Store list of delay slot insns
2273         in a vector instead of rtx_insn_list.
2274         (add_to_delay_list): Likewise.
2275         (delete_from_delay_slot): Likewise.
2276         (optimize_skip): Likewise.
2277         (redirect_with_delay_list_safe_p): Likewise.
2278         (check_annul_list_true_false): Likewise.
2279         (steal_delay_list_from_target): Likewise.
2280         (steal_delay_list_from_fallthrough): Likewise.
2281         (redundant_insn): Likewise.
2282         (fill_simple_delay_slots): Likewise.
2283         (fill_slots_from_thread): Likewise.
2284         (fill_eager_delay_slots): Likewise.
2285         (relax_delay_slots): Likewise.
2286
2287 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
2288
2289         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2290         For -mgpopt=local, also exclude unintialized common symbols.
2291         * doc/invoke.texi (Nios II Options): Document the change.
2292
2293 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2294
2295         * config/aarch64/iterators.md (vwcore): Add missing cases for
2296          V4HF/V8HF modes.
2297
2298 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2299             Sebastian Pop  <s.pop@samsung.com>
2300
2301         * graphite-poly.c (new_scop): Initialize drs.
2302         * graphite-poly.h (struct dr_info): New.
2303         (struct scop): Add drs.
2304         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2305         (pdr_add_memory_accesses): Same.
2306         (build_poly_dr): Same.
2307         (build_alias_set): Same.
2308         (build_scop_drs): Same.
2309         (build_pbb_drs): Remove.
2310         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2311         * tree-data-ref.h (data_reference): Remove alias_set.
2312
2313 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2314             Sebastian Pop  <s.pop@samsung.com>
2315
2316         * graphite-poly.c (free_data_refs_aux): Remove.
2317         (free_gimple_poly_bb): Do not call free_data_refs_aux.
2318         * graphite-poly.h (struct base_alias_pair): Remove.
2319         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2320         base_alias_pair and dr->aux.
2321         (build_alias_set): Same.
2322         * tree-data-ref.c (create_data_ref): Initialize alias_set.
2323         * tree-data-ref.h (data_reference): Add alias_set.
2324
2325 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
2326             Sebastian Pop  <s.pop@samsung.com>
2327
2328         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2329         Do not set PDR_BASE_OBJECT_SET.
2330         * graphite-poly.h (poly_dr): Same.
2331         (PDR_BASE_OBJECT_SET): Remove.
2332         (new_poly_dr): Update decl.
2333         * graphite-sese-to-poly.c (build_poly_dr): Update call to
2334         new_poly_dr.
2335         (write_alias_graph_to_ascii_dimacs): Remove.
2336         (write_alias_graph_to_ascii_dot): Remove.
2337         (write_alias_graph_to_ascii_ecc): Remove.
2338         (dr_same_base_object_p): Remove.
2339         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
2340         code.
2341         (build_base_obj_set_for_drs): Remove.
2342         (dump_alias_graphs): Remove.
2343         (build_scop_drs): Remove dead code.
2344
2345 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2346             Peter Bergner  <bergner@vnet.ibm.com>
2347
2348         PR target/67808
2349         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2350         allow registers, but provide insns for the combiner to create for
2351         loads from memory. Separate VSX code from non-VSX code. For
2352         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2353         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2354         so that registers come before memory operations. Drop support from
2355         converting DFmode to TFmode, if the DFmode value is in a GPR
2356         register.
2357         (extenddftf2_fprs): Likewise.
2358         (extenddftf2_internal): Likewise.
2359         (extenddftf2_vsx): Likewise.
2360         (extendsftf2): In the expander, only allow registers, but provide
2361         insns for the combiner to create for stores and loads.
2362
2363 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2364
2365         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2366         from the decl parameter.
2367
2368 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
2369
2370         PR 67861
2371         * gimple-fold.c (gimple_fold_builtin): Add break after
2372         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2373
2374 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2375
2376         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2377         to scop->isl_context.
2378
2379 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2380
2381         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2382         (output_probe_stack_range): Rotate the loop and simplify.
2383         (thumb1_expand_prologue): Tweak sorry message.
2384         * config/arm/arm.md (probe_stack): Use bare string.
2385
2386 2015-10-06  Nick Clifton  <nickc@redhat.com>
2387
2388         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2389
2390 2015-10-06  Nick Clifton  <nickc@redhat.com>
2391
2392         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2393         (ATTR_PERSIST): New constant.
2394         (msp430_data_attr): New function - verifies an attribute that only
2395         applies to variables.
2396         (msp430_attributes): Add noinit and persistent attributes.
2397         (noinit_section): New variable.
2398         (presis_section): New variable.
2399         (TARGET_ASM_INIT_SECTIONS): Define.
2400         (msp430_init_sections): New function - initialises the noinit and
2401         persist section variables.
2402         (msp430_select_section): Add support for noinit and persist
2403         attributes.
2404         (msp430_section_type_flags): Likewise.
2405         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
2406         and persistent attributes.
2407
2408 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2409             Sebastian Pop  <s.pop@samsung.com>
2410
2411         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2412         (no_violations): Remove.
2413         (subtract_commutative_associative_deps): Remove.
2414         (compute_deps): Do not call subtract_commutative_associative_deps.
2415         (transform_is_safe): Remove.
2416         (graphite_legal_transform): Remove.
2417         * graphite-poly.h (graphite_legal_transform): Remove.
2418
2419 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
2420
2421         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2422         which are in this region are passed so gcc_assert and remove redundant
2423         computation.
2424         * sese.c (sese_build_liveouts): Pass only those bbs which are not
2425         in region.
2426         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2427         gcc_assert on that and remove unnecessary computation.
2428         (sese_build_liveouts_use): Same.
2429
2430 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2431
2432         * graphite-dependences.c (scop_get_reads): Renamed scop->context
2433         to scop->param_context.
2434         (scop_get_must_writes): Same.
2435         (scop_get_may_writes): Same.
2436         (scop_get_original_schedule): Same.
2437         (scop_get_transformed_schedule): Same.
2438         (subtract_commutative_associative_deps): Same.
2439         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2440         (generate_isl_context): Same.
2441         (generate_isl_schedule): Same.
2442         (scop_to_isl_ast): Same.
2443         (graphite_regenerate_ast_isl): Same.
2444         * graphite-optimize-isl.c (scop_get_domains): Same.
2445         (optimize_isl): Renamed scop->context to scop->param_context.
2446         * graphite-poly.c (new_poly_bb): Change the type of argument to
2447         gimple_poly_bb_p.
2448         (new_scop): Renamed scop->context to scop->param_context.
2449         (free_scop): Same.
2450         (print_scop_context): Same.
2451         * graphite-poly.h (new_poly_dr): Change the type of argument from
2452         void* to data_reference_p.
2453         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2454         (new_poly_bb): Change the type of argument from void* to
2455         gimple_poly_bb_p.
2456         (pbb_set_black_box): Same.
2457         (struct scop): Rename context to param_context, ctx to isl_context.
2458         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2459         Move declarations closer to assignment.
2460         (find_params_in_bb): Same.
2461         (find_scop_parameters): Same.
2462         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2463         Global to be used for statement IDs.
2464         (isl_id_for_pbb): Use ssa_name_version_typesize.
2465         (simple_copy_phi_p): Move declarations closer to assignment.
2466         (build_pbb_scattering_polyhedrons): Same.
2467         (build_scop_scattering): Same.
2468         (isl_id_for_ssa_name): Same.
2469         (extract_affine_name): Same.
2470         (extract_affine_int): Same.
2471         (extract_affine): Same.
2472         (set_scop_parameter_dim): Use renamed member.
2473         (build_loop_iteration_domains): Same.
2474         (add_param_constraints): Same.
2475         (build_scop_iteration_domain): Same.
2476         (pdr_add_data_dimensions): Same.
2477         (build_poly_dr): Same.
2478         (build_scop_drs): Move declarations closer to assignment.
2479         (analyze_drs_in_stmts): Same.
2480         (insert_out_of_ssa_copy): Same.
2481         (insert_out_of_ssa_copy_on_edge): Same.
2482         (propagate_expr_outside_region): Same.
2483         (rewrite_phi_out_of_ssa): Same.
2484         (rewrite_degenerate_phi): Same.
2485         (rewrite_reductions_out_of_ssa): Same.
2486         (rewrite_cross_bb_scalar_dependence): Same.
2487         (handle_scalar_deps_crossing_scop_limits): Same.
2488         (rewrite_cross_bb_scalar_deps): Same.
2489         * graphite.c (graphite_transform_loops): Use renamed member.
2490
2491 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
2492
2493         PR c/65345
2494         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2495         create_tmp_var_raw instead of create_tmp_var.
2496
2497 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2498
2499         PR c/65345
2500         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2501         Use create_tmp_var_raw instead of create_tmp_var.
2502
2503 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
2504
2505         PR target/67849
2506         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2507         split for upper-bank registers when target does not support
2508         AVX512VL.
2509         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2510         split when target does not support AVX512VL.
2511
2512 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
2513
2514         PR c/65345
2515         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2516         Adjust to use create_tmp_var_raw instead of create_tmp_var.
2517
2518 2015-10-06  Nick Clifton  <nickc@redhat.com>
2519
2520         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2521         multiplication.
2522
2523 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2524
2525         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2526         (case ${target}): Add znver1.
2527         * config/i386/cpuid.h(bit_CLZERO):  Define.
2528         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2529         -march=native recognize znver1 processors.
2530         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2531         znver1, clzero def_and_undef.
2532         * config/i386/i386.c (struct processor_costs znver1_cost): New.
2533         (m_znver1): New definition.
2534         (m_AMD_MULTIPLE): Includes m_znver1.
2535         (processor_target_table): Add znver1 entry.
2536         (ix86_target_string) : Add clzero entry.
2537         (static const char *const cpu_names): Add znver1 entry.
2538         (ix86_option_override_internal): Add znver1 instruction sets.
2539         (PTA_CLZERO) :  New definition.
2540         (ix86_option_override_internal): Handle new clzerooption.
2541         (ix86_issue_rate): Add znver1.
2542         (ix86_adjust_cost): Add znver1.
2543         (ia32_multipass_dfa_lookahead): Add znver1.
2544         (has_dispatch): Add znver1.
2545         * config/i386/i386.h (TARGET_znver1): New definition.
2546         (TARGET_CLZERO): Define.
2547         (TARGET_CLZERO_P): Define.
2548         (struct ix86_size_cost): Add TARGET_ZNVER1.
2549         (enum processor_type): Add PROCESSOR_znver1.
2550         * config/i386/i386.md (define_attr "cpu"): Add znver1.
2551         (set_attr znver1_decode): New definitions for znver1.
2552         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2553         (mclzero): New.
2554         * config/i386/mmx.md (set_attr znver1_decode): New definitions
2555         for znver1.
2556         * config/i386/sse.md (set_attr znver1_decode): Likewise.
2557         * config/i386/x86-tune.def:  Add znver1 tunings.
2558         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2559         * gcc/doc/invoke.texi: Add details about znver1
2560
2561 2015-10-06  Richard Biener  <rguenther@suse.de>
2562
2563         PR tree-optimization/67859
2564         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2565         discard not inserted stmts.
2566
2567 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
2568
2569         * doc/extend.texi (Template Instantiation): Reorder options and
2570         de-emphasize -frepo.
2571         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2572         example instead of -frepo.
2573
2574 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
2575
2576         PR c/65345
2577         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2578         use create_tmp_var_raw rather than create_tmp_var.
2579
2580 2015-10-06  Richard Biener  <rguenther@suse.de>
2581
2582         * tree-vectorizer.h (vec_info): New base class for...
2583         (_loop_vec_info): ... this and ...
2584         (_bb_vec_info): ... this.
2585         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2586         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2587         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2588         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2589         vect_destroy_datarefs): Adjust interface to take a vec_info *
2590         rather than both a loop_vec_info and a bb_vec_info argument.
2591         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2592         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2593         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2594         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2595         accordingly.
2596         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2597         (destroy_loop_vec_info, vect_analyze_loop_2,
2598         vect_is_simple_reduction_1, get_initial_def_for_induction,
2599         vect_create_epilog_for_reduction, vectorizable_reduction,
2600         vectorizable_live_operation, vect_transform_loop): Adjust.
2601         * tree-vect-patterns.c (type_conversion_p,
2602         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2603         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2604         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2605         check_bool_pattern, vect_recog_bool_pattern,
2606         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2607         * tree-vect-slp.c (vect_get_and_check_slp_defs,
2608         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2609         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2610         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2611         (new_bb_vec_info): Initialize base classs.
2612         * tree-vect-stmts.c (record_stmt_cost, process_use,
2613         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2614         vectorizable_mask_load_store, vectorizable_call,
2615         vectorizable_simd_clone_call, vectorizable_conversion,
2616         vectorizable_assignment, vectorizable_shift,
2617         vectorizable_operation, vectorizable_store,
2618         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2619         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2620         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2621
2622 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2623
2624         PR c/65345
2625         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2626         create_tmp_var_raw rather than create_tmp_var.
2627
2628 2015-10-05  Marek Polacek  <polacek@redhat.com>
2629
2630         * tree-ssa-loop-im.c
2631         (move_computations_dom_walker::before_dom_children): Don't set
2632         SSA_NAME_ANTI_RANGE_P.
2633         * tree-ssa-phiopt.c (value_replacement): Likewise.
2634
2635 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2636             Sebastian Pop  <s.pop@samsung.com>
2637
2638         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2639
2640 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2641             Sebastian Pop  <s.pop@samsung.com>
2642
2643         * graphite-poly.c (new_gimple_poly_bb): ... here.
2644         (free_data_refs_aux): ... here.
2645         (free_gimple_poly_bb): ... here.
2646         (remove_gbbs_in_scop): ... here.
2647         (new_scop): Call new_sese.
2648         (free_scop): Call remove_gbbs_in_scop and free_sese.
2649         * graphite-poly.h (base_alias_pair): ... here.
2650         (new_gimple_poly_bb): Declare.
2651         (free_gimple_poly_bb): Declare.
2652         * graphite-scop-detection.c (parameter_index_in_region_1):
2653         (parameter_index_in_region): ... here.
2654         (scan_tree_for_params): ... here.
2655         (find_params_in_bb): ... here.
2656         (find_scop_parameters): ... here.
2657         (build_scops): Call find_scop_parameters.
2658         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2659         (free_scops): Move...
2660         (single_pred_cond_non_loop_exit): Move...
2661         (sese_dom_walker::before_dom_children): Move...
2662         (sese_dom_walker::after_dom_children): Move...
2663         (build_poly_scop): Move...
2664         * graphite-sese-to-poly.h (base_alias_pair): Move...
2665         * graphite.c (free_scops): ... here.
2666
2667 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
2668             Sebastian Pop  <s.pop@samsung.com>
2669
2670         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2671         (trivially_empty_bb_p): Move...
2672         (same_close_phi_node): Move...
2673         (new_gimple_poly_bb): Move...
2674         (compare_bb_depths): Move...
2675         (graphite_sort_dominated_info): Move...
2676         (remove_duplicate_close_phi): Move...
2677         (make_close_phi_nodes_unique): Move...
2678         (canonicalize_loop_closed_ssa): Move...
2679         (canonicalize_loop_closed_ssa_form): Move...
2680         (loop_ivs_can_be_represented): Move...
2681         (single_pred_cond_non_loop_exit): Move...
2682         (graphite_can_represent_init): Move...
2683         (graphite_can_represent_scev): Move...
2684         (stmt_has_simple_data_refs_p): Move...
2685         (stmt_has_side_effects):  Move...
2686         (graphite_can_represent_stmt): Move...
2687         (scop_detection): ... here.
2688         (sese_dom_walker): ... and here.
2689         (build_scops): Call all moved functions.
2690         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2691         (all_non_dominated_preds_marked_p): Move...
2692         (build_scop_bbs_1): Move...
2693         (build_scop_bbs): Move...
2694         (set_scop_parameter_dim): Move...
2695         (nb_pbbs_in_loops): Move...
2696         (build_poly_scop): Do not call all the moved functions.
2697
2698 2015-10-05  Martin Jambor  <mjambor@suse.cz>
2699             Jan Hubicka  <hubicka@ucw.cz>
2700
2701         * ipa-cp.c (ipcp_alignment_lattice): New type.
2702         (ipcp_param_lattices): Use the above to represent alignment.
2703         (ipcp_alignment_lattice::print): New function.
2704         (print_all_lattices): Use it to print alignment information.
2705         (ipcp_alignment_lattice::top_p): New function.
2706         (ipcp_alignment_lattice::bottom_p): Likewise.
2707         (ipcp_alignment_lattice::set_to_bottom): Likewise.
2708         (ipcp_alignment_lattice::meet_with_1): Likewise.
2709         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2710         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2711         (initialize_node_lattices): Likewise.
2712         (propagate_alignment_accross_jump_function): Work with the new class
2713         for alignment lattices.
2714         (propagate_constants_accross_call): Pass only the alignment lattice to
2715         propagate_alignment_accross_jump_function.
2716         (ipcp_store_alignment_results): Work with the new class for alignment
2717         lattices.
2718
2719 2015-10-05  Marek Polacek  <polacek@redhat.com>
2720
2721         PR tree-optimization/67821
2722         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2723
2724 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
2725
2726         PR other/65021
2727         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2728         function to...
2729         (mkoffload_cleanup): ... this.  Adjust all users.
2730         (maybe_unlink): Look at save_temps and verbose flags instead of
2731         debug flag.
2732         (main): Parse "-save-temps" flag.
2733         (generate_target_descr_file, generate_target_offloadend_file)
2734         (generate_host_descr_file, prepare_target_image): Pass it on.
2735         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2736         (mkoffload_cleanup): New function.
2737         (maybe_unlink): Look at save_temps and verbose flags instead of
2738         debug flag.
2739         (main): Instead of calling utils_cleanup, register atexit handler
2740         for mkoffload_cleanup.
2741         (main): Parse "-save-temps" flag.
2742         (compile_native, main): Pass it on.
2743         * lto-wrapper.c (compile_offload_image): Likewise.
2744
2745 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2746
2747         * gimple.h (gimple_op_ptr): Require a non const gimple *.
2748         (gimple_assign_lhs_ptr): Likewise.
2749         (gimple_assign_rhs1_ptr): Likewise.
2750         (gimple_assign_rhs2_ptr): Likewise.
2751         (gimple_assign_rhs3_ptr): Likewise.
2752         (gimple_call_lhs_ptr): Likewise.
2753         (gimple_call_fn_ptr): Likewise.
2754         (gimple_call_chain_ptr): Likewise.
2755                 (gimple_call_arg_ptr): Likewise.
2756                 (gimple_cond_lhs_ptr): Likewise.
2757         (gimple_cond_rhs_ptr): Likewise.
2758         (gimple_switch_index_ptr): Likewise.
2759         (gimple_return_retval_ptr): Likewise.
2760
2761 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2762
2763         * gimple.h (gimple_asm_input_op_ptr): Remove.
2764         (gimple_asm_output_op_ptr): Likewise.
2765
2766 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2767
2768         * gimple.h (gimple_location_ptr): Remove.
2769         * tree-vrp.c (check_all_array_refs): Adjust.
2770
2771 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2772
2773         * tree-ssa-operands.c (build_uses): store tree * instead of
2774         tree.
2775         (finalize_ssa_uses): Adjust.
2776         (append_use): Likewise.
2777         (verify_ssa_operands): Likewise.
2778
2779 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2780
2781         * real.h (build_real_truncate): Declare.
2782         * tree.c (build_real_truncate): New function.
2783         (strip_float_extensions): Use it.
2784         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2785         (fold_builtin_hypot, fold_builtin_pow): Likewise.
2786         * match.pd: Likewise.
2787
2788 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2789            Jiong Wang  <jiong.wang@arm.com>
2790
2791         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2792
2793 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2794
2795         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2796         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2797         (aarch64_print_operand, aarch64_float_const_representable_p)
2798         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2799         instead of REAL_VALUE_FROM_CONST_DOUBLE.
2800         * config/arc/arc.c (arc_print_operand): Likewise.
2801         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2802         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2803         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2804         Likewise.
2805         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2806         (consttable_16): Likewise.
2807         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2808         * config/avr/avr.c (avr_print_operand): Likewise.
2809         * config/bfin/bfin.md: Likewise (in a define_split).
2810         * config/c6x/c6x.md: Likewise (in a define_split).
2811         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2812         (cr16_print_operand): Likewise.
2813         * config/cris/cris.c (cris_print_operand): Likewise.
2814         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2815         * config/fr30/fr30.c (fr30_print_operand): Likewise.
2816         (fr30_const_double_is_zero): Likewise.
2817         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2818         * config/frv/frv.md: Likewise (in a define_split).
2819         * config/frv/predicates.md (int_2word_operand): Likewise.
2820         * config/h8300/h8300.c (h8300_print_operand): Likewise.
2821         * config/i386/i386.c (standard_80387_constant_p): Likewise.
2822         (ix86_print_operand, ix86_split_to_parts): Likewise.
2823         * config/i386/i386.md: Likewise (in a define_split).
2824         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2825         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2826         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2827         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2828         (print_operand): Likewise.
2829         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2830         * config/mep/mep.md: Likewise (in define_split).
2831         * config/microblaze/microblaze.c (microblaze_const_double_ok)
2832         (print_operand): Likewise.
2833         * config/mips/mips.md (consttable_float): Likewise.
2834         * config/mmix/mmix.c (mmix_intval): Likewise.
2835         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2836         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2837         * config/pa/pa.c (pa_singlemove_string): Likewise.
2838         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2839         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2840         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2841         (output_toc): Likewise.
2842         * config/rs6000/rs6000.md: Likewise (in define_splits).
2843         * config/rx/rx.c (rx_print_operand): Likewise.
2844         * config/s390/s390.c (s390_output_pool_entry): Likewise.
2845         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2846         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2847         (and also in define_splits).
2848         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2849         (fp_high_losum_p): Likewise.
2850         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2851         (*movsf_high): Likewise.
2852         * config/spu/spu.c (const_double_to_hwint): Likewise.
2853         * config/v850/v850.c (const_double_split): Likewise.
2854         * config/vax/vax.c (vax_float_literal): Likewise.
2855         * config/visium/visium.c (visium_expand_copysign): Likewise.
2856         * config/visium/visium.md: Likewise (in define_split).
2857         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2858         * config/xtensa/xtensa.c (print_operand): Likewise.
2859         (xtensa_output_literal): Likewise.
2860         * cprop.c (implicit_set_cond_p): Likewise.
2861         * dwarf2out.c (insert_float): Likewise.
2862         * expmed.c (expand_mult, make_tree): Likewise.
2863         * expr.c (compress_float_constant): Likewise.
2864         * rtlanal.c (split_double): Likewise.
2865         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2866         (simplify_const_unary_operation, simplify_binary_operation_1)
2867         (simplify_const_binary_operation): Likewise.
2868         (simplify_const_relational_operation): Likewise.
2869         * varasm.c (output_constant_pool_2): Likewise.
2870
2871 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2872
2873         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2874         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2875         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2876         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2877         instead of CONST_DOUBLE_FROM_REAL_VALUE.
2878         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2879         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2880         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2881         (ix86_emit_swsqrtsf): Likewise.
2882         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2883         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2884         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2885         * config/pa/pa.c (pa_expand_builtin): Likewise.
2886         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2887         (rs6000_scale_v2df): Likewise.
2888         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2889         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2890         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2891         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2892         (vec_ctul): Likewise.
2893         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2894         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2895         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2896         * cse.c (fold_rtx): Likewise.
2897         * emit-rtl.c (immed_double_const): Likewise (in comments).
2898         (init_emit_once): Likewise.
2899         * expr.c (compress_float_constant, expand_expr_real_1)
2900         (const_vector_from_tree): Likewise.
2901         * optabs.c (expand_float, expand_fix): Likewise.
2902         * reg-stack.c (reg_to_stack): Likewise.
2903         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2904         (simplify_const_unary_operation, simplify_binary_operation_1)
2905         (simplify_const_binary_operation, simplify_relational_operation)
2906         (simplify_immed_subreg): Likewise.
2907
2908 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2909
2910         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2911         * doc/tm.texi: Regenerate.
2912         * real.h (REAL_ARITHMETIC): Delete.
2913         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2914         (ix86_expand_round_sse4): Use real_arithmetic instead of
2915         REAL_ARITHMETIC.
2916         * config/i386/sse.md (round<mode>2): Likewise.
2917         * rtl.h (rtx_to_tree_code): Likewise (in comment).
2918         * explow.c (rtx_to_tree_code): Likewise (in comment).
2919         * match.pd: Likewise.
2920         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2921         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2922         (expand_pow_as_sqrts): Likewise.
2923         * tree-pretty-print.c (dump_generic_node): Remove code that
2924         was conditional on REAL_ARITHMETIC being undefined.
2925
2926 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2927
2928         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2929         * doc/tm.texi: Regenerate.
2930         * real.h (real_less): Declare.
2931         (REAL_VALUES_LESS): Delete.
2932         * real.c (real_less): New function.
2933         (real_compare): Use it.
2934         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2935         of REAL_VALUES_LESS.
2936         * config/microblaze/microblaze.c (microblaze_const_double_ok):
2937         Likewise.
2938         * fold-const.c (fold_convert_const_int_from_real): Likewise.
2939         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2940         (simplify_const_relational_operation): Likewise.
2941         * tree-call-cdce.c (check_pow): Likewise.
2942         (gen_conditions_for_pow_cst_base): Likewise.
2943
2944 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2945
2946         * real.h (REAL_VALUES_IDENTICAL): Delete.
2947         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
2948         instead of REAL_VALUES_IDENTICAL.
2949         * fold-const.c (operand_equal_p): Likewise.
2950         * ipa-icf.c (sem_variable::equals): Likewise.
2951         * tree-complex.c (some_nonzerop): Likewise.
2952         (expand_complex_multiplication): Likewise.
2953         * tree.c (simple_cst_equal): Likewise.
2954         * varasm.c (compare_constant): Likewise.
2955
2956 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
2957
2958         * real.h (real_equal): Declare.
2959         (REAL_VALUES_EQUAL): Delete.
2960         * real.c (real_equal): New function.
2961         (real_compare): Use it.
2962         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
2963         * doc/tm.texi: Regenerate.
2964         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
2965         real_equal instead of REAL_VALUES_EQUAL.
2966         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
2967         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
2968         (fp_const_from_val): Likewise.
2969         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
2970         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
2971         (floating_exact_log2): Likewise.
2972         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2973         * config/vax/vax.c (vax_float_literal): Likewise.
2974         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2975         * cprop.c (implicit_set_cond_p): Likewise.
2976         * expmed.c (expand_mult): Likewise.
2977         * fold-const.c (const_binop): Likewise.
2978         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2979         (simplify_const_binary_operation): Likewise.
2980         (simplify_const_relational_operation): Likewise.
2981         * tree-call-cdce.c (check_pow): Likewise.
2982         (gen_conditions_for_pow_cst_base): Likewise.
2983         * tree-inline.c (estimate_num_insns): Likewise.
2984         * tree-ssa-dom.c (record_equality): Likewise.
2985         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2986         (gimple_expand_builtin_pow): Likewise.
2987         (pass_optimize_widening_mul::execute): Likewise.
2988         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2989         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2990         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
2991
2992 2015-10-05  Richard Biener  <rguenther@suse.de>
2993
2994         PR ipa/67783
2995         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
2996         consider loop header PHI defs as IVs.
2997
2998 2015-10-05  Richard Biener  <rguenther@suse.de>
2999
3000         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3001         call handling ...
3002         (create_expression_by_pieces): ... here and build GIMPLE
3003         calls directly.  Use gimple_build API and avoid force_gimple_operand.
3004         (insert_into_preds_of_block): Simplify.
3005         (do_regular_insertion): Add comment.
3006
3007 2015-10-04  Jason Merrill  <jason@redhat.com>
3008
3009         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3010
3011 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
3012
3013         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3014         check for general register.
3015         (ix86_emit_save_regs): Ditto.
3016         (ix86_emit_save_regs_using_mov): Ditto.
3017         (ix86_emit_restore_regs_using_pop): Ditto.
3018         (ix86_emit_restore_regs_using_mov): Ditto.
3019
3020 2015-10-03  Marek Polacek  <polacek@redhat.com>
3021
3022         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3023         (insn-dfatab.o): Likewise.
3024
3025 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
3026
3027         * config.gcc (xtensa*-*-uclinux*): New configuration.
3028         * config/xtensa/uclinux.h: New file.
3029         * config/xtensa/uclinux.opt: New file.
3030
3031 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
3032
3033         * doc/cpp.texi (Standard Predefined Macros): Document value of
3034         __cplusplus for C++14.
3035
3036 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
3037
3038         * gcc.c (process_command): Use spec_machine rather than
3039         spec_host_machine to build tooldir_prefix2.
3040
3041 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3042             Bernd Schmidt  <bernds@codesourcery.com>
3043
3044         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3045         (Token, Stmt): Remove structs.
3046         (decls, vars, fns): Remove variables.
3047         (alloc_comment, append_stmt, is_keyword): Remove macros.
3048         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3049         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3050         (parse_init, parse_file): Remove functions.
3051         (read_file): Accept a pointer to a length and store into it.
3052         (process): Don't try to parse the input file, just write it out as
3053         a string, but looking for maps.  Also write out the length.
3054         (main): Don't use "-S" to compile PTX code.
3055
3056 2015-10-02  Jeff Law  <law@redhat.com>
3057
3058         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3059         fixups.
3060
3061 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
3062
3063         PR target/67822
3064         * config/nvptx/mkoffload.c (main): Scan the argument vector for
3065         -fopenmp, and skip generating an offloading image if specified.
3066
3067 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
3068
3069         * system.h (ROUND_UP): New macro definition.
3070         (ROUND_DOWN): Ditto.
3071         * ggc-page.c (ROUND_UP): Remove local macro definition.
3072         (PAGE_ALIGN): Implement using ROUND_UP macro.
3073
3074         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3075         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3076         to align values.
3077         (ix86_compute_frame_layout): Ditto.
3078         (ix86_expand_prologue): Ditto.
3079         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3080         to round down values.
3081         (expand_set_or_movmem_via_rep): Ditto.
3082
3083 2015-10-02  Marek Polacek  <polacek@redhat.com>
3084
3085         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3086
3087 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
3088
3089         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3090         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3091         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3092         (free_gimple_bb): Renamed free_gimple_poly_bb.
3093         (try_generate_gimple_bb): Hoist loop invariant code.
3094         (analyze_drs_in_stmts): Same.
3095         (build_scop_drs): Call renamed functions.
3096         (new_pbb_from_pbb): Same.
3097         (scop_ivs_can_be_represented): Delete as functionality now moved to
3098         graphite-scop-detection.c
3099         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3100
3101 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
3102
3103         * graphite-scop-detection.c (stmt_has_side_effects): New function
3104           outlined from stmt_simple_for_scop_p.
3105         (graphite_can_represent_stmt): Same.
3106         (stmt_simple_for_scop_p): Moved code out of this function for better
3107         readability.
3108
3109 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3110
3111         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3112         F_AVX512IFMA.
3113         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3114
3115 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3116
3117         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3118
3119 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
3120
3121         PR rtl-optimization/67756
3122         * lra-constraints.c (match_reload): Add a new parameter.  Use it
3123         for creating a pseudo with the same value.
3124         (curr_insn_transform): Pass a new argument to match_reload.
3125
3126 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3127
3128         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3129         (expand_vec_perm_even_odd_1): Handle V64QImode.
3130         (ix86_expand_vec_perm_const_1): Try expansion with
3131         expand_vec_perm_even_odd_trunc as well.
3132         * config/i386/sse.md (VI124_AVX512F): Rename to ...
3133         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3134         to V54QI.
3135         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3136         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3137         to V32HI and V16SI.
3138         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3139         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3140         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3141         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3142         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3143         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3144
3145 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
3146
3147         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3148         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3149
3150 2015-10-02  Jason Merrill  <jason@redhat.com>
3151
3152         PR c/59218
3153         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3154         (diagnose_tm_1_op): Also diagnose volatile accesses in
3155         transaction_safe function.
3156
3157 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
3158
3159         * system.h (malloc.h): Don't include obsolete header.
3160
3161 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3162
3163         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3164         (TLS_SECTION_ASM_FLAG): Delete.
3165
3166 2015-10-02  Marek Polacek  <polacek@redhat.com>
3167
3168         PR c/64249
3169         * doc/invoke.texi: Document -Wduplicated-cond.
3170         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3171         (insn-dfatab.o): Likewise.
3172         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3173         warning.
3174
3175 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
3176
3177         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3178         sequences.
3179
3180 2015-10-02  Renlin Li  <renlin.li@arm.com>
3181
3182         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3183
3184 2015-10-02  Renlin Li  <renlin.li@arm.com>
3185
3186         PR target/66776
3187         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3188
3189 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3190
3191         PR rtl-optimization/67786
3192         PR rtl-optimization/67787
3193         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3194         it modifies a reg used in the condition calculation.
3195
3196 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
3197
3198         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3199         alternatives for reads from memory and moves from general-purpose
3200         registers.
3201         (*aarch64_combinez_be<mode>): Likewise.
3202
3203 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
3204
3205         PR target/51726
3206         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3207         selectany within this function without need to keep attribute.
3208         (i386_pe_encode_section_info): Remove selectany-code.
3209
3210 2015-10-02  Richard Biener  <rguenther@suse.de>
3211
3212         * tree-ssa-sccvn.c (has_VN_INFO): New function.
3213         (free_scc_vn): Use it.
3214         (visit_use): Remove dead code and refactor to use gassign
3215         and use less indentation.
3216
3217 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3218
3219         PR target/67788
3220         PR target/67789
3221         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3222         (rs6000_cannot_copy_insn_p): New function.
3223         * config/rs6000/rs6000.md (cannot_copy): New attribute.
3224         (load_toc_v4_PIC_1_normal): Set cannot_copy.
3225         (load_toc_v4_PIC_1_476): Ditto.
3226
3227 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3228
3229         * graphite-scop-detection.c (struct sese_l): New conversion constructor
3230         so that this type can be pushed into a vec.
3231         (class scop_builder): use sese_l to collect scops.
3232         (get_scops): New getter function.
3233         (remove_intersecting_scops): Use sese_l instead of scops_p.
3234         (intersects): Same.
3235         (add_scop): Same.
3236         (subsumes): Same.
3237         (remove_subscops): Same.
3238         (build_scops): Add scops to vec<scops_p> once all the scops have been
3239         detected.
3240
3241 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
3242
3243         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3244         Renamed type from gimple_bb_p to gimple_poly_bb_p.
3245         (translate_isl_ast_node_user): Same.
3246         * graphite-poly.c (new_poly_bb): Same.
3247         * graphite-poly.h (gbb_from_bb): Same.
3248         * sese.h: Same.
3249         * graphite-sese-to-poly.c (new_gimple_bb):
3250         gimple_bb_p -> gimple_poly_bb_p
3251         (build_scop_scattering): Same.
3252         (find_params_in_bb): Same.
3253         (add_conditions_to_domain): Same.
3254         (sese_dom_walker::before_dom_children): Same.
3255         (analyze_drs_in_stmts): Same.
3256         (new_pbb_from_pbb): Same.
3257         (free_data_refs_aux): New pointer to type base_alias_pair.
3258         * graphite-sese-to-poly.h: Same.
3259         * sese.c (if_region_set_false_region): Fixed Indentation.
3260         (move_sese_in_condition): Same.
3261
3262 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3263             Aditya Kumar  <aditya.k7@samsung.com>
3264
3265         PR tree-optimization/66980
3266         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3267         when data reference analysis has failed.
3268
3269 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3270             Aditya Kumar  <aditya.k7@samsung.com>
3271
3272         PR tree-optimization/67754
3273         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3274         scev analysis on the same loop nest as analyze_drs_in_stmts.
3275         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3276         renamed...
3277         (try_generate_gimple_bb): Call outermost_loop_in_sese.
3278         (analyze_drs_in_stmts): Same.
3279         * sese.c (outermost_loop_in_sese): ...here.
3280
3281 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
3282             Aditya Kumar  <aditya.k7@samsung.com>
3283
3284         PR tree-optimization/67754
3285         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3286         recursion on the inner loops.
3287
3288 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3289
3290         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3291         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3292         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3293         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3294         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3295
3296 2015-10-01  Marek Polacek  <polacek@redhat.com>
3297
3298         PR c/65345
3299         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3300         create_tmp_var_raw rather than create_tmp_var.
3301
3302 2015-10-01  Marek Polacek  <polacek@redhat.com>
3303
3304         PR tree-optimization/67769
3305         * tree-ssa-phiopt.c (conditional_replacement): Call
3306         reset_flow_sensitive_info_in_bb.
3307         (minmax_replacement): Likewise.
3308         (abs_replacement): Likewise.
3309
3310 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3311
3312         * builtins.c: Don't include gomp-constants.h.
3313         (fold_builtin_1): Don't fold acc_on_device here.
3314         * gimple-fold.c: Include gomp-constants.h.
3315         (gimple_fold_builtin_acc_on_device): New.
3316         (gimple_fold_builtin): Call it.
3317
3318 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3319
3320         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3321         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3322
3323 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
3324
3325         * config/arm/aarch-common-protos.h
3326         (aarch_accumulator_forwarding): New.
3327         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3328         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3329         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3330         * config/arm/cortex-a53.md: Rewrite.
3331
3332 2015-10-01  Richard Biener  <rguenther@suse.de>
3333
3334         * gimple-match.h (mprts_hook): Declare.
3335         * gimple-match.head.c (mprts_hook): Define.
3336         (maybe_push_res_to_seq): Use new hook.
3337         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3338         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3339         (vn_ssa_aux::has_constants): Remove.
3340         * tree-ssa-sccvn.c: Include gimple-match.h.
3341         (VN_INFO_GET): Assert we don't re-use SSA names.
3342         (vn_get_expr_for): Remove.
3343         (expr_has_constants): Likewise.
3344         (stmt_has_constants): Likewise.
3345         (simplify_binary_expression): Likewise.
3346         (simplify_unary_expression): Likewise.
3347         (vn_lookup_simplify_result): New hook.
3348         (visit_copy): Adjust.
3349         (visit_reference_op_call): Likewise.
3350         (visit_phi): Likewise.
3351         (visit_use): Likewise.
3352         (process_scc): Likewise.
3353         (init_scc_vn): Likewise.
3354         (visit_reference_op_load): Likewise.  Use match-and-simplify and
3355         a gimple seq for inserted expressions.
3356         (try_to_simplify): Remove GENERIC stmt combining code.
3357         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3358         * tree-ssa-pre.c (eliminate_insert): Adjust.
3359         (eliminate_dom_walker::before_dom_children): Likewise.
3360
3361 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3362
3363         * doc/invoke.texi (Optimization Options): Add
3364         -freorder-blocks-algorithm=.
3365         (Optimize Options) <-O>: Add -freorder-blocks.
3366         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
3367         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3368         <-freorder-blocks>: Also enabled at levels -O and -Os.
3369         <-freorder-blocks-algorithm=>: Document new option.
3370
3371 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3372
3373         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3374         with flag_reorder_blocks_algorithm.
3375         * common.opt (freorder-blocks-algorithm=): New flag.
3376         (reorder_blocks_algorithm): New enum.
3377         * flag-types.h (reorder_blocks_algorithm): New enum.
3378         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3379         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3380
3381 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3382
3383         * bb-reorder.c: Add intro comment.
3384         (reorder_basic_blocks_software_trace_cache): Print a header to
3385         the dump file.
3386         (edge_order): New function.
3387         (reorder_basic_blocks_simple): New function.
3388         (reorder_basic_blocks): Choose between the STC and the simple
3389         algorithms (always choose the former).
3390
3391 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3392
3393         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3394         function, factored out from ...
3395         (reorder_basic_blocks): ... here.
3396
3397 2015-10-01  Tom de Vries  <tom@codesourcery.com>
3398
3399         * tree-cfg.c (dump_function_to_file): Dump function attributes using
3400         __attribute__(()) string.  Move dumping of function attributes to before
3401         function name.
3402
3403 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
3404
3405         PR target/66870
3406         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3407         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3408         based on gold linker version.
3409         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3410         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3411         * configure, config.in: Regenerate.
3412
3413 2015-10-01  Alan Modra  <amodra@gmail.com>
3414
3415         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3416         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3417         (rs6000_output_mi_thunk): Likewise.
3418
3419 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3420
3421         * config/nvptx/mkoffload.c (process): Change offload data format.
3422
3423 2015-09-30  Jeff Law  <law@redhat.com>
3424
3425         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3426         with constant conditions.
3427         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3428         (remove_ctrl_stmt_and_useless_edges): No longer static.
3429         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3430         (remove_ctrl_stmt_and_useless_edges): Likewise.
3431
3432 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
3433             Cesar Philippidis  <cesar@codesourcery.com>
3434
3435         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3436         (TARGET_GOACC_VALIDATE_DIMS): Override.
3437         * target.def (TARGET_GOACC): New target hook prefix.
3438         (validate_dims): New hook.
3439         * targhooks.h (default_goacc_validate_dims): New.
3440         * omp-low.c (oacc_validate_dims): New.
3441         (execute_oacc_device_lower): New.
3442         (default_goacc_validate_dims): New.
3443         (pass_data_oacc_device_lower): New.
3444         (pass_oacc_device_lower): New pass.
3445         (make_pass_oacc_device_lower): New.
3446         * tree-pass.h (make_pass_oacc_device_lower): Declare.
3447         * passes.def (pass_oacc_device_lower): Add it.
3448         * doc/tm.texi: Rebuilt.
3449         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3450         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3451
3452 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3453
3454         PR rtl-optimization/67037
3455         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3456
3457 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
3458
3459         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3460         * passes.c: Include tree-ssanames.h.
3461         (execute_function_todo): Flush the pending free SSA_NAMEs after
3462         eliminating unreachable basic blocks.
3463         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3464         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3465         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3466         (flush_ssanames_freelist): New function.
3467         (release_ssaname_fn): Put released names on the queue.
3468         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3469         * tree-ssanames.h (flush_ssanames_freelist): Declare.
3470
3471 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3472
3473         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3474         (generate_target_descr_file, generate_target_offloadend_file)
3475         (generate_host_descr_file, prepare_target_image): Pass it on.
3476         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3477         (compile_native, main): Pass it on.
3478         * lto-wrapper.c (compile_offload_image): Likewise.
3479
3480 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3481             Ilya Verbin  <ilya.verbin@intel.com>
3482             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3483
3484         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3485         (prepare_target_image, main): Refactor argv building to use
3486         obstacks.
3487
3488 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3489
3490         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3491         * config/spu/spu.c (spu_expand_atomic_op): New function.
3492         * config/spu/spu.md (AINT): New mode iterator.
3493         (ATOMIC): New code iterator.
3494         (atomic_name, atomic_pred): New code predicates.
3495         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3496         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3497         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3498         "atomic_<atomic_name>_fetch<mode>"): Likewise.
3499
3500 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
3501
3502         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3503         debug insns.
3504         (scalar_chain::convert_reg): Likewise.
3505
3506 2015-09-30  Richard Biener  <rguenther@suse.de>
3507
3508         * builtins.c: Add comment that no new simplifications should
3509         be added here.
3510
3511 2015-09-30  Marek Polacek  <polacek@redhat.com>
3512
3513         PR tree-optimization/67690
3514         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3515         reset_flow_sensitive_info_in_bb.
3516         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3517         * tree-ssanames.c: Include "gimple-iterator.h".
3518         (reset_flow_sensitive_info_in_bb): New function.
3519         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3520
3521 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
3522
3523         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3524         variable, replacing it with...
3525         (offload_abi): ... this new variable.  Adjust all users.
3526         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3527
3528 2015-09-30  Matthias Klose  <doko@ubuntu.com>
3529
3530         * configure.ac: Remove extraneous ;;.
3531         * configure: Regenerate.
3532
3533 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
3534
3535         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3536         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3537         predicate, disallow register for operand 2.
3538
3539 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
3540
3541         * graphite-dependences.c (scop_get_dependences): Moved in down
3542         in order to be visible to its caller.
3543         * graphite-poly.h: Removed compute_deps, and extend_schedule.
3544
3545 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3546             Aditya Kumar  <aditya.k7@samsung.com>
3547
3548         PR tree-optimization/67754
3549         * graphite-optimize-isl.c (optimize_isl): Call
3550         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3551
3552 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
3553
3554         * builtins.c (expand_builtin_acc_on_device): Delete.
3555         (expand_builtin): Don't call it.
3556         (fold_builtin_1): Fold acc_on_device.
3557
3558 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3559
3560         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3561         (ix86_nsaved_sseregs): Likewise.
3562
3563 2015-09-29  Jeff Law  <law@redhat.com>
3564
3565         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3566         computation of unused value.
3567
3568         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3569         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3570         inline macro expansion.
3571
3572         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3573
3574         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3575         (gen_shl_sext): Likewise.
3576         * config/sh/sh.md (divsi3): Likewise.
3577         (imm->ext_dest_operand splitter): Likewise.
3578
3579 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
3580             Aditya Kumar  <aditya.k7@samsung.com>
3581
3582         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3583         (nb_data_writes_in_bb): Remove.
3584         (split_pbb): Remove.
3585         (split_reduction_stmt): Remove.
3586         (is_reduction_operation_p): Remove.
3587         (phi_contains_arg): Remove.
3588         (follow_ssa_with_commutative_ops): Remove.
3589         (detect_commutative_reduction_arg): Remove.
3590         (detect_commutative_reduction_assign): Remove.
3591         (follow_inital_value_to_phi): Remove.
3592         (edge_initial_value_for_loop_phi): Remove.
3593         (initial_value_for_loop_phi): Remove.
3594         (used_outside_reduction): Remove.
3595         (detect_commutative_reduction): Remove.
3596         (translate_scalar_reduction_to_array_for_stmt): Remove.
3597         (remove_phi): Remove.
3598         (dr_indices_valid_in_loop): Remove.
3599         (close_phi_written_to_memory): Remove.
3600         (translate_scalar_reduction_to_array): Remove.
3601         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3602         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3603         (rewrite_commutative_reductions_out_of_ssa): Remove.
3604         (build_poly_scop): Remove call to
3605         rewrite_commutative_reductions_out_of_ssa.
3606
3607 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
3608
3609         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3610         Add new insn types for vector load and store pairs.
3611         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3612         types "neon_ldp{,_q}".
3613         * config/arm/cortex-a57.md (neon_load_c): Add insn types
3614         "neon_ldp{,_q}".
3615         (neon_store_complex): Add insn types "neon_stp{,_q}".
3616         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3617         "neon_{ldp,stp}_q".
3618
3619 2015-09-29  Jeff Law  <law@redhat.com>
3620
3621         * config/rx/constraints.md (Int08): Fix undefined left shift
3622         behaviour.
3623         (Sint08, Sint16, Sint24): Likewise.
3624         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3625
3626         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3627         behaviour.
3628
3629         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3630         left shift behaviour.
3631         * config/msp430/constraints.md ('L' constraint): Similarly.
3632         ('Ys' constraint): Similarly.
3633
3634 2015-09-29  Richard Biener  <rguenther@suse.de>
3635
3636         PR tree-optimization/67170
3637         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3638         the translate function pointer parameter to get the
3639         bool whether to disambiguate only by reference.
3640         (walk_non_aliased_vuses): Likewise.
3641         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3642         (get_continuation_for_phi_1): Likewise.
3643         (get_continuation_for_phi): Likewise.
3644         (walk_non_aliased_vuses): Likewise.
3645         * tree-ssa-sccvn.c (const_parms): New bitmap.
3646         (vn_reference_lookup_3): Adjust for interface change.
3647         Disambiguate parameters pointing to readonly memory.
3648         (free_scc_vn): Free const_parms.
3649         (run_scc_vn): Initialize const_parms from a fn spec attribute.
3650
3651 2015-09-29  Richard Biener  <rguenther@suse.de>
3652
3653         PR tree-optimization/67741
3654         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3655         builtin calls with correct signature.
3656
3657 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
3658
3659         PR target/65105
3660         * config/i386/i386.c: Include dbgcnt.h.
3661         (has_non_address_hard_reg): New.
3662         (convertible_comparison_p): New.
3663         (scalar_to_vector_candidate_p): New.
3664         (remove_non_convertible_regs): New.
3665         (scalar_chain): New.
3666         (scalar_chain::scalar_chain): New.
3667         (scalar_chain::~scalar_chain): New.
3668         (scalar_chain::add_to_queue): New.
3669         (scalar_chain::mark_dual_mode_def): New.
3670         (scalar_chain::analyze_register_chain): New.
3671         (scalar_chain::add_insn): New.
3672         (scalar_chain::build): New.
3673         (scalar_chain::compute_convert_gain): New.
3674         (scalar_chain::replace_with_subreg): New.
3675         (scalar_chain::replace_with_subreg_in_insn): New.
3676         (scalar_chain::emit_conversion_insns): New.
3677         (scalar_chain::make_vector_copies): New.
3678         (scalar_chain::convert_reg): New.
3679         (scalar_chain::convert_op): New.
3680         (scalar_chain::convert_insn): New.
3681         (scalar_chain::convert): New.
3682         (convert_scalars_to_vector): New.
3683         (pass_data_stv): New.
3684         (pass_stv): New.
3685         (make_pass_stv): New.
3686         (ix86_option_override): Created and register stv pass.
3687         (flag_opts): Add -mstv.
3688         (ix86_option_override_internal): Likewise.
3689         * config/i386/i386.md (SWIM1248x): New.
3690         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3691         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3692         (*anddi3_doubleword): New.
3693         (*zext<mode>_doubleword): New.
3694         (*zextsi_doubleword): New.
3695         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3696         (*<code>di3_doubleword): New.
3697         * config/i386/i386.opt (mstv): New.
3698         * dbgcnt.def (stv_conversion): New.
3699
3700 2015-09-29  Tom de Vries  <tom@codesourcery.com>
3701
3702         * tree-cfg.c (dump_function_to_file): Dump function attributes.
3703
3704 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3705
3706         PR target/67716
3707         * config/sh/sh.c (sh_override_options_after_change): New.
3708         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3709         (sh_option_override): Move align_loops, align_jumps and
3710         align_functions handling into sh_override_options_after_change.
3711
3712 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
3713
3714         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3715         (nvptx_record_offload_symbol): Record function execution geometry.
3716         * config/nvptx/mkoffload.c (process): Include launch geometry in
3717         function data.
3718         * omp-low.c (oacc_launch_pack): New.
3719         (replace_oacc_fn_attrib): New.
3720         (set_oacc_fn_attrib): New.
3721         (get_oacc_fn_attrib): New.
3722         (expand_omp_target): Create keyed varargs for GOACC_parallel call
3723         generation.
3724         * omp-low.h (get_oacc_fn_attrib): Declare.
3725         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3726         (DEF_FUNCTION_TYPE_VAR_11): Delete.
3727         * tree.h (OMP_CLAUSE_EXPR): New.
3728         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3729
3730 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3731             Sebastian Pop  <s.pop@samsung.com>
3732
3733         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3734
3735 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3736             Sebastian Pop  <s.pop@samsung.com>
3737
3738         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3739         * graphite-scop-detection.c (struct sese_l): New type.
3740         (get_entry_bb): API for getting entry bb of SESE.
3741         (get_exit_bb): API for getting exit bb of SESE.
3742         (class debug_printer): New type.  Simple printer in debug mode.
3743         (trivially_empty_bb_p): New.  Return true when BB is empty or
3744         contains only debug instructions.
3745         (graphite_can_represent_expr): Call scalar_evoution_in_region
3746         instead of analyze_scalar_evolution.  Pass in scop instead of only
3747         the scop entry.
3748         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3749         scop entry.
3750         (stmt_simple_for_scop_p): Same.
3751         (harmful_stmt_in_bb): Same.
3752         (graphite_can_represent_loop): Deleted.
3753         (struct scopdet_info): Deleted.
3754         (scopdet_basic_block_info): Deleted.
3755         (build_scops_1): Deleted.
3756         (bb_in_sd_region): Deleted.
3757         (find_single_entry_edge): Deleted.
3758         (find_single_exit_edge): Deleted.
3759         (create_single_entry_edge): Deleted.
3760         (sd_region_without_exit): Deleted.
3761         (create_single_exit_edge): Deleted.
3762         (unmark_exit_edges): Deleted.
3763         (mark_exit_edges): Deleted.
3764         (create_sese_edges): Deleted.
3765         (build_graphite_scops): Deleted.
3766         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3767         (build_scops): Use the new scop_builder to build scops.
3768         (dot_all_scops_1): Use the new pretty printer.  Print loop father
3769         as well.
3770         (loop_body_is_valid_scop): New.  Return true if loop body is a
3771         valid scop.
3772         (class scop_builder): New.  Builds SCoPs for polyhedral
3773         optimizations.
3774         (scop_builder): New constructor.
3775         (static sese_l invalid_sese): sese_l with invalid edges.
3776         (get_sese): Get an sese (from a loop) if possible, invalid_sese
3777         otherwise.
3778         (get_nearest_dom_with_single_entry): Get nearest dominator of a
3779         basic_block with single entry.  Return NULL if we get to the
3780         beginning of a function.
3781         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3782         a basic_block with single exit.  Return NULL if we get to the
3783         beginning of a function.
3784         (print_sese): Pretty-print SESE.
3785         (merge_sese): Merge two SESEs if possible and return the new SESE.
3786         (build_scop_depth): Start building the SCoP within a loop nest.
3787         (build_scop_breadth): Start building the SCoP at a single loop
3788         depth.  Merge adjacent SESEs if valid.
3789         (can_represent_loop_1): Returns true if Graphite can represent
3790         loop inside SCoP.  Helper for can_represent_loop.
3791         (can_represent_loop): Returns true if Graphite can represent LOOP
3792         and all its nested loops in SCoP.
3793         (loop_is_valid_scop): Returns true if LOOP and all its nests
3794         constitute a valid SCoP.
3795         (region_has_one_loop): Returns true of a region has only one loop.
3796         (add_scop): Add SCoP to the list of valid scops.  Removes an
3797         already existing scop if it intersects with or subsumed by this one.
3798         (harmful_stmt_in_region): Returns true if SCoP has any statment
3799         which cannot be represented by Graphite.
3800         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3801         (remove_subscops): Remove any SCoP from the list of already found
3802         SCoPs, if subsumed by S1.
3803         (intersects): Return true if region bounded by SCoPs S1 and S2
3804         intersect.
3805         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3806         * graphite.c (print_graphite_scop_statistics):
3807         (print_graphite_statistics): Print SCoP info while debugging.
3808         (graphite_initialize): Early exit in case number of loops in a
3809         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3810         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3811         (graphite_finalize):
3812         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3813         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3814         (recompute_all_dominators): Recalculate POST_DOMINATORS.
3815         * tree-cfg.c (print_loops): Print the function name while printing
3816         loops.
3817
3818 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
3819             Sebastian Pop  <s.pop@samsung.com>
3820
3821         PR tree-optimization/67700
3822         * graphite-sese-to-poly.c (parameter_index_in_region): Call
3823         invariant_in_sese_p_rec.
3824         (extract_affine): Same.
3825         (rewrite_cross_bb_scalar_deps): Call update_ssa.
3826         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
3827         * sese.h (invariant_in_sese_p_rec): Declare.
3828
3829 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
3830
3831         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3832
3833 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
3834
3835         Revert:
3836         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3837                     Jiong Wang  <jiong.wang@arm.com>
3838
3839         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3840         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3841         (REG_CLASS_NAMES): Likewise.
3842         (REG_CLASS_CONTENTS): Likewise.
3843         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3844         (aarch64_register_move_cost): Likewise.
3845         (aarch64_load_symref_appropriately): Invoke the new added pattern if
3846         possible.
3847         * config/aarch64/constraints.md (Uc0): New constraint.
3848
3849 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
3850
3851         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3852
3853 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
3854
3855         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3856         SECTION_EXCLUDE in XO mapping class.
3857
3858 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
3859
3860         PR target/54236
3861         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3862         and handle ne and eq codes.
3863         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3864         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
3865         CONST_INT_P.  Use reverse_condition.
3866         (sh_split_treg_set_expr): Likewise.
3867
3868 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
3869
3870         * config/arm/types.md (type): Add rotate_imm.
3871         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3872         ROR immediate case.
3873         (*rorsi3_insn_uxtw): Likewise.
3874         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3875         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3876         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3877
3878 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3879
3880         PR rtl-optimization/67481
3881         * ifcvt.c (contains_ccmode_rtx_p): New function.
3882         (insn_valid_noce_process_p): Use it.
3883
3884 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3885
3886         PR rtl-optimization/67456
3887         PR rtl-optimization/67464
3888         PR rtl-optimization/67465
3889         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3890         move in the mode of x.  Handle combination of complex and simple
3891         block pairs as well as the case when one is empty.
3892
3893 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3894
3895         * doc/gimple.texi: Update references to gimple_statement_base.
3896         * gdbhooks.py: Likewise.
3897         * gimple.h: Likewise.
3898
3899 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3900
3901         * config/sparc/driver-sparc.c: map LEON to leon3
3902
3903 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3904
3905         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3906           and make it inverse to change default
3907         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3908           supervisor mode
3909         * doc/invoke.texi: Document change of default
3910
3911 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
3912
3913         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3914         true on %f0 for a target without FPU.
3915         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3916         without FPU.
3917         (untyped_return): Do not load %f0 for a target without FPU.
3918
3919 2015-09-28  Andrew Pinski  <apinski@cavium.com>
3920
3921         * config/aarch64/aarch64.md (prefetch):
3922         Change the predicate of operand 0 to register_operand.
3923
3924 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
3925
3926         * config/i386/predicates.md (register_sse4nonimm_operand): New
3927         predicate.
3928         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3929         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3930         Use register_sse4nonimm_operand as operand 0 predicate.
3931         (*vec_extractv8hi_sse2): Remove insn pattern.
3932         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3933         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3934
3935 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
3936             Kaz Kojima  <kkojima@gcc.gnu.org>
3937
3938         PR target/67391
3939         * config/sh/sh-protos.h (sh_lra_p): Declare.
3940         * config/sh/sh.c (sh_lra_p): Make non-static.
3941         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
3942         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
3943         Expand into addsi3_scr if operands[2] if needed.
3944         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
3945         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
3946         (addsi3_scr, *addsi3): New insn_and_split patterns.
3947
3948 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
3949
3950         PR rtl-optimization/64164
3951         PR tree-optimization/67312
3952         PR middle-end/67340
3953         PR middle-end/67490
3954         PR bootstrap/67597
3955         * cfgexpand.c (parm_in_stack_slot_p): Remove.
3956         (ssa_default_def_partition): Remove.
3957         (get_rtl_for_parm_ssa_default_def): Remove.
3958         (set_rtl): Check that RTL assignments match expectations.
3959         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
3960         default def location for params and results.  Record SSA names
3961         or types in REG and MEM attrs, respectively.
3962         (set_parm_rtl): New.
3963         (expand_one_ssa_partition): Drop logic that assigned MEMs with
3964         unassigned addresses.
3965         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
3966         deferred stack alloc vars.
3967         (expand_used_vars): Skip partitions holding parm default defs.
3968         Move adjust_one_expanded_partition_var loop...
3969         (pass_expand::execute): ... here.  Drop redundant assert.
3970         Adjust comments before the final loop over all ssa names.
3971         Require assigned rtl of parms and results to match exactly.
3972         Reset its attributes to match them, not any other variables in
3973         the same partition.
3974         (expand_debug_expr): Use entry value for PARM's default defs
3975         only iff they have zero nondebug uses.
3976         * cfgexpand.h (parm_in_stack_slot_p): Remove.
3977         (get_rtl_for_parm_ssa_default_def): Remove.
3978         (set_parm_rtl): Declare.
3979         * doc/invoke.texi: Improve wording.
3980         * explow.c (promote_decl_mode): Fix promote_function_mode for
3981         result decls not by reference.
3982         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
3983         bypass TYPE_MODE to get the actual vector mode.
3984         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
3985         2015-08-19's changes as follows.  Drop include of
3986         basic-block.h and df.h.
3987         (rtl_for_parm): Remove.
3988         (maybe_reset_rtl_for_parm): Remove.
3989         (parm_in_unassigned_mem_p): Remove.
3990         (use_register_for_decl): Add logic for RESULT_DECLs matching
3991         assign_parms' behavior.
3992         (split_complex_args): Revert.
3993         (assign_parms_augmented_arg_list): Revert.  Add comment
3994         referencing the logic above.
3995         (assign_parm_adjust_stack_rtl): Revert.
3996         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
3997         of SET_DECL_RTL.  Set up a REG if the parm demands so.
3998         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
3999         calls into a single set_parm_rtl.  Set up a temporary RTL
4000         temporarily for expand_assignment.
4001         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
4002         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
4003         (assign_bounds): Revert.
4004         (assign_parms): Revert.  Use set_parm_rtl.
4005         (allocate_struct_function): Relayout result and parms of
4006         non-abstruct functions.
4007         (expand_function_start): Revert.  Use set_parm_rtl.  If the
4008         result is not a hard reg, create a pseudo from the promoted
4009         mode of the default def.  Promote static chain mode.
4010         * tree-outof-ssa.c (remove_ssa_form): Drop unused
4011         partition_has_default_def.  Set up
4012         partitions_for_parm_default_defs.
4013         (finish_out_of_ssa): Remove partition_has_default_def.
4014         Release partitions_for_parm_default_defs.
4015         * tree-outof-ssa.h (struct ssaexpand): Remove
4016         partition_has_default_def.  Add
4017         partitions_for_parm_default_defs.
4018         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4019         stor-layout.h.
4020         (build_ssa_conflict_graph): Fix conflict-detection of default
4021         defs of even unused default defs of params and results.
4022         (for_all_parms): New.
4023         (create_default_def): New.
4024         (register_default_def): New.
4025         (coalesce_with_default): New.
4026         (create_outofssa_var_map): Create default defs for all parms
4027         and results, and register their partitions.  Add GIMPLE_RETURN
4028         operands as coalesce candidates with results.  Add default
4029         defs of each parm or result as coalesce candidates with its
4030         other defs.  Mark each result def, and each default def of
4031         parms, as used_in_copy.
4032         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
4033         with the ssa names, even anonymous ones.  Drop
4034         parm_in_stack_slot_p calls.  Require same signedness and
4035         alignment.
4036         (coalesce_ssa_name): Add coalesce candidates for all defs of
4037         each parm and result, even unused ones.
4038         (parm_default_def_partition_arg): New type.
4039         (set_parm_default_def_partition): New.
4040         (get_parm_default_def_partitions): New.
4041         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4042         * tree-ssa-live.c (partition_view_init): Regard unused defs of
4043         parms and results as used.
4044         (verify_live_on_entry): Don't error out just because they're
4045         not live.
4046
4047 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
4048
4049         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4050         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4051         (output_fde): Don't output length for debug_frame on AIX.
4052         (output_call_frame_info): Don't output length for debug_frame on AIX.
4053         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4054         HAVE_XCOFF_DWARF_EXTRAS.
4055         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4056         HAVE_XCOFF_DWARF_EXTRAS.
4057         (output_compilation_unit_header): Don't output length on AIX.
4058         (output_pubnames): Don't output length on AIX.
4059         (output_aranges): Delete argument. Compute length locally. Don't
4060         output length on AIX.
4061         (output_line_info): Don't output length on AIX.
4062         (dwarf2out_finish): Don't compute aranges_length.
4063         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4064         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4065         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4066         symbol decoration for AIX.
4067         (rs6000_xcoff_debug_unwind_info): New.
4068         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4069         for SECTION_DEBUG.
4070         (rs6000_xcoff_declare_function_name): Emit different
4071         .function pseudo-op when DWARF2_DEBUG. Don't call
4072         xcoffout_declare_function for DWARF2_DEBUG.
4073         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4074         Redefine.
4075         * config/rs6000/aix71.h: New.
4076         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4077         locations support.
4078         * configure: Regenerate.
4079         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4080         DWARF support.
4081
4082 2015-09-26  Jeff Law  <law@redhat.com>
4083
4084         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4085         behaviour.
4086         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4087         behaviour.
4088
4089         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4090         behaviour
4091
4092         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4093         undefined behaviour.
4094
4095         * config/cris/cris.md (asrandb): Fix left shift undefined
4096         behaviour.
4097         (asrandw): Likewise.
4098
4099 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
4100
4101         PR target/61578
4102         * lra-constarints.c (match_reload): Check presence of the input pseudo
4103         in the output operand.
4104
4105 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4106
4107         * doc/invoke.texi (-fsanitize): Minor wording tweak.
4108
4109 2015-09-25  Tobias Burnus  <burnus@net-b.de>
4110
4111         * doc/invoke.texi (-fsanitize): Update URLs.
4112
4113 2015-09-25  Teresa Johnson  <tejohnson@google.com>
4114
4115         * opts.c (finish_options): Unset -freorder-blocks-and-partition
4116         if not using profile.
4117
4118 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4119
4120         PR pretty-print/67567
4121         * pretty-print.c (pp_string): Add gcc_checking_assert.
4122         * pretty-print.h (output_buffer_append_r): Likewise.
4123
4124 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4125
4126         PR target/67675
4127         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4128         addr2 individually.  Don't emit logical or insn if one is known to
4129         be aligned approriately.
4130         (sh_expand_cmpnstr): Likewise.
4131
4132 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
4133
4134         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4135         __builtin_aarch64_fp[sc]r arguments into a register.
4136
4137 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
4138
4139         * config.gcc (x86_archs): Replace lakemount with lakemont.
4140         (with_cpu): Likewise.
4141         (with_arch): Likewise.
4142         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4143         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
4144         __tune_lakemount__ with __tune_lakemont__.
4145         * config/i386/i386.c (lakemount_cost): Renamed to ...
4146         (lakemont_cost): This.
4147         (m_LAKEMOUNT): Renamed to ...
4148         (m_LAKEMONT): This.
4149         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4150         (processor_target_table): Replace "lakemount" with "lakemont".
4151         (processor_alias_table): Likewise.
4152         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4153         PROCESSOR_LAKEMONT.
4154         (ix86_adjust_cost): Likewise.
4155         (ia32_multipass_dfa_lookahead): Likewise.
4156         * config/i386/i386.h (processor_type): Likewise.
4157         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4158         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
4159         Lakemount with Lakemont.
4160
4161 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
4162
4163         * config.gcc (x86_archs): Replace iamcu with lakemount.
4164         (with_cpu): Likewise.
4165         (with_arch): Likewise.
4166         * doc/invoke.texi: Likewise.
4167         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4168         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
4169         __tune_iamcu__ with __tune_lakemount__.
4170         * config/i386/i386.c (iamcu_cost): Renamed to ...
4171         (lakemount_cost): This.
4172         (m_IAMCU): Renamed to ...
4173         (m_LAKEMOUNT): This.
4174         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4175         (processor_target_table): Replace "iamcu" with "lakemount".
4176         (processor_alias_table): Likewise.
4177         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4178         PROCESSOR_LAKEMOUNT.
4179         (ix86_adjust_cost): Likewise.
4180         (ia32_multipass_dfa_lookahead): Likewise.
4181         * config/i386/i386.h (processor_type): Likewise.
4182         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4183
4184 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
4185
4186         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4187         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4188         Declare.
4189         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4190         (pa_expand_compare_and_swap_loop): New.
4191         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4192         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4193         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4194         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4195         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4196         Revise.
4197
4198 2015-09-24  Michael Collison  <michael.collison@linaro.org>
4199
4200         PR other/57195
4201         * read-md.c (read_name): Allow mode iterators inside angle
4202         brackets in rtl expressions.
4203
4204 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
4205
4206         PR target/61578
4207         * ira-color.c (update_allocno_cost): Add parameter.
4208         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
4209         parameter.
4210
4211 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4212
4213         PR driver/67640
4214         * opts-common.c (prune_options): Discard all -fdiagnostics-color
4215         but the last one, which is moved to the front to be processed
4216         first.
4217         * opts.c (enable_warning_as_error): Reject options that do not
4218         control warnings.
4219
4220 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4221
4222         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4223
4224 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
4225
4226         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4227         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4228         (aarch64_cannot_force_const_mem): Likewise.
4229         (aarch64_classify_address): Likewise.
4230         (aarch64_classify_symbolic_expression): Likewise.
4231         (aarch64_print_operand): Likewise.
4232         (aarch64_classify_symbol): Likewise.
4233         (aarch64_mov_operand_p): Likewise.
4234         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4235         (aarch64_mov_operand): Likewise.
4236
4237 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
4238
4239         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4240         for info->spe_gp_size.
4241
4242 2015-09-24  Richard Biener  <rguenther@suse.de>
4243
4244         PR lto/67699
4245         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4246         abstract origins.
4247
4248 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
4249
4250         * tree-object-size.c (plus_stmt_object_size)
4251         (cond_expr_object_size): Change the formal parameters from gimple
4252         to gimple *.
4253         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4254         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4255         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4256
4257 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4258
4259         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4260         Check for ld -type pie on Solaris 11.x and 12.
4261         * configure: Regenerate.
4262         * config.in: Regenerate.
4263
4264         * gcc.c (LD_PIE_SPEC): Allow redefinition.
4265
4266         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4267         (STARTFILE_SPEC): Use it.
4268         (ENDFILE_CRTEND_SPEC): Define.
4269         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4270         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4271         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4272         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4273         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4274         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4275         (ENDFILE_ARCH_SPEC): Define.
4276         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4277
4278 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4279
4280         * configure.ac (gcc_cv_solaris_crts): New test.
4281         * configure. Regenerate.
4282         * config.in: Regenerate.
4283         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4284         HAVE_SOLARIS_CRTS variant.
4285
4286 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4287
4288         * tree-inline.h (count_insns_seq): Delete prototype.
4289         (estimate_num_insns_seq): Define prototype.
4290         * tree-inline.c (count_insns_seq): Delete.
4291         (estimate_num_insns_seq): Remove static qualifier.
4292         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4293         with estimate_num_insns_seq.
4294
4295 2015-09-24  Richard Biener  <rguenther@suse.de>
4296
4297         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4298         members.
4299         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4300         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
4301         offset.
4302         (ao_ref_init_from_vn_reference): Record clique and base in the
4303         built base.
4304         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4305
4306 2015-09-24  Richard Biener  <rguenther@suse.de>
4307
4308         PR tree-optimization/48885
4309         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4310         as not including any restrict tags from other pointers.
4311
4312 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4313
4314         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4315         character when appending to offload_targets.
4316
4317         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4318         offload targets by commas, not colons.
4319         * config.in: Regenerate.
4320         * configure: Likewise.
4321         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4322         instead of setting up the default offload targets here...
4323         (process_command): ..., do it here.
4324         libgomp/
4325         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4326         targets are separated by commas.
4327         * config.h.in: Regenerate.
4328
4329 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4330             Nathan Sidwell  <nathan@codesourcery.com>
4331
4332         * omp-low.h (omp_reduction_init_op): Declare.
4333         * omp-low.c (omp_reduction_init_op): New, broken out of ...
4334         (omp_reduction_init): ... here.  Call it.
4335         * tree-parloops.c (initialize_reductions): Use
4336         omp_reduction_init_op.
4337
4338 2015-09-23   Richard Biener  <rguenther@suse.de>
4339
4340         PR middle-end/67662
4341         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4342         undefined overflow unless they will cancel out.
4343
4344 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4345
4346         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4347         insn emit.
4348
4349 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4350
4351         PR c/49655
4352         * opts.h (write_langs): Declare.
4353         * opts-global.c (write_langs): Make it extern.
4354
4355 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
4356
4357         PR target/67391
4358         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4359         overlapping regs when matching the pattern.
4360
4361 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
4362
4363         * config/aarch64/aarch64-simd.md
4364         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4365         (aarch64_float_truncate_hi_v4sf_le): New.
4366         (aarch64_float_truncate_hi_v4sf_be): Likewise.
4367
4368 2015-09-23  Richard Biener  <rguenther@suse.de>
4369
4370         * tree-ssa-structalias.c (intra_create_variable_infos): Build
4371         representatives for all restrict qualified pointer destinations.
4372
4373 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4374
4375         * config/i386/i386.md (define_code_attr mshift): New.
4376         (define_mode_iterator SWI1248_AVX512BW): Rename ...
4377         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4378         only.
4379         (define_insn "*k<logic><mode>"): Use new iterator name.
4380         (define_insn "*<mshift><mode>3"): New.
4381
4382 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
4383
4384         PR middle-end/67649
4385         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4386         mark the block as accessible.
4387
4388 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
4389
4390         * function.c (thread_prologue_and_epilogue_insns): Delete
4391         orig_entry_edge argument to try_shrink_wrapping.
4392         * shrink-wrap.c (can_get_prologue): New function.
4393         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4394         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
4395         can_get_prologue where needed.  Remove code that finds a single
4396         edge for the prologue.  Remove code that tests if any reg clobbered
4397         by the prologue is live on the prologue edge.  Remove code that finds
4398         the new prologue edge after duplicating blocks.  Make a new prologue
4399         block and edge.
4400         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4401
4402 2015-09-22  Jeff Law  <law@redhat.com>
4403
4404         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4405         behavior.
4406
4407 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
4408
4409         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
4410         -Wtemplates, -Wnamespaces): Document.
4411
4412 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4413
4414         PR tree-optimization/67671
4415         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4416         pointer references as restrict.
4417
4418 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
4419
4420         * config/nios2/nios2.c (nios2_legitimize_address): When handling
4421         'reg + reloc' cases, allow first operand to be non-REG, and use
4422         force_reg() to enforce address pattern.
4423
4424 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
4425
4426         PR target/67480
4427         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4428         (define_mode_iterator VI12_AVX_AVX512F): New.
4429         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4430         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4431         (define_insn "*<code><mode>3"): ... Into new pattern using
4432         VI12_AVX_AVX512F iterators without masking.
4433
4434 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4435
4436         * config.gcc: Support "skylake-avx512".
4437         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4438         PROCESSOR_SKYLAKE_AVX512.
4439         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4440         (processor_target_table): Add "skylake-avx512".
4441         (PTA_SKYLAKE_AVX512): Define.
4442         (ix86_option_override_internal): Add "skylake_avx512".
4443         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4444         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4445         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4446         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4447         * doc/invoke.texi (skylake-avx512): New.
4448
4449 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4450
4451         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4452         operand in pattern.
4453         (define_insn "kunpcksi"): Ditto.
4454         (define_insn "kunpckdi"): Ditto.
4455
4456 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
4457
4458         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4459         iterator instead of fixed modes.
4460
4461 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4462
4463         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4464         Adjust declaration.
4465         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4466         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
4467         out_result.  Update to support update-fetch operations.
4468         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4469         Adjust for change to aarch64_gen_atomic_ldop.
4470         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4471         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4472         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4473         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4474         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4475
4476 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4477
4478         * config/aarch64/aarch64-protos.h
4479         (aarch64_atomic_ldop_supported_p): Declare.
4480         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4481         (enum aarch64_atomic_load_op_code): New.
4482         (aarch64_emit_atomic_load_op): New.
4483         (aarch64_gen_atomic_ldop): Update to support load-operate
4484         patterns.
4485         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4486         to an expander.
4487         (aarch64_atomic_<atomic_optab><mode>): New.
4488         (aarch64_atomic_<atomic_optab><mode>_lse): New.
4489         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4490         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4491         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4492
4493 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4494
4495         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4496         (UNSPECV_ATOMIC_LDOP_OR): New.
4497         (UNSPECV_ATOMIC_LDOP_BIC): New.
4498         (UNSPECV_ATOMIC_LDOP_XOR): New.
4499         (UNSPECV_ATOMIC_LDOP_PLUS): New.
4500         (ATOMIC_LDOP): New.
4501         (atomic_ldop): New.
4502         (aarch64_atomic_load<atomic_ldop><mode>): New.
4503
4504 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4505
4506         * config/aarch64/aarch64.md
4507         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4508         pattern.
4509
4510 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
4511
4512         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4513         Declare.
4514         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4515         (aarch64_gen_atomic_ldop): New.
4516         (aarch64_split_atomic_op): Fix whitespace and add a comment.
4517         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4518         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4519         (atomic_exchange<mode>): Replace with an expander.
4520         (aarch64_atomic_exchange<mode>): New.
4521         (aarch64_atomic_exchange<mode>_lse): New.
4522         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4523         (aarch64_atomic_swp<mode>): New.
4524
4525 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4526
4527         * tree-inline.c (expand_call_inline): Use inform for extra note.
4528         Do not give a note with UNKNOWN_LOCATION.
4529         Replace input_location with gimple_location (stmt).
4530         Use true/false instead of TRUE/FALSE.
4531
4532 2015-09-22  Tom de Vries  <tom@codesourcery.com>
4533
4534         PR tree-optimization/67666
4535         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4536         with single field non-conservative.
4537
4538 2015-09-21  David S. Miller  <davem@davemloft.net>
4539
4540         PR/67622
4541         Revert:
4542         2015-09-11  David S. Miller  <davem@davemloft.net>
4543
4544         * config/sparc/constraints.md: Make "U" constraint a real register
4545         constraint.
4546         * config/sparc/sparc.c (TARGET_LRA_P): Define.
4547         (D_MODES, DF_MODES): Add missing cast.
4548         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4549         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4550         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4551         cost to 8.
4552         * config/sparc/sparc.h (PROMOTE_MODE): Define.
4553         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4554         provide these insn when flag_pic.
4555
4556         2015-09-17  David S. Miller  <davem@davemloft.net>
4557
4558         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4559         Declare.
4560         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4561         function.
4562         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4563         (HARD_REGNO_CALLER_SAVE_MODE): Define.
4564         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4565         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4566         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4567         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4568         provide when flag_pic.
4569
4570 2015-09-21  Jeff Law  <law@redhat.com>
4571
4572         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4573         behavior.
4574
4575 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4576
4577         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4578
4579 2015-09-21  Richard Biener  <rguenther@suse.de>
4580
4581         * passes.c (rest_of_decl_compilation): Do not call
4582         dwarf2out_early_global_decl for aliases.
4583
4584 2015-09-21  Richard Biener  <rguenther@suse.de>
4585
4586         PR debug/67664
4587         * dwarf2out.c (add_location_or_const_value_attribute): Remove
4588         attribute parameter.  Early exit if either DW_AT_const_value
4589         or DW_AT_location are present already.
4590         (gen_variable_die): Adjust caller.
4591         (dwarf2out_late_global_decl): Likewise.
4592
4593 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4594
4595         PR target/67657
4596         * config/sh/sh.c (sh_remove_overlapping_post_inc,
4597         sh_peephole_emit_move_insn): Add new functions.
4598         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4599         sh_peephole_emit_move_insn): Declere them.
4600         * config/sh/sh.md: Use them in various peephole2 patterns.
4601
4602 2015-09-21  Richard Biener  <rguenther@suse.de>
4603
4604         PR middle-end/67651
4605         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4606         address with -fno-delete-null-pointer-checks.
4607
4608 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
4609
4610         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4611         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4612         (reduc_uplus_v16qi): Remove.
4613
4614         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4615         (reduc_<VEC_reduc_name>_v2df): Remove.
4616         (reduc_<VEC_reduc_name>_v4sf): Remove.
4617         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4618
4619         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4620         gen_ function by removing * prefix.
4621         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4622
4623 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4624
4625         PR middle-end/60832
4626         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4627         Print i_bound without converting it to a tree.
4628
4629 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
4630
4631         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4632         operands[4] operands[5] swap with std::swap, removed tmp variable.
4633         (arm_evpc_neon_vzip): Replaced in0/in1 and
4634         out0/out1 swaps with std::swap, removed x variable.
4635         (arm_evpc_neon_vtrn): Replaced in0/int1 and
4636         out0/out1 swaos with std::swap, removed x variable.
4637         (arm_expand_vec_perm_const_1): Replaced
4638         d->op0/d->op1 swap with std::swap, removed x variable.
4639         (arm_evpc_neon_vuzp): Replaced in0/in1 and
4640         out0/out1 swaps with std::swap, removed x variable.
4641
4642 2015-09-21  Jonathan Yong  <10walls@gmail.com>
4643
4644         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4645         sysroot/usr/lib/32api for additional win32 libraries,
4646         fixes failing Cygwin bootstrapping.
4647
4648 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4649
4650         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4651
4652 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
4653
4654         PR target/67126
4655         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4656         (*mov_t_msb_neg): Rewrite negc pattern.
4657
4658 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4659
4660         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4661         immediate generation code.
4662
4663 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4664
4665         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4666         redundant immediate generation code.
4667
4668 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4669
4670         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4671         (AARCH64_NUM_BITMASKS): Remove.
4672         (aarch64_bitmasks_cmp): Remove.
4673         (aarch64_build_bitmask_table): Remove.
4674
4675 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4676
4677         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4678         slow immediate matching loops with a faster algorithm.
4679
4680 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
4681
4682         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4683         faster algorithm.
4684
4685 2015-09-20  Jeff Law  <law@redhat.com>
4686
4687         PR tree-optimization/47679
4688         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4689         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4690         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4691         (thread_through_normal_block): Use record_temporary_equivalences.
4692
4693 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
4694
4695         * coretypes.h (gimple): Change typedef to be a forward declaration.
4696         * gimple.h (gimple_statement_base): rename to gimple.
4697         * (all functions and types using gimple): Adjust.
4698         * *.[ch]: Likewise.
4699
4700 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
4701             David Edelsohn  <dje.gcc@gmail.com>
4702
4703         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4704         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4705         (EH_FRAME_THROUGH_COLLECT2): Define.
4706         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4707         (ASM_OUTPUT_DWARF_PCREL): Define.
4708         (ASM_OUTPUT_DWARF_DATAREL): Define.
4709
4710 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
4711
4712         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4713         of TARGET_ELF32.
4714
4715 2015-09-18  Jeff Law  <law@redhat.com>
4716
4717         PR tree-optimization/47679
4718         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
4719         it here ...
4720         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4721         object.  Update constructor.
4722         (pass_dominator::execute):  Corresponding chagnes to declaration
4723         and initialization of avail_exprs_stack.  Update constructor call
4724         for dom_opt_dom_walker object.
4725         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
4726         it down to children as needed.
4727         (record_equivalences_from_incoming_edge): Likewise.
4728         (eliminate_redundant_computations): Likewise.
4729         (record_equivalences_from_stmt): Likewise.
4730         (simplify_stmt_for_jump_threading): Likewise.
4731         (record_temporary_equivalences): Likewise.
4732         (optimize_stmt): Likewise.
4733         (dom_opt_dom_walker::thread_across_edge): Update access to
4734         avail_exprs_stack object and pass it to children as needed.
4735         (dom_opt_dom_walker::before_dom_children): Similarly.
4736         (dom_opt_dom_walker::after_dom_children): Similarly.
4737         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4738         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4739         Add avail_expr_stack argument.  Pass it to children as needed.
4740         (dummy_simplify): Likewise.
4741         (simplify_control_stmt_condition): Likewise.
4742         (thread_around_empty_blocks): Likewise.
4743         (thread_through_normal_block): Likewise.
4744         (thread_across_edge): Likewise.
4745         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4746         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4747
4748         PR tree-optimization/47679
4749         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
4750         it here ...
4751         (dom_opt_dom_walker): New private member holding the const_and_copies
4752         object.  Update constructor.
4753         (pass_dominator::execute): Corresponding changes to declaration
4754         and initialization of const_and_copies.  Update constructor call
4755         for the dom_opt_dom_walker object.
4756         (record_temporary_equivalences): Accept const_and_copies argument
4757         pass it down to children as needed.
4758         (record_equality): Likewise.
4759         (record_equivalences_from_incoming_edge): Likewise.
4760         (cprop_into_successor_phis, optimize_stmt): Likewise.
4761         (eliminate_redundant_computations): Likewise.
4762         (dom_opt_dom_walker::thread_across_edge): Update access to
4763         const_and_copies object and pass it to children as needed.
4764         (dom_opt_dom_walker::before_dom_children): Similarly.
4765         (dom_opt_dom_walker::after_dom_children): Similarly.
4766
4767         PR tree-optimization/47679
4768         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
4769         it into the avail_exprs_stack class.
4770         (pass_dominator::execute): Corresponding changes to declaration
4771         and initialization of avail_exprs.  Pass avail_exprs to
4772         dump_dominator_optimization_stats.
4773         (record_cond): Extract avail_exprs from avail_exprs_stack.
4774         (lookup_avail_expr): Similarly.
4775         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
4776         position in file.
4777         (dump_dominator_optimization_stats): Make static and prototype.
4778         Add argument for the hash table to dump.
4779         (debug_dominator_optimization_stats): Remove.
4780         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4781         prototype.
4782         (debug_dominator_optimization_stats): Similarly.
4783         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4784         "void" in prototype for pop_to_marker method.  Add accessor method
4785         for the underlying avail_exprs table.
4786
4787         * tree-ssa-threadedge.c: Remove trailing whitespace.
4788
4789 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
4790
4791         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4792         unsigned.
4793         (pa_ldil_cint_p): Likewise.
4794         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4795         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4796         Update callers.
4797         * config/pa/pa.md: Likewise.
4798
4799 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
4800
4801         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4802         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4803         (diagnostic_show_locus): Likewise.
4804         (diagnostic_print_caret_line): Likewise.
4805         * diagnostic-show-locus.c: New file.
4806
4807 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
4808
4809         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4810         "back" parameter. Declare label in #if block.
4811
4812 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
4813
4814         PR middle-end/67619
4815         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4816         the address to a register.
4817
4818 2015-09-18  Jeff Law  <law@redhat.com>
4819
4820         PR tree-optimization/47679
4821         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4822         * tree-ssa-dom.c: Remove unnecessary header includes.
4823         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4824         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4825         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4826         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4827         (pass_phi_only_cprop::execute): Likewise.
4828         (make_pass_phi_only_cprop): Likewise.
4829         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
4830         uses of file scoped statics by passing the required objects
4831         as parameters wherever needed.
4832
4833 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
4834             David Edelsohn  <dje.gcc@gmail.com>
4835
4836         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4837         EH_FRAME_THROUGH_COLLECT2.
4838         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4839         DW_EH_PE_datarel.
4840         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4841         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
4842         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4843         * except.c (switch_to_exception_section): Use a read-only section
4844         even if EH_FRAME_SECTION_NAME is undefined.
4845         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4846         * collect2.c (write_c_file_stat): Provide dbase on AIX.
4847         (scan_prog_file): Don't export __dso_handle nor
4848         __gcc_unwind_dbase.
4849         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4850         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4851         (ASM_OUTPUT_DWARF_PCREL): Define.
4852         (ASM_OUTPUT_DWARF_DATAREL): Define.
4853         (EH_FRAME_THROUGH_COLLECT2): Define.
4854         (EH_FRAME_IN_DATA_SECTION): Delete.
4855         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4856         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4857         Declare.
4858         (rs6000_asm_output_dwarf_datarel): Declare.
4859         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4860         (rs6000_aix_asm_output_dwarf_datarel): New.
4861         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4862         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4863         (EH_FRAME_THROUGH_COLLECT2): Define.
4864         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4865         (EH_FRAME_THROUGH_COLLECT2): Define.
4866         (EH_TABLES_CAN_BE_READ_ONLY): Define.
4867         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4868         (EH_FRAME_THROUGH_COLLECT2): New.
4869         (ASM_OUTPUT_DWARF_DATAREL): New.
4870         * doc/tm.texi: Regenerate.
4871
4872 2015-09-18  Richard Biener  <rguenther@suse.de>
4873
4874         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4875         we're in early phase.
4876         (schedule_generic_params_dies_gen): Likewise.
4877         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4878         work as possible, retaining unhandled cases.
4879         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4880         clear out generic_type_instances at the end.
4881         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4882         (dwarf2out_early_finish): ... here.  Do most of
4883         gen_remaining_tmpl_value_param_die_attribute here.
4884
4885 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
4886
4887         PR tree-optimization/67283
4888         * tree-sra.c (type_consists_of_records_p): Rename to...
4889         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4890         (completely_scalarize_record): Rename to...
4891         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4892         (scalarize_elem): New.
4893         (analyze_all_variable_accesses): Follow renamings.
4894
4895 2015-09-18  Richard Biener  <rguenther@suse.de>
4896
4897         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4898         in early-dwarf.
4899
4900 2015-09-18  Richard Biener  <rguenther@suse.de>
4901
4902         PR tree-optimization/66142
4903         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4904         treat MEM[&x] and x the same.
4905         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4906         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4907         when we simplified sth.
4908         (vn_reference_maybe_forwprop_address): Likewise.
4909         (valueize_refs_1): When we simplified through
4910         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4911         set valueized_anything to true.
4912         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4913         one ref kills the other instead of just a offset-based test.
4914         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4915         for the operand_equal_p test to compare bases and also compare
4916         sizes.
4917
4918 2015-09-17  Christian Bruel  <christian.bruel@st.com>
4919
4920         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4921
4922 2015-09-17  Richard Henderson  <rth@redhat.com>
4923
4924         PR libstdc++/65913
4925         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4926         pointers that encode the alignment of the object.
4927
4928 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4929
4930         PR rtl-optimization/66790
4931         * df-problems.c (LIVE): Amend documentation.
4932
4933 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
4934
4935         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4936         and optabs-tree.o.
4937         (GTFILES): Replace optabs.c with optabs-libfunc.c.
4938         * genopinit.c (main): Add an include guard to insn-opinit.h.
4939         Protect the rtx_code parts with NUM_RTX_CODE.
4940         * optabs.h: Split parts out to...
4941         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
4942         * optabs.c: Split parts out to...
4943         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
4944         * cilk-common.c: Include optabs-query.h rather than optabs.h.
4945         * fold-const.c: Likewise.
4946         * target-globals.c: Likewise.
4947         * tree-if-conv.c: Likewise.
4948         * tree-ssa-forwprop.c: Likewise.
4949         * tree-ssa-loop-prefetch.c: Likewise.
4950         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
4951         Remove unncessary include files.
4952         * tree-ssa-phiopt.c: Likewise.
4953         * tree-ssa-reassoc.c: Likewise.
4954         * tree-switch-conversion.c: Likewise.
4955         * tree-vect-data-refs.c: Likewise.
4956         * tree-vect-generic.c: Likewise.
4957         * tree-vect-loop.c: Likewise.
4958         * tree-vect-patterns.c: Likewise.
4959         * tree-vect-slp.c: Likewise.
4960         * tree-vect-stmts.c: Likewise.
4961         * tree-vrp.c: Likewise.
4962         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
4963         rather than optabs.h.
4964         * expr.c: Include optabs-tree.h.
4965         * function.c: Likewise.
4966
4967 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
4968
4969         PR middle-end/65958
4970         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
4971         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
4972         * config/arm/arm.c: Include common/common-target.h.
4973         (use_return_insn): Return 0 if the static chain register was saved
4974         above a non-APCS frame.
4975         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
4976         (struct scratch_reg): New.
4977         (get_scratch_register_on_entry): New function.
4978         (release_scratch_register_on_entry): Likewise.
4979         (arm_emit_probe_stack_range): Likewise.
4980         (output_probe_stack_range): Likewise.
4981         (arm_expand_prologue): Factor out code dealing with the IP register
4982         for nested function and adjust it for stack checking.
4983         Invoke arm_emit_probe_stack_range if static builtin stack checking
4984         is enabled.
4985         (thumb1_expand_prologue): Sorry out if static builtin stack checking
4986         is enabled.
4987         (arm_expand_epilogue): Add the saved static chain register, if any, to
4988         the amount of pre-pushed registers to pop.
4989         (arm_frame_pointer_required): Return true if static stack checking is
4990         enabled and we want to catch the exception with the EABI unwinder.
4991         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
4992         (UNSPEC_PROBE_STACK_RANGE): Likewise.
4993         * config/arm/arm.md (probe_stack): New insn.
4994         (probe_stack_range): Likewise.
4995
4996 2015-09-17  Richard Biener  <rguenther@suse.de>
4997
4998         * genmatch.c (parser::parse_expr): Improve error message
4999         for mis-placed flags.
5000
5001 2015-09-17  Richard Biener  <rguenther@suse.de>
5002
5003         * passes.c (rest_of_decl_compilation): Always call early_global_decl
5004         debug hook when we created a varpool node.
5005         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5006         dwarf2out_early_global_decl, when not just add location or
5007         value attributes to existing DIEs.
5008
5009 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
5010
5011         * config/aarch64/aarch64.md (copysigndf3): New.
5012         (copysignsf3): Likewise.
5013
5014 2015-09-17  David S. Miller  <davem@davemloft.net>
5015
5016         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5017         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5018         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5019         (HARD_REGNO_CALLER_SAVE_MODE): Define.
5020         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5021         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5022         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5023         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5024         provide when flag_pic.
5025
5026 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5027
5028         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5029         object_allocator change.
5030
5031 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5032
5033         PR tree-optimization/66388
5034         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5035         (dump_iv): Dump no_overflow information.
5036         (alloc_iv): Initialize new field for struct iv.
5037         (mark_bivs): Count number of no_overflow bivs.
5038         (find_deriving_biv_for_expr, record_biv_for_address_use): New
5039         functions.
5040         (idx_find_step): Call new functions above.
5041         (add_candidate_1, add_candidate): New paramter.
5042         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5043         (get_computation_aff): Simplify convertion of cand for BIV.
5044         (get_computation_cost_at): Step cand's base if necessary.
5045
5046 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
5047
5048         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5049         parameter.
5050         (tree_simplify_using_condition): Ditto.
5051         (simplify_using_initial_conditions): Ditto.
5052         (loop_exits_before_overflow): Pass new argument to function
5053         simplify_using_initial_conditions.  Remove case for type conversions
5054         simplification.
5055         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5056         parameter.
5057         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5058         in iv base using loop initial conditions.
5059
5060 2015-09-16  Jeff Law  <law@redhat.com>
5061
5062         PR tree-optimization/47679
5063         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5064         (free_all_edge_infos): Use it.
5065         (allocate_edge_info): Free preexisting edge info data.
5066         (pass_dominator::execute): Set up initial edge info structures.
5067         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5068         thread_across_edge.
5069         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5070         If non-null, then push/pop markers appropriately.
5071         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5072         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5073         thread-across_edge.
5074
5075 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
5076
5077         * config/ft32/ft32.c: Fix the memory address space predicate.
5078
5079 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5080
5081         PR target/67573
5082         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5083         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5084
5085 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5086
5087         * toplev.h (check_global_declaration): Remove declaration.
5088         * toplev.c (check_global_declaration): Move to ...
5089         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5090         (analyze_functions): Update call.
5091
5092 2015-09-16  David S. Miller  <davem@davemloft.net>
5093
5094         * lra-constraints.c (simplify_operand_subreg): Do not assume that
5095         lowpart of a SUBREG has offset zero.
5096
5097 2015-09-16  Jeff Law  <law@redhat.com>
5098
5099         PR tree-optimization/47679
5100         * tree-ssa-dom.c (enum expr_kind): Moved from here to
5101         tree-ssa-scopedtables.h.
5102         (struct hashable_expr, class expr_hash_elt): Likewise.
5103         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5104         Move associated methods into tree-ssa-scopedtables.c.
5105         (avail_expr_hash, initialize_expr_from_cond): Similarly.
5106         (hashable_expr_equal_p, add_expr_commutative): Likewise.
5107         (add_hashable_expr): Likewise.
5108         (record_cond): Delete element directly.
5109         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5110         private copy ctor and assignment operator methods.
5111         (expr_elt_hasher): Inline trivial methods.
5112         (initialize_expr_from_cond): Prototype.
5113         * tree-ssa-scopedtables.c: Add necessary includes, functions and
5114         methods that were previously in tree-ssa-dom.c.  Improve various
5115         comments.
5116
5117 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
5118
5119         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5120
5121 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
5122
5123         PR bootstrap/67587
5124         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5125         fixup_partitions.
5126
5127 2015-09-16  Richard Biener  <rguenther@suse.de>
5128
5129         PR middle-end/67253
5130         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5131         location of possibly shared trees.
5132
5133 2015-09-16  Richard Biener  <rguenther@suse.de>
5134
5135         PR middle-end/67271
5136         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5137
5138 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5139
5140         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5141         offset and size computations instead of HOST_WIDE_INT.
5142
5143 2015-09-16  Richard Biener  <rguenther@suse.de>
5144
5145         PR middle-end/67442
5146         * fold-const.c (extract_muldiv_1): Properly extend multiplication
5147         result before builting a tree via wide_int_to_tree.
5148
5149 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
5150
5151         * Makefile.in: Add memory-block.cc
5152         (pool_allocator::initialize): Use fixed block size.
5153         (pool_allocator::release): Use memory_block_pool.
5154         (pool_allocator::allocate): Likewise.
5155         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5156         object pools.
5157         * cfg.c (initialize_original_copy_tables): Likewise.
5158         * cselib.c (elt_list_pool, elt_loc_list_pool,
5159         cselib_val_pool): Likewise.
5160         * df-problems.c (df_chain_alloc): Likewise.
5161         * df-scan.c (df_scan_alloc): Likewise.
5162         * dse.c (cse_store_info_pool, rtx_store_info_pool,
5163         read_info_type_pool, insn_info_type_pool, bb_info_pool,
5164         group_info_pool, deferred_change_pool): Likewise.
5165         * et-forest.c (et_nodes, et_occurrences): Likewise.
5166         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5167         ipcp_agg_lattice_pool): Likewise.
5168         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5169         * ipa-profile.c (histogram_pool): Likewise.
5170         * ipa-prop.c (ipa_refdesc_pool): Likewise.
5171         * ira-build.c (live_range_pool, allocno_pool, object_pool,
5172         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5173         * ira-color.c (update_cost_record_pool): Likewise.
5174         * lra-lives.c (lra_live_range_pool): Likewise.
5175         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5176         * memory-block.cc: New file.
5177         * memory-block.h: New file.
5178         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5179         * sched-deps.c (sched_deps_init): Likewise.
5180         * sel-sched-ir.c (sched_lists_pool): Likewise.
5181         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5182         * tree-sra.c (access_pool): Likewise.
5183         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5184         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5185         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5186         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5187         * tree-ssa-strlen.c (strinfo_pool): Likewise.
5188         * tree-ssa-structalias.c (variable_info_pool): Likewise.
5189         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5190         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5191
5192 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5193
5194         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5195         definition.
5196         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5197         call0 ABI.
5198
5199 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
5200
5201         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5202         to pass TLS call argument, according to current ABI.
5203         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5204         callx0 for TLS call, according to current ABI.
5205
5206 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5207
5208         * tree-eh.c (lower_try_finally_dup_block): Clear location information
5209         on stack restore statements.
5210         (decide_copy_try_finally): Do not consider a stack restore statement as
5211         coming from sources.
5212
5213 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
5214
5215         * config/alpha/alpha.c (alpha_expand_block_clear): Use
5216         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5217
5218 2015-09-15  Jeff Law  <law@redhat.com>
5219
5220         PR tree-optimization/47679
5221         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5222         methods and private members.
5223         (avail_exprs_stack): Similarly.  Change type of global
5224         from a pair of expr_hash_elt_t to the new class.
5225         (expr_elt_hasher::hash): Corresponding changes.
5226         (expr_elt_hasher::equal): Similarly.
5227         (avail_expr_hash): Similarly.
5228         (pass_dominator::execute): Similarly.
5229         (dom_opt_dom_walker::thread_across_edge): Similarly.
5230         (record_cond): Similarly.
5231         (dom_opt_dom_walker::before_dom_children): Similarly.
5232         (dom_opt_dom_walker::after_dom_children): Similarly.
5233         (lookup_avail_expr): Likewise.
5234         (initialize_hash_element): Now a expr_hash_elt constructor.
5235         (initialize_hash_element_from_expr): Similarly.
5236         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5237         (free_expr_hash_elt): Call dtor for the element.
5238         (remove_local_expressions_from_table): Now the "pop_to_marker"
5239         method in the available_exprs_stack class.
5240         (avail_expr_stack::record_expr): Method factored out.
5241         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5242         Fix formatting.
5243         (hashable_expr_equal_p): Fix formatting.
5244
5245 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
5246
5247         * input.h (location_get_source_line): Drop "expanded_location"
5248         param in favor of a file and line number.
5249         * input.c (location_get_source_line): Likewise.
5250         (dump_location_info): Update for change in signature of
5251         location_get_source_line.
5252         * diagnostic.c (diagnostic_print_caret_line): Likewise.
5253
5254 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5255
5256         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5257         Bump to 4KB for SJLJ exceptions.
5258         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
5259         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5260         * doc/tm.texi: Regenerate.
5261
5262 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5263
5264         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5265         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
5266         Update prototype.
5267
5268 2015-09-15  Richard Biener  <rguenther@suse.de>
5269
5270         PR tree-optimization/67470
5271         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5272         structure for PHI hoisting by inserting a forwarder block
5273         if appropriate.
5274
5275 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5276
5277         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5278         (arm_option_print): New function.
5279
5280 2015-09-15  Christian Bruel  <christian.bruel@st.com>
5281
5282         PR target/52144
5283         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5284         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5285         Remove flags parameter.
5286         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5287         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5288         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5289         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5290         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5291         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5292         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5293         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5294
5295 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5296
5297         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5298
5299         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5300         AARCH64_VALID_SIMD_DREG_MODE.
5301
5302 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5303
5304         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5305         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5306         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5307         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5308         aarch64_ld4_lane<mode>): Combine together, making...
5309         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5310         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5311         aarch64_st4_lane<mode>): Combine together, making...
5312         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5313         * config/aarch64/iterators.md (nregs): Add comment.
5314
5315 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5316
5317         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5318         Change operand mode from <V_TWO_ELEM> to BLK.
5319         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5320         (aarch64_vec_store_lanesoi_lane<mode): Likewise
5321         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5322         (aarch64_ld2_lane<mode>): Likewise.
5323         (aarch64_st2_lane<VQ:mode>): Likewise.
5324         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5325
5326 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5327
5328         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5329         Change operand mode from <V_FOUR_ELEM> to BLK.
5330         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5331         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5332         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5333         (aarch64_ld4_lane<mode>): Likewise.
5334         (aarch64_st4_lane<mode>): Likewise.
5335         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5336
5337 2015-09-15  Richard Biener  <rguenther@suse.de>
5338
5339         PR middle-end/67563
5340         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5341         transfer EH info from old to new stmt.
5342         (replace_call_with_value): Likewise.
5343         (replace_call_with_call_and_fold): Likewise.
5344         (gimple_fold_builtin_memory_op): Likewise.
5345         (gimple_fold_builtin_memset): Likewise.
5346         (gimple_fold_builtin_stpcpy): Likewise.
5347         (gimple_fold_call): Likewise.
5348
5349 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5350
5351         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5352         comment.
5353         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5354         (aarch64_simd_intEI_type_node): Likewise.
5355         (aarch64_simd_builtin_std_type): Remove EImode case.
5356         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5357         * config/aarch64/aarch64-modes.def: Remove EImode.
5358
5359 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5360
5361         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5362         Change operand mode from <V_THREE_ELEM> to BLK.
5363         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5364         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5365         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5366         (aarch64_ld3_lane<mode>): Likewise.
5367         (aarch64_st3_lane<mode>): Likewise.
5368         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5369
5370 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5371
5372         * config/aarch64/aarch64-simd.md
5373         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5374         Change all TImode operands to BLKmode.
5375         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5376         Change all EImode operands to BLKmode.
5377         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5378         Change all OImode operands to BLKmode.
5379
5380         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5381         and call set_mem_size.
5382         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5383
5384         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5385
5386 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
5387
5388         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5389         to...
5390         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5391
5392         (vec_store_lanesci_lane<mode>): Rename to...
5393         (aarch64_vec_store_lanesci_lane<mode>): ...this.
5394
5395         (vec_store_lanesxi_lane<mode>): Rename to...
5396         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5397
5398         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5399         aarch64_st4_lane<mode>): Follow renaming.
5400
5401 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5402
5403         * config/s390/s390.c (s390_const_operand_ok): Add missing
5404         brackets.
5405
5406 2015-09-15  Richard Biener  <rguenther@suse.de>
5407
5408         PR lto/67568
5409         * lto-streamer.h (lto_location_cache::current_sysp): Properly
5410         initialize.
5411         * lto-streamer-out.c (clear_line_info): Likewise.
5412
5413 2015-09-15  Richard Biener  <rguenther@suse.de>
5414
5415         * doc/match-and-simplify.texi: Fix wording.
5416
5417 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
5418
5419         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5420         unnecessary type conversion in op1.
5421
5422 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5423
5424         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5425         (dup_block_and_redirect): Delete function.
5426         (can_dup_for_shrink_wrapping): New function.
5427         (fix_fake_fallthrough_edge): New function.
5428         (try_shrink_wrapping): Rewrite function.
5429         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5430
5431 2015-09-14  Rich Felker  <dalias@libc.org>
5432
5433         * configure.ac: Change target pattern for sh TLS support
5434         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5435         * configure: Regenerate.
5436
5437 2015-09-14  Jeff Law  <law@redhat.com>
5438
5439         PR tree-optimization/47679
5440         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5441         type rather than void *.
5442
5443 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5444
5445         PR fortran/67460
5446         * diagnostic.c (diagnostic_initialize): Do not set
5447         some_warnings_are_errors.
5448         (diagnostic_finish): Use DK_WERROR count instead.
5449         (diagnostic_report_diagnostic): Do not set
5450         some_warnings_are_errors.
5451         * diagnostic.h (struct diagnostic_context): Remove
5452         some_warnings_are_errors.
5453
5454 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
5455
5456         * config/sparc/predicates.md (const_all_ones_operand): Use
5457         CONSTM1_RTX to simplify definition.
5458
5459 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
5460
5461         PR target/67061
5462         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5463         Handle call insns.
5464
5465 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
5466
5467         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5468         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5469         OPT_fshow_column to handled saved option cases.
5470         (append_compiler_options): Do not skip the above added options.
5471
5472 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5473
5474         PR target/63304
5475         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5476         nopcrelative_literal_loads.
5477         (aarch64_classify_address): Likewise.
5478         (aarch64_constant_pool_reload_icode): Define.
5479         (aarch64_secondary_reload): Handle secondary reloads for
5480         literal pools.
5481         (aarch64_override_options): Handle nopcrelative_literal_loads.
5482         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5483         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5484         Define.
5485         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5486         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5487         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5488         predicate.
5489         * doc/invoke.texi (mpc-relative-literal-loads): Document.
5490
5491 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
5492
5493         PR middle-end/67401
5494         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5495         sync_compare_and_swap_optab libcall to target_oval.
5496
5497 2015-09-14  Marek Polacek  <polacek@redhat.com>
5498
5499         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5500         value.
5501         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5502
5503 2015-09-11  Mark Wielaard  <mjw@redhat.com>
5504
5505         PR c/28901
5506         * toplev.c (check_global_declaration): Check and use
5507         warn_unused_const_variable.
5508         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5509         (-Wunused-variable): Remove non-constant. For C implies
5510         -Wunused-const-variable.
5511         (-Wunused-const-variable): New.
5512
5513 2015-09-14  Richard Biener  <rguenther@suse.de>
5514
5515         * doc/match-and-simplify.texi: Update for changed syntax
5516         of inner ifs and the new switch expression.
5517
5518 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
5519
5520         * config/i386/haswell.md: New file describing Haswell pipeline.
5521         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5522         haswell-like processors.
5523         (ix86_reassociation_width): Increase reassociation width for 64-bit
5524         Haswell processor family.
5525         * config/i386/i386.md: Introduce haswell cpu and include new md file.
5526
5527 2015-09-14  Richard Biener  <rguenther@suse.de>
5528
5529         * doc/match-and-simplify.texi: Fixup some formatting issues
5530         and document the 's' flag.
5531
5532 2015-09-13  Olivier Hainque  <hainque@adacore.com>
5533             Eric Botcazou  <ebotcazou@adacore.com>
5534
5535         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5536         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
5537         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5538         (TARGET_CPU_gr5): Likewise.
5539         (TARGET_CPU_gr6): Likewise.
5540         (MULTILIB_DEFAULTS): Likewise.
5541         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5542         for mcpu=gr5 and mcpu=gr6.
5543         (MULTILIB_DIRNAMES): Adjust accordingly.
5544
5545 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5546
5547         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5548         (mem_ref_p): Likewise.
5549         (outermost_indep_loop): Adjust.
5550         (mem_ref_in_stmt): Likewise.
5551         (determine_max_movement): Likewise.
5552         (mem_ref_alloc): Likewise.
5553         (record_mem_ref_loc): Likewise.
5554         (set_ref_stored_in_loop): Likewise.
5555         (mark_ref_stored): Likewise.
5556         (gather_mem_refs_stmt): Likewise.
5557         (mem_refs_may_alias_p): Likewise.
5558         (for_all_locs_in_loop): Likewise.
5559         (struct rewrite_mem_ref_loc): Likewise.
5560         (rewrite_mem_refs): Likewise.
5561         (struct first_mem_ref_loc_1): Likewise.
5562         (first_mem_ref_loc): Likewise.
5563         (struct sm_set_flag_if_changed): Likewise.
5564         (execute_sm_if_changed_flag_set): Likewise.
5565         (execute_sm): Likewise.
5566         (hoist_memory_references):
5567         (struct ref_always_accessed): Likewise.
5568         (ref_always_accessed_p): Likewise.
5569         (refs_independent_p): Likewise.
5570         (record_dep_loop): Likewise.
5571         (ref_indep_loop_p_1): Likewise.
5572         (ref_indep_loop_p_2): Likewise.
5573         (ref_indep_loop_p): Likewise.
5574         (can_sm_ref_p): Likewise.
5575         (find_refs_for_sm): Likewise.
5576         (tree_ssa_lim_finalize): Likewise.
5577
5578 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5579
5580         * dwarf2out.c (dw_attr_ref): Remove typedef.
5581         (dw_line_info_ref): Likewise.
5582         (pubname_ref): Likewise.
5583         (dw_ranges_ref): Likewise.
5584         (dw_ranges_by_label_ref): Likewise.
5585         (comdat_type_node_ref): Likewise.
5586         (get_AT): Adjust.
5587         (get_AT_low_pc): Likewise.
5588         (get_AT_hi_pc): Likewise.
5589         (get_AT_string): Likewise.
5590         (get_AT_flag): Likewise.
5591         (get_AT_unsigned): Likewise.
5592         (get_AT_ref): Likewise.
5593         (get_AT_file): Likewise.
5594         (remove_AT): Likewise.
5595         (print_die): Likewise.
5596         (check_die): Likewise.
5597         (die_checksum): Likewise.
5598         (attr_checksum_ordered): Likewise.
5599         (struct checksum_attributes): Likewise.
5600         (collect_checksum_attributes): Likewise.
5601         (die_checksum_ordered): Likewise.
5602         (same_die_p): Likewise.
5603         (is_declaration_die): Likewise.
5604         (clone_die): Likewise.
5605         (clone_as_declaration): Likewise.
5606         (copy_declaration_context): Likewise.
5607         (break_out_comdat_types): Likewise.
5608         (copy_decls_walk): Likewise.
5609         (output_location_lists): Likewise.
5610         (external_ref_hasher::hash): Likewise.
5611         (optimize_external_refs_1): Likewise.
5612         (build_abbrev_table): Likewise.
5613         (size_of_die): Likewise.
5614         (unmark_all_dies): Likewise.
5615         (size_of_pubnames): Likewise.
5616         (output_die_abbrevs): Likewise.
5617         (output_die): Likewise.
5618         (output_pubnames): Likewise.
5619         (add_ranges_num): Likewise.
5620         (add_ranges_by_labels): Likewise.
5621         (add_high_low_attributes): Likewise.
5622         (gen_producer_string): Likewise.
5623         (dwarf2out_set_name): Likewise.
5624         (new_line_info_table): Likewise.
5625         (prune_unused_types_walk_attribs): Likewise.
5626         (prune_unused_types_update_strings): Likewise.
5627         (prune_unused_types): Likewise.
5628         (resolve_addr): Likewise.
5629         (optimize_location_lists_1): Likewise.
5630         (index_location_lists): Likewise.
5631         (dwarf2out_finish): Likewise.
5632
5633 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5634
5635         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5636
5637 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5638
5639         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5640         (dump_asserts_for): Adjust.
5641         (register_new_assert_for): Likewise.
5642         (process_assert_insertions): Likewise.
5643         (insert_range_assertions): Likewise.
5644
5645 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5646
5647         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5648         and remove typedef.
5649         (new_temp_expr_table): Adjust.
5650         (free_temp_expr_table): Likewise.
5651         (version_to_be_replaced_p): Likewise.
5652         (make_dependent_on_partition): Likewise.
5653         (add_to_partition_kill_list): Likewise.
5654         (remove_from_partition_kill_list): Likewise.
5655         (add_dependence): Likewise.
5656         (finished_with_expr): Likewise.
5657         (process_replaceable): Likewise.
5658         (kill_expr): Likewise.
5659         (kill_virtual_exprs): Likewise.
5660         (mark_replaceable): Likewise.
5661         (find_replaceable_in_bb): Likewise.
5662         (find_replaceable_exprs): Likewise.
5663         (debug_ter): Likewise.
5664
5665 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5666
5667         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5668         (struct btr_user): Rename from btr_user_s.
5669         (struct btr_def): Rename from btr_def_s.
5670         (find_btr_def_group): Adjust.
5671         (add_btr_def): Likewise.
5672         (new_btr_user): Likewise.
5673         (note_other_use_this_block): Likewise.
5674         (compute_defs_uses_and_gen): Likewise.
5675         (link_btr_uses): Likewise.
5676         (build_btr_def_use_webs): Likewise.
5677         (block_at_edge_of_live_range_p): Likewise.
5678         (btr_def_live_range): Likewise.
5679         (combine_btr_defs): Likewise.
5680         (move_btr_def): Likewise.
5681         (migrate_btr_def): Likewise.
5682         (migrate_btr_defs): Likewise.
5683
5684 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5685
5686         * var-tracking.c (shared_hash_def): Rename to shared_hash.
5687         (shared_hash): Remove typedef.
5688         (struct dataflow_set): Adjust.
5689         (shared_hash_unshare): Likewise.
5690         (dataflow_set_merge): Likewise.
5691         (vt_initialize): Likewise.
5692         (vt_finalize): Likewise.
5693
5694 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5695
5696         * var-tracking.c (struct location_chain): Rename from
5697         location_chain_def.
5698         (struct variable_part): Adjust.
5699         (variable_htab_free): Likewise.
5700         (unshare_variable): Likewise.
5701         (get_init_value): Likewise.
5702         (get_addr_from_local_cache): Likewise.
5703         (drop_overlapping_mem_locs): Likewise.
5704         (val_reset): Likewise.
5705         (struct variable_union_info): Likewise.
5706         (variable_union): Likewise.
5707         (find_loc_in_1pdv): Likewise.
5708         (insert_into_intersection): Likewise.
5709         (intersect_loc_chains): Likewise.
5710         (canonicalize_loc_order_check): Likewise.
5711         (canonicalize_values_mark): Likewise.
5712         (canonicalize_values_star): Likewise.
5713         (canonicalize_vars_star): Likewise.
5714         (variable_merge_over_cur): Likewise.
5715         (remove_duplicate_values): Likewise.
5716         (variable_post_merge_new_vals): Likewise.
5717         (variable_post_merge_perm_vals): Likewise.
5718         (find_mem_expr_in_1pdv): Likewise.
5719         (dataflow_set_preserve_mem_locs): Likewise.
5720         (dataflow_set_remove_mem_locs): Likewise.
5721         (variable_part_different_p): Likewise.
5722         (onepart_variable_different_p): Likewise.
5723         (find_src_set_src): Likewise.
5724         (dump_var): Likewise.
5725         (set_slot_part): Likewise.
5726         (clobber_slot_part): Likewise.
5727         (delete_slot_part): Likewise.
5728         (vt_expand_var_loc_chain): Likewise.
5729         (emit_note_insn_var_location): Likewise.
5730         (vt_finalize): Likewise.
5731
5732 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5733
5734         * dse.c (store_info_t): Remove typedef.
5735         (group_info_t): Likewise.
5736         (const_group_info_t): Likewise.
5737         (deferred_change_t): Likewise.
5738         (get_group_info): Adjust.
5739         (free_store_info): Likewise.
5740         (canon_address): Likewise.
5741         (clear_rhs_from_active_local_stores): Likewise.
5742         (record_store): Likewise.
5743         (replace_read): Likewise.
5744         (check_mem_read_rtx): Likewise.
5745         (scan_insn): Likewise.
5746         (remove_useless_values): Likewise.
5747         (dse_step1): Likewise.
5748         (dse_step2_init): Likewise.
5749         (dse_step2_nospill): Likewise.
5750         (scan_stores_nospill): Likewise.
5751         (scan_reads_nospill): Likewise.
5752         (dse_step3_exit_block_scan): Likewise.
5753         (dse_step3): Likewise.
5754         (dse_step5_nospill): Likewise.
5755         (dse_step6): Likewise.
5756
5757 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5758
5759         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5760         (alias_set_entry): Remove typedef.
5761         (alias_set_subset_of): Adjust.
5762         (alias_sets_conflict_p): Likewise.
5763         (init_alias_set_entry): Likewise.
5764         (get_alias_set): Likewise.
5765         (new_alias_set): Likewise.
5766         (record_alias_subset): Likewise.
5767
5768 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
5769
5770         * doc/install.texi (Downloading the source): Mark up
5771         contrib/download_prerequisites properly and drop leading "./".
5772
5773 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5774
5775         * config/arc/arc.h: Remove define of STRUCT_VALUE.
5776         * config/lm32/lm32.h: Likewise.
5777         * config/mep/mep.h: Likewise.
5778         * config/visium/visium.h: Likewise.
5779         * system.h: Poison STRUCT_VALUE macro.
5780
5781 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
5782
5783         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5784         CONSTANT_P operands.
5785
5786 2015-09-11  David S. Miller  <davem@davemloft.net>
5787
5788         * config/sparc/constraints.md: Make "U" constraint a real register
5789         constraint.
5790         * config/sparc/sparc.c (TARGET_LRA_P): Define.
5791         (D_MODES, DF_MODES): Add missing cast.
5792         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5793         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5794         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5795         cost to 8.
5796         * config/sparc/sparc.h (PROMOTE_MODE): Define.
5797         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5798         provide these insn when flag_pic.
5799
5800 2015-09-11  Jeff Law  <law@redhat.com>
5801
5802         PR tree-optimization/47679
5803         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5804         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5805         member with m_.  Update inline member functions as necessary.  Add
5806         toplevel comment.
5807         * tree-ssa-scopedtables.c: Update const_and_copies's member
5808         functions to use m_ prefix to access the stack.
5809
5810 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5811
5812         * graphite-optimize-isl.c (disable_tiling): Remove.
5813         (get_schedule_for_band): Do not use disable_tiling.
5814         (get_prevector_map): Delete function.
5815         (enable_polly_vector): Remove.
5816         (get_schedule_for_band_list): Remove dead code.
5817
5818 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
5819
5820         * graphite-optimize-isl.c (get_tile_map): Refactor.
5821         (get_schedule_for_band): Same.
5822         (getScheduleForBand): Same.
5823         (get_prevector_map): Same.
5824         (get_schedule_for_band_list): Same.
5825         (get_schedule_map): Same.
5826         (get_single_map): Same.
5827         (apply_schedule_map_to_scop): Same.
5828         (optimize_isl): Same.
5829
5830 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5831
5832         PR target/63304
5833         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5834         (movtf): Delete.
5835         * config/aarch64/iterators.md (GPF_TF_F16): New.
5836         (GPF_F16): Delete.
5837
5838 2015-09-10  Nathan Sidwell  <nathan@acm.org>
5839
5840         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5841         (nvptx_reorg): Adjust comments.
5842
5843 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
5844
5845         PR bootstrap/67363
5846         * configure.ac: Check if setenv and unsetenv are declared.
5847         * configure: Rebuild.
5848         * config.in: Rebuild.
5849         * system.h: Declare setenv and unsetenv if not declared.
5850
5851 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5852
5853         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5854         commentary to simplify permute mask adjustment equation.
5855         (special_handling_values): Add SH_VPERM.
5856         (const_load_sequence_p): New function.
5857         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5858         the mask loaded from the constant pool.
5859         (adjust_vperm): New function.
5860         (handle_special_swappables): Call adjust_vperm.
5861         (dump_swap_insn_table): Handle SH_VPERM.
5862
5863 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         * shrink-wrap.c (requires_stack_frame_p): Remove static.
5866         * shrink-wrap.h (requires_stack_frame_p): Put back.
5867
5868 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
5869
5870         * reload1.c (elimination_costs_in_insn): Locally turn
5871         -Wmaybe-uninitialized into a warning.
5872
5873 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
5874
5875         * shrink-wrap.c (requires_stack_frame_p): Make static.
5876         (prepare_shrink_wrap): Likewise.
5877         (dup_block_and_redirect): Likewise.
5878         * shrink-wrap.h: Remove declarations of those functions.
5879
5880 2015-09-10  Mark Wielaard  <mjw@redhat.com>
5881
5882         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5883
5884 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
5885
5886         PR target/67506
5887         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5888         missing simplify_gen_subreg.
5889
5890 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5891
5892         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5893         the vector element is bigger than 64 bit.
5894
5895 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5896
5897         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5898         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5899
5900 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5901
5902         * config/s390/s390.c: Add V1TImode to constant pool modes.
5903
5904 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5905
5906         PR target/67439
5907         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5908         predicate.  Set predicable_short_it attr to "no".
5909
5910 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
5911
5912         PR rtl-optimization/67421
5913         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5914         left wide shift tranformation.
5915
5916 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
5917
5918         * common/config/arc/arc-common.c: Remove references to A5.
5919         * config/arc/arc-opts.h: Likewise.
5920         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5921         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5922         * config/arc/t-arc-newlib: Likewise.
5923
5924 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
5925
5926         * config/arc/arc.md (length): Fix attribute length for conditional
5927         executed instructions with long immediate.
5928
5929 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5930
5931         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5932         type for second alternative.
5933
5934 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
5935
5936         * doc/invoke.texi (Downloading GCC): Mention
5937         contrib/download_prerequisites script.
5938
5939 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
5940
5941         PR c++/67523
5942         * gimplify.c (gimplify_omp_for): If inner stmt is not found
5943         for combined loop, assert seen_error () and return GS_ERROR.
5944
5945         PR middle-end/67521
5946         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
5947         if decl is already in outer->variables.
5948
5949         PR middle-end/67517
5950         * gimplify.c (gimplify_scan_omp_clauses): Instead of
5951         asserting that decl is not specified in octx->variables,
5952         break out of the loop if it is.
5953
5954         PR c++/67514
5955         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
5956         iterator is not explicitly determined, but is defined inside
5957         of the combined workshare region, handle it like if it has
5958         DECL_EXPR in OMP_FOR_PRE_BODY.
5959
5960 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5961
5962         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
5963         (*cmp<mode>): Add assembler spacing.
5964         (setcc_int<mode>, set_cc_float<mode>): Likewise.
5965         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
5966         level.
5967         (write_func_decl_from_insn): Refactor argument loops & comma emission.
5968         (nvptx_expand_call): Likewise.
5969         (nvptx_output_call_insn): Likewise.
5970         (nvptx_reorg_subreg): Add spacing.
5971
5972 2015-09-09  Marek Polacek  <polacek@redhat.com>
5973
5974         PR middle-end/67512
5975         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
5976         for comparisons.
5977
5978 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
5979
5980         PR c++/53184
5981         * doc/invoke.texi ([Wsubobject-linkage]): Document.
5982
5983 2015-09-09  Tom de Vries  <tom@codesourcery.com>
5984
5985         * params-list.h: Add missing copyright notice.
5986
5987 2015-09-09  Nathan Sidwell  <nathan@acm.org>
5988
5989         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
5990         sel_truesi, not andsi.
5991
5992 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5993
5994         * config/arm/arm.md (*subsi3_compare0): Rename to...
5995         (subsi3_compare0): ... This.
5996         (modsi3): New define_expand.
5997         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
5998         when operand is power of 2.
5999
6000 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6001
6002         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6003         (*neg<mode>2_compare0): Rename to...
6004         (neg<mode>2_compare0): ... This.
6005         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6006         Move check for speed inside the if-then-elses.  Reflect
6007         CSNEG sequence in MOD by power of 2 case.
6008
6009 2015-09-09  Alan Modra  <amodra@gmail.com>
6010
6011         PR target/67378
6012         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6013         reload replacement for PRE_MODIFY address reg.
6014
6015 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
6016
6017         PR tree-optimization/53852
6018         * config.in: Regenerate.
6019         * configure: Regenerate.
6020         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6021         * graphite-optimize-isl.c (optimize_isl): Stop computation when
6022         PARAM_MAX_ISL_OPERATIONS is reached.
6023         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6024         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6025         result equal to isl_stat_ok as the status now can be isl_error_quota.
6026         (subtract_commutative_associative_deps): Same.
6027         (compute_deps): Same.
6028
6029 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
6030             Sebastian Pop  <s.pop@samsung.com>
6031
6032         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6033         Return the parameter if it was saved in corresponding
6034         parameter_rename_map of the region.
6035         (copy_def): Copy def from sese region to the newly created region.
6036         (copy_internal_parameters): Copy all the internal parameters defined
6037         within a region to the newly created region.
6038         (graphite_regenerate_ast_isl): Copy parameters to the new region before
6039         translating isl to gimple.
6040         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6041         the loop-nest does not have any data-references.
6042         (build_graphite_scops): Create a scop only when there is at least one
6043         loop inside it.
6044         (contains_only_close_phi_nodes): Deleted.
6045         (print_graphite_scop_statistics): Deleted
6046         (print_graphite_statistics): Deleted
6047         (limit_scops): Deleted.
6048         (build_scops): Removed call to limit_scops.
6049         * sese.c (new_sese): Construct.
6050         (free_sese): Destruct.
6051         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6052         added.
6053         (set_rename): Pass sese region so that parameters inside the region can
6054         be added to its parameter_rename_map.
6055         (rename_uses): Pass sese region.
6056         (graphite_copy_stmts_from_block): Do not copy parameters that have been
6057         generated in the header of the scop. For each SSA_NAME in the
6058         parameter_rename_map rename its usage.
6059         (invariant_in_sese_p_rec): Return false if tree t is defined outside
6060         sese region.
6061         (scalar_evolution_in_region): If the tree t is invariant just return t.
6062         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6063         struct sese to keep track of all the parameters which need renaming.
6064         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6065         any data-refs.
6066         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6067
6068 2015-09-08  Tom de Vries  <tom@codesourcery.com>
6069
6070         * Makefile.in (generated_files): Add params.list.
6071         (params.list, s-params.list): Add rule.
6072         * params.h (enum compiler_param): Include params-list.h.  Move define
6073         DEFPARAM, include params.def and undef DEFPARAM ...
6074         * params-list.h: ... here.  New file.
6075
6076 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
6077
6078         * pretty-print.h (printer_fn): Fix typo in comment.
6079
6080 2015-09-07  Jeff Law  <law@redhat.com>
6081
6082         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6083
6084 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6085
6086         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6087         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6088         (arm_neon_fp16_hw): New.
6089
6090 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6091
6092         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6093         UNITS_PER_WORD >= 4.
6094
6095 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6096
6097         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6098         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6099         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6100         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6101         (aarch64_float_extend_lo_v2df): Rename to...
6102         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6103
6104         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6105         (float_extend_lo): Add v4sf.
6106
6107         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6108         * config/aarch64/iterators.md (VQ_HSF): New iterator.
6109         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6110         (Vwide): New mode_attr.
6111
6112 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6113
6114         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6115         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6116         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6117         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6118         V4HF and V8HF variants to iterator.
6119
6120         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6121
6122         * config/aarch64/iterators.md (VDQF_F16): New.
6123         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6124
6125 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6126
6127         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6128         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6129         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6130         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6131         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6132         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6133         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6134         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6135         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6136         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6137         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6138         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6139         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6140         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6141         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6142         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6143         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6144         vld1q_dup_f16): New.
6145
6146 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6147
6148         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6149         Reparameterize to...
6150         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6151         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6152         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6153
6154         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6155         v8hf variant.
6156         (float_truncate_lo_): Use BUILTIN_VDF iterator.
6157
6158         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6159
6160         * config/aarch64/iterators.md (VDF, Vdtype): New.
6161         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6162
6163 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6164
6165         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6166         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6167         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6168         Add __builtin_aarch64_simd_hf.
6169         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6170         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6171         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6172         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6173         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6174         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6175         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6176         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6177         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6178
6179         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6180         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6181         (VDC, Vdbl): Add V4HF.
6182
6183 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6184
6185         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6186         V4HFmode and V8HFmode.
6187         (aarch64_split_simd_move): Add case for V8HFmode.
6188         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6189         (aarch64_simd_builtin_std_type): Handle HFmode.
6190         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6191
6192         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6193         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6194         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6195
6196         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6197         Float16x8_t.
6198
6199         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6200         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6201         New typedefs.
6202         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6203         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6204         vst1q_lane_f16): New.
6205         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6206         (VALLDI_F16, VALL_F16): New.
6207         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6208         Add cases for V4HF and V8HF.
6209         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6210
6211 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6212
6213         * config/arm/arm-builtins.c (VAR11, VAR12): New.
6214         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6215         vld4_dup): Add v4hf variant.
6216         (vget_high, vget_low): Add v8hf variant.
6217         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6218         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6219         v4hf and v8hf variants.
6220
6221         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6222         (VDX): Add V4HF.
6223         (V_DOUBLE): Add case for V4HF.
6224         (VQX): Add V8HF.
6225         (V_HALF): Add case for V8HF.
6226         (VDQX): Add V4HF, V8HF.
6227         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6228         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6229
6230         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6231         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6232         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6233         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6234         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6235         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6236         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6237         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6238         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6239
6240         (neon_vcreate, neon_vreinterpretv8qi<mode>,
6241         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6242         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6243         Change VDX to VD_RE.
6244
6245         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6246         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6247         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6248
6249         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6250         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6251         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6252         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6253         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6254         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6255         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6256         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6257         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6258
6259 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6260
6261         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6262         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6263         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6264         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6265         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6266         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6267         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6268         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6269         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6270         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6271         New.
6272
6273 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6274
6275         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6276
6277         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6278
6279         * config/arm/arm-builtins.c (v8hf_UP): New.
6280         (arm_init_simd_builtin_types): Initialise Float16x8_t.
6281
6282         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6283
6284         * config/arm/arm_neon.h (float16x8_t): New typedef.
6285
6286 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6287
6288         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6289         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6290         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6291         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6292         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6293         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6294         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6295         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6296         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6297         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6298
6299 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
6300
6301         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6302         non-alphanumeric characters in the symbol name.
6303
6304 2015-09-07  Marek Polacek  <polacek@redhat.com>
6305
6306         PR inline-asm/67448
6307         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6308         a memory input.
6309
6310 2015-09-07  Marek Polacek  <polacek@redhat.com>
6311
6312         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6313
6314 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
6315
6316         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6317         not warn.
6318
6319 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
6320
6321         PR middle-end/67452
6322         * tree-ssa-live.c: Include cfgloop.h.
6323         (remove_unused_locals): Clear loop->simduid if simduid is about
6324         to be removed from cfun->local_decls.
6325
6326 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6327
6328         PR target/65210
6329         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6330         attribute as well.
6331
6332 2015-09-04  Tom de Vries  <tom@codesourcery.com>
6333
6334         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6335
6336 2015-09-04  Jeff Law  <law@redhat.com>
6337
6338         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6339         unnecessary constructor.  It's now trivial and implemented inside...
6340         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6341         constructor.  Add comments to various methods.  Remove unused
6342         private fields.
6343         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6344         * tree-vrp.c (identify_jump_threads): Likewise.
6345         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6346         indentation issues.
6347         (thread_across_edge): Similarly.
6348         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6349         arguments in constructor call.
6350
6351 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6352
6353         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6354         temp path contains a '-'.
6355
6356 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6357             Petr Murzin  <petr.murzin@intel.com>
6358             Kirill Yukhin  <kirill.yukhin@intel.com>
6359
6360         * config/i386/i386-builtin-types.def
6361         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6362         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6363         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6364         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6365         * config/i386/i386.c
6366         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6367         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6368         IX86_BUILTIN_SCATTERALTDIV16SI.
6369         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6370         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6371         __builtin_ia32_scatteraltdiv8si.
6372         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6373         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6374         IX86_BUILTIN_SCATTERALTDIV16SI.
6375         (ix86_vectorize_builtin_scatter): New.
6376         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6377         ix86_vectorize_builtin_scatter.
6378
6379 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6380             Petr Murzin  <petr.murzin@intel.com>
6381             Kirill Yukhin  <kirill.yukhin@intel.com>
6382
6383         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6384         * doc/tm.texi: Regenerate.
6385         * target.def: Add scatter builtin.
6386         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6387         for loads/stores in case of gather/scatter accordingly.
6388         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6389         STMT_VINFO_GATHER_P(S).
6390         (vect_check_gather): Rename to ...
6391         (vect_check_gather_scatter): this.
6392         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6393         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6394         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6395         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6396         variable and new checkings for it accordingly.
6397         * tree-vect-stmts.c
6398         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6399         STMT_VINFO_GATHER_P(S).
6400         (vect_check_gather_scatter): Use it instead of vect_check_gather.
6401         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6402
6403 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6404
6405         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6406         define_insn.
6407         (mulv16qi3): New define_expand.
6408
6409 2015-09-03  Martin Sebor  <msebor@redhat.com>
6410
6411         PR c/66516
6412         * doc/extend.texi (Other Builtins): Document when the address
6413         of a built-in function can be taken.
6414
6415 2015-09-03  Richard Biener  <rguenther@suse.de>
6416
6417         * dwarf2out.c (flush_limbo_die_list): Split out from ...
6418         (dwarf2out_early_finish): ... here.
6419         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6420         flush_limbo_die_list.  Assert we have no deferred asm names.
6421
6422 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6423
6424         * optabs.c (expand_binop): Don't create a broadcast vector with a
6425         source element wider than the inner mode.
6426
6427 2015-09-03  Richard Biener  <rguenther@suse.de>
6428
6429         * varasm.c (output_constant): Use fold_convert instead of
6430         wide_int_to_tree.
6431
6432 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6433
6434         PR tree-optimization/65637
6435         * omp-low.c (expand_omp_for_static_chunk): Handle case that
6436         fin_bb has 2 predecessors.
6437
6438 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6439
6440         PR tree-optimization/65637
6441         * omp-low.c (find_phi_with_arg_on_edge): New function.
6442         (expand_omp_for_static_chunk): Fix inner loop phi.
6443
6444 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6445
6446         PR tree-optimization/65637
6447         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6448         that head is NULL.
6449
6450 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6451
6452         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6453
6454 2015-09-03  Tom de Vries  <tom@codesourcery.com>
6455
6456         * doc/invoke.texi (parloops-chunk-size): Add item.
6457         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6458         * tree-parloops.c: Include params.h.
6459         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6460         param parloops-chunk-size is used.
6461
6462 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6463
6464         PR middle-end/67351
6465         * fold-const.c (fold_binary_loc) : Move
6466         Transform (x >> c) << c into x & (-1<<c) or
6467         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6468         types using simplify and match.
6469         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6470         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6471
6472 2015-09-03  Richard Biener  <rguenther@suse.de>
6473
6474         PR ipa/66705
6475         * tree-ssa-structalias.c (ctor_for_analysis): New function.
6476         (create_variable_info_for_1): Use ctor_for_analysis instead
6477         of get_constructor.
6478         (create_variable_info_for): Likewise.
6479
6480 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
6481
6482         PR ipa/67280
6483         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6484         in new callgraph edge.
6485
6486 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
6487
6488         PR target/59810
6489         PR target/63652
6490         PR target/63653
6491         * config/aarch64/aarch64-simd.md
6492         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6493         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6494         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6495         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6496
6497 2015-09-02  Alan Modra  <amodra@gmail.com>
6498
6499         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6500         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6501         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6502
6503 2015-09-02  Alan Modra  <amodra@gmail.com>
6504
6505         PR target/67417
6506         * config/rs6000/predicates.md (current_file_function_operand): Don't
6507         return true for weak symbols.
6508         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6509
6510 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
6511             Andrew Bennett  <andrew.bennett@imgtec.com>
6512
6513         * config/mips/mips-opts.h (mips_cb_setting): New enum.
6514         * config/mips/mips-protos.h: Add definitions for
6515         mips_output_jump and mips_output_equal_conditional_branch
6516         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6517         JIC instruction.
6518         (mips_emit_compare): Add support for the MIPS R6 conditional
6519         compact branches.
6520         (mips_process_sync_loop): Likewise.
6521         (mips_output_order_conditional_branch): Likewise.
6522         (mips16_build_call_stub): Change MIPS_CALL to
6523         mips_output_jump.
6524         (mips_print_operand_punctuation): Update 's' case to only
6525         apply to micromips r2.
6526         (mips_adjust_insn_length): Add support for forbidden slot
6527         hazards.
6528         (mips_avoid_hazard): Likewise.
6529         (mips_reorg_process_insns): Likewise.
6530         (mips_output_jump): New function.
6531         (mips_output_equal_conditional_branch): Likewise.
6532         (mips_output_conditional_branch): Use jrc/bc if compact
6533         branch support is enabled.  Ensure the forbidden slots
6534         between the two branch instructions is filled with a nop.
6535         (mips_option_override): Add support to process the compact
6536         branch option and set the correct defaults.  Prevent
6537         non-explict relocs being using for MIPS R6.
6538         (mips_trampoline_init): Add compact branch support.
6539         (mips_mult_zero_zero_cost): Allow zero initialisation of
6540         accumulators with TARGET_DSP.
6541         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6542         (TARGET_CB_MAYBE): New define.
6543         (TARGET_CB_ALWAYS): New define.
6544         (ISA_HAS_DELAY_SLOTS): New define.
6545         (ISA_HAS_COMPACT_BRANCHES): New define.
6546         (ISA_HAS_JRC): New define.
6547         (MIPS_BRANCH_C): New define.
6548         (MIPS_CALL): Removed.
6549         (MICROMIPS_J): Removed.
6550         * config/mips/mips.md (compact_form): New attr.
6551         (hazard): Add support for forbidden slots.
6552         (define_delay): Add support for compact branches.
6553         (*branch_order<mode>): Likewise.
6554         (*branch_order<mode>_inverted): Likewise.
6555         (*branch_equality<mode>): Likewise.
6556         (*branch_equality<mode>_inverted): Likewise.
6557         (*jump_absolute): Likewise.
6558         (*jump_pic): Likewise.
6559         (indirect_jump): Use mips_output_jump to produce assembly output.
6560         (tablejump_<mode>"): Likewise.
6561         (*<optab>"): Likewise.
6562         (<optab>_internal): Likewise.
6563         (sibcall_internal): Likewise.
6564         (sibcall_value_internal): Likewise.
6565         (sibcall_value_multiple_internal): Likewise.
6566         (call_internal): Likewise.
6567         (call_split): Likewise.
6568         (call_internal_direct): Likewise.
6569         (call_direct_split): Likewise.
6570         (call_value_internal): Likewise.
6571         (call_value_split): Likewise.
6572         (call_value_internal_direct): Likewise.
6573         (call_value_direct_split): Likewise.
6574         (call_value_multiple_internal): Likewise.
6575         (call_value_multiple_split): Likewise.
6576         (mips_get_fcsr_mips16_<mode>): Likewise.
6577         (mips_set_fcsr_mips16_<mode>): Likewise.
6578         (tls_get_tp_mips16_<mode>): Likewise.
6579         * config/mips/mips.opt: Add -mcompact-branches option.
6580         * config/mips/predicates.md (order_operator): Ensure the
6581         conditional compact branches are only used if the ISA them.
6582         * doc/invoke.texi: Document -mcompact-branches option.
6583
6584 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
6585
6586         PR target/61578
6587         * lra-lives.c (process_bb_lives): Process move pseudos with the
6588         same value for copies and preferences
6589         * lra-constraints.c (match_reload): Create match reload pseudo
6590         with the same value from single dying input pseudo.
6591
6592 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6593
6594         PR target/67405
6595         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6596
6597 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
6598
6599         * trans-mem.c: Add contributed-by.
6600         * trans-mem.h: Same.
6601
6602 2015-09-01  Richard Biener  <rguenther@suse.de>
6603
6604         * expr.c (expand_expr_real_1): For expanding TERed defs
6605         set the current location to that of the def if not UNKNOWN.
6606
6607 2015-09-01  David Sherwood  <david.sherwood@arm.com>
6608
6609         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6610
6611 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6612
6613         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6614         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
6615         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6616         Include rtl-iter.h.
6617         (noce_simple_bbs): New function.
6618         (noce_try_move): Bail if basic blocks are not simple.
6619         (noce_try_store_flag): Likewise.
6620         (noce_try_store_flag_constants): Likewise.
6621         (noce_try_addcc): Likewise.
6622         (noce_try_store_flag_mask): Likewise.
6623         (noce_try_cmove): Likewise.
6624         (noce_try_minmax): Likewise.
6625         (noce_try_abs): Likewise.
6626         (noce_try_sign_mask): Likewise.
6627         (noce_try_bitop): Likewise.
6628         (bbs_ok_for_cmove_arith): New function.
6629         (noce_emit_all_but_last): Likewise.
6630         (noce_emit_insn): Likewise.
6631         (noce_emit_bb): Likewise.
6632         (noce_try_cmove_arith): Handle non-simple basic blocks.
6633         (insn_valid_noce_process_p): New function.
6634         (contains_mem_rtx_p): Likewise.
6635         (bb_valid_for_noce_process_p): Likewise.
6636         (noce_process_if_block): Allow non-simple basic blocks
6637         where appropriate.
6638
6639 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
6640
6641         * tree-ssa-dom.c (record_equivalences_from_phis,
6642         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6643         (lookup_avail_expr): Likewise, and remove comment and unused temp.
6644
6645 2015-09-01  Nick Clifton  <nickc@redhat.com>
6646
6647         * config/msp430/msp430.opt (mcpu): Fix typo.
6648
6649 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6650
6651         * config/aarch64/aarch64.c (aarch64_set_current_function):
6652         Re-layout any vector parameters have non-simd layout.
6653         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6654         Delete.
6655         (aarch64_simd_expand_args): Delete call to the above.
6656
6657 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
6658
6659         * doc/invoke.texi (asan-stack): Add space before option.
6660
6661 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6662
6663         * tree.h (zerop): New function.
6664         * tree.c (zerop): Likewise.
6665         (element_precision): Handle expressions.
6666         * match.pd (define_predicates): Add zerop.
6667         (x <= +Inf): Fix comment.
6668         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6669         * fold-const.c (fold_binary_loc): ... here. Remove.
6670
6671 2015-08-31  Richard Biener  <rguenther@suse.de>
6672
6673         PR middle-end/67381
6674         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6675
6676 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
6677
6678         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6679         (CEXPI): New operator list.
6680         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6681         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6682         Converted from ...
6683         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6684
6685 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6686
6687         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6688         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6689         parameter.
6690         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6691         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6692         (rewrite_into_loop_closed_ssa): ... here.
6693         (replace_uses_in_dominated_bbs): Remove function.
6694         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6695         rewrite_into_loop_closed_ssa_1.
6696
6697 2015-08-31  Michael Matz  <matz@suse.de>
6698
6699         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6700         enter entry and exit blocks for reverse post order.
6701
6702 2015-08-31  Richard Biener  <rguenther@suse.de>
6703
6704         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6705         (lto_location_cache::current_sysp): Likewise.
6706         (output_block::current_sysp): Likewise.
6707         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6708         (lto_location_cache::apply_location_cache): Properly record
6709         system header locations.
6710         (lto_location_cache::input_location): Input whether a file
6711         is a system header.
6712         * lto-streamer-out.c (lto_output_location): Stream whether a file
6713         is a system header.
6714
6715 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6716
6717         PR bootstrap/67363
6718         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6719
6720 2015-08-31  Tom de Vries  <tom@codesourcery.com>
6721
6722         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6723         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6724         Improve function header comments.
6725
6726 2015-08-30  Michael Collison  <michael.collison@linaro.org>
6727
6728         PR other/67320
6729         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6730         standard names
6731
6732 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6733
6734         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6735         special_handling bitfield.
6736         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6737         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6738         that represents a general xxpermdi.
6739         (insn_is_swappable_p): Add handling for vec_concat of two
6740         doublewords, which maps to a specific xxpermdi.
6741         (adjust_xxpermdi): New function.
6742         (adjust_concat): Likewise.
6743         (handle_special_swappables): Call adjust_xxpermdi and
6744         adjust_concat.
6745         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6746
6747 2015-08-30  Rich Felker <dalias@libc.org>
6748
6749         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6750         case instead of sh[123456ble]-*-*.
6751
6752 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6753
6754         * ira.c (print_unform_and_important_classes,
6755         print_translated_classes): Remove reg_class_names static array.
6756         (print_unform_and_important_classes): Rename to ...
6757         (print_uniform_and_important_classes): ... this.
6758         (ira_debug_allocno_classes): Update accordingly.
6759
6760 2015-08-29  Tom de Vries  <tom@codesourcery.com>
6761
6762         PR tree-optimization/46193
6763         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6764         clause.
6765
6766 2015-08-28  Jeff Law  <law@redhat.com>
6767
6768         PR lto/66752
6769         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6770         unable to find X NE 0 in the tables, return X as the simplified
6771         condition.
6772         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6773         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6774         to VISISTED_BBS.
6775         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6776         after removing the control flow statement and unnecessary edges.
6777
6778 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
6779
6780         Revert:
6781         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
6782
6783         PR tree-optimization/67283
6784         * tree-sra.c (type_consists_of_records_p): Rename to...
6785         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6786
6787         (completely_scalarize_record): Rename to...
6788         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6789         code to:
6790         (scalarize_elem): New.
6791
6792 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
6793
6794         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6795         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6796         (aarch64_symbol_type): Likewise.
6797         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6798         Likewise.
6799         (aarch64_expand_mov_immediate): Likewise.
6800         (aarch64_print_operand): Likewise.
6801         (aarch64_classify_tls_symbol): Likewise.
6802
6803 2015-08-28  Richard Biener  <rguenther@suse.de>
6804
6805         * cgraphunit.c (symbol_table::compile): Move early debug generation
6806         and finish...
6807         (symbol_table::finalize_compilation_unit): ... back here and
6808         add a !seen_error () guard.
6809
6810 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6811
6812         * toplev.c (process_options): Do not use flag_loop_block,
6813         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
6814         flag_loop_optimize_isl.
6815
6816 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6817
6818         * Makefile.in (OBJS): Remove graphite-blocking.o and
6819         graphite-interchange.o.
6820         * common.opt (floop-strip-mine, floop-interchange, floop-block):
6821         Alias of floop-nest-optimize.
6822         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6823         Document as alias of -floop-nest-optimize.
6824         * graphite-blocking.c: Remove.
6825         * graphite-interchange.c: Remove.
6826         * graphite-optimize-isl.c: Include dumpfile.h.
6827         (getScheduleForBand): Add dump for tiled loops.  Use
6828         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6829         * graphite-poly.c (scop_max_loop_depth): Remove.
6830         (print_scattering_function_1): Remove.
6831         (print_scattering_function): Remove.
6832         (print_scattering_functions): Remove.
6833         (debug_scattering_function): Remove.
6834         (debug_scattering_functions): Remove.
6835         (apply_poly_transforms): Remove use of flag_loop_block,
6836         flag_loop_strip_mine, and flag_loop_interchange.
6837         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6838         PBB_ORIGINAL.
6839         (print_pdr_access_layout): Remove.
6840         (print_pdr): Print ISL representation.
6841         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6842         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6843         (free_scop): Same.
6844         (openscop_print_pbb_domain): Remove.
6845         (print_pbb): Remove call to print_scattering_function.
6846         (openscop_print_scop_context): Remove.
6847         (print_scop_context): Do not print matrices anymore.
6848         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6849         SCOP_TRANSFORMED_SCHEDULE.
6850         (print_isl_set): Add printing of a new line.
6851         (print_isl_map): Same.
6852         (print_isl_aff): Same.
6853         (print_isl_constraint): Same.
6854         (loop_to_lst): Remove.
6855         (scop_to_lst): Remove.
6856         (lst_indent_to): Remove.
6857         (print_lst): Remove.
6858         (debug_lst): Remove.
6859         (dot_lst_1): Remove.
6860         (dot_lst): Remove.
6861         (reverse_loop_at_level): Remove.
6862         (reverse_loop_for_pbbs): Remove.
6863         * graphite-poly.h (pdr_dim_iter_domain): Remove.
6864         (pdr_nb_params): Remove.
6865         (pdr_alias_set_dim): Remove.
6866         (pdr_subscript_dim): Remove.
6867         (pdr_iterator_dim): Remove.
6868         (pdr_parameter_dim): Remove.
6869         (same_pdr_p): Remove.
6870         (struct poly_scattering): Remove.
6871         (struct poly_bb): Remove _original, _transformed, _saved.
6872         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6873         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6874         (PBB_NB_LOCAL_VARIABLES): Remove.
6875         (PBB_NB_SCATTERING_TRANSFORM): Remove.
6876         (schedule_to_scattering): Remove.
6877         (number_of_write_pdrs): Remove.
6878         (pbb_dim_iter_domain): Remove.
6879         (pbb_nb_params): Remove.
6880         (pbb_nb_scattering_orig): Remove.
6881         (pbb_nb_scattering_transform): Remove.
6882         (pbb_nb_dynamic_scattering_transform): Remove.
6883         (pbb_nb_local_vars): Remove.
6884         (pbb_iterator_dim): Remove.
6885         (pbb_parameter_dim): Remove.
6886         (psco_scattering_dim): Remove.
6887         (psct_scattering_dim): Remove.
6888         (psct_local_var_dim): Remove.
6889         (psco_iterator_dim): Remove.
6890         (psct_iterator_dim): Remove.
6891         (psco_parameter_dim): Remove.
6892         (psct_parameter_dim): Remove.
6893         (psct_dynamic_dim): Remove.
6894         (psct_static_dim): Remove.
6895         (psct_add_local_variable): Remove.
6896         (new_lst_loop): Remove.
6897         (new_lst_stmt): Remove.
6898         (free_lst): Remove.
6899         (copy_lst): Remove.
6900         (lst_add_loop_under_loop): Remove.
6901         (lst_depth): Remove.
6902         (lst_dewey_number): Remove.
6903         (lst_dewey_number_at_depth): Remove.
6904         (lst_pred): Remove.
6905         (lst_succ): Remove.
6906         (lst_find_pbb): Remove.
6907         (find_lst_loop): Remove.
6908         (lst_find_first_pbb): Remove.
6909         (lst_empty_p): Remove.
6910         (lst_find_last_pbb): Remove.
6911         (lst_contains_p): Remove.
6912         (lst_contains_pbb): Remove.
6913         (lst_create_nest): Remove.
6914         (lst_remove_from_sequence): Remove.
6915         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6916         (lst_niter_for_loop): Remove.
6917         (pbb_update_scattering): Remove.
6918         (lst_update_scattering_under): Remove.
6919         (lst_update_scattering): Remove.
6920         (lst_insert_in_sequence): Remove.
6921         (lst_replace): Remove.
6922         (lst_substitute_3): Remove.
6923         (lst_distribute_lst): Remove.
6924         (lst_remove_all_before_including_pbb): Remove.
6925         (lst_remove_all_before_excluding_pbb): Remove.
6926         (struct scop): Remove original_schedule, transformed_schedule, and
6927         saved_schedule.
6928         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6929         (SCOP_SAVED_SCHEDULE): Remove.
6930         (poly_scattering_new): Remove.
6931         (poly_scattering_free): Remove.
6932         (poly_scattering_copy): Remove.
6933         (store_scattering_pbb): Remove.
6934         (store_lst_schedule): Remove.
6935         (restore_lst_schedule): Remove.
6936         (store_scattering): Remove.
6937         (restore_scattering_pbb): Remove.
6938         (restore_scattering): Remove.
6939         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6940         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
6941         compute the scattering polyhedron dimension from the dimension of
6942         pbb->domain.
6943         (build_scop_scattering): Update call to
6944         build_pbb_scattering_polyhedrons.
6945         (build_poly_scop): Remove call to scop_to_lst.
6946         * graphite.c (graphite_transform_loops): Add call to print_scop.
6947         (gate_graphite_transforms): Remove use of flag_loop_block,
6948         flag_loop_interchange, and flag_loop_strip_mine.
6949
6950 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
6951
6952         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
6953         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
6954         -floop-nest-optimize.
6955         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
6956         (generate_luj_sepclass): Remove.
6957         (generate_luj_options): Remove.
6958         (set_options): Remove opt_luj.
6959         (scop_to_isl_ast): Remove opt_luj.
6960         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
6961         flag_loop_unroll_jam.
6962         (getPrevectorMap_full): Remove.
6963         (getScheduleForBandList): Remove map_sepcl.
6964         (getScheduleMap): Same.
6965         (apply_schedule_map_to_scop): Remove sepcl.
6966         (optimize_isl): Same.
6967         * graphite-poly.c (apply_poly_transforms): Remove check for
6968         flag_loop_unroll_jam.
6969         (new_poly_bb): Remove map_sepclass.
6970         * graphite-poly.h (struct poly_bb): Same.
6971         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
6972         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
6973         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
6974         * toplev.c (process_options): Remove flag_loop_unroll_jam.
6975
6976 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
6977
6978         PR target/67317
6979         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
6980         (addqi3_cc): Ditto.
6981         (UNSPEC_ADD_CARRY): Remove.
6982         (addqi3_cconly_overflow): New expander.
6983         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
6984         Adjust for changed add<mode>3_carry.
6985         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
6986         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
6987         (<plusminus_insn><mode>3_carry): Remove expander.
6988         (*<plusminus_insn><mode>3_carry): Split insn pattern to
6989         add<mode>3_carry and sub<mode>3_carry.
6990         (plusminus_carry_mnemonic): Remove code attribute.
6991         (add<mode>3_carry): Canonicalize insn pattern.
6992         (*addsi3_carry_zext): Ditto.
6993         (sub<mode>3_carry): Ditto.
6994         (*subsi3_carry_zext): Ditto.
6995         (adcx<mode>3): Remove insn pattern.
6996         (addcarry<mode>): New insn pattern.
6997         (subborrow<mode>): Ditto.
6998         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
6999         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7000         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7001         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7002         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7003         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7004         Rewrite expander to not clobber carry flag chains.
7005
7006 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
7007
7008         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7009         instead of a rotate.
7010
7011 2015-08-27  Marek Polacek  <polacek@redhat.com>
7012
7013         PR middle-end/67005
7014         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7015         an entry into an irreducible region.
7016
7017 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7018
7019         * configure: Regenerate.
7020
7021 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7022
7023         PR tree-optimization/67283
7024         * tree-sra.c (type_consists_of_records_p): Rename to...
7025         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7026
7027         (completely_scalarize_record): Rename to...
7028         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7029         (scalarize_elem): New.
7030
7031 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
7032
7033         * tree-sra.c (completely_scalarize_var): Rename to...
7034         (create_total_scalarization_access): ... Here. Drop call to
7035         completely_scalarize_record.
7036
7037         (analyze_all_variable_accesses): Replace completely_scalarize_var
7038         with create_total_scalarization_access and completely_scalarize_record.
7039
7040 2015-08-27  Alan Modra  <amodra@gmail.com>
7041
7042         PR target/67356
7043         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7044         for operand 1.
7045
7046 2015-08-27  Richard Biener  <rguenther@suse.de>
7047
7048         * passes.c (rest_of_decl_compilation): Guard early_global_decl
7049         call with !seen_error ().
7050         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7051         early debug generation and finish...
7052         (symbol_table::compile): ... here to put it after a !seen_error ()
7053         guard.
7054
7055 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7056
7057         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7058         Solaris 12+.
7059
7060 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7061             Andre Vieira  <andre.simoesdiasvieira@arm.com>
7062
7063         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7064         (*cb<optab><mode>1): Likewise.
7065         (*tb<optab><mode>1): Likewise.
7066         (*cb<optab><mode>1): Likewise.
7067         * config/aarch64/iterators.md (inv_cb): New code attribute.
7068         (inv_tb): Likewise.
7069         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7070         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7071
7072 2015-08-27  Richard Biener  <rguenther@suse.de>
7073
7074         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7075
7076 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7077
7078         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7079         trap to fix ICE.
7080
7081 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7082
7083         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7084         Add declaration.
7085
7086         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7087         comment.
7088         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7089         floating point in VSX registers.
7090         (rs6000_output_move_128bit): Always print out the set insn if we
7091         can't generate an appropriate 128-bit move.
7092         (rs6000_generate_compare): Add support for IEEE 128-bit floating
7093         point in VSX registers comparisons.
7094         (rs6000_expand_float128_convert): Likewise.
7095
7096         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7097         predicate for only GPR hard registers.
7098
7099         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7100         modes to iterators. Add new iterators for moving 128-bit values in
7101         scalar FPR registers and VSX registers.
7102         (FMOVE128): Likewise.
7103         (FMOVE128_FPR): Likewise.
7104         (FMOVE128_GPR): Likewise.
7105         (FMOVE128_VSX): Likewise.
7106         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7107         in VSX registers.
7108         (IFKF): Likewise.
7109         (IBM128): Likewise.
7110         (TFIFKF): Likewise.
7111         (RELOAD): Add IEEE 128-bit floating point modes.
7112         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7113         floating point in VSX registers modes.
7114         (signbit<mode>2, IBM128 iterator): Likewise.
7115         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7116         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7117         (negtf2): Likewise.
7118         (neg<mode>2, TFIFKF iterator): Likewise.
7119         (negtf2_internal): Likewise.
7120         (abstf2): Likewise.
7121         (abs<mode>2, TFIFKF iterator): Likewise.
7122         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7123         VSX insn support for negate, absolute value, and negative absolute
7124         value.
7125         (ieee_128bit_vsx_neg<mode>2): Likewise.
7126         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7127         (ieee_128bit_vsx_abs<mode>2): Likewise.
7128         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7129         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7130         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7131         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7132         floating point in VSX registers.
7133         (unpack<mode>_dm): Likewise.
7134         (unpack<mode>_nodm): Likewise.
7135         (pack<mode>): Likewise.
7136         (unpackv1ti): Likewise.
7137         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7138         (packv1ti): Likewise.
7139         (pack<mode>, FMOVE128_VSX iterator): Likewise.
7140         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7141         registers.
7142         (extenddftf2_internal): Likewise.
7143         (trunctfdf2): Likewise.
7144         (trunctfdf2_internal2): Likewise.
7145         (fix_trunc_helper): Likewise.
7146         (fix_trunctfdi2"): Likewise.
7147         (floatditf2): Likewise.
7148         (floatuns<mode>tf2): Likewise.
7149         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7150         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7151         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7152         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7153         (float<SDI:mode><IFKF:mode>2): Likewise.
7154         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7155
7156 2015-08-26  Renlin Li  <renlin.li@arm.com>
7157
7158         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7159
7160 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7161             Jiong Wang  <jiong.wang@arm.com>
7162
7163         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7164         (tlsie_tiny_<mode>): New define_insn.
7165         (tlsie_tiny_sidi): Likewise.
7166         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7167         SYMBOL_TINY_TLSIE.
7168         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7169         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7170         SYMBOL_TINY_TLSIE.
7171         (aarch64_expand_mov_immediate): Likewise.
7172         (aarch64_print_operand): Likewise.
7173         (arch64_classify_tls_symbol): Likewise.
7174
7175 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7176
7177         * config/arm/arm-arches.def: Replace single value flags with
7178         an initializer built from ARM_FSET_MAKE_CPU1.
7179         * config/arm/arm-cores.def: Likewise.
7180         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7181         derivation from the ARM_CORE macro definition, use the given value
7182         instead.
7183         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7184         ARM_ARCH macro definition, use the given value instead.
7185
7186 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7187
7188         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7189         feature set.
7190         (struct builtin_description): Replace field mask with field
7191         features.
7192         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7193         (IWMMXT2_BUILTIN): Likewise.
7194         (IWMMXT2_BUILTIN2): Likewise.
7195         (FP_BUILTIN): Likewise.
7196         (CRC32_BUILTIN): Likewise.
7197         (CRYPTO_BUILTIN): Likewise.
7198         (iwmmx_mbuiltin): Likewise.
7199         (iwmmx2_mbuiltin): Likewise.
7200         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7201         struct builtin_description.
7202
7203 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7204
7205         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7206         (struct builtin_description): Change type of mask to unsigned
7207         long.
7208         * config/arm/arm-protos.h (insn_flags): Declare as type
7209         arm_feature_set.
7210         (tune_flags): Likewise.
7211         * config/arm/arm.c (feature_count): New.
7212         (insn_flags): Define as type arm_feature_set.
7213         (tune_flags): Likewise.
7214         (struct processors): Define field flags as type arm_feature_set.
7215         (all_cores): Update for change to struct processors.
7216         (all_architectures): Likewise.
7217         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7218         macros.
7219         (arm_option_override_internal): Likewise.
7220         (arm_option_override): Likewise.
7221
7222 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7223             Jiong Wang  <jiong.wang@arm.com>
7224
7225         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7226         tls size for tiny, small, large memory model.
7227         (aarch64_load_symref_appropriately): Support new symbol types.
7228         (aarch64_expand_mov_immediate): Likewise.
7229         (aarch64_print_operand): Likewise.
7230         (aarch64_classify_tls_symbol): Likewise.
7231         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7232         (aarch64_symbol_type): Likewise.
7233         * config/aarch64/aarch64.md (tlsle): Deleted.
7234         (tlsle12_<mode>): New define_insn.
7235         (tlsle24_<mode>): Likewise.
7236         (tlsle32_<mode>): Likewise.
7237         (tlsle48_<mode>): Likewise.
7238         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7239         "aarch64_tlsle32".
7240
7241 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7242
7243         * config/arm/arm-protos.h (FL_NONE): New.
7244         (FL_ANY): New.
7245         (arm_feature_set): New.
7246         (ARM_FSET_MAKE): New.
7247         (ARM_FSET_MAKE_CPU1): New.
7248         (ARM_FSET_MAKE_CPU2): New.
7249         (ARM_FSET_CPU1): New.
7250         (ARM_FSET_CPU2): New.
7251         (ARM_FSET_EMPTY): New.
7252         (ARM_FSET_ANY): New.
7253         (ARM_FSET_HAS_CPU1): New.
7254         (ARM_FSET_HAS_CPU2): New.
7255         (ARM_FSET_HAS_CPU): New.
7256         (ARM_FSET_ADD_CPU1): New.
7257         (ARM_FSET_ADD_CPU2): New.
7258         (ARM_FSET_DEL_CPU1): New.
7259         (ARM_FSET_DEL_CPU2): New.
7260         (ARM_FSET_UNION): New.
7261         (ARM_FSET_INTER): New.
7262         (ARM_FSET_XOR): New.
7263         (ARM_FSET_EXCLUDE): New.
7264         (AFM_FSET_IS_EMPTY): New.
7265         (ARM_FSET_CPU_SUBSET): New.
7266
7267 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7268
7269         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7270         SYMBOL_TLSLE to SYMBOL_TLSLE24.
7271         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7272         Likewise.
7273         (aarch64_expand_mov_immediate): Likewise.
7274         (aarch64_print_operand): Likewise.
7275         (aarch64_classify_symbol): Likewise.
7276
7277 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
7278
7279         * config/aarch64/aarch64.opt (mtls-size): New entry.
7280         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7281         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7282         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7283
7284 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
7285
7286         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7287         ARM_CORE entry.  Fix some white-space.
7288         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7289         ARM_CORE definition.
7290
7291 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7292
7293         * fold-const.c (fold_binary_loc) : Move Optimize
7294         root(x)*root(y) as root(x*y) to match.pd.
7295         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7296         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7297         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7298         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7299         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7300         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7301         (mult (exps:s @0) (exps:s @1)) : New simplifier.
7302         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7303         (rdiv @0 (exps:s @1)) : New simplifier.
7304
7305 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
7306
7307         * gcc.c (driver::finalize): Only assign to extra_specs if
7308         [EXTRA_SPECS].
7309
7310 2015-08-25  Marek Polacek  <polacek@redhat.com>
7311
7312         PR middle-end/67330
7313         * varasm.c (declare_weak): Return after giving an error.
7314
7315 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
7316
7317         * gcc-main.c (main): Add params to driver ctor.
7318         * gcc.c (class env_manager): New.
7319         (env): New global.
7320         (env_manager::init): New.
7321         (env_manager::get): New.
7322         (env_manager::xput): New.
7323         (env_manager::restore): New.
7324         Poison getenv and putenv.
7325         (DEFAULT_TARGET_SYSTEM_ROOT): New.
7326         (target_system_root): Update initialization to use
7327         DEFAULT_TARGET_SYSTEM_ROOT.
7328         (struct spec_list): Add field "default_ptr".
7329         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7330         (init_spec): Likewise.
7331         (set_spec): Clear field "default_ptr".
7332         (read_specs): Free "spec" and "buffer".
7333         (xputenv): Reimplement in terms of env_manager.
7334         (process_command): Replace ::getenv calls with calls to the
7335         env_manager singleton.
7336         (process_brace_body): Free string in three places.
7337         (driver::driver): New.
7338         (driver::~driver): New.
7339         (used_arg): Convert from a function to...
7340         (class used_arg_t): ...this class, and...
7341         (used_arg): ...this new global instance.
7342         (used_arg_t::finalize): New function.
7343         (getenv_spec_function): Add "const" to local "value".  Replace
7344         ::getenv call with call to the env_manager singleton.
7345         (path_prefix_reset): New function.
7346         (driver::finalize): New function.
7347         * gcc.h (driver::driver): New.
7348         (driver::~driver): New.
7349         (driver::finalize): New.
7350
7351 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7352
7353         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7354         target doesn't have one.
7355
7356 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7357
7358         PR target/67346
7359         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7360
7361 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
7362
7363         PR target/67344
7364         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7365         a define_insn, remove second alternative.
7366
7367 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
7368             Joseph Myers  <joseph@codesourcery.com>
7369
7370         * gcc.c (struct switchstr): Expand comment.
7371
7372 2015-08-25  Nathan Sidwell  <nathan@acm.org>
7373
7374         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7375         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7376
7377 2015-08-25  Richard Biener  <rguenther@suse.de>
7378
7379         PR middle-end/67306
7380         * genmatch.c (expr::gen_transform): Verify the result of
7381         builtin_decl_implicit.
7382         (dt_simplify::gen_1): Likewise.
7383
7384 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7385
7386         * config/arm/constraints.md: Also list Cs and US ARM-specific
7387         constraints as used.
7388
7389 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7390
7391         PR target/66609
7392         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7393         UNSPEC_PCREL.
7394         (nonpic_symbol_mentioned_p): Likewise.
7395         (sh_delegitimize_address): Likewise.
7396         (sh_function_ok_for_sibcall): Take into account weak symbols.
7397         (sh_expand_sym_label2reg): New.
7398         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7399         * config/sh/sh.md (UNSPEC_PCREL): New enum.
7400         (call_pcrel): Use sh_expand_sym_label2reg.
7401         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7402         (symPCREL_label2reg) New expand.
7403
7404 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7405
7406         * graphite-poly.c: Change type of region from void* to sese.
7407         * graphite-poly.h (struct scop): Changing the type of scop::region
7408         from void* to sese. Change accessor macro accordingly.
7409         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7410
7411 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
7412
7413         * graphite-scop-detection.c (stmt_simple_for_scop_p):
7414         Constrain only on INTEGER_TYPE.
7415
7416 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7417
7418         PR target/67211
7419         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7420         -mefficient-unaligned-vsx on ISA 2.7.
7421
7422         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7423         option to a masked option.
7424
7425         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7426         logic for -mefficient-unaligned-vsx so that it is set via an arch
7427         ISA option, instead of being set if -mtune=power8 is set. Move
7428         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7429         near other default option handling.
7430
7431 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7432
7433         * genflags.c (gen_macro): Delete.
7434         (gen_proto): Don't create GEN.*CALL.* macros.
7435         * gensupport.h (get_file_location): Declare.
7436         * gensupport.c (rtx_locs): New variable.
7437         (read_md_rtx): Record rtx locations.
7438         (get_file_location): New function.
7439         * target-insns.def (call, call_pop, call_value, call_value_pop)
7440         (sibcall, sibcall_value): New patterns.
7441         * gentarget-def.c (parse_argument): New function.
7442         (def_target_insn): Use it.  Handle optional operands.  Raise an
7443         error if an .md pattern has the wrong number of operands for the
7444         pattern name.  Remove the names of unused operands from the prototype.
7445         * builtins.c (expand_builtin_apply): Use targetm functions
7446         instead of HAVE_call_value and GEN_CALL_VALUE.
7447         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
7448         and sibcall_value_pop.
7449         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7450         of GEN_CALL.
7451         * config/alpha/alpha.md (untyped_call): Likewise.
7452         * config/iq2000/iq2000.md (untyped_call): Likewise.
7453         * config/m68k/m68k.md (untyped_call): Likewise.
7454         * config/mips/mips.md (untyped_call): Likewise.
7455         * config/pa/pa.md (untyped_call): Likewise.
7456         * config/rs6000/rs6000.md (untyped_call): Likewise.
7457         * config/sparc/sparc.md (untyped_call): Likewise.
7458         * config/tilegx/tilegx.md (untyped_call): Likewise.
7459         * config/tilepro/tilepro.md (untyped_call): Likewise.
7460         * config/visium/visium.md (untyped_call): Likewise.
7461         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7462         gen_call_value instead of GEN_CALL_VALUE.
7463         * config/arm/arm.md (untyped_call): Likewise.
7464         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7465         GEN_CALL.
7466
7467 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7468
7469         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7470         (have_cbranchcc4): New variable.
7471         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7472         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7473         (if_convert): Initialize have_cbranchcc4.
7474
7475 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7476
7477         * builtins.c (expand_cmpstrn): Rename to...
7478         (expand_cmpstrn_or_cmpmem): ...this.
7479         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7480         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7481         Remove mode argument.
7482         (expand_builtin): Update accordingly.
7483
7484 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7485
7486         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7487         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
7488         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7489         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7490         Add predicates for operands 0 and 3.
7491         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7492         operand.
7493         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7494         immediate_operand to nonmemory_operand.
7495
7496 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7497
7498         * df-scan.c (df_insn_info_init_fields): New function, split out
7499         from...
7500         (df_insn_create_insn_record): ...here.
7501         (df_insn_info_free_fields): New function, split out from...
7502         (df_insn_info_delete): ...here.
7503         (df_insn_rescan): Use the new functions instead of freeing and
7504         reallocating the df_insn_info.
7505
7506 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7507
7508         * doc/install.texi (Binaries): Remove links no longer valid.
7509
7510 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7511
7512         * config/nvptx/mkoffload.c (process): Replace
7513         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7514
7515 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7516
7517         PR target/67329
7518         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7519
7520 2015-08-24  Renlin Li  <renlin.li@arm.com>
7521
7522         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7523         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7524         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7525         * config/arm/constraints.md ("j"): Add check for high code.
7526
7527 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7528
7529         PR tree-optimization/65468
7530         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7531         chunk_size is one.
7532
7533 2015-08-24  Nathan Sidwell  <nathan@acm.org>
7534
7535         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7536         change to nvptx_type_from_mode call. Use arg_promotion for both
7537         split and non-split args.
7538
7539 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7540
7541         * target-insns.def (movstr): New pattern.
7542         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7543         (expand_movstr): Use targetm rather than HAVE_movstr/
7544         CODE_FOR_movstr.
7545
7546 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
7547
7548         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7549         cast syntax.
7550
7551 2015-08-24  Andrew Pinski  <apinski@cavium.com>
7552
7553         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7554         AARCH64_EXTRA_TUNING_OPTION.
7555         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7556         New enum.
7557         (aarch64_extra_tuning_flags): Base the shifted value on the index
7558         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7559         * config/aarch64/aarch64.c: Remove the last argument to
7560         AARCH64_EXTRA_TUNING_OPTION.
7561
7562 2015-08-23  Nathan Sidwell  <nathan@acm.org>
7563
7564         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7565         decls.
7566         (nvptx_declare_function_name): Insert formatting tabs for
7567         consistency.
7568
7569 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7570
7571         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7572         parm_decl, rather than generating a dummy default def in cfun.
7573         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
7574         ssa_name from cfun and child_fn do not share a stmt as def stmt.
7575         (move_stmt_op): Handle PARM_DECl.
7576         (gather_ssa_name_hash_map_from): New function.
7577         (move_sese_region_to_fn): Add default defs for function params, and add
7578         them to vars_map.  Release copied ssa names.
7579         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7580
7581 2015-08-23  Tom de Vries  <tom@codesourcery.com>
7582
7583         * doc/sourcebuild.texi: Rename vect_no_int_max with
7584         vect_no_int_min_max.  Update description.
7585
7586 2015-08-22  Andrew Pinski  <apinski@cavium.com>
7587
7588          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7589         * config/aarch64/aarch64-protos.h
7590         (aarch64_fusion_pairs_index): New enum.
7591         (aarch64_fusion_pairs): Base the shifted value on the index instead
7592         Rewrite AARCH64_FUSE_ALL to be based on the end index.
7593         of the argument to AARCH64_FUSION_PAIR.
7594         * config/aarch64/aarch64.c: Remove the last argument to
7595         AARCH64_FUSION_PAIR.
7596
7597 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
7598
7599         * dominance.c (new_zero_array): Define.
7600         (dom_info): Redefine as class with proper encapsulation.
7601         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7602         Add new members.
7603         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
7604         allocations/deallocations.  Pass function as parameter (instead of
7605         using cfun).
7606         (dom_info::get_idom): Define accessor method.
7607         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7608         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
7609         (calculate_dominance_info): Adjust to use dom_info class.
7610         (verify_dominators): Likewise.
7611
7612 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
7613
7614         * print-rtl.c (print_rtx): Check the correct range for
7615         flag_dump_unnumbered_links to behave as documented.
7616
7617         PR rtl-optimization/67227
7618         PR rtl-optimization/64164
7619         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7620         (nonoverlapping_memrefs_p): Test offsets and sizes when given
7621         identical gimple_reg exprs.
7622
7623 2015-08-21  Nathan Sidwell  <nathan@acm.org>
7624
7625         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7626         expansion.
7627         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7628         crtl->stack_alignment_needed to determine alignment.
7629         (nvptx_get_drap_rtx): New.
7630         (TARGET_GET_DRAP_RTX): Override.
7631         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7632
7633 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7634
7635         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7636
7637 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7638
7639         * configure.ac: Remove uwin* cases.
7640         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7641         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7642         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7643         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7644         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7645         i[34567]86-*-uwin*, powerpc-*-beos*.
7646
7647 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
7648
7649         * gencodes.c (gencodes): Print the comma for the preceding
7650         enum value rather than the current one.  Use aliased enum values
7651         rather than #defines for compiled-out patterns.
7652         (main): Update accordingly.  Replace LAST_INSN_CODE with
7653         NUM_INSN_CODES.
7654         * lra.c (insn_code_data): Update accordingly.
7655         (finish_insn_code_data_once, get_static_insn_data): Likewise.
7656         * recog.h (target_recog): Likewise.
7657         (preprocess_insn_constraints): Change parameter to unsigned int.
7658         * recog.c (preprocess_insn_constraints): Likewise.
7659         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7660         * tree-vect-stmts.c (vectorizable_operation): Simplify.
7661
7662 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7663
7664         PR rtl-optimization/61657
7665         * loop-iv.c (iv_number_of_iterations): Declare up and down as
7666         unsigned.  Remove superflous uint64_t cast.
7667
7668 2014-08-21  Felix Yang  <felix.yang@huawei.com>
7669             Jiji Jiang  <jiangjiji@huawei.com>
7670
7671         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7672         argument and get builtin function code directly from CALL.
7673         (gimple_stringop_fixed_value): Modified accordingly.
7674         (gimple_stringops_transform, gimple_stringops_values_to_profile):
7675         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7676
7677 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7678
7679         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7680
7681 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7682
7683         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7684         to match.pd.
7685         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7686         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7687         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7688         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7689         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7690         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7691         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7692         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7693         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7694         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7695
7696         * match.pd (SIN ) : New Operator.
7697         (TAN) : New Operator.
7698         (mult (SQRT@1 @0) @1) : New simplifier.
7699         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7700         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7701         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7702         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7703         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7704         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7705         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7706         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7707         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7708         (rdiv @0 (POW:s @1 @2)) : New simplifier.
7709
7710 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
7711
7712         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7713         loop if EXPR is simplified to const value.
7714
7715 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
7716
7717         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7718         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7719
7720 2015-08-21  Richard Biener  <rguenther@suse.de>
7721
7722         PR middle-end/67285
7723         * gimple-fold.c (replace_stmt_with_simplification): Assert
7724         seq is empty when replacing a call with itself but different
7725         arguments.
7726         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7727         a call require that it is const.
7728
7729 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7730
7731         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7732         * builtins.c (get_object_alignment_2): Adjust.
7733         * varasm.c (align_variable): Likewise.
7734         (get_variable_align): Likewise.
7735         (build_constant_desc): Likewise.
7736         (force_const_mem): Likewise.
7737         * doc/tm.texi.in: Likewise.
7738         * doc/tm.texi: Regenerate.
7739
7740 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7741
7742         * genconfig.c (main): Always define HAVE_cc0.
7743         * recog.c (rest_of_handle_peephole2): Adjust.
7744
7745 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7746
7747         * reorg.c (relax_delay_slots): Don't use #if to check value of
7748         HAVE_cc0.
7749
7750 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7751
7752         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7753         * targhooks.c (default_have_conditional_execution): Adjust.
7754
7755 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7756
7757         * rtl.h (rtvec_all_equal_p): Declare.
7758         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7759         * rtl.c (rtvec_all_equal_p): New function.
7760         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7761         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7762         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7763         * config/arm/arm.c (neon_vdup_constant): Likewise.
7764         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7765         * config/tilegx/constraints.md (W, Y): Likewise.
7766         * config/tilepro/constraints.md (W, Y): Likewise.
7767         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7768         (classify_immediate): Use unwrap_const_vec_duplicate.
7769         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7770         (reg_or_v2s8bit_operand): Likewise.
7771         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7772         (reg_or_v4s8bit_operand): Likewise.
7773
7774 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7775
7776         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7777         (vec_shasigma_be): New #define.
7778         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7779         (VPMSUMH): Likewise.
7780         (VPMSUMW): Likewise.
7781         (VPMSUMD): Likewise.
7782         (VPMSUM): New BU_P8V_OVERLOAD_2.
7783         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7784         entries for VEC_MADD and VEC_VPMSUM.
7785
7786 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
7787
7788         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7789         Multiply argument avr_n_flash by 64 to match unit of "KiB".
7790         (avr_pgm_check_var_decl): Same.
7791
7792 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
7793
7794         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7795         initialization of HFmode scalar type (float16_t) to...
7796         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7797         code.
7798
7799         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7800
7801         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7802         having an -mfp16-format.
7803
7804 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
7805
7806         * config/i386/predicates.md (vector_all_ones_operand): Use
7807         CONSTM1_RTX to simplify definition.
7808
7809 2015-08-20  Richard Biener  <rguenther@suse.de>
7810
7811         * toplev.c (compile_file): Remove loop calling late_global_decl
7812         on all symbols.
7813         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7814         on decls we assembled.
7815
7816 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
7817
7818         * common/config/aarch64/aarch64-common.c
7819         (AARCH64_CPU_NAME_LENGTH): Delete.
7820         (aarch64_option_extension): New.
7821         (all_extensions): Likewise.
7822         (processor_name_to_arch): Likewise.
7823         (arch_to_arch_name): Likewise.
7824         (all_cores): New.
7825         (all_architectures): Likewise.
7826         (aarch64_get_extension_string_for_isa_flags): Likewise.
7827         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7828         architecture names.
7829         * config/aarch64/aarch64-protos.h
7830         (aarch64_get_extension_string_for_isa_flags): New.
7831         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7832         (aarch64_option_print): Get the string to print from
7833         aarch64_get_extension_string_for_isa_flags.
7834         (aarch64_declare_function_name): Likewise.
7835         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7836         (MCPU_TO_MARCH_SPEC): This.
7837         (ASM_CPU_SPEC): Use it.
7838         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7839         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7840         (EXTRA_SPEC_FUNCTIONS): Use it.
7841
7842 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
7843
7844         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7845         expansion when !ISA_HAS_LWL_LWR.
7846         (mips_block_move_straight): Update the size of elements copied to
7847         account for alignment when !ISA_HAS_LWL_LWR.
7848         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7849
7850 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7851
7852         * expr.c (expand_expr_real_2): Check gimple statement during
7853         LSHIFT_EXPR expand.
7854
7855 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
7856
7857         * common.opt (fstack-protector): Initialize to -1.
7858         (fstack-protector-all): Likewise.
7859         (fstack-protector-strong): Likewise.
7860         (fstack-protector-explicit): Likewise.
7861         * configure.ac: Add --enable-default-ssp.
7862         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
7863         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7864         -1.
7865         * doc/install.texi: Document --enable-default-ssp.
7866         * config.in: Regenerated.
7867         * configure: Likewise.
7868
7869 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
7870
7871         PR rtl-optimization/64164
7872         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7873         (parm_in_stack_slot_p): ... this.  Disregard mode, what
7874         matters is whether the parm will live in a pseudo or a stack
7875         slot.
7876         (expand_one_ssa_partition): Deal with params without a default
7877         def.  Disregard mode.
7878         * cfgexpand.h: Renamed function declaration.
7879         * tree-ssa-coalesce.c: Adjust.
7880         * function.c (split_complex_args): Allocate stack slot for
7881         unassigned parms before splitting.
7882         (parm_in_unassigned_mem_p): New.  Use it instead of
7883         parm_maybe_byref_p throughout this file.
7884         (assign_parm_setup_block): Use it.  Accept pseudos in the
7885         expand-assigned rtl.
7886         (assign_parm_setup_reg): Drop BLKmode requirement.
7887         (assign_parm_setup_stack): Allocate and fill in the address of
7888         unassigned MEM parms.
7889
7890 2015-08-19  David Sherwood  <david.sherwood@arm.com>
7891
7892         * genmodes.c (emit_mode_unit_size_inline): New function.
7893         (emit_mode_unit_precision_inline): New function.
7894         (emit_insn_modes_h): Emit new #define.  Emit new functions.
7895         (emit_mode_unit_size): New function.
7896         (emit_mode_unit_precision): New function.
7897         (emit_mode_adjustments): Add mode_unit_size adjustments.
7898         (emit_insn_modes_c): Emit new arrays.
7899         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7900         use new inline methods.
7901
7902 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7903
7904         * config/aarch64/aarch64.c (bit_count): Delete prototype
7905         and definition.
7906         (aarch64_print_operand): Use popcount_hwi instead of the above.
7907
7908 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7909
7910         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7911         comment.
7912
7913 2015-08-19  Marek Polacek  <polacek@redhat.com>
7914
7915         PR middle-end/67133
7916         * gimple-ssa-isolate-paths.c
7917         (insert_trap_and_remove_trailing_statements): Rename to ...
7918         (insert_trap): ... this.  Don't remove trailing statements; split
7919         block instead.
7920         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7921
7922 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
7923
7924         PR other/67042
7925         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7926         conditionalize the whole on __GNUC__.  Add fallback code
7927         depending neither on undefined nor implementation-defined behaviour.
7928
7929 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
7930
7931         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7932         whitespaces with tab.
7933
7934 2015-08-19  Florian Weimer  <fweimer@redhat.com>
7935
7936         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7937         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7938         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
7939         Move Name_Ids instantiation to the Prj.Proc package, to avoid
7940         trampolines.
7941
7942 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7943
7944         * config/arm/arm.c (bounds_check): Use %wd print format
7945         for HOST_WIDE_INT arguments.
7946
7947 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
7948
7949         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
7950         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
7951         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
7952         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
7953         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
7954         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
7955         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
7956         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
7957         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
7958         typedefs.
7959
7960 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
7961
7962         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
7963         function.c, graphite-scop-detection.c, haifa-sched.c,
7964         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
7965         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
7966         varasm.c: Remove typedefs of structs.
7967
7968 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7969
7970         * config/rs6000/altivec.h (vec_adde): New define.
7971         (vec_addec): Likewise.
7972         (vec_double): Likewise.
7973         (vec_bperm): Likewise.
7974         (vec_gb): Likewise.
7975         * config/rs6000/rs6000-builtin.def (ADDE): New
7976         BU_ALTIVEC_OVERLOAD_3.
7977         (ADDEC): Likewise.
7978         (DOUBLE): New BU_VSX_OVERLOAD_1.
7979         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
7980         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
7981         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
7982         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
7983         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
7984         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
7985         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
7986         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
7987         and P8V_BUILTIN_VEC_VBPERMQ.
7988
7989 2015-08-18  Jason Merrill  <jason@redhat.com>
7990
7991         * print-tree.c (print_node): Handle TREE_BINFO.
7992
7993 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7994
7995         PR middle-end/36757
7996         * builtins.c (expand_builtin_signbit): Add asserts to make sure
7997         we can expand BUILT_IN_SIGNBIT inline.
7998         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
7999         * doc/extend.texi: Document the type-generic __builtin_signbit.
8000
8001 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
8002
8003         PR rtl-optimization/67218
8004         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8005         (simplify_unary_operation_1): Use it.
8006
8007 2015-08-18  Marek Polacek  <polacek@redhat.com>
8008
8009         PR middle-end/67222
8010         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8011         if the call isn't valid.
8012         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8013         gimple_call_builtin_p.
8014         (call_may_clobber_ref_p_1): Likewise.
8015         (stmt_kills_ref_p): Likewise.
8016
8017 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
8018
8019         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8020         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8021         (mips_hard_regno_scratch_ok): Likewise.
8022         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8023         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8024
8025 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
8026
8027         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8028         (determine_value_range): Call refine_value_range_using_guard for
8029         each loop initial condition to improve value range.
8030
8031 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
8032
8033         * config/i386/i386.c: Remove include of fibheap.h.
8034
8035 2015-08-17  Richard Biener  <rguenther@suse.de>
8036
8037         PR tree-optimization/67221
8038         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8039         (sccvn_dom_walker::before_dom_children): Mark backedges of
8040         non-executable blocks as not executable.
8041
8042 2015-08-17  David Sherwood  <david.sherwood@arm.com>
8043
8044         * config/arm/arm.c (neon_element_bits): Replace call to
8045         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8046         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8047         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8048         (neon_vdup_lane<mode>): Likewise.
8049         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8050         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8051         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8052         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8053         * config/spu/spu.c (arith_immediate_p): Likewise.
8054         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8055         * expr.c (expand_expr_real_2): Likewise.
8056         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8057         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8058         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8059         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8060         New variable.
8061         * fold-const.c (fold_binary_loc): Replace call to
8062         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8063         GET_MODE_UNIT_PRECISION (m).
8064
8065 2015-08-17  Mike Stump  <mikestump@comcast.net>
8066
8067         * config/arm/arm.c (arm_block_move_unaligned_straight):
8068         Emit normal move instead of unaligned load when source or destination
8069         are appropriately aligned.
8070
8071 2015-08-17  Richard Biener  <rguenther@suse.de>
8072             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8073
8074         PR middle-end/16107
8075         * match.pd (div (coss (op @0) : New simplifier.
8076
8077 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
8078
8079         PR rtl-optimization/64164
8080         PR bootstrap/66978
8081         PR middle-end/66983
8082         PR rtl-optimization/67000
8083         PR middle-end/67034
8084         PR middle-end/67035
8085         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8086         * tree-ssa-copyrename.c: Removed.
8087         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8088         -ftree-coalesce-vars.
8089         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8090         * common.opt (ftree-copyrename): Ignore.
8091         (ftree-coalesce-inlined-vars): Likewise.
8092         * doc/invoke.texi: Remove the ignored options above.
8093         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8094         * tree-ssa-coalesce.h: ... here.
8095         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8096         headers required by it.
8097         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8098         across variables when flag_tree_coalesce_vars.  Check register
8099         use and promoted modes to allow coalescing.  Do not coalesce
8100         maybe-byref parms with SSA_NAMEs of other variables, or
8101         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
8102         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8103         with its member functions to tree-ssa-coalesce.c.
8104         (var_map_base_init): Likewise.  Renamed to
8105         compute_samebase_partition_bases.
8106         (partition_view_normal): Drop want_bases parameter.
8107         (partition_view_bitmap): Likewise.
8108         * tree-ssa-live.h: Adjust declarations.
8109         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8110         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8111         default defs at the entry point.
8112         (dump_part_var_map): New.
8113         (compute_optimized_partition_bases): New, called by...
8114         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8115         of compute_samebase_partition_bases.  Adjust.
8116         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8117         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8118         (ssa_default_def_partition): New.
8119         (get_rtl_for_parm_ssa_default_def): New.
8120         (align_local_variable, add_stack_var): Support anonymous SSA
8121         names.
8122         (defer_stack_allocation): Likewise.  Declare earlier.
8123         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8124         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8125         Do no record deferred-allocation marker in
8126         SA.partition_to_pseudo.
8127         (expand_stack_vars): Adjust check for the marker in it.
8128         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8129         redundant MEM attr setting.
8130         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8131         from...
8132         (expand_one_stack_var): ... this.  New wrapper to check and
8133         skip already expanded SSA partitions.
8134         (record_alignment_for_reg_var): New, factored out of...
8135         (expand_one_var): ... this.
8136         (expand_one_ssa_partition): New.
8137         (adjust_one_expanded_partition_var): New.
8138         (expand_one_register_var): Check and skip already expanded SSA
8139         partitions.
8140         (expand_used_vars): Don't create DECLs for anonymous SSA
8141         names.  Expand all SSA partitions, then adjust all SSA names.
8142         (pass::execute): Replace the loops that set
8143         SA.partition_to_pseudo from partition leaders and cleared
8144         DECL_RTL for multi-location variables, and that which used to
8145         rename vars and set attrs, with one that clears DECL_RTL and
8146         checks that PARMs and RESULTs default_defs match DECL_RTL.
8147         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8148         * emit-rtl.c: Include stor-layout.h.
8149         (set_reg_attrs_for_parm): Handle NULL decl.
8150         (set_reg_attrs_for_decl_rtl): Take mode from expression if
8151         it's not a DECL.
8152         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8153         rather than its possibly-NULL DECL.
8154         * explow.c (promote_ssa_mode): New.
8155         * explow.h (promote_ssa_mode): Declare.
8156         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8157         (read_complex_part): Export.
8158         * expr.h (read_complex_part): Declare.
8159         * cfgexpand.h (parm_maybe_byref_p): Declare.
8160         * function.c: Include cfgexpand.h.
8161         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8162         (use_register_for_parm_decl): Wrapper for the above to
8163         special-case the result_ptr.
8164         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8165         (split_complex_args): Take assign_parm_data_all argument.
8166         Pass it to rtl_for_parm.  Set up rtl and context for split
8167         args.  Reset complex parm before fetching its default decl
8168         rtl.
8169         (assign_parms_unsplit_complex): Use the default-def complex
8170         parm rtl if it matches the components.
8171         (assign_parms_augmented_arg_list): Adjust.
8172         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8173         multiple locations.  Recognize split complex args.
8174         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8175         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8176         (assign_parm_setup_block): Prefer SSA-assigned location, and
8177         fill in its address if the memory location of a maybe-byref
8178         parm was not assigned by cfgexpand.
8179         (assign_parm_setup_reg): Likewise.  Adjust its mode as
8180         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
8181         sure passed_pointer parms don't need conversion.  Copy address
8182         or value as needed.
8183         (assign_parm_setup_stack): Prefer SSA-assigned location.
8184         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8185         rtl before testing for pointer bounds.  Special-case result_ptr.
8186         (expand_function_start): Maybe reset DECL_RTL of result.
8187         Prefer SSA-assigned location for result and static chain.
8188         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
8189         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
8190         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8191         anonymous SSA names.  Use promote_ssa_mode.
8192         (get_temp_reg): Likewise.
8193         (remove_ssa_form): Adjust.
8194         * stor-layout.c (layout_decl): Don't set mem attributes of
8195         non-MEMs.
8196         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8197         and get its reg_usage for reg invalidation.
8198         (compute_bb_dataflow): Pass it insn.
8199         (emit_notes_in_bb): Likewise.
8200
8201 2015-08-14  Marek Polacek  <polacek@redhat.com>
8202
8203         * tree-core.h (tree_base): Fix typo.
8204
8205 2015-08-14  Marek Polacek  <polacek@redhat.com>
8206
8207         PR middle-end/67133
8208         * gimple.c (infer_nonnull_range_by_attribute): Check that the
8209         nonnull argument position is not outside function arguments.
8210
8211 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
8212
8213         PR target/67143
8214         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8215         'lconst_atomic' with 'const_atomic'.
8216         (atomic_fetch_<optab><mode>): Likewise.
8217         (atomic_<optab>_fetch<mode>): Likewise.
8218         * config/aarch64/iterators.md (lconst-atomic): Move below
8219         'const_atomic'.
8220         (const_atomic): New.
8221
8222 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
8223             Bernd Schmidt  <bernds@codesourcery.com>
8224
8225         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8226         debug options.
8227         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8228         (DWARF2_DEBUGGING_INFO): Don't define.
8229         * debug.h (dwarf2_lineno_debug_hooks): Declare.
8230         * toplev.c (process_options): Add a case for it.
8231         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8232         (dwarf2out_init): Skip most initializations if
8233         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8234         case.
8235         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8236         DWARF2_LINENO_DEBUGGING_INFO.
8237         * opts.c (set_debug_level): Likewise.
8238
8239 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
8240
8241         * config/arm/types.md (is_neon_type): Add missing types.
8242
8243 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
8244
8245         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8246         for skylake.
8247         * config/i386/i386.c (PTA_SKYLAKE): New macros.
8248         (processor_alias_table): Add skylake description.
8249         (enum processor_model): Add skylake processor.
8250         (arch_names_table): Add skylake record.
8251         * doc/invoke.texi: Add skylake item.
8252
8253 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
8254
8255         * ira-int.h: Include recog.h.
8256         * ira-build.c: Don't include recog.h.
8257         * ira-color.c: Likewise.
8258         * ira-conflicts.c: Likewise.
8259         * ira-costs.c: Likewise.
8260         * ira-emit.c: Likewise.
8261         * ira-lives.c: Likewise.
8262         * ira.c: Likewise.
8263         * sched-deps.c: Likewise.
8264         * sel-sched.c: Likewise.
8265         * target-globals.c: Likewise.
8266
8267 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8268
8269         PR bootstrap/55035
8270         * reload1.c (elimination_costs_in_insn): Make it obvious to the
8271         compiler that the n_dups and n_operands loop bounds are invariant.
8272
8273 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8274
8275         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8276         expressions in A and B.
8277
8278 2015-08-13  Richard Biener  <rguenther@suse.de>
8279
8280         * tree.c (nonnull_arg_p): Move from ...
8281         * tree-vrp.c (nonnull_arg_p): ... here.
8282         * tree.h (nonnull_arg_p): Declare.
8283         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8284         here, register ptr != 0 for nonnull_arg_p pointer arguments.
8285         Properly initialize static chain and by-reference result pointer.
8286         (run_scc_vn): Adjust.
8287
8288 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8289
8290         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8291         TUNE_I6400.
8292
8293 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8294
8295         * config/aarch64/aarch64-protos.h
8296         (aarch64_gen_atomic_cas): Declare.
8297         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8298         Choose appropriate instruction pattern for the target.
8299         (aarch64_gen_atomic_cas): New.
8300         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8301         (atomic_compare_and_swap<mode>_1): Rename to
8302         aarch64_compare_and_swap<mode>.  Fix some indentation.
8303         (aarch64_compare_and_swap<mode>_lse): New.
8304         (aarch64_atomic_cas<mode>): New.
8305
8306 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
8307
8308         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8309         (TARGET_LSE): New.
8310
8311 2015-08-13  Richard Biener  <rguenther@suse.de>
8312
8313         PR tree-optimization/67191
8314         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8315         assert we value-numbered last stmts operand because it can validly
8316         trigger for unreachable code.
8317
8318 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8319
8320         PR rtl-optimization/67103
8321         * ifcvt.c (noce_try_store_flag_constants): Move
8322         x = (-(test != 0) & (b - a)) + a transformation to...
8323         (noce_try_cmove): ... Here.  Try it if normal conditional
8324         move fails.
8325
8326 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
8327
8328         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8329         pseudo-processors.
8330         * config/mips/mips.md (processor): Remove w32 and w64.
8331
8332 2015-08-13  Richard Biener  <rguenther@suse.de>
8333
8334         PR tree-optimization/66502
8335         PR tree-optimization/67167
8336         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8337         backedge arguments.
8338         (vn_phi_lookup): Adjust.
8339         (vn_phi_insert): Likewise.
8340         (visit_phi): Prefer to value-number to another PHI node
8341         over value-numbering to a PHI argument.
8342         (init_scc_vn): Mark DFS back edges.
8343
8344 2015-08-13  Richard Biener  <rguenther@suse.de>
8345
8346         * gimple.h (gcall::code_): New constant static member.
8347         (gcond::code_): Likewise.
8348         * gimple.c (gcall::code_): Define.
8349         (gcond::code_): Likewise.
8350         (is_a_helper <const gcond *>): Add.
8351         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8352         and forward to a new gcall overload with less checking and a
8353         cheaper way to access the operand.
8354         (gimple_call_lhs_ptr): Likewise.
8355         (gimple_call_set_lhs): Likewise.
8356         (gimple_call_internal_p): Likewise.
8357         (gimple_call_with_bounds_p): Likewise.
8358         (gimple_call_set_with_bounds): Likewise.
8359         (gimple_call_internal_fn): Likewise.
8360         (gimple_call_set_ctrl_altering): Likewise.
8361         (gimple_call_ctrl_altering_p): Likewise.
8362         (gimple_call_fntype): Likewise.
8363         (gimple_call_fn): Likewise.
8364         (gimple_call_fn_ptr): Likewise.
8365         (gimple_call_set_fndecl): Likewise.
8366         (gimple_call_fndecl): Likewise.
8367         (gimple_call_chain): Likewise.
8368         (gimple_call_num_args): Likewise.
8369         (gimple_call_arg): Likewise.
8370         (gimple_call_arg_ptr): Likewise.
8371         (gimple_call_set_arg): Likewise.
8372         (gimple_call_noreturn_p): Likewise.
8373         (gimple_cond_code): Likewise.
8374         (gimple_cond_lhs): Likewise.
8375         (gimple_cond_rhs): Likewise.
8376         (gimple_has_lhs): Reduce checking.
8377
8378 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8379
8380         PR middle-end/25529
8381         * match.pd (div (mult @0 @1) @1) : New simplifier.
8382
8383 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8384
8385         PR target/67071
8386         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8387         predicate to allow construction of vector constants using the
8388         VSLDOI vector shift instruction.
8389
8390         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8391         declaration.
8392
8393         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8394         the number of bytes to be shifted left and filled in with either
8395         all zero or all one bits.
8396         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8397         methods exist.
8398         (output_vec_const_move): On power8, generate XXLORC to generate
8399         a vector constant with all 1's. Do a split if we need to use a
8400         VSLDOI instruction.
8401
8402         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8403         properly test for the MSB.
8404
8405         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8406         vector constants that can be created with VSLDOI.
8407
8408 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8409
8410         revert:
8411         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8412         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8413         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8414         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8415         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8416         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8417         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8418         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8419         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8420
8421 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
8422
8423         * config/xtensa/constraints.md (define_constraint "Y"): New
8424         constraint.
8425         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8426         * config/xtensa/linux.h (ASM_SPEC): Likewise.
8427         * config/xtensa/predicates.md (move_operand): Match constants
8428         and symbols in the presence of TARGET_AUTO_LITPOOLS.
8429         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8430         immediate references to TLS data.
8431         (xtensa_emit_move_sequence): Don't force constants to memory in
8432         the presence of TARGET_AUTO_LITPOOLS.
8433         (print_operand): Add 'y' format, same as default, but capable of
8434         printing SF mode constants as well.
8435         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8436         (movsf_internal): Add movi pattern that loads literal.
8437         (movsf, movdf): Don't force constants to memory in the presence
8438         of TARGET_AUTO_LITPOOLS.
8439         (movdf_internal): Add 'Y' constraint.
8440         * config/xtensa/xtensa.opt (mauto-litpools): New option.
8441         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8442
8443 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8444
8445         * config/arm/arm-fpus.def: Replace booleans with feature flags.
8446         Update comment.
8447         * config/arm/arm.c (ARM_FPU): Update macro.
8448         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8449         (TARGET_FP16): Likewise.
8450         (TARGET_CRYPTO): Likewise.
8451         (TARGET_NEON): Likewise.
8452         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
8453         field features.
8454
8455 2015-08-12  Tom de Vries  <tom@codesourcery.com>
8456
8457         PR other/67092
8458         PR other/67098
8459         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
8460         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8461         accordingly.  Mention default for --with-stage1-ldflags.
8462
8463 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
8464
8465         * config/arm/arm.h (arm_fpu_feature_set): New.
8466         (ARM_FPU_FSET_HAS): New.
8467         (FPU_FL_NONE): New.
8468         (FPU_FL_NEON): New.
8469         (FPU_FL_FP16): New.
8470         (FPU_FL_CRYPTO): New.
8471
8472 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8473
8474         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8475         after -mcmodel=large -fPIC sorry.
8476
8477 2015-08-12  Richard Biener  <rguenther@suse.de>
8478
8479         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8480         comparison operand order and commutative ternary op operand order.
8481         (sccvn_dom_walker::cond_stack): New state to track temporary
8482         expressions.
8483         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8484         no longer valid.
8485         (sccvn_dom_walker::record_cond): Add a single temporary conditional
8486         expression.
8487         (sccvn_dom_walker::record_conds): Add a temporary conditional
8488         expressions and all related expressions also true/false.
8489         (sccvn_dom_walker::before_dom_children): Record temporary
8490         expressions based on the controlling condition of a single
8491         predecessor.  When trying to simplify a conditional statement
8492         lookup expressions we might have inserted earlier.
8493
8494 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
8495
8496         PR target/67127
8497         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8498         to ARM core registers.
8499
8500 2015-08-12  Nathan Sidwell  <nathan@acm.org>
8501
8502         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8503         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8504
8505 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
8506
8507         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8508         line with comments.
8509         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8510
8511 2015-08-12  Richard Biener  <rguenther@suse.de>
8512
8513         * gimple.h (remove_pointer): New trait.
8514         (GIMPLE_CHECK2): New inline template function.
8515         (gassign::code_): New constant static member.
8516         (is_a_helper<const gassign *>): Add.
8517         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8518         and forward to a new gassign overload with less checking and a
8519         cheaper way to access the operand.
8520         (gimple_assign_lhs_ptr): Likewise.
8521         (gimple_assign_set_lhs): Likewise.
8522         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8523         Likewise.
8524         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8525         Likewise.
8526         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8527         Likewise.
8528         (gimple_assign_rhs_code): Likewise.
8529         * gimple.c (gassign::code_): Define.
8530
8531 2015-08-12  Richard Biener  <rguenther@suse.de>
8532
8533         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8534         Eliminate edges marked as not executable by SCCVN.
8535         * tree-ssa-sccvn.c: Include gimple-iterator.h.
8536         (cond_dom_walker): Rename to sccvn_dom_walker.
8537         (sccvn_dom_walker::before_dom_children): Value-number defs
8538         of all stmts.
8539         (run_scc_vn): Remove loop value-numbering all SSA names.
8540         Drop not visited SSA names to varying.
8541
8542 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
8543
8544         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8545         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8546         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8547         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8548         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8549         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8550         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8551         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8552         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8553
8554 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
8555
8556         PR target/66954
8557         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8558         to enum feature_priority and feature_list.
8559         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8560         and isa_names_table.
8561
8562 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8563
8564         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8565         vect_induction_def.
8566
8567 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8568
8569         PR c/66098
8570         PR c/66711
8571         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8572         account when deciding what was the command-line status.
8573
8574 2015-08-11  Nathan Sidwell  <nathan@acm.org>
8575
8576         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8577
8578         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8579         we're not the only contributor to target phi.
8580
8581 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
8582
8583         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8584         FIXED_REG0.
8585
8586 2015-08-11  Tom de Vries  <tom@codesourcery.com>
8587
8588         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8589
8590 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8591
8592         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8593         with CPU_SLM.
8594         * config/i386/i386.md (cpu): Remove knl.
8595
8596 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8597
8598         PR libgomp/65742
8599         PR middle-end/66332
8600         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8601         open-coded sequence.
8602         * omp-low.c (oacc_process_reduction_data): Remove handline of
8603         GOMP_DEVICE_HOST_NONSHM.
8604
8605         * lto-streamer-in.c (lto_input_mode_table): Adjust to
8606         GET_MODE_INNER changes.
8607
8608 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8609             Ilya Verbin  <ilya.verbin@intel.com>
8610
8611         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8612
8613 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8614
8615         * doc/options.texi (EnabledBy): Document that the argument must be
8616         a Common option.
8617         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8618         Not enabled by -Wall.
8619         * optc-gen.awk: Give nicer error messages. Detect if the argument
8620         of EnabledBy is not a Common option.
8621         * common.opt (Wnull-dereference): Not enabled by -Wall.
8622         * opt-functions.awk (lang_enabled_by): Nicer error messages.
8623
8624 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8625
8626         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8627         model == 0x4f as Broadwell.
8628
8629 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8630
8631         PR rtl-optimization/67028
8632         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
8633         Add test to see if a const_int fits in the new mode.
8634
8635 2015-08-07  DJ Delorie  <dj@redhat.com>
8636
8637         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8638
8639 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8640
8641         PR rtl-optimization/67029
8642         * ira-color.c: Include "recog.h" before including "ira-int.h".
8643         * target-globals.c: Likewise.
8644         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8645         adds an alternative_mask argument and use it instead of
8646         preferred_alternatives.
8647         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8648         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8649         * sched-deps.c: Include "ira-int.h" after including "ira.h".
8650         (sched_analyze_insn): Update call to
8651         ira_implicitly_set_insn_hard_regs.
8652         * sel-sched.c: Include "ira-int.h" after including "ira.h".
8653         (implicit_clobber_conflict_p): Update call to
8654         ira_implicitly_set_insn_hard_regs.
8655
8656 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8657
8658         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8659
8660 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8661
8662         PR target/67002
8663         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8664         currently_expanding_to_rtl is set.
8665
8666 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
8667
8668         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8669         * configure: Regenerate.
8670
8671 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8672             Jiong Wang  <jiong.wang@arm.com>
8673
8674         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8675         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8676         (REG_CLASS_NAMES): Likewise.
8677         (REG_CLASS_CONTENTS): Likewise.
8678         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8679         (aarch64_register_move_cost): Likewise.
8680         (aarch64_load_symref_appropriately): Invoke the new added pattern if
8681         possible.
8682         * config/aarch64/constraints.md (Uc0): New constraint.
8683
8684 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8685
8686         * config/aarch64/constraints.md (Usf): Add the test of
8687         aarch64_is_noplt_call_p.
8688
8689 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
8690
8691         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8692         declaration.
8693         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8694         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8695         (call_symbol): Likewise.
8696
8697 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8698
8699         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8700         for vectorizing multiplication patterns.
8701         * tree-vectorizer.h: Adjust the number of patterns.
8702
8703 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
8704
8705         * config/i386/sse.md (*vec_concatv2df): Declare added
8706         alternatives as sselog type.
8707
8708 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8709
8710         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8711         all GPRs.
8712
8713 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8714
8715         * config/s390/s390.c (s390_expand_tbegin): Expand either
8716         tbegin_1_z13 or tbegin_1 depending on VX flag.
8717         * config/s390/s390.md ("tbegin_1_z13"): New expander.
8718
8719 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8720
8721         * config/s390/s390.opt: Clarify description for -mzvector
8722         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8723         -mzvector.
8724
8725 2015-08-06  Richard Biener  <rguenther@suse.de>
8726
8727         * gimple.h (gimple_call_set_fn): Access op member directly.
8728         (gimple_call_chain_ptr): Likewise.
8729         (gimple_call_set_chain): Likewise.
8730         (gimple_cond_lhs_ptr): Likewise.
8731         (gimple_cond_set_lhs): Likewise.
8732         (gimple_cond_rhs_ptr): Likewise.
8733         (gimple_cond_set_rhs): Likewise.
8734         (gimple_cond_true_label): Likewise.
8735         (gimple_cond_set_true_label): Likewise.
8736         (gimple_cond_set_false_label): Likewise.
8737         (gimple_cond_false_label): Likewise.
8738         (gimple_label_label): Likewise.
8739         (gimple_label_set_label): Likewise.
8740         (gimple_goto_set_dest): Likewise.
8741         (gimple_asm_input_op): Likewise.
8742         (gimple_asm_input_op_ptr): Likewise.
8743         (gimple_asm_set_input_op): Likewise.
8744         (gimple_asm_output_op): Likewise.
8745         (gimple_asm_output_op_ptr): Likewise.
8746         (gimple_asm_set_output_op): Likewise.
8747         (gimple_asm_clobber_op): Likewise.
8748         (gimple_asm_set_clobber_op): Likewise.
8749         (gimple_asm_label_op): Likewise.
8750         (gimple_asm_set_label_op): Likewise.
8751         (gimple_switch_index): Likewise.
8752         (gimple_switch_index_ptr): Likewise.
8753         (gimple_return_retval_ptr): Likewise.
8754         (gimple_return_retval): Likewise.
8755         (gimple_return_set_retval): Likewise.
8756         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
8757         (gimple_switch_label): Likewise.
8758         (gimple_switch_set_label): Likewise.
8759
8760 2015-08-06  Richard Biener  <rguenther@suse.de>
8761
8762         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8763         bool comparison canonicalization and restrict to integers.
8764
8765 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
8766
8767         * coretypes.h (enum symbol_visibility): Relocate here.
8768         * flag-types.h (enum symbol_visibility): Remove.
8769         * tree-core.h (enum symbol_visibility): Remove.
8770
8771 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
8772
8773         PR target/66870
8774         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8775         for no_split_stack function attribute along with
8776         flag_split_stack.
8777         (rs6000_expand_split_stack_prologue): Likewise.
8778
8779 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8780             Jeff Law  <law@redhat.com>
8781
8782         PR c/16351
8783         * doc/invoke.texi (Wnull-dereference): New.
8784         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8785         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8786         Warn for potential NULL dereferences.
8787         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8788         * ubsan.c (instrument_nonnull_arg): Call
8789         infer_nonnull_range_by_attribute.
8790         (instrument_nonnull_return): Likewise.
8791         * common.opt (Wnull-dereference); New.
8792         * gimple.c (infer_nonnull_range): Remove bool arguments.
8793         (infer_nonnull_range_by_dereference): New.
8794         (infer_nonnull_range_by_attribute): New.
8795         * gimple.h: Update declarations.
8796
8797 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8798
8799         * gensupport.c (sequence_num): Replace with...
8800         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8801         ...these new variables.
8802         (init_rtx_reader_args_cb): Update accordingly.
8803         (get_num_code_insns): Likewise.
8804         (read_md_rtx): Rework to use a while loop and get_c_test.
8805         Use the new counters.  Remove redundant DEFINE_SUBST case.
8806         * genoutput.c (gen_split): Delete.
8807         (main): Don't call it.
8808
8809 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8810
8811         * gensupport.h (get_c_test): Declare.
8812         * gensupport.c (get_c_test): New function.
8813         * genconditions.c (main): Use it.
8814         * genrecog.c (validate_pattern): Likewise.
8815         (match_pattern_1): Likewise.  Remove c_test argument.
8816         (match_pattern): Update accordingly and remove c_test argument.
8817         (main): Update accordingly.
8818
8819 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8820
8821         * gensupport.h (get_num_insn_codes): Declare.
8822         * gensupport.c (get_num_insn_codes): New function.
8823         * genattrtab.c (optimize_attrs): Rename max_insn_code to
8824         num_insn_codes.
8825         (main): Likewise.  Use get_num_insn_codes.
8826         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8827
8828 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8829
8830         PR middle-end/66311
8831         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8832         is zero- rather than sign-extended.
8833
8834 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8835
8836         * target-insns.def (can_extend): Delete.
8837
8838 2015-08-05  Richard Biener  <rguenther@suse.de>
8839
8840         PR tree-optimization/67121
8841         * tree-if-conv.c (combine_blocks): Clear range-info produced
8842         by stmts no longer executed conditionally.
8843
8844 2015-08-05  Nick Clifton  <nickc@redhat.com>
8845
8846         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8847         to allow identical far pointers to remain.
8848
8849 2015-08-05  Richard Biener  <rguenther@suse.de>
8850
8851         PR middle-end/67120
8852         * match.pd: Compare address bases with == if they are decls
8853         or SSA names, not operand_equal_p.  Otherwise fail.
8854
8855 2015-08-05  Richard Biener  <rguenther@suse.de>
8856
8857         PR tree-optimization/67055
8858         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8859         NULL gimple_block.
8860
8861         * g++.dg/torture/pr67055.C: New testcase.
8862
8863 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8864
8865         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8866         noavx512vl.
8867         (define_attr "enabled"): Handle avx521vl and noavx512vl.
8868         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8869         AVX-512 alternative out of SSE.
8870         (define_insn "*vec_concatv2df"): Ditto.
8871
8872 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
8873
8874         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8875         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8876         CODE_FOR_avx_ptestv4di.
8877         * config/i386/sse.md (define_mode_iterator V_AVX): New.
8878         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8879         (define_insn "avx_ptest256"): Merge this ...
8880         (define_insn "sse4_1_ptest"): And this ...
8881         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8882
8883 2015-08-05  Richard Biener  <rguenther@suse.de>
8884
8885         PR tree-optimization/67109
8886         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8887         against too big groups.  Print whether this is a load or store
8888         group.  Rename from ...
8889         (vect_analyze_group_access): ... this which is now a wrapper
8890         dissolving an invalid group.
8891         (vect_analyze_data_ref_accesses): Print whether this is a load
8892         or store group.
8893
8894 2015-08-05  Richard Biener  <rguenther@suse.de>
8895
8896         PR middle-end/67107
8897         * match.pd: Guard const_binop result checking against NULL_TREE
8898         result.
8899
8900 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
8901
8902         * cse.c (cse_insn): Restoring old behaviour for src_eqv
8903          when dest and value in the REG_EQUAL are same and dest
8904          is STRICT_LOW_PART.
8905
8906 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
8907
8908         * config/moxie/moxie.h (PRINT_OPERAND,
8909           PRINT_OPERAND_ADDRESS): Remove macros.
8910         * config/moxie/moxie-protos.h (moxie_print_operand,
8911           moxie_print_operand_address): Remove declaration.
8912         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8913           TARGET_PRINT_OPERAND_ADDRESS): Define.
8914           (moxie_print_operand, moxie_print_operand_address): Make static.
8915
8916 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8917
8918         PR target/66731
8919         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8920         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8921
8922 2015-08-04  Richard Biener  <rguenther@suse.de>
8923
8924         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8925         generated code.
8926         (dt_operand::gen_gimple_expr): Adjust.
8927
8928 2015-08-04  Richard Biener  <rguenther@suse.de>
8929
8930         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8931         bool compares on RHS.
8932         * match.pd: Add X ==/!= !X is false/true pattern.
8933
8934 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
8935
8936         * config/aarch64/aarch64.c: Change inner loop statement cost
8937         to be consistent with other targets.
8938
8939 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
8940
8941         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
8942         targets.
8943
8944 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8945
8946         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
8947         (machine_function): Remove pseudos field.
8948
8949 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8950
8951         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8952         Exit early and use target_option_current_node if processing current
8953         pragma.
8954
8955 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8956
8957         * doc/extend.texi (AArch64 Function Attributes): New node.
8958         (AArch64 Pragmas): Likewise.
8959
8960 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8961
8962         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
8963         Initialize simd builtins if TARGET_SIMD.
8964         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8965         Make sure that the builtins are initialized only once no matter how
8966         many times the function is called.
8967         (aarch64_init_builtins): Unconditionally initialize crc builtins.
8968         (aarch64_relayout_simd_param): New function.
8969         (aarch64_simd_expand_args): Use above during argument expansion.
8970         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
8971         simd builtins if TARGET_SIMD.
8972         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
8973         prototype.
8974         (aarch64_relayout_simd_types): Likewise.
8975
8976 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8977
8978         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
8979         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
8980         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
8981         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
8982         static keyword.
8983         (aarch64_reset_previous_fndecl): New function.
8984         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
8985         the string.
8986         * config/aarch64/aarch64-c.c: New file.
8987         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
8988         Push and pop options at beginning and end.  Remove ifdef
8989         __ARM_FEATURE_CRC32.
8990         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
8991         Add pragma +nothing+simd and +nothing+crypto where appropriate.
8992         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
8993         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
8994         Define prototype.
8995         (aarch64_register_pragmas): Likewise.
8996         (aarch64_reset_previous_fndecl): Likewise.
8997         (aarch64_process_target_attr): Likewise.
8998         (aarch64_override_options_internal): Likewise.
8999
9000 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9001
9002         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9003         New function.
9004         (aarch64_can_inline_p): Likewise.
9005         (TARGET_CAN_INLINE_P): Define.
9006
9007 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9008
9009         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9010         Remove static.  Handle OPT_mgeneral_regs_only,
9011         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9012         OPT_momit_leaf_frame_pointer.
9013         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9014         (aarch64_attr_opt_type): New enum.
9015         (aarch64_attribute_info): New struct.
9016         (aarch64_handle_attr_arch): New function.
9017         (aarch64_handle_attr_cpu): Likewise.
9018         (aarch64_handle_attr_tune): Likewise.
9019         (aarch64_handle_attr_isa_flags): Likewise.
9020         (aarch64_attributes): New table.
9021         (aarch64_process_one_target_attr): New function.
9022         (num_occurences_in_str): Likewise.
9023         (aarch64_process_target_attr): Likewise.
9024         (aarch64_option_valid_attribute_p): Likewise.
9025         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9026         * config/aarch64/aarch64-protos.h: Include input.h
9027         (aarch64_handle_option): Declare prototype.
9028
9029 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9030
9031         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9032         * config/aarch64/aarch64.c: Include target-globals.h
9033         (aarch64_previous_fndecl): New variable.
9034         (aarch64_set_current_function): New function.
9035         (TARGET_SET_CURRENT_FUNCTION): Define.
9036
9037 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9038
9039         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9040         (explicit_arch): Likewise.
9041         (x_aarch64_isa_flags): Likewise.
9042         (mgeneral-regs-only): Mark as Save.
9043         (mfix-cortex-a53-835769): Likewise.
9044         (mcmodel=): Likewise.
9045         (mstrict-align): Likewise.
9046         (momit-leaf-frame-pointer): Likewise.
9047         (mtls-dialect): Likewise.
9048         (master=): Likewise.
9049         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9050         (aarch64_isa_flags): Remove extern declaration.
9051         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9052         to indicate success or failure.
9053         (aarch64_validate_march): Likewise.
9054         (aarch64_validate_mtune): Likewise.
9055         (aarch64_isa_flags): Delete.
9056         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9057         instead of aarch64_isa_flags.
9058         (aarch64_get_tune_cpu): New function.
9059         (aarch64_get_arch): Likewise.
9060         (aarch64_override_options): Use above and set up explicit_tune_core
9061         and explicit_arch.
9062         (aarch64_print_extension): Move earlier in file.  Add isa_flags
9063         argument and use that instead of the global aarch64_isa_flags.
9064         (aarch64_option_save): New function.
9065         (aarch64_option_restore): Likewise.
9066         (aarch64_option_print): Likewise.
9067         (aarch64_declare_function_name): Likewise.
9068         (aarch64_start_file): Delete.
9069         (TARGET_ASM_FILE_START): Do not define.
9070         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9071         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9072         Declare prototype.
9073
9074 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9075
9076         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9077         flag_omit_leaf_frame_pointer to 2.
9078
9079 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9080
9081         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9082         define to 0 or 1.
9083         (TARGET_FIX_ERR_A53_835769): New macro.
9084         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9085         handling of opts->x_aarch64_fix_a53_err835769.
9086         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9087         than aarch64_fix_a53_err835769.
9088         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9089         * config/aarch64/aarch64-linux.h: Likewise.
9090
9091 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
9092
9093         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9094         ix86_expand_int_movcc as boolean.
9095
9096 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9097
9098         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9099         (aarch64_cpu_string): Likewise.
9100         (aarch64_tune_string): Likewise.
9101         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9102         (aarch64_parse_extension): Return aarch64_parse_opt_result.
9103         Add extra argument to put result into.
9104         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
9105         (aarch64_parse_cpu): Add arguments to put results into. Return
9106         aarch64_parse_opt_result.
9107         (aarch64_parse_tune): Likewise.
9108         (aarch64_override_options_after_change_1): New function.
9109         (aarch64_override_options_internal): New function.
9110         (aarch64_validate_mcpu): Likewise.
9111         (aarch64_validate_march): Likewise.
9112         (aarch64_validate_mtune): Likewise.
9113         (aarch64_override_options): Update to reflect above changes.
9114         Move some logic into aarch64_override_options_internal.
9115         Initialize target_option_default_node and target_option_current_node.
9116         (aarch64_override_options_after_change): Move logic into
9117         aarch64_override_options_after_change_1 and call it with global_options.
9118         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9119         flag values from that.
9120
9121 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9122
9123         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9124         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9125         * config/aarch64/aarch64.c (struct processor): Add arch field.
9126         (all_architectures): Handle above, move above all_cores.
9127         (all_cores): Handle above.
9128         (aarch64_parse_arch): Handle above changes.
9129         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9130         above.  Update comments.
9131         (armv8.1-a): Likewise.
9132         * config/aarch64/aarch64-cores.def: Update according to above.
9133         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9134         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9135         aarch64_arch_driver_info.
9136
9137 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9138
9139         * config/aarch64/aarch64.c (struct processor): Add ident field.
9140         Rename core sched_core.
9141         (all_cores): Handle above changes.
9142         (all_architectures): Likewise.
9143         (aarch64_parse_arch): Likewise.
9144         (aarch64_override_options): Likewise.
9145
9146 2015-08-04  Richard Biener  <rguenther@suse.de>
9147
9148         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9149         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9150         comparisons embedded in [VEC_]COND_EXPRs.
9151
9152 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
9153
9154         * tree-if-conv.c: Fix various typos in comments.
9155         * tree-vect-stmts.c: Likewise.
9156
9157 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9158
9159         PR tree-optimization/67043
9160         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9161         preheader after hoisting invariant in it.
9162         (find_defs): Force recomputation of all luids.
9163
9164 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
9165
9166         * config/rs6000/htm.md (tabort.): Restrict the source operand to
9167         using a base register.
9168
9169 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
9170
9171         * main.c (main): Pass in NULL for toplev's external_timer.
9172         * timevar.c: Include coretypes.h.
9173         (class timer::named_items): New.
9174         (timer::named_items::named_items): New.
9175         (timer::named_items::~named_items): New.
9176         (timer::named_items::push): New.
9177         (timer::named_items::pop): New.
9178         (timer::named_items::print): New.
9179         (timer::timer): Initialize field "m_jit_client_items".
9180         (timer::~timer): New.
9181         (timer::push): Move bulk of implementation to...
9182         (timer::push_internal): ...here.  New function.
9183         (timer::pop): Move bulk of implementation to...
9184         (timer::pop_internal): ...here.  New function.
9185         (timer::push_client_item): New.
9186         (timer::pop_client_item): New.
9187         (timer::print_row): New function, taken from timer::print.
9188         (timer::print): Print "GCC items" header if we also have client
9189         items.  Move row-printing to timer::print_row.  Print any client
9190         items.
9191         (timer::get_topmost_item_name): New method.
9192         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9193         (TV_JIT_CLIENT_CODE): New.
9194         * timevar.h (timer::push_client_item): New declaration.
9195         (timer::pop_client_item): New declaration.
9196         (timer::get_topmost_item_name): New method.
9197         (timer::push_internal): New declaration.
9198         (timer::pop_internal): New declaration.
9199         (timer::print_row): New declaration.
9200         (timer::named_items): New declaration.
9201         (timer::m_jit_client_items): New field.
9202         (timer): Add friend class named_items.
9203         (auto_timevar::auto_timevar): Add timer param.
9204         (auto_timevar::~auto_timevar): Use field "m_timer".
9205         (auto_timevar::m_timer): New field.
9206         * toplev.c (initialize_rtl): Add g_timer as param when
9207         constructing auto_timevar instance.
9208         (toplev::toplev): Add "external_timer" param, and use it to
9209         initialize the "g_timer" global if non-NULL.
9210         (toplev::~toplev): If this created "g_timer", delete it.
9211         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9212         with "external_timer" timer *.
9213
9214 2015-08-03  Alexander Basov <coohpt@gmail.com>
9215
9216         PR middle-end/64744
9217         PR middle-end/48470
9218         PR middle-end/43404
9219         * cfgexpand.c (expand_one_var): Add check if stack is going to
9220         be used in naked function.
9221         * expr.c (expand_expr_addr_expr_1): Remove excess checking
9222         whether expression should not reside in MEM.
9223         * function.c (use_register_for_decl): Do not use registers for
9224         non-register things (volatile, float, BLKMode) in naked functions.
9225
9226 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
9227
9228         PR target/67060
9229         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9230         Adjust splits to match new pattern.
9231
9232 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9233
9234         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9235         (VEC_M): Likewise.
9236         (VEC_N): Likewise.
9237         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9238         point in VSX registers.
9239
9240         * config/rs6000/constraints.md (wb constraint): Document unused
9241         w<x> constraint.
9242         (we constraint): Likewise.
9243         (wo constraint): Likewise.
9244         (wp constraint): New constraint for IEEE 128-bit floating point in
9245         VSX registers.
9246         (wq constraint): Likewise.
9247
9248         * config/rs6000/predicates.md (easy_fp_constant): Add support for
9249         IEEE 128-bit floating point in VSX registers.
9250         (easy_scalar_constant): Likewise.
9251
9252         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9253         constraints (wp, wq) for IEEE 128-bit floating point in VSX
9254         registers.
9255         (rs6000_init_hard_regno_mode_ok): Likewise.
9256
9257         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9258         floating point in VSX registers.
9259         (VSX_L): Likewise.
9260         (VSX_M): Likewise.
9261         (VSX_M2): Likewise.
9262         (VSm): Likewise.
9263         (VSs): Likewise.
9264         (VSr): Likewise.
9265         (VSa): Likewise.
9266         (VSv): Likewise.
9267         (vsx_le_permute_<mode>): Add support to properly swap bytes for
9268         IEEE 128-bit floating point in VSX registers on little endian.
9269         (vsx_le_undo_permute_<mode>): Likewise.
9270         (vsx_le_perm_load_<mode>): Likewise.
9271         (vsx_le_perm_store_<mode>): Likewise.
9272         (splitters for IEEE 128-bit fp moves): Likewise.
9273
9274         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9275         wq constraints.
9276
9277         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9278         floating point in VSX registers.
9279         (VM2): Likewise.
9280
9281         * doc/md.text (Machine Constraints): Document wp and wq
9282         constraints on PowerPC.
9283
9284 2015-08-03  Jeff Law  <law@redhat.com>
9285
9286         PR middle-end/66314
9287         PR gcov-profile/66899
9288         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9289         iterate over the jump threading paths when an element in the
9290         jump threading paths array is eliminated.
9291
9292 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
9293
9294         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9295
9296 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
9297
9298         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9299         is_use_properly_guarded the variable def_preds.  Free its
9300         contents before returning.
9301         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9302         (is_use_properly_guarded): Replace local variable def_preds with
9303         a parameter.  Adjust accordingly.  Only update *def_preds if it's
9304         the empty vector.
9305
9306 2015-08-03  Richard Biener  <rguenther@suse.de>
9307
9308         * genmatch.c (simplify::for_subst_vec): New member.
9309         (binary_ok): New helper for for lowering.
9310         (lower_for): Delay substituting operators into result expressions
9311         if we can merge the results eventually again.
9312         (capture_info::walk_result): Adjust for user_id appearing as
9313         result expression operator.
9314         (expr::gen_transform): Likewise.
9315         (dt_simplify::gen_1): Likewise.
9316         (dt_simplify::gen): Pass not substituted operators to tail
9317         functions or initialize local variable with it.
9318         (decision_tree::gen): Adjust function signature.
9319         * match.pd: Fix tests against global code and add default
9320         cases to switch stmts.
9321
9322 2015-08-03  Richard Biener  <rguenther@suse.de>
9323
9324         * genmatch.c (dt_simplify::gen): Create captures array
9325         with an initializer.
9326
9327 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9328
9329         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9330         the host compiler is affected by placement new aliasing bug.
9331         * configure: Regenerate.
9332         * Makefile.in (ALIASING_FLAGS): New variable.
9333         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9334
9335 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9336
9337         PR target/66731
9338         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9339         (negmulsf3_vfp): Likewise.
9340         (muldf3negdf_vfp): Disable for -frounding-math.
9341         (mulsf3negsf_vfp): Likewise.
9342         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9343         fix MULT cost with -frounding-math.
9344
9345 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9346
9347         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9348         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9349         explicit.  Prefer to add the flag whenever possible.
9350         (noce_process_if_block): Try noce_try_store_flag_constants before
9351         noce_try_cmove.
9352
9353 2015-08-03  Richard Biener  <rguenther@suse.de>
9354
9355         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9356         New hash-map to record equivalent transforms.
9357         (dt_node::analyze): Populate the equivalent transforms hash-map.
9358         (dt_simplify::info): Add reference to hash-map entry.
9359         (dt_simplify::gen): If we have split out a function for the
9360         transform, generate a call to it.
9361         (sinfo_hashmap_traits::hash): New function.
9362         (compare_op): New helper function for ...
9363         (sinfo_hashmap_traits::equal_keys): ... this new function.
9364         (decision_tree::gen): Split out common equivalent transforms
9365         into functions.
9366
9367 2015-08-03  Richard Biener  <rguenther@suse.de>
9368
9369         * gimple-fold.c (fold_gimple_assign): Remove folding of
9370         the comparison in COND_EXPRs.
9371
9372 2015-08-03  Richard Biener  <rguenther@suse.de>
9373
9374         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9375         on the rhs of assignments first simplify the embedded
9376         GENERIC condition.
9377
9378 2015-08-03  Richard Biener  <rguenther@suse.de>
9379
9380         PR tree-optimization/66917
9381         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9382         field.
9383         (DR_VECT_AUX): New macro.
9384         (set_dr_misalignment): Adjust.
9385         (dr_misalignment): Likewise.
9386         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9387         Compute whether the base is at least element aligned.
9388         * tree-vect-stmts.c (ensure_base_align): Adjust.
9389         (vectorizable_store): If the base is not element aligned
9390         preserve alignment of the original access if misalignment is unknown.
9391         (vectorizable_load): Likewise.
9392
9393 2015-08-02  Martin Sebor  <msebor@redhat.com>
9394
9395         * c-family/c.opt (-Wframe-address): New warning option.
9396         * doc/invoke.texi (Wframe-address): Document it.
9397         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9398         Clarify possible effects of calling the functions with non-zero
9399         arguments and mention -Wframe-address.
9400         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9401
9402 2015-08-01  Michael Collison  <michael.collison@linaro.org
9403             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9404
9405         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9406         (*arm_umin_cmp): Likewise.
9407
9408 2015-08-01  Caroline Tice  <cmtice@google.com>
9409
9410         PR 66521
9411         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9412         global variables.
9413         (vtbl_find_mangled_name):  New function.
9414         (vtbl_register_mangled_name):  New function.
9415         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
9416         mangled name in mangled name vectors.
9417         (find_or_create_vtbl_map_node):  Ditto.
9418         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
9419         update recursion_depth on function entry; pass it to every recursive
9420         call; automatically exit if depth > 25 (give up looking at that point).
9421         (verify_bb_vtables):  Initialize recursion_depth and pass it to
9422         var_is_used_for_virtual_call_p.
9423         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9424         global variable decls.
9425         (vtbl_register_mangled_name): New extern function decl.
9426
9427 2015-08-01  Tom de Vries  <tom@codesourcery.com>
9428
9429         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9430         function.
9431         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9432         Declare.
9433         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9434         operation_no_trapping_overflow.  Allow non-overflow operations.
9435         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9436         operations.
9437
9438 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9439
9440         PR target/67049
9441         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9442
9443 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9444
9445         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9446         Enable for TARGET_32BIT.
9447         (*if_move_neg): Likewise.
9448
9449 2015-07-31  Nick Clifton  <nickc@redhat.com>
9450
9451         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9452         Returns true for __model__.
9453         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9454
9455 2015-07-31  Alan Modra  <amodra@gmail.com>
9456
9457         PR target/66870
9458         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9459         (rs6000_emit_prologue): Set it.
9460         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9461
9462 2015-07-31  Richard Biener  <rguenther@suse.de>
9463
9464         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9465         -> X == (C1 ^ C2) which is already implemented in match.pd.
9466         Remove redundant dispatching to fold_relational_const.
9467         Move unordered self and NaN compares ...
9468         * match.pd: ... as patterns here.  Remove some stray captures
9469         and add a comment.
9470
9471 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
9472
9473         * config/i386/i386.c
9474         (bdesc_special_args): Convert mask type from signed to unsigned for
9475         masked builtins.
9476         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9477         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9478         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9479         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9480         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9481         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9482         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9483         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9484         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9485         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9486         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9487         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9488         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9489         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9490         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9491         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9492         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9493         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9494         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9495         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9496         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9497         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9498         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9499         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9500         * config/i386/i386-builtin-types.def
9501         (V16QI_FTYPE_V16SI): Remove.
9502         (V8DF_FTYPE_V8SI): Ditto.
9503         (V8HI_FTYPE_V8DI): Ditto.
9504         (V8SI_FTYPE_V8DI): Ditto.
9505         (V8SF_FTYPE_V8DF): Ditto.
9506         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9507         (V16HI_FTYPE_V16SI): Ditto.
9508         (V16SF_FTYPE_V16HI): Ditto.
9509         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9510         (V16SF_FTYPE_V16SI): Ditto.
9511         (V4DI_FTYPE_V4DI): Ditto.
9512         (V16SI_FTYPE_V16SF): Ditto.
9513         (V16SF_FTYPE_FLOAT): Ditto.
9514         (V8DF_FTYPE_DOUBLE): Ditto.
9515         (V8DI_FTYPE_INT64): Ditto.
9516         (V8DI_FTYPE_V4DI): Ditto.
9517         (V16QI_FTYPE_V8DI): Ditto.
9518         (UINT_FTYPE_V4SF): Ditto.
9519         (UINT64_FTYPE_V4SF): Ditto.
9520         (UINT_FTYPE_V2DF): Ditto.
9521         (UINT64_FTYPE_V2DF): Ditto.
9522         (V16SI_FTYPE_V16SI): Ditto.
9523         (V8DI_FTYPE_V8DI): Ditto.
9524         (V16SI_FTYPE_PV4SI): Ditto.
9525         (V16SF_FTYPE_PV4SF): Ditto.
9526         (V8DI_FTYPE_PV2DI): Ditto.
9527         (V8DF_FTYPE_PV2DF): Ditto.
9528         (V4DI_FTYPE_PV2DI): Ditto.
9529         (V4DF_FTYPE_PV2DF): Ditto.
9530         (V16SI_FTYPE_PV2SI): Ditto.
9531         (V16SF_FTYPE_PV2SF): Ditto.
9532         (V8DI_FTYPE_PV4DI): Ditto.
9533         (V8DF_FTYPE_PV4DF): Ditto.
9534         (V8SF_FTYPE_FLOAT): Ditto.
9535         (V4SF_FTYPE_FLOAT): Ditto.
9536         (V4DF_FTYPE_DOUBLE): Ditto.
9537         (V8SF_FTYPE_PV4SF): Ditto.
9538         (V8SI_FTYPE_PV4SI): Ditto.
9539         (V4SI_FTYPE_PV2SI): Ditto.
9540         (V8SF_FTYPE_PV2SF): Ditto.
9541         (V8SI_FTYPE_PV2SI): Ditto.
9542         (V16SF_FTYPE_PV8SF): Ditto.
9543         (V16SI_FTYPE_PV8SI): Ditto.
9544         (V8DI_FTYPE_V8SF): Ditto.
9545         (V4DI_FTYPE_V4SF): Ditto.
9546         (V2DI_FTYPE_V4SF): Ditto.
9547         (V64QI_FTYPE_QI): Ditto.
9548         (V32HI_FTYPE_HI): Ditto.
9549         (V8UHI_FTYPE_V8UHI): Ditto.
9550         (V16UHI_FTYPE_V16UHI): Ditto.
9551         (V32UHI_FTYPE_V32UHI): Ditto.
9552         (V2UDI_FTYPE_V2UDI): Ditto.
9553         (V4UDI_FTYPE_V4UDI): Ditto.
9554         (V8UDI_FTYPE_V8UDI): Ditto.
9555         (V4USI_FTYPE_V4USI): Ditto.
9556         (V8USI_FTYPE_V8USI): Ditto.
9557         (V16USI_FTYPE_V16USI): Ditto.
9558         (V2DF_FTYPE_V2DF_UINT64): Ditto.
9559         (V2DI_FTYPE_V2DF_V2DF): Ditto.
9560         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9561         (V8DF_FTYPE_V8DF_V8DI): Ditto.
9562         (V4SF_FTYPE_V4SF_UINT64): Ditto.
9563         (V4SI_FTYPE_V4SF_V4SF): Ditto.
9564         (V16SF_FTYPE_V16SF_V16SI): Ditto.
9565         (V64QI_FTYPE_V32HI_V32HI): Ditto.
9566         (V32HI_FTYPE_V16SI_V16SI): Ditto.
9567         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9568         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9569         (V32HI_FTYPE_V64QI_V64QI): Ditto.
9570         (V32HI_FTYPE_V32HI_V32HI): Ditto.
9571         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9572         (V16SI_FTYPE_V16SI_V4SI): Ditto.
9573         (V16SI_FTYPE_V16SI_V16SI): Ditto.
9574         (V16SI_FTYPE_V32HI_V32HI): Ditto.
9575         (V16SI_FTYPE_V16SI_SI): Ditto.
9576         (V8DI_FTYPE_V8DI_V8DI): Ditto.
9577         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9578         (V8DI_FTYPE_V16SI_V16SI): Ditto.
9579         (V8DI_FTYPE_V8DI_V2DI): Ditto.
9580         (QI_FTYPE_QI): Ditto.
9581         (SI_FTYPE_SI): Ditto.
9582         (DI_FTYPE_DI): Ditto.
9583         (QI_FTYPE_QI_QI): Ditto.
9584         (QI_FTYPE_QI_INT): Ditto.
9585         (HI_FTYPE_HI_INT): Ditto.
9586         (SI_FTYPE_SI_INT): Ditto.
9587         (DI_FTYPE_DI_INT): Ditto.
9588         (HI_FTYPE_V16QI_V16QI): Ditto.
9589         (SI_FTYPE_V32QI_V32QI): Ditto.
9590         (DI_FTYPE_V64QI_V64QI): Ditto.
9591         (QI_FTYPE_V8HI_V8HI): Ditto.
9592         (HI_FTYPE_V16HI_V16HI): Ditto.
9593         (SI_FTYPE_V32HI_V32HI): Ditto.
9594         (QI_FTYPE_V4SI_V4SI): Ditto.
9595         (QI_FTYPE_V8SI_V8SI): Ditto.
9596         (QI_FTYPE_V2DI_V2DI): Ditto.
9597         (QI_FTYPE_V4DI_V4DI): Ditto.
9598         (QI_FTYPE_V8DI_V8DI): Ditto.
9599         (HI_FTYPE_V16SI_V16SI): Ditto.
9600         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9601         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9602         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9603         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9604         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9605         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9606         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9607         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9608         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9609         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9610         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9611         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9612         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9613         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9614         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9615         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9616         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9617         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9618         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9619         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9620         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9621         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9622         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9623         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9624         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9625         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9626         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9627         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9628         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9629         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9630         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9631         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9632         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9633         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9634         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9635         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9636         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9637         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9638         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9639         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9640         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9641         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9642         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9643         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9644         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9645         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9646         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9647         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9648         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9649         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9650         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9651         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9652         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9653         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9654         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9655         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9656         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9657         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9658         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9659         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9660         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9661         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9662         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9663         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9664         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9665         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9666         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9667         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9668         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9669         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9670         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9671         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9672         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9673         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9674         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9675         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9676         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9677         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9678         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9679         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9680         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9681         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9682         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9683         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9684         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9685         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9686         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9687         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9688         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9689         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9690         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9691         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9692         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9693         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9694         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9695         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9696         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9697         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9698         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9699         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9700         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9701         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9702         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9703         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9704         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9705         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9706         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9707         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9708         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9709         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9710         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9711         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9712         (HI_FTYPE_HI): Ditto.
9713         (HI_FTYPE_V16QI): Ditto.
9714         (SI_FTYPE_V32QI): Ditto.
9715         (DI_FTYPE_V64QI): Ditto.
9716         (QI_FTYPE_V8HI): Ditto.
9717         (HI_FTYPE_V16HI): Ditto.
9718         (SI_FTYPE_V32HI): Ditto.
9719         (QI_FTYPE_V4SI): Ditto.
9720         (QI_FTYPE_V8SI): Ditto.
9721         (HI_FTYPE_V16SI): Ditto.
9722         (QI_FTYPE_V2DI): Ditto.
9723         (QI_FTYPE_V4DI): Ditto.
9724         (QI_FTYPE_V8DI): Ditto.
9725         (V16QI_FTYPE_HI): Ditto.
9726         (V32QI_FTYPE_SI): Ditto.
9727         (V64QI_FTYPE_DI): Ditto.
9728         (V8HI_FTYPE_QI): Ditto.
9729         (V16HI_FTYPE_HI): Ditto.
9730         (V32HI_FTYPE_SI): Ditto.
9731         (V4SI_FTYPE_QI): Ditto.
9732         (V4SI_FTYPE_HI): Ditto.
9733         (V8SI_FTYPE_QI): Ditto.
9734         (V8SI_FTYPE_HI): Ditto.
9735         (V2DI_FTYPE_QI): Ditto.
9736         (V4DI_FTYPE_QI): Ditto.
9737         (HI_FTYPE_HI_HI): Ditto.
9738         (SI_FTYPE_SI_SI): Ditto.
9739         (DI_FTYPE_DI_DI): Ditto.
9740         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9741         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9742         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9743         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9744         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9745         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9746         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9747         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9748         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9749         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9750         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9751         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9752         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9753         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9754         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9755         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9756         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9757         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9758         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9759         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9760         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9761         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9762         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9763         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9764         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9765         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9766         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9767         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9768         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9769         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9770         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9771         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9772         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9773         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9774         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9775         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9776         (V16SI_FTYPE_HI): Ditto.
9777         (V8DI_FTYPE_QI): Ditto.
9778         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9779         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9780         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9781         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9782         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9783         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9784         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9785         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9786         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9787         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9788         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9789         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9790         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9791         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9792         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9793         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9794         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9795         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9796         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9797         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9798         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9799         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9800         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9801         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9802         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9803         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9804         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9805         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9806         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9807         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9808         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9809         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9810         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9811         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9812         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9813         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9814         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9815         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9816         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9817         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9818         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9819         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9820         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9821         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9822         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9823         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9824         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9825         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9826         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9827         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9828         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9829         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9830         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9831         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9832         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9833         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9834         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9835         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9836         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9837         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9838         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9839         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9840         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9841         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9842         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9843         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9844         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9845         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9846         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9847         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9848         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9849         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9850         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9851         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9852         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9853         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9854         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9855         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9856         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9857         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9858         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9859         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9860         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9861         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9862         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9863         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9864         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9865         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9866         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9867         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9868         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9869         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9870         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9871         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9872         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9873         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9874         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9875         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9876         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9877         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9878         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9879         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9880         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9881         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9882         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9883         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9884         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9885         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9886         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9887         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9888         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9889         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9890         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9891         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9892         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9893         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9894         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9895         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9896         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9897         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9898         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9899         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9900         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9901         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9902         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9903         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9904         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9905         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9906         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9907         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9908         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9909         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9910         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9911         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9912         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9913         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9914         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9915         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9916         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9917         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9918         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9919         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9920         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9921         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9922         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9923         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9924         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9925         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9926         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9927         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9928         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9929         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9930         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9931         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9932         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9933         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9934         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9935         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9936         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9937         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9938         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
9939         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
9940         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
9941         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
9942         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
9943         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
9944         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
9945         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
9946         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
9947         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
9948         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
9949         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
9950         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
9951         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
9952         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
9953         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
9954         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
9955         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
9956         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
9957         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
9958         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
9959         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
9960         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
9961         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
9962         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
9963         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
9964         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
9965         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
9966         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
9967         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
9968         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
9969         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
9970         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
9971         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
9972         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
9973         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
9974         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
9975         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
9976         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
9977         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
9978         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
9979         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
9980         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
9981         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
9982         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
9983         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
9984         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
9985         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
9986         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
9987         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
9988         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
9989         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
9990         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
9991         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
9992         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
9993         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
9994         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
9995         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
9996         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
9997         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
9998         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
9999         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10000         (QI_FTYPE_V8DF_INT_QI): Ditto.
10001         (QI_FTYPE_V4DF_INT_QI): Ditto.
10002         (QI_FTYPE_V2DF_INT_QI): Ditto.
10003         (HI_FTYPE_V16SF_INT_HI): Ditto.
10004         (QI_FTYPE_V8SF_INT_QI): Ditto.
10005         (QI_FTYPE_V4SF_INT_QI): Ditto.
10006         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10007
10008 2015-07-31  Richard Biener  <rguenther@suse.de>
10009
10010         * gimple-fold.c (fold_gimple_assign): Remove folding of
10011         GIMPLE_BINARY_RHS.
10012
10013 2015-07-31  Tom de Vries  <tom@codesourcery.com>
10014
10015         PR tree-optimization/66846
10016         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10017         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10018         (expand_omp_target) [ENABLE_CHECKING]: Same.
10019         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10020         cfun if !LOOPS_NEED_FIXUP.
10021         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
10022         that omp_for already has its own loop struct.
10023         * tree-parloops.c (create_phi_for_local_result)
10024         (create_call_for_reduction): Handle simple latch bb.
10025         (create_parallel_loop): Add simple latch bb to preserve
10026         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
10027         (gen_parallel_loop): Remove call to cancel_loop_tree.
10028         (parallelize_loops): Skip loops that are inner loops of parallelized
10029         loops.
10030         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10031         verify_loop_structure.
10032
10033 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10034
10035         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10036         * config/v850/v850.md (RV_REGNUM): New constants.
10037         * config/v850/v850.c (v850_libcall_value): New functions.
10038         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10039         (TARGET_LIBCALL_VALUE): Define.
10040
10041 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
10042
10043         * rtl.h (lowpart_subreg): Move in file.
10044         * loop-iv.c (lowpart_subreg): Move to...
10045         * simplify-rtx.c (lowpart_subreg): ...here.
10046           (simplify_binary_operation_1): Use lowpart_subreg instead of
10047           simplify_gen_subreg.
10048         * expr.c (expand_expr_real_2): Ditto.
10049         * emit-rtl.c (gen_lowpart_common): Ditto.
10050         * combine.c (gen_lowpart_for_combine): Ditto.
10051         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10052           expand_debug_source_expr): Ditto.
10053
10054 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
10055
10056         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10057         (expand_builtin_atomic_clear): Remove support for atomic_clear
10058         pattern.
10059
10060 2015-07-30  Richard Biener  <rguenther@suse.de>
10061
10062         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10063         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10064         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
10065         redundant operand canonicalization.
10066
10067 2015-07-30  David Sherwood  <david.sherwood@arm.com>
10068
10069         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10070         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10071         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10072         * config/arm/arm.c (neon_valid_immediate): Likewise.
10073         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10074         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10075         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10076         (expand_vec_perm_vpshufb2_vpermq): Likewise.
10077         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10078         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10079         * config/i386/sse.md
10080         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10081         (*ssse3_palignr<mode>_perm): Likewise.
10082         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10083         * config/spu/spu.c (arith_immediate_p): Likewise.
10084         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10085         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10086
10087 2015-07-30  Richard Biener  <rguenther@suse.de>
10088
10089         * genmatch.c (decision_tree::gen_gimple): Merge with ...
10090         (decision_tree::gen_generic): ... this into ...
10091         (decision_tree::gen): ... this.
10092         (main): Adjust callers.
10093
10094 2015-07-30  Richard Biener  <rguenther@suse.de>
10095
10096         * genmatch.c (verbose): New global.
10097         (warning_at): Add overload with source_location.
10098         (capture_info::capture_info): Add bool whether generating gimple
10099         or generic.  Add gimple member.
10100         (capture_info::cinfo): Add capture member.
10101         (capture_info::walk_match): Record capture.  Warn on
10102         non-captured leafs.
10103         (capture_info::walk_c_expr): Add more fragments captures cannot
10104         escape through.  Warn on escaped captures.
10105         (dt_simplify::gen_1): Warn on operands we force to have no
10106         side-effects.
10107         (main): Initialize verbose.
10108         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10109
10110 2015-07-30  Richard Biener  <rguenther@suse.de>
10111
10112         PR middle-end/67053
10113         * match.pd: Allow both operands to independently have conversion
10114         when simplifying compares of addresses.
10115
10116 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
10117
10118         PR target/66217
10119         PR target/67045
10120         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10121         around those cases that need one.
10122
10123 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
10124
10125         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10126
10127 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10128
10129         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10130         New.  Copied from config/i386/gnu-user.h.
10131         (ASM_COMMENT_START): Likewise.
10132         (DBX_REGISTER_NUMBER): Likewise.
10133
10134 2015-07-29  Richard Biener  <rguenther@suse.de>
10135
10136         * gimple-fold.c (fold_gimple_cond): Remove.
10137         (fold_stmt_1): Do not call it.
10138
10139 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
10140
10141         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10142         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10143
10144         * config/aarch64/aarch64-modes.def: Add HFmode.
10145
10146         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10147         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10148
10149         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10150         aarch64_promoted_type): New.
10151
10152         (aarch64_float_const_representable_p): Disable HFmode.
10153         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10154         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10155         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10156
10157         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10158         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10159
10160         * config/aarch64/iterators.md (GPF_F16): New.
10161
10162 2015-07-29  Richard Biener  <rguenther@suse.de>
10163
10164         * match.pd: Merge address comparison patterns and make them
10165         handle some more cases.
10166
10167 2015-07-29  Richard Biener  <rguenther@suse.de>
10168
10169         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10170         (parser::parse_capture): Add bool argument on whether to reject
10171         unknown captures.
10172         (parser::parse_expr): Adjust.
10173         (parser::parse_op): Likewise.
10174         (parser::parse_pattern): Likewise.
10175
10176 2015-07-29  Richard Biener  <rguenther@suse.de>
10177
10178         * gimple-fold.c (has_use_on_stmt): New function.
10179         (replace_stmt_with_simplification): Use it to allow
10180         abnormals originally referenced in the stmt.
10181         (fold_stmt_1): Canonicalize operand order.
10182
10183 2015-07-28  David Sherwood  <david.sherwood@arm.com>
10184
10185         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10186         GET_MODE_INNER unconditionally.
10187         * config/spu/spu.c (arith_immediate_p): Likewise.
10188         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10189         * expmed.c (synth_mult): Remove check for VOIDmode result from
10190         GET_MODE_INNER.
10191         (expand_mult_const): Likewise.
10192         * fold-const.c (fold_binary_loc): Replace call to element_precision
10193         with call to GET_MODE_PRECISION.
10194         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10195         m->name.
10196         (emit_mode_inner): Likewise.
10197         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10198         result check.
10199         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10200         (GET_MODE_UNIT_PRECISION): Likewise.
10201         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10202         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10203         * stor-layout.c (bitwise_type_for_mode): Update assert.
10204         (element_precision): Remove.
10205
10206 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10207
10208         * target-insns.def (reload_load_address): New targetm instruction
10209         pattern.
10210         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10211
10212 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10213
10214         * target-insns.def (atomic_test_and_set): New targetm instruction
10215         pattern.
10216         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10217         HAVE_*/gen_* interface.
10218
10219 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10220
10221         * target-insns.def (can_extend, ptr_extend): New targetm instruction
10222         patterns.
10223         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10224         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10225         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10226         * rtlanal.c (nonzero_bits1): Likewise.
10227         (num_sign_bit_copies1): Likewise.
10228
10229 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10230
10231         * target-insns.def (eh_return): New targetm instruction pattern.
10232         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10233         interface.
10234         * function.c (thread_prologue_and_epilogue_insns): Remove
10235         preprocessor condition.
10236
10237 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10238
10239         * target-insns.def (indirect_jump): New targetm instruction pattern.
10240         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10241         interface.
10242
10243 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
10244
10245         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10246         instead of nonimmediate_operand.  Remove C condiition.
10247
10248 2015-07-28  Richard Biener  <rguenther@suse.de>
10249
10250         * match.pd: Add more simplification of address comparisons.
10251
10252 2015-07-28  Richard Biener  <rguenther@suse.de>
10253
10254         * match.pd: Re-order two cases in comparison with max/min
10255         value simplification to make it apply for bools.
10256
10257 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10258
10259         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10260         Handle simple SIGN_EXTEND or ZERO_EXTEND.
10261         (aarch64_rtx_costs): Properly strip extend or extract before
10262         passing down to rtx costs again.
10263
10264 2015-07-28  Nick Clifton  <nickc@redhat.com>
10265
10266         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10267         Optimizes the case where -mes0 is active and a constant symbolic
10268         address is used.
10269         * config/rl78/rl78-protos.h: Prototype the new function.
10270         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10271
10272 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10273
10274         * tree-parloops.c (reduc_stmt_res): New function.
10275         (initialize_reductions, add_field_for_reduction)
10276         (create_phi_for_local_result, create_loads_for_reductions)
10277         (create_stores_for_reduction, build_new_reduction): Handle case that
10278         reduc_stmt is a phi.
10279         (gather_scalar_reductions): Allow double_reduc reductions.
10280
10281 2015-07-28  Richard Biener  <rguenther@suse.de>
10282
10283         * fold-const.c (fold_comparison): Remove equality folding
10284         of decl addresses ...
10285         * match.pd: ... here and merge with existing pattern.
10286
10287 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10288
10289         PR tree-optimization/66828
10290         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10291         from int64_t to uint64_t.
10292
10293 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10294
10295         * opts-common.c (read_cmdline_option): List DriverOnly enum values
10296         as valid only in the error message of the driver, not in the
10297         messages of the language compilers.
10298
10299 2015-07-27  Tom de Vries  <tom@codesourcery.com>
10300
10301         * tree-parloops.c (gather_scalar_reductions): Simplify function
10302         structure.
10303
10304 2015-07-27  Marek Polacek  <polacek@redhat.com>
10305
10306         * ipa-devirt.c (types_same_for_odr): Fix typo.
10307
10308 2015-07-27  Jason Merrill  <jason@redhat.com>
10309
10310         PR debug/66468
10311         * dwarf2out.c (gen_inlined_subroutine_die): Check
10312         cgraph_function_possibly_inlined_p.
10313
10314 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10315
10316         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10317         Place integer variant first.
10318         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10319
10320 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10321
10322         PR/63870
10323         * config/arm/arm-builtins.c (enum arm_builtins):
10324         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10325         (ARM_BUILTIN_NEON_BASE): Rename macro to....
10326         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10327         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10328         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10329
10330 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
10331
10332         PR/63870
10333         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10334         Add qualifier_lane_index.
10335         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10336         (arm_getlane_qualifiers): Use qualifier_lane_index.
10337         (arm_lanemac_qualifiers): Rename to...
10338         (arm_mac_n_qualifiers): ...this.
10339         (LANEMAC_QUALIFIERS): Rename to...
10340         (MAC_N_QUALIFIERS): ...this.
10341         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10342         (arm_setlane_qualifiers): Use qualifier_lane_index.
10343         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10344         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10345         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10346         (arm_expand_neon_builtin): Handle qualifier_lane_index.
10347
10348         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10349         * config/arm/arm.c (bounds_check): Likewise, improve error message.
10350         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10351         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10352         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10353         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10354         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10355         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10356         qualifiers to TERNOP_IMM.
10357         (vdup_lane): Change qualifiers to GETLANE.
10358         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10359         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10360         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10361         vqdmlsl_n): Change qualifiers to MAC_N.
10362
10363         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10364         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10365         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10366         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10367         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10368         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10369         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10370         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10371         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10372         Remove call to neon_lane_bounds.
10373
10374 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
10375
10376         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10377         Place integer variant first.
10378
10379 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
10380
10381         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10382         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10383         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10384         for armv6kz targets.
10385         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10386         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10387         (FL_FOR_ARCH6ZK): Remove.
10388         (FL_FOR_ARCH6KZ): New.
10389         (arm_arch6zk): New declaration.
10390         * config/arm/arm-tables.opt: Regenerate.
10391         * config/arm/arm.c (arm_arch6kz): New.
10392         (arm_option_override): Set arm_arch6kz.
10393         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10394         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10395         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10396
10397 2015-07-27  Marek Polacek  <polacek@redhat.com>
10398
10399         PR c++/66555
10400         PR c/54979
10401         * doc/invoke.texi: Document -Wtautological-compare.
10402
10403 2015-07-27  Richard Biener  <rguenther@suse.de>
10404
10405         * genmatch.c (decision_tree::gen_gimple): Split out large
10406         subtrees into separate functions.
10407         (decision_tree::gen_generic): Likewise.
10408
10409 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
10410
10411         * config/alpha/alpha.c: Use SUBREG_P predicate.
10412         * config/alpha/predicates.md: Ditto.
10413
10414 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10415
10416         * config.host (s390*-*-*): Include driver-native.c only when
10417         building with s390* as host *and* target.
10418
10419 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
10420
10421         PR target/66930
10422         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10423         T bit register modified_between_p check.
10424
10425 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10426
10427         * config/i386/i386.c: Use SUBREG_P predicate.
10428         * config/i386/i386.md: Ditto.
10429         * config/i386/sse.md: Ditto.
10430         * config/i386/predicates.md: Ditto.
10431
10432 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10433
10434         PR target/67004
10435         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10436         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10437
10438 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10439
10440         * Makefile.in: Remove use of TREEBROWSER.
10441         * config.in: Regenerated.
10442         * configure: Regenerated.
10443         * configure.ac: Remove definition of TREEBROWSER.
10444         * tree-browser.c: Removed.
10445         * tree-browser.def: Removed.
10446
10447 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10448
10449         * graphite-scop-detection.c: Include gimple-pretty-print.h.
10450         (stmt_simple_for_scop_p): Print when a stmt is not handled in
10451         Graphite.
10452         (scopdet_basic_block_info): Print when a loop or bb cannot be
10453         represented in Graphite.
10454
10455 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10456
10457         PR target/66648
10458         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10459         execution guard when min_size is less than size_needed.
10460
10461 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
10462
10463         * doc/install.texi: Document supported versions of ISL.
10464
10465 2015-07-25  Jeff Law  <law@redhat.com>
10466
10467         Revert:
10468         PR lto/66752
10469         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10470         unable to find X NE 0 in the tables, return X as the simplified
10471         condition.
10472         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10473         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10474         to VISISTED_BBS.  */
10475         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10476         after removing the control flow statement and unnecessary edges.
10477
10478 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
10479
10480         Revert:
10481         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10482
10483         PR rtl-optimization/64164
10484         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10485         * tree-ssa-copyrename.c: Removed.
10486         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10487         -ftree-coalesce-vars.
10488         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10489         * common.opt (ftree-copyrename): Ignore.
10490         (ftree-coalesce-inlined-vars): Likewise.
10491         * doc/invoke.texi: Remove the ignored options above.
10492         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10493         * tree-ssa-coalesce.h: ... here.
10494         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10495         headers required by it.
10496         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10497         across variables when flag_tree_coalesce_vars.  Check register
10498         use and promoted modes to allow coalescing.  Moved to
10499         tree-ssa-coalesce.c.
10500         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10501         with its member functions to tree-ssa-coalesce.c.
10502         (var_map_base_init): Likewise.  Renamed to
10503         compute_samebase_partition_bases.
10504         (partition_view_normal): Drop want_bases parameter.
10505         (partition_view_bitmap): Likewise.
10506         * tree-ssa-live.h: Adjust declarations.
10507         * tree-ssa-coalesce.c: Include explow.h.
10508         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10509         default defs at the entry point.
10510         (dump_part_var_map): New.
10511         (compute_optimized_partition_bases): New, called by...
10512         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10513         of compute_samebase_partition_bases.  Adjust.
10514         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10515         * cfgexpand.c (leader_merge): New.
10516         (get_rtl_for_parm_ssa_default_def): New.
10517         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10518         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10519         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10520         redundant MEM attr setting.
10521         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10522         from...
10523         (expand_one_stack_var): ... this.  New wrapper to check and
10524         skip already expanded SSA partitions.
10525         (record_alignment_for_reg_var): New, factored out of...
10526         (expand_one_var): ... this.
10527         (expand_one_ssa_partition): New.
10528         (adjust_one_expanded_partition_var): New.
10529         (expand_one_register_var): Check and skip already expanded SSA
10530         partitions.
10531         (expand_used_vars): Don't create DECLs for anonymous SSA
10532         names.  Expand all SSA partitions, then adjust all SSA names.
10533         (pass::execute): Replace the loops that set
10534         SA.partition_to_pseudo from partition leaders and cleared
10535         DECL_RTL for multi-location variables, and that which used to
10536         rename vars and set attrs, with one that clears DECL_RTL and
10537         checks that PARMs and RESULTs default_defs match DECL_RTL.
10538         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10539         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10540         * explow.c (promote_ssa_mode): New.
10541         * explow.h (promote_ssa_mode): Declare.
10542         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10543         * function.c: Include cfgexpand.h.
10544         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10545         (use_register_for_parm_decl): Wrapper for the above to
10546         special-case the result_ptr.
10547         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10548         (split_complex_args): Take assign_parm_data_all argument.
10549         Pass it to rtl_for_parm.  Set up rtl and context for split
10550         args.
10551         (assign_parms_augmented_arg_list): Adjust.
10552         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10553         multiple locations.  Recognize split complex args.
10554         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10555         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10556         (assign_parm_setup_block): Prefer SSA-assigned location.
10557         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10558         if stack_parm is NULL.
10559         (assign_parm_setup_stack): Prefer SSA-assigned location.
10560         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10561         rtl before testing for pointer bounds.  Special-case result_ptr.
10562         (expand_function_start): Maybe reset DECL_RTL of result.
10563         Prefer SSA-assigned location for result and static chain.
10564         Factor out DECL_RESULT and SET_DECL_RTL.
10565         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10566         anonymous SSA names.  Use promote_ssa_mode.
10567         (get_temp_reg): Likewise.
10568         (remove_ssa_form): Adjust.
10569         * stor-layout.c (layout_decl): Don't set mem attributes of
10570         non-MEMs.
10571         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10572         and get its reg_usage for reg invalidation.
10573         (compute_bb_dataflow): Pass it insn.
10574         (emit_notes_in_bb): Likewise.
10575
10576 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
10577
10578         * config/i386/i386.c (ix86_va_start): Remove
10579         unneeded !TARGET_64BIT check.
10580         (ix86_gimplify_va_arg): Ditto.
10581
10582 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10583
10584         * graphite-sese-to-poly.c (build_poly_scop): Always call
10585         rewrite_commutative_reductions_out_of_ssa.
10586
10587 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10588
10589         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10590         flag_associative_math to FLOAT_TYPE_P.  Honour
10591         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10592
10593 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10594
10595         PR c++/64079
10596         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10597         and "%qD" in warning_at instead of "%q+D" in warning.
10598
10599 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10600
10601         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10602         (ix86_function_abi): Cleanup.
10603
10604 2015-07-24  Michael Darling  <darlingm@gmail.com>
10605
10606         PR other/66259
10607         * acinclude.m4: Reflects renaming of configure.in to configure.ac
10608         * configure: Likewise
10609         * configure.ac: Likewise
10610         * doc/install.texi: Likewise
10611         * doc/tm.texi: Likewise
10612         * doc/tm.texi.in: Likewise
10613
10614 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10615
10616         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10617         manually swapping values.
10618         * cse.c (fold_rtx): Likewise.
10619         * lra-eliminations.c (form_sum): Likewise.
10620
10621 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
10622
10623         PR target/64003
10624         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10625         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10626         (*jcc_1, *jcc_2, jump, simple_return_internal)
10627         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10628         Set length_nobnd attribute instead of length attribute.
10629         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10630         (length_nobnd): Remove attribute.
10631         (length): Remove length_nobnd processing.
10632
10633 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10634
10635         * gimplify.c (omp_default_clause): New function.  Reorganize flow
10636         for clarity. Broken out of ...
10637         (omp_notice_variable): ... here.
10638
10639 2015-07-24  Gary Funck  <gary@intrepid.com>
10640
10641         PR middle-end/66984
10642         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10643         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10644
10645 2015-07-24  Tom de Vries  <tom@codesourcery.com>
10646
10647         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10648         exit-first loop transform.
10649
10650 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10651
10652         PR 66714
10653         * tree-cfg.c (struct replace_decls_d): New struct.
10654         (replace_block_vars_by_duplicates_1): New function.
10655         (replace_block_vars_by_duplicates): Use it to replace the decls
10656         in the value exprs by duplicates.
10657
10658 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10659
10660         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10661         -shared, -symbolic, -rdynamic.
10662
10663 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10664
10665         PR target/65711
10666         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10667         -dynamic-linker within %{!static %{!shared, and -rdynamic within
10668         %{!static.
10669
10670 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10671
10672         PR ipa/66566
10673         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10674         edge summary is available.
10675
10676 2015-07-24  Richard Biener  <rguenther@suse.de>
10677
10678         * genmatch.c (struct dt_node): Add statistic fields.
10679         (dt_node::analyze): New method.
10680         (decision_tree::gen_gimple): Call analyze on the root node
10681         and print statistics to stderr.
10682         (decision_tree::gen_generic): Likewise.
10683
10684 2015-07-24  Richard Biener  <rguenther@suse.de>
10685
10686         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10687         against the highest or lowest possible integer ...
10688         * match.pd: ... as patterns here.
10689
10690 2015-07-24  Richard Biener  <rguenther@suse.de>
10691
10692         * genmatch.c (struct capture_info): Add same_as field.
10693         (capture_info::capture_info): Initialize same_as.
10694         (capture_info::walk_match): Compute same_as.
10695         (capture_info::walk_result): Compute stuff for the leader.
10696         (capture_info::walk_c_expr): Likewise.
10697         (dt_simplify::gen_1): Only look at leaders when deciding
10698         to force no side-effects or emit side-effects of omitted operands.
10699
10700 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10701
10702         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10703         reg note to the GPR -> FPR save instructions.
10704
10705 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10706
10707         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10708         cheaper.
10709         (s390_expand_insv): Don't generate risbg pattern for constant zero
10710         sources.
10711         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10712         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
10713         splitters.
10714
10715 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10716
10717         * config/s390/s390.c (s390_reorg): Clean up handling of processors
10718         with
10719         -mtune=
10720         (s390_issue_rate): Likewise.
10721         (s390_sched_reorder): Likewise.
10722         (s390_sched_variable_issue): Likewise.
10723         (s390_loop_unroll_adjust): Likewise.
10724         (s390_option_override):  Likewise.
10725
10726 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10727
10728         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10729         processor capabilities with -march=native.
10730         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10731         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
10732         (S390_TARGET_BITS_STRING): Macro to simplify specs.
10733
10734 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10735
10736         * config/s390/s390.c (s390_issue_rate): Handle
10737         PROCESSOR_2094_Z9_EC.
10738         (s390_option_override): Likewise.
10739         (s390_adjust_priority): Likewise.
10740
10741 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10742
10743         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10744         when cross compiling.
10745
10746 2015-07-24  Richard Biener  <rguenther@suse.de>
10747
10748         * fold-const.c (maybe_canonicalize_comparison_1): Move
10749         A code CST canonicalization ...
10750         * match.pd: ... to a pattern here.
10751
10752 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
10753
10754         Revert:
10755         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
10756         PR target/63521
10757         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10758         (HONOR_REG_ALLOC_ORDER): Define.
10759
10760 2015-07-24  Richard Biener  <rguenther@suse.de>
10761
10762         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10763         * fold-const.c (fold_comparison): Move parameter does not
10764         alias &local simplification ...
10765         * match.pd: ... as a pattern here.
10766
10767 2015-07-24  Richard Biener  <rguenther@suse.de>
10768
10769         * gimple-fold.c (replace_stmt_with_simplification): Special-case
10770         valueizing call operands.
10771         * gimple-match-head.c (maybe_push_res_to_seq): Take
10772         number of call arguments from ops array.
10773         (do_valueize): New function.
10774         (gimple_simplify): Return true if valueization changed
10775         any operand even if the result didn't simplify further.
10776
10777 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10778
10779         PR middle-end/25530
10780         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10781
10782 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10783
10784         PR middle-end/25529
10785         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10786
10787 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10788
10789         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10790         instruction.
10791
10792 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10793
10794         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10795         clean up.
10796
10797 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
10798
10799         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10800         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
10801         targets here.
10802         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10803         ms_va_list_type_node initialization.
10804
10805 2015-07-23  Jeff Law  <law@redhat.com>
10806
10807         PR lto/66752
10808         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10809         unable to find X NE 0 in the tables, return X as the simplified
10810         condition.
10811         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10812         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
10813         to VISISTED_BBS.  */
10814         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10815         after removing the control flow statement and unnecessary edges.
10816
10817 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10818
10819         * tree-pass.h (get_current_pass_name): Removed.
10820
10821 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
10822
10823         PR rtl-optimization/64164
10824         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10825         * tree-ssa-copyrename.c: Removed.
10826         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10827         -ftree-coalesce-vars.
10828         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10829         * common.opt (ftree-copyrename): Ignore.
10830         (ftree-coalesce-inlined-vars): Likewise.
10831         * doc/invoke.texi: Remove the ignored options above.
10832         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10833         * tree-ssa-coalesce.h: ... here.
10834         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10835         headers required by it.
10836         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10837         across variables when flag_tree_coalesce_vars.  Check register
10838         use and promoted modes to allow coalescing.  Moved to
10839         tree-ssa-coalesce.c.
10840         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10841         with its member functions to tree-ssa-coalesce.c.
10842         (var_map_base_init): Likewise.  Renamed to
10843         compute_samebase_partition_bases.
10844         (partition_view_normal): Drop want_bases parameter.
10845         (partition_view_bitmap): Likewise.
10846         * tree-ssa-live.h: Adjust declarations.
10847         * tree-ssa-coalesce.c: Include explow.h.
10848         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10849         default defs at the entry point.
10850         (dump_part_var_map): New.
10851         (compute_optimized_partition_bases): New, called by...
10852         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10853         of compute_samebase_partition_bases.  Adjust.
10854         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10855         * cfgexpand.c (leader_merge): New.
10856         (get_rtl_for_parm_ssa_default_def): New.
10857         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10858         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10859         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10860         redundant MEM attr setting.
10861         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10862         from...
10863         (expand_one_stack_var): ... this.  New wrapper to check and
10864         skip already expanded SSA partitions.
10865         (record_alignment_for_reg_var): New, factored out of...
10866         (expand_one_var): ... this.
10867         (expand_one_ssa_partition): New.
10868         (adjust_one_expanded_partition_var): New.
10869         (expand_one_register_var): Check and skip already expanded SSA
10870         partitions.
10871         (expand_used_vars): Don't create DECLs for anonymous SSA
10872         names.  Expand all SSA partitions, then adjust all SSA names.
10873         (pass::execute): Replace the loops that set
10874         SA.partition_to_pseudo from partition leaders and cleared
10875         DECL_RTL for multi-location variables, and that which used to
10876         rename vars and set attrs, with one that clears DECL_RTL and
10877         checks that PARMs and RESULTs default_defs match DECL_RTL.
10878         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10879         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10880         * explow.c (promote_ssa_mode): New.
10881         * explow.h (promote_ssa_mode): Declare.
10882         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10883         * function.c: Include cfgexpand.h.
10884         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10885         (use_register_for_parm_decl): Wrapper for the above to
10886         special-case the result_ptr.
10887         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10888         (split_complex_args): Take assign_parm_data_all argument.
10889         Pass it to rtl_for_parm.  Set up rtl and context for split
10890         args.
10891         (assign_parms_augmented_arg_list): Adjust.
10892         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10893         multiple locations.  Recognize split complex args.
10894         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10895         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10896         (assign_parm_setup_block): Prefer SSA-assigned location.
10897         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10898         if stack_parm is NULL.
10899         (assign_parm_setup_stack): Prefer SSA-assigned location.
10900         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10901         rtl before testing for pointer bounds.  Special-case result_ptr.
10902         (expand_function_start): Maybe reset DECL_RTL of result.
10903         Prefer SSA-assigned location for result and static chain.
10904         Factor out DECL_RESULT and SET_DECL_RTL.
10905         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10906         anonymous SSA names.  Use promote_ssa_mode.
10907         (get_temp_reg): Likewise.
10908         (remove_ssa_form): Adjust.
10909         * stor-layout.c (layout_decl): Don't set mem attributes of
10910         non-MEMs.
10911         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10912         and get its reg_usage for reg invalidation.
10913         (compute_bb_dataflow): Pass it insn.
10914         (emit_notes_in_bb): Likewise.
10915
10916 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
10917
10918         PR target/66217
10919         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10920         prototype.
10921         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10922         (rs6000_emit_2insn_and): Handle dot forms.
10923         * config/rs6000/rs6000.md (and<mode>3): Adjust.
10924         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
10925         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10926
10927 2015-07-23  Richard Biener  <rguenther@suse.de>
10928
10929         * generic-match-head.c: Include cgraph.h.
10930         * gimple-match-head.c: Likewise.
10931         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10932         SSA names.
10933         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10934         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
10935         pattern.
10936
10937 2015-07-23  Richard Biener  <rguenther@suse.de>
10938
10939         * gimple-fold.c (fold_gimple_cond): Do not require folding
10940         results to pass valid_gimple_rhs_p.
10941         * tree-cfg.h (fold_cond_expr_cond): Remove.
10942         * tree-cfg.c (fold_cond_expr_cond): Likewise.
10943         (make_edges): Do not call it.
10944         * tree-inline.c (tree_function_versioning): Likewise.
10945
10946 2015-07-23  Tom de Vries  <tom@codesourcery.com>
10947
10948         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
10949         vect_force_simple_reduction.
10950         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
10951         (vect_is_simple_reduction_1): Add and handle
10952         need_wrapping_integral_overflow parameter.
10953         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
10954         need_wrapping_integral_overflow parameter.
10955         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
10956         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
10957         decl.
10958
10959 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
10960
10961         PR tree-optimization/66926,66951
10962         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
10963         INNER_LOOP and fix up condition for renaming virtual operands.
10964
10965 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10966
10967         * combine.c (try_combine): Use std::swap instead of manually
10968         swapping.
10969
10970 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
10971
10972         * config/mips/i6400.md: New file.
10973         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
10974         (mips64r6): Likewise.
10975         (i6400): Define.
10976         * config/mips/mips-tables.opt: Regenerate.
10977         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
10978         (mips_issue_rate): Add support for i6400.
10979         (mips_multipass_dfa_lookahead): Likewise.
10980         * config/mips/mips.h (TUNE_I6400): Define.
10981         * config/mips/mips.md: Include i6400.md.
10982         (processor): Add i6400.
10983         * doc/invoke.texi (-march=@var{arch}): Add i6400.
10984
10985 2015-07-23  Richard Biener  <rguenther@suse.de>
10986
10987         PR middle-end/66916
10988         * match.pd: Guard widen and sign-change comparison simplification
10989         with single_use.
10990
10991 2015-07-23  Richard Biener  <rguenther@suse.de>
10992
10993         PR tree-optimization/66945
10994         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
10995         ::before_dom_children): Force the propagators idea of
10996         non-executable edges to materialize, not what the folder
10997         chooses.
10998
10999 2015-07-23  Richard Biener  <rguenther@suse.de>
11000
11001         * gimple.h (gimple_cond_make_false): Use 0 != 0.
11002         (gimple_cond_make_true): Use 1 != 0.
11003
11004 2015-07-22  DJ Delorie  <dj@redhat.com>
11005
11006         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11007         slashes.
11008
11009         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11010         (ashrhi3): Likewise.
11011         (lshrhi3): Likewise.
11012         (movhi): Take advantage of zero-extend to load small constants.
11013         (movpsi): Likewise.
11014         (and<mode>3): Likewise.
11015         (zero_extendqihi2): Likewise.
11016         (zero_extendqisi2): New.
11017         * config/msp430/constraints.md (N,O): New.
11018         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11019
11020 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
11021
11022         PR target/66954
11023         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11024         to enum feature_priority and feature_list.
11025         (fold_builtin_cpu): Add F_AES to enum processor_features
11026         and isa_names_table.
11027
11028 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11029
11030         PR driver/66737
11031         * config/i386/linux-common.h (MPX_SPEC): Use linker option
11032         for 64bit target only.
11033
11034 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11035
11036         * config/nvptx/nvptx.c: Expand some comments.
11037
11038 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
11039
11040         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11041         (cortex_a53_advsimd): ...This.
11042
11043 2015-07-22  Richard Biener  <rguenther@suse.de>
11044
11045         * genmatch.c (expr::gen_transform): Clarify error message
11046         and display location.
11047
11048 2015-07-22  Richard Biener  <rguenther@suse.de>
11049
11050         * genmatch.c (struct operand): Add location member.
11051         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11052         constructors.
11053         (struct simplify): Remove match_location and result_location
11054         members.
11055         (elsehwere): Adjust.
11056
11057 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
11058
11059         * config/mips/m5100.md: New file.
11060         * config/mips/mips-cpus.def (m5100, m5101): Define.
11061         * config/mips/mips-tables.opt: Regenerate.
11062         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11063         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11064         -march=m5101 to -mips32r5.
11065         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11066         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11067         !-msoft-float.
11068         * config/mips/mips.md: Include m5100.md.
11069         (processor): Add m5100.
11070         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11071
11072 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
11073
11074         * config/mips/mips-cpus.def (interaptiv): Define.
11075         * config/mips/mips-tables.opt: Regenerate.
11076         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11077         -mips32r2.
11078         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11079         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11080
11081 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
11082
11083         PR target/63521
11084         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11085         (HONOR_REG_ALLOC_ORDER): Define.
11086
11087 2015-07-22  Richard Biener  <rguenther@suse.de>
11088
11089         PR tree-optimization/66952
11090         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11091         blocks we end up executing unconditionally reset all SSA
11092         info such as range and alignment.
11093         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11094         * tree-ssanames.c (reset_flow_sensitive_info): New function.
11095
11096 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11097
11098         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11099         typo in attribute.
11100
11101 2015-07-22  Richard Biener  <rguenther@suse.de>
11102
11103         * genmatch.c (parser::parse_result): Properly handle
11104         match with result operands and conditions.
11105
11106 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
11107
11108         PR target/63870
11109         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11110         Add qualifier_struct_load_store_lane_index.
11111         (aarch64_types_loadstruct_lane_qualifiers): Use
11112         qualifier_struct_load_store_lane_index for lane index argument for
11113         last argument.
11114         (aarch64_types_storestruct_lane_qualifiers): Ditto.
11115         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11116         (aarch64_simd_expand_args): Add new argument describing mode of
11117         builtin. Check lane bounds for arguments with
11118         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11119         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11120         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11121         (aarch64_simd_expand_builtin): Handle arguments with
11122         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11123         aarch64_simd_expand_args.
11124         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11125         vst[234]_lane with BUILTIN_VALLDIF.
11126         * config/aarch64/aarch64-simd.md:
11127         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11128         endianness reversal on lane index.
11129         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11130         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11131         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11132         (vec_store_lanesci_lane<mode>): Ditto.
11133         (vec_store_lanesxi_lane<mode>): Ditto.
11134         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11135         reversal of lane index.
11136         (aarch64_ld3_lane<mode>): Ditto.
11137         (aarch64_ld4_lane<mode>): Ditto.
11138         (aarch64_st2_lane<mode>): Ditto.
11139         (aarch64_st3_lane<mode>): Ditto.
11140         (aarch64_st4_lane<mode>): Ditto.
11141         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11142         to qmode. Add new mode parameter. Update uses.
11143         (__LD3_LANE_FUNC): Ditto.
11144         (__LD4_LANE_FUNC): Ditto.
11145         (__ST2_LANE_FUNC): Ditto.
11146         (__ST3_LANE_FUNC): Ditto.
11147         (__ST4_LANE_FUNC): Ditto.
11148
11149 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
11150
11151         * doc/invoke.texi (Language Independent Options): Rename node to
11152         Diagnostic Message Formatting Options.
11153
11154 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
11155
11156         PR ipa/66424.
11157         * lra-remat.c (operand_to_remat): Prevent using insns with input
11158         subregs processed separately by IRA.
11159
11160 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
11161
11162         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11163         straight loops.
11164         (single_imm_use): Check for iterator node.
11165         (num_imm_uses): Likewise.
11166         * tree-ssa-operands.c (has_zero_uses_1): Delete.
11167         (single_imm_use_1): Check for iterator node.
11168
11169 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
11170             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11171
11172         * configure.ac: Add check for new options in isl-0.15.
11173         * config.in, configure: Rebuilt.
11174         * graphite-blocking.c: Include <isl/constraint.h>
11175         * graphite-interchange.c,  graphite-poly.c: Likewise.
11176         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11177         * graphite.c: Likewise.
11178         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11179         <isl/union_set.h>.
11180         * graphite-dependences.c: Include <isl/constraint.h>.
11181         (max_number_of_out_dimensions): Returns isl_stat.
11182         (extend_schedule_1): Likewise
11183         (extend_schedule): Corresponding changes.
11184         * graphite-optimize-isl.c: Include <isl/constraint.h> and
11185         <isl/union_set.h>.
11186         (getSingleMap): Change return type of isl_stat.
11187         (optimize_isl): Conditionally use
11188         isl_options_set_schedule_serialize_sccs.
11189         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11190         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11191
11192 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
11193
11194         PR target/66956
11195         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11196         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11197
11198 2015-07-21  Richard Biener  <rguenther@suse.de>
11199
11200         PR tree-optimization/66948
11201         * genmatch.c (capture_info::walk_match): Also recurse to
11202         captures.  Properly compute expr state from captures of
11203         captures.
11204         * match.pd: Add single-use guards to
11205         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11206
11207 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11208
11209         * config/nvptx/mkoffload.c (process): Add static destructor call.
11210
11211 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11212
11213         PR middle-end/66915
11214         * match.pd (A - B -> A + (-B)): Don't allow folding
11215         when type if a fixed-point type.
11216
11217 2015-07-20  DJ Delorie  <dj@redhat.com>
11218
11219         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11220         (iorqi3_real): Likewise for set1.
11221
11222 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
11223
11224         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11225         for !TARGET_64BIT.
11226
11227 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
11228
11229         * graphite-isl-ast-to-gimple.c:
11230         Refactor so that each function can access 'region'. This will help
11231         maintain a parameter rename_map within a region.
11232
11233 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11234
11235         * config/rs6000/rs6000.md (*lt0_disi): New.
11236
11237 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
11238
11239         PR target/66217
11240         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
11241         "available letters" comment.
11242         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11243         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11244         and_2rld_operand):  Delete.
11245         (and_operand): Adjust.
11246         (rotate_mask_operator): New.
11247         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11248         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11249         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11250         extract_ME): Delete.
11251         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11252         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11253         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11254         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11255         rs6000_emit_2insn_and): New.
11256         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11257         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11258         includes_rldic_lshift_p, includes_rldicr_lshift_p,
11259         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11260         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11261         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11262         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11263         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11264         rs6000_emit_2insn_and): New.
11265         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11266         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11267         handling.
11268         <NOT>: Don't fall through to next case.
11269         <AND>: Handle the various rotate-and-mask cases directly.
11270         <IOR>: Always cost as one insn.
11271         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11272         (and<mode>3): Adjust expander for the new patterns.
11273         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11274         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11275         (*and<mode>3_imm_dot_shifted): New.
11276         (*and<mode>3_mask): Delete, rewrite as ...
11277         (and<mode>3_mask): ... New.
11278         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11279         (andsi3_internal0_nomc): Delete.
11280         (*andsi3_internal6): Delete.
11281         (*and<mode>3_2insn): New.
11282         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11283         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11284         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11285         *insvdi_internal3): Delete.
11286         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11287         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11288         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11289         *ior<mode>_mask): New.
11290         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11291         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11292         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11293         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11294         Delete.
11295         (ashr<mode>3): Delete expander.
11296         (*ashr<mode>3): Rename to ...
11297         (ashr<mode>3): ... This.
11298         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11299         (*rotldi3_internal4, *rotldi3_internal5 and split,
11300         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11301         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11302         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11303         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11304         (splitter for loading a mask): Adjust.
11305         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11306
11307 2015-07-20  Marek Polacek  <polacek@redhat.com>
11308
11309         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11310         output_add_clobbers, output_added_clobbers_hard_reg_p,
11311         gen_rtx_scratch): Remove declarations.
11312
11313 2015-07-20  Marek Polacek  <polacek@redhat.com>
11314
11315         PR c++/55095
11316         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11317
11318 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11319
11320         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11321         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11322
11323 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11324
11325         * combine.c (combine_simplify_rtx): Move simplification step
11326         before various transformations/substitutions.
11327
11328 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
11329
11330         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11331         (struct int_traits): Likewise.
11332
11333 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11334
11335         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11336         function to vmsdbgout_function_decl.
11337
11338 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11339
11340         PR target/66922
11341         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11342         from misaligned positions.
11343         (ix86_expand_pinsr): Reject insertions to misaligned positions.
11344
11345 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
11346
11347         PR middle-end/46851
11348         PR middle-end/60340
11349         * Makefile.in: Removed omega.o.
11350         * common.opt: Document flag fcheck-data-deps as deprecated.
11351         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11352         its associated params: omega-max-vars, omega-max-geqs,
11353         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11354         omega-max-keys, omega-eliminate-redundant-constraints.
11355         * doc/loop.texi: Remove all the section on Omega.
11356         * graphite-blocking.c: Include missing params.h: it used to be
11357         included through tree-data-ref.h and omega.h.
11358         * graphite-isl-ast-to-gimple.c: Same.
11359         * graphite-optimize-isl.c: Same.
11360         * graphite-sese-to-poly.c: Same.
11361         * graphite.c: Same.
11362         * omega.c: Remove.
11363         * omega.h: Remove.
11364         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11365         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11366         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11367         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11368         * passes.def: Remove pass_check_data_deps.
11369         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11370         (dump_conflict_function): Same.
11371         (dump_subscript): Same.
11372         (print_direction_vector): Same.
11373         (print_dir_vectors): Same.
11374         (print_lambda_vector): Same.
11375         (print_dist_vectors): Same.
11376         (dump_data_dependence_relation): Same.
11377         (dump_data_dependence_relations): Same.
11378         (dump_dist_dir_vectors): Same.
11379         (dump_ddrs): Same.
11380         (init_omega_eq_with_af): Removed.
11381         (omega_extract_distance_vectors): Removed.
11382         (omega_setup_subscript): Removed.
11383         (init_omega_for_ddr_1): Removed.
11384         (init_omega_for_ddr): Removed.
11385         (ddr_consistent_p): Removed.
11386         (compute_affine_dependence): Do not use omega to check data
11387         dependences.
11388         (compute_data_dependences_for_bb): Removed.
11389         (analyze_all_data_dependences): Removed.
11390         (tree_check_data_deps): Removed.
11391         * tree-data-ref.h: Do not include omega.h.
11392         (compute_data_dependences_for_bb): Removed.
11393         (tree_check_data_deps): Removed.
11394         * tree-ssa-loop.c (pass_check_data_deps): Removed.
11395         (make_pass_check_data_deps): Removed.
11396         * tree-ssa-phiopt.c: Include params.h.
11397         * tree-vect-data-refs.c: Same.
11398         * tree-vect-slp.c: Same.
11399
11400 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
11401
11402         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11403         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
11404         (mem->fpreg splitters): Ditto.
11405         (general_operand->nonimmediate_operand splitter): Use explicit modes.
11406         Disable DFmode for TARGET_64BIT.
11407
11408 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
11409
11410         PR target/66906
11411         * config/i386/i386.c (ix86_expand_prologue): Replicate static
11412         chain on the stack.
11413
11414 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11415
11416         * config/nvptx/mkoffload.c (process): Constify host data.
11417         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11418         Constify host data.
11419         (generate_host_descr_file): Likewise.
11420
11421 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
11422             Sebastian Pop  <s.pop@samsung.com>
11423
11424         PR middle-end/61929
11425         * graphite-dependences.c (add_pdr_constraints): Renamed
11426         pdr->extent to pdr->subscript_sizes.
11427         * graphite-interchange.c (build_linearized_memory_access): Add
11428         back all gcc_assert's that the "isl_int to isl_val conversion"
11429         patch has removed.  Refactored.
11430         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11431         * graphite-poly.c (new_poly_dr): Same.
11432         (free_poly_dr): Same.
11433         * graphite-poly.h (struct poly_dr): Same.
11434         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11435         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11436         * graphite-scop-detection.h: Fix space.
11437         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11438         back all gcc_assert's removed by a previous patch.
11439         (wrap): Remove the_isl_ctx global variable that the same patch has
11440         added.
11441         (build_loop_iteration_domains): Same.
11442         (add_param_constraints): Same.
11443         (pdr_add_data_dimensions): Same.  Refactored.
11444         (build_poly_dr): Renamed extent to subscript_sizes.
11445
11446 2015-07-17  Marek Polacek  <polacek@redhat.com>
11447
11448         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11449         * match.pd: ... here.
11450
11451 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
11452
11453         * config/nvptx/mkoffload.c (process): Constify target data.
11454         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11455         Constify target data.
11456         (generate_target_offloadend_file): Likewise.
11457
11458 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
11459
11460         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11461         to allow renaming of PHI arguments on edges incoming from outer
11462         loop header, add corresponding check before start PHI iterator.
11463         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11464         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11465         with true force_vectorize.  Set-up dominator for outer loop too.
11466         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11467         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11468         was marked with force_vectorize and has restricted cfg.
11469         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11470         inner loop.
11471         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11472         do peeling for outer loops.
11473
11474 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
11475             Matthias Klose  <doko@ubuntu.com>
11476
11477         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11478         build-sysroot, sysroot from the `Miscenalleous configure options' to
11479         the `Directories' section and strip trailing `/' from with_sysroot.
11480         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11481         * configure: Regenerated.
11482
11483 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11484
11485         PR target/66824
11486         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11487         (TARGET_HARD_DF_REGS): Ditto.
11488         (TARGET_HARD_XF_REGS): Ditto.
11489         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11490         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11491         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11492         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11493         (*movsf_internal): Add alternatives 16 and 17. Enable
11494         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11495
11496 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
11497
11498         PR rtl-optimization/66891
11499         * calls.c (expand_call): Wrap precompute_register_parameters with
11500         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11501
11502 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11503
11504         * config/nvptx/mkoffload.c (process): Constify mapping variables.
11505         Define target data struct and initialize it.
11506
11507 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
11508
11509         PR rtl-optimization/66626
11510         * ira.h (emit-rtl.h): Include.
11511         (non_spilled_static_chain_regno_p): New.
11512         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11513         unless it is non spilled static chain pseudo.
11514         (assign_hard_rego): Spill memory profitable allocno unless it is
11515         non spilled static chain pseudo.
11516         (allocno_spill_priority_compare): Put non spilled static chain
11517         pseudo at the end of sorted array.
11518         (improve_allocation): Do nothing if we have static chain and
11519         non-local goto.
11520         (allocno__priority_compare_func): Put non spilled static chain
11521         pseudo at the beginning of sorted array.
11522         (move_spill_restore): Ignore non spilled static chain pseudo.
11523         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11524         to non spilled static chain pseudo.
11525         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11526         pseudo at the beginning of sorted array.
11527         (spill_for): Spill non spilled static chain pseudo last.
11528         * lra-constraints.c (lra_constraints): Remove static chain pseudo
11529         check for equivalence.
11530
11531 2015-07-16  Martin Liska  <mliska@suse.cz>
11532
11533         PR ipa/66896.
11534         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11535         dst_ctx if it does not exist.
11536
11537 2015-07-16  Martin Liska  <mliska@suse.cz>
11538
11539         * hash-set.h (remove): New function.
11540         (iterator): New iteration class for hash_set.
11541
11542 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11543
11544         * genattrtab.c (make_canonical): Add a file_location parameter.
11545         Use fatal_at rather than fatal.
11546         (get_attr_value): Likewise.  Update call to make_canonical.
11547         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11548         (make_internal_attr): Update calls accordingly.
11549
11550 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11551
11552         * read-md.h (message_with_line, error_with_line): Delete.
11553         * read-md.c (message_with_line, error_with_line): Delete.
11554         * gensupport.h: Include read-md.h.
11555         (md_rtx_info): New structure.
11556         (read_md_rtx): Use it.  Return a bool success value.
11557         * gensupport.c (read_md_rtx): Likewise.
11558         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11559         (main): Update after interface changes.
11560         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11561         (main): Update after interface changes.
11562         * genattrtab.c (insn_code_number): Delete.
11563         (optimize_attrs): Add a max_insn_code parameter and use it instead
11564         of insn_code_number.
11565         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11566         Use *_at rather than *_with_line functions.
11567         (gen_insn): Likewise.
11568         (gen_delay): Likewise.
11569         (gen_insn_reserv): Likewise.
11570         (gen_bypass): Take an md_rtx_info rather than an rtx.
11571         (main): Update after interface changes.  Use a local max_insn_code
11572         variable instead of insn_code_number.
11573         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11574         an rtx.  Use fatal_at rather than fatal.
11575         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11576         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11577         (gen_absence_set, gen_final_absence_set, gen_automaton)
11578         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11579         (main): Update after interface changes.
11580         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11581         and code number.
11582         (main): Update after interface changes.
11583         * genconditions.c (main): Use new read_md_rtx interface.
11584         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11585         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11586         (main): Update after interface changes.
11587         * genemit.c (insn_code_number, insn_index_number): Delete.
11588         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11589         Use fatal_at rather than fatal.
11590         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
11591         rather than fatal.
11592         (gen_split): Likewise.
11593         (main): Update after interface changes.
11594         * genextract.c (line_no): Delete.
11595         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11596         Update call to walk_rtx.
11597         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
11598         rather than message_with_line.
11599         (walk_rtx): Add an md_rtx_info argument.  Update call to
11600         VEC_safe_set_locstr.
11601         (main): Update after interface changes.
11602         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11603         and lineno.  Use error_at rather than separate message_with_line
11604         calls and have_error assignments.
11605         (main): Update after interface changes.
11606         * genmddump.c (main): Use new read_md_rtx interface.
11607         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11608         (main): Update after interface changes.
11609         * genoutput.c (next_code_number): Delete.
11610         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11611         (gen_peephole, gen_expand, gen_split): Likewise.
11612         (note_constraint): Likewise.  Use *_at rather than *_with_line
11613         functions.
11614         (main): Update after interface changes.
11615         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11616         rtx and lineno.
11617         (main): Update after interface changes.
11618         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11619         than an rtx and lineno.
11620         (process_define_constraint): Likewise.
11621         (process_define_register_constraint): Likewise.
11622         (main): Update after interface changes.
11623         * genrecog.c (next_insn_code, pattern_lineno): Delete.
11624         (validate_pattern): Replace top-level rtx with an md_rtx_info.
11625         Use *_at rather than *_with_line functions.
11626         (match_pattern_2): Likewise.
11627         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11628         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11629         Use *_at rather than *_with_line functions.
11630         * gentarget-def.c (add_insn): New function.
11631         (main): Use it.  Use new read_md_rtx interface.
11632
11633 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11634
11635         * gensupport.h (compute_test_codes): Take a file_location rather
11636         than a line number.
11637         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
11638         rather than *_with_line functions.
11639         (process_define_predicate): Update call to compute_test_codes.
11640         * genpreds.c (validate_exp): Take a file_location rather than a
11641         line number.  Use *_at functions rather than *_with_line functions.
11642         (process_define_predicate): Update call to validate_exp.
11643         (constraint_data): Replace lineno field with a file_location.
11644         (add_constraint): Take a file_location rather than a line number.
11645         Use *_at functions rather than *_with_line functions.  Fix error
11646         message for address constraints.  Update after changes to
11647         validate_exp, constraint_data and compute_test_codes.
11648         (process_define_constraint): Update accordingly.
11649         (process_define_register_constraint): Likewise.
11650
11651 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11652
11653         * genoutput.c (data): Use a file_location to record the source
11654         position.
11655         (nothing): Delete.
11656         (idata, idata_end): Remove initialization.
11657         (constraint_data): Replace lineno with a file_location.
11658         (output_insn_data): Update after changes to data.
11659         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11660         (scan_operands): Likewise, using *_at rather than *_with_line
11661         functions.
11662         (process_template): Likewise.
11663         (validate_insn_alternatives): Likewise.
11664         (validate_insn_operands): Likewise.
11665         (validate_optab_operands): Likewise.
11666         (init_insn_for_nothing): Initialize idata and idata_end.
11667         (note_constraint): Update after changes to constraint_data,
11668         using at rather than with_line functions.
11669         (mdep_constraint_len): Take a file_location rather than a
11670         line number.  Use at rather than with_line functions.
11671
11672 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11673
11674         * read-md.h (fatal_at): Declare.
11675         * read-md.c (fatal_at): New function.
11676         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11677         to record the source position.
11678         (check_attr_test): Take a file_location instead of a line number.
11679         Use fatal_at instead of fatal.
11680         (check_attr_value): Update after above changes, using "at"
11681         rather than "with_line" reporting functions.
11682         (convert_set_attr_alternative): Likewise.
11683         (gen_attr): Likewise.
11684         (check_defs): Likewise.  Don't assign to read_md_filename.
11685         (gen_insn): Update initialization after above changes.
11686         (gen_delay): Likewise.
11687         (write_insn_cases): Print the filename for a define_peephole.
11688         (gen_insn_reserv): Take a line number as argument and update
11689         the call to check_attr_test.
11690         (main): Pass a line number to gen_insn_reserv.
11691
11692 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11693
11694         * read-md.h (file_location): New structure.
11695         (directive_handler_t): Take a file_location rather than a line number.
11696         (message_at, error_at): Declare.
11697         (read_skip_construct): Delete.
11698         * read-md.c (message_with_line_1): Replace with...
11699         (message_at_1): ...this new function.
11700         (message_at, error_at): New functions.
11701         (message_with_line, error_with_line): Update to use message_at_1.
11702         (handle_enum): Take a file_location rather than a line number
11703         and use error_at for error reporting.
11704         (handle_include): Likewise.
11705         (read_skip_construct): Likewise.  Make static.
11706         (handle_file): Update after above changes.  Pass a file_location
11707         rather than a line number to handle_directive.
11708         * gensupport.c (queue_elem): Replace separate filename and lineno
11709         with a file_location.
11710         (queue_pattern): Replace filename and lineno arguments with a
11711         file_location.  Update after change to queue_elem.
11712         (process_define_predicate): Replace lineno argument with a
11713         file_location and use error_at for error reporting.  Update
11714         after above changes.
11715         (process_rtx): Likewise.
11716         (subst_pattern_match): Likewise.
11717         (get_alternatives_number): Likewise.
11718         (alter_predicate_for_insn): Likewise.
11719         (rtx_handle_directive): Likewise.
11720         (is_predicable): Update after above changes, using error_at rather
11721         than error_with_line.
11722         (has_subst_attribute): Likewise.
11723         (identify_predicable_attribute): Likewise.
11724         (alter_attrs_for_subst_insn): Likewise.
11725         (process_one_cond_exec): Likewise.
11726         (process_substs_on_one_elem): Likewise.
11727         (process_define_subst): Likewise.
11728         (check_define_attr_duplicates): Likewise.
11729         (read_md_rtx): Update after change to queue_elem.
11730
11731 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11732
11733         * genoutput.c (next_index_number): Delete.
11734         (data): Remove index_number.
11735         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11736         (main): Remove manipulation of next_index_number.
11737
11738 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
11739
11740         * genattrtab.c (check_attr_value): Remove handling of null attrs.
11741         (make_canonical): Likewise.
11742
11743 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
11744
11745         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11746         instead of adjust_address_nv.
11747         (restore_stack_nonlocal): Likewise.
11748         (nonlocal_goto): Likewise.
11749
11750 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11751
11752         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11753         not have a corresponding loop header phi.
11754
11755 2015-07-16  Tom de Vries  <tom@codesourcery.com>
11756
11757         * tree-parloops.c (create_loads_for_reductions): Handle case that
11758         reduction is unused.
11759
11760 2015-07-16  Richard Biener  <rguenther@suse.de>
11761
11762         PR tree-optimization/66894
11763         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11764         about deriving NE_EXPR from truncated values.
11765
11766 2015-07-16  Martin Liska  <mliska@suse.cz>
11767
11768         * alloc-pool.h
11769         (object_allocator): Add new class.
11770         (pool_allocator::initialize): Use the underlying class.
11771         (pool_allocator::allocate): Likewise.
11772         (pool_allocator::remove): Likewise.
11773         (operator new): A new generic allocator.
11774         * asan.c (struct asan_mem_ref): Remove unused members.
11775         (asan_mem_ref_new): Replace new operator with
11776         object_allocator::allocate.
11777         (free_mem_ref_resources): Change deallocation.
11778         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11779         with object_allocator.
11780         * config/sh/sh.c (add_constant): Replace new operator with
11781         object_allocator::allocate.
11782         (sh_reorg): Change call to a release method.
11783         * cselib.c (struct elt_list): Remove unused members.
11784         (new_elt_list): Replace new operator with
11785         object_allocator::allocate.
11786         (new_elt_loc_list): Likewise.
11787         (new_cselib_val): Likewise.
11788         (unchain_one_elt_list): Change delete operator with remove method.
11789         (unchain_one_elt_loc_list): Likewise.
11790         (unchain_one_value): Likewise.
11791         (cselib_finish): Release newly added static allocators.
11792         * cselib.h (struct cselib_val): Remove unused members.
11793         (struct elt_loc_list): Likewise.
11794         * df-problems.c (df_chain_alloc): Replace pool_allocator with
11795         object_allocator.
11796         * df-scan.c (struct df_scan_problem_data): Likewise.
11797         (df_scan_alloc): Likewise.
11798         * df.h (struct dataflow): Likewise.
11799         * dse.c (struct read_info_type): Likewise.
11800         (struct insn_info_type): Likewise.
11801         (struct dse_bb_info_type): Likewise.
11802         (struct group_info): Likewise.
11803         (struct deferred_change): Likewise.
11804         (get_group_info): Likewise.
11805         (delete_dead_store_insn): Likewise.
11806         (free_read_records): Likewise.
11807         (replace_read): Likewise.
11808         (check_mem_read_rtx): Likewise.
11809         (scan_insn): Likewise.
11810         (dse_step1): Likewise.
11811         (dse_step7): Likewise.
11812         * et-forest.c (struct et_occ): Remove unused members.
11813         (et_new_occ): Use allocate instead of new operator.
11814         (et_new_tree): Likewise.
11815         (et_free_tree): Call release method explicitly.
11816         (et_free_tree_force): Likewise.
11817         (et_free_pools): Likewise.
11818         (et_split): Use remove instead of delete operator.
11819         * et-forest.h (struct et_node): Remove unused members.
11820         * ipa-cp.c: Change pool_allocator to object_allocator.
11821         * ipa-inline-analysis.c: Likewise.
11822         * ipa-profile.c: Likewise.
11823         * ipa-prop.c: Likewise.
11824         * ipa-prop.h: Likewise.
11825         * ira-build.c (initiate_cost_vectors): Cast return value.
11826         (ira_allocate_cost_vector): Likewise.
11827         * ira-color.c (struct update_cost_record): Remove unused members.
11828         * lra-int.h (struct lra_live_range): Likewise.
11829         (struct lra_copy): Likewise.
11830         (struct lra_insn_reg): Likewise.
11831         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11832         * lra.c (new_insn_reg): Replace new operator with allocate method.
11833         (free_insn_regs): Same for operator delete.
11834         (finish_insn_regs): Release new static allocator.
11835         (finish_insn_recog_data): Likewise.
11836         (lra_free_copies): Replace delete operator with remove method.
11837         (lra_create_copy): Replace operator new with allocate method.
11838         (invalidate_insn_data_regno_info): Same for remove method.
11839         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11840         (free_debug_insn_changes): Replace delete operator with remove method.
11841         (replace_oldest_value_reg): Replace operator new with allocate method.
11842         (pass_cprop_hardreg::execute): Release new static variable.
11843         * sched-deps.c (sched_deps_init): Change pool_allocator to
11844         object_allocator.
11845         * sel-sched-ir.c: Likewise.
11846         * sel-sched-ir.h: Likewise.
11847         * stmt.c (expand_case): Likewise.
11848         (expand_sjlj_dispatch_table): Likewise.
11849         * tree-sra.c (struct access): Remove unused members.
11850         (struct assign_link): Likewise.
11851         (sra_deinitialize): Release newly added static pools.
11852         (create_access_1):Replace operator new with allocate method.
11853         (build_accesses_from_assign): Likewise.
11854         (create_artificial_child_access): Likewise.
11855         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11856         pool_allocator to object_allocator.
11857         * tree-ssa-pre.c: Likewise.
11858         * tree-ssa-reassoc.c: Likewise.
11859         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11860         * tree-ssa-strlen.c: Likewise.
11861         * tree-ssa-structalias.c: Likewise.
11862         * var-tracking.c (onepart_pool_allocate): New function.
11863         (unshare_variable): Use the newly added function.
11864         (variable_merge_over_cur): Likewise.
11865         (variable_from_dropped): Likewise.
11866         (variable_was_changed): Likewise.
11867         (set_slot_part): Likewise.
11868         (emit_notes_for_differences_1): Likewise.
11869         (vt_finalize): Release newly added static pools.
11870
11871 2015-07-16  Martin Jambor  <mjambor@suse.cz>
11872
11873         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
11874         all uses.  Fix two typos in its general comment.
11875         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
11876
11877 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
11878
11879         * config/i386/linux-common.h (LINK_MPX): New.
11880         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11881         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11882         indicating '-z bndplt' support by linker.
11883         * configure: Regenerate.
11884         * config.in: Regenerate.
11885
11886 2015-07-16  Richard Biener  <rguenther@suse.de>
11887
11888         * fold-const.c (fold_widened_comparison): Remove.
11889         (fold_sign_changed_comparison): Likewise.
11890         (fold_comparison): Move widened and sign-changed comparison
11891         simplification ...
11892         * match.pd: ... to patterns here.
11893         * generic-match-head.c: Include target.h.
11894         * gimple-match-head.c: Likewise.
11895
11896 2015-07-16  Richard Biener  <rguenther@suse.de>
11897
11898         * tree-ssa-dom.c (dom_valueize): New function.
11899         (record_temporary_equivalences): Also record equivalences
11900         for dominating stmts that have uses of equivalences we are
11901         about to record.
11902
11903 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
11904
11905         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11906         add_autoinc_candidates.
11907         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11908         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11909         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11910         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11911         Call new function.
11912         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11913         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11914         Remove parameter struct iv*.  Call add_autoinc_candidates here.
11915         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11916         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11917         Call new function.
11918         (find_iv_candidates): Call new functions.
11919
11920 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11921
11922         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11923         uninitialized-variable warning.
11924
11925 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
11926
11927         PR target/65249
11928         * config/sh/sh.md (movdi): Split simple reg move to two movsi
11929         when the destination is R0.
11930
11931 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
11932
11933         PR target/66866
11934         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11935         * config/i386/i386.c (ix86_expand_pextr): New function.
11936         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
11937         for non-lowpart subregs.
11938         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
11939         (insv<mode>): Use SWI248 mode iterator.
11940         (insv<mode>_1): Ditto.
11941
11942 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11943             Sebastian Pop  <s.pop@samsung.com>
11944
11945         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
11946         iterator to use_stmt.
11947
11948 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11949             Sebastian Pop <s.pop@samsung.com>
11950
11951         * graphite-scop-detection.c (build_scops_1): Discard scops for
11952         which entry==exit.
11953
11954 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11955             Sebastian Pop <s.pop@samsung.com>
11956
11957         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
11958         case of a return statement in scop.
11959
11960 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
11961             Sebastian Pop <s.pop@samsung.com>
11962
11963         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
11964         INTEGER_TYPE parameters.
11965         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
11966         VECTOR_CST in scan_tree_for_params.
11967         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
11968
11969 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11970
11971         * gimple-pretty-print.h: Don't include pretty-print.h.
11972         * tree-streamer.h: Don't include lto-streamer.h.
11973         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
11974         * gimple-streamer-in.c: Remove redundant includes.
11975         * gimple-streamer-out.c: Likewise.
11976         * ipa-devirt.c: Likewise.
11977         * ipa-icf.c: Likewise.
11978         * ipa-inline-analysis.c: Likewise.
11979         * ipa-polymorphic-call.c: Likewise.
11980         * ipa-profile.c: Likewise.
11981         * ipa-prop.c: Likewise.
11982         * ipa-pure-const.c: Likewise.
11983         * lto-cgraph.c: Likewise.
11984         * lto-streamer-in.c: Likewise.
11985         * lto-streamer-out.c: Likewise.
11986         * lto-streamer.c: Likewise.
11987         * tree-streamer-in.c: Likewise.
11988         * tree-streamer-out.c: Likewise.
11989         * tree-streamer.c: Likewise.
11990
11991 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
11992
11993         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
11994         include input.h.
11995         * opts.c: Remove multiline #include comment.
11996
11997 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11998
11999         * config/nvptx/mkoffload.c (process): Add C++ protection to
12000         emitted code.
12001
12002 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12003
12004         PR target/66854
12005         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12006         null before IEEE 128-bit floating point support patch.
12007
12008 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12009
12010         * simplify-rtx.c (simplify_ternary_operation): Add simplification
12011         for (!c) != {0,...,0} ? a : b for vector modes.
12012
12013 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
12014             Martin Jambor  <mjambor@suse.cz>
12015
12016         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12017         struct func_body_info* instead of struct ipa_node_params*, expecting
12018         fbi->info to be filled in.  Replace throughout.  Adjust call to
12019         ipa_load_from_parm_agg.
12020         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12021         instead of struct ipa_node_params*.  Adjust calls to other functions
12022         so that they pass either fbi or fbi->info.
12023         (set_switch_stmt_execution_predicate): Likewise.
12024         (will_be_nonconstant_predicate): Likewise.
12025         (compute_bb_predicates): Likewise.
12026         (estimate_function_body_sizes): Move asserts earlier.  Fill in
12027         struct func_body_info, replace parms_info with fbi.info.  Adjust
12028         calls to functions that now accept struct func_body_info.
12029         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12030         (struct func_body_info): Likewise.
12031         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12032         remove static.  Adjust callers.
12033         (ipa_load_from_parm_agg): Remove.
12034         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12035         (func_body_info): Likewise.
12036         (ipa_load_from_parm_agg): Adjust prototype.
12037
12038 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12039
12040         * gensupport.c (rtx_handle_directive): Adjust.
12041         * read-rtl.c (apply_iterators): Take vector to add rtxs to
12042         instead of expr list rtx.
12043         (add_define_attr_for_define_subst): Likewise.
12044         (add_define_subst_attr): Likewise.
12045         (read_subst_mapping): Likewise.
12046         (read_rtx): Likewise.
12047         * rtl.h (read_rtx): Adjust.
12048
12049 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12050
12051         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12052
12053 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12054
12055         PR target/58066
12056         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12057         (*tls_local_dynamic_base_64_<mode>): Ditto.
12058         (*tls_local_dynamic_base_64_largepic): Ditto.
12059         (tls_global_dynamic_64_<mode>): Update expander pattern.
12060         (tls_local_dynamic_base_64_<mode>): Ditto.
12061
12062 2015-07-15  Richard Biener  <rguenther@suse.de>
12063
12064         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12065         and bool_var == 1 -> bool_var simplifications ...
12066         * match.pd: ... to patterns here.  Factor out negate_expr_p
12067         cases from the A - B -> A + (-B) patterns as negate_expr_p
12068         predicate and add a -(A + B) -> (-B) - A pattern.
12069
12070 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12071
12072         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12073
12074 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12075             Robert Suchanek  <robert.suchanek@imgtec.com>
12076
12077         * config/mips/mips.c (mips_int_mask): New enum.
12078         (mips_shadow_set): Likewise.
12079         (int_mask): New variable.
12080         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12081         (machine_function): Add int_mask and use_shadow_register_set.
12082         (mips_attribute_table): Add attribute handlers for interrupt and
12083         use_shadow_register_set.
12084         (mips_interrupt_mask): New static function.
12085         (mips_handle_interrupt_attr): Likewise.
12086         (mips_handle_use_shadow_register_set_attr): Likewise.
12087         (mips_use_shadow_register_set): Change return type to enum
12088         mips_shadow_set.  Add argument handling for use_shadow_register_set
12089         attribute.
12090         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12091         compare with mips_shadow_set enum.
12092         (mips_compute_frame_info): Add interrupt mask and
12093         use_shadow_register_set to per-function information structure.
12094         Add a stack slot for EPC unconditionally.
12095         (mips_expand_prologue): Compare use_shadow_register_set value
12096         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
12097         masked interrupt register but in EIC mode use K0 and save Cause in K0.
12098         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
12099         copying the stack pointer from the shadow register set.
12100         * config/mips/mips.h (SR_IM0): New define.
12101         * config/mips/mips.md (mips_rdpgpr): Rename to...
12102         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
12103         * doc/extend.texi (Declaring Attributes of Functions): Document
12104         optional arguments for interrupt and use_shadow_register_set
12105         attributes.
12106
12107 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
12108
12109         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12110         interrupt attribute.
12111         (mips_expand_prologue): Disable the floating point unit in an ISR.
12112         * config/mips/mips.h (SR_COP1): New define.
12113
12114 2015-07-15  Richard Biener  <rguenther@suse.de>
12115
12116         * genmatch.c (parser::peek, parser::peek_ident): Add argument
12117         to tell how many tokens to peek ahead (default 1).
12118         (parser::eat_token, parser::eat_ident): Return token consumed.
12119         (parser::parse_result): Parse new switch statement.
12120         * match.pd: Use case statements where appropriate.
12121
12122 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12123
12124         PR rtl-optimization/58066
12125         * calls.c (expand_call): Precompute register parameters before stack
12126         alignment is performed.
12127
12128 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
12129
12130         PR rtl-optimization/66838
12131         * postreload.c (reload_cse_move2add): Also process
12132         CALL_INSN_FUNCTION_USAGE when resetting information of
12133         call-clobbered registers.
12134
12135 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12136             Cesar Philippidis  <cesar@codesourcery.com>
12137             Chung-Lin Tang  <cltang@codesourcery.com>
12138
12139         * config/nios2/constraints.md (U, v): New constraints.
12140         * config/nios2/predicates.md (rdprs_dcache_operand): New.
12141         (ldstex_memory_operand): New.
12142         * config/nios2/sync.md: New file.
12143         * config/nios2/nios2.md (unspecv): Add new builtin function
12144         UNSPECV codes.
12145         (rdprs, flushd, flushda, wrpie, eni): New patterns.
12146         (top-level): Include sync.md.
12147         * config/nios2/nios2.c (N2_FTYPES): Add function types for
12148         new builtins.
12149         (N2_BUILTINS): Add arch field setting, add new builtins.
12150         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12151         for arch field.
12152         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12153         Also handle ldex/stex/ldsex/stsex builtins.
12154         (nios2_expand_rdprs_builtin): New function.
12155         (nios2_expand_cache_builtin): New function.
12156         (nios2_expand_wrpie_builtin): New function.
12157         (nios2_expand_eni_builtin): New function.
12158         (nios2_expand_builtin): Add arch field handling and new builtin
12159         cases.
12160         * doc/extend.texi (Altera Nios II Built-in Functions): Document
12161         new builtins.
12162         * doc/md.texi (Machine Constraints): Document U and v constraints.
12163
12164 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12165             Cesar Philippidis  <cesar@codesourcery.com>
12166             Chung-Lin Tang  <cltang@codesourcery.com>
12167
12168         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12169         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12170         callee_save_reg_size and uses_anonymous_args fields.
12171         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12172         (nios2_create_cfa_notes): New function.
12173         (nios2_adjust_stack): New function for adjusting stack.
12174         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12175         Use nios2_adjust_stack.
12176         (nios2_expand_epilogue): Likewise.
12177         (nios2_expand_return): New function.
12178         (nios2_can_use_return_insn): Update for CDX pop.n usage.
12179         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12180         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12181         * config/nios2/nios2.md (return): Use nios2_expand_return.
12182
12183 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12184             Cesar Philippidis  <cesar@codesourcery.com>
12185             Chung-Lin Tang  <cltang@codesourcery.com>
12186
12187         * config/nios2/predicates.md (pop_operation): New.
12188         (ldwm_operation, stwm_operation): New.
12189         (nios2_hard_register_operand): New.
12190         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12191         (ldstwm_operation_p): Declare.
12192         (gen_ldstwm_peep): Declare.
12193         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12194         (base_reg_adjustment_p): New.
12195         (pop_operation_p): New.
12196         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12197         (nios2_ldstwm_regset_p): New.
12198         (ldstwm_operation_p): New.
12199         (gen_ldst): New.
12200         (nios2_ldst_parallel): New.
12201         (struct ldswm_operand): Declare.
12202         (compare_ldstwm_operands): New.
12203         (can_use_cdx_ldstw): New.
12204         (gen_ldstwm_peep): New.
12205         * config/nios2/nios2-ldstwm.sml: New.
12206         * config/nios2/nios2.md: Include ldstwm.md.
12207         * config/nios2/ldstwm.md: Generated.
12208
12209 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12210             Cesar Philippidis  <cesar@codesourcery.com>
12211             Chung-Lin Tang  <cltang@codesourcery.com>
12212
12213         * config/nios2/nios2.h (LABEL_ALIGN): Define.
12214         (REG_ALLOC_ORDER): Define.
12215         (ADJUST_REG_ALLOC_ORDER): Define.
12216         (HONOR_REG_ALLOC_ORDER): Define.
12217         (CDX_REG_P): Define.
12218         (ANDCLEAR_INT): Define.
12219         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12220         (nios2_label_align): Declare.
12221         (nios2_cdx_narrow_form_p): Declare.
12222         (nios2_adjust_reg_alloc_order): Declare.
12223         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12224         operation.
12225         (nios2_large_unspec_reloc_p): New function, split from...
12226         (nios2_legitimate_pic_operand_p): ...here.
12227         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12228         (nios2_print_operand_punct_valid_p): New.
12229         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
12230         (split_mem_address): New.
12231         (split_alu_insn): New.
12232         (cdxreg): New.
12233         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12234         (enum nios2_add_insn_kind): New.
12235         (nios2_add_insn_names, nios2_add_insn_narrow): New.
12236         (nios2_add_insn_classify): New.
12237         (nios2_add_insn_asm): New.
12238         (nios2_cdx_narrow_form_p): New.
12239         (label_align, min_labelno, max_labelno): New.
12240         (nios2_reorg): New.
12241         (nios2_label_align): New.
12242         (nios2_adjust_reg_alloc_order): New.
12243         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12244         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12245         * config/nios2/constraints.md (P): New constraint.
12246         * config/nios2/predicates.md (const_and_operand): New.
12247         (and_operand): New.
12248         (stack_memory_operand): New.
12249         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12250         (length): Update to use nios2_cdx_narrow_form_p().
12251         (type): Add new insn type values.
12252         (control, alu, st, ld, shift): Update insn reservations with
12253         new insn type values.
12254         (*high, *lo_sum): Define new insn patterns for constant generation.
12255         (movqi_internal, movhi_internal, movsi_internal): Reduce
12256         alternatives, update asm template to handle CDX variants, update
12257         type attributes.
12258         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12259         template, update type attributes.
12260         (extendhisi2, extendqi<mode>2): Likewise.
12261         (addsi3): Change to use function for asm string.
12262         (subsi3): Add CDX notation to asm template, update type attributes.
12263         (negsi3, one_cmplsi3): Likewise.
12264         (andsi3): New pattern, specialized from logical patterns.
12265         (<code>si3): Remove and case, combine alternatives, update asm
12266         template.
12267         (<shift_op>si3): Add CDX notation, update type attributes.
12268         (rotrsi3): Update type attribute.
12269         (*merge, extzv, insv): New insn patterns.
12270         (return): Change to define_expand.
12271         (simple_return): Add CDX notation, update type attributes.
12272         (indirect_jump): Add CDX notation.
12273         (jump): Update asm cases, update length attribute expression.
12274         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12275         (nios2_cbranch): Update asm cases and length attribute expression
12276         to handle CDX variants.
12277         (nios2_cmp<code>): Update asm template.
12278         (nop): Add CDX notation, update type attributes.
12279         (trap): Add CDX notation.
12280         (ctrapsi4): Update asm cases and length attribute expression to
12281         handle CDX variant.
12282         * doc/md.texi (Machine Constraints): Document P constraint.
12283
12284 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12285             Cesar Philippidis  <cesar@codesourcery.com>
12286             Chung-Lin Tang  <cltang@codesourcery.com>
12287
12288         * config/nios2/nios2.h (SMALL_INT12): New macro.
12289         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12290         (nios2_valid_addr_expr_p): Use it.
12291         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12292         with implicit "io" instructions on R2.
12293         * config/nios2/constraints.md (w): New constraint.
12294         * config/nios2/predicates.md (ldstio_memory_operand): New.
12295         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12296         operand predicate and constraint.
12297         (ld<bh>io_signed, st<bhw>io>): Likewise.
12298         * doc/md.texi (Machine Constraints): Document w constraint.
12299
12300 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12301             Cesar Philippidis  <cesar@codesourcery.com>
12302             Chung-Lin Tang  <cltang@codesourcery.com>
12303
12304         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12305         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12306         Nios II architecture level.
12307         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12308         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12309         (OPTION_DEFAULT_SPECS): Define.
12310         (ASM_SPEC): Add -march= spec strings.
12311         * config/nios2/nios2.c (nios2_option_override): Check for
12312         conflicts involving new options.
12313         * config.gcc (nios2*-*-*): Support --with-arch=.
12314         * doc/invoke.texi (Option Summary, Nios II Options): Document
12315         -march=, -mbmx, and -mcdx.
12316
12317 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
12318
12319         PR rtl-optimization/66626
12320         * lra-constraints.c (lra_constraints): Prevent equivalence
12321         substitution for static chain pseudo in functions with nonlocal
12322         goto.
12323
12324 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
12325
12326         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12327         (nios2_emit_stack_limit_check): Add size parameter.  Handle
12328         -fstack-limit-symbol as well as -fstack-limit-register.
12329         (nios2_expand_prologue): Emit only a single stack limit check,
12330         even if multiple stack adjustments are required.
12331         (nios2_option_override): Diagnose unsupported combination of -fpic
12332         and -stack-limit-symbol.
12333
12334 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
12335
12336         * Makefile.in (top_srcdir): New.
12337         * configure.ac: Use AM_ZLIB.
12338         * configure: Regeneated.
12339
12340 2015-07-14  Matthias Klose  <doko@ubuntu.com>
12341
12342         PR target/66840
12343         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12344
12345 2015-07-14  Richard Biener  <rguenther@suse.de>
12346
12347         PR tree-optimization/66863
12348         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12349         what we record for conversion use stmt lhs inequalities.
12350
12351 2015-07-14  Richard Biener  <rguenther@suse.de>
12352
12353         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12354         (decision_tree::gen_gimple): Likewise.
12355
12356 2015-07-14  Tom de Vries  <tom@codesourcery.com>
12357
12358         * gcc.c (greater_than_spec_func): Declare forward.
12359         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12360         -ftree-parallelize-loops={0,1}.
12361         (static_spec_functions): Add greater_than_spec_func function with name
12362         "gt".
12363         (greater_than_spec_func): New function.
12364
12365 2015-07-14  Richard Biener  <rguenther@suse.de>
12366
12367         * tree-ssa-dom.c (record_temporary_equivalences): Merge
12368         wideing type conversion case from record_equivalences_from_incoming_edge
12369         and use record_equality to record equivalences.
12370         (record_equivalences_from_incoming_edge): Call
12371         record_temporary_equivalences.
12372
12373 2015-07-14  Richard Biener  <rguenther@suse.de>
12374
12375         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12376         (struct if_expr): New.
12377         (struct with_expr): Likewise.
12378         (is_a_helper): Add helpers for if_expr and with_expr.
12379         (struct simplify): Add simplify_kind enum and member.  Remove
12380         ifexpr_vec member.
12381         (simplify::simplify): Adjust.
12382         (lower_commutative): Adjust.
12383         (lower_opt_convert): Likewise.
12384         (lower_cond): Likewise.
12385         (replace_id): Handle with_expr and if_expr.
12386         (lower_for): Adjust.
12387         (dt_simplify::gen_1): New recursive worker, split out from ...
12388         (dt_simplify::gen): ... here.  Deal with if and with expansion
12389         recursively.
12390         (capture_info::capture_info): Take context argument
12391         (capture_info::walk_result): Only analyze specific result.
12392         (parser::parse_result): New function.
12393         (parser::parse_simplify): Adjust to parse ifs with then end
12394         else case.
12395         (parser::parse_if): Simplify.
12396         (parser::parse_pattern): Pass down simplify kind.
12397         * match.pd: Convert if structure to new syntax.
12398
12399 2015-07-13  Marek Polacek  <polacek@redhat.com>
12400
12401         * rtl.c (rtx_equal_p_cb): Fix typo.
12402
12403 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
12404
12405         * omega.h: Don't include config.h, don't include params.h again if
12406         omega.h has already been included.
12407         * graphite-poly.h: Include sese.h.
12408         * graphite.c: Don't include sese.h, remove needless includes and
12409         minimize includes outside #ifdef HAVE_isl block.
12410         * graphite-blocking.c: Don't include sese.h, remove needless includes,
12411         and wrap entire file in #ifdef HAVE_isl
12412         * graphite-dependences.c: Likewise.
12413         * graphite-interchange.c: Likewise.
12414         * graphite-isl-ast-to-gimple.c: Likewise.
12415         * graphite-optimize-isl.c: Likewise.
12416         * graphite-poly.c: Likewise.
12417         * graphite-scop-detection.c: Likewise.
12418         * graphite-sese-to-poly.c: Likewise.
12419
12420 2015-07-13  Tom de Vries  <tom@codesourcery.com>
12421
12422         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12423
12424 2015-07-13  Renlin Li  <renlin.li@arm.com>
12425
12426         PR rtl/66556
12427         * simplify-rtx.c (simplify_const_relational_operation): Add
12428         side_effects_p checks.
12429
12430 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
12431
12432         * bitmap.h: Fix double word typos.
12433         * builtins.c: Same.
12434         * calls.c: Same.
12435         * cfgloopmanip.c: Same.
12436         * cgraph.c: Same.
12437         * cgraph.h: Same.
12438         * cgraphclones.c: Same.
12439         * combine.c: Same.
12440         * config/aarch64/aarch64-protos.h: Same.
12441         * config/aarch64/aarch64.c: Same.
12442         * config/aarch64/aarch64.md: Same.
12443         * config/arm/arm.md: Same.
12444         * config/arm/arm1020e.md: Same.
12445         * config/arm/arm1026ejs.md: Same.
12446         * config/arm/arm926ejs.md: Same.
12447         * config/arm/fa526.md: Same.
12448         * config/arm/fa606te.md: Same.
12449         * config/arm/fa626te.md: Same.
12450         * config/arm/fa726te.md: Same.
12451         * config/arm/fmp626.md: Same.
12452         * config/darwin.c: Same.
12453         * config/epiphany/epiphany.c: Same.
12454         * config/frv/frv.c: Same.
12455         * config/ft32/ft32.c: Same.
12456         * config/gnu-user.h: Same.
12457         * config/h8300/constraints.md: Same.
12458         * config/i386/i386.c: Same.
12459         * config/i386/i386.md: Same.
12460         * config/iq2000/iq2000.md: Same.
12461         * config/mips/mips.c: Same.
12462         * config/mmix/mmix.md: Same.
12463         * config/moxie/moxie.c: Same.
12464         * config/nds32/nds32.md: Same.
12465         * config/pa/pa.h: Same.
12466         * config/rs6000/aix.h: Same.
12467         * config/rs6000/rs6000.h: Same.
12468         * config/sh/sh.c: Same.
12469         * config/tilegx/tilegx.md: Same.
12470         * config/tilepro/gen-mul-tables.cc: Same.
12471         * cse.c: Same.
12472         * dbxout.c: Same.
12473         * doc/invoke.texi: Same.
12474         * dse.c: Same.
12475         * dwarf2out.c: Same.
12476         * final.c: Same.
12477         * gcc.c: Same.
12478         * genmatch.c: Same.
12479         * gimplify.c: Same.
12480         * hash-table.h: Same.
12481         * internal-fn.c: Same.
12482         * ipa-cp.c: Same.
12483         * ipa-devirt.c: Same.
12484         * ipa-icf.c: Same.
12485         * ipa-icf.h: Same.
12486         * ipa-profile.c: Same.
12487         * ipa-prop.c: Same.
12488         * ipa-prop.h: Same.
12489         * ira.c: Same.
12490         * omp-low.c: Same.
12491         * reg-stack.c: Same.
12492         * regcprop.c: Same.
12493         * reorg.c: Same.
12494         * rtl.h: Same.
12495         * sbitmap.h: Same.
12496         * tree-eh.c: Same.
12497         * tree-inline.c: Same.
12498         * tree-sra.c: Same.
12499         * tree-ssa-dom.c: Same.
12500         * tree-ssa-loop-ivopts.c: Same.
12501         * tree-ssa-structalias.c: Same.
12502         * tree-ssa-tail-merge.c: Same.
12503         * tree-ssa-ter.c: Same.
12504         * tree-ssa-threadupdate.c: Same.
12505         * tree-ssa-uninit.c: Same.
12506         * tree-ssanames.c: Same.
12507         * tree-vect-loop-manip.c: Same.
12508         * tree-vrp.c: Same.
12509         * tree.c: Same.
12510         * valtrack.c: Same.
12511         * vec.h: Same.
12512
12513 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12514
12515         PR middle-end/66726
12516         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12517         tree_ssa_phiopt_worker): Call it.
12518
12519 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12520
12521         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12522         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12523         REG_EQUAL note.
12524
12525 2015-07-11  Marek Polacek  <polacek@redhat.com>
12526
12527         PR middle-end/66353
12528         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12529         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12530         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12531         rather than bb_has_abnormal_call_pred.
12532         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12533         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12534         rather than bb_has_abnormal_call_pred.
12535
12536 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
12537
12538         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12539         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12540         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12541         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12542         v850_legitimate_address_p): New functions.
12543         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12544
12545 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
12546
12547         PR target/66819
12548         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12549         indirect sibcall with register arguments if register available
12550         for argument passing.
12551         (init_cumulative_args): Set cfun->machine->arg_reg_available
12552         to (cum->nregs > 0) or to true if function has a variable
12553         argument list.
12554         (function_arg_advance_32): Set cfun->machine->arg_reg_available
12555         to false if cum->nregs <= 0.
12556         * config/i386/i386.h (machine_function): Add arg_reg_available.
12557
12558 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12559
12560         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12561         and gen_higpart instead of gen_rtx_SUBREG.
12562         * config/i386/i386.md
12563         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12564         (read-modify peephole2): Use gen_lowpart instead of
12565         gen_rtx_SUBREG for operand 5.
12566
12567 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12568
12569         * config/tilepro/gen-mul-tables.cc (main): Change include list for
12570         generated files.
12571         * config/tilepro/mul-tables.c: Regenerate.
12572         * config/tilegx/mul-tables.c: Regenerate.
12573
12574 2015-07-10  Richard Biener  <rguenther@suse.de>
12575
12576         * fold-const.c (distribute_bit_expr): Remove.
12577         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12578         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12579         to A & (B | C) and simplifying A << C1 << C2 to ...
12580         * match.pd: ... patterns here.
12581
12582 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
12583
12584         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12585         Mark mem as READONLY and NOTRAP for PIC symbol.
12586
12587 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
12588
12589         * gimple-predict.h: New file.
12590         (gimple_predict_predictor, gimple_predict_set_predictor,
12591         gimple_predict_outcome, gimple_predict_set_outcome,
12592         gimple_build_predict): Relocate here.
12593         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12594         gimple_predict_outcome, gimple_predict_set_outcome): Move to
12595         gimple-predict.h.
12596         * gimple.c (gimple_build_predict): Move to gimple-predict.h
12597         * basic-block.h: Don't include cfghooks.h.
12598         * backend.h: Don't include predict.h.
12599         * cfghooks.h: Include predict.h.
12600         * gimple-pretty-print.c: Include gimple-predict.h.
12601         * gimplify.c: Likwise.
12602         * predict.c: Adjust includes.
12603         * tree-inline.c: Likewise.
12604         * asan.c: Likewise.
12605         * auto-inc-dec.c: Likewise.
12606         * auto-profile.c: Likewise.
12607         * bb-reorder.c: Likewise.
12608         * builtins.c: Likewise.
12609         * caller-save.c: Likewise.
12610         * calls.c: Likewise.
12611         * cfganal.c: Likewise.
12612         * cfgbuild.c: Likewise.
12613         * cfg.c: Likewise.
12614         * cfgcleanup.c: Likewise.
12615         * cfgexpand.c: Likewise.
12616         * cfghooks.c: Likewise.
12617         * cfgloopanal.c: Likewise.
12618         * cfgloop.c: Likewise.
12619         * cfgloopmanip.c: Likewise.
12620         * cfgrtl.c: Likewise.
12621         * cgraph.c: Likewise.
12622         * cgraphunit.c: Likewise.
12623         * combine.c: Likewise.
12624         * cprop.c: Likewise.
12625         * cse.c: Likewise.
12626         * dce.c: Likewise.
12627         * dojump.c: Likewise.
12628         * dse.c: Likewise.
12629         * except.c: Likewise.
12630         * expmed.c: Likewise.
12631         * expr.c: Likewise.
12632         * final.c: Likewise.
12633         * fold-const.c: Likewise.
12634         * function.c: Likewise.
12635         * fwprop.c: Likewise.
12636         * gcc-plugin.h: Likewise.
12637         * gcse.c: Likewise.
12638         * genattrtab.c: Likewise.
12639         * genemit.c: Likewise.
12640         * gengtype.c: Likewise.
12641         * genopinit.c: Likewise.
12642         * genoutput.c: Likewise.
12643         * genpreds.c: Likewise.
12644         * genrecog.c: Likewise.
12645         * gimple-fold.c: Likewise.
12646         * gimple-iterator.c: Likewise.
12647         * gimple-ssa-isolate-paths.c: Likewise.
12648         * gimple-ssa-strength-reduction.c: Likewise.
12649         * graph.c: Likewise.
12650         * graphite-blocking.c: Likewise.
12651         * graphite.c: Likewise.
12652         * graphite-dependences.c: Likewise.
12653         * graphite-interchange.c: Likewise.
12654         * graphite-isl-ast-to-gimple.c: Likewise.
12655         * graphite-optimize-isl.c: Likewise.
12656         * graphite-poly.c: Likewise.
12657         * graphite-scop-detection.c: Likewise.
12658         * graphite-sese-to-poly.c: Likewise.
12659         * haifa-sched.c: Likewise.
12660         * ifcvt.c: Likewise.
12661         * internal-fn.c: Likewise.
12662         * ipa-cp.c: Likewise.
12663         * ipa-profile.c: Likewise.
12664         * ipa-split.c: Likewise.
12665         * ipa-utils.c: Likewise.
12666         * ira-build.c: Likewise.
12667         * ira-color.c: Likewise.
12668         * ira-conflicts.c: Likewise.
12669         * ira-costs.c: Likewise.
12670         * ira-emit.c: Likewise.
12671         * ira-lives.c: Likewise.
12672         * jump.c: Likewise.
12673         * loop-doloop.c: Likewise.
12674         * loop-init.c: Likewise.
12675         * loop-invariant.c: Likewise.
12676         * loop-unroll.c: Likewise.
12677         * lower-subreg.c: Likewise.
12678         * lra-assigns.c: Likewise.
12679         * lra.c: Likewise.
12680         * lra-coalesce.c: Likewise.
12681         * lra-constraints.c: Likewise.
12682         * lra-lives.c: Likewise.
12683         * lto-cgraph.c: Likewise.
12684         * lto-streamer-in.c: Likewise.
12685         * mode-switching.c: Likewise.
12686         * modulo-sched.c: Likewise.
12687         * omp-low.c: Likewise.
12688         * optabs.c: Likewise.
12689         * passes.c: Likewise.
12690         * postreload.c: Likewise.
12691         * postreload-gcse.c: Likewise.
12692         * profile.c: Likewise.
12693         * recog.c: Likewise.
12694         * regstat.c: Likewise.
12695         * reload1.c: Likewise.
12696         * reorg.c: Likewise.
12697         * rtlanal.c: Likewise.
12698         * sched-ebb.c: Likewise.
12699         * sel-sched-ir.c: Likewise.
12700         * sese.c: Likewise.
12701         * shrink-wrap.c: Likewise.
12702         * simplify-rtx.c: Likewise.
12703         * stmt.c: Likewise.
12704         * store-motion.c: Likewise.
12705         * tracer.c: Likewise.
12706         * trans-mem.c: Likewise.
12707         * tree-call-cdce.c: Likewise.
12708         * tree-cfg.c: Likewise.
12709         * tree-cfgcleanup.c: Likewise.
12710         * tree-chkp.c: Likewise.
12711         * tree-complex.c: Likewise.
12712         * tree-eh.c: Likewise.
12713         * tree-if-conv.c: Likewise.
12714         * tree-loop-distribution.c: Likewise.
12715         * tree-outof-ssa.c: Likewise.
12716         * tree-parloops.c: Likewise.
12717         * tree-predcom.c: Likewise.
12718         * tree-pretty-print.c: Likewise.
12719         * tree-profile.c: Likewise.
12720         * tree-sra.c: Likewise.
12721         * tree-ssa.c: Likewise.
12722         * tree-ssa-coalesce.c: Likewise.
12723         * tree-ssa-dce.c: Likewise.
12724         * tree-ssa-dom.c: Likewise.
12725         * tree-ssa-forwprop.c: Likewise.
12726         * tree-ssa-ifcombine.c: Likewise.
12727         * tree-ssa-loop-ch.c: Likewise.
12728         * tree-ssa-loop-im.c: Likewise.
12729         * tree-ssa-loop-ivcanon.c: Likewise.
12730         * tree-ssa-loop-ivopts.c: Likewise.
12731         * tree-ssa-loop-manip.c: Likewise.
12732         * tree-ssa-loop-prefetch.c: Likewise.
12733         * tree-ssa-loop-unswitch.c: Likewise.
12734         * tree-ssa-math-opts.c: Likewise.
12735         * tree-ssa-phiopt.c: Likewise.
12736         * tree-ssa-pre.c: Likewise.
12737         * tree-ssa-reassoc.c: Likewise.
12738         * tree-ssa-sink.c: Likewise.
12739         * tree-ssa-tail-merge.c: Likewise.
12740         * tree-ssa-threadedge.c: Likewise.
12741         * tree-ssa-threadupdate.c: Likewise.
12742         * tree-switch-conversion.c: Likewise.
12743         * tree-tailcall.c: Likewise.
12744         * tree-vect-data-refs.c: Likewise.
12745         * tree-vect-loop.c: Likewise.
12746         * tree-vect-loop-manip.c: Likewise.
12747         * tree-vectorizer.c: Likewise.
12748         * tree-vrp.c: Likewise.
12749         * ubsan.c: Likewise.
12750         * value-prof.c: Likewise.
12751         * varasm.c: Likewise.
12752         * var-tracking.c: Likewise.
12753         * config/aarch64/aarch64-builtins.c: Likewise.
12754         * config/aarch64/aarch64.c: Likewise.
12755         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12756         * config/alpha/alpha.c: Likewise.
12757         * config/arc/arc.c: Likewise.
12758         * config/arm/arm.c: Likewise.
12759         * config/avr/avr.c: Likewise.
12760         * config/bfin/bfin.c: Likewise.
12761         * config/c6x/c6x.c: Likewise.
12762         * config/cr16/cr16.c: Likewise.
12763         * config/cris/cris.c: Likewise.
12764         * config/darwin.c: Likewise.
12765         * config/darwin-c.c: Likewise.
12766         * config/epiphany/epiphany.c: Likewise.
12767         * config/epiphany/mode-switch-use.c: Likewise.
12768         * config/epiphany/resolve-sw-modes.c: Likewise.
12769         * config/fr30/fr30.c: Likewise.
12770         * config/frv/frv.c: Likewise.
12771         * config/ft32/ft32.c: Likewise.
12772         * config/h8300/h8300.c: Likewise.
12773         * config/i386/i386.c: Likewise.
12774         * config/i386/winnt.c: Likewise.
12775         * config/ia64/ia64.c: Likewise.
12776         * config/iq2000/iq2000.c: Likewise.
12777         * config/lm32/lm32.c: Likewise.
12778         * config/m32c/m32c.c: Likewise.
12779         * config/m32r/m32r.c: Likewise.
12780         * config/m68k/m68k.c: Likewise.
12781         * config/mcore/mcore.c: Likewise.
12782         * config/mep/mep.c: Likewise.
12783         * config/microblaze/microblaze.c: Likewise.
12784         * config/mips/mips.c: Likewise.
12785         * config/mmix/mmix.c: Likewise.
12786         * config/mn10300/mn10300.c: Likewise.
12787         * config/moxie/moxie.c: Likewise.
12788         * config/msp430/msp430.c: Likewise.
12789         * config/nds32/nds32.c: Likewise.
12790         * config/nds32/nds32-cost.c: Likewise.
12791         * config/nds32/nds32-fp-as-gp.c: Likewise.
12792         * config/nds32/nds32-intrinsic.c: Likewise.
12793         * config/nds32/nds32-isr.c: Likewise.
12794         * config/nds32/nds32-md-auxiliary.c: Likewise.
12795         * config/nds32/nds32-memory-manipulation.c: Likewise.
12796         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12797         * config/nds32/nds32-predicates.c: Likewise.
12798         * config/nios2/nios2.c: Likewise.
12799         * config/nvptx/nvptx.c: Likewise.
12800         * config/pa/pa.c: Likewise.
12801         * config/pdp11/pdp11.c: Likewise.
12802         * config/rl78/rl78.c: Likewise.
12803         * config/rs6000/rs6000.c: Likewise.
12804         * config/rx/rx.c: Likewise.
12805         * config/s390/s390.c: Likewise.
12806         * config/sh/sh.c: Likewise.
12807         * config/sh/sh-mem.cc: Likewise.
12808         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12809         * config/sh/sh_treg_combine.cc: Likewise.
12810         * config/sparc/sparc.c: Likewise.
12811         * config/spu/spu.c: Likewise.
12812         * config/stormy16/stormy16.c: Likewise.
12813         * config/tilegx/tilegx.c: Likewise.
12814         * config/tilepro/tilepro.c: Likewise.
12815         * config/v850/v850.c: Likewise.
12816         * config/vax/vax.c: Likewise.
12817         * config/visium/visium.c: Likewise.
12818         * config/xtensa/xtensa.c: Likewise.
12819
12820 2015-07-10  Richard Biener  <rguenther@suse.de>
12821
12822         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12823         (decision_tree::gen_gimple): Likewise.
12824         (decision_tree::gen_generic): Likewise.
12825
12826 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
12827
12828         PR target/66813
12829         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12830         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12831
12832 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
12833
12834         PR middle-end/66820
12835         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12836         or ORT_TASK contexts.
12837         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12838         is non-zero.
12839
12840 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12841
12842         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12843         above function.
12844
12845 2015-07-10  Tom de Vries  <tom@codesourcery.com>
12846
12847         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12848         insert nit + 1 bound.
12849
12850 2015-07-10  Richard Biener  <rguenther@suse.de>
12851
12852         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12853         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12854         (if_convertible_loop_p_1): For this always compute bb predicates.
12855         (if_convertible_loop_p): And free them.
12856
12857 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12858
12859         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12860         in dump message.
12861
12862 2015-07-10  Richard Biener  <rguenther@suse.de>
12863
12864         PR tree-optimization/66823
12865         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12866         inverted predicate.
12867
12868 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
12869
12870         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12871         to handle mips[32|64]r3 and mips[32|64]r5.
12872
12873 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
12874
12875         PR middle-end/66633
12876         * tree-nested.c (get_static_chain): Or in a flag into
12877         info->static_chain_added.
12878         (get_frame_field, get_nonlocal_debug_decl): Likewise.
12879         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12880         2015-07-01 changes.
12881         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12882         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12883         add it to clauses.
12884
12885         PR tree-optimization/66718
12886         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12887         field.
12888         (vect_simd_lane_linear): New function.
12889         (vectorizable_simd_clone_call): Support using linear arguments for
12890         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12891
12892 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
12893
12894         PR target/66821
12895         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12896
12897 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12898
12899         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12900         Use machine mode, not enum machine_mode in the prototype.
12901
12902         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12903         classify 128-bit floating point support.
12904         (FLOAT128_IBM_P): Likewise.
12905         (FLOAT128_VECTOR_P): Likewise.
12906         (FLOAT128_2REG_P): Likewise.
12907         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12908         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12909         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12910         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12911
12912         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12913         tests against TFmode/TDmode, since those modes do not use VSX
12914         addresses.
12915         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12916         support.
12917         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12918         tests against TFmode, etc.
12919         (invalid_e500_subreg): Add tests against IFmode/KFmode.
12920         (reg_offset_addressing_ok_p): Likewise.
12921         (rs6000_legitimate_offset_address_p): Likewise.
12922         (rs6000_legitimize_address): Likewise.
12923         (rs6000_legitimize_reload_address): Likewise.
12924         (rs6000_legitimate_address_p): Clean up tests against TFmode and
12925         TDmode to use the new helper macros, which will include IFmode and
12926         KFmode.
12927         (rs6000_emit_move): Likewise.
12928         (rs6000_darwin64_record_arg_recurse): Likewise.
12929         (print_operand): Likewise.
12930         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12931         that uses a single vector register as a vector and not as a
12932         floating point register in terms of the calling sequence.
12933         (rs6000_discover_homogeneous_aggregate): Likewise.
12934         (rs6000_return_in_memory): Likewise.
12935         (init_cumulative_args): Likewise.
12936         (rs6000_function_arg_boundary): Likewise.
12937         (rs6000_function_arg_advance_1): Likewise.
12938         (rs6000_function_arg): Likewise.
12939         (rs6000_pass_by_reference): Likewise.
12940         (rs6000_gimplify_va_arg): Likewise.
12941         (rs6000_secondary_reload_memory): Use machine_mode not enum
12942         machine mode.
12943         (rs6000_split_multireg_move): Use new helper macros.
12944         (spe_func_has_64bit_regs_p): Likewise.
12945         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
12946         (output_toc): Use new helper macros.
12947         (rs6000_register_move_cost): Likewise.
12948         (rs6000_function_value): Add IEEE 128-bit floating point calling
12949         sequence support.
12950         (rs6000_libcall_value): Likewise.
12951         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
12952         floating point support.
12953         (rs6000_vector_mode_supported_p): Likewise.
12954
12955 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
12956
12957         PR rtl-optimization/66782
12958         * lra-int.h (struct lra_insn_recog_data): Add comment about
12959         clobbered hard regs for arg_hard_regs.
12960         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
12961         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
12962         Add condition for processing used hard regs.
12963         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
12964         Process clobbered hard regs.
12965
12966 2015-07-09  Michael Matz  <matz@suse.de>
12967
12968         * genmatch.c (fprintf_indent): New function.
12969         (operand::gen_transform): Add indent parameter.
12970         (expr::gen_transform, c_expr::gen_transform,
12971         capture::gen_transform): Ditto and use fprintf_indent.
12972         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
12973         (dt_operand::gen, dt_operand::gen_predicate,
12974         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
12975         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
12976         (decision_tree::gen_gimple): Adjust calls and indent generated
12977         code.
12978         (decision_tree::gen_generic): Ditto.
12979         (write_predicate): Ditto.
12980
12981 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
12982
12983         PR target/66814
12984         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
12985         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
12986         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
12987         {GENERAL,SSE,MMX}_REG_P where appropriate.
12988
12989 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
12990
12991         * lto-streamer.h: Don't include target.h and alloc-pool.h.
12992         * builtins.c: Adjust includes.
12993         * gimple.c: Likewise.
12994         * ipa-icf.c: Likewise.
12995         * lto-opts.c: Likewise.
12996         * ipa-reference.c: Likewise.
12997         * lto-section-out.c: Likewise.
12998         * lto-streamer-in.c: Likewise.
12999         * lto-streamer-out.c: Likewise.
13000         * opts-global.c: Likewise.
13001         * symtab.c: Likewise.
13002         * tree-chkp.c: Likewise.
13003         * tree-ssa-live.c: Likewise.
13004         * tree-streamer-in.c: Likewise.
13005         * tree-streamer-out.c: Likewise.
13006         * config/darwin.c: Likewise.
13007         * config/i386/winnt.c: Likewise.
13008
13009 2015-07-09  Richard Biener  <rguenther@suse.de>
13010
13011         * genmatch.c (struct expr): Add force_single_use flag.
13012         (expr::expr): Add copy constructor.
13013         (capture_info::walk_match): Gather force_single_use captures.
13014         (expr::gen_transform): Use possibly NULLified sequence.
13015         (dt_simplify::gen): Apply single-use restrictions by NULLifying
13016         seq if any constrained expr is not single-use.
13017         (parser::parse_expr): Refactor to allow multiple flags.  Handle
13018         's' flag to force an expression have a single-use if the pattern
13019         simplifies to more than one statement.
13020         * match.pd: Convert most single_use conditionals to :s flags.
13021
13022 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13023
13024         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13025         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13026         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13027
13028 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
13029
13030         * flags.h: Don't include flag-types.h or options.h.
13031         * opts-common.c: Adjust includes.
13032         * opts-global.c: Likewise.
13033         * common/config/epiphany/epiphany-common.c: Likewise.
13034
13035 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13036
13037         PR target/66818
13038         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13039         for IA MCU.
13040
13041 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
13042
13043         PR target/66817
13044         * config/i386/i386.c (ix86_return_in_memory): Return true
13045         if int_size_in_bytes returns negative for IA MCU.
13046
13047 2015-07-09  Marek Polacek  <polacek@redhat.com>
13048
13049         PR tree-optimization/66718
13050         * Makefile.in (OBJS): Add gimple-laddress.o.
13051         * passes.def: Schedule pass_laddress.
13052         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13053         * tree-pass.h (make_pass_laddress): Declare.
13054         * gimple-laddress.c: New file.
13055
13056 2015-07-09  Richard Biener  <rguenther@suse.de>
13057
13058         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13059
13060 2015-07-09  Richard Biener  <rguenther@suse.de>
13061
13062         PR tree-optimization/66807
13063         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13064
13065 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
13066
13067         * function.c (stack_protect_epilogue): Use if rather than switch for
13068         check targetm.have_stack_protect_test.
13069
13070 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13071
13072         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13073         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13074         * config/arc/arc.h: Likewise.
13075         * config/arm/arm.h: Likewise.
13076         * config/bfin/bfin.h: Likewise.
13077         * config/epiphany/epiphany.h: Likewise.
13078         * config/frv/frv.h: Likewise.
13079         * config/ia64/ia64.h: Likewise.
13080         * config/iq2000/iq2000.h: Likewise.
13081         * config/lm32/lm32.h: Likewise.
13082         * config/m32r/m32r.h: Likewise.
13083         * config/mcore/mcore.h: Likewise.
13084         * config/mep/mep.h: Likewise.
13085         * config/microblaze/microblaze.h: Likewise.
13086         * config/mips/mips.h: Likewise.
13087         * config/mmix/mmix.h: Likewise.
13088         * config/mn10300/mn10300.h: Likewise.
13089         * config/nds32/nds32.h: Likewise.
13090         * config/nios2/nios2.h: Likewise.
13091         * config/pa/pa.h: Likewise.
13092         * config/rl78/rl78.h: Likewise.
13093         * config/sh/sh.h: Likewise.
13094         * config/sparc/sparc.h: Likewise.
13095         * config/stormy16/stormy16.h: Likewise.
13096         * config/tilegx/tilegx.h: Likewise.
13097         * config/tilepro/tilepro.h: Likewise.
13098         * config/v850/v850.h: Likewise.
13099         * config/xtensa/xtensa.h: Likewise.
13100         * doc/tm.texi: Regenerate.
13101         * doc/tm.texi.in: Adjust.
13102         * combine.c (simplify_set): Likewise.
13103         (simplify_comparison): Likewise.
13104         * expr.c (store_constructor): Likewise.
13105         * internal-fn.c (expand_arith_overflow): Likewise.
13106         * reload.c (push_reload): Likewise.
13107         (find_reloads): Likewise.
13108         (find_reloads_subreg_address): Likewise.
13109         * reload1.c (eliminate_regs_1): Likewise.
13110         * rtlanal.c (nonzero_bits1): Likewise.
13111         (num_sign_bit_copies1): Likewise.
13112         * simplify-rtx.c (simplify_truncation): Likewise.
13113
13114 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13115
13116         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13117         of AUTO_INC_DEC with the preprocessor.
13118         * combine.c (combine_instructions): Likewise.
13119         (can_combine_p): Likewise.
13120         (try_combine): Likewise.
13121         * emit-rtl.c (try_split): Likewise.
13122         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13123         * lower-subreg.c (resolve_simple_move): Likewise.
13124         * lra.c (update_inc_notes): Likewise.
13125         * recog.c (asm_operand_ok): Likewise.
13126         (constrain_operands): Likewise.
13127         * regrename.c (scan_rtx_address): Likewise.
13128         * reload.c (update_auto_inc_notes): Likewise.
13129         (reg_inc_found_and_valid_p): Likewise.
13130         * reload1.c (reload): Likewise.
13131         (emit_input_reload_insns): Likewise.
13132         (delete_output_reload): Likewise.
13133         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13134         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13135
13136 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13137
13138         * rtl.h: Always define AUTO_INC_DEC.
13139         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13140         * combine.c (combine_instructions): Likewise.
13141         (can_combine_p): Likewise.
13142         (try_combine): Likewise.
13143         * emit-rtl.c (try_split): Likewise.
13144         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13145         * lower-subreg.c (resolve_simple_move): Likewise.
13146         * lra.c (update_inc_notes): Likewise.
13147         * recog.c (asm_operand_ok): Likewise.
13148         (constrain_operands): Likewise.
13149         * regrename.c (scan_rtx_address): Likewise.
13150         * reload.c (update_auto_inc_notes): Likewise.
13151         (find_equiv_reg): Likewise.
13152         * reload1.c (reload): Likewise.
13153         (reload_as_needed): Likewise.
13154         (choose_reload_regs): Likewise.
13155         (emit_input_reload_insns): Likewise.
13156         (delete_output_reload): Likewise.
13157         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13158         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13159
13160 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13161
13162         * combine.c (can_combine_def_p): Don't check the value of
13163         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13164         (combinable_i3pat): Likewise.
13165         (mark_used_regs_combine): Likewise.
13166         * regrename.c (rename_chains): Likewise.
13167         * reload.c (find_reloads_address): Likewise.
13168         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13169
13170 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13171
13172         * combine.c (update_rsp_from_reg_equal): Don't check if
13173         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13174         (reg_nonzero_bits_for_combine): Likewise.
13175         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13176         1.
13177         * config/frv/frv.h: Likewise.
13178         * config/lm32/lm32.h: Likewise.
13179         * config/mep/mep.h: Likewise.
13180         * config/mips/mips.h: Likewise.
13181         * config/rs6000/rs6000.h: Likewise.
13182         * config/sh/sh.h: Likewise.
13183         * config/tilegx/tilegx.h (enum reg_class): Likewise.
13184         * config/tilepro/tilepro.h: Likewise.
13185         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13186         * doc/tm.texi: Regenerate.
13187         * doc/tm.texi.in: Adjust.
13188         * rtlanal.c (nonzero_bits1): Likewise.
13189
13190 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13191
13192         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13193         with the preprocessor.
13194         (combine_instructions): Likewise.
13195         (try_combine): Likewise.
13196         (subst): Likewise.
13197         (distribute_notes): Likewise.
13198
13199 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13200
13201         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13202         defined.
13203         (simplify_set): Likewise.
13204         * cse.c (cse_insn): Likewise.
13205         * fold-const.c (fold_single_bit_test): Likewise.
13206         (fold_unary_loc): Likewise.
13207         * postreload.c (reload_cse_simplify_set): Likewise.
13208         (reload_cse_simplify_operands): Likewise.
13209
13210 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
13211
13212         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13213         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13214
13215 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13216
13217         PR target/66746
13218         * config/i386/x86intrin.h: Include <adxintrin.h> even if
13219         __iamcu__ is defined.
13220
13221 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13222
13223         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13224
13225 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
13226
13227         PR target/66523
13228         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13229         names from preservation.
13230
13231 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
13232
13233         PR target/66806
13234         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13235         change for IAMCU.
13236         (function_arg_advance_32): Don't pass vectors in registers for
13237         IAMCU.
13238         (function_arg_32): Likewise.
13239         (ix86_return_in_memory): Don't return vectors in registers for
13240         IAMCU.
13241
13242 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13243
13244         PR middle-end/66334
13245         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13246         hard regno live at the start of BB with incoming abnormal edges.
13247         * lra-lives.c (process_bb_lives): Ditto.
13248
13249 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
13250
13251         PR libgomp/65099
13252         * config/nvptx/mkoffload.c (main): Create an offload image only in
13253         64-bit configurations.
13254
13255 2015-07-08  Martin Liska  <mliska@suse.cz>
13256
13257         PR bootstrap/66744
13258         * tree-sra.c (create_access_1): Call ctor without brackets.
13259         (create_artificial_child_access): Likewise.
13260
13261 2015-07-08  Richard Biener  <rguenther@suse.de>
13262
13263         PR tree-optimization/66793
13264         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13265         Properly split the block after stmts ending it.
13266
13267 2015-07-08  Richard Biener  <rguenther@suse.de>
13268
13269         PR tree-optimization/66794
13270         * passes.c (execute_function_todo): Assert that post-dominators
13271         are not computed.
13272         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13273         Free post-dominators.
13274
13275 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13276
13277         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13278         with early exit.
13279
13280 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
13281
13282         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13283         more than or equal 8 and less than 32 when optimizing for size.
13284
13285 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13286
13287         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13288         COSTS_N_INSNS (1) and increment it appropriately throughout the
13289         function.
13290
13291 2015-07-08  Richard Biener  <rguenther@suse.de>
13292
13293         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13294
13295 2015-07-08  Alan Modra  <amodra@gmail.com>
13296
13297         * target.def (rtx_costs): Remove "code" param, add "mode".
13298         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13299         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
13300         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13301         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
13302         call.  Track mode when given in rtx.
13303         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
13304         (default_address_cost): Pass Pmode to rtx_cost.
13305         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13306         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13307         with NULL set.
13308         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
13309         (notreg_cost): Add mode param.  Use it.
13310         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
13311         mode param and pass to set_src_cost.  Update all calls.
13312         (hash_scan_set): Formatting.
13313         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13314         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13315         * hooks.h: Ditto.
13316         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13317         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13318         emit_store_flag): Update set_src_cost and rtx_cost calls.
13319         * auto-inc-dec.c (attempt_change): Likewise.
13320         * calls.c (precompute_register_parameters): Likewise.
13321         * combine.c (expand_compound_operation, make_extraction,
13322         force_to_mode, distribute_and_simplify_rtx): Likewise.
13323         * dojump.c (prefer_and_bit_test): Likewise.
13324         * dse.c (find_shift_sequence): Likewise.
13325         * expr.c (compress_float_constant): Likewise.
13326         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13327         * ifcvt.c (noce_try_sign_mask): Likewise.
13328         * loop-doloop.c (doloop_optimize): Likewise.
13329         * loop-invariant.c (create_new_invariant): Likewise.
13330         * lower-subreg.c (shift_cost, compute_costs): Likewise.
13331         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13332         lshift_cheap_p): Likewise.
13333         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13334         try_replace_in_use, reload_cse_move2add): Likewise.
13335         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13336         Likewise.
13337         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13338         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13339         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13340         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13341         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13342         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
13343         to rtx_cost calls.
13344         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13345         * config/arc/arc.c (arc_rtx_costs): Likewise.
13346         * config/arm/arm.c (arm_rtx_costs): Likewise.
13347         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13348         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13349         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13350         * config/cris/cris.c (cris_rtx_costs): Likewise.
13351         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13352         * config/frv/frv.c (frv_rtx_costs): Likewise.
13353         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13354         * config/i386/i386.c (ix86_rtx_costs): Likewise.
13355         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13356         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13357         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13358         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13359         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13360         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13361         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13362         * config/mep/mep.c (mep_rtx_cost): Likewise.
13363         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13364         * config/mips/mips.c (mips_rtx_costs): Likewise.
13365         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13366         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13367         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13368         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13369         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13370         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13371         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13372         * config/pa/pa.c (hppa_rtx_costs): Likewise.
13373         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13374         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13375         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13376         * config/s390/s390.c (s390_rtx_costs): Likewise.
13377         * config/sh/sh.c (sh_rtx_costs): Likewise.
13378         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13379         * config/spu/spu.c (spu_rtx_costs): Likewise.
13380         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13381         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13382         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13383         * config/v850/v850.c (v850_rtx_costs): Likewise.
13384         * config/vax/vax.c (vax_rtx_costs): Likewise.
13385         * config/visium/visium.c (visium_rtx_costs): Likewise.
13386         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13387         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13388         "code" param, and pass as outer_code to first rtx_cost call.  Pass
13389         mode to rtx_cost calls.
13390         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13391         calls.
13392         (aarch64_rtx_costs_wrapper): Update.
13393         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13394         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13395         rtx_cost calls.
13396         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13397         and rtx_cost calls.
13398         (avr_operand_rtx_cost): Similarly.
13399         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13400         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13401         * config/mips/mips.c (mips_stack_address_p): Comment typo.
13402         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13403         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13404         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13405         rtx_cost.
13406         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13407         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13408         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13409         * doc/tm.texi: Regenerate.
13410
13411 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
13412
13413         * tree-core.h: Include symtab.h.
13414         * rtl.h: Include hard-reg-set.h but not flags.h.
13415         (HARD_CONST): Remove condition compilation involving HARD_CONST since
13416         hard-reg-set.h is always included.
13417         * regs.h: Don't include hard-reg-set.h or rtl.h.
13418         * cfg.h: Include dominance.h.
13419         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13420         * backend.h: New.  Aggregate commonly used backend header files.
13421         * gimple-ssa.h: Don't include tree-hasher.h.
13422         * ssa.h: New.  Aggregate commonly used SSA header files.
13423         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13424         * sel-sched-ir.h: Flatten includes.
13425         * lra-int.h: Flatten completely.
13426         * sel-sched-dump.h: Flatten includes.
13427         * ira-int.h: Flatten includes.
13428         * gimple-streamer.h: Remove all includes.
13429         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13430         * resource.h: Flatten hard-reg-set.h and df.h.
13431         * sched-int.h: Flatten insn-arrt.h and df.h.
13432         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13433         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13434         * genattrtab.c (write_header): Adjust generated includes.
13435         * genautomata.c (main): Likewise.
13436         * genconditions.c (write-header): Likewise.
13437         * genemit.c (main): Likewise.
13438         * gengtype.c (open_base_files): Likewise.
13439         * genopinit.c (main): Likewise.
13440         * genoutput.c (output_prologue): Likewise.
13441         * genpeep.c (main): Likewise.
13442         * genpreds.c (write_insn_preds_c): Likewise.
13443         * genrecog.c (write_header): Likewise.
13444         * alias.c: Adjust includes.
13445         * asan.c: Likewise.
13446         * attribs.c: Likewise.
13447         * auto-inc-dec.c: Likewise.
13448         * auto-profile.c: Likewise.
13449         * bb-reorder.c: Likewise.
13450         * bt-load.c: Likewise.
13451         * builtins.c: Likewise.
13452         * caller-save.c: Likewise.
13453         * calls.c: Likewise.
13454         * ccmp.c: Likewise.
13455         * cfg.c: Likewise.
13456         * cfganal.c: Likewise.
13457         * cfgbuild.c: Likewise.
13458         * cfgcleanup.c: Likewise.
13459         * cfgexpand.c: Likewise.
13460         * cfghooks.c: Likewise.
13461         * cfgloop.c: Likewise.
13462         * cfgloopanal.c: Likewise.
13463         * cfgloopmanip.c: Likewise.
13464         * cfgrtl.c: Likewise.
13465         * cgraph.c: Likewise.
13466         * cgraphbuild.c: Likewise.
13467         * cgraphclones.c: Likewise.
13468         * cgraphunit.c: Likewise.
13469         * cilk-common.c: Likewise.
13470         * combine-stack-adj.c: Likewise.
13471         * combine.c: Likewise.
13472         * compare-elim.c: Likewise.
13473         * convert.c: Likewise.
13474         * coverage.c: Likewise.
13475         * cppbuiltin.c: Likewise.
13476         * cprop.c: Likewise.
13477         * cse.c: Likewise.
13478         * cselib.c: Likewise.
13479         * data-streamer-in.c: Likewise.
13480         * data-streamer-out.c: Likewise.
13481         * data-streamer.c: Likewise.
13482         * dbxout.c: Likewise.
13483         * dce.c: Likewise.
13484         * ddg.c: Likewise.
13485         * debug.c: Likewise.
13486         * df-core.c: Likewise.
13487         * df-problems.c: Likewise.
13488         * df-scan.c: Likewise.
13489         * dfp.c: Likewise.
13490         * dojump.c: Likewise.
13491         * dominance.c: Likewise.
13492         * domwalk.c: Likewise.
13493         * double-int.c: Likewise.
13494         * dse.c: Likewise.
13495         * dumpfile.c: Likewise.
13496         * dwarf2asm.c: Likewise.
13497         * dwarf2cfi.c: Likewise.
13498         * dwarf2out.c: Likewise.
13499         * emit-rtl.c: Likewise.
13500         * et-forest.c: Likewise.
13501         * except.c: Likewise.
13502         * explow.c: Likewise.
13503         * expmed.c: Likewise.
13504         * expr.c: Likewise.
13505         * final.c: Likewise.
13506         * fixed-value.c: Likewise.
13507         * fold-const.c: Likewise.
13508         * function.c: Likewise.
13509         * fwprop.c: Likewise.
13510         * gcc-plugin.h: Likewise.
13511         * gcse-common.c: Likewise.
13512         * gcse.c: Likewise.
13513         * generic-match-head.c: Likewise.
13514         * ggc-page.c: Likewise.
13515         * gimple-builder.c: Likewise.
13516         * gimple-expr.c: Likewise.
13517         * gimple-fold.c: Likewise.
13518         * gimple-iterator.c: Likewise.
13519         * gimple-low.c: Likewise.
13520         * gimple-match-head.c: Likewise.
13521         * gimple-pretty-print.c: Likewise.
13522         * gimple-ssa-isolate-paths.c: Likewise.
13523         * gimple-ssa-strength-reduction.c: Likewise.
13524         * gimple-streamer-in.c: Likewise.
13525         * gimple-streamer-out.c: Likewise.
13526         * gimple-walk.c: Likewise.
13527         * gimple.c: Likewise.
13528         * gimplify-me.c: Likewise.
13529         * gimplify.c: Likewise.
13530         * godump.c: Likewise.
13531         * graph.c: Likewise.
13532         * graphite-blocking.c: Likewise.
13533         * graphite-dependences.c: Likewise.
13534         * graphite-interchange.c: Likewise.
13535         * graphite-isl-ast-to-gimple.c: Likewise.
13536         * graphite-optimize-isl.c: Likewise.
13537         * graphite-poly.c: Likewise.
13538         * graphite-scop-detection.c: Likewise.
13539         * graphite-sese-to-poly.c: Likewise.
13540         * graphite.c: Likewise.
13541         * haifa-sched.c: Likewise.
13542         * hw-doloop.c: Likewise.
13543         * ifcvt.c: Likewise.
13544         * init-regs.c: Likewise.
13545         * internal-fn.c: Likewise.
13546         * ipa-chkp.c: Likewise.
13547         * ipa-comdats.c: Likewise.
13548         * ipa-cp.c: Likewise.
13549         * ipa-devirt.c: Likewise.
13550         * ipa-icf-gimple.c: Likewise.
13551         * ipa-icf.c: Likewise.
13552         * ipa-inline-analysis.c: Likewise.
13553         * ipa-inline-transform.c: Likewise.
13554         * ipa-inline.c: Likewise.
13555         * ipa-polymorphic-call.c: Likewise.
13556         * ipa-profile.c: Likewise.
13557         * ipa-prop.c: Likewise.
13558         * ipa-pure-const.c: Likewise.
13559         * ipa-ref.c: Likewise.
13560         * ipa-reference.c: Likewise.
13561         * ipa-split.c: Likewise.
13562         * ipa-utils.c: Likewise.
13563         * ipa-visibility.c: Likewise.
13564         * ipa.c: Likewise.
13565         * ira-build.c: Likewise.
13566         * ira-color.c: Likewise.
13567         * ira-conflicts.c: Likewise.
13568         * ira-costs.c: Likewise.
13569         * ira-emit.c: Likewise.
13570         * ira-lives.c: Likewise.
13571         * ira.c: Likewise.
13572         * jump.c: Likewise.
13573         * langhooks.c: Likewise.
13574         * lcm.c: Likewise.
13575         * loop-doloop.c: Likewise.
13576         * loop-init.c: Likewise.
13577         * loop-invariant.c: Likewise.
13578         * loop-iv.c: Likewise.
13579         * loop-unroll.c: Likewise.
13580         * lower-subreg.c: Likewise.
13581         * lra-assigns.c: Likewise.
13582         * lra-coalesce.c: Likewise.
13583         * lra-constraints.c: Likewise.
13584         * lra-eliminations.c: Likewise.
13585         * lra-lives.c: Likewise.
13586         * lra-remat.c: Likewise.
13587         * lra-spills.c: Likewise.
13588         * lra.c: Likewise.
13589         * lto-cgraph.c: Likewise.
13590         * lto-compress.c: Likewise.
13591         * lto-opts.c: Likewise.
13592         * lto-section-in.c: Likewise.
13593         * lto-section-out.c: Likewise.
13594         * lto-streamer-in.c: Likewise.
13595         * lto-streamer-out.c: Likewise.
13596         * lto-streamer.c: Likewise.
13597         * mcf.c: Likewise.
13598         * mode-switching.c: Likewise.
13599         * modulo-sched.c: Likewise.
13600         * omega.c: Likewise.
13601         * omp-low.c: Likewise.
13602         * optabs.c: Likewise.
13603         * opts-global.c: Likewise.
13604         * passes.c: Likewise.
13605         * plugin.c: Likewise.
13606         * postreload-gcse.c: Likewise.
13607         * postreload.c: Likewise.
13608         * predict.c: Likewise.
13609         * print-rtl.c: Likewise.
13610         * print-tree.c: Likewise.
13611         * profile.c: Likewise.
13612         * real.c: Likewise.
13613         * realmpfr.c: Likewise.
13614         * recog.c: Likewise.
13615         * ree.c: Likewise.
13616         * reg-stack.c: Likewise.
13617         * regcprop.c: Likewise.
13618         * reginfo.c: Likewise.
13619         * regrename.c: Likewise.
13620         * regstat.c: Likewise.
13621         * reload.c: Likewise.
13622         * reload1.c: Likewise.
13623         * reorg.c: Likewise.
13624         * resource.c: Likewise.
13625         * rtl-chkp.c: Likewise.
13626         * rtlanal.c: Likewise.
13627         * rtlhooks.c: Likewise.
13628         * sanopt.c: Likewise.
13629         * sched-deps.c: Likewise.
13630         * sched-ebb.c: Likewise.
13631         * sched-rgn.c: Likewise.
13632         * sched-vis.c: Likewise.
13633         * sdbout.c: Likewise.
13634         * sel-sched-dump.c: Likewise.
13635         * sel-sched-ir.c: Likewise.
13636         * sel-sched.c: Likewise.
13637         * sese.c: Likewise.
13638         * shrink-wrap.c: Likewise.
13639         * simplify-rtx.c: Likewise.
13640         * stack-ptr-mod.c: Likewise.
13641         * stmt.c: Likewise.
13642         * stor-layout.c: Likewise.
13643         * store-motion.c: Likewise.
13644         * stringpool.c: Likewise.
13645         * symtab.c: Likewise.
13646         * target-globals.c: Likewise.
13647         * targhooks.c: Likewise.
13648         * toplev.c: Likewise.
13649         * tracer.c: Likewise.
13650         * trans-mem.c: Likewise.
13651         * tree-affine.c: Likewise.
13652         * tree-browser.c: Likewise.
13653         * tree-call-cdce.c: Likewise.
13654         * tree-cfg.c: Likewise.
13655         * tree-cfgcleanup.c: Likewise.
13656         * tree-chkp-opt.c: Likewise.
13657         * tree-chkp.c: Likewise.
13658         * tree-chrec.c: Likewise.
13659         * tree-complex.c: Likewise.
13660         * tree-data-ref.c: Likewise.
13661         * tree-dfa.c: Likewise.
13662         * tree-diagnostic.c: Likewise.
13663         * tree-dump.c: Likewise.
13664         * tree-eh.c: Likewise.
13665         * tree-emutls.c: Likewise.
13666         * tree-if-conv.c: Likewise.
13667         * tree-inline.c: Likewise.
13668         * tree-into-ssa.c: Likewise.
13669         * tree-iterator.c: Likewise.
13670         * tree-loop-distribution.c: Likewise.
13671         * tree-nested.c: Likewise.
13672         * tree-nrv.c: Likewise.
13673         * tree-object-size.c: Likewise.
13674         * tree-outof-ssa.c: Likewise.
13675         * tree-parloops.c: Likewise.
13676         * tree-phinodes.c: Likewise.
13677         * tree-predcom.c: Likewise.
13678         * tree-pretty-print.c: Likewise.
13679         * tree-profile.c: Likewise.
13680         * tree-scalar-evolution.c: Likewise.
13681         * tree-sra.c: Likewise.
13682         * tree-ssa-address.c: Likewise.
13683         * tree-ssa-alias.c: Likewise.
13684         * tree-ssa-ccp.c: Likewise.
13685         * tree-ssa-coalesce.c: Likewise.
13686         * tree-ssa-copy.c: Likewise.
13687         * tree-ssa-copyrename.c: Likewise.
13688         * tree-ssa-dce.c: Likewise.
13689         * tree-ssa-dom.c: Likewise.
13690         * tree-ssa-dse.c: Likewise.
13691         * tree-ssa-forwprop.c: Likewise.
13692         * tree-ssa-ifcombine.c: Likewise.
13693         * tree-ssa-live.c: Likewise.
13694         * tree-ssa-loop-ch.c: Likewise.
13695         * tree-ssa-loop-im.c: Likewise.
13696         * tree-ssa-loop-ivcanon.c: Likewise.
13697         * tree-ssa-loop-ivopts.c: Likewise.
13698         * tree-ssa-loop-manip.c: Likewise.
13699         * tree-ssa-loop-niter.c: Likewise.
13700         * tree-ssa-loop-prefetch.c: Likewise.
13701         * tree-ssa-loop-unswitch.c: Likewise.
13702         * tree-ssa-loop.c: Likewise.
13703         * tree-ssa-math-opts.c: Likewise.
13704         * tree-ssa-operands.c: Likewise.
13705         * tree-ssa-phiopt.c: Likewise.
13706         * tree-ssa-phiprop.c: Likewise.
13707         * tree-ssa-pre.c: Likewise.
13708         * tree-ssa-propagate.c: Likewise.
13709         * tree-ssa-reassoc.c: Likewise.
13710         * tree-ssa-sccvn.c: Likewise.
13711         * tree-ssa-scopedtables.c: Likewise.
13712         * tree-ssa-sink.c: Likewise.
13713         * tree-ssa-strlen.c: Likewise.
13714         * tree-ssa-structalias.c: Likewise.
13715         * tree-ssa-tail-merge.c: Likewise.
13716         * tree-ssa-ter.c: Likewise.
13717         * tree-ssa-threadedge.c: Likewise.
13718         * tree-ssa-threadupdate.c: Likewise.
13719         * tree-ssa-uncprop.c: Likewise.
13720         * tree-ssa-uninit.c: Likewise.
13721         * tree-ssa.c: Likewise.
13722         * tree-ssanames.c: Likewise.
13723         * tree-stdarg.c: Likewise.
13724         * tree-streamer-in.c: Likewise.
13725         * tree-streamer-out.c: Likewise.
13726         * tree-streamer.c: Likewise.
13727         * tree-switch-conversion.c: Likewise.
13728         * tree-tailcall.c: Likewise.
13729         * tree-vect-data-refs.c: Likewise.
13730         * tree-vect-generic.c: Likewise.
13731         * tree-vect-loop-manip.c: Likewise.
13732         * tree-vect-loop.c: Likewise.
13733         * tree-vect-patterns.c: Likewise.
13734         * tree-vect-slp.c: Likewise.
13735         * tree-vect-stmts.c: Likewise.
13736         * tree-vectorizer.c: Likewise.
13737         * tree-vrp.c: Likewise.
13738         * tree.c: Likewise.
13739         * tsan.c: Likewise.
13740         * ubsan.c: Likewise.
13741         * valtrack.c: Likewise.
13742         * value-prof.c: Likewise.
13743         * var-tracking.c: Likewise.
13744         * varasm.c: Likewise.
13745         * varpool.c: Likewise.
13746         * vmsdbgout.c: Likewise.
13747         * vtable-verify.c: Likewise.
13748         * web.c: Likewise.
13749         * wide-int.cc: Likewise.
13750         * xcoffout.c: Likewise.
13751         * config/aarch64/aarch64-builtins.c: Likewise.
13752         * config/aarch64/aarch64.c: Likewise.
13753         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13754         * config/alpha/alpha.c: Likewise.
13755         * config/arc/arc.c: Likewise.
13756         * config/arm/aarch-common.c: Likewise.
13757         * config/arm/arm-builtins.c: Likewise.
13758         * config/arm/arm-c.c: Likewise.
13759         * config/arm/arm.c: Likewise.
13760         * config/avr/avr-c.c: Likewise.
13761         * config/avr/avr-log.c: Likewise.
13762         * config/avr/avr.c: Likewise.
13763         * config/bfin/bfin.c: Likewise.
13764         * config/c6x/c6x.c: Likewise.
13765         * config/cr16/cr16.c: Likewise.
13766         * config/cris/cris.c: Likewise.
13767         * config/darwin-c.c: Likewise.
13768         * config/darwin.c: Likewise.
13769         * config/epiphany/epiphany.c: Likewise.
13770         * config/epiphany/mode-switch-use.c: Likewise.
13771         * config/epiphany/resolve-sw-modes.c: Likewise.
13772         * config/fr30/fr30.c: Likewise.
13773         * config/frv/frv.c: Likewise.
13774         * config/ft32/ft32.c: Likewise.
13775         * config/h8300/h8300.c: Likewise.
13776         * config/i386/i386-c.c: Likewise.
13777         * config/i386/i386.c: Likewise.
13778         * config/i386/msformat-c.c: Likewise.
13779         * config/i386/winnt-cxx.c: Likewise.
13780         * config/i386/winnt-stubs.c: Likewise.
13781         * config/i386/winnt.c: Likewise.
13782         * config/ia64/ia64-c.c: Likewise.
13783         * config/ia64/ia64.c: Likewise.
13784         * config/iq2000/iq2000.c: Likewise.
13785         * config/lm32/lm32.c: Likewise.
13786         * config/m32c/m32c-pragma.c: Likewise.
13787         * config/m32c/m32c.c: Likewise.
13788         * config/m32r/m32r.c: Likewise.
13789         * config/m68k/m68k.c: Likewise.
13790         * config/mcore/mcore.c: Likewise.
13791         * config/mep/mep-pragma.c: Likewise.
13792         * config/mep/mep.c: Likewise.
13793         * config/microblaze/microblaze-c.c: Likewise.
13794         * config/microblaze/microblaze.c: Likewise.
13795         * config/mips/mips.c: Likewise.
13796         * config/mmix/mmix.c: Likewise.
13797         * config/mn10300/mn10300.c: Likewise.
13798         * config/moxie/moxie.c: Likewise.
13799         * config/msp430/msp430-c.c: Likewise.
13800         * config/msp430/msp430.c: Likewise.
13801         * config/nds32/nds32-cost.c: Likewise.
13802         * config/nds32/nds32-fp-as-gp.c: Likewise.
13803         * config/nds32/nds32-intrinsic.c: Likewise.
13804         * config/nds32/nds32-isr.c: Likewise.
13805         * config/nds32/nds32-md-auxiliary.c: Likewise.
13806         * config/nds32/nds32-memory-manipulation.c: Likewise.
13807         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13808         * config/nds32/nds32-predicates.c: Likewise.
13809         * config/nds32/nds32.c: Likewise.
13810         * config/nios2/nios2.c: Likewise.
13811         * config/nvptx/nvptx.c: Likewise.
13812         * config/pa/pa.c: Likewise.
13813         * config/pdp11/pdp11.c: Likewise.
13814         * config/rl78/rl78-c.c: Likewise.
13815         * config/rl78/rl78.c: Likewise.
13816         * config/rs6000/rs6000-c.c: Likewise.
13817         * config/rs6000/rs6000.c: Likewise.
13818         * config/rx/rx.c: Likewise.
13819         * config/s390/s390-c.c: Likewise.
13820         * config/s390/s390.c: Likewise.
13821         * config/sh/sh-c.c: Likewise.
13822         * config/sh/sh-mem.cc: Likewise.
13823         * config/sh/sh.c: Likewise.
13824         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13825         * config/sh/sh_treg_combine.cc: Likewise.
13826         * config/sol2-c.c: Likewise.
13827         * config/sol2-cxx.c: Likewise.
13828         * config/sol2-stubs.c: Likewise.
13829         * config/sol2.c: Likewise.
13830         * config/sparc/sparc-c.c: Likewise.
13831         * config/sparc/sparc.c: Likewise.
13832         * config/spu/spu-c.c: Likewise.
13833         * config/spu/spu.c: Likewise.
13834         * config/stormy16/stormy16.c: Likewise.
13835         * config/tilegx/mul-tables.c: Likewise.
13836         * config/tilegx/tilegx-c.c: Likewise.
13837         * config/tilegx/tilegx.c: Likewise.
13838         * config/tilepro/mul-tables.c: Likewise.
13839         * config/tilepro/tilepro-c.c: Likewise.
13840         * config/tilepro/tilepro.c: Likewise.
13841         * config/v850/v850-c.c: Likewise.
13842         * config/v850/v850.c: Likewise.
13843         * config/vax/vax.c: Likewise.
13844         * config/visium/visium.c: Likewise.
13845         * config/vms/vms-c.c: Likewise.
13846         * config/vms/vms.c: Likewise.
13847         * config/vxworks.c: Likewise.
13848         * config/xtensa/xtensa.c: Likewise.
13849
13850 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
13851
13852         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13853         Remove operand constraints.  Change operand 2 predicate to
13854         nonmemory operand.  Limit const_int values to mode bitsize.  Only
13855         allow const_int values less than 32 when optimizing for size.
13856         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13857         Remove operand constraints.
13858         (*bt<mode>): Use SImode for const_int values less than 32.
13859         (regmode): Remove mode attribute.
13860
13861 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
13862
13863         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13864         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13865           moxie_legitimate_address_p): New functions.
13866           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13867
13868 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13869
13870         PR tree-optimization/66642
13871         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13872         header comment.  Rename split_edge variable to edge_at_split.  Split
13873         exit edge to create new loop exit bb.  Insert loop exit phis in new
13874         loop exit bb.
13875
13876 2015-07-07  Tom de Vries  <tom@codesourcery.com>
13877
13878         * tree-cfg.c (get_virtual_phi): New function.
13879         * tree-cfg.h (get_virtual_phi): Declare.
13880         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13881         (rewrite_virtuals_into_loop_closed_ssa): New function.
13882         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13883         Declare.
13884         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13885         (transform_to_exit_first_loop_alt): Use
13886         rewrite_virtuals_into_loop_closed_ssa.
13887
13888 2015-07-07  Richard Biener  <rguenther@suse.de>
13889
13890         * fold-const.c (fold_binary_loc): Move
13891         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13892         * match.pd: ... here.
13893         Add (X * C1) % C2 -> 0 simplification pattern derived from
13894         extract_muldiv_1.
13895
13896 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13897
13898         PR target/66780
13899         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13900         change for target/65249.
13901
13902 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
13903
13904         * symtab.c (address_matters_1): Fix typo in comment above.
13905         (can_increase_alignment_p): Likewise.
13906
13907 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13908
13909         * function.c (free_after_compilation): Clear PROP_cfg in
13910         f->curr_properties.
13911
13912 2015-07-07  Richard Biener  <rguenther@suse.de>
13913
13914         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13915         add which use to.
13916         (add_control_edge): Remove excessive vertical space in dumping.
13917         (process_ssa_edge_worklist): Simulate at most one statement and
13918         return whether we did.  Do not simulate PHIs if they are in a
13919         BB not yet simulated.
13920         (ssa_propagate): Adjust to always drain the BB worklist whenever
13921         a BB is available there, likewise the VARYING edges list before
13922         the interesting edge list.
13923
13924 2015-07-07  Christian Bruel  <christian.bruel@st.com>
13925
13926         PR target/52144
13927         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13928
13929 2015-07-07  Richard Biener  <rguenther@suse.de>
13930
13931         PR middle-end/66739
13932         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13933         A - B.
13934
13935 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
13936
13937         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
13938         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
13939         Copy operand 0 to a temporary if !ext_register_operand.  Remove
13940         ancient extract_bit_field workaround.
13941         (insv<mode>_1): Rename from mov<mode>_insv_1.
13942         (*insvqi): Rename from *movqi_insv_2.
13943         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
13944         for renamed insvsi_1.
13945         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
13946
13947 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13948
13949         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
13950         call to nvptx_reorg_subreg.
13951
13952 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
13953
13954         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
13955         * graphite-dependencies.c, graphite-interchange.c,
13956         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
13957         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
13958         Likewise.
13959
13960 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
13961
13962         * match.pd: Remove element_mode inside HONOR_*.
13963         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
13964         (~X | X -> -1, ~X ^ X -> -1): Merge.
13965         * tree.c (build_each_one_cst): New function.
13966         * tree.h (build_each_one_cst): Likewise.
13967
13968 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
13969
13970         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13971         PROCESSOR_IAMCU.
13972
13973 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
13974
13975         * config.gcc <mips*-*-*>: Add fused-madd.opt.
13976         * config/mips/mips.opt (mfused-madd): Remove.
13977         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
13978         * config/mips/mips.h (TARGET_MIPS8000): New.
13979         (ISA_HAS_FP_MADD4_MSUB4): Remove.
13980         (ISA_HAS_FP_MADDF_MSUBF): Remove.
13981         (ISA_HAS_FP_MADD3_MSUB3): Remove.
13982         (ISA_HAS_NMADD4_NMSUB4): Remove.
13983         (ISA_HAS_NMADD3_NMSUB3): Remove.
13984         (ISA_HAS_FUSED_MADD4): New.
13985         (ISA_HAS_UNFUSED_MADD4): New.
13986         (ISA_HAS_FUSED_MADDF): New.
13987         (ISA_HAS_FUSED_MADD3): New.
13988         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
13989         (*fma<mode>4_madd3) New.
13990         (*fma<mode>4_madd4) New.
13991         (*fma<mode>4_maddf) New.
13992         (fms<mode>4) New.
13993         (*fms<mode>4_msub3) New.
13994         (*fms<mode>4_msub4) New.
13995         (fnma<mode>4) New.
13996         (*fnma<mode>4_nmadd3) New.
13997         (*fnma<mode>4_nmadd4) New.
13998         (fnms<mode>4) New.
13999         (*fnms<mode>4_nmsub3) New.
14000         (*fnms<mode>4_nmsub4) New.
14001         (*madd4<mode>) Modify to be unfused only.
14002         (*msub4<mode>) Modify to be unfused only.
14003         (*nmadd4<mode>) Modify to be unfused only.
14004         (*nmsub4<mode>) Modify to be unfused only.
14005         (*madd3<mode>) Remove.
14006         (*msub3<mode>) Remove.
14007         (*nmadd3<mode>) Remove.
14008         (*nmsub3<mode>) Remove.
14009         (*nmadd3<mode>_fastmath) Remove.
14010         (*nmsub3<mode>_fastmath) Remove.
14011         (*nmadd4<mode>_fastmath) Update condition.
14012         (*nmsub4<mode>_fastmath) Update condition.
14013
14014 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14015
14016         PR target/65956
14017         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14018         alignment attribute, exploring one level down for records and arrays.
14019
14020 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
14021
14022         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
14023         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
14024         Copy operand 1 to a temporary if !ext_register_operand.  Remove
14025         ancient extract_bit_field workaround.
14026         (*extv<mode>): Rename from *mov<mode>_extv_1.
14027         (*extvqi): Rename from *movqi_extv_1.
14028         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
14029         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
14030         to a temporary if !ext_register_operand.  Remove ancient
14031         extract_bit_field workaround.
14032         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14033         (*extzvqi): Rename from *movqi_extzv_2.
14034         (*testqi_ext_3): Remove modes from const_int_operand predicated
14035         operands.  Add "n" constraint.
14036         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14037         operand.  Add "J" constraint.
14038         (*btsq, *btrq, *btcq peephole2s): Remove mode from
14039         const_0_to_63 predicated operand.
14040         (regmode): New insn attribute.
14041         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
14042         to nonmemory_operand.  Use regmode insn attribute.
14043         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14044         (*jcc_bt<mode>_mask): Remove mode from operand 3.
14045         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14046         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14047         operands.  Use "N" constraint instead of "n".
14048
14049 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
14050
14051         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14052
14053 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14054
14055         PR target/66749
14056         * config/i386/i386.c (iamcu_cost): New.
14057         (m_IAMCU): Likewise.
14058         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14059         (processor_target_table): Add an entry for "iamcu".
14060         (processor_alias_table): Likewise.
14061         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14062         (ix86_adjust_cost): Likewise.
14063         (ia32_multipass_dfa_lookahead): Likewise.
14064         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14065         * config/i386/x86-tune.def: Updated for m_IAMCU.
14066
14067 2015-07-06  Richard Biener  <rguenther@suse.de>
14068
14069         PR tree-optimization/66772
14070         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14071         values are available in the PHI node BB when there are
14072         still unexecutable edges.
14073
14074 2015-07-06  Richard Biener  <rguenther@suse.de>
14075
14076         PR tree-optimization/66767
14077         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14078         Make sure to build the alignment test on a SSA name without
14079         final alignment info valid only if the alignment test
14080         evaluates to true.
14081
14082 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
14083
14084         PR target/66620
14085         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14086         loop start when inserting LSETUP.
14087
14088 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
14089
14090         PR target/53383
14091         * config/i386/i386.c (ix86_option_override_internal): Allow
14092         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14093
14094 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14095
14096         * read-md.c (decimal_string): Rename to ...
14097         (md_decimal_string): ... this.
14098         (handle_enum): Reflect this.
14099
14100 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14101
14102         PR target/66731
14103         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14104
14105 2015-07-06  Richard Biener  <rguenther@suse.de>
14106
14107         PR middle-end/66759
14108         * match.pd: Add missing constraint of y to REAL_CST in
14109         REAL_CST - x CMP y to y - CST CMP x simplification.
14110
14111 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14112
14113         PR tree-optimization/66757
14114         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14115
14116 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
14117             Sandra Loosemore <sandra@codesourcery.com>
14118
14119         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14120         Delete extern declaration.
14121         (gprel_constant_p): Add extern declaration.
14122         * config/nios2/constraints.md ("S"): Use gprel_constant_p
14123         instead of nios2_symbol_ref_in_small_data_p.
14124         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14125         (nios2_symbol_ref_in_small_data_p): Make static.
14126         (gprel_constant_p): Make non-static.
14127
14128 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
14129
14130         * doc/fragments.texi (Target Fragment): Convert debian.org
14131         link to use https.
14132         * doc/install.texi (Configuration): Ditto.
14133
14134 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
14135
14136         PR tree-optimization/66718
14137         * tree-vect-stmts.c (vectorizable_call): Replace uses of
14138         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14139
14140         PR tree-optimization/66718
14141         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14142         vectorizable_load, vectorizable_condition): Move vectype,
14143         nunits, ncopies computation after checking what kind of statement
14144         stmt is.
14145
14146 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14147
14148         * target-insns.def (extv, extzv, insv): New targetm instruction
14149         patterns.
14150         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14151         interface.
14152         * recog.c (simplify_while_replacing): Likewise.
14153
14154 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14155
14156         * target-insns.def (doloop_begin, doloop_end): New targetm
14157         instruction patterns.
14158         * loop-init.c: Include target.h.
14159         (pass_loop2::gate): Use the new targetm patterns instead of
14160         HAVE_*/gen_* interface.
14161         (pass_rtl_doloop::gate): Likewise.
14162         (pass_rtl_doloop::execute): Remove preprocessor condition.
14163         * hw-doloop.c: Build unconditionally.
14164         * loop-doloop.c: Likewise.
14165         (doloop_optimize): Use the new targetm patterns instead of
14166         HAVE_*/gen_* interface.
14167         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14168         * modulo-sched.c (doloop_register_get): Likewise.
14169
14170 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14171
14172         * target-insns.def (clear_cache): New targetm instruction pattern.
14173         * builtins.c (expand_builtin___clear_cache): Use it instead of
14174         HAVE_*/gen_* interface.
14175
14176 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14177
14178         * target-insns.def (allocate_stack, check_stack, probe_stack)
14179         (probe_stack_address, split_stack_prologue, split_stack_space_check):
14180         New targetm instruction patterns.
14181         * explow.c (allocate_dynamic_stack_space): Use them instead of
14182         HAVE_*/gen_* interface.
14183         (emit_stack_probe): Likewise.
14184         (probe_stack_range): Likewise.
14185         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14186
14187 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14188
14189         * target-insns.def (stack_protect_set, stack_protect_test): New
14190         targetm instruction patterns.
14191         * cfgexpand.c (stack_protect_prologue): Use them instead of
14192         HAVE_*/gen_* interface.
14193         * function.c (stack_protect_epilogue): Likewise.
14194
14195 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14196
14197         * expr.h (gen_move_insn_uncast): Delete.
14198         * expr.c (gen_move_insn_uncast): Delete.
14199
14200 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14201
14202         * target-insns.def (restore_stack_block, restore_stack_function)
14203         (restore_stack_nonlocal, save_stack_block, save_stack_function)
14204         (save_stack_nonlocal): New targetm instruction patterns.
14205         * builtins.c (expand_builtin_apply): Use them instead of
14206         HAVE_*/gen_* interface.
14207         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14208
14209 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14210
14211         * target-insns.def (trap): New targetm instruction pattern.
14212         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14213         interface.
14214         * explow.c (allocate_dynamic_stack_space): Likewise.
14215         * ifcvt.c (find_if_header): Likewise.
14216
14217 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14218
14219         * target-insns.def (prefetch): New targetm instruction pattern.
14220         * tree-ssa-loop-prefetch.c: Include targeth.
14221         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14222         of HAVE_*/gen_* interface.
14223         * builtins.c (expand_builtin_prefetch): Likewise.
14224         * toplev.c (process_options): Likewise.
14225
14226 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14227
14228         * target-insns.def (untyped_call, untyped_return): New targetm
14229         instruction patterns.
14230         * builtins.c (expand_builtin_apply): Use them instead of
14231         HAVE_*/gen_* interface.
14232         (result_vector): Define unconditionally.
14233
14234 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14235
14236         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14237         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14238         (nonlocal_goto_receiver): New targetm instruction patterns.
14239         * builtins.c (expand_builtin_setjmp_setup): Use them instead
14240         of HAVE_*/gen_* interface.
14241         (expand_builtin_setjmp_receiver): Likewise.
14242         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14243         * except.c (expand_dw2_landing_pad_for_region): Likewise.
14244
14245 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
14246
14247         * target.def: Add code_for_* hooks.
14248         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14249         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14250         * target-insns.def (casesi, tablejump): New targetm instruction
14251         patterns.
14252         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14253         (do_tablejump): Likewise.
14254         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14255         (expand_sjlj_dispatch_table): Likewise.
14256         * targhooks.c (default_case_values_threshold): Likewise.
14257
14258 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
14259
14260         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14261         Use rtx_insn * instead of rtx.
14262         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14263         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14264         (nios2_call_tls_get_addr): Likewise.
14265         (nios2_emit_expensive_div): Likewise.
14266         (nios2_emit_move_sequence): Change return type to bool.
14267         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14268         Change return type to bool.
14269
14270 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14271
14272         PR target/66747
14273         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14274
14275 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
14276
14277         PR target/66114
14278         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14279         of register_operand.  Remove constraint.
14280
14281 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
14282
14283         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14284         the first argument.
14285
14286 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
14287
14288         * attribs.c (decl_attributes): Guard inform with the return value
14289         of the preceding warning.
14290
14291 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14292
14293         * doc/invoke.texi (moverride): Move to correct section.
14294
14295 2015-07-03  Richard Biener  <rguenther@suse.de>
14296
14297         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14298         Copy from tree.c
14299         (dt_operand::gen_gimple_expr): After valueizing operands
14300         re-canonicalize operand order for commutative tree codes.
14301
14302 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
14303
14304         PR target/66746.
14305         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14306         is defined.
14307         (__crc32w): Likewise.
14308         (__crc32d): Likewise.
14309         (__rdpmc): Likewise.
14310         (__rdtscp): Likewise.
14311         (_rdpmc): Likewise.
14312         (_rdtscp): Likewise.
14313         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14314         is defined.
14315
14316 2015-07-03  Richard Biener  <rguenther@suse.de>
14317
14318         * fold-const.c (fold_mathfn_compare): Remove.
14319         (fold_inf_compare): Likewise.
14320         (fold_comparison): Move floating point comparison simplifications...
14321         * match.pd: ... to patterns here.  Introduce simple_comparisons
14322         operator list and use it for patterns formerly in fold_comparison.
14323
14324 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
14325
14326         PR tree-optimization/66119
14327         * toplev.c (process_options): Don't set up default values for
14328         the sra_max_scalarization_size_{speed,size} parameters.
14329         * tree-sra (analyze_all_variable_accesses): If no values
14330         have been set for the sra_max_scalarization_size_{speed,size}
14331         parameters, call get_move_ratio to get target defaults.
14332
14333 2015-07-03  Richard Biener  <rguenther@suse.de>
14334
14335         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14336         * match.pd: ... here.
14337
14338 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
14339
14340         PR target/37072
14341         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14342         is not actually the default on FreeBSD.
14343
14344 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14345
14346         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14347         definition.
14348         (CMPGE_8HI): Likewise.
14349         (CMPGE_4SI): Likewise.
14350         (CMPGE_2DI): Likewise.
14351         (CMPGE_U16QI): Likewise.
14352         (CMPGE_U8HI): Likewise.
14353         (CMPGE_U4SI): Likewise.
14354         (CMPGE_U2DI): Likewise.
14355         (CMPLE_16QI): Likewise.
14356         (CMPLE_8HI): Likewise.
14357         (CMPLE_4SI): Likewise.
14358         (CMPLE_2DI): Likewise.
14359         (CMPLE_U16QI): Likewise.
14360         (CMPLE_U8HI): Likewise.
14361         (CMPLE_U4SI): Likewise.
14362         (CMPLE_U2DI): Likewise.
14363         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14364         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14365         ALTIVEC_BUILTIN_VEC_CMPLE.
14366         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14367         floating-point vector modes.
14368         (vector_nlt<mode>): New define_expand.
14369         (vector_nltu<mode>): Likewise.
14370         (vector_ngt<mode>): Likewise.
14371         (vector_ngtu<mode>): Likewise.
14372
14373 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
14374
14375         PR rtl-optimization/66706
14376         * combine.c (make_compound_operation): If an AND of SUBREG of
14377         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14378
14379 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
14380
14381         * tree-pass.h (make_pass_ch_vect): New.
14382         * passes.def: Add pass_ch_vect just before pass_if_conversion.
14383
14384         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14385         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14386         make_pass_ch_vect): New.
14387         (pass_ch): Extend ch_base.
14388
14389         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14390         (ch_base::copy_headers): ...here.
14391
14392 2015-07-02  Richard Biener  <rguenther@suse.de>
14393
14394         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14395         * fold-const.c (get_pointer_modulus_and_residue): Remove.
14396         (fold_binary_loc): Implement (T)ptr & CST in terms of
14397         get_pointer_alignment_1.
14398         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14399         Make sure to build the alignment test on a SSA name without
14400         final alignment info valid only after the prologue.
14401
14402 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
14403
14404         * config/cris/cris.md ("epilogue"): Remove condition.
14405         ("prologue"): Ditto.
14406
14407 2015-07-02  Richard Biener  <rguenther@suse.de>
14408
14409         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14410         parameter to record a condition that is false.
14411         (record_conditions): When recording an extra NE_EXPR that is
14412         true also record a EQ_EXPR that is false.
14413
14414 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
14415
14416         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14417         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14418         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
14419         (set_iv, find_interesting_uses_address, add_candidate_1): New
14420         argument to alloc_iv.
14421         (find_interesting_uses_op, find_interesting_uses_cond): Don't
14422         duplicate struct iv.
14423         (free_loop_data): Don't free struct iv explicitly.
14424         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14425
14426 2015-07-01  DJ Delorie  <dj@redhat.com>
14427
14428         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14429         (LIB_SPEC): Add.
14430         (SUPPORTS_DISCRIMINATOR): Define.
14431
14432 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14433
14434         PR bootstrap/66685
14435         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14436         there are no CALLs in the same pattern.
14437
14438 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14439
14440         PR rtl-optimization/61047
14441         * rtlanal.c (get_initial_register_offset): New function.
14442         (rtx_addr_can_trap_p_1): Check offsets of stack references.
14443
14444 2015-07-01  Richard Biener  <rguenther@suse.de>
14445
14446         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14447         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14448         ~X CMP C -> X CMP' ~C to ...
14449         * match.pd: ... patterns here.
14450
14451 2015-07-01  Nick Clifton  <nickc@redhat.com>
14452
14453         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14454         a 16-bit value into a 20-bit memory slot.
14455
14456 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14457
14458         * doc/sourcebuild.texi (AArch64-specific attributes): Document
14459         "aarch64_tiny", "aarch64_small", "aarch64_large",
14460         "aarch64_little_endian", "aarch64_big_endian".
14461
14462 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14463
14464         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14465         Document "aarch64_small_fpic".
14466
14467 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
14468
14469         * configure.ac: Add check for aarch64 assembler -fpic relocation
14470         modifier support.
14471         * configure: Regenerate.
14472         * config.in: Regenerate.
14473         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14474         to -fPIC if not support of -fpic relocation modifier in assembler.
14475
14476 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
14477
14478         PR bootstrap/66685
14479         * rtl.c (classify_insn): Handle returns in PARALLELs.
14480
14481 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
14482
14483         PR middle-end/66633
14484         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14485         to true if the function is nested and if not optimizing.
14486         (convert_local_omp_clauses): Initialize need_frame to true if the
14487         function contains nested functions and if not optimizing.
14488
14489 2015-07-01  Richard Biener  <rguenther@suse.de>
14490
14491         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14492         (X & Y) ^ Y -> ~X & Y transforms to ...
14493         * match.pd: ... here.
14494
14495 2015-07-01  Richard Biener <rguenther@suse.de>
14496
14497         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14498         of converts to avoid uninteresting noise from the conversion
14499         simplifying patterns.
14500
14501 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
14502
14503         * config/c6x/c6x.c (try_rename_operands): Do not depend on
14504         gcc_assert evaluating its argument for side-effect.
14505
14506 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14507
14508         PR target/64833
14509         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14510         flag_pic is set.
14511
14512 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14513
14514         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14515         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14516         (hash_scc): Add this_ref_p and ref_p parameters and pass them
14517         to the inner DFS walk.
14518
14519 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14520
14521         * target-insns.def (jump): New targetm instruction pattern.
14522         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14523         instead of gen_jump.
14524         (fix_up_crossing_landing_pad): Likewise.
14525         (add_labels_and_missing_jumps): Likewise.
14526         (fix_crossing_conditional_branches): Likewise.
14527         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14528         (force_nonfallthru_and_redirect): Likewise.
14529         * cse.c (cse_insn): Likewise.
14530         * expmed.c (expand_divmod): Likewise.
14531         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14532         * haifa-sched.c (init_before_recovery): Likewise.
14533         (sched_create_recovery_edges): Likewise.
14534         * ifcvt.c (find_cond_trap): Likewise.
14535         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14536         (expand_float, expand_fix): Likewise.
14537         * stmt.c (emit_jump): Likewise.
14538
14539 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14540
14541         * defaults.h (HAVE_load_multiple, gen_load_multiple)
14542         (HAVE_store_multiple, gen_store_multiple): Delete.
14543         * target-insns.def (load_multiple, store_multiple): New targetm
14544         instruction patterns.
14545         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14546         of HAVE_*/gen_* interface.
14547
14548 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14549
14550         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14551         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14552         (gen_mem_signal_fence): Delete.
14553         * target-insns.def (mem_signal_fence, mem_thread_fence)
14554         (memory_barrier): New targetm instruction patterns.
14555         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14556         interface.
14557         (expand_mem_signal_fence): Likewise.
14558
14559 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
14560
14561         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14562         * target-insns.def (epilogue, prologue, sibcall_prologue): New
14563         targetm instruction patterns.
14564         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14565         interface.
14566         * calls.c (expand_call): Likewise.
14567         * cfgrtl.c (cfg_layout_finalize): Likewise.
14568         * df-scan.c (df_get_entry_block_def_set): Likewise.
14569         (df_get_exit_block_use_set): Likewise.
14570         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14571         * final.c (final_start_function): Likewise.
14572         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14573         (reposition_prologue_and_epilogue_notes): Likewise.
14574         * reorg.c (find_end_label): Likewise.
14575         * toplev.c (process_options): Likewise.
14576
14577 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
14578
14579         * typed-splay-tree.h: New file.
14580
14581 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
14582
14583         PR debug/66691
14584         * lra-int.h (lra_substitute_pseudo): Add a parameter.
14585         (lra_substitute_pseudo_within_insn): Ditto.
14586         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
14587         of constant.
14588         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
14589         to lra_substitute_pseudo.
14590         * lra-lives.c (process_bb_lives): Add an argument to
14591         lra_substitute_pseudo_within_insn call.
14592         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14593         argument to lra_substitute_pseudo and
14594         lra_substitute_pseudo_within_insn calls.
14595         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14596
14597 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14598
14599         * configure: Regenerated.
14600
14601 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14602
14603         * config.gcc: Support i[34567]86-*-elfiamcu target.
14604         * config/i386/iamcu.h: New.
14605         * config/i386/i386.opt: Add -miamcu.
14606         * doc/invoke.texi: Document -miamcu.
14607         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
14608         off x87/MMX/SSE/AVX codegen for -miamcu.
14609         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14610         __iamcu/__iamcu__ for -miamcu.
14611         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14612         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14613         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14614         * config/i386/i386.c (ix86_option_override_internal): Ignore and
14615         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
14616         MCU by default.  Default long double to 64-bit for Intel MCU.
14617         Turn on -freg-struct-return for Intel MCU.  Issue an error when
14618         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14619         AVX is turned on.
14620         (function_arg_advance_32): Pass value whose size is no larger
14621         than 8 bytes in registers for Intel MCU.
14622         (function_arg_32): Likewise.
14623         (ix86_return_in_memory): Return value whose size is no larger
14624         than 8 bytes in registers for Intel MCU.
14625         (iamcu_alignment): New function.
14626         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14627         true.
14628         (ix86_local_alignment): Don't increase alignment for Intel MCU.
14629         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14630         true.
14631
14632 2015-06-30  Marek Polacek  <polacek@redhat.com>
14633
14634         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
14635         both operands of the resulting expression.
14636
14637         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
14638         the final expression with the operand's type and then convert
14639         it to the type of the expression.
14640
14641 2015-06-30  Richard Biener  <rguenther@suse.de>
14642
14643         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14644         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14645         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14646         * match.pd: ... to patterns here.
14647
14648 2015-06-30  Richard Biener  <rguenther@suse.de>
14649
14650         PR tree-optimization/66704
14651         * tree-vect-data-refs.c (vect_setup_realignment): Use
14652         make_ssa_name for non-SSA name source.
14653
14654 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14655
14656         PR middle-end/66702
14657         * omp-low.c (simd_clone_adjust): Handle addressable linear
14658         or uniform parameters or non-gimple type uniform parameters.
14659
14660 2015-06-30  Richard Biener  <rguenther@suse.de>
14661
14662         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14663         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14664         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14665         * match.pd: ... here.
14666         Add a few cases of A - B -> A + (-B) when B "easily" negates.
14667         Move (x & y) | x -> x and friends before
14668         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14669
14670 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
14671
14672         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14673         -mfix-ut699 is not specified.
14674         (leon3_load): Rename into...
14675         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
14676         is specified.
14677
14678 2015-06-30  Marek Polacek  <polacek@redhat.com>
14679
14680         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14681         * match.pd: ... here.
14682
14683 2015-06-30  Richard Biener  <rguenther@suse.de>
14684
14685         * target-insns.def (canonicalize_funcptr_for_compare): Add.
14686         * fold-const.c (build_range_check): Replace uses of
14687         HAVE_canonicalize_funcptr_for_compare.
14688         (fold_widened_comparison): Likewise.
14689         (fold_sign_changed_comparison): Likewise.
14690         * dojump.c: Include "target.h".
14691         (do_compare_and_jump): Replace uses of
14692         HAVE_canonicalize_funcptr_for_compare and
14693         gen_canonicalize_funcptr_for_compare.
14694         * expr.c (do_store_flag): Likewise.
14695
14696 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14697
14698         PR tree-optimization/66652
14699         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14700         max_loop_iterations to determine if nit + 1 overflows.
14701
14702 2015-06-30  Richard Biener  <rguenther@suse.de>
14703
14704         * tree-vrp.c (register_edge_assert_for_2): Also register
14705         asserts for dominating conversion results.
14706
14707 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
14708
14709         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14710         field in struct iv.
14711
14712 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
14713
14714         PR target/66509
14715         * configure.ac: Fix filds and fildq test for 64-bit.
14716         * configure: Regenerated.
14717
14718 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
14719
14720         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14721         (nvptx_reorg): Here.  Keep the non-subreg pieces.
14722
14723 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
14724
14725         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14726         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14727
14728 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
14729
14730         * config/i386/i386.md (*jcc_1): Use %! in asm template.
14731         Set attribute "length_nobnd" instead of "length".
14732         (*jcc_2): Ditto.
14733         (jump): Ditto.
14734         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14735
14736 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
14737
14738         * config/nios2/nios2.c (nios2_delegitimize_address): Make
14739         assert less restrictive.
14740
14741 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14742
14743         PR fortran/66605
14744         * cgraphunit.c (cgraph_node::finalize_function): Do not call
14745         do_warn_unused_parameter.
14746         * function.c (do_warn_unused_parameter): Move from here.
14747         * function.h (do_warn_unused_parameter): Do not declare.
14748
14749 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14750
14751         PR target/65697
14752         * gcc.target/arm/armv-sync-comp-swap.c: New.
14753         * gcc.target/arm/armv-sync-op-acquire.c: New.
14754         * gcc.target/arm/armv-sync-op-full.c: New.
14755         * gcc.target/arm/armv-sync-op-release.c: New.
14756
14757 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14758
14759         PR target/65697
14760         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14761         initial acquire barrier with final barrier.
14762
14763 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14764
14765         PR target/65697
14766         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14767         initial acquire barrier with final barrier.
14768
14769 2015-06-29  Richard Henderson  <rth@redhat.com>
14770
14771         * config/i386/constraints.md (Bf): New constraint.
14772         * config/i386/i386-c.c (ix86_target_macros): Define
14773         __GCC_ASM_FLAG_OUTPUTS__.
14774         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14775         as flags outputs.
14776         * doc/extend.texi (FlagOutputOperands): Document them.
14777
14778 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
14779
14780         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14781         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14782         unspec name.
14783         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14784         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14785         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14786         (aarch64_symbol_context): Ditto.
14787         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14788         and use new pattern name.
14789         (aarch64_expand_mov_immediate): Ditto.
14790         (aarch64_print_operand): Ditto.
14791         (aarch64_classify_tls_symbol): Ditto.
14792
14793 2015-06-29  Marek Polacek  <polacek@redhat.com>
14794             Marc Glisse  <marc.glisse@inria.fr>
14795
14796         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14797         * match.pd: ... pattern here.
14798
14799 2015-06-29  Tom de Vries  <tom@codesourcery.com>
14800
14801         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14802         function structure.
14803
14804 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
14805
14806         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14807         feature description, split out the native option, add a link to
14808         the feature documentation, rearrange and slightly rewrite text.
14809         (Aarch64 options, -mcpu): Likewise.
14810         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
14811         +rdma implies Adv. SIMD.
14812
14813 2015-06-29  Marek Polacek  <polacek@redhat.com>
14814
14815         PR c/66322
14816         * function.c (stack_protect_epilogue): Remove a cast to int.
14817         * doc/invoke.texi: Update -Wswitch-bool description.
14818
14819 2015-06-29  Richard Biener  <rguenther@suse.de>
14820
14821         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14822         * fold-const.c (fold_binary_loc): Move &A - &B simplification
14823         via ptr_difference_const ...
14824         * match.pd: ... here.
14825         When matching (X ^ Y) == Y also match with swapped operands.
14826
14827 2015-06-29  Richard Biener  <rguenther@suse.de>
14828
14829         * lto-streamer.h (LTO_major_version): Bump to 5.
14830
14831 2015-06-29  Richard Biener  <rguenther@suse.de>
14832
14833         PR tree-optimization/66677
14834         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14835         STMT_VINFO_VEC_STMT clobbering less strict.
14836
14837 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
14838
14839         PR middle-end/64130
14840         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14841         division, compute max and min when value ranges for dividend and
14842         divisor are available.
14843
14844 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
14845             Sandra Loosemore <sandra@codesourcery.com>
14846
14847         * regrename.h (regrename_do_replace): Change to return bool.
14848         * regrename.c (rename_chains): Check return value of
14849         regname_do_replace.
14850         (regrename_do_replace): Re-validate the modified insns and
14851         return bool status.
14852         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14853         Update to match rename_chains changes.
14854         * config/c6x/c6x.c (try_rename_operands): Assert that
14855         regrename_do_replace returns true.
14856
14857 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
14858
14859         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14860         operand 2 here.  Use copy_addr_to_reg to copy non-index
14861         register operand 2 to a temporary.
14862         (<mode>_stx): Ditto for operand 1.
14863         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14864         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14865         (ix86_store_bounds): Ditto.
14866
14867 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
14868
14869         * print-tree.c (print_node) [TREE_VEC]: Print its length.
14870
14871 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
14872
14873         * gimple.c (gimple_call_set_fndecl): Remove.
14874         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14875         build1_loc directly instead of build_fold_addr_expr_loc.
14876
14877 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
14878
14879         * hash-map.h (hash_map::traverse): Use the definition of the
14880         Key typedef rather than the typedef itself.
14881
14882 2015-06-26  Martin Jambor  <mjambor@suse.cz>
14883
14884         PR debug/66301
14885         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14886         NULL instead of calling dump_enabled_p.
14887
14888 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14889
14890         * config/aarch64/aarch64.opt: (override): New.
14891         * doc/invoke.texi (override): Document.
14892         * config/aarch64/aarch64.c (aarch64_flag_desc): New
14893         (aarch64_fusible_pairs): Likewise.
14894         (aarch64_tuning_flags): Likewise.
14895         (aarch64_tuning_override_function): Likewise.
14896         (aarch64_tuning_override_functions): Likewise.
14897         (aarch64_parse_one_option_token): Likewise.
14898         (aarch64_parse_boolean_options): Likewise.
14899         (aarch64_parse_fuse_string): Likewise.
14900         (aarch64_parse_tune_string): Likewise.
14901         (aarch64_parse_one_override_token): Likewise.
14902         (aarch64_parse_override_string): Likewise.
14903         (aarch64_override_options): Parse the -override string if it
14904         is present.
14905
14906 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14907
14908         * config/aarch64/aarch64-protos.h (tune_params): Remove
14909         const from members.
14910         (aarch64_tune_params): Remove const, change to no longer be
14911         a pointer.
14912         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14913         change to no longer be a pointer, initialize to generic_tunings.
14914         (aarch64_min_divisions_for_recip_mul): Change dereference of
14915         aarch64_tune_params to member access.
14916         (aarch64_reassociation_width): Likewise.
14917         (aarch64_rtx_mult_cost): Likewise.
14918         (aarch64_address_cost): Likewise.
14919         (aarch64_branch_cost): Likewise.
14920         (aarch64_rtx_costs): Likewise.
14921         (aarch64_register_move_cost): Likewise.
14922         (aarch64_memory_move_cost): Likewise.
14923         (aarch64_sched_issue_rate): Likewise.
14924         (aarch64_builtin_vectorization_cost): Likewise.
14925         (aarch64_override_options): Take a copy of the selected tuning
14926         struct in to aarch64_tune_params, rather than just setting
14927         a pointer, change dereferences of aarch64_tune_params to member
14928         accesses.
14929         (aarch64_override_options_after_change): Change dereferences of
14930         aarch64_tune_params to member access.
14931         (aarch64_macro_fusion_p): Likewise.
14932         (aarch_macro_fusion_pair_p): Likewise.
14933         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14934
14935 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14936
14937         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14938         (aarch64_tune_flags): Likewise.
14939         (AARCH64_TUNE_FMA_STEERING): Likewise.
14940         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
14941         to AARCH64_FL_USE_FMA_STEERING_PASS.
14942         (cortex-a57.cortex-a53): Likewise.
14943         (cortex-a72): Use cortexa72_tunings.
14944         (cortex-a72.cortex-a53): Likewise.
14945         (exynos-m1): Likewise.
14946         * config/aarch64/aarch64-protos.h (tune_params): Add
14947         a field: extra_tuning_flags.
14948         * config/aarch64/aarch64-tuning-flags.def: New.
14949         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
14950         (aarch64_extra_tuning_flags): Likewise.
14951         (aarch64_tune_params): Declare here.
14952         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
14953         (cortexa53_tunings): Likewise.
14954         (cortexa57_tunings): Likewise.
14955         (thunderx_tunings): Likewise.
14956         (xgene1_tunings): Likewise.
14957         (cortexa72_tunings): New.
14958         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
14959          (gate): Check against aarch64_tune_params.
14960         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
14961         aarch64-protos.h.
14962
14963 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
14964
14965         * config/aarch64/aarch64-fusion-pairs.def: New.
14966         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
14967         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
14968         aarch64_fusion_pairs.
14969         (AARCH64_FUSE_MOV_MOVK): Likewise.
14970         (AARCH64_FUSE_ADRP_ADD): Likewise.
14971         (AARCH64_FUSE_MOVK_MOVK): Likewise.
14972         (AARCH64_FUSE_ADRP_LDR): Likewise.
14973         (AARCH64_FUSE_CMP_BRANCH): Likewise.
14974
14975 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14976
14977         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
14978         SYMBOL_SMALL_GOT_28K.
14979         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
14980         relocation modifiers.
14981         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
14982         (ldr_got_small_28k_<mode>): New.
14983         (ldr_got_small_28k_sidi): New.
14984         * config/aarch64/iterators.md (got_modifier): New mode iterator.
14985         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
14986         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
14987         SYMBOL_SMALL_GOT_28K.
14988         (aarch64_rtx_costs): Add costs for new instruction sequences.
14989         (initialize_aarch64_code_model): Initialize new model.
14990         (aarch64_classify_symbol): Recognize new model and new symbol classification.
14991         (aarch64_asm_preferred_eh_data_format): Support new model.
14992         (aarch64_load_symref_appropriately): Generate new instruction
14993         sequences for -fpic.
14994         (TARGET_USE_PSEUDO_PIC_REG): New definition.
14995         (aarch64_use_pseudo_pic_reg): New function.
14996
14997 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
14998
14999         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15000         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15001         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15002         (aarch64_expand_mov_immediate): Ditto.
15003         (aarch64_print_operand): Ditto.
15004         (aarch64_classify_symbol): Ditto.
15005
15006 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
15007
15008         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15009
15010 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
15011
15012         PR bootstrap/66638
15013         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15014         assertion failed.  Remove assertion itself.
15015
15016 2015-06-26  Richard Biener  <rguenther@suse.de>
15017
15018         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15019         and -A CMP CST -> A CMP -CST which is redundant with a pattern
15020         in match.pd.
15021         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15022         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15023         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15024         * match.pd: ... patterns here.
15025
15026 2015-06-26  Marek Polacek  <polacek@redhat.com>
15027
15028         * match.pd ((x | y) & ~(x & y) -> x ^ y,
15029         (x | y) & (~x ^ y) -> x & y): New patterns.
15030
15031 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
15032
15033         * rtl.h (emit): Add an optional boolean parameter to control
15034         whether barriers are emitted.
15035         * emit-rtl.c (emit): Likewise.
15036         * gensupport.c (get_emit_function): Return null rather than "emit".
15037         * genemit.c (gen_emit_seq): Handle the null return value.
15038         Don't emit barriers after the final instruction in the sequence.
15039         * gentarget-def.c (main): Don't emit barriers after the instruction.
15040
15041 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15042
15043         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15044         TARGET_UNIFIED_ASM.
15045
15046 2015-06-26  Richard Biener  <rguenther@suse.de>
15047
15048         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15049
15050 2015-06-26  Richard Biener  <rguenther@suse.de>
15051
15052         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15053         irrespective on whether the inner operation has a single use
15054         of both off are constant.
15055
15056 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
15057             Segher Boessenkool  <segher@kernel.crashing.org>
15058
15059         PR target/66412
15060         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15061         before doing PUT_MODE or PUT_CODE on operands to avoid
15062         in-place RTX modification.
15063
15064 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15065
15066         * gentarget-def.c (def_target_insn): Cast return of strtol to
15067         unsigned int.
15068
15069 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15070
15071         * gimple.h (gimple_call_set_fn): Move inline function.
15072         * gimple.c (gimple_call_set_fn): Relocate here.
15073
15074 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
15075
15076         PR target/65979
15077         PR target/66611
15078         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15079         the replacement insn will work.
15080
15081 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15082
15083         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15084         by default.
15085
15086 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15087
15088         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15089         * cgraph.h: Include ipa-ref.h and plugin-api.h.
15090         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15091         (symtab_node::address_can_be_compared_p): Move function.
15092         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15093         definition here.
15094         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15095         * auto-profile.c: Likewise.
15096         * bb-reorder.c: Likewise.
15097         * builtins.c: Likewise.
15098         * calls.c: Likewise.
15099         * cfgexpand.c: Likewise.
15100         * cgraphbuild.c: Likewise.
15101         * cgraphclones.c: Likewise.
15102         * cgraphunit.c: Likewise.
15103         * combine.c: Likewise.
15104         * coverage.c: Likewise.
15105         * data-streamer-in.c: Likewise.
15106         * data-streamer-out.c: Likewise.
15107         * data-streamer.c: Likewise.
15108         * dbxout.c: Likewise.
15109         * dwarf2out.c: Likewise.
15110         * except.c: Likewise.
15111         * expr.c: Likewise.
15112         * final.c: Likewise.
15113         * fold-const.c: Likewise.
15114         * ggc-page.c: Likewise.
15115         * gimple-fold.c: Likewise.
15116         * gimple-iterator.c: Likewise.
15117         * gimple-pretty-print.c: Likewise.
15118         * gimple-streamer-in.c: Likewise.
15119         * gimple-streamer-out.c: Likewise.
15120         * gimple.c: Likewise.
15121         * gimplify.c: Likewise.
15122         * ipa-chkp.c: Likewise.
15123         * ipa-comdats.c: Likewise.
15124         * ipa-cp.c: Likewise.
15125         * ipa-devirt.c: Likewise.
15126         * ipa-icf-gimple.c: Likewise.
15127         * ipa-icf.c: Likewise.
15128         * ipa-inline-analysis.c: Likewise.
15129         * ipa-inline-transform.c: Likewise.
15130         * ipa-inline.c: Likewise.
15131         * ipa-polymorphic-call.c: Likewise.
15132         * ipa-profile.c: Likewise.
15133         * ipa-prop.c: Likewise.
15134         * ipa-pure-const.c: Likewise.
15135         * ipa-ref.c: Likewise.
15136         * ipa-reference.c: Likewise.
15137         * ipa-split.c: Likewise.
15138         * ipa-utils.c: Likewise.
15139         * ipa-visibility.c: Likewise.
15140         * ipa.c: Likewise.
15141         * langhooks.c: Likewise.
15142         * lto-cgraph.c: Likewise.
15143         * lto-compress.c: Likewise.
15144         * lto-opts.c: Likewise.
15145         * lto-section-in.c: Likewise.
15146         * lto-section-out.c: Likewise.
15147         * lto-streamer-in.c: Likewise.
15148         * lto-streamer-out.c: Likewise.
15149         * lto-streamer.c: Likewise.
15150         * omp-low.c: Likewise.
15151         * opts-global.c: Likewise.
15152         * passes.c: Likewise.
15153         * predict.c: Likewise.
15154         * print-tree.c: Likewise.
15155         * profile.c: Likewise.
15156         * ree.c: Likewise.
15157         * sanopt.c: Likewise.
15158         * stor-layout.c: Likewise.
15159         * symtab.c: Likewise.
15160         * toplev.c: Likewise.
15161         * trans-mem.c: Likewise.
15162         * tree-cfg.c: Likewise.
15163         * tree-chkp.c: Likewise.
15164         * tree-eh.c: Likewise.
15165         * tree-emutls.c: Likewise.
15166         * tree-inline.c: Likewise.
15167         * tree-nested.c: Likewise.
15168         * tree-parloops.c: Likewise.
15169         * tree-pretty-print.c: Likewise.
15170         * tree-profile.c: Likewise.
15171         * tree-sra.c: Likewise.
15172         * tree-ssa-alias.c: Likewise.
15173         * tree-ssa-live.c: Likewise.
15174         * tree-ssa-loop-ivcanon.c: Likewise.
15175         * tree-ssa-loop-ivopts.c: Likewise.
15176         * tree-ssa-pre.c: Likewise.
15177         * tree-ssa-sccvn.c: Likewise.
15178         * tree-ssa-strlen.c: Likewise.
15179         * tree-ssa-structalias.c: Likewise.
15180         * tree-streamer-in.c: Likewise.
15181         * tree-streamer-out.c: Likewise.
15182         * tree-streamer.c: Likewise.
15183         * tree-switch-conversion.c: Likewise.
15184         * tree-tailcall.c: Likewise.
15185         * tree-vect-data-refs.c: Likewise.
15186         * tree-vect-stmts.c: Likewise.
15187         * tree-vectorizer.c: Likewise.
15188         * tree.c: Likewise.
15189         * tsan.c: Likewise.
15190         * ubsan.c: Likewise.
15191         * value-prof.c: Likewise.
15192         * varasm.c: Likewise.
15193         * varpool.c: Likewise.
15194         * config/arm/arm.c: Likewise.
15195         * config/bfin/bfin.c: Likewise.
15196         * config/c6x/c6x.c: Likewise.
15197         * config/cris/cris.c: Likewise.
15198         * config/darwin-c.c: Likewise.
15199         * config/darwin.c: Likewise.
15200         * config/i386/i386.c: Likewise.
15201         * config/i386/winnt.c: Likewise.
15202         * config/microblaze/microblaze.c: Likewise.
15203         * config/mips/mips.c: Likewise.
15204         * config/rs6000/rs6000.c: Likewise.
15205         * config/rx/rx.c: Likewise.
15206         * config/s390/s390.c: Likewise.
15207         * config/tilegx/mul-tables.c: Likewise.
15208
15209 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15210
15211         * config/aarch64/aarch64.c, config/alpha/alpha.c,
15212         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15213         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15214         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15215         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15216         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15217         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15218         config/microblaze/microblaze.c, config/mips/mips.c,
15219         config/mmix/mmix.c, config/mn10300/mn10300.c,
15220         config/moxie/moxie.c, config/msp430/msp430.c,
15221         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15222         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15223         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15224         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15225         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15226         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15227         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15228         target-def.h include.
15229         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
15230
15231 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15232
15233         * Makefile.in (TARGET_DEF): Add target-insns.def.
15234         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15235         (build/gentarget-def.o): New rule.
15236         (genprogrtl): Add target-def.
15237         * target-insns.def, gentarget-def.c: New files.
15238         * target.def: Add targetm.have_* and targetm.gen_* hooks,
15239         based on the contents of target-insns.def.
15240         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15241         (HAVE_return, gen_return): Delete.
15242         * target-def.h: Include insn-target-def.h.
15243         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15244         instead of direct calls.  Rely on them to do the appropriate assertions.
15245         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
15246         (convert_jumps_to_returns): Use targetm interface instead of
15247         direct calls.
15248         (thread_prologue_and_epilogue_insns): Likewise.
15249         * reorg.c (find_end_label, dbr_schedule): Likewise.
15250         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15251         * shrink-wrap.c (convert_to_simple_return): Likewise.
15252         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15253
15254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15255
15256         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15257         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15258         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15259         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15260         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15261         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15262         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15263         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15264         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15265         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15266         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15267         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15268         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15269         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15270         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15271         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15272         includes to end.
15273
15274 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15275
15276         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15277         (unbounded_int_hashmap_traits::key_type): Likewise.
15278         * hash-map.h (hash_map): Get the key type from the traits.
15279         * hash-traits.h (default_hash_traits): By default, inherit from the
15280         template parameter.
15281         * alias.c (alias_set_traits): Delete.
15282         (alias_set_entry_d::children): Use alias_set_hash as the first
15283         template parameter.
15284         (record_alias_subset): Update accordingly.
15285         * except.c (tree_hash_traits): Delete.
15286         (type_to_runtime_map): Use tree_hash as the first template parameter.
15287         (init_eh): Update accordingly.
15288         * genmatch.c (capture_id_map_hasher): Delete.
15289         (cid_map_t): Use nofree_string_hash as first template parameter.
15290         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15291         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15292         Use symbol_compare_hash as the first template parameter in
15293         subdivide_hash_map.
15294         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15295         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15296         template parameter.
15297         * passes.c (pass_registry_hasher): Delete.
15298         (name_to_pass_map): Use nofree_string_hash as the first template
15299         parameter.
15300         (register_pass_name): Update accordingly.
15301         * sanopt.c (sanopt_tree_map_traits): Delete.
15302         (sanopt_tree_triplet_map_traits): Delete.
15303         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15304         template parameter.
15305         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15306         the first template parameter.
15307         * sese.c (rename_map_hasher): Delete.
15308         (rename_map_type): Use tree_ssa_name_hash as the first template
15309         parameter.
15310         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15311         (function_summary::m_map): Use map_hash as the first template
15312         parameter.
15313         (function_summary::release): Update accordingly.
15314         * tree-if-conv.c (phi_args_hash_traits): Delete.
15315         (predicate_scalar_phi): Use tree_operand_hash as the first template
15316         parameter to phi_arg_map.
15317         * tree-inline.h (dependence_hasher): Delete.
15318         (copy_body_data::dependence_map): Use dependence_hash as the first
15319         template parameter.
15320         * tree-inline.c (remap_dependence_clique): Update accordingly.
15321         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15322         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15323         parameter.
15324         (addr_stridxptr): Update accordingly.
15325         * value-prof.c (profile_id_traits): Delete.
15326         (cgraph_node_map): Use profile_id_hash as the first template
15327         parameter.
15328         (init_node_map): Update accordingly.
15329         * config/alpha/alpha.c (string_traits): Delete.
15330         (machine_function::links): Use nofree_string_hash as the first
15331         template parameter.
15332         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15333         * config/m32c/m32c.c (pragma_traits): Delete.
15334         (pragma_htab): Use nofree_string_hash as the first template parameter.
15335         (m32c_note_pragma_address): Update accordingly.
15336         * config/mep/mep.c (pragma_traits): Delete.
15337         (pragma_htab): Use nofree_string_hash as the first template parameter.
15338         (mep_note_pragma_flag): Update accordingly.
15339         * config/mips/mips.c (mips16_flip_traits): Delete.
15340         (mflip_mips16_htab): Use nofree_string_hash as the first template
15341         parameter.
15342         (mflip_mips16_use_mips16_p): Update accordingly.
15343         (local_alias_traits): Delete.
15344         (mips16_local_aliases): Use nofree_string_hash as the first template
15345         parameter.
15346         (mips16_local_alias): Update accordingly.
15347
15348 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15349
15350         * hash-map-traits.h (default_hashmap_traits): Delete.
15351
15352 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15353
15354         * hash-map-traits.h (unbounded_hashmap_traits): New class.
15355         (unbounded_int_hashmap_traits): Likewise.
15356         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15357
15358 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15359
15360         * ipa-icf.h (symbol_compare_hash): New class.
15361         (symbol_compare_hashmap_traits): Use it.
15362         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15363         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15364         (mem_alloc_description::reverse_mem_map_t): Remove redundant
15365         default_hashmap_traits.
15366         * sanopt.c (sanopt_tree_triplet_hash): New class.
15367         (sanopt_tree_triplet_map_traits): Use it.
15368
15369 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15370
15371         * gengtype-parse.c (require_template_declaration): Allow '+' in
15372         template parameters.  Consolidate cases.
15373         * hash-traits.h (int_hash): New class.
15374         * alias.c (alias_set_hash): New structure.
15375         (alias_set_traits): Use it.
15376         * symbol-summary.h (function_summary::map_hash): New class.
15377         (function_summary::summary_hashmap_traits): Use it.
15378         * tree-inline.h (dependence_hash): New class.
15379         (dependence_hasher): Use it.
15380         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15381         * value-prof.c (profile_id_hash): New class.
15382         (profile_id_traits): Use it.
15383
15384 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15385
15386         * config/mips/mips.c (mips16_flip_traits): Use it.
15387         (local_alias_traits, mips16_local_aliases): Convert from a map of
15388         rtxes to a map of symbol names.
15389         (mips16_local_alias): Update accordingly.
15390
15391 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15392
15393         * hash-traits.h (string_hash, nofree_string_hash): New classes.
15394         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15395         * passes.c (pass_registry_hasher): Likewise.
15396         * config/alpha/alpha.c (string_traits): Likewise.
15397         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15398         * config/m32c/m32c.c (pragma_traits): Likewise.
15399         * config/mep/mep.c (pragma_traits): Likewise.
15400
15401 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15402
15403         * tree-hash-traits.h (tree_hash): New class.
15404         * except.c: Include tree-hash-traits.h.
15405         (tree_hash_traits): Use tree_hash.
15406
15407 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15408
15409         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15410         * sese.c: Include tree-hash-traits.h.
15411         (rename_map_hasher): Use tree_ssa_name_hasher.
15412
15413 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15414
15415         * tree-hash-traits.h (tree_decl_hash): New class.
15416         * tree-ssa-strlen.c: Include tree-hash-traits.h.
15417         (stridxlist_hash_traits): Use tree_decl_hash.
15418
15419 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15420
15421         * tree-hash-traits.h: New file.
15422         (tree_operand_hash): New class.
15423         * sanopt.c: Include tree-hash-traits.h.
15424         (sanopt_tree_map_traits): Use tree_operand_hash.
15425         * tree-if-conv.c: Include tree-hash-traits.h.
15426         (phi_args_hash_traits): Use tree_operand_hash.
15427         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15428         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15429
15430 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15431
15432         * hash-map-traits.h: Include hash-traits.h.
15433         (simple_hashmap_traits): New class.
15434         * mem-stats.h (hash_map): Change the default traits to
15435         simple_hashmap_traits<default_hash_traits<Key> >.
15436
15437 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15438
15439         * hash-table.h: Update comments.
15440
15441 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15442
15443         * hash-traits.h (default_hash_traits): New structure.
15444         * hash-set.h (default_hashset_traits): Delete.
15445         (hash_set): Use default_hash_traits<Key> instead of
15446         default_hashset_traits.  Delete hash_entry type and use Key directly.
15447         * ipa-devirt.c (pair_traits): Delete.
15448         (default_hash_traits <type_pair>): Override.
15449         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15450         (odr_types_equivalent_p, add_type_duplicate): Likewise.
15451
15452 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15453
15454         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15455
15456 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15457
15458         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15459         (has_is_empty, is_empty_helper): Delete.
15460         (has_mark_deleted, mark_deleted_helper): Delete.
15461         (has_mark_empty, mark_empty_helper): Delete.
15462         (hash_table::is_deleted): Call the Descriptor unconditionally.
15463         (hash_table::is_empty): Likewise.
15464         (hash_table::mark_deleted): Likewise.
15465         (hash_table::mark_empty): Likewise.
15466
15467 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15468
15469         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
15470         redundant typedefs and members.
15471         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
15472         redundant typedefs.
15473         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15474         * ipa-devirt.c (odr_name_hasher): Likewise.
15475         (polymorphic_call_target_hasher): Likewise.
15476         * ira-costs.c (cost_classes_hasher): Likewise.
15477         * statistics.c (stats_counter_hasher): Likewise.
15478         * trans-mem.c (log_entry_hasher): Likewise.
15479         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15480         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15481         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15482         * var-tracking.c (variable_hasher): Likewise.
15483         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15484         Remove redundant typedefs and members.
15485
15486 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15487
15488         * hash-traits.h (ggc_cache_hasher): Rename to...
15489         (ggc_cache_remove): ...this and remove typedefs.
15490         (ggc_cache_ptr_hash): New class.
15491         * hash-table.h: Update commentary.
15492         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15493         rather than ggc_cache_hasher.
15494         (const_wide_int_hasher, reg_attr_hasher): Likewise.
15495         (const_double_hasher, const_fixed_hasher): Likewise.
15496         * function.c (insn_cache_hasher): Likewise.
15497         * trans-mem.c (tm_wrapper_hasher): Likewise.
15498         * tree.h (tree_decl_map_cache_hasher): Likewise.
15499         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15500         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15501         * ubsan.c (tree_type_map_cache_hasher): Likewise.
15502         * varasm.c (tm_clone_hasher): Likewise.
15503         * config/i386/i386.c (dllimport_hasher): Likewise.
15504         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15505         (tree_hasher): Likewise.
15506
15507 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15508
15509         * hash-traits.h (ggc_hasher): Rename to...
15510         (ggc_remover): ...this and remove typedefs.
15511         (ggc_cache_hasher): Update accordingly.  Add typedefs.
15512         (ggc_ptr_hash): New class.
15513         * hash-table.h: Update comment.
15514         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15515         ggc_hasher.
15516         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15517         (tree_descriptor_hasher): Likewise.
15518         * cgraph.c (function_version_hasher): Likewise.
15519         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15520         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15521         (dw_loc_list_hasher, addr_hasher): Likewise.
15522         * function.h (used_type_hasher): Likewise.
15523         * function.c (temp_address_hasher): Likewise.
15524         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15525         * libfuncs.h (libfunc_hasher): Likewise.
15526         * lto-streamer.h (decl_state_hasher): Likewise.
15527         * optabs.c (libfunc_decl_hasher): Likewise.
15528         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15529         * varasm.c (section_hasher, object_block_hasher): Likewise.
15530         (const_rtx_desc_hasher): Likewise.
15531         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15532         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15533
15534 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15535
15536         * hash-traits.h (free_ptr_hash): New class.
15537         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15538         rather than typed_free_remove.  Remove redudant typedefs.
15539         (external_ref_hasher): Likewise.
15540         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15541         (ehspec_hasher): Likewise.
15542         * ggc-common.c (saving_hasher): Likewise.
15543         * gimplify.c (gimplify_hasher): Likewise.
15544         * haifa-sched.c (delay_i2_hasher): Likewise.
15545         * loop-invariant.c (invariant_expr_hasher): Likewise.
15546         * loop-iv.c (biv_entry_hasher): Likewise.
15547         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15548         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15549         * tree-cfg.c (locus_discrim_hasher): Likewise.
15550         * tree-eh.c (finally_tree_hasher): Likewise.
15551         * tree-into-ssa.c (var_info_hasher): Likewise.
15552         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15553         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15554         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15555         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15556         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15557         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15558         (shared_bitmap_hasher): Likewise.
15559         * tree-ssa-threadupdate.c (redirection_data): Likewise.
15560         * tree-vectorizer.h (peel_info_hasher): Likewise.
15561         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15562         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15563
15564 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15565
15566         * hash-table.h: Update comments.
15567         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15568         (nofree_ptr_hash): New class.
15569         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15570         than typed_noop_remove.  Remove redudant typedefs.
15571         * attribs.c (attribute_hasher): Likewise.
15572         * cfg.c (bb_copy_hasher): Likewise.
15573         * cselib.c (cselib_hasher): Likewise.
15574         * dse.c (invariant_group_base_hasher): Likewise.
15575         * dwarf2cfi.c (trace_info_hasher): Likewise.
15576         * dwarf2out.c (macinfo_entry_hasher): Likewise.
15577         (comdat_type_hasher, loc_list_hasher): Likewise.
15578         * gcse.c (pre_ldst_expr_hasher): Likewise.
15579         * genmatch.c (id_base): Likewise.
15580         * genrecog.c (test_pattern_hasher): Likewise.
15581         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15582         * haifa-sched.c (delay_i1_hasher): Likewise.
15583         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15584         * ipa-icf.h (congruence_class_group_hash): Likewise.
15585         * ipa-profile.c (histogram_hash): Likewise.
15586         * ira-color.c (allocno_hard_regs_hasher): Likewise.
15587         * lto-streamer.h (string_slot_hasher): Likewise.
15588         * lto-streamer.c (tree_entry_hasher): Likewise.
15589         * plugin.c (event_hasher): Likewise.
15590         * postreload-gcse.c (expr_hasher): Likewise.
15591         * store-motion.c (st_expr_hasher): Likewise.
15592         * tree-sra.c (uid_decl_hasher): Likewise.
15593         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15594         (ssa_name_var_hash): Likewise.
15595         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15596         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15597         * tree-ssa-pre.c (pre_expr_d): Likewise.
15598         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15599         * vtable-verify.h (registration_hasher): Likewise.
15600         * vtable-verify.c (vtbl_map_hasher): Likewise.
15601         * config/arm/arm.c (libcall_hasher): Likewise.
15602         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15603         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15604         * config/sol2.c (comdat_entry_hasher): Likewise.
15605         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15606         (print_fold_checksum, fold_checksum_tree): Likewise.
15607         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15608         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15609         (fold_build_call_array_loc): Likewise.
15610         * tree-ssa-ccp.c (gimple_htab): Likewise.
15611         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15612         rather than pointer_type.
15613
15614 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15615
15616         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15617         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15618
15619 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15620
15621         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15622         (ggc_hasher::ggc_mx): Likewise.
15623         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
15624         that duplicate ggc_hasher ones.
15625
15626 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15627
15628         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15629         (gt_cleare_cache): Check here for deleted and empty entries.
15630         Replace handle_cache_entry with a call to keep_cache_entry.
15631         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15632         (ggc_cache_hasher::keep_cache_entry): New function.
15633         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15634         (tm_wrapper_hasher::keep_cache_entry): New function.
15635         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15636         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15637         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15638         (type_cache_hasher::keep_cache_entry): New function.
15639         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15640         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15641         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15642         (tree_type_map_cache_hasher::keep_cache_entry): New function.
15643         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15644         (tm_clone_hasher::keep_cache_entry): New function.
15645         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15646         (dllimport_hasher::keep_cache_entry): New function.
15647
15648 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15649
15650         * hash-table.h: Include hash-traits.h.
15651         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15652         (ggc_cache_hasher): Move to...
15653         * hash-traits.h: ...this new file.
15654
15655 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15656
15657         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15658         struct cl_optimization.
15659         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15660         * tree.c (make_node_stat): Allocate cl_optimization struct.
15661         (copy_node_stat): Allocate and copy cl_optimization struct.
15662
15663 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15664
15665         * function.h (struct incoming_args): Move struct.
15666         (pass_by_reference, reference_callee_copied): Remove prototypes.
15667         * emit-rtl.h (struct incoming_args): Relocate struct here.
15668         * calls.h (pass_by_reference, reference_callee_copied): Relocate
15669         prototypes here.
15670         * function.c (pass_by_reference, reference_callee_copied): Move.
15671         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15672         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15673         * ipa-chkp.c: Include calls.h.
15674
15675 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
15676
15677         * alias.h (alias_set_type): Move typedef.
15678         * coretypes.h (alias_set_type): Relocate typedef here.
15679         * rtl.h: Don't include alias.h.
15680
15681 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
15682
15683         * cgraph.h (cgraph_rtl_info): Move to rtl.h
15684         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15685         and instance.
15686         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15687         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15688         doesn't exist.
15689         * calls.c: Include hard-reg-set.h before rtl.h.
15690         * ira.c: Likewise.
15691
15692 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15693             Vladimir Makarov  <vmakarov@redhat.com>
15694
15695         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15696         Add assert.
15697
15698 2015-06-25  Richard Biener  <rguenther@suse.de>
15699
15700         * fold-const.c (fold_binary_loc): Move simplification of
15701         (X <<>> C1) & C2 ...
15702         * match.pd: ... here.
15703
15704 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
15705
15706         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15707
15708 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
15709
15710         * match.pd: Add patterns for vec_conds between 1 and 0.
15711
15712 2015-06-25  Richard Biener  <rguenther@suse.de>
15713
15714         * tree-vect-stmts.c (vectorizable_conversion): Do not set
15715         STMT_VINFO_VEC_STMT for SLP.
15716         (vectorizable_store): Likewise.
15717         (vectorizable_load): Likewise.
15718         (vect_transform_stmt): Catch SLP vectorization clobbering
15719         STMT_VINFO_VEC_STMT.
15720
15721 2015-06-25  Richard Biener  <rguenther@suse.de>
15722
15723         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15724         dumping.
15725         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15726         cleanup resulting dead code and parameters.
15727         (vect_transform_slp_perm_load): Adjust.
15728
15729 2015-06-25  Nick Clifton  <nickc@redhat.com>
15730
15731         * config/bfin/bfin.c (bfin_expand_prologue): Set
15732         current_function_static_stack_size if flag_stack_usage_info is set.
15733         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15734         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15735         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15736         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15737
15738 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15739
15740         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15741         comment that the generated IV is unsigned.
15742
15743 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15744
15745         PR target/29693
15746         * config/arm/arm.c (arm_dbx_register_number): Return
15747         DWARF_FRAME_REGISTERS by default.
15748
15749 2015-06-25  Tom de Vries  <tom@codesourcery.com>
15750
15751         * dominance.c (calculate_dominance_info): Fix verify_dominators call
15752         argument.  Call verify_dominator when reusing dominator info.
15753
15754 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15755
15756         PR target/66563
15757         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15758         an additional element of the unspec vector.  Modify indices
15759         of operands.
15760         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15761         * config/sh/sh.c (prepare_move_operands): Pass incremented
15762         const_int to gen_GOTaddr2picreg.
15763         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15764
15765 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15766
15767         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15768         Condition on TARGET_FLOAT.
15769
15770 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15771
15772         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15773         and (no)crypto.
15774
15775 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
15776
15777         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15778
15779         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15780         aarch64_err_no_fpadvsimd.
15781
15782         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15783         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15784         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15785         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15786         Turn error into assert, test TARGET_FLOAT.
15787         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15788         TARGET_FLOAT.
15789
15790 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
15791
15792         PR debug/66482
15793         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15794
15795 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
15796
15797         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15798
15799 2015-06-24  Renlin Li <renlin.li@arm.com>
15800
15801         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15802         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15803
15804 2015-06-24  Richard Biener  <rguenther@suse.de>
15805
15806         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15807         (main): Likewise.
15808         (lower_opt_convert): Support lowering of conditional view_convert.
15809         (parser::parse_operation): Likewise.
15810         (parser::parse_for): Likewise.
15811
15812 2015-06-24  Renlin Li  <renlin.li@arm.com>
15813
15814         * varasm.c (emit_local): Use unsigned int for align variable.
15815
15816 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15817
15818         PR target/63408
15819         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15820         for negative numbers.
15821
15822 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15823
15824         PR rtl-optimization/66306
15825         * reload.c (find_reloads): Swap the match_dup info for
15826         commutative operands.
15827
15828 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15829
15830         * config/s390/vx-builtins.md
15831         ("vec_scatter_element<mode>_<non_vec_int>")
15832         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15833         attribute with bhfgq.
15834
15835 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15836
15837         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15838
15839 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15840
15841         * config/s390/s390-builtin-types.def: Add flag to indicate the
15842         options under which the function type is needed.
15843         * config/s390/s390-builtins.def: Add flag to indicate the options
15844         under which the builtin is enabled.
15845         * config/s390/s390-builtins.h: Add flags parameter to macro
15846         definitions.
15847         (bflags_for_builtin): New function.
15848         (flags_for_builtin): Renamed to ...
15849         (opflags_for_builtin): ... this.
15850         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15851         flags_for_builtin to bflags_for_builtin and
15852         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15853         * config/s390/s390.c: Add initialization of bflags_builtin and
15854         opflags_builtin arrays.
15855         Remove code for flags_builtin.
15856         (s390_init_builtins): Only create builtin function types if one of
15857         their flags is active.
15858         Only create builtins if all of their flags are active.
15859         (s390_expand_builtin): Rename flags_for_builtin to
15860         opflags_for_builtin.
15861
15862 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15863
15864         * config/s390/vecintrin.h: Remove internal builtins.
15865
15866 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15867
15868         * config/s390/s390.c (s390_secondary_reload): Fix check for
15869         GENERAL_REGS register class.
15870
15871 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15872
15873         * config/s390/s390.c (s390_support_vector_misalignment): Call
15874         default implementation for !TARGET_VX.
15875
15876 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15877
15878         * config/s390/s390.c (s390_legitimate_constant_p): Add
15879         TARGET_VX check.
15880
15881 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15882
15883         * config/s390/s390.c (s390_vector_abi): New variable definition.
15884         (s390_check_type_for_vector_abi): New function.
15885         (TARGET_ASM_FILE_END): New macro definition.
15886         (s390_asm_file_end): New function.
15887         (s390_function_arg): Call s390_check_type_for_vector_abi.
15888         (s390_gimplify_va_arg): Likewise.
15889         * configure: Regenerate.
15890         * configure.ac: Check for .gnu_attribute Binutils feature.
15891
15892 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
15893
15894         PR target/65803
15895         * config/bfin/bfin.c (hwloop_optimize): Initialize
15896         JUMP_LABEL for newly created jump.
15897
15898 2015-06-23  Tristan Gingold  <gingold@adacore.com>
15899
15900         * collect-utils.c (collect_wait): Unlink the response file here
15901         instead of...
15902         (do_wait): ...here.
15903         (utils_cleanup): ...and here.
15904
15905 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
15906
15907         * df-scan.c: Don't include target-def.h.
15908         * targhooks.c: Likewise.
15909         * config/arm/arm-c.c: Likewise.
15910         * config/i386/i386-c.c: Likewise.
15911         * config/nds32/nds32-cost.c: Likewise.
15912         * config/nds32/nds32-fp-as-gp.c: Likewise.
15913         * config/nds32/nds32-intrinsic.c: Likewise.
15914         * config/nds32/nds32-isr.c: Likewise.
15915         * config/nds32/nds32-md-auxiliary.c: Likewise.
15916         * config/nds32/nds32-memory-manipulation.c: Likewise.
15917         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15918         * config/nds32/nds32-predicates.c: Likewise.
15919
15920 2015-06-23  Richard Biener  <rguenther@suse.de>
15921
15922         PR tree-optimization/66636
15923         * tree-vect-stmts.c (vectorizable_store): Properly compute the
15924         def type for further defs for strided stores.
15925
15926 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
15927
15928         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15929         conditional selects.
15930         (setcc_int<mode>, setcc_float<mode>): Reformat.
15931
15932 2015-06-23  Marek Polacek  <polacek@redhat.com>
15933
15934         * match.pd ((x + y) - (x | y) -> x & y,
15935         (x + y) - (x & y) -> x | y): New patterns.
15936
15937 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
15938
15939         PR 65711
15940         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
15941         '-dynamic-linker' within %{!shared: ...}.
15942
15943 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
15944
15945         PR target/66560
15946         * config/i386/predicates.md (addsub_vm_operator): New predicate.
15947         (addsub_vs_operator): Ditto.
15948         (addsub_vs_parallel): Ditto.
15949         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
15950         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
15951         Put minus RTX before plus and adjust vec_merge selector.
15952         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
15953         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
15954         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
15955         (addsub vec_merge splitters): New combiner splitters.
15956         (addsub vec_select/vec_concat splitters): Ditto.
15957
15958 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
15959
15960         PR tree-optimization/66449
15961         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
15962         POINTER_PLUS_EXPR for pointers.
15963
15964 2015-06-23  Alan Modra  <amodra@gmail.com>
15965
15966         * rtlanal.c (commutative_operand_precedence): Correct comments.
15967         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
15968         declaration.  Return an int.  Distinguish REG,REG return from
15969         others.
15970         (struct simplify_plus_minus_op_data): Make local to function.
15971         (simplify_plus_minus): Don't set canonicalized if merely sorting
15972         registers.  Avoid packing ops if nothing changes.  White space fixes.
15973
15974 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
15975
15976         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
15977         -fdump-ada-spec is passed but not if -fsyntax-only is.
15978
15979 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
15980
15981         PR bootstrap/63740
15982         * lra-lives.c (process_bb_lives): Check insn copying the same
15983         reload pseudo and don't create a copy for it.
15984
15985 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15986
15987         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
15988         for cond_stmt.
15989
15990 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15991
15992         * builtins.def (DEF_GOMP_BUILTIN): Test
15993         'flag_tree_parallelize_loops > 1' instead of
15994         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
15995
15996 2015-06-22  Tom de Vries  <tom@codesourcery.com>
15997
15998         * dominance.c (calculate_dominance_info): Verify dominators if
15999         early-out.
16000
16001 2015-06-22  Marek Polacek  <polacek@redhat.com>
16002
16003         * match.pd ((x ^ y) ^ (x | y) -> x & y,
16004         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16005         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16006         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16007
16008 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
16009
16010         PR target/65871
16011         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16012         cost of embedded comparison.
16013
16014 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16015
16016         PR target/65914
16017         * config/rs6000/predicates.md (altivec_register_operand): Permit
16018         virtual stack registers.
16019         (vsx_register_operand): Likewise.
16020         (vfloat_operand): Likewise.
16021         (vint_operand): Likewise.
16022         (vlogical_operand): Likewise.
16023
16024 2015-06-22  Richard Biener  <rguenther@suse.de>
16025
16026         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16027         and single_scalar_iteration_cost members.
16028         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16029         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16030         (vect_get_single_scalar_iteration_cost): Remove.
16031         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16032         Use LOOP_VINFO_SCALAR_ITERATION_COST.
16033         * tree-vect-loop.c (destroy_loop_vec_info): Free
16034         scalar_cost_vec.
16035         (vect_get_single_scalar_iteration_cost): Compute result into
16036         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16037         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
16038         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16039         (vect_estimate_min_profitable_iters): Use them.
16040
16041 2015-06-22  Christian Bruel  <christian.bruel@st.com>
16042
16043         PR target/52144
16044         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16045         (TARGET_INSERT_ATTRIBUTES): Define.
16046         (thumb_flipper): New var.
16047         * config/arm/arm.opt (-mflip-thumb): New switch.
16048
16049 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16050             Martin Liska  <mliska@suse.cz>
16051
16052         PR ipa/65908
16053         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16054         construction of arg_types.
16055         (sem_function::sem_function): Likewise.
16056         (sem_function::~sem_function): Remove destruction of arg_types.
16057         (sem_function::compatible_parm_types_p): New function.
16058         (sem_function::equals_wpa): Reorg matching of return values
16059         and parameter types.
16060         (sem_function::equals_private): Reorg mathcing of argument types.
16061         (sem_function::parse_tree_args): Remove.
16062         * ipa-icf.h (init_wpa): Do not call it.
16063         (parse_tree_args): Remove.
16064         (compatible_parm_types_p): Declare.
16065         (result_type): Remove.
16066         (arg_types): Remove.
16067
16068 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
16069
16070         PR ipa/66351
16071         * ipa-polymorphic-call.c
16072         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16073         initializing alias oracle; fix formating; set base_alias_set if it
16074         is known.
16075
16076 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
16077
16078         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16079         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16080         (find_inc): Likewise.
16081         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16082         swapping.
16083         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16084         * df-scan.c (df_swap_refs): Remove.
16085         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16086         * dominance.c (link_roots): Use std::swap instead of manually swapping.
16087         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16088         * fold-const.c (fold_relational_const): Likewise.
16089         * genattrtab.c (simplify_test_exp): Likewise.
16090         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16091         gimple_simplify): Likewise.
16092         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16093         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16094         * ipa-devirt.c (add_type_duplicate): Likewise.
16095         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16096         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16097         * lra.c (lra_create_copy): Likewise.
16098         * lto-streamer-out.c (DFS::DFS): Likewise.
16099         * modulo-sched.c (get_sched_window): Likewise.
16100         * omega.c (omega_pretty_print_problem): Likewise.
16101         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16102         * reload1.c (reloads_unique_chain_p): Likewise.
16103         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16104         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16105         use std::swap.
16106         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16107         manually swapping.
16108         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16109         predicate_mem_writes): Likewise.
16110         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16111         * tree-predcom.c (combine_chains): Likewise.
16112         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16113         refs_may_alias_p_1): Likewise.
16114         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16115         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16116         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16117         number_of_iterations_cond): Likewise.
16118         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16119         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16120         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16121         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16122         * tree-vrp.c (extract_range_from_binary_expr_1,
16123         extract_range_from_unary_expr_1): Likewise.
16124
16125 2015-06-20  Marek Polacek  <polacek@redhat.com>
16126
16127         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16128
16129 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
16130
16131         PR target/66591
16132         * config/sh/sh.c (prepare_move_operands): Replace subreg
16133         index term with R0 for base and index addressing.
16134
16135 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
16136
16137         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16138         op1 is an fp zero.
16139         (movsf_aarch64): Change condition from register_operand to
16140         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
16141         load1.  Change type for alternative 7 to store1.
16142         (movdf_aarch64): Likewise.
16143
16144 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
16145
16146         * config/vax/vax.md: Adjust sign/zero extend patterns to
16147         handle SUBREGs in operands[1].
16148
16149 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16150
16151         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16152         of manually swapping.
16153         (expand_vec_perm_interleave2): Likewise.
16154
16155 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
16156
16157         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16158         reuse bounds created for abnormal ssa names.
16159
16160 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
16161
16162         * config/nvptx/nvptx.md (allocate_stack): Rename to...
16163         (allocate_stack_<mode>): ... this, and add :P on both
16164         match_operand and unspec.
16165         (allocate_stack): New expander.
16166
16167 2015-06-19  Christian Bruel  <christian.bruel@st.com>
16168
16169         PR target/66541
16170         PR target/52144
16171         * config/arm/arm.c (arm_set_current_function): Handle
16172         explicit default options.
16173
16174 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16175
16176         * config/i386/i386.md (*movsicc_noc_zext): New insn.
16177         (zero-extended cmove with mem peephole2): New pattern.
16178         (cmove with mem peephole2): Merge patterns.
16179
16180 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
16181
16182         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16183
16184 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
16185
16186         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16187         * config/mips/mips.md (*madd4<mode>): Ditto.
16188         (*nmadd3<mode>) Ditto.
16189         (*nmadd4<mode>_fastmath): Ditto.
16190         (*nmadd3<mode>_fastmath): Ditto.
16191         (*nmsub4<mode>): Ditto.
16192         (*nmsub3<mode>): Ditto.
16193         (*nmsub4<mode>_fastmath): Ditto.
16194         (*nmsub3<mode>_fastmath): Ditto.
16195
16196 2015-06-18  Michael Matz  <matz@suse.de>
16197
16198         PR middle-end/66253
16199         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16200         grouped strided stores.
16201         (vectorizable_load): Don't use the DR from first_stmt in
16202         the non-SLP grouped strided case.
16203
16204 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16205
16206         PR target/66569
16207         * function.c (assign_bounds): Add arguments assign_regs,
16208         assign_special, assign_bt.
16209         (assign_parms): For vararg functions handle bounds in BT
16210         and special slots after incoming vararg bounds.
16211
16212 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16213
16214         PR middle-end/66568
16215         * cfgexpand.c (expand_return): Handle missing bounds.
16216         (expand_gimple_stmt_1): Likewise.
16217         * tree-chkp.c (chkp_expand_zero_bounds): New.
16218         * tree-chkp.h (chkp_expand_zero_bounds): New.
16219
16220 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16221
16222         PR middle-end/66567
16223         * ipa-chkp.c (chkp_maybe_create_clone): Require
16224         functions to be instrumentable.
16225         * tree-chkp.c (chkp_replace_function_pointer): Use
16226         chkp_instrumentable_p instead of attribute check.
16227
16228 2015-06-18  Richard Biener  <rguenther@suse.de>
16229
16230         PR tree-optimization/66510
16231         * tree-vect-stmts.c (vectorizable_load): Properly compute the
16232         number of vector loads for SLP permuted loads.
16233         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16234         check the stride for loop vectorization.
16235         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16236         vectorization factor.
16237         (vect_analyze_group_access): If the group size is not a power
16238         of two require a epilogue loop.
16239         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16240         compute and optimizing and alias test pruning after final
16241         vectorization factor computation.
16242         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16243         vector alignment.
16244         (vect_transform_slp_perm_load): Properly compute the original
16245         number of vector load stmts.
16246
16247 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
16248
16249         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16250         "unlikely character , in @var" warning.
16251
16252 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
16253
16254         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16255         (ix86_function_arg_advance): Ditto.
16256         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
16257
16258 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16259
16260         * function.h (struct rtl_data): Remove struct and accessor macros.
16261         * emit-rtl.h (struct rtl_data): Relocate to here.
16262         * Makefile.in (GTFILES): Add emit-rtl.h.
16263         * df-core.c: Include emit-rtl.h.
16264         * genattrtab.c: Likewise.
16265         * genconditions.c: Likewise.
16266         * genpreds.c: Likewise.
16267         * genrecog.c: Likewise.
16268         * regcprop.c: Likewise.
16269         * resource.c: Likewise.
16270         * sched-rgn.c: Likewise.
16271         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16272         * config/i386/winnt.c: Likewise.
16273
16274 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
16275
16276         PR middle-end/66429
16277         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16278         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
16279         and has_force_vectorize_loops flags from cfun into
16280         child_cfun.
16281         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16282         if simduid is non-NULL.
16283         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16284         * passes.def (pass_simduid_cleanup): Add new pass after loop
16285         passes.
16286         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16287         indirection from htab argument's type.
16288         (shrink_simd_arrays): New function.
16289         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
16290         Don't call adjust_simduid_builtins if there are no loops.
16291         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16292         (pass_simduid_cleanup::execute): New method.
16293         (make_pass_simduid_cleanup): New function.
16294
16295 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
16296
16297         * tree-core.h (tree_target_option): Make opts field a pointer to a
16298         cl_target_option instead of an instance of the struct.
16299         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16300         the structure.
16301         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16302         TARGET_OPTION_NODE.
16303         (copy_node_stat): Allocate and copy struct cl_target_option.
16304
16305 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16306
16307         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16308         Remove conditional exposure of prototypes.
16309         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16310         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
16311         definitions in tree.h with functions.
16312         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16313         anon_aggrname_p.
16314         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16315
16316 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
16317
16318         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16319         (*cmp<mode>_signed): ... this.
16320         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16321         (*cmp<mode>_unsigned): ... this.  Remove %b.
16322
16323 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
16324
16325         * coretypes.h: Include input.h and as-a.h.
16326         * rtl.h: Include input.h and as-a.h for generator files.
16327         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16328         * vec.c: Don't include diagnostic-core.h.
16329         * alias.c: Do not include input.h, line-map.h or is-a.h.
16330         * asan.c: Likewise.
16331         * attribs.c: Likewise.
16332         * auto-inc-dec.c: Likewise.
16333         * auto-profile.c: Likewise.
16334         * bb-reorder.c: Likewise.
16335         * bt-load.c: Likewise.
16336         * builtins.c: Likewise.
16337         * caller-save.c: Likewise.
16338         * calls.c: Likewise.
16339         * ccmp.c: Likewise.
16340         * cfg.c: Likewise.
16341         * cfganal.c: Likewise.
16342         * cfgbuild.c: Likewise.
16343         * cfgcleanup.c: Likewise.
16344         * cfgexpand.c: Likewise.
16345         * cfghooks.c: Likewise.
16346         * cfgloop.c: Likewise.
16347         * cfgloop.h: Likewise.
16348         * cfgloopanal.c: Likewise.
16349         * cfgloopmanip.c: Likewise.
16350         * cfgrtl.c: Likewise.
16351         * cgraph.c: Likewise.
16352         * cgraphbuild.c: Likewise.
16353         * cgraphclones.c: Likewise.
16354         * cgraphunit.c: Likewise.
16355         * cilk-common.c: Likewise.
16356         * combine-stack-adj.c: Likewise.
16357         * combine.c: Likewise.
16358         * compare-elim.c: Likewise.
16359         * convert.c: Likewise.
16360         * coverage.c: Likewise.
16361         * cppbuiltin.c: Likewise.
16362         * cprop.c: Likewise.
16363         * cse.c: Likewise.
16364         * cselib.c: Likewise.
16365         * data-streamer-in.c: Likewise.
16366         * data-streamer-out.c: Likewise.
16367         * data-streamer.c: Likewise.
16368         * dbxout.c: Likewise.
16369         * dce.c: Likewise.
16370         * ddg.c: Likewise.
16371         * debug.c: Likewise.
16372         * df-core.c: Likewise.
16373         * df-problems.c: Likewise.
16374         * df-scan.c: Likewise.
16375         * df.h: Likewise.
16376         * dfp.c: Likewise.
16377         * diagnostic-core.h: Likewise.
16378         * diagnostic.c: Likewise.
16379         * dojump.c: Likewise.
16380         * dominance.c: Likewise.
16381         * domwalk.c: Likewise.
16382         * double-int.c: Likewise.
16383         * dse.c: Likewise.
16384         * dumpfile.c: Likewise.
16385         * dumpfile.h: Likewise.
16386         * dwarf2asm.c: Likewise.
16387         * dwarf2cfi.c: Likewise.
16388         * dwarf2out.c: Likewise.
16389         * emit-rtl.c: Likewise.
16390         * et-forest.c: Likewise.
16391         * except.c: Likewise.
16392         * explow.c: Likewise.
16393         * expmed.c: Likewise.
16394         * expr.c: Likewise.
16395         * final.c: Likewise.
16396         * fixed-value.c: Likewise.
16397         * fold-const.c: Likewise.
16398         * function.c: Likewise.
16399         * fwprop.c: Likewise.
16400         * gcc-plugin.h: Likewise.
16401         * gcse.c: Likewise.
16402         * generic-match-head.c: Likewise.
16403         * ggc-page.c: Likewise.
16404         * gimple-builder.c: Likewise.
16405         * gimple-expr.c: Likewise.
16406         * gimple-fold.c: Likewise.
16407         * gimple-iterator.c: Likewise.
16408         * gimple-low.c: Likewise.
16409         * gimple-match-head.c: Likewise.
16410         * gimple-pretty-print.c: Likewise.
16411         * gimple-ssa-isolate-paths.c: Likewise.
16412         * gimple-ssa-strength-reduction.c: Likewise.
16413         * gimple-streamer-in.c: Likewise.
16414         * gimple-streamer-out.c: Likewise.
16415         * gimple-streamer.h: Likewise.
16416         * gimple-walk.c: Likewise.
16417         * gimple.c: Likewise.
16418         * gimplify-me.c: Likewise.
16419         * gimplify.c: Likewise.
16420         * godump.c: Likewise.
16421         * graph.c: Likewise.
16422         * graphite-blocking.c: Likewise.
16423         * graphite-dependences.c: Likewise.
16424         * graphite-interchange.c: Likewise.
16425         * graphite-isl-ast-to-gimple.c: Likewise.
16426         * graphite-optimize-isl.c: Likewise.
16427         * graphite-poly.c: Likewise.
16428         * graphite-scop-detection.c: Likewise.
16429         * graphite-sese-to-poly.c: Likewise.
16430         * graphite.c: Likewise.
16431         * haifa-sched.c: Likewise.
16432         * hw-doloop.c: Likewise.
16433         * ifcvt.c: Likewise.
16434         * init-regs.c: Likewise.
16435         * input.c: Likewise.
16436         * internal-fn.c: Likewise.
16437         * ipa-chkp.c: Likewise.
16438         * ipa-comdats.c: Likewise.
16439         * ipa-cp.c: Likewise.
16440         * ipa-devirt.c: Likewise.
16441         * ipa-icf-gimple.c: Likewise.
16442         * ipa-icf.c: Likewise.
16443         * ipa-inline-analysis.c: Likewise.
16444         * ipa-inline-transform.c: Likewise.
16445         * ipa-inline.c: Likewise.
16446         * ipa-polymorphic-call.c: Likewise.
16447         * ipa-profile.c: Likewise.
16448         * ipa-prop.c: Likewise.
16449         * ipa-pure-const.c: Likewise.
16450         * ipa-ref.c: Likewise.
16451         * ipa-reference.c: Likewise.
16452         * ipa-split.c: Likewise.
16453         * ipa-utils.c: Likewise.
16454         * ipa-visibility.c: Likewise.
16455         * ipa.c: Likewise.
16456         * ira-build.c: Likewise.
16457         * ira-color.c: Likewise.
16458         * ira-conflicts.c: Likewise.
16459         * ira-costs.c: Likewise.
16460         * ira-emit.c: Likewise.
16461         * ira-lives.c: Likewise.
16462         * ira.c: Likewise.
16463         * jump.c: Likewise.
16464         * langhooks.c: Likewise.
16465         * lcm.c: Likewise.
16466         * loop-doloop.c: Likewise.
16467         * loop-init.c: Likewise.
16468         * loop-invariant.c: Likewise.
16469         * loop-iv.c: Likewise.
16470         * loop-unroll.c: Likewise.
16471         * lower-subreg.c: Likewise.
16472         * lra-assigns.c: Likewise.
16473         * lra-coalesce.c: Likewise.
16474         * lra-constraints.c: Likewise.
16475         * lra-eliminations.c: Likewise.
16476         * lra-lives.c: Likewise.
16477         * lra-remat.c: Likewise.
16478         * lra-spills.c: Likewise.
16479         * lra.c: Likewise.
16480         * lto-cgraph.c: Likewise.
16481         * lto-compress.c: Likewise.
16482         * lto-opts.c: Likewise.
16483         * lto-section-in.c: Likewise.
16484         * lto-section-out.c: Likewise.
16485         * lto-streamer-in.c: Likewise.
16486         * lto-streamer-out.c: Likewise.
16487         * lto-streamer.c: Likewise.
16488         * mcf.c: Likewise.
16489         * mode-switching.c: Likewise.
16490         * modulo-sched.c: Likewise.
16491         * omega.c: Likewise.
16492         * omp-low.c: Likewise.
16493         * optabs.c: Likewise.
16494         * opts-global.c: Likewise.
16495         * opts.h: Likewise.
16496         * passes.c: Likewise.
16497         * plugin.c: Likewise.
16498         * postreload-gcse.c: Likewise.
16499         * postreload.c: Likewise.
16500         * predict.c: Likewise.
16501         * pretty-print.h: Likewise.
16502         * print-rtl.c: Likewise.
16503         * print-tree.c: Likewise.
16504         * profile.c: Likewise.
16505         * real.c: Likewise.
16506         * realmpfr.c: Likewise.
16507         * recog.c: Likewise.
16508         * ree.c: Likewise.
16509         * reg-stack.c: Likewise.
16510         * regcprop.c: Likewise.
16511         * reginfo.c: Likewise.
16512         * regrename.c: Likewise.
16513         * regstat.c: Likewise.
16514         * reload.c: Likewise.
16515         * reload1.c: Likewise.
16516         * reorg.c: Likewise.
16517         * resource.c: Likewise.
16518         * rtl-chkp.c: Likewise.
16519         * rtl-error.c: Likewise.
16520         * rtlanal.c: Likewise.
16521         * rtlhooks.c: Likewise.
16522         * sanopt.c: Likewise.
16523         * sched-deps.c: Likewise.
16524         * sched-ebb.c: Likewise.
16525         * sched-rgn.c: Likewise.
16526         * sched-vis.c: Likewise.
16527         * sdbout.c: Likewise.
16528         * sel-sched-dump.c: Likewise.
16529         * sel-sched-ir.c: Likewise.
16530         * sel-sched.c: Likewise.
16531         * sese.c: Likewise.
16532         * shrink-wrap.c: Likewise.
16533         * simplify-rtx.c: Likewise.
16534         * stack-ptr-mod.c: Likewise.
16535         * statistics.c: Likewise.
16536         * stmt.c: Likewise.
16537         * stor-layout.c: Likewise.
16538         * store-motion.c: Likewise.
16539         * streamer-hooks.c: Likewise.
16540         * stringpool.c: Likewise.
16541         * symtab.c: Likewise.
16542         * target-globals.c: Likewise.
16543         * targhooks.c: Likewise.
16544         * toplev.c: Likewise.
16545         * tracer.c: Likewise.
16546         * trans-mem.c: Likewise.
16547         * tree-affine.c: Likewise.
16548         * tree-browser.c: Likewise.
16549         * tree-call-cdce.c: Likewise.
16550         * tree-cfg.c: Likewise.
16551         * tree-cfgcleanup.c: Likewise.
16552         * tree-chkp-opt.c: Likewise.
16553         * tree-chkp.c: Likewise.
16554         * tree-chrec.c: Likewise.
16555         * tree-complex.c: Likewise.
16556         * tree-data-ref.c: Likewise.
16557         * tree-dfa.c: Likewise.
16558         * tree-diagnostic.c: Likewise.
16559         * tree-dump.c: Likewise.
16560         * tree-eh.c: Likewise.
16561         * tree-emutls.c: Likewise.
16562         * tree-if-conv.c: Likewise.
16563         * tree-inline.c: Likewise.
16564         * tree-into-ssa.c: Likewise.
16565         * tree-iterator.c: Likewise.
16566         * tree-loop-distribution.c: Likewise.
16567         * tree-nested.c: Likewise.
16568         * tree-nrv.c: Likewise.
16569         * tree-object-size.c: Likewise.
16570         * tree-outof-ssa.c: Likewise.
16571         * tree-parloops.c: Likewise.
16572         * tree-phinodes.c: Likewise.
16573         * tree-predcom.c: Likewise.
16574         * tree-pretty-print.c: Likewise.
16575         * tree-profile.c: Likewise.
16576         * tree-scalar-evolution.c: Likewise.
16577         * tree-sra.c: Likewise.
16578         * tree-ssa-address.c: Likewise.
16579         * tree-ssa-alias.c: Likewise.
16580         * tree-ssa-ccp.c: Likewise.
16581         * tree-ssa-coalesce.c: Likewise.
16582         * tree-ssa-copy.c: Likewise.
16583         * tree-ssa-copyrename.c: Likewise.
16584         * tree-ssa-dce.c: Likewise.
16585         * tree-ssa-dom.c: Likewise.
16586         * tree-ssa-dse.c: Likewise.
16587         * tree-ssa-forwprop.c: Likewise.
16588         * tree-ssa-ifcombine.c: Likewise.
16589         * tree-ssa-live.c: Likewise.
16590         * tree-ssa-loop-ch.c: Likewise.
16591         * tree-ssa-loop-im.c: Likewise.
16592         * tree-ssa-loop-ivcanon.c: Likewise.
16593         * tree-ssa-loop-ivopts.c: Likewise.
16594         * tree-ssa-loop-manip.c: Likewise.
16595         * tree-ssa-loop-niter.c: Likewise.
16596         * tree-ssa-loop-prefetch.c: Likewise.
16597         * tree-ssa-loop-unswitch.c: Likewise.
16598         * tree-ssa-loop.c: Likewise.
16599         * tree-ssa-math-opts.c: Likewise.
16600         * tree-ssa-operands.c: Likewise.
16601         * tree-ssa-phiopt.c: Likewise.
16602         * tree-ssa-phiprop.c: Likewise.
16603         * tree-ssa-pre.c: Likewise.
16604         * tree-ssa-propagate.c: Likewise.
16605         * tree-ssa-reassoc.c: Likewise.
16606         * tree-ssa-sccvn.c: Likewise.
16607         * tree-ssa-scopedtables.c: Likewise.
16608         * tree-ssa-sink.c: Likewise.
16609         * tree-ssa-strlen.c: Likewise.
16610         * tree-ssa-structalias.c: Likewise.
16611         * tree-ssa-tail-merge.c: Likewise.
16612         * tree-ssa-ter.c: Likewise.
16613         * tree-ssa-threadedge.c: Likewise.
16614         * tree-ssa-threadupdate.c: Likewise.
16615         * tree-ssa-uncprop.c: Likewise.
16616         * tree-ssa-uninit.c: Likewise.
16617         * tree-ssa.c: Likewise.
16618         * tree-ssanames.c: Likewise.
16619         * tree-stdarg.c: Likewise.
16620         * tree-streamer-in.c: Likewise.
16621         * tree-streamer-out.c: Likewise.
16622         * tree-streamer.c: Likewise.
16623         * tree-switch-conversion.c: Likewise.
16624         * tree-tailcall.c: Likewise.
16625         * tree-vect-data-refs.c: Likewise.
16626         * tree-vect-generic.c: Likewise.
16627         * tree-vect-loop-manip.c: Likewise.
16628         * tree-vect-loop.c: Likewise.
16629         * tree-vect-patterns.c: Likewise.
16630         * tree-vect-slp.c: Likewise.
16631         * tree-vect-stmts.c: Likewise.
16632         * tree-vectorizer.c: Likewise.
16633         * tree-vrp.c: Likewise.
16634         * tree.c: Likewise.
16635         * tsan.c: Likewise.
16636         * ubsan.c: Likewise.
16637         * valtrack.c: Likewise.
16638         * value-prof.c: Likewise.
16639         * var-tracking.c: Likewise.
16640         * varasm.c: Likewise.
16641         * varpool.c: Likewise.
16642         * vmsdbgout.c: Likewise.
16643         * vtable-verify.c: Likewise.
16644         * web.c: Likewise.
16645         * wide-int.cc: Likewise.
16646         * xcoffout.c: Likewise.
16647         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16648         * common/common-targhooks.c: Likewise.
16649         * config/aarch64/aarch64-builtins.c: Likewise.
16650         * config/aarch64/aarch64.c: Likewise.
16651         * config/alpha/alpha.c: Likewise.
16652         * config/arc/arc.c: Likewise.
16653         * config/arm/aarch-common.c: Likewise.
16654         * config/arm/arm-builtins.c: Likewise.
16655         * config/arm/arm-c.c: Likewise.
16656         * config/arm/arm.c: Likewise.
16657         * config/avr/avr-c.c: Likewise.
16658         * config/avr/avr-log.c: Likewise.
16659         * config/avr/avr.c: Likewise.
16660         * config/bfin/bfin.c: Likewise.
16661         * config/c6x/c6x.c: Likewise.
16662         * config/cr16/cr16.c: Likewise.
16663         * config/cris/cris.c: Likewise.
16664         * config/darwin-c.c: Likewise.
16665         * config/darwin.c: Likewise.
16666         * config/default-c.c: Likewise.
16667         * config/epiphany/epiphany.c: Likewise.
16668         * config/epiphany/mode-switch-use.c: Likewise.
16669         * config/epiphany/resolve-sw-modes.c: Likewise.
16670         * config/fr30/fr30.c: Likewise.
16671         * config/frv/frv.c: Likewise.
16672         * config/ft32/ft32.c: Likewise.
16673         * config/glibc-c.c: Likewise.
16674         * config/h8300/h8300.c: Likewise.
16675         * config/i386/i386-c.c: Likewise.
16676         * config/i386/i386.c: Likewise.
16677         * config/i386/msformat-c.c: Likewise.
16678         * config/i386/winnt-cxx.c: Likewise.
16679         * config/i386/winnt-stubs.c: Likewise.
16680         * config/i386/winnt.c: Likewise.
16681         * config/ia64/ia64-c.c: Likewise.
16682         * config/ia64/ia64.c: Likewise.
16683         * config/iq2000/iq2000.c: Likewise.
16684         * config/lm32/lm32.c: Likewise.
16685         * config/m32c/m32c-pragma.c: Likewise.
16686         * config/m32c/m32c.c: Likewise.
16687         * config/m32r/m32r.c: Likewise.
16688         * config/m68k/m68k.c: Likewise.
16689         * config/mcore/mcore.c: Likewise.
16690         * config/mep/mep-pragma.c: Likewise.
16691         * config/mep/mep.c: Likewise.
16692         * config/microblaze/microblaze-c.c: Likewise.
16693         * config/microblaze/microblaze.c: Likewise.
16694         * config/mips/mips.c: Likewise.
16695         * config/mmix/mmix.c: Likewise.
16696         * config/mn10300/mn10300.c: Likewise.
16697         * config/moxie/moxie.c: Likewise.
16698         * config/msp430/msp430-c.c: Likewise.
16699         * config/msp430/msp430.c: Likewise.
16700         * config/nds32/nds32-cost.c: Likewise.
16701         * config/nds32/nds32-fp-as-gp.c: Likewise.
16702         * config/nds32/nds32-intrinsic.c: Likewise.
16703         * config/nds32/nds32-isr.c: Likewise.
16704         * config/nds32/nds32-md-auxiliary.c: Likewise.
16705         * config/nds32/nds32-memory-manipulation.c: Likewise.
16706         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16707         * config/nds32/nds32-predicates.c: Likewise.
16708         * config/nds32/nds32.c: Likewise.
16709         * config/nios2/nios2.c: Likewise.
16710         * config/nvptx/nvptx.c: Likewise.
16711         * config/pa/pa.c: Likewise.
16712         * config/pdp11/pdp11.c: Likewise.
16713         * config/rl78/rl78-c.c: Likewise.
16714         * config/rl78/rl78.c: Likewise.
16715         * config/rs6000/rs6000-c.c: Likewise.
16716         * config/rs6000/rs6000.c: Likewise.
16717         * config/rx/rx.c: Likewise.
16718         * config/s390/s390-c.c: Likewise.
16719         * config/s390/s390.c: Likewise.
16720         * config/sh/sh-c.c: Likewise.
16721         * config/sh/sh-mem.cc: Likewise.
16722         * config/sh/sh.c: Likewise.
16723         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16724         * config/sh/sh_treg_combine.cc: Likewise.
16725         * config/sol2-c.c: Likewise.
16726         * config/sol2-cxx.c: Likewise.
16727         * config/sol2-stubs.c: Likewise.
16728         * config/sol2.c: Likewise.
16729         * config/sparc/sparc-c.c: Likewise.
16730         * config/sparc/sparc.c: Likewise.
16731         * config/spu/spu-c.c: Likewise.
16732         * config/spu/spu.c: Likewise.
16733         * config/stormy16/stormy16.c: Likewise.
16734         * config/tilegx/mul-tables.c: Likewise.
16735         * config/tilegx/tilegx-c.c: Likewise.
16736         * config/tilegx/tilegx.c: Likewise.
16737         * config/tilepro/mul-tables.c: Likewise.
16738         * config/tilepro/tilepro-c.c: Likewise.
16739         * config/tilepro/tilepro.c: Likewise.
16740         * config/v850/v850-c.c: Likewise.
16741         * config/v850/v850.c: Likewise.
16742         * config/vax/vax.c: Likewise.
16743         * config/visium/visium.c: Likewise.
16744         * config/vms/vms-c.c: Likewise.
16745         * config/vms/vms.c: Likewise.
16746         * config/vxworks.c: Likewise.
16747         * config/winnt-c.c: Likewise.
16748         * config/xtensa/xtensa.c: Likewise.
16749
16750 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
16751
16752         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16753         function.
16754         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16755
16756 2015-06-17  Richard Biener  <rguenther@suse.de>
16757
16758         PR tree-optimization/66251
16759         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16760         stmts for SLP strided stores.
16761
16762         Revert
16763         2015-05-22  Richard Biener  <rguenther@suse.de>
16764
16765         PR tree-optimization/66251
16766         * tree-vect-stmts.c (vectorizable_conversion): Properly
16767         set STMT_VINFO_VEC_STMT even for the SLP case.
16768
16769         2015-05-26  Michael Matz  <matz@suse.de>
16770
16771         PR middle-end/66251
16772         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16773         STMT_VINFO_VEC_STMT, also with SLP.
16774
16775 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
16776
16777         PR target/56766
16778         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16779         (*avx_addsubv4df3_1s): Ditto.
16780         (*sse3_addsubv2df3_1): Ditto.
16781         (*sse3_addsubv2df3_1s): Ditto.
16782         (*avx_addsubv8sf3_1): Ditto.
16783         (*avx_addsubv8sf3_1s): Ditto.
16784         (*sse3_addsubv4sf3_1): Ditto.
16785         (*sse3_addsubv4sf3_1s): Ditto.
16786
16787 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
16788
16789         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16790         (SYSROOT_SUFFIX_SPEC): Update.
16791         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16792         (STARTFILE_PREFIX_SPEC): Update.
16793         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16794         (MULTILIB_REQUIRED): New.
16795         (MULTILIB_OSDIRNAMES): New.
16796         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16797         (MULTILIB_REQUIRED): New.
16798         (MULTILIB_OSDIRNAMES): New.
16799
16800 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
16801
16802         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16803         * config/aarch64/aarch64-options-extensions.def: Update "fP",
16804         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
16805         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16806         (AARCH64_FL_PAN): New.
16807         (AARCH64_FL_LOR): New.
16808         (AARCH64_FL_RDMA): New.
16809         (AARCH64_FL_FOR_ARCH8_1): New.
16810         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16811         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16812
16813 2015-06-16  Martin Liska  <mliska@suse.cz>
16814
16815         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16816         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16817         guard.
16818
16819 2015-06-16  Richard Biener  <rguenther@suse.de>
16820
16821         * tree-vect-stmts.c (vectorizable_store): Adjust.
16822         (vectorizable_load): Likewise.
16823         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16824         Simplify.
16825         (vect_create_data_ref_ptr): Likewise.
16826         (bump_vector_ptr): Adjust.
16827
16828 2015-06-16  Richard Biener  <rguenther@suse.de>
16829
16830         * tree-vect-stmts.c (vectorizable_load): Properly start loads
16831         with the first element if this is grouped loads.
16832
16833 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
16834
16835         * config/arm/arm-protos.h (struct tune_params): Rename
16836         log_op_non_sc to log_op_non_short_circuit, and rename enum
16837         values to expand SC to SHORT_CIRCUIT.
16838         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16839         to LOG_OP_NON_SHORT_CIRCUIT.
16840         (arm_fastmul_tune):Likewise
16841         (arm_strongarm_tune): Likewise.
16842         (arm_xscale_tune): Likewise.
16843         (arm_9e_tune): Likewise.
16844         (arm_marvell_pj4_tune): Likewise.
16845         (arm_v6t2_tune): Likewise.
16846         (arm_cortex_tune): Likewise.
16847         (arm_cortex_a8_tune): Likewise.
16848         (arm_cortex_a7_tune): Likewise.
16849         (arm_cortex_a15_tune): Likewise.
16850         (arm_cortex_a53_tune): Likewise.
16851         (arm_cortex_a57_tune): Likewise.
16852         (arm_xgene1_tune): Likewise.
16853         (arm_cortex_a5_tune): Likewise.
16854         (arm_cortex_a9_tune): Likewise.
16855         (arm_cortex_a12_tune): Likewise.
16856         (arm_v7m_tune): Likewise.
16857         (arm_cortex_m7_tune): Likewise.
16858         (arm_v6m_tune): Likewise.
16859         (arm_fa726te_tune): Likewise.
16860
16861 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
16862
16863         * altivec.md: Delete UNSPEC_VMLADDUHM.
16864         (mulv4si3_p8): New pattern.
16865         (mulv4si3): Use it for POWER8.
16866         (mulv8hi3): Use vmladduhm with zero addend.
16867         (altivec_vmladduhm): Descriptive RTL.
16868
16869 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
16870
16871         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16872         to use neon_move instead of mov_imm.
16873         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16874         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16875
16876         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16877         aarch64_float_const_zero_rtx_p check before TFmode check.
16878         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16879         an fp zero.
16880         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
16881         code and attributes to match.  Change condition from register_operand
16882         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
16883         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
16884         to store2.
16885
16886 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
16887
16888         PR debug/66535
16889         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16890         there is no parent.
16891
16892 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
16893
16894         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16895         HOST_WIDE_INT parameter.
16896
16897 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
16898
16899         PR ipa/66181
16900         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16901         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16902         TYPE_NO_FORCE_BLK.
16903         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16904
16905 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
16906
16907         * rtl.h (classify_insn): Declare.
16908         * emit-rtl.c (classify_insn): Move to...
16909         * rtl.c: ...here and add generator support.
16910         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16911         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16912         * genemit.c (gen_emit_seq): New function.
16913         (gen_expand, gen_split): Use it.
16914
16915 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
16916
16917         * tree.c (make_vector_stat): Fix comment to state that the
16918         function returns a VECTOR_CST.
16919
16920 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
16921
16922         * gensupport.h (add_implicit_parallel): Declare.
16923         * genrecog.c (add_implicit_parallel): Move to...
16924         * gensupport.c (add_implicit_parallel): ...here.
16925         (process_one_cond_exec): Use it.
16926         * genemit.c (gen_insn): Likewise.
16927
16928 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
16929
16930         PR bootstrap/66448
16931         * passes.c (rest_of_decl_compilation): Do not register globals for
16932         early debug if they are declared in built-ins.
16933
16934 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
16935
16936         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16937
16938 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16939
16940         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
16941         manually swapping.
16942         (noce_try_cmove_arith): Likewise.
16943         (noce_get_alt_condition): Likewise.
16944
16945 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16946
16947         * common/config/i386/i386-common.c
16948         (OPTION_MASK_ISA_MWAITX_SET): New.
16949         (ix86_handle_option): Handle mwaitx.
16950         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
16951         (x86_64-*-*): Likewise.
16952         * config/i386/mwaitxintrin.h: New header.
16953         * config/i386/cpuid.h (bit_MWAITX):  Define.
16954         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16955         MWAITX support.
16956         * config/i386/i386.opt (mwaitx): New.
16957         * config/i386/i386-builtin-types.def
16958         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
16959         * config/i386/i386-c.c: Define __MWAITX__ if needed.
16960         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
16961         (PTA_MWAITX): New.
16962         (ix86_option_override_internal): Handle new option.
16963         (processor_alias_table): Added PTA_MWAITX.
16964         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
16965         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
16966         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
16967         IX86_BUILTIN_MONITORX  built-ins.
16968         * config/i386/i386.h (TARGET_MWAITX): New.
16969         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
16970         UNSPEC_MONITORX.
16971         (mwaitx):  New pattern.
16972         (monitorx_<mode>): New pattern.
16973         * config/i386/x86intrin.h: Include mwaitxintrin.h.
16974         * doc/extend.texi: Document monitorx and mwaitx builtins.
16975         * doc/invoke.texi: Document -mmwaitx option.
16976
16977 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
16978
16979         * emit-rtl.c (need_atomic_barrier_p): Mask model with
16980         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
16981
16982 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16983
16984         * dbxout.c (xcoff_debug_hooks): Provide a function for
16985         register_main_translation_unit hook.
16986
16987 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
16988
16989         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
16990         variants cases from switch.
16991         (rs6000_post_atomic_barrier): Same.
16992         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
16993         (rs6000_expand_atomic_exchange): Same.
16994         (rs6000_expand_atomic_op): Same.
16995         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
16996         SYNC variants cases from switch.
16997         (atomic_load): Same.
16998         (atomic_store): Same.
16999
17000 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
17001
17002         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17003         CONST_INT for goto.
17004
17005 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
17006
17007         PR bootstrap/66448
17008         * dwarf2out.c (check_die): Check for common duplicate attributes.
17009         (add_location_or_const_value_attribute): Do not add duplicate
17010         attributes.
17011         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17012         time around.
17013         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17014         (gen_type_die_with_usage): Call check_die.
17015         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17016
17017 2015-06-11  Jason Merrill  <jason@redhat.com>
17018
17019         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17020         dies.
17021
17022 2015-06-11  Marek Polacek  <polacek@redhat.com>
17023
17024         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17025
17026 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
17027
17028         PR bootstrap/66252
17029         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17030         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17031         (*addx_extend_sp32): Fix pasto.
17032         (*subx_extend): Rename into...
17033         (*subx_extend_sp32): ...this.
17034         (*adddi3_extend_sp32): Add earlyclobber.
17035         (*subdi3_insn_sp32): Likewise.
17036         (*subdi3_extend_sp32): Likewise.
17037         (*and_not_di_sp32): Likewise.
17038         (*or_not_di_sp32): Likewise.
17039         (*xor_not_di_sp32): Likewise.
17040         (*negdi2_sp32): Likewise.
17041         (*one_cmpldi2_sp32): Likewise.
17042
17043 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
17044
17045         * debug.h (struct gcc_debug_hooks): Add a
17046         register_main_translation_unit hook.
17047         * debug.c (do_nothing_debug_hooks): Provide a function for this
17048         new hook.
17049         * dbxout.c (dbx_debug_hooks): Likewise.
17050         * sdbout.c (sdb_debug_hooks): Likewise.
17051         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17052         * dwarf2out.c (main_translation_unit): New global variable.
17053         (dwarf2out_register_main_translation_unit): New function
17054         implementing the new hook.
17055         (dwarf2_debug_hooks): Assign
17056         dwarf2out_register_main_translation_unit to this new hook.
17057         (dwarf2out_init): Associate any main translation unit to
17058         comp_unit_die ().
17059
17060 2015-06-11  Marek Polacek  <polacek@redhat.com>
17061
17062         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17063
17064 2015-06-11  Marek Polacek  <polacek@redhat.com>
17065
17066         * match.pd: Use single_use throughout.
17067
17068 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17069
17070         * config/arm/arm.c (arm_option_params_internal): When optimising
17071         for speed set max_insns_skipped when arm_restrict_it.
17072
17073 2015-06-11  Christian Bruel  <christian.bruel@st.com>
17074
17075         PR target/52144
17076         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17077          macros in ...
17078         (arm_cpu_builtins): New function.
17079         (arm_pragma_target_parse): Call arm_cpu_builtins.
17080         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17081         (arm_register_target_pragmas): Likewise.
17082         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17083          Call arm_register_target_pragmas.
17084         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17085         (arm_pragma_target_parse): Likewise.
17086
17087 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17088
17089         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17090         of the second operand.
17091
17092 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
17093
17094         PR target/66473
17095         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17096         to prepare mask operand for AVX512 modes.
17097
17098 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
17099
17100         PR target/66474
17101         * doc/md.texi (Machine Constraints): Document that on the PowerPC
17102         if you use a constraint that targets a VSX register, you must use
17103         %x<n> in the template.
17104
17105 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
17106
17107         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17108         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17109         (define_insn "trap"): New definition.
17110
17111 2015-06-10  Richard Biener  <rguenther@suse.de>
17112
17113         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17114         out from ...
17115         (vect_supported_load_permutation_p): ... here.  Handle
17116         supportable permutations in reductions.
17117         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17118         for vectorizing strided group loads.
17119
17120 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
17121
17122         PR target/66470
17123         * config/i386/i386.c (ix86_split_long_move): For collisions
17124         involving direct tls segment refs, move the UNSPEC_TP possibly
17125         wrapped in ZERO_EXTEND out of the address for lea, to each of
17126         the memory loads.
17127
17128 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17129
17130         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17131         dmb sy. Adjust tabs.
17132
17133 2015-06-10  Tom de Vries  <tom@codesourcery.com>
17134
17135         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17136
17137 2015-06-10  Martin Liska  <mliska@suse.cz>
17138
17139         PR bootstrap/66471
17140         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17141         all enum values in mem_alloc_origin.
17142         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17143         name.
17144         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17145         * bitmap.c (bitmap_register): Likewise.
17146         (dump_bitmap_statistics): Likewise.
17147         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17148         (ggc_record_overhead): Likewise.
17149         * hash-map.h: Likewise.
17150         * hash-set.h: Likewise.
17151         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17152         * hash-table.h: Likewise.
17153         * vec.c (vec_prefix::register_overhead): Likewise.
17154         (vec_prefix::release_overhead): Likewise.
17155         (dump_vec_loc_statistics): Likewise.
17156
17157 2015-06-09  Christian Bruel  <christian.bruel@st.com>
17158
17159         PR target/52144
17160         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17161         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17162         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17163         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17164         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17165         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17166         (arm_valid_target_attribute_p): Likewise.
17167         (arm_set_current_function, arm_can_inline_p): Likewise.
17168         (arm_valid_target_attribute_rec): Likewise.
17169         (arm_previous_fndecl): New variable.
17170         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17171         (TARGET_CAN_INLINE_P): Define.
17172         (arm_asm_trampoline_template): Emit mode.
17173         (arm_file_start): Don't set unified syntax.
17174         (arm_declare_function_name): Set unified syntax and mode.
17175         (arm_option_override): Init target_option_default_node.
17176         and target_option_current_node.
17177         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17178         (*call_symbol): Likewise.
17179         * doc/extend.texi: Document ARM/Thumb target attribute.
17180         * doc/invoke.texi: Likewise.
17181
17182 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17183
17184         Revert:
17185         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17186         PR rtl-optimization/64164
17187         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17188         * tree-ssa-copyrename.c: Removed.
17189         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17190         -ftree-coalesce-vars.
17191         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17192         * common.opt (ftree-copyrename): Ignore.
17193         (ftree-coalesce-inlined-vars): Likewise.
17194         * doc/invoke.texi: Remove the ignored options above.
17195         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17196         * tree-ssa-coalesce.h: ... here.
17197         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17198         headers required by it.
17199         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17200         across variables when flag_tree_coalesce_vars.  Check register
17201         use and promoted modes to allow coalescing.  Moved to
17202         tree-ssa-coalesce.c.
17203         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17204         with its member functions to tree-ssa-coalesce.c.
17205         (var_map_base_init): Likewise.  Renamed to
17206         compute_samebase_partition_bases.
17207         (partition_view_normal): Drop want_bases parameter.
17208         (partition_view_bitmap): Likewise.
17209         * tree-ssa-live.h: Adjust declarations.
17210         * tree-ssa-coalesce.c: Include explow.h.
17211         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17212         default defs at the entry point.
17213         (dump_part_var_map): New.
17214         (compute_optimized_partition_bases): New, called by...
17215         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17216         of compute_samebase_partition_bases.  Adjust.
17217         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17218         * cfgexpand.c (leader_merge): New.
17219         (get_rtl_for_parm_ssa_default_def): New.
17220         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17221         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17222         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17223         redundant MEM attr setting.
17224         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17225         from...
17226         (expand_one_stack_var): ... this.  New wrapper to check and
17227         skip already expanded SSA partitions.
17228         (record_alignment_for_reg_var): New, factored out of...
17229         (expand_one_var): ... this.
17230         (expand_one_ssa_partition): New.
17231         (adjust_one_expanded_partition_var): New.
17232         (expand_one_register_var): Check and skip already expanded SSA
17233         partitions.
17234         (expand_used_vars): Don't create DECLs for anonymous SSA
17235         names.  Expand all SSA partitions, then adjust all SSA names.
17236         (pass::execute): Replace the loops that set
17237         SA.partition_to_pseudo from partition leaders and cleared
17238         DECL_RTL for multi-location variables, and that which used to
17239         rename vars and set attrs, with one that clears DECL_RTL and
17240         checks that PARMs and RESULTs default_defs match DECL_RTL.
17241         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17242         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17243         * explow.c (promote_ssa_mode): New.
17244         * explow.h (promote_ssa_mode): Declare.
17245         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17246         * function.c: Include cfgexpand.h.
17247         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17248         (use_register_for_parm_decl): Wrapper for the above to
17249         special-case the result_ptr.
17250         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17251         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17252         multiple locations.
17253         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17254         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17255         (assign_parm_setup_block): Prefer SSA-assigned location.
17256         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17257         if stack_parm is NULL.
17258         (assign_parm_setup_stack): Prefer SSA-assigned location.
17259         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17260         rtl before testing for pointer bounds.  Special-case result_ptr.
17261         (expand_function_start): Maybe reset DECL_RTL of result.
17262         Prefer SSA-assigned location for result and static chain.
17263         Factor out DECL_RESULT and SET_DECL_RTL.
17264         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17265         anonymous SSA names.  Use promote_ssa_mode.
17266         (get_temp_reg): Likewise.
17267         (remove_ssa_form): Adjust.
17268         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17269         and get its reg_usage for reg invalidation.
17270         (compute_bb_dataflow): Pass it insn.
17271         (emit_notes_in_bb): Likewise.
17272         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17273         fail assert on conversion between unsigned types.
17274
17275 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17276
17277         PR tree-optimization/65460
17278         * omp-low.c (expand_omp_target): Set parallelized_function on
17279         cgraph_node for child_fn.
17280
17281 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17282
17283         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17284         parallelized_function before add_new_function.
17285
17286 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
17287
17288         * gcc-plugin.h: Move decls to plugin.h and include it.
17289         * plugin.h: Relocate decls from gcc-plugin.h
17290         * ggc-page.c: Include required header files.
17291         * passes.c: Likewise.
17292         * cgraphunit.c: Likewise.
17293
17294 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17295
17296         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17297
17298 2015-06-09  Jason Merrill  <jason@redhat.com>
17299
17300         PR bootstrap/66448
17301         * toplev.c (check_global_declaration): Don't warn about a clone.
17302
17303 2015-06-09  Marek Polacek  <polacek@redhat.com>
17304
17305         PR tree-optimization/66299
17306         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17307         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17308         patterns.
17309
17310 2015-06-09  Richard Biener  <rguenther@suse.de>
17311
17312         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17313         (vect_analyze_slp_instance): Instead do not falsely drop
17314         load permutations.
17315
17316 2015-06-09  Richard Biener  <rguenther@suse.de>
17317
17318         PR middle-end/66423
17319         * match.pd: Handle A % (unsigned)(1 << B).
17320
17321 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
17322
17323         * varasm.c (output_object_block_htab): Remove.
17324         (output_object_block_compare): New.
17325         (output_object_blocks): Sort named object_blocks before outputting
17326         them.
17327
17328 2015-06-09  Richard Biener  <rguenther@suse.de>
17329
17330         PR tree-optimization/66419
17331         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17332         consider GROUP_GAP when detecting a perfect subchain.
17333
17334 2015-06-09  Nick Clifton  <nickc@redhat.com>
17335
17336         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17337         place read only data in the .frodata section.
17338
17339 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
17340
17341         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17342         (atomic_store<mode>): Likewise.
17343
17344 2015-06-09  Richard Biener  <rguenther@suse.de>
17345
17346         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17347
17348 2015-06-09  Richard Biener  <rguenther@suse.de>
17349
17350         PR middle-end/66413
17351         * tree-inline.c (insert_init_debug_bind): Unshare value.
17352
17353 2015-06-09  Richard Biener  <rguenther@suse.de>
17354
17355         PR tree-optimization/66396
17356         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17357         Rename virtual operands.
17358
17359 2015-06-09  Tom de Vries  <tom@codesourcery.com>
17360
17361         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17362         always return false.
17363
17364 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17365
17366         PR rtl-optimization/64164
17367         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17368         * tree-ssa-copyrename.c: Removed.
17369         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17370         -ftree-coalesce-vars.
17371         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17372         * common.opt (ftree-copyrename): Ignore.
17373         (ftree-coalesce-inlined-vars): Likewise.
17374         * doc/invoke.texi: Remove the ignored options above.
17375         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17376         * tree-ssa-coalesce.h: ... here.
17377         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17378         headers required by it.
17379         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17380         across variables when flag_tree_coalesce_vars.  Check register
17381         use and promoted modes to allow coalescing.  Moved to
17382         tree-ssa-coalesce.c.
17383         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17384         with its member functions to tree-ssa-coalesce.c.
17385         (var_map_base_init): Likewise.  Renamed to
17386         compute_samebase_partition_bases.
17387         (partition_view_normal): Drop want_bases parameter.
17388         (partition_view_bitmap): Likewise.
17389         * tree-ssa-live.h: Adjust declarations.
17390         * tree-ssa-coalesce.c: Include explow.h.
17391         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17392         default defs at the entry point.
17393         (dump_part_var_map): New.
17394         (compute_optimized_partition_bases): New, called by...
17395         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17396         of compute_samebase_partition_bases.  Adjust.
17397         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17398         * cfgexpand.c (leader_merge): New.
17399         (get_rtl_for_parm_ssa_default_def): New.
17400         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17401         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17402         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17403         redundant MEM attr setting.
17404         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17405         from...
17406         (expand_one_stack_var): ... this.  New wrapper to check and
17407         skip already expanded SSA partitions.
17408         (record_alignment_for_reg_var): New, factored out of...
17409         (expand_one_var): ... this.
17410         (expand_one_ssa_partition): New.
17411         (adjust_one_expanded_partition_var): New.
17412         (expand_one_register_var): Check and skip already expanded SSA
17413         partitions.
17414         (expand_used_vars): Don't create DECLs for anonymous SSA
17415         names.  Expand all SSA partitions, then adjust all SSA names.
17416         (pass::execute): Replace the loops that set
17417         SA.partition_to_pseudo from partition leaders and cleared
17418         DECL_RTL for multi-location variables, and that which used to
17419         rename vars and set attrs, with one that clears DECL_RTL and
17420         checks that PARMs and RESULTs default_defs match DECL_RTL.
17421         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17422         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17423         * explow.c (promote_ssa_mode): New.
17424         * explow.h (promote_ssa_mode): Declare.
17425         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17426         * function.c: Include cfgexpand.h.
17427         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17428         (use_register_for_parm_decl): Wrapper for the above to
17429         special-case the result_ptr.
17430         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17431         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17432         multiple locations.
17433         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17434         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17435         (assign_parm_setup_block): Prefer SSA-assigned location.
17436         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
17437         if stack_parm is NULL.
17438         (assign_parm_setup_stack): Prefer SSA-assigned location.
17439         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17440         rtl before testing for pointer bounds.  Special-case result_ptr.
17441         (expand_function_start): Maybe reset DECL_RTL of result.
17442         Prefer SSA-assigned location for result and static chain.
17443         Factor out DECL_RESULT and SET_DECL_RTL.
17444         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17445         anonymous SSA names.  Use promote_ssa_mode.
17446         (get_temp_reg): Likewise.
17447         (remove_ssa_form): Adjust.
17448         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17449         and get its reg_usage for reg invalidation.
17450         (compute_bb_dataflow): Pass it insn.
17451         (emit_notes_in_bb): Likewise.
17452         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17453         fail assert on conversion between unsigned types.
17454
17455 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
17456
17457         PR debug/58315
17458         * tree-inline.c (reset_debug_binding): New.
17459         (reset_debug_bindings): Likewise.
17460         (expand_call_inline): Call it.
17461
17462 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17463
17464         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17465         TYPE_STRING_FLAG.
17466
17467 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17468
17469         * lto-streamer-out.c (lto_output_location): Stream
17470         reserved locations correctly.
17471         * lto-streamer-in.c (lto_output_location): Likewise.
17472
17473 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
17474
17475         * coretypes.h: Include hash-table.h and hash-set.h for host files.
17476         * ggc.h: Don't include statistics.h>
17477         * hash-map.h: Remove all includes.
17478         * hash-set.h: Likewise.
17479         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17480         the include list. Remove <new>.
17481         * inchash.h: Remove all includes.
17482         * mem-stats.h: Likewise.
17483         * vec.h: No special processing for generators or ggc.
17484         * alias.c : Adjust include files.
17485         * alloc-pool.c : Likewise.
17486         * alloc-pool.h : Likewise.
17487         * asan.c : Likewise.
17488         * attribs.c : Likewise.
17489         * auto-inc-dec.c : Likewise.
17490         * auto-profile.c : Likewise.
17491         * bb-reorder.c : Likewise.
17492         * bitmap.c : Likewise.
17493         * bitmap.h : Likewise.
17494         * bt-load.c : Likewise.
17495         * builtins.c : Likewise.
17496         * caller-save.c : Likewise.
17497         * calls.c : Likewise.
17498         * ccmp.c : Likewise.
17499         * cfg.c : Likewise.
17500         * cfganal.c : Likewise.
17501         * cfgbuild.c : Likewise.
17502         * cfgcleanup.c : Likewise.
17503         * cfgexpand.c : Likewise.
17504         * cfghooks.c : Likewise.
17505         * cfgloop.c : Likewise.
17506         * cfgloop.h : Likewise.
17507         * cfgloopanal.c : Likewise.
17508         * cfgloopmanip.c : Likewise.
17509         * cfgrtl.c : Likewise.
17510         * cgraph.c : Likewise.
17511         * cgraphbuild.c : Likewise.
17512         * cgraphclones.c : Likewise.
17513         * cgraphunit.c : Likewise.
17514         * cilk-common.c : Likewise.
17515         * combine-stack-adj.c : Likewise.
17516         * combine.c : Likewise.
17517         * compare-elim.c : Likewise.
17518         * context.c : Likewise.
17519         * convert.c : Likewise.
17520         * coverage.c : Likewise.
17521         * cppbuiltin.c : Likewise.
17522         * cprop.c : Likewise.
17523         * cse.c : Likewise.
17524         * cselib.c : Likewise.
17525         * data-streamer-in.c : Likewise.
17526         * data-streamer-out.c : Likewise.
17527         * data-streamer.c : Likewise.
17528         * data-streamer.h : Likewise.
17529         * dbxout.c : Likewise.
17530         * dce.c : Likewise.
17531         * ddg.c : Likewise.
17532         * debug.c : Likewise.
17533         * df-core.c : Likewise.
17534         * df-problems.c : Likewise.
17535         * df-scan.c : Likewise.
17536         * df.h : Likewise.
17537         * dfp.c : Likewise.
17538         * dojump.c : Likewise.
17539         * dominance.c : Likewise.
17540         * domwalk.c : Likewise.
17541         * double-int.c : Likewise.
17542         * dse.c : Likewise.
17543         * dumpfile.c : Likewise.
17544         * dwarf2asm.c : Likewise.
17545         * dwarf2cfi.c : Likewise.
17546         * dwarf2out.c : Likewise.
17547         * emit-rtl.c : Likewise.
17548         * et-forest.c : Likewise.
17549         * except.c : Likewise.
17550         * except.h : Likewise.
17551         * explow.c : Likewise.
17552         * expmed.c : Likewise.
17553         * expr.c : Likewise.
17554         * final.c : Likewise.
17555         * fixed-value.c : Likewise.
17556         * fold-const.c : Likewise.
17557         * function.c : Likewise.
17558         * fwprop.c : Likewise.
17559         * gcc-plugin.h : Likewise.
17560         * gcc.c : Likewise.
17561         * gcse-common.c : Likewise.
17562         * gcse.c : Likewise.
17563         * genattrtab.c : Likewise.
17564         * genautomata.c : Likewise.
17565         * genconditions.c : Likewise.
17566         * genemit.c : Likewise.
17567         * generic-match-head.c : Likewise.
17568         * genextract.c : Likewise.
17569         * gengtype-state.c : Likewise.
17570         * gengtype.c : Likewise.
17571         * genhooks.c : Likewise.
17572         * genmatch.c : Likewise.
17573         * genmodes.c : Likewise.
17574         * genrecog.c : Likewise.
17575         * gensupport.c : Likewise.
17576         * ggc-common.c : Likewise.
17577         * ggc-internal.h : Likewise.
17578         * ggc-none.c : Likewise.
17579         * ggc-page.c : Likewise.
17580         * gimple-builder.c : Likewise.
17581         * gimple-expr.c : Likewise.
17582         * gimple-fold.c : Likewise.
17583         * gimple-iterator.c : Likewise.
17584         * gimple-low.c : Likewise.
17585         * gimple-match-head.c : Likewise.
17586         * gimple-pretty-print.c : Likewise.
17587         * gimple-ssa-isolate-paths.c : Likewise.
17588         * gimple-ssa-strength-reduction.c : Likewise.
17589         * gimple-ssa.h : Likewise.
17590         * gimple-streamer-in.c : Likewise.
17591         * gimple-streamer-out.c : Likewise.
17592         * gimple-streamer.h : Likewise.
17593         * gimple-walk.c : Likewise.
17594         * gimple.c : Likewise.
17595         * gimplify-me.c : Likewise.
17596         * gimplify.c : Likewise.
17597         * godump.c : Likewise.
17598         * graph.c : Likewise.
17599         * graphds.c : Likewise.
17600         * graphite-blocking.c : Likewise.
17601         * graphite-dependences.c : Likewise.
17602         * graphite-interchange.c : Likewise.
17603         * graphite-isl-ast-to-gimple.c : Likewise.
17604         * graphite-optimize-isl.c : Likewise.
17605         * graphite-poly.c : Likewise.
17606         * graphite-scop-detection.c : Likewise.
17607         * graphite-sese-to-poly.c : Likewise.
17608         * graphite.c : Likewise.
17609         * haifa-sched.c : Likewise.
17610         * hard-reg-set.h : Likewise.
17611         * hw-doloop.c : Likewise.
17612         * ifcvt.c : Likewise.
17613         * inchash.c : Likewise.
17614         * incpath.c : Likewise.
17615         * init-regs.c : Likewise.
17616         * input.c : Likewise.
17617         * internal-fn.c : Likewise.
17618         * ipa-chkp.c : Likewise.
17619         * ipa-comdats.c : Likewise.
17620         * ipa-cp.c : Likewise.
17621         * ipa-devirt.c : Likewise.
17622         * ipa-icf-gimple.c : Likewise.
17623         * ipa-icf.c : Likewise.
17624         * ipa-inline-analysis.c : Likewise.
17625         * ipa-inline-transform.c : Likewise.
17626         * ipa-inline.c : Likewise.
17627         * ipa-polymorphic-call.c : Likewise.
17628         * ipa-profile.c : Likewise.
17629         * ipa-prop.c : Likewise.
17630         * ipa-pure-const.c : Likewise.
17631         * ipa-ref.c : Likewise.
17632         * ipa-reference.c : Likewise.
17633         * ipa-split.c : Likewise.
17634         * ipa-utils.c : Likewise.
17635         * ipa-visibility.c : Likewise.
17636         * ipa.c : Likewise.
17637         * ira-build.c : Likewise.
17638         * ira-color.c : Likewise.
17639         * ira-conflicts.c : Likewise.
17640         * ira-costs.c : Likewise.
17641         * ira-emit.c : Likewise.
17642         * ira-lives.c : Likewise.
17643         * ira.c : Likewise.
17644         * jump.c : Likewise.
17645         * langhooks.c : Likewise.
17646         * lcm.c : Likewise.
17647         * libfuncs.h : Likewise.
17648         * lists.c : Likewise.
17649         * loop-doloop.c : Likewise.
17650         * loop-init.c : Likewise.
17651         * loop-invariant.c : Likewise.
17652         * loop-iv.c : Likewise.
17653         * loop-unroll.c : Likewise.
17654         * lower-subreg.c : Likewise.
17655         * lra-assigns.c : Likewise.
17656         * lra-coalesce.c : Likewise.
17657         * lra-constraints.c : Likewise.
17658         * lra-eliminations.c : Likewise.
17659         * lra-lives.c : Likewise.
17660         * lra-remat.c : Likewise.
17661         * lra-spills.c : Likewise.
17662         * lra.c : Likewise.
17663         * lto-cgraph.c : Likewise.
17664         * lto-compress.c : Likewise.
17665         * lto-opts.c : Likewise.
17666         * lto-section-in.c : Likewise.
17667         * lto-section-out.c : Likewise.
17668         * lto-streamer-in.c : Likewise.
17669         * lto-streamer-out.c : Likewise.
17670         * lto-streamer.c : Likewise.
17671         * lto-streamer.h : Likewise.
17672         * mcf.c : Likewise.
17673         * mode-switching.c : Likewise.
17674         * modulo-sched.c : Likewise.
17675         * omega.c : Likewise.
17676         * omp-low.c : Likewise.
17677         * optabs.c : Likewise.
17678         * opts-global.c : Likewise.
17679         * opts.h : Likewise.
17680         * passes.c : Likewise.
17681         * plugin.c : Likewise.
17682         * postreload-gcse.c : Likewise.
17683         * postreload.c : Likewise.
17684         * predict.c : Likewise.
17685         * print-rtl.c : Likewise.
17686         * print-tree.c : Likewise.
17687         * profile.c : Likewise.
17688         * read-md.c : Likewise.
17689         * read-md.h : Likewise.
17690         * read-rtl.c : Likewise.
17691         * real.c : Likewise.
17692         * realmpfr.c : Likewise.
17693         * recog.c : Likewise.
17694         * ree.c : Likewise.
17695         * reg-stack.c : Likewise.
17696         * regcprop.c : Likewise.
17697         * reginfo.c : Likewise.
17698         * regrename.c : Likewise.
17699         * regstat.c : Likewise.
17700         * reload.c : Likewise.
17701         * reload1.c : Likewise.
17702         * reorg.c : Likewise.
17703         * resource.c : Likewise.
17704         * rtl-chkp.c : Likewise.
17705         * rtl.c : Likewise.
17706         * rtl.h : Likewise.
17707         * rtlanal.c : Likewise.
17708         * rtlhash.c : Likewise.
17709         * rtlhash.h : Likewise.
17710         * rtlhooks.c : Likewise.
17711         * sanopt.c : Likewise.
17712         * sched-deps.c : Likewise.
17713         * sched-ebb.c : Likewise.
17714         * sched-rgn.c : Likewise.
17715         * sched-vis.c : Likewise.
17716         * sdbout.c : Likewise.
17717         * sel-sched-dump.c : Likewise.
17718         * sel-sched-ir.c : Likewise.
17719         * sel-sched-ir.h : Likewise.
17720         * sel-sched.c : Likewise.
17721         * sese.c : Likewise.
17722         * shrink-wrap.c : Likewise.
17723         * shrink-wrap.h : Likewise.
17724         * simplify-rtx.c : Likewise.
17725         * stack-ptr-mod.c : Likewise.
17726         * statistics.c : Likewise.
17727         * stmt.c : Likewise.
17728         * stor-layout.c : Likewise.
17729         * store-motion.c : Likewise.
17730         * stringpool.c : Likewise.
17731         * symtab.c : Likewise.
17732         * target-globals.c : Likewise.
17733         * targhooks.c : Likewise.
17734         * tlink.c : Likewise.
17735         * toplev.c : Likewise.
17736         * tracer.c : Likewise.
17737         * trans-mem.c : Likewise.
17738         * tree-affine.c : Likewise.
17739         * tree-affine.h : Likewise.
17740         * tree-browser.c : Likewise.
17741         * tree-call-cdce.c : Likewise.
17742         * tree-cfg.c : Likewise.
17743         * tree-cfgcleanup.c : Likewise.
17744         * tree-chkp-opt.c : Likewise.
17745         * tree-chkp.c : Likewise.
17746         * tree-chrec.c : Likewise.
17747         * tree-complex.c : Likewise.
17748         * tree-data-ref.c : Likewise.
17749         * tree-dfa.c : Likewise.
17750         * tree-diagnostic.c : Likewise.
17751         * tree-dump.c : Likewise.
17752         * tree-eh.c : Likewise.
17753         * tree-eh.h : Likewise.
17754         * tree-emutls.c : Likewise.
17755         * tree-hasher.h : Likewise.
17756         * tree-if-conv.c : Likewise.
17757         * tree-inline.c : Likewise.
17758         * tree-inline.h : Likewise.
17759         * tree-into-ssa.c : Likewise.
17760         * tree-iterator.c : Likewise.
17761         * tree-loop-distribution.c : Likewise.
17762         * tree-nested.c : Likewise.
17763         * tree-nrv.c : Likewise.
17764         * tree-object-size.c : Likewise.
17765         * tree-outof-ssa.c : Likewise.
17766         * tree-parloops.c : Likewise.
17767         * tree-phinodes.c : Likewise.
17768         * tree-predcom.c : Likewise.
17769         * tree-pretty-print.c : Likewise.
17770         * tree-profile.c : Likewise.
17771         * tree-scalar-evolution.c : Likewise.
17772         * tree-sra.c : Likewise.
17773         * tree-ssa-address.c : Likewise.
17774         * tree-ssa-alias.c : Likewise.
17775         * tree-ssa-ccp.c : Likewise.
17776         * tree-ssa-coalesce.c : Likewise.
17777         * tree-ssa-copy.c : Likewise.
17778         * tree-ssa-copyrename.c : Likewise.
17779         * tree-ssa-dce.c : Likewise.
17780         * tree-ssa-dom.c : Likewise.
17781         * tree-ssa-dse.c : Likewise.
17782         * tree-ssa-forwprop.c : Likewise.
17783         * tree-ssa-ifcombine.c : Likewise.
17784         * tree-ssa-live.c : Likewise.
17785         * tree-ssa-loop-ch.c : Likewise.
17786         * tree-ssa-loop-im.c : Likewise.
17787         * tree-ssa-loop-ivcanon.c : Likewise.
17788         * tree-ssa-loop-ivopts.c : Likewise.
17789         * tree-ssa-loop-manip.c : Likewise.
17790         * tree-ssa-loop-niter.c : Likewise.
17791         * tree-ssa-loop-prefetch.c : Likewise.
17792         * tree-ssa-loop-unswitch.c : Likewise.
17793         * tree-ssa-loop.c : Likewise.
17794         * tree-ssa-math-opts.c : Likewise.
17795         * tree-ssa-operands.c : Likewise.
17796         * tree-ssa-phiopt.c : Likewise.
17797         * tree-ssa-phiprop.c : Likewise.
17798         * tree-ssa-pre.c : Likewise.
17799         * tree-ssa-propagate.c : Likewise.
17800         * tree-ssa-reassoc.c : Likewise.
17801         * tree-ssa-sccvn.c : Likewise.
17802         * tree-ssa-scopedtables.c : Likewise.
17803         * tree-ssa-sink.c : Likewise.
17804         * tree-ssa-strlen.c : Likewise.
17805         * tree-ssa-structalias.c : Likewise.
17806         * tree-ssa-tail-merge.c : Likewise.
17807         * tree-ssa-ter.c : Likewise.
17808         * tree-ssa-threadedge.c : Likewise.
17809         * tree-ssa-threadupdate.c : Likewise.
17810         * tree-ssa-uncprop.c : Likewise.
17811         * tree-ssa-uninit.c : Likewise.
17812         * tree-ssa.c : Likewise.
17813         * tree-ssanames.c : Likewise.
17814         * tree-stdarg.c : Likewise.
17815         * tree-streamer-in.c : Likewise.
17816         * tree-streamer-out.c : Likewise.
17817         * tree-streamer.c : Likewise.
17818         * tree-streamer.h : Likewise.
17819         * tree-switch-conversion.c : Likewise.
17820         * tree-tailcall.c : Likewise.
17821         * tree-vect-data-refs.c : Likewise.
17822         * tree-vect-generic.c : Likewise.
17823         * tree-vect-loop-manip.c : Likewise.
17824         * tree-vect-loop.c : Likewise.
17825         * tree-vect-patterns.c : Likewise.
17826         * tree-vect-slp.c : Likewise.
17827         * tree-vect-stmts.c : Likewise.
17828         * tree-vectorizer.c : Likewise.
17829         * tree-vectorizer.h : Likewise.
17830         * tree-vrp.c : Likewise.
17831         * tree.c : Likewise.
17832         * tsan.c : Likewise.
17833         * ubsan.c : Likewise.
17834         * valtrack.c : Likewise.
17835         * valtrack.h : Likewise.
17836         * value-prof.c : Likewise.
17837         * var-tracking.c : Likewise.
17838         * varasm.c : Likewise.
17839         * varpool.c : Likewise.
17840         * vec.c: Likewise.
17841         * vmsdbgout.c : Likewise.
17842         * vtable-verify.c : Likewise.
17843         * vtable-verify.h : Likewise.
17844         * web.c : Likewise.
17845         * wide-int.cc : Likewise.
17846         * xcoffout.c : Likewise.
17847         * config/aarch64/aarch64-builtins.c : Likewise.
17848         * config/aarch64/aarch64.c : Likewise.
17849         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17850         * config/alpha/alpha.c : Likewise.
17851         * config/arc/arc.c : Likewise.
17852         * config/arm/aarch-common.c : Likewise.
17853         * config/arm/arm-builtins.c : Likewise.
17854         * config/arm/arm-c.c : Likewise.
17855         * config/arm/arm.c : Likewise.
17856         * config/avr/avr-c.c : Likewise.
17857         * config/avr/avr-log.c : Likewise.
17858         * config/avr/avr.c : Likewise.
17859         * config/bfin/bfin.c : Likewise.
17860         * config/c6x/c6x.c : Likewise.
17861         * config/cr16/cr16.c : Likewise.
17862         * config/cris/cris.c : Likewise.
17863         * config/darwin-c.c : Likewise.
17864         * config/darwin.c : Likewise.
17865         * config/default-c.c : Likewise.
17866         * config/epiphany/epiphany.c : Likewise.
17867         * config/epiphany/mode-switch-use.c : Likewise.
17868         * config/epiphany/resolve-sw-modes.c : Likewise.
17869         * config/fr30/fr30.c : Likewise.
17870         * config/frv/frv.c : Likewise.
17871         * config/ft32/ft32.c : Likewise.
17872         * config/glibc-c.c : Likewise.
17873         * config/h8300/h8300.c : Likewise.
17874         * config/i386/i386-c.c : Likewise.
17875         * config/i386/i386.c : Likewise.
17876         * config/i386/msformat-c.c : Likewise.
17877         * config/i386/winnt-cxx.c : Likewise.
17878         * config/i386/winnt-stubs.c : Likewise.
17879         * config/i386/winnt.c : Likewise.
17880         * config/ia64/ia64-c.c : Likewise.
17881         * config/ia64/ia64.c : Likewise.
17882         * config/iq2000/iq2000.c : Likewise.
17883         * config/lm32/lm32.c : Likewise.
17884         * config/m32c/m32c-pragma.c : Likewise.
17885         * config/m32c/m32c.c : Likewise.
17886         * config/m32r/m32r.c : Likewise.
17887         * config/m68k/m68k.c : Likewise.
17888         * config/mcore/mcore.c : Likewise.
17889         * config/mep/mep-pragma.c : Likewise.
17890         * config/mep/mep.c : Likewise.
17891         * config/microblaze/microblaze-c.c : Likewise.
17892         * config/microblaze/microblaze.c : Likewise.
17893         * config/mips/mips.c : Likewise.
17894         * config/mmix/mmix.c : Likewise.
17895         * config/mn10300/mn10300.c : Likewise.
17896         * config/moxie/moxie.c : Likewise.
17897         * config/msp430/msp430-c.c : Likewise.
17898         * config/msp430/msp430.c : Likewise.
17899         * config/nds32/nds32-cost.c : Likewise.
17900         * config/nds32/nds32-fp-as-gp.c : Likewise.
17901         * config/nds32/nds32-intrinsic.c : Likewise.
17902         * config/nds32/nds32-isr.c : Likewise.
17903         * config/nds32/nds32-md-auxiliary.c : Likewise.
17904         * config/nds32/nds32-memory-manipulation.c : Likewise.
17905         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17906         * config/nds32/nds32-predicates.c : Likewise.
17907         * config/nds32/nds32.c : Likewise.
17908         * config/nios2/nios2.c : Likewise.
17909         * config/nvptx/nvptx.c : Likewise.
17910         * config/pa/pa.c : Likewise.
17911         * config/pdp11/pdp11.c : Likewise.
17912         * config/rl78/rl78-c.c : Likewise.
17913         * config/rl78/rl78.c : Likewise.
17914         * config/rs6000/rs6000-c.c : Likewise.
17915         * config/rs6000/rs6000.c : Likewise.
17916         * config/rx/rx.c : Likewise.
17917         * config/s390/s390-c.c : Likewise.
17918         * config/s390/s390.c : Likewise.
17919         * config/sh/sh-c.c : Likewise.
17920         * config/sh/sh-mem.cc : Likewise.
17921         * config/sh/sh.c : Likewise.
17922         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17923         * config/sh/sh_treg_combine.cc : Likewise.
17924         * config/sol2-c.c : Likewise.
17925         * config/sol2-cxx.c : Likewise.
17926         * config/sol2-stubs.c : Likewise.
17927         * config/sol2.c : Likewise.
17928         * config/sparc/sparc-c.c : Likewise.
17929         * config/sparc/sparc.c : Likewise.
17930         * config/spu/spu-c.c : Likewise.
17931         * config/spu/spu.c : Likewise.
17932         * config/stormy16/stormy16.c : Likewise.
17933         * config/tilegx/mul-tables.c : Likewise.
17934         * config/tilegx/tilegx-c.c : Likewise.
17935         * config/tilegx/tilegx.c : Likewise.
17936         * config/tilepro/mul-tables.c : Likewise.
17937         * config/tilepro/tilepro-c.c : Likewise.
17938         * config/tilepro/tilepro.c : Likewise.
17939         * config/v850/v850-c.c : Likewise.
17940         * config/v850/v850.c : Likewise.
17941         * config/vax/vax.c : Likewise.
17942         * config/visium/visium.c : Likewise.
17943         * config/vms/vms-c.c : Likewise.
17944         * config/vms/vms.c : Likewise.
17945         * config/vxworks.c : Likewise.
17946         * config/winnt-c.c : Likewise.
17947         * config/xtensa/xtensa.c : Likewise.
17948
17949 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
17950
17951         PR lto/65378
17952         * ipa-utils.h (warn_types_mismatch): Update prototype.
17953         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
17954         parameters.
17955         (type_mismatch_p): New function.
17956         (warn_types_mismatch): Reorg to work better on non-C++ types.
17957         (odr_types_equivalent_p): Add loc1/loc2 parameters.
17958         (add_type_duplicate): Update.
17959
17960 2015-06-08  Tom de Vries  <tom@codesourcery.com>
17961
17962         PR rtl-optimization/66444
17963         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
17964         call_used_regs.
17965
17966 2015-06-08  Richard Biener  <rguenther@suse.de>
17967
17968         PR tree-optimization/66422
17969         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
17970         block after inserted gcc_unreachable.
17971
17972 2015-06-08  Nick Clifton  <nickc@redhat.com>
17973
17974         * config/rx/rx.c (rx_function_value): Do not promote vector types.
17975         (rx_promote_function_mode): Likewise.
17976         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
17977
17978 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
17979
17980         * genattrtab.c (insn_alternatives): Change type from int *
17981         to uint64_t *.
17982         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
17983         (get_attr_value): Change type of num_alt to uint64_t.
17984         (compute_alternative_mask): Change return type from
17985         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
17986         (make_alternative_compare, mk_attr_alt): Change argument type
17987         from int to uint64_t.
17988         (simplify_test_exp): Change type of i from int to uint64_t.
17989         Shift ((uint64_t) 1) instead of 1 up.
17990         (main): Adjust oballocvec first argument from int to uint64_t.
17991         Shift ((uint64_t) 1) instead of 1 up.
17992
17993 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
17994
17995         PR other/65366
17996         * gdbhooks.py: Import sys.
17997         (intptr): New function.  Replace int(...) by intptr(...).
17998
17999 2015-06-08  Richard Biener  <rguenther@suse.de>
18000
18001         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18002         adjustment for gaps at the end of a SLP load group properly.
18003         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18004         all permutations we can generate.
18005         (vect_transform_slp_perm_load): Use the correct group-size.
18006
18007 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
18008
18009         * genmatch.c (expr::gen_transform): For conditions, guess the type
18010         from the second operand.
18011
18012 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18013
18014         PR tree-optimization/66442
18015         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18016         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18017         if the loop latch is not a singleton.  Use
18018         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18019
18020 2015-06-08  Marek Polacek  <polacek@redhat.com>
18021
18022         PR sanitizer/66452
18023         * toplev.c (check_global_declaration): Don't warn about artificial
18024         decls.
18025
18026 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18027
18028         PR tree-optimization/66436
18029         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18030         dump file.
18031         * gimplify.c: Add tree-dump.h include.
18032         (gimplify_function_tree): Dump function to gimple dump file.
18033         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18034         dump file.
18035
18036 2015-06-08  Tom de Vries  <tom@codesourcery.com>
18037
18038         PR tree-optimization/66435
18039         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18040         function.
18041
18042 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
18043
18044         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18045         of ptr_type_node to not be ptr_to_node.
18046         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18047         TREE_TYPE of pointers.
18048         * gimple-expr.c (useless_type_conversion): Reorder the check for
18049         function pointers and TYPE_CANONICAL.
18050
18051 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
18052
18053         PR bootstrap/66319
18054         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18055         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18056         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18057         later.
18058         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18059         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18060         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18061         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18062         and non iso if unix2003.
18063
18064 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
18065
18066         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18067
18068 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
18069
18070         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18071         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18072         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18073         except.c, final.c, function.c, gcse-common.c, genemit.c,
18074         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18075         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18076         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18077         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18078         more derived ones.
18079
18080 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
18081
18082         * combine.c (combine_split_insns): Remove cast.
18083         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18084         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18085         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18086         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18087         * genemit.c (gen_split): Change return type of generated functions to
18088         rtx_insn.
18089         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18090         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18091         gen_peephole2_* functions.
18092         (print_subroutine, main): Likewise.
18093         * recog.c (peephole2_optimize): Remove cast.
18094         (peep2_next_insn): Promote return type to rtx_insn.
18095         * recog.h (peep2_next_insn): Fix prototype.
18096         * rtl.h (try_split, split_insns): Likewise.
18097
18098 2015-06-06  DJ Delorie  <dj@redhat.com>
18099
18100         * config/msp430/msp430.c (msp430_asm_integer): Support addition
18101         and subtraction too.
18102
18103 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18104
18105         PR target/66410
18106         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18107         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18108         instead of Snd.  Disparage Sid/z alternative with '^'.
18109
18110 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
18111
18112         * dwarf2out.c: Remove deferred_locations*.
18113         (dwarf2_debug_hooks): Add early_finish hook.
18114         Remove global_decl hook.
18115         Add early_global_decl and late_global_decl hook.
18116         New global early_dwarf.
18117         New structure set_early_dwarf.
18118         (output_die): Indicate whether a DIE was generated early
18119         when generating assembly with -dA.
18120         (struct limbo_die_struct): Document created_for field.
18121         Remove file_table_last_lookup.
18122         (remove_AT): Return TRUE if successful.
18123         (remove_child_TAG): Clear die_parent.
18124         (reparent_child): New function abstracted from...
18125         (splice_child_die): ...here.
18126         (new_die): ICE if a DIE ends up in limbo too late.
18127         (check_die): New.
18128         (defer_location): Remove.
18129         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18130         (fill_variable_array_bounds): New.
18131         (decl_start_label): Call fill_variable_array_bounds.
18132         (gen_formal_parameter_die): Rewrite to reuse previously generated
18133         DIEs.
18134         (gen_subprogram_die): Same.
18135         (gen_variable_die): Same.
18136         (gen_const_die): Same.
18137         (gen_label_die): Same.
18138         (gen_lexical_block_die): Same.
18139         (decl_will_get_specification_p): New.
18140         (local_function_static): New.
18141         (gen_struct_or_union_type_die): Fill in variable-length fields.
18142         (gen_typedef_die): Fill in variable-length typedefs.
18143         (gen_tagged_type_die): Gracefully return on error_mark_node.
18144         Handle re-entrancy.
18145         (gen_type_die_with_usage): Handle variable-length types.
18146         Remove duplicate code for ARRAY_TYPE case.
18147         (process_scope_var): Only process imported modules during early
18148         dwarf.
18149         (dwarf2out_early_global_decl): New.
18150         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18151         (dwarf2out_type_decl): Set early_dwarf while calling
18152         dwarf2out_decl.
18153         (dwarf2out_decl): Verify that we did not recreate a previously
18154         generated DIE.
18155         Do not return on DECL_EXTERNALs in VAR_DECLs.
18156         Abstract some code to local_function_static.
18157         (lookup_filename): Remove use of file_table_last_lookup.
18158         Gracefully exit on missing file_name.
18159         (dwarf2out_finish): Verify limbo list.
18160         Remove deferred_locations_list use.
18161         Move deferred_asm_name and limbo flushing to...
18162         (dwarf2out_early_finish): ...here.  New.
18163         (dwarf2out_c_finalize): Remove set of deferred_location_list,
18164         deferred_asm_name, and file_table_last_lookup.
18165         * cgraph.h (referred_to_p): Add default argument.
18166         * cgraphunit.c (referred_to_p): Add and handle include_self
18167         argument.
18168         (analyze_functions): Add first_time argument.
18169         Call check_global_declaration for all symbols.
18170         Call late_global_decl for nodes for moribund nodes.
18171         (finalize_compilation_unit): Add new argument to
18172         analyze_functions.
18173         Call early_global_decl for functions.
18174         Call early_finish debug hook.
18175         * dbxout.c (dbxout_early_global_decl): New.
18176         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
18177         (dbx_debug_hooks): Add new hooks.
18178         (xcoff_debug_hooks): Same.
18179         * debug.c (do_nothing_debug_hooks): Add early_finish field.
18180         Add early and late debug hooks.
18181         Remove global_decl hook.
18182         * debug.h (struct gcc_debug_hooks): Add early_finish,
18183         early_global_decl, and late_global_decl fields.
18184         Remove global_decl field.
18185         Document gcc_debug_hooks.
18186         * gengtype.c (output_typename): Remove.
18187         * godump.c (go_early_global_decl): New.
18188         (go_late_global_decl): New.
18189         (go_global_decl): Remove.
18190         (dump_go_spec_init): Remove global_decl.  Add
18191         {early,late}_global_decl.
18192         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18193         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18194         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18195         (write_global_declarations): Remove.
18196         (global_decl_processing): New.
18197         * langhooks.h (struct lang_hooks_for_decls): Remove
18198         final_write_globals field.
18199         Add post_compilation_parsing_cleanups field.
18200         * passes.c (rest_of_decl_compilation): Call early_global_decl.
18201         * sdbout.c: Add early and late_global_decl hooks.  Remove
18202         sdbout_global_decl hook.
18203         Add early_finish field for sdb_debug_hooks.
18204         (sdbout_global_decl): Remove.
18205         (sdbout_early_global_decl): New.
18206         (sdbout_late_global_decl): New.
18207         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18208         * toplev.c (check_global_declaration): Rename from
18209         check_global_declaration_1.
18210         Adapt to use symtab infrastructure.
18211         (check_global_declarations): Remove.
18212         (emit_debug_global_declarations): Remove.
18213         (compile_file): Remove call to final_write_globals langhook.
18214         Run the actual compilation process.
18215         Perform any post compilation parser cleanups.
18216         Generate late debug info.
18217         * toplev.h (check_global_declaration): New.
18218         (check_global_declaration_1): Remove.
18219         (check_global_declarations): Remove.
18220         (write_global_declarations): Remove.
18221         (emit_debug_global_declarations): Remove.
18222         (global_decl_processing): New.
18223         * tree-core.h (struct tree_block): Add DIE field.
18224         * tree.h (BLOCK_DIE): New.
18225         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18226         throughout.
18227         (vmsdbgout_early_global_decl): New.
18228         (vmsdbgout_late_global_decl): New.
18229         Add early_finish debug hook field to vmsdbg_debug_hooks.
18230         Remove vmsdbgout_decl to vmsdbgout_function_decl.
18231         Add early and late_global_decl debug hooks.
18232
18233 2015-06-05  Julian Brown  <julian@codesourcery.com>
18234             Sandra Loosemore  <sandra@codesourcery.com>
18235
18236         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18237         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18238         to print-sysroot-suffix.sh script.
18239
18240 2015-06-05  Tom de Vries  <tom@codesourcery.com>
18241
18242         merge from gomp4 branch:
18243         2015-05-28  Tom de Vries  <tom@codesourcery.com>
18244
18245         PR tree-optimization/65443
18246         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18247         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18248         (try_transform_to_exit_first_loop_alt): New function.
18249         (transform_to_exit_first_loop): Use
18250         try_transform_to_exit_first_loop_alt.
18251
18252 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
18253
18254         * builtins.c (expand_builtin_atomic_compare_exchange): Call
18255         emit_cmp_and_jump_insns with the mode of target.
18256
18257 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18258
18259         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18260
18261 2015-06-04  DJ Delorie  <dj@redhat.com>
18262
18263         * config/msp430/msp430.md (movsi_s): New.  Special case for
18264         storing a 20-bit symbol into a 32-bit register.
18265         * config/msp430/msp430.c (msp430_subreg): Add support for it.
18266         * config/msp430/predicates.md (msp430_symbol_operand): New.
18267
18268 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
18269
18270         * c-family/c-common.c (noplt): New attribute.
18271         (handle_noplt_attribute): New handler.
18272         * calls.c (prepare_call_address): Check for noplt
18273         attribute.
18274         * config/i386/i386.c (ix86_expand_call): Check
18275         for noplt attribute.
18276         (ix86_nopic_noplt_attribute_p): New function.
18277         (ix86_output_call_insn): Output indirect call for non-pic
18278         no plt calls.
18279         * doc/extend.texi (noplt): Document new attribute.
18280         * doc/invoke.texi: Document new attribute.
18281
18282 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
18283
18284         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18285         real.h, and fixed-value.h when included in host source files.
18286         * double-int.h: Remove redundant #includes listed above.
18287         * fixed-value.h: Likewise.
18288         * real.h: Likewise.
18289         * wide-int.h: Likewise.
18290         * inchash.h: Likewise.
18291         * rtl.h: Add some include files When included from a generator file.
18292         * target.h: Remove wide-int.h and insn-modes.h from the include list.
18293         * internal-fn.h: Don't include coretypes.h.
18294         * alias.c: Adjust includes for restructured coretypes.h.
18295         * asan.c: Likewise.
18296         * attribs.c: Likewise.
18297         * auto-inc-dec.c: Likewise.
18298         * auto-profile.c: Likewise.
18299         * bb-reorder.c: Likewise.
18300         * bt-load.c: Likewise.
18301         * builtins.c: Likewise.
18302         * caller-save.c: Likewise.
18303         * calls.c: Likewise.
18304         * ccmp.c: Likewise.
18305         * cfg.c: Likewise.
18306         * cfganal.c: Likewise.
18307         * cfgbuild.c: Likewise.
18308         * cfgcleanup.c: Likewise.
18309         * cfgexpand.c: Likewise.
18310         * cfghooks.c: Likewise.
18311         * cfgloop.c: Likewise.
18312         * cfgloop.h: Likewise.
18313         * cfgloopanal.c: Likewise.
18314         * cfgloopmanip.c: Likewise.
18315         * cfgrtl.c: Likewise.
18316         * cgraph.c: Likewise.
18317         * cgraphbuild.c: Likewise.
18318         * cgraphclones.c: Likewise.
18319         * cgraphunit.c: Likewise.
18320         * cilk-common.c: Likewise.
18321         * combine-stack-adj.c: Likewise.
18322         * combine.c: Likewise.
18323         * compare-elim.c: Likewise.
18324         * convert.c: Likewise.
18325         * coverage.c: Likewise.
18326         * cppbuiltin.c: Likewise.
18327         * cprop.c: Likewise.
18328         * cse.c: Likewise.
18329         * cselib.c: Likewise.
18330         * data-streamer-in.c: Likewise.
18331         * data-streamer-out.c: Likewise.
18332         * data-streamer.c: Likewise.
18333         * dbxout.c: Likewise.
18334         * dce.c: Likewise.
18335         * ddg.c: Likewise.
18336         * debug.c: Likewise.
18337         * df-core.c: Likewise.
18338         * df-problems.c: Likewise.
18339         * df-scan.c: Likewise.
18340         * df.h: Likewise.
18341         * dfp.c: Likewise.
18342         * dojump.c: Likewise.
18343         * dominance.c: Likewise.
18344         * domwalk.c: Likewise.
18345         * double-int.c: Likewise.
18346         * dse.c: Likewise.
18347         * dumpfile.c: Likewise.
18348         * dwarf2asm.c: Likewise.
18349         * dwarf2cfi.c: Likewise.
18350         * dwarf2out.c: Likewise.
18351         * dwarf2out.h: Likewise.
18352         * emit-rtl.c: Likewise.
18353         * et-forest.c: Likewise.
18354         * except.c: Likewise.
18355         * explow.c: Likewise.
18356         * expmed.c: Likewise.
18357         * expr.c: Likewise.
18358         * final.c: Likewise.
18359         * fixed-value.c: Likewise.
18360         * fold-const.c: Likewise.
18361         * function.c: Likewise.
18362         * fwprop.c: Likewise.
18363         * gcc-plugin.h: Likewise.
18364         * gcse.c: Likewise.
18365         * generic-match-head.c: Likewise.
18366         * ggc-page.c: Likewise.
18367         * gimple-builder.c: Likewise.
18368         * gimple-expr.c: Likewise.
18369         * gimple-fold.c: Likewise.
18370         * gimple-iterator.c: Likewise.
18371         * gimple-low.c: Likewise.
18372         * gimple-match-head.c: Likewise.
18373         * gimple-pretty-print.c: Likewise.
18374         * gimple-ssa-isolate-paths.c: Likewise.
18375         * gimple-ssa-strength-reduction.c: Likewise.
18376         * gimple-streamer-in.c: Likewise.
18377         * gimple-streamer-out.c: Likewise.
18378         * gimple-streamer.h: Likewise.
18379         * gimple-walk.c: Likewise.
18380         * gimple.c: Likewise.
18381         * gimplify-me.c: Likewise.
18382         * gimplify.c: Likewise.
18383         * godump.c: Likewise.
18384         * graph.c: Likewise.
18385         * graphite-blocking.c: Likewise.
18386         * graphite-dependences.c: Likewise.
18387         * graphite-interchange.c: Likewise.
18388         * graphite-isl-ast-to-gimple.c: Likewise.
18389         * graphite-optimize-isl.c: Likewise.
18390         * graphite-poly.c: Likewise.
18391         * graphite-scop-detection.c: Likewise.
18392         * graphite-sese-to-poly.c: Likewise.
18393         * graphite.c: Likewise.
18394         * haifa-sched.c: Likewise.
18395         * hooks.h: Likewise.
18396         * hw-doloop.c: Likewise.
18397         * ifcvt.c: Likewise.
18398         * incpath.c: Likewise.
18399         * init-regs.c: Likewise.
18400         * internal-fn.c: Likewise.
18401         * ipa-chkp.c: Likewise.
18402         * ipa-comdats.c: Likewise.
18403         * ipa-cp.c: Likewise.
18404         * ipa-devirt.c: Likewise.
18405         * ipa-icf-gimple.c: Likewise.
18406         * ipa-icf.c: Likewise.
18407         * ipa-inline-analysis.c: Likewise.
18408         * ipa-inline-transform.c: Likewise.
18409         * ipa-inline.c: Likewise.
18410         * ipa-polymorphic-call.c: Likewise.
18411         * ipa-profile.c: Likewise.
18412         * ipa-prop.c: Likewise.
18413         * ipa-pure-const.c: Likewise.
18414         * ipa-ref.c: Likewise.
18415         * ipa-reference.c: Likewise.
18416         * ipa-split.c: Likewise.
18417         * ipa-utils.c: Likewise.
18418         * ipa-visibility.c: Likewise.
18419         * ipa.c: Likewise.
18420         * ira-build.c: Likewise.
18421         * ira-color.c: Likewise.
18422         * ira-conflicts.c: Likewise.
18423         * ira-costs.c: Likewise.
18424         * ira-emit.c: Likewise.
18425         * ira-lives.c: Likewise.
18426         * ira.c: Likewise.
18427         * jump.c: Likewise.
18428         * langhooks.c: Likewise.
18429         * lcm.c: Likewise.
18430         * loop-doloop.c: Likewise.
18431         * loop-init.c: Likewise.
18432         * loop-invariant.c: Likewise.
18433         * loop-iv.c: Likewise.
18434         * loop-unroll.c: Likewise.
18435         * lower-subreg.c: Likewise.
18436         * lra-assigns.c: Likewise.
18437         * lra-coalesce.c: Likewise.
18438         * lra-constraints.c: Likewise.
18439         * lra-eliminations.c: Likewise.
18440         * lra-lives.c: Likewise.
18441         * lra-remat.c: Likewise.
18442         * lra-spills.c: Likewise.
18443         * lra.c: Likewise.
18444         * lto-cgraph.c: Likewise.
18445         * lto-compress.c: Likewise.
18446         * lto-opts.c: Likewise.
18447         * lto-section-in.c: Likewise.
18448         * lto-section-out.c: Likewise.
18449         * lto-streamer-in.c: Likewise.
18450         * lto-streamer-out.c: Likewise.
18451         * lto-streamer.c: Likewise.
18452         * mcf.c: Likewise.
18453         * mode-switching.c: Likewise.
18454         * modulo-sched.c: Likewise.
18455         * omega.c: Likewise.
18456         * omp-low.c: Likewise.
18457         * optabs.c: Likewise.
18458         * opts-global.c: Likewise.
18459         * passes.c: Likewise.
18460         * plugin.c: Likewise.
18461         * postreload-gcse.c: Likewise.
18462         * postreload.c: Likewise.
18463         * predict.c: Likewise.
18464         * print-rtl.c: Likewise.
18465         * print-tree.c: Likewise.
18466         * profile.c: Likewise.
18467         * real.c: Likewise.
18468         * realmpfr.c: Likewise.
18469         * realmpfr.h: Likewise.
18470         * recog.c: Likewise.
18471         * ree.c: Likewise.
18472         * reg-stack.c: Likewise.
18473         * regcprop.c: Likewise.
18474         * reginfo.c: Likewise.
18475         * regrename.c: Likewise.
18476         * regs.h: Likewise.
18477         * regstat.c: Likewise.
18478         * reload.c: Likewise.
18479         * reload1.c: Likewise.
18480         * reorg.c: Likewise.
18481         * resource.c: Likewise.
18482         * rtl-chkp.c: Likewise.
18483         * rtlanal.c: Likewise.
18484         * rtlhooks.c: Likewise.
18485         * sanopt.c: Likewise.
18486         * sched-deps.c: Likewise.
18487         * sched-ebb.c: Likewise.
18488         * sched-rgn.c: Likewise.
18489         * sched-vis.c: Likewise.
18490         * sdbout.c: Likewise.
18491         * sel-sched-dump.c: Likewise.
18492         * sel-sched-ir.c: Likewise.
18493         * sel-sched.c: Likewise.
18494         * sese.c: Likewise.
18495         * shrink-wrap.c: Likewise.
18496         * shrink-wrap.h: Likewise.
18497         * simplify-rtx.c: Likewise.
18498         * stack-ptr-mod.c: Likewise.
18499         * statistics.c: Likewise.
18500         * stmt.c: Likewise.
18501         * stor-layout.c: Likewise.
18502         * store-motion.c: Likewise.
18503         * stringpool.c: Likewise.
18504         * symtab.c: Likewise.
18505         * target-globals.c: Likewise.
18506         * targhooks.c: Likewise.
18507         * toplev.c: Likewise.
18508         * tracer.c: Likewise.
18509         * trans-mem.c: Likewise.
18510         * tree-affine.c: Likewise.
18511         * tree-affine.h: Likewise.
18512         * tree-browser.c: Likewise.
18513         * tree-call-cdce.c: Likewise.
18514         * tree-cfg.c: Likewise.
18515         * tree-cfgcleanup.c: Likewise.
18516         * tree-chkp-opt.c: Likewise.
18517         * tree-chkp.c: Likewise.
18518         * tree-chrec.c: Likewise.
18519         * tree-complex.c: Likewise.
18520         * tree-data-ref.c: Likewise.
18521         * tree-dfa.c: Likewise.
18522         * tree-diagnostic.c: Likewise.
18523         * tree-dump.c: Likewise.
18524         * tree-eh.c: Likewise.
18525         * tree-emutls.c: Likewise.
18526         * tree-if-conv.c: Likewise.
18527         * tree-inline.c: Likewise.
18528         * tree-into-ssa.c: Likewise.
18529         * tree-iterator.c: Likewise.
18530         * tree-loop-distribution.c: Likewise.
18531         * tree-nested.c: Likewise.
18532         * tree-nrv.c: Likewise.
18533         * tree-object-size.c: Likewise.
18534         * tree-outof-ssa.c: Likewise.
18535         * tree-parloops.c: Likewise.
18536         * tree-phinodes.c: Likewise.
18537         * tree-predcom.c: Likewise.
18538         * tree-pretty-print.c: Likewise.
18539         * tree-pretty-print.h: Likewise.
18540         * tree-profile.c: Likewise.
18541         * tree-scalar-evolution.c: Likewise.
18542         * tree-sra.c: Likewise.
18543         * tree-ssa-address.c: Likewise.
18544         * tree-ssa-alias.c: Likewise.
18545         * tree-ssa-ccp.c: Likewise.
18546         * tree-ssa-coalesce.c: Likewise.
18547         * tree-ssa-copy.c: Likewise.
18548         * tree-ssa-copyrename.c: Likewise.
18549         * tree-ssa-dce.c: Likewise.
18550         * tree-ssa-dom.c: Likewise.
18551         * tree-ssa-dse.c: Likewise.
18552         * tree-ssa-forwprop.c: Likewise.
18553         * tree-ssa-ifcombine.c: Likewise.
18554         * tree-ssa-live.c: Likewise.
18555         * tree-ssa-loop-ch.c: Likewise.
18556         * tree-ssa-loop-im.c: Likewise.
18557         * tree-ssa-loop-ivcanon.c: Likewise.
18558         * tree-ssa-loop-ivopts.c: Likewise.
18559         * tree-ssa-loop-manip.c: Likewise.
18560         * tree-ssa-loop-niter.c: Likewise.
18561         * tree-ssa-loop-prefetch.c: Likewise.
18562         * tree-ssa-loop-unswitch.c: Likewise.
18563         * tree-ssa-loop.c: Likewise.
18564         * tree-ssa-loop.h: Likewise.
18565         * tree-ssa-math-opts.c: Likewise.
18566         * tree-ssa-operands.c: Likewise.
18567         * tree-ssa-phiopt.c: Likewise.
18568         * tree-ssa-phiprop.c: Likewise.
18569         * tree-ssa-pre.c: Likewise.
18570         * tree-ssa-propagate.c: Likewise.
18571         * tree-ssa-reassoc.c: Likewise.
18572         * tree-ssa-sccvn.c: Likewise.
18573         * tree-ssa-scopedtables.c: Likewise.
18574         * tree-ssa-sink.c: Likewise.
18575         * tree-ssa-strlen.c: Likewise.
18576         * tree-ssa-structalias.c: Likewise.
18577         * tree-ssa-tail-merge.c: Likewise.
18578         * tree-ssa-ter.c: Likewise.
18579         * tree-ssa-threadedge.c: Likewise.
18580         * tree-ssa-threadupdate.c: Likewise.
18581         * tree-ssa-uncprop.c: Likewise.
18582         * tree-ssa-uninit.c: Likewise.
18583         * tree-ssa.c: Likewise.
18584         * tree-ssanames.c: Likewise.
18585         * tree-stdarg.c: Likewise.
18586         * tree-streamer-in.c: Likewise.
18587         * tree-streamer-out.c: Likewise.
18588         * tree-streamer.c: Likewise.
18589         * tree-switch-conversion.c: Likewise.
18590         * tree-tailcall.c: Likewise.
18591         * tree-vect-data-refs.c: Likewise.
18592         * tree-vect-generic.c: Likewise.
18593         * tree-vect-loop-manip.c: Likewise.
18594         * tree-vect-loop.c: Likewise.
18595         * tree-vect-patterns.c: Likewise.
18596         * tree-vect-slp.c: Likewise.
18597         * tree-vect-stmts.c: Likewise.
18598         * tree-vectorizer.c: Likewise.
18599         * tree-vrp.c: Likewise.
18600         * tree.c: Likewise.
18601         * tsan.c: Likewise.
18602         * ubsan.c: Likewise.
18603         * valtrack.c: Likewise.
18604         * value-prof.c: Likewise.
18605         * var-tracking.c: Likewise.
18606         * varasm.c: Likewise.
18607         * varpool.c: Likewise.
18608         * vmsdbgout.c: Likewise.
18609         * vtable-verify.c: Likewise.
18610         * web.c: Likewise.
18611         * wide-int-print.cc: Likewise.
18612         * wide-int-print.h: Likewise.
18613         * wide-int.cc: Likewise.
18614         * xcoffout.c: Likewise.
18615         * config/aarch64/aarch64-builtins.c: Likewise.
18616         * config/aarch64/aarch64.c: Likewise.
18617         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18618         * config/alpha/alpha.c: Likewise.
18619         * config/arc/arc.c: Likewise.
18620         * config/arm/aarch-common.c: Likewise.
18621         * config/arm/arm-builtins.c: Likewise.
18622         * config/arm/arm-c.c: Likewise.
18623         * config/arm/arm.c: Likewise.
18624         * config/avr/avr-c.c: Likewise.
18625         * config/avr/avr-log.c: Likewise.
18626         * config/avr/avr.c: Likewise.
18627         * config/bfin/bfin.c: Likewise.
18628         * config/c6x/c6x.c: Likewise.
18629         * config/cr16/cr16.c: Likewise.
18630         * config/cris/cris.c: Likewise.
18631         * config/darwin-c.c: Likewise.
18632         * config/darwin.c: Likewise.
18633         * config/default-c.c: Likewise.
18634         * config/epiphany/epiphany.c: Likewise.
18635         * config/epiphany/mode-switch-use.c: Likewise.
18636         * config/epiphany/resolve-sw-modes.c: Likewise.
18637         * config/fr30/fr30.c: Likewise.
18638         * config/frv/frv.c: Likewise.
18639         * config/ft32/ft32.c: Likewise.
18640         * config/glibc-c.c: Likewise.
18641         * config/h8300/h8300.c: Likewise.
18642         * config/i386/i386-c.c: Likewise.
18643         * config/i386/i386.c: Likewise.
18644         * config/i386/msformat-c.c: Likewise.
18645         * config/i386/winnt-cxx.c: Likewise.
18646         * config/i386/winnt-stubs.c: Likewise.
18647         * config/i386/winnt.c: Likewise.
18648         * config/ia64/ia64-c.c: Likewise.
18649         * config/ia64/ia64.c: Likewise.
18650         * config/iq2000/iq2000.c: Likewise.
18651         * config/lm32/lm32.c: Likewise.
18652         * config/m32c/m32c-pragma.c: Likewise.
18653         * config/m32c/m32c.c: Likewise.
18654         * config/m32r/m32r.c: Likewise.
18655         * config/m68k/m68k.c: Likewise.
18656         * config/mcore/mcore.c: Likewise.
18657         * config/mep/mep-pragma.c: Likewise.
18658         * config/mep/mep.c: Likewise.
18659         * config/microblaze/microblaze-c.c: Likewise.
18660         * config/microblaze/microblaze.c: Likewise.
18661         * config/mips/mips.c: Likewise.
18662         * config/mmix/mmix.c: Likewise.
18663         * config/mn10300/mn10300.c: Likewise.
18664         * config/moxie/moxie.c: Likewise.
18665         * config/msp430/msp430-c.c: Likewise.
18666         * config/msp430/msp430.c: Likewise.
18667         * config/nds32/nds32-cost.c: Likewise.
18668         * config/nds32/nds32-fp-as-gp.c: Likewise.
18669         * config/nds32/nds32-intrinsic.c: Likewise.
18670         * config/nds32/nds32-isr.c: Likewise.
18671         * config/nds32/nds32-md-auxiliary.c: Likewise.
18672         * config/nds32/nds32-memory-manipulation.c: Likewise.
18673         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18674         * config/nds32/nds32-predicates.c: Likewise.
18675         * config/nds32/nds32.c: Likewise.
18676         * config/nios2/nios2.c: Likewise.
18677         * config/nvptx/nvptx.c: Likewise.
18678         * config/pa/pa.c: Likewise.
18679         * config/pdp11/pdp11.c: Likewise.
18680         * config/rl78/rl78-c.c: Likewise.
18681         * config/rl78/rl78.c: Likewise.
18682         * config/rs6000/rs6000-c.c: Likewise.
18683         * config/rs6000/rs6000.c: Likewise.
18684         * config/rx/rx.c: Likewise.
18685         * config/s390/s390-c.c: Likewise.
18686         * config/s390/s390.c: Likewise.
18687         * config/sh/sh-c.c: Likewise.
18688         * config/sh/sh-mem.cc: Likewise.
18689         * config/sh/sh.c: Likewise.
18690         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18691         * config/sh/sh_treg_combine.cc: Likewise.
18692         * config/sol2-c.c: Likewise.
18693         * config/sol2-cxx.c: Likewise.
18694         * config/sol2-stubs.c: Likewise.
18695         * config/sol2.c: Likewise.
18696         * config/sparc/sparc-c.c: Likewise.
18697         * config/sparc/sparc.c: Likewise.
18698         * config/spu/spu-c.c: Likewise.
18699         * config/spu/spu.c: Likewise.
18700         * config/stormy16/stormy16.c: Likewise.
18701         * config/tilegx/mul-tables.c: Likewise.
18702         * config/tilegx/tilegx-c.c: Likewise.
18703         * config/tilegx/tilegx.c: Likewise.
18704         * config/tilepro/mul-tables.c: Likewise.
18705         * config/tilepro/tilepro-c.c: Likewise.
18706         * config/tilepro/tilepro.c: Likewise.
18707         * config/v850/v850-c.c: Likewise.
18708         * config/v850/v850.c: Likewise.
18709         * config/vax/vax.c: Likewise.
18710         * config/visium/visium.c: Likewise.
18711         * config/vms/vms-c.c: Likewise.
18712         * config/vms/vms.c: Likewise.
18713         * config/vxworks.c: Likewise.
18714         * config/winnt-c.c: Likewise.
18715         * config/xtensa/xtensa.c: Likewise.
18716         * common/config/bfin/bfin-common.c: Likewise.
18717
18718 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
18719
18720         * tree.h (tree_code_for_canonical_type_merging): New function.
18721         * tree.c (gimple_canonical_types_compatible_p): Use
18722         tree_code_for_canonical_type_merging..
18723
18724 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18725
18726         PR c++/66192
18727         PR target/66200
18728         * doc/tm.texi: Regenerate.
18729         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18730         * target.def (TARGET_RELAXED_ORDERING): Likewise.
18731         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18732         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18733         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18734         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18735         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18736         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18737         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18738
18739 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18740
18741         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18742         register fma steering pass.
18743         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18744         AARCH64_TUNE_FMA_STEERING.
18745
18746 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
18747
18748         * tree.c (verify_type_variant): Verify that type and variant is
18749         compatible.
18750         (gimple_canonical_types_compatible_p): Look for main variants.
18751
18752 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18753
18754         * config.gcc (powerpc*-*-*): Add support for a new configure
18755         option --with-advance-toolchain=<xxx> which overrides using the
18756         default header files, libraries and dynamic linker.
18757
18758         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18759         specs to support the configure --with-advance-toolchain=<xxx>
18760         option.
18761         (INCLUDE_EXTRA_SPEC): Likewise.
18762         (LINK_OS_EXTRA_SPEC32): Likewise.
18763         (LINK_OK_EXTRA_SPEC64): Likewise.
18764         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18765         (DYNAMIC_LINKER_PREFIX): Likewise.
18766         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18767         toolchain support.
18768         (GLIBC_DYNAMIC_LINKER32): Likewise.
18769         (GLIBC_DYNAMIC_LINKER64): Likewise.
18770         (LINK_OS_LINUX_SPEC32): Likewise.
18771         (LINK_OS_LINUX_SPEC64): Likewise.
18772
18773         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18774         configuration option.
18775
18776 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
18777
18778         PR target/66275
18779         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18780         to determine current function ABI.
18781         (ix86_function_value_regno_p): Ditto.
18782
18783 2015-06-03  Martin Liska  <mliska@suse.cz>
18784
18785         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18786         * bitmap.h (struct bitmap_usage): Likewise.
18787         * ggc-common.c (struct ggc_usage): Likewise.
18788         * mem-stats.h (struct mem_location): Likewise.
18789         (struct mem_usage): Likewise.
18790         * vec.c (struct vec_usage): Likewise.
18791
18792 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
18793
18794         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18795         -Bsymbolic.
18796
18797 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
18798
18799         * doc/plugins.texi (enum plugin_event): New event.
18800         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18801         and PLUGIN_FINISH_FUNCTION.
18802         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18803         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18804
18805 2015-06-03  Richard Biener  <rguenther@suse.de>
18806
18807         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18808         compute GROUP_GAP for the first element.
18809         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18810         on in-group gaps.
18811
18812 2015-06-03  Nick Clifton  <nickc@redhat.com>
18813
18814         * config/rl78/rl78-real.md: Add peepholes to avoid a register
18815         copy when calling a function.
18816         * config/rl78/rl78.c (need_to_save): Do not push the frame
18817         pointer in an interrupt handler prologue if it is never used.
18818
18819 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18820
18821         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18822
18823 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18824
18825         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18826         reference when cloning alias node.
18827
18828 2015-06-03  Martin Liska  <mliska@suse.cz>
18829
18830         * alloc-pool.h (struct pool_usage): Correct space padding.
18831         * ggc-page.c (ggc_print_statistics): Align columns in a report.
18832         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18833         * tree.c (dump_tree_statistics): Align columns in a report.
18834
18835 2015-06-03  Martin Liska  <mliska@suse.cz>
18836
18837         * alloc-pool.c (allocate_pool_descriptor): Remove.
18838         (struct pool_output_info): Likewise.
18839         (print_alloc_pool_statistics): Likewise.
18840         (dump_alloc_pool_statistics): Likewise.
18841         * alloc-pool.h (struct pool_usage): New struct.
18842         (pool_allocator::initialize): Change usage of memory statistics
18843         to a new interface.
18844         (pool_allocator::release): Likewise.
18845         (pool_allocator::allocate): Likewise.
18846         (pool_allocator::remove): Likewise.
18847         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18848         for a pool allocator.
18849         * mem-stats.h (struct mem_location): Add new ctor.
18850         (struct mem_usage): Add counter for number of
18851         instances.
18852         (mem_alloc_description::register_descriptor): New overload of
18853         * mem-stats.h (mem_location::to_string): New function.
18854         * bitmap.h (struct bitmap_usage): Use this new function.
18855         * ggc-common.c (struct ggc_usage): Likewise.
18856         the function.
18857
18858 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18859
18860         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18861         of GCC_INSN_FLAGS_H block.
18862
18863 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
18864
18865         * explow.c (plus_constant): Update check after force_const_mem call
18866         to see if the value returned is not a NULL_RTX.
18867
18868 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
18869
18870         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18871         remove instumentation thunks calling reachable functions.
18872         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18873         * lto/lto-partition.c (privatize_symbol_name_1): New.
18874         (privatize_symbol_name): Privatize both decl and orig_decl
18875         names for instrumented functions.
18876         * cgraph.c (cgraph_node::verify_node): Add transparent
18877         alias chain check for instrumented node.
18878
18879 2015-06-03  Marek Polacek  <polacek@redhat.com>
18880
18881         PR c/64223
18882         PR c/29358
18883         * tree.c (attribute_value_equal): Handle attribute format.
18884         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18885
18886 2015-06-03  Richard Biener  <rguenther@suse.de>
18887
18888         PR tree-optimization/63916
18889         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18890         Forward-propagate non-invariant addresses by splicing their
18891         reference ops if the result isn't going to be used by PRE.
18892         (vn_reference_lookup_3): Remove pointless assert.
18893
18894 2015-06-03  Richard Biener  <rguenther@suse.de>
18895
18896         PR tree-optimization/66375
18897         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18898         add to the evolution before following SSA edges.
18899
18900 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
18901
18902         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18903         (dump_use, dump_cand, find_induction_variables): Pass new argument
18904         to dump_iv.
18905         (record_use): Preserve the ssa name information in IV.
18906
18907 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
18908
18909         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18910         NO_MODE_TEST.
18911         (add_mode_tests): Don't add mode tests if the predicate only
18912         accepts scalar constant integers.  Otherwise, allow the mode
18913         of "op" to be VOIDmode if the predicate does accept such integers.
18914
18915 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
18916
18917         PR target/66258
18918         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18919         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18920         (aarch64_secondary_reload): Likewise
18921         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18922         to !TARGET_FLOAT.
18923         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18924         Likewise.
18925
18926 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
18927             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18928
18929         PR target/65768
18930         * cprop.c (try_replace_reg): Check cost of constants before propagating.
18931
18932 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18933
18934         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18935         provide access to the IBM extended double floating point mode if
18936         long double is IEEE 128-bit floating point.
18937         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18938         point if long double is the IBM extended double type.
18939
18940         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
18941         enable adding IEEE 128-bit floating point support.
18942         (-mfloat128-software): Likewise.
18943         (-mfloat128-sw): Likewise.
18944
18945         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
18946         128-bit floating point types to occupy any register if
18947         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
18948         -mfloat128-software is enabled.
18949         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
18950         support.
18951         (rs6000_option_override_internal): Add -mfloat128-* support.
18952         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
18953
18954         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
18955         and float128 type nodes.
18956         (ieee128_float_type_node): Likewise.
18957         (ibm128_float_type_node): Likewise.
18958
18959 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18960
18961         PR target/66136
18962         * config/aarch64/geniterators.sh: Rewrite in awk.
18963
18964 2015-06-02  Martin Liska  <mliska@suse.cz>
18965
18966         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
18967         values to avoid -Wmaybe-uninitialized errors.
18968
18969 2015-06-02  Richard Biener  <rguenther@suse.de>
18970
18971         PR debug/65549
18972         * dwarf2out.c (lookup_context_die): New function.
18973         (resolve_addr): Avoid forcing a full DIE for the
18974         target of a DW_TAG_GNU_call_site during late compilation.
18975         Instead create a stub DIE without a type if we have a
18976         context DIE present.
18977
18978 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
18979
18980         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
18981
18982 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
18983
18984         PR tree-optimization/48052
18985         * cfgloop.h (struct control_iv): New.
18986         (struct loop): New field control_ivs.
18987         * tree-ssa-loop-niter.c : Include "stor-layout.h".
18988         (number_of_iterations_lt): Set no_overflow information.
18989         (number_of_iterations_exit): Init control iv in niter struct.
18990         (record_control_iv): New.
18991         (estimate_numbers_of_iterations_loop): Call record_control_iv.
18992         (loop_exits_before_overflow): New.  Interface factored out of
18993         scev_probably_wraps_p.
18994         (scev_probably_wraps_p): Factor loop niter related code into
18995         loop_exits_before_overflow.
18996         (free_numbers_of_iterations_estimates_loop): Free control ivs.
18997         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
18998
18999 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19000
19001         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19002         the target doesn't belong to the current function.
19003
19004 2015-06-02  Marek Polacek  <polacek@redhat.com>
19005
19006         PR middle-end/66345
19007         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19008         get_maxval_strlen does not produce an INTEGER_CST.
19009
19010 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
19011
19012         * config/arc/constraints.md: Use lower-case names in match_code.
19013         * config/mmix/constraints.md: Likewise.
19014
19015 2015-06-02  Richard Biener  <rguenther@suse.de>
19016
19017         PR tree-optimization/65961
19018         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19019         check and clarify dump message.
19020         (vect_build_slp_tree): If all children are built up from scalars
19021         build up the parent from scalars instead.
19022         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19023
19024 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
19025
19026         PR other/65366
19027         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
19028         instead of print ... .
19029
19030 2015-06-02  Alan Modra  <amodra@gmail.com>
19031
19032         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19033         2014-08-11 change.
19034
19035 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
19036
19037         PR tree-optimization/52563
19038         PR tree-optimization/62173
19039         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
19040         (alloc_iv, set_iv): New parameter.
19041         (determine_biv_step): Delete.
19042         (find_bivs): Inline original determine_biv_step.  Pass new
19043         argument to set_iv.
19044         (idx_find_step): Use no_overflow information for conversion.
19045         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19046         resolve_mixers handle folded_casts.
19047         (instantiate_scev_name): Change bool parameter to bool pointer.
19048         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19049         (instantiate_array_ref, instantiate_scev_not): Ditto.
19050         (instantiate_scev_3, instantiate_scev_2): Ditto.
19051         (instantiate_scev_1, instantiate_scev_r): Ditto.
19052         (instantiate_scev_convert, ): Change parameter.  Pass argument
19053         to chrec_convert_aggressive.
19054         (instantiate_scev): Change argument.
19055         (resolve_mixers): New parameter and set it.
19056         (scev_const_prop): New argument.
19057         * tree-scalar-evolution.h (resolve_mixers): New parameter.
19058         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19059         of chrec_conert_1.
19060         (chrec_convert): New parameter.  Move definition below.
19061         (chrec_convert_aggressive): New parameter and set it.  Call
19062         convert_affine_scev.
19063         * tree-chrec.h (chrec_convert): New parameter.
19064         (chrec_convert_aggressive): Ditto.
19065
19066 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19067
19068         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19069         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19070         the LHS of a no-return call if its type has variable size.
19071         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19072         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19073
19074 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
19075
19076         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19077         * config.in: Regenerate.
19078
19079 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19080
19081         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19082         consecutive accesses within outer-loop with force_vectorize
19083         for references with zero step in inner-loop.
19084
19085 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19086
19087         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19088         rather than from gcc/build directory.
19089
19090 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19091
19092         PR target/65697
19093         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19094         for __sync memory models, emit initial loads and final barriers as
19095         appropriate.
19096
19097 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
19098
19099         PR target/65697
19100         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19101         (aarch64_split_atomic_op): Check for __sync memory models, emit
19102         appropriate initial loads and final barriers.
19103
19104 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
19105
19106         * Makefile.in: Fix gcov dependencies that should
19107         not point to a build folder.
19108
19109 2015-06-01  Richard Biener  <rguenther@suse.de>
19110
19111         Revert
19112         2015-05-29  Richard Biener  <rguenther@suse.de>
19113
19114         PR tree-optimization/66314
19115         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19116         parameter that says which loop the new block belongs to.
19117         (ssa_create_duplicates): Blocks duplicated for the threaded
19118         path belong to the loop of the thread destination.
19119
19120 2015-06-01  Martin Liska  <mliska@suse.cz>
19121
19122         * sched-deps.c: Include pool-alloc.h before
19123         cselib.h header file is included.
19124
19125 2015-06-01  Richard Biener  <rguenther@suse.de>
19126
19127         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19128         functions.
19129
19130 2015-06-01  Martin Liska  <mliska@suse.cz>
19131
19132         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19133         a function local variable.
19134
19135 2015-06-01  Martin Liska  <mliska@suse.cz>
19136
19137         * alloc-pool.c (create_alloc_pool): Remove.
19138         (empty_alloc_pool): Likewise.
19139         (free_alloc_pool): Likewise.
19140         (free_alloc_pool_if_empty): Likewise.
19141         (pool_alloc): Likewise.
19142         (pool_free): Likewise.
19143         * alloc-pool.h: Remove old declarations.
19144
19145 2015-06-01  Martin Liska  <mliska@suse.cz>
19146
19147         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19148         (ira_create_object): Likewise.
19149         (ira_create_allocno): Likewise.
19150         (ira_create_live_range): Likewise.
19151         (copy_live_range): Likewise.
19152         (ira_finish_live_range): Likewise.
19153         (ira_free_allocno_costs): Likewise.
19154         (finish_allocno): Likewise.
19155         (finish_allocnos): Likewise.
19156         (initiate_prefs): Likewise.
19157         (ira_create_pref): Likewise.
19158         (finish_pref): Likewise.
19159         (finish_prefs): Likewise.
19160         (initiate_copies): Likewise.
19161         (ira_create_copy): Likewise.
19162         (finish_copy): Likewise.
19163         (finish_copies): Likewise.
19164         (finish_prefs): Likewise.
19165
19166 2015-06-01  Martin Liska  <mliska@suse.cz>
19167
19168         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19169         (allocate_and_init_ipcp_value): Likewise.
19170         (ipcp_lattice::add_value): Likewise.
19171         (merge_agg_lats_step): Likewise.
19172         (ipcp_driver): Likewise.
19173         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19174         (ipa_free_all_structures_after_iinln): Likewise.
19175         * ipa-prop.h: Likewise.
19176
19177 2015-06-01  Martin Liska  <mliska@suse.cz>
19178
19179         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19180         pool allocator.
19181         (set_hint_predicate): Likewise.
19182         (inline_summary_alloc): Likewise.
19183         (reset_inline_edge_summary): Likewise.
19184         (reset_inline_summary): Likewise.
19185         (set_cond_stmt_execution_predicate): Likewise.
19186         (set_switch_stmt_execution_predicate): Likewise.
19187         (compute_bb_predicates): Likewise.
19188         (estimate_function_body_sizes): Likewise.
19189         (inline_free_summary): Likewise.
19190
19191 2015-06-01  Martin Liska  <mliska@suse.cz>
19192
19193         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19194         (ipa_edge_duplication_hook): Likewise.
19195         (ipa_free_all_structures_after_ipa_cp): Likewise.
19196         (ipa_free_all_structures_after_iinln): Likewise.
19197
19198 2015-06-01  Martin Liska  <mliska@suse.cz>
19199
19200         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19201         (ipa_profile_generate_summary): Likewise.
19202         (ipa_profile_read_summary): Likewise.
19203         (ipa_profile): Likewise.
19204
19205 2015-06-01  Martin Liska  <mliska@suse.cz>
19206
19207         * tree-ssa-structalias.c (new_var_info): Use new type-based
19208         pool allocator.
19209         (new_constraint): Likewise.
19210         (init_alias_vars): Likewise.
19211         (delete_points_to_sets): Likewise.
19212
19213 2015-06-01  Martin Liska  <mliska@suse.cz>
19214
19215         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19216         (free_strinfo): Likewise.
19217         (pass_strlen::execute): Likewise.
19218
19219 2015-06-01  Martin Liska  <mliska@suse.cz>
19220
19221         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19222         pool allocator.
19223         (vn_reference_insert_pieces): Likewise.
19224         (vn_phi_insert): Likewise.
19225         (visit_reference_op_call): Likewise.
19226         (copy_phi): Likewise.
19227         (copy_reference): Likewise.
19228         (process_scc): Likewise.
19229         (allocate_vn_table): Likewise.
19230         (free_vn_table): Likewise.
19231
19232 2015-06-01  Martin Liska  <mliska@suse.cz>
19233
19234         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19235         pool allocator.
19236         (add_repeat_to_ops_vec): Likewise.
19237         (get_ops): Likewise.
19238         (maybe_optimize_range_tests): Likewise.
19239         (init_reassoc): Likewise.
19240         (fini_reassoc): Likewise.
19241
19242 2015-06-01  Martin Liska  <mliska@suse.cz>
19243
19244         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19245         pool allocator.
19246         (bitmap_set_new): Likewise.
19247         (get_or_alloc_expr_for_constant): Likewise.
19248         (get_or_alloc_expr_for): Likewise.
19249         (phi_translate_1): Likewise.
19250         (compute_avail): Likewise.
19251         (init_pre): Likewise.
19252         (fini_pre): Likewise.
19253
19254 2015-06-01  Martin Liska  <mliska@suse.cz>
19255
19256         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19257         (delete_dep_node): Likewise.
19258         (create_deps_list): Likewise.
19259         (free_deps_list): Likewise.
19260         (sched_deps_init): Likewise.
19261         (sched_deps_finish): Likewise.
19262
19263 2015-06-01  Martin Liska  <mliska@suse.cz>
19264
19265         * regcprop.c (free_debug_insn_changes): Use new type-based
19266         pool allocator.
19267         (replace_oldest_value_reg): Likewise.
19268         (pass_cprop_hardreg::execute): Likewise.
19269
19270 2015-06-01  Martin Liska  <mliska@suse.cz>
19271
19272         * ira-build.c (initiate_cost_vectors): Use new type-based
19273         pool allocator.
19274         (ira_allocate_cost_vector): Likewise.
19275         (ira_free_cost_vector): Likewise.
19276         (finish_cost_vectors): Likewise.
19277
19278 2015-06-01  Martin Liska  <mliska@suse.cz>
19279
19280         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19281         pool allocator.
19282         (free_sched_pools): Likewise.
19283         * sel-sched-ir.h (_list_alloc): Likewise.
19284         (_list_remove): Likewise.
19285
19286 2015-06-01  Martin Liska  <mliska@suse.cz>
19287
19288         * stmt.c (add_case_node): Use new type-based pool allocator.
19289         (expand_case): Likewise.
19290         (expand_sjlj_dispatch_table): Likewise.
19291
19292 2015-06-01  Martin Liska  <mliska@suse.cz>
19293
19294         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19295         (free_bb): Likewise.
19296         (pass_cse_reciprocals::execute): Likewise.
19297
19298 2015-06-01  Martin Liska  <mliska@suse.cz>
19299
19300         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19301         (sra_deinitialize) Likewise.
19302         (create_access_1) Likewise.
19303         (build_accesses_from_assign) Likewise.
19304         (create_artificial_child_access) Likewise.
19305
19306 2015-06-01  Martin Liska  <mliska@suse.cz>
19307
19308         * dse.c (get_group_info):Use new type-based pool allocator.
19309         (dse_step0) Likewise.
19310         (free_store_info) Likewise.
19311         (delete_dead_store_insn) Likewise.
19312         (free_read_records) Likewise.
19313         (record_store) Likewise.
19314         (replace_read) Likewise.
19315         (check_mem_read_rtx) Likewise.
19316         (scan_insn) Likewise.
19317         (dse_step1) Likewise.
19318         (dse_step7) Likewise.
19319
19320 2015-06-01  Martin Liska  <mliska@suse.cz>
19321
19322         * df-scan.c (struct df_scan_problem_data):Use new type-based
19323         pool allocator.
19324         (df_scan_free_internal) Likewise.
19325         (df_scan_alloc) Likewise.
19326         (df_grow_reg_info) Likewise.
19327         (df_free_ref) Likewise.
19328         (df_insn_create_insn_record) Likewise.
19329         (df_mw_hardreg_chain_delete) Likewise.
19330         (df_insn_info_delete) Likewise.
19331         (df_free_collection_rec) Likewise.
19332         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19333         (df_sort_and_compress_mws) Likewise.
19334         (df_ref_create_structure) Likewise.
19335         (df_ref_record) Likewise.
19336
19337 2015-06-01  Martin Liska  <mliska@suse.cz>
19338
19339         * df-problems.c (df_chain_create):Use new type-based pool allocator.
19340         (df_chain_unlink_1) Likewise.
19341         (df_chain_unlink) Likewise.
19342         (df_chain_remove_problem) Likewise.
19343         (df_chain_alloc) Likewise.
19344         (df_chain_free) Likewise.
19345         * df.h (struct dataflow) Likewise.
19346
19347 2015-06-01  Martin Liska  <mliska@suse.cz>
19348
19349         * cselib.c (new_elt_list):Use new type-based pool allocator.
19350         (new_elt_loc_list) Likewise.
19351         (unchain_one_elt_list) Likewise.
19352         (unchain_one_elt_loc_list) Likewise.
19353         (unchain_one_value) Likewise.
19354         (new_cselib_val) Likewise.
19355         (cselib_init) Likewise.
19356         (cselib_finish) Likewise.
19357
19358 2015-06-01  Martin Liska  <mliska@suse.cz>
19359
19360         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19361         (sh_reorg) Likewise.
19362
19363 2015-06-01  Martin Liska  <mliska@suse.cz>
19364
19365         * cfg.c (initialize_original_copy_tables):Use new type-based
19366         pool allocator.
19367         (free_original_copy_tables) Likewise.
19368         (copy_original_table_clear) Likewise.
19369         (copy_original_table_set) Likewise.
19370
19371 2015-06-01  Martin Liska  <mliska@suse.cz>
19372
19373         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19374         pool allocator.
19375         (asan_mem_ref_new) Likewise.
19376         (free_mem_ref_resources) Likewise.
19377
19378 2015-06-01  Martin Liska  <mliska@suse.cz>
19379
19380         * var-tracking.c (variable_htab_free):Use new type-based
19381         pool allocator.
19382         (attrs_list_clear) Likewise.
19383         (attrs_list_insert) Likewise.
19384         (attrs_list_copy) Likewise.
19385         (shared_hash_unshare) Likewise.
19386         (shared_hash_destroy) Likewise.
19387         (unshare_variable) Likewise.
19388         (var_reg_delete_and_set) Likewise.
19389         (var_reg_delete) Likewise.
19390         (var_regno_delete) Likewise.
19391         (drop_overlapping_mem_locs) Likewise.
19392         (variable_union) Likewise.
19393         (insert_into_intersection) Likewise.
19394         (canonicalize_values_star) Likewise.
19395         (variable_merge_over_cur) Likewise.
19396         (dataflow_set_merge) Likewise.
19397         (remove_duplicate_values) Likewise.
19398         (variable_post_merge_new_vals) Likewise.
19399         (dataflow_set_preserve_mem_locs) Likewise.
19400         (dataflow_set_remove_mem_locs) Likewise.
19401         (variable_from_dropped) Likewise.
19402         (variable_was_changed) Likewise.
19403         (set_slot_part) Likewise.
19404         (clobber_slot_part) Likewise.
19405         (delete_slot_part) Likewise.
19406         (loc_exp_insert_dep) Likewise.
19407         (notify_dependents_of_changed_value) Likewise.
19408         (emit_notes_for_differences_1) Likewise.
19409         (vt_emit_notes) Likewise.
19410         (vt_initialize) Likewise.
19411         (vt_finalize) Likewise.
19412
19413 2015-06-01  Martin Liska  <mliska@suse.cz>
19414
19415         * ira-color.c (init_update_cost_records):Use new type-based
19416         pool allocator.
19417         (get_update_cost_record) Likewise.
19418         (free_update_cost_record_list) Likewise.
19419         (finish_update_cost_records) Likewise.
19420         (initiate_cost_update) Likewise.
19421
19422 2015-06-01  Martin Liska  <mliska@suse.cz>
19423
19424         * lra.c (init_insn_regs): Use new type-based pool allocator.
19425         (new_insn_reg) Likewise.
19426         (free_insn_reg) Likewise.
19427         (free_insn_regs) Likewise.
19428         (finish_insn_regs) Likewise.
19429         (init_insn_recog_data) Likewise.
19430         (init_reg_info) Likewise.
19431         (finish_reg_info) Likewise.
19432         (lra_free_copies) Likewise.
19433         (lra_create_copy) Likewise.
19434         (invalidate_insn_data_regno_info) Likewise.
19435
19436 2015-06-01  Martin Liska  <mliska@suse.cz>
19437
19438         * lra-lives.c (free_live_range): Use new type-based pool allocator.
19439         (free_live_range_list) Likewise.
19440         (create_live_range) Likewise.
19441         (copy_live_range) Likewise.
19442         (lra_merge_live_ranges) Likewise.
19443         (remove_some_program_points_and_update_live_ranges) Likewise.
19444         (lra_live_ranges_init) Likewise.
19445         (lra_live_ranges_finish) Likewise.
19446
19447 2015-06-01  Martin Liska  <mliska@suse.cz>
19448
19449         * et-forest.c (et_new_occ): Use new type-based pool allocator.
19450         (et_new_tree): Likewise.
19451         (et_free_tree): Likewise.
19452         (et_free_tree_force): Likewise.
19453         (et_free_pools): Likewise.
19454         (et_split): Likewise.
19455
19456 2015-06-01  Martin Liska  <mliska@suse.cz>
19457
19458         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19459         to header file.
19460         * alloc-pool.h (pool_allocator::pool_allocator): New function.
19461         (pool_allocator::release): Likewise.
19462         (inline pool_allocator::release_if_empty): Likewise.
19463         (inline pool_allocator::~pool_allocator): Likewise.
19464         (pool_allocator::allocate): Likewise.
19465         (pool_allocator::remove): Likewise.
19466
19467 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19468
19469         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19470         in comment.
19471
19472 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19473
19474         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19475         to fusible_ops.
19476         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19477         (arm_macro_fusion_p): Likewise.
19478         (arm_macro_fusion_pair_p): Likewise.
19479
19480 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
19481
19482         * config/aarch64/aarch64-protos.h (tune_params): Rename
19483         fuseable_ops to fusible_ops.
19484         * config/aarch64/aarch64.c (generic_tunings): Rename
19485         fuseable_ops to fusible_ops.
19486         (cortexa53_tunings): Likewise.
19487         (cortexa57_tunings): Likewise.
19488         (thunderx_tunings): Likewise.
19489         (xgene1_tunings): Likewise.
19490         (aarch64_macro_fusion_p): Likewise.
19491         (aarch64_macro_fusion_pair_p): Likewise.
19492
19493 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19494
19495         * config/s390/driver-native.c: New file.
19496         * config/s390/x-native: New file.
19497         * config.host: Add new files for s390.
19498         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19499         and -march=native
19500         * config.gcc: Likewise.
19501         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19502         * config/s390/s390-opts.h (enum processor_type): Ditto.
19503         * config/s390/s390.c (s390_option_override): Catch unhandled
19504         PROCESSOR_NATIVE
19505
19506 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
19507
19508         PR target/65527
19509         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19510         redirection for instrumented calls.
19511         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19512         (append_compiler_options): Append -fcheck-pointer-bounds.
19513         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19514         (chkp_redirect_edge): New.
19515         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19516         (chkp_redirect_edge): New.
19517
19518 2015-06-01  Richard Biener  <rguenther@suse.de>
19519
19520         PR tree-optimization/66280
19521         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19522         def-use walking.
19523
19524 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19525
19526         * config/aarch64/aarch64.md
19527         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19528         logic_shift_imm.
19529
19530 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
19531
19532         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19533         Remove obsolete kludge.
19534
19535 2015-06-01  Richard Biener  <rguenther@suse.de>
19536
19537         * tree-ssa-reassoc.c (get_rank): Simplify.
19538
19539 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19540
19541         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19542         * configure: Regenerated.
19543
19544 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
19545
19546         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19547         issue (add space between string literal and macro).
19548         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19549
19550 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19551
19552         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19553         implict or explicit -fPIE or -fpie.
19554
19555 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
19556
19557         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19558
19559 2015-05-28  DJ Delorie  <dj@redhat.com>
19560
19561         * expmed.c (extract_bit_field_1): Avoid clobbering a
19562         yet-to-be-used base/index register.
19563
19564 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
19565
19566         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19567         (alias_stats): Add num_universal.
19568         (alias_set_subset_of): Special case pointers; be ready for NULL
19569         children.
19570         (alias_sets_conflict_p): Special case pointers; be ready for NULL
19571         children.
19572         (init_alias_set_entry): Break out from ...
19573         (record_alias_subset): ... here; propagate new fields;
19574         allocate children only when really needed.
19575         (get_alias_set): Do less generous pointer globbing.
19576         (dump_alias_stats_in_alias_c): Update statistics.
19577
19578 2015-05-30  Alan Modra  <amodra@gmail.com>
19579
19580         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19581         correct block for use of r12.
19582         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19583
19584 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19585
19586         PR target/66215
19587         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19588         with -mhotpatch=.
19589
19590 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
19591
19592         PR tree-optimization/66142
19593         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19594         virtual phis that feed themselves.
19595
19596 2015-05-29  Richard Biener  <rguenther@suse.de>
19597
19598         PR tree-optimization/66314
19599         * tree-ssa-threadupdate.c (create_block_for_threading): Add
19600         parameter that says which loop the new block belongs to.
19601         (ssa_create_duplicates): Blocks duplicated for the threaded
19602         path belong to the loop of the thread destination.
19603
19604 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19605
19606         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19607         to cleanup-saved-temps.
19608         * doc/sourcebuild.texi (Clean up generated test files): Expand
19609         introduction.
19610         (dg-keep-saved-temps): Document new proc.
19611         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19612         cleanup-saved-temps): Remove.
19613
19614 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
19615
19616         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19617         gcc_AC_CHECK_DECLS.
19618         * configure: Regenerate.
19619
19620 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19621
19622         * config/nios2/linux.h (CPP_SPEC): Define.
19623
19624 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19625
19626         * config/microblaze/linux.h (CPP_SPEC): Define.
19627
19628 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
19629
19630         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19631         -pthread is specified.
19632
19633 2015-05-28  Richard Biener  <rguenther@suse.de>
19634
19635         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19636         (vect_fixup_scalar_cycles_with_patterns): Likewise.
19637         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19638         after pattern recog.
19639         (vect_create_epilog_for_reduction): Properly handle reductions
19640         with patterns.
19641         (vectorizable_reduction): Likewise.
19642         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19643         reduction chains.
19644         (vect_get_constant_vectors): Create the correct number of
19645         initial values for reductions.
19646         (vect_schedule_slp_instance): Handle reduction chains that are
19647         type changing properly.
19648         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19649
19650 2015-05-28  Richard Biener  <rguenther@suse.de>
19651
19652         PR tree-optimization/66142
19653         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19654         values better in memcpy destination handling.  Handle non-aliasing
19655         we discover here.
19656
19657 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
19658
19659         PR target/63810
19660         * config/darwin-c.c (version_components): New global enum.
19661         (parse_version, version_as_legacy_macro)
19662         (version_as_modern_macro, macosx_version_as_macro): New functions.
19663         (version_as_macro): Remove.
19664         (darwin_cpp_builtins): Use new function.
19665
19666 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
19667
19668         * builtins.c (expand_builtin_acc_on_device): Mark parameters
19669         with ATTRIBUTE_UNUSED.
19670
19671 2015-05-28  Julian Brown  <julian@codesourcery.com>
19672
19673         PR libgomp/65742
19674
19675         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19676         sequence for !ACCEL_COMPILER.
19677
19678 2015-05-28  Nick Clifton  <nickc@redhat.com>
19679
19680         * config/rx/rx.c (push_regs): New function.  Extracts code from...
19681         (rx_expand_prologue): ... here.  Use push_regs to push even small
19682         spans of registers.
19683         (pop_regs): New function.
19684         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
19685         registers.
19686
19687 2015-05-28  Richard Biener  <rguenther@suse.de>
19688
19689         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19690         member.
19691         (SLP_INSTANCE_BODY_COST_VEC): Remove.
19692         (vect_update_slp_costs_according_to_vf): Likewise.
19693         (vect_slp_analyze_operations): Update prototype.
19694         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19695         vect_update_slp_costs_according_to_vf, adjust.
19696         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19697         (vect_analyze_slp_cost_1): Likewise.
19698         (vect_analyze_slp_cost): Likewise.  Properly deal with
19699         widening reduction ops.  Commit body costs.
19700         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
19701         cost for loops from here.
19702         (vect_slp_analyze_operations): But do it from here when
19703         the vectorization factor is known and stmts are analyzed.
19704         (vect_bb_vectorization_profitable_p): Simplify.
19705         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19706         (vect_update_slp_costs_according_to_vf): Remove.
19707
19708 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
19709             H.J. Lu  <hongjiu.lu@intel.com>
19710
19711         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19712         (BUILD_CFLAGS): Likewise.
19713         (BUILD_CXXFLAGS): Likewise.
19714         (LINKER): Add @NO_PIE_FLAG@.
19715         (BUILD_LDFLAGS): Likewise.
19716         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19717         --enable-default-pie.
19718         * common.opt (fPIE): Initialize to -1.
19719         (fpie): Likewise.
19720         (no-pie): New option.
19721         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19722         * configure.ac: Add --enable-default-pie.
19723         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
19724         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
19725         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
19726         * gcc.c (NO_PIE_SPEC): New.
19727         (PIE_SPEC): Likewise.
19728         (NO_FPIE1_SPEC): Likewise.
19729         (FPIE1_SPEC): Likewise.
19730         (NO_FPIE2_SPEC): Likewise.
19731         (FPIE2_SPEC): Likewise.
19732         (NO_FPIE2_SPEC): Likewise.
19733         (FPIE_SPEC): Likewise.
19734         (NO_FPIE_SPEC): Likewise.
19735         (NO_FPIC1_SPEC): Likewise.
19736         (FPIC1_SPEC): Likewise.
19737         (NO_FPIC2_SPEC): Likewise.
19738         (FPIC2_SPEC): Likewise.
19739         (NO_FPIC2_SPEC): Likewise.
19740         (FPIC_SPEC): Likewise.
19741         (NO_FPIC_SPEC): Likewise.
19742         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19743         (FPIE1_OR_FPIC1_SPEC): Likewise.
19744         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19745         (FPIE2_OR_FPIC2_SPEC): Likewise.
19746         (NO_FPIE_AND_FPIC_SPEC): Likewise.
19747         (FPIE_OR_FPIC_SPEC): Likewise.
19748         (LD_PIE_SPEC): Likewise.
19749         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
19750         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19751         * config/darwin.h (PIE_SPEC): Renamed to ...
19752         (DARWIN_PIE_SPEC): This.
19753         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19754         * config/darwin9.h (PIE_SPEC): Renamed to ...
19755         (DARWIN_PIE_SPEC): This.
19756         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19757         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19758         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19759         FPIE2_OR_FPIC2_SPEC.
19760         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19761         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19762         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19763         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19764         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19765         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19766         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19767         * config/m32r/m32r.h (ASM_SPEC): Likewise.
19768         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19769         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19770         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19771         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19772         * config/sparc/linux.h (ASM_SPEC): Likewise.
19773         * config/sparc/linux64.h (ASM_SPEC): Likewise.
19774         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19775         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19776         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19777         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19778         * config/sparc/sparc.h (ASM_SPEC): Likewise.
19779         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19780         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19781         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19782         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19783         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19784         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19785         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19786         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19787         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19788         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19789         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19790         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19791         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19792         * config/vax/linux.h (ASM_SPEC): Likewise.
19793         * doc/install.texi: Document --enable-default-pie.
19794         * doc/invoke.texi: Document -no-pie.
19795         * config.in: Regenerated.
19796         * configure: Likewise.
19797
19798 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19799
19800         PR rtl-optimization/66168
19801         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19802         can_move_invariant_reg.
19803
19804 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
19805
19806         PR target/66148
19807         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19808         REG_EQUAL note when doing insert.
19809
19810         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19811         instead of "%d" for 'o' operand.
19812
19813 2015-05-27  Nathan Sidwell  <nathan@acm.org>
19814
19815         PR c++/66270
19816         * tree.c (build_pointer_type_for_mode): Canonical type does not
19817         inherit can_alias_all.
19818         (build_reference_type_for_mode): Likewise.
19819
19820 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19821
19822         * expr.h (array_at_struct_end_p): Move to...
19823         (array_ref_element_size): Likewise.
19824         (component_ref_field_offset): Likewise.
19825         * tree.h (array_ref_element_size): ...here.
19826         (array_at_struct_end_p): Likewise.
19827         (component_ref_field_offset): Likewise.
19828         * expr.c (array_ref_element_size): Move to...
19829         (array_ref_low_bound): Likewise.
19830         (array_at_struct_end_p): Likewise.
19831         (array_ref_up_bound): Likewise.
19832         (component_ref_field_offset): Likewise.
19833         * tree.c (array_ref_element_size): ...here.
19834         (array_ref_low_bound): Likewise.
19835         (array_ref_up_bound): Likewise.
19836         (array_at_struct_end_p): Likewise.
19837         (component_ref_field_offset): Likewise.
19838
19839 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19840             Szabolcs Nagy  <szabolcs.nagy@arm.com>
19841
19842         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19843
19844 2015-05-27  Jason Merrill  <jason@redhat.com>
19845
19846         PR bootstrap/66304
19847         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19848         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19849         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19850
19851 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
19852
19853         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19854         is true.
19855
19856         * statistics.c (statistics_fini_pass): Print pass name.
19857
19858 2015-05-27  Richard Biener  <rguenther@suse.de>
19859
19860         PR tree-optimization/66272
19861         Revert parts of
19862         2014-08-15  Richard Biener  <rguenther@suse.de>
19863
19864         PR tree-optimization/62031
19865         * tree-data-ref.c (dr_analyze_indices): Do not set
19866         DR_UNCONSTRAINED_BASE.
19867         (dr_may_alias_p): All indirect accesses have to go the
19868         formerly DR_UNCONSTRAINED_BASE path.
19869         * tree-data-ref.h (struct indices): Remove
19870         unconstrained_base member.
19871         (DR_UNCONSTRAINED_BASE): Remove.
19872
19873 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
19874
19875         * dwarf2out.c: Remove block_map.
19876         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19877         (gen_lexical_block_die): Same.
19878         (dwarf2out_function_decl): Remove block_map use.
19879         (dwarf2out_c_finalize): Same.
19880         * tree-core.h (struct tree_block): Add die field.
19881         * tree.h (BLOCK_DIE): New.
19882
19883 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19884
19885         PR target/65358
19886         * expr.c (memory_load_overlap): New function.
19887         (emit_push_insn): When pushing partial args to the stack would
19888         clobber the register part load the overlapping part into a pseudo
19889         and put it into the hard reg after pushing.  Change return type
19890         to bool.  Add bool argument.
19891         * expr.h (emit_push_insn): Change return type to bool.
19892         Add bool argument.
19893         * calls.c (expand_call): Cancel sibcall optimization when encountering
19894         partial argument on targets with ARGS_GROW_DOWNWARD and
19895         !STACK_GROWS_DOWNWARD.
19896         (emit_library_call_value_1): Update callsite of emit_push_insn.
19897         (store_one_arg): Likewise.
19898
19899 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
19900
19901         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19902
19903 2015-05-27  Martin Liska  <mliska@suse.cz>
19904
19905         * Makefile.in: Add additional dependencies related to memory report
19906         enhancement.
19907         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19908         * bitmap.c (struct bitmap_descriptor_d): Remove.
19909         (struct loc): Likewise.
19910         (struct bitmap_desc_hasher): Likewise.
19911         (bitmap_desc_hasher::hash): Likewise.
19912         (bitmap_desc_hasher::equal): Likewise.
19913         (get_bitmap_descriptor): Likewise.
19914         (bitmap_register): User new memory descriptor API.
19915         (register_overhead): Likewise.
19916         (bitmap_find_bit): Register nsearches and search_iter statistics.
19917         (struct bitmap_output_info): Remove.
19918         (print_statistics): Likewise.
19919         (dump_bitmap_statistics): Use new memory descriptor.
19920         * bitmap.h (struct bitmap_usage): New class.
19921         * genmatch.c: Extend header file inclusion.
19922         * genpreds.c: Likewise.
19923         * ggc-common.c (struct ggc_usage): New class.
19924         (struct ggc_loc_desc_hasher): Remove.
19925         (ggc_loc_desc_hasher::hash): Likewise.
19926         (ggc_loc_desc_hasher::equal): Likewise.
19927         (struct ggc_ptr_hash_entry): Likewise.
19928         (struct ptr_hash_hasher): Likewise.
19929         (ptr_hash_hasher::hash): Likewise.
19930         (ptr_hash_hasher::equal): Likewise.
19931         (make_loc_descriptor): Likewise.
19932         (ggc_prune_ptr): Likewise.
19933         (dump_ggc_loc_statistics): Use new memory descriptor.
19934         (ggc_record_overhead): Likewise.
19935         (ggc_free_overhead): Likewise.
19936         (final_cmp_statistic): Remove.
19937         (cmp_statistic): Likewise.
19938         (ggc_add_statistics): Liekwise.
19939         (ggc_prune_overhead_list): Likewise.
19940         * hash-map-traits.h: New file.
19941         * hash-map.h (struct default_hashmap_traits): Move the traits to a
19942         separate header file.
19943         * hash-set.h: Pass memory statistics info to ctor.
19944         * hash-table.c (void dump_hash_table_loc_statistics): New function.
19945         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
19946         (hash_table::~hash_table): Register memory release operation.
19947         (hash_table::alloc_entries): Handle memory allocation operation.
19948         (hash_table::expand): Likewise.
19949         * inchash.c (iterative_hash_hashval_t): Move implementation to header
19950         file.
19951         (iterative_hash_host_wide_int): Likewise.
19952         * inchash.h (class hash): Likewise.
19953         * mem-stats-traits.h: New file.
19954         * mem-stats.h: New file.
19955         (mem_location): Add new class.
19956         (mem_usage): Likewise.
19957         (mem_alloc_description): Likewise.
19958         * sese.c: Add new header file inclusision.
19959         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
19960         and hash_set.
19961         * tree-sra.c: Add new header file inclusision.
19962         * vec.c (struct vec_descriptor): Remove.
19963         (hash_descriptor): Likewise.
19964         (struct vec_usage): Likewise.
19965         (struct ptr_hash_entry): Likewise.
19966         (hash_ptr): Likewise.
19967         (eq_ptr): Likewise.
19968         (vec_prefix::register_overhead): Use new memory descriptor API.
19969         (vec_prefix::release_overhead): Likewise.
19970         (add_statistics): Remove.
19971         (dump_vec_loc_statistics): Use new memory descriptor API.
19972         * vec.h (struct vec_prefix): Likewise.
19973         (va_heap::reserve): Likewise.
19974         (va_heap::release): Likewise.
19975         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
19976
19977 2015-05-27  Richard Biener  <rguenther@suse.de>
19978
19979         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
19980         earlier and remove ??? comment.
19981         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
19982         and got called from loop analysis bail out.  Always pass the SLP
19983         node to the vectorizable_* functions.
19984         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
19985         the premature SLP check here.
19986         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
19987         detected SLP stmts.
19988         (vect_detect_hybrid_slp_1): Likewise.
19989
19990 2015-05-26  Jeff Law  <law@redhat.com>
19991
19992         * combine.c (find_split_point): Verify that the shift count is a
19993         constant when choosing (plus (ashift ...)) as a split point.
19994
19995         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
19996         No functional changes.
19997
19998 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
19999
20000         * ipa-polymorphic-call.c
20001         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20002         case when call target is already known.
20003
20004 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
20005
20006         PR target/65979
20007         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20008         take into account the case that operands[1] and operands[2]
20009         are the same register.
20010
20011 2015-05-26  Michael Matz  <matz@suse.de>
20012
20013         PR middle-end/66251
20014
20015         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20016         stores.
20017         (vect_create_vectorized_demotion_stmts): Always set
20018         STMT_VINFO_VEC_STMT, also with SLP.
20019         (vectorizable_store): Handle strided group stores.
20020
20021 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20022
20023         PR target/66049
20024         * config/aarch64/aarch64.md
20025         (*adds_shift_imm_<mode>):  New pattern.
20026         (*subs_shift_imm_<mode>):  Likewise.
20027         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
20028         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20029         (*add_uxt<mode>_shift2): Likewise.
20030         (*add_uxtsi_shift2_uxtw): Likewise.
20031         (*sub_uxt<mode>_shift2): Likewise.
20032         (*sub_uxtsi_shift2_uxtw): Likewise.
20033
20034 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
20035
20036         * config/rs6000/constraints.md (Y, U): Use match_test.
20037
20038 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20039
20040         PR target/52144
20041         * config/arm/arm.c (arm_option_check_internal)
20042         (arm_option_params_internal): Check opts->target_flags to set macros.
20043         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20044         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20045         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20046         (builtin_define): Replaced with def_or_undef_macro.
20047         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20048         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20049         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20050         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20051         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20052         (TARGET_ARM_FEATURE_LDREX_P)
20053         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20054         * config/arm/arm-c.c (def_or_undef_macro): New function.
20055         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20056
20057 2015-05-26  Christian Bruel  <christian.bruel@st.com>
20058
20059         * c-common.h (builtin_define_with_int_value)
20060         (builtin_define_type_sizeof): Declare.
20061         * c-cppbuiltin.c (builtin_define_with_int_value)
20062         (builtin_define_type_sizeof): Externalize.
20063         (builtin_define_std): Cleanup declaration.
20064         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20065         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20066         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20067         (builtin_define, builtin_assert): New macros.
20068
20069 2015-05-26  Richard Biener  <rguenther@suse.de>
20070
20071         PR tree-optimization/66142
20072         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20073         MEM_REFs for the same base address.
20074
20075 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20076
20077         PR ipa/66181
20078         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20079
20080 2015-05-26  Jason Merrill  <jason@redhat.com>
20081
20082         * configure.ac: Set CXXFLAGS for ISL test.
20083         * configure: Regenerate.
20084
20085         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
20086         strstr and basename.
20087         * configure: Regenerate.
20088
20089 2015-05-26  Richard Biener  <rguenther@suse.de>
20090
20091         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20092         X % C -> X & (C - 1) for C being a power-of two to ...
20093         * match.pd: ... patterns.
20094
20095 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
20096
20097         * match.pd (swapped_tcc_comparison): New operator list.
20098         (-A CMP -B): New simplification.
20099         * fold-const.c (fold_comparison): Remove corresponding code.
20100
20101 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20102
20103         * caller-save.c (init_caller_save): Base temporary register numbers
20104         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20105         * cfgloopanal.c (init_set_costs): Likewise.
20106         * dojump.c (prefer_and_bit_test): Likewise.
20107         * expr.c (init_expr_target): Likewise.
20108         * ira.c (setup_prohibited_mode_move_regs): Likewise.
20109         * lower-subreg.c (init_lower_subreg): Likewise.
20110         * postreload.c (reload_cse_regs_1): Likewise.
20111
20112 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20113
20114         * gensupport.h (compute_test_codes): Declare.
20115         * gensupport.c (compute_predicate_codes): Rename to...
20116         (compute_test_codes): ...this.  Generalize error message.
20117         (process_define_predicate): Update accordingly.
20118         * genpreds.c (compute_maybe_allows): Delete.
20119         (add_constraint): Use compute_test_codes to determine whether
20120         something can accept a SUBREG, REG or MEM.
20121
20122 2015-05-26  Torvald Riegel  <triegel@redhat.com>
20123
20124         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20125         'memory model' to align with C++11; fix description of memory orders;
20126         fix a few typos.
20127
20128 2015-05-26  Richard Biener  <rguenther@suse.de>
20129
20130         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20131         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
20132         detect whether we apply SLP.  Remove call to
20133         vect_update_slp_costs_according_to_vf.
20134         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20135         vect_update_slp_costs_according_to_vf from here.  Dispatch
20136         to vect_slp_analyze_operations to analyze SLP stmts.
20137         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20138         unused bb_vec_info parameter, adjust assert.
20139         (vect_slp_analyze_operations): Pass in the slp instance tree
20140         instead of bb_vec_info.
20141         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20142         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20143
20144 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20145
20146         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20147         Q_REGS.  Expand comment.
20148         (REG_CLASS_NAMES): Ditto.
20149         (REG_CLASS_CONTENTS): Ditto.
20150
20151 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
20152
20153         PR target/66274
20154         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20155         when LEGACY_INT_REGNO_P is processed.
20156
20157 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
20158
20159         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20160
20161 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20162
20163         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20164         register if not marked dead/unused, before return.
20165
20166 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20167
20168         PR lto/66180
20169         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20170         is set; check for assembler name at LTO time.
20171         (type_in_anonymous_namespace): Remove hacks, check that all
20172         anonymous types are called "<anon>"
20173         (odr_type_p): Simplify; add check for "<anon>"
20174         (odr_subtypes_equivalent): Add odr_type_p check.
20175         * tree.c (need_assembler_name_p): Even anonymous namespace needs
20176         assembler name.
20177
20178 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20179
20180         * ipa-utils.h (method_class_type): Remove.
20181         * cgraphunit.c (walk_polymorphic_call_targets): Use
20182         TYPE_METHOD_BASETYPE.
20183         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20184         on main variants only.
20185         (method_class_type): Remove.
20186         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20187         (build_type_inheritance_graph): Likewise.
20188         * ipa-icf.c (sem_function::equals_wpa): Likewise.
20189         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20190         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20191
20192 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
20193
20194         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20195         is_typedef_decl, typedef_variant_p): Constify.
20196         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20197         is_typedef_decl, typedef_variant_p): Constify.
20198
20199 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20200
20201         * defaults.h (gen_tablejump): New function.
20202         (HAVE_tablejump): Add default value.
20203         * expr.c: Adjust.
20204         * stmt.c: Likewise.
20205
20206 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20207
20208         * defaults.h (gen_store_multiple): New function.
20209         (HAVE_store_multiple): Add default value.
20210         * expr.c (move_block_from_reg): Adjust.
20211
20212 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20213
20214         * defaults.h (gen_load_multiple): New function.
20215         (HAVE_load_multiple): Add default value.
20216         * expr.c (move_block_to_reg): Adjust.
20217
20218 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20219
20220         * defaults.h (gen_mem_signal_fence): New function.
20221         (HAVE_mem_signal_fence): Add default value.
20222         * optabs.c: Adjust.
20223
20224 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20225
20226         * defaults.h (gen_memory_barrier): New function.
20227         (HAVE_memory_barrier): Add default value.
20228         * optabs.c: Adjust.
20229
20230 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20231
20232         * defaults.h (gen_mem_thread_fence): New function.
20233         (HAVE_mem_thread_fence): Add default definition.
20234         * optabs.c: Adjust.
20235
20236 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20237
20238         * combine.c (find_split_point): Check the value of HAVE_lo_sum
20239         instead of if it is defined.
20240         (combine_simplify_rtx): Likewise.
20241         * lra-constraints.c (process_address_1): Likewise.
20242         * config/darwin.c: Adjust.
20243         * genconfig.c (main): Always define HAVE_lo_sum.
20244
20245 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20246
20247         * genmatch.c (parser::parse_operation): Reject expanding
20248         operator-list inside 'for'.
20249
20250 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20251
20252         * genmatch.c (parser::parse_for): Reject iterator if used as
20253         operator-list.
20254
20255 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20256
20257         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20258         after end of id-list.
20259
20260 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20261
20262         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20263         we do not try to compute canonical type for type that does not need
20264         alias set.
20265         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20266         FUNCITON_TYPE.
20267         * tree.h (type_with_alias_set_p): New.
20268
20269 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
20270
20271         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
20272         function attributes.
20273         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20274
20275 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
20276
20277         * Makefile.in (check_gcc_parallelize): Delete.
20278         (lang_checks_parallelized): Update comment.
20279
20280 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
20281
20282         PR rtl-optimization/66237
20283         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20284         location of an "as_a" cast.
20285
20286 2015-05-22  Jeff Law  <law@redhat.com>
20287
20288         * config/pa/pa.md (non-canonical shift-add insns): Remove.
20289         (peepholes with non-canonical RTL sources): Remove.
20290         (peepholes for indexed stores of FP regs in integer modes): Match and
20291         generate canonical RTL.
20292
20293 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20294
20295         PR tree-optimization/63387
20296         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20297         ((x ord x) & (y ord y) -> (x ord y),
20298         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20299         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20300         vectors like scalars.
20301
20302 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20303
20304         * convert.c (convert_to_integer, convert_to_vector): Include the
20305         types in the error message.
20306
20307 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
20308
20309         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20310         simplifications.
20311
20312 2015-05-22  Jeff Law  <law@redhat.com>
20313
20314         * config/pa/pa.md (integer_indexed_store splitters): Use
20315         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
20316         insns -- adjusting the constant 2nd operand accordingly.
20317
20318         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20319         (plus (ashift X log2) Y) if it is a split point.
20320
20321         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20322         out of hppa_legitimize_address to handle both forms of a multiply
20323         by 2, 4 or 8.
20324         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20325         Always generate the ASHIFT variant as the result is not directly
20326         used in a MEM.  Update comments and refactor slightly to improve
20327         readability.
20328
20329 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20330
20331         PR target/65491
20332         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20333         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
20334         (aarch64_composite_type_p): Return false if given type and mode are
20335         for a short vector.
20336
20337 2015-05-22  Richard Biener  <rguenther@suse.de>
20338
20339         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20340         member.
20341         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20342         patterns when determining whether SLP is pure.
20343         (vect_is_slp_reduction): Remove check for pattern stmts.
20344         (vect_is_simple_reduction_1): Remove dead code.
20345         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20346         (vect_get_and_check_slp_defs): Pass in the stmt number.
20347         Allow the first def in a reduction to be not a pattern stmt when
20348         the rest of the stmts def are patterns.
20349         (vect_build_slp_tree_1): Allow tcc_expression codes like
20350         SAD_EXPR and DOT_PROD_EXPR.
20351         (vect_build_slp_tree): Adjust.
20352         (vect_analyze_slp): Refactor and move BB vect error message ...
20353         (vect_slp_analyze_bb_1): ... here.
20354
20355 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
20356
20357         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20358         for CSWTCH temporary.
20359
20360 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20361
20362         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20363         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
20364         unknown unspecs.
20365
20366 2015-05-22  Richard Biener  <rguenther@suse.de>
20367
20368         PR tree-optimization/66251
20369         * tree-vect-stmts.c (vectorizable_conversion): Properly
20370         set STMT_VINFO_VEC_STMT even for the SLP case.
20371
20372 2015-05-22  Marek Polacek  <polacek@redhat.com>
20373
20374         * doc/extend.texi: Use @pxref instead of @xref.
20375
20376 2015-05-22  hiraditya  <hiraditya@msn.com>
20377
20378         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20379         redundant if.
20380
20381 2015-05-22  Richard Biener  <rguenther@suse.de>
20382
20383         PR tree-optimization/65701
20384         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20385         Move peeling cost models into one place.  Peel for alignment
20386         for single loads only if an aligned load is cheaper than
20387         an unaligned load.
20388
20389 2015-05-22  Marek Polacek  <polacek@redhat.com>
20390
20391         PR c/47043
20392         * doc/extend.texi (Enumerator Attributes): New section.
20393         Document syntax of enumerator attributes.
20394
20395 2015-05-22  Richard Biener  <rguenther@suse.de>
20396
20397         * tree-vect-loop.c (get_reduction_op): New function.
20398         (vect_model_reduction_cost): Use it, add reduc_index parameter.
20399         Make ready for BB reductions.
20400         (vect_create_epilog_for_reduction): Use get_reduction_op.
20401         (vectorizable_reduction): Init reduc_index to a valid value.
20402         Adjust vect_model_reduction_cost call.
20403         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20404         operand for reduction defaults.  Add SAD_EXPR support.
20405         Assert we have a neutral op for SLP reductions.
20406         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20407         walking pattern stmt ops only recurse to SSA names.
20408
20409 2015-05-22  Richard Biener  <rguenther@suse.de>
20410
20411         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20412         assert with guard, remove check on detected reduction.
20413         (vect_recog_sad_pattern): Likewise.
20414         (vect_recog_widen_sum_pattern): Likewise.
20415
20416 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20417
20418         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20419         __always_inline__ attribute.
20420         (vaesdq_u8): Likewise.
20421         (vaesmcq_u8): Likewise.
20422         (vaesimcq_u8): Likewise.
20423         (vsha1cq_u32): Likewise.
20424         (vsha1mq_u32): Likewise.
20425         (vsha1pq_u32): Likewise.
20426         (vsha1h_u32): Likewise.
20427         (vsha1su0q_u32): Likewise.
20428         (vsha1su1q_u32): Likewise.
20429         (vsha256hq_u32): Likewise.
20430         (vsha256h2q_u32): Likewise.
20431         (vsha256su0q_u32): Likewise.
20432         (vsha256su1q_u32): Likewise.
20433         (vmull_p64): Likewise.
20434         (vmull_high_p64): Likewise.
20435
20436 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20437
20438         * final.c (final_scan_insn): Don't check HAVE_peephole with the
20439         preprocessor.
20440         * output.h: Likewise.
20441         * genconfig.c (main): Alwways define HAVE_peephole.
20442         * genpeep.c: Don't emit checks of HAVE_peephole.
20443
20444 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20445
20446         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20447         check HAVE_conditional_move with the preprocessor.
20448
20449 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20450
20451         * genconfig.c (main): Always define HAVE_conditional_move.
20452         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20453         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20454         is defined.
20455
20456 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20457
20458         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20459         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20460         and FRAME_POINTER_REGNUM with the preprocessor.
20461
20462 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20463
20464         * defaults.h: Add default for STACK_PUSH_CODE.
20465         * expr.c: Don't redefine STACK_PUSH_CODE.
20466         * recog.c: Likewise.
20467
20468 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20469
20470         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20471         sched-deps.c: Use if instead of preprocessor checks with
20472         STACK_GROWS_DOWNWARD.
20473
20474 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20475
20476         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20477         is defined.
20478         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20479         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20480         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20481         * doc/tm.texi: Regenerate.
20482
20483 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20484
20485         PR target/66232
20486         * config/i386/constraints.md (Bg): New constraint for GOT memory
20487         operand.
20488         * config/i386/i386.md (*call_got_x32): New pattern.
20489         (*call_value_got_x32): Likewise.
20490         * config/i386/predicates.md (GOT_memory_operand): New predicate.
20491
20492 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
20493
20494         PR tree-optimization/66233
20495         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20496         Simplify.
20497
20498 2015-05-21  Jeff Law  <law@redhat.com>
20499
20500         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20501         than MULT for shadd sequences.
20502
20503 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
20504
20505         * alias.c (alias_stats): New static var.
20506         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20507         (dump_alias_stats_in_alias_c): New function.
20508         * alias.h (dump_alias_stats_in_alias_c): Declare.
20509         * tree-ssa-alias.c (dump_alias_stats): Call it.
20510
20511 2015-05-08  Michael Matz  <matz@suse.de>
20512
20513         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20514         to strided_p.
20515         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20516         (STMT_VINFO_STRIDED_P): ... this.
20517         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20518         (vect_verify_datarefs_alignment): Likewise.
20519         (vect_enhance_data_refs_alignment): Likewise.
20520         (vect_analyze_data_ref_access): Likewise.
20521         (vect_analyze_data_refs): Accept strided stores.
20522         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20523         (vect_model_load_cost): Adjust for macro rename.
20524         (vectorizable_mask_load_store): Likewise.
20525         (vectorizable_load): Likewise.
20526         (vectorizable_store): Open code strided stores.
20527
20528 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20529
20530         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20531         Document sqrt_insn.
20532
20533 2015-05-21  Richard Biener  <rguenther@suse.de>
20534
20535         PR c++/66211
20536         * match.pd: Guard pattern optimzing (int)(float)int
20537         conversions to apply only on GIMPLE.
20538
20539 2015-05-21  Jeff Law  <law@redhat.com>
20540
20541         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20542         multiply-accumulate/shift-add insn generation.
20543
20544 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20545
20546         PR target/54236
20547         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20548         operands[1] are the same.
20549
20550 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
20551
20552         PR middle-end/66221
20553         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20554         build_distinct_type_copy to copy bounds.
20555
20556 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
20557
20558         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20559         Change to unsigned int.
20560
20561 2015-05-20  Jeff Law  <law@redhat.com>
20562
20563         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20564         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20565         (pa_shadd_constant_p): Allow constants for shadd insns rather
20566         than valid scaling constants for memory addresses.
20567         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20568         * config/pa/predicates.md (mem_shadd_operand): New predicate.
20569         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20570         (shift-add insns using ASHIFT): New patterns.
20571
20572 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
20573
20574         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20575         feasible.
20576         (fix_up_fall_thru_edges): Likewise.
20577         (fix_crossing_conditional_branches): Likewise. Promote jump targets
20578         from to rtx_insn to rtx_code_label where feasible.
20579         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20580         gen_move_insn (returned type changed to rtx_insn).
20581         * builtins.c (expand_errno_check): Fix arguments of
20582         do_compare_rtx_and_jump (now expects rtx_code_label).
20583         (expand_builtin_acc_on_device): Likewise.
20584         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20585         invert_jump (now exprects rtx_jump_insn).
20586         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20587         (construct_init_block): Use rtx_code_label.
20588         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20589         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20590         calling redirect_jump.
20591         (patch_jump_insn): Likewise.
20592         (redirect_branch_edge): Likewise.
20593         (force_nonfallthru_and_redirect): Likewise.
20594         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20595         when suitable.
20596         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20597         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20598         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20599         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20600         to store the value retured by gen_label_rtx.
20601         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20602         rtx_jump_insn.
20603         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20604         (split_branches): Fix calls of redirect_jump.
20605         * dojump.c (jumpifnot): Promote argument type from rtx to
20606         rtx_code_label.
20607         (jumpifnot_1): Likewise.
20608         (jumpif): Likewise.
20609         (jumpif_1): Likewise.
20610         (do_jump_1): Likewise.
20611         (do_jump): Likewise. Use rtx_code_label when feasible.
20612         (do_jump_by_parts_greater_rtx): Likewise.
20613         (do_jump_by_parts_zero_rtx): Likewise.
20614         (do_jump_by_parts_equality_rtx): Likewise.
20615         (do_compare_rtx_and_jump): Likewise.
20616         * dojump.h: Update function prototypes.
20617         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20618         returns rtx_insn).
20619         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20620         rtx_jump_insn.
20621         (emit_label_before): Likewise.
20622         (emit_jump_insn_after_noloc): Likewise.
20623         (emit_jump_insn_after_setloc): Likewise.
20624         (emit_jump_insn_after): Likewise
20625         (emit_jump_insn_before_setloc): Likewise.
20626         (emit_jump_insn_before): Likewise.
20627         (emit_label_before): Promote return type to rtx_code_label.
20628         (emit_label): Likewise.
20629         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20630         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20631         gen_move_insn.
20632         (emit_stack_restore): Likewise.
20633         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20634         (do_cmp_and_jump): Likewise.
20635         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20636         from rtx to rtx_code_label.
20637         (gen_move_insn_uncast): New function.
20638         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20639         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20640         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20641         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20642         invert_jump_1 and redirect_jump_1.
20643         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20644         do_compare_rtx_and_jump.
20645         (expand_addsub_overflow): Likewise.
20646         (expand_neg_overflow): Likewise.
20647         (expand_mul_overflow): Likewise.
20648         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20649         return value of gen_move_insn.
20650         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20651         * loop-doloop.c (add_test): Use rtx_code_label.
20652         (doloop_modify): Likewise.
20653         (doloop_optimize): Likewise.
20654         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20655         * lra-constraints.c (emit_spill_move): Remove cast of value returned
20656         by gen_move_insn.
20657         (inherit_reload_reg): Add cast when calling dump_insn_slim.
20658         (split_reg): Likewise.
20659         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20660         gen_move_insn.
20661         * optabs.c (expand_binop_directly): Remove casts of values returned by
20662         maybe_gen_insn.
20663         (expand_unop_direct): Likewise.
20664         (expand_abs): Likewise.
20665         (maybe_emit_unop_insn): Likewise.
20666         (maybe_gen_insn): Promote return type to rtx_insn.
20667         * optabs.h: Update prototype of maybe_gen_insn.
20668         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20669         redundant cast.
20670         * recog.c (struct peep2_insn_data): Promote type of insn field to
20671         rtx_insn.
20672         (peep2_reinit_state): Use NULL instead of NULL_RTX.
20673         (peep2_attempt): Remove casts of insn in peep2_insn_data.
20674         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20675         * recog.h (struct insn_gen_fn): Promote return types of function
20676         pointers and operator ().from rtx to rtx_insn.
20677         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20678         (fill_eager_delay_slots): Likewise.
20679         (relax_delay_slots): Likewise.
20680         (make_return_insns): Likewise.
20681         (dbr_schedule): Likewise.
20682         (optimize_skips): Likewise.
20683         (reorg_redirect_jump): Likewise.
20684         (fill_slots_from_thread): Likewise.
20685         * reorg.h: Update prototypes.
20686         * resource.c (find_dead_or_set_registers): Use dyn_cast to
20687         rtx_jump_insn instead of check.  Use it's jump_target method.
20688         * rtl.h (rtx_jump_insn::jump_label): Define new method.
20689         (rtx_jump_insn::jump_target): Define new method.
20690         (rtx_jump_insn::set_jump_target): Define new method.
20691         * rtlanal.c (tablejump_p): Promote type of one local variable.
20692         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20693         (sched_analyze_insn): Likewise.
20694         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20695         (print_insn): Likewise.
20696         * stmt.c (label_rtx): Promote return type to rtx_insn.
20697         (force_label_rtx): Likewise.
20698         (jump_target_rtx): Define new function.
20699         (expand_label): Use it, get rid of one cast.
20700         (expand_naked_return): Promote rtx to rtx_code_label.
20701         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20702         (expand_case): Use rtx_code_label instread of rtx where feasible.
20703         (expand_sjlj_dispatch_table): Likewise.
20704         (emit_case_nodes): Likewise.
20705         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
20706         * store-motion.c (insert_store): Make use of new return type of
20707         gen_move_insn and remove a cast.
20708         (replace_store_insn): Likewise.
20709
20710 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
20711
20712         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20713         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20714
20715 2015-05-20  Jeff Law  <law@redhat.com>
20716
20717         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20718         dispose of the jump thread path when the jump threading
20719         opportunity is cancelled.
20720
20721 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20722
20723         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20724         when printing the caret character.
20725
20726 2015-05-20  Marek Polacek  <polacek@redhat.com>
20727
20728         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20729
20730 2015-05-20  Marek Polacek  <polacek@redhat.com>
20731
20732         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20733         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20734         * gimple-fold.c (canonicalize_bool): Likewise.
20735         (same_bool_result_p): Likewise.
20736         * tree-if-conv.c (parse_predicate): Likewise.
20737
20738 2015-05-20  Marek Polacek  <polacek@redhat.com>
20739
20740         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20741         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20742
20743 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20744
20745         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20746         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20747         values.
20748
20749 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
20750
20751         * config/mips/mips.h (micromips_globals): Declare.
20752
20753 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
20754
20755         * timevar.def (TV_INITIALIZE_RTL): New.
20756         * toplev.c (initialize_rtl): Use an auto_timevar to account this
20757         function's time to TV_INITIALIZE_RTL.
20758
20759 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20760
20761         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20762         gimple_build_nop calls.
20763         (chkp_find_bounds_for_elem): Likewise.
20764         (chkp_get_zero_bounds): Likewise.
20765         (chkp_get_none_bounds): Likewise.
20766         (chkp_get_bounds_by_definition): Likewise.
20767         (chkp_generate_extern_var_bounds): Likewise.
20768         (chkp_get_bounds_for_decl_addr): Likewise.
20769         (chkp_get_bounds_for_string_cst): Likewise.
20770
20771 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
20772
20773         PR tree-optimization/65447
20774         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20775         (dump_use, dump_uses): Support to dump sub use.
20776         (record_use): New parameters to support sub use.  Remove call to
20777         dump_use.
20778         (record_sub_use, record_group_use): New functions.
20779         (compute_max_addr_offset, split_all_small_groups): New functions.
20780         (group_address_uses, rewrite_use_address): New functions.
20781         (strip_offset): New declaration.
20782         (find_interesting_uses_address): Call record_group_use.
20783         (add_candidate): New assertion.
20784         (infinite_cost_p): Move definition forward.
20785         (add_costs): Check INFTY cost and return immediately.
20786         (get_computation_cost_at): Clear setup cost and dependent bitmap
20787         for sub uses.
20788         (determine_use_iv_cost_address): Compute cost for sub uses.
20789         (rewrite_use_address_1): Rename from old rewrite_use_address.
20790         (free_loop_data): Free sub uses.
20791         (tree_ssa_iv_optimize_loop): Call group_address_uses.
20792
20793 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20794             Jim Wilson  <jim.wilson@linaro.org>
20795
20796         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20797         new  fields loadv and storev.
20798         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20799         Initialize loadv and storev.
20800         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20801         (cortexa53_extra_costs): Likewise.
20802         (cortexa57_extra_costs): Likewise.
20803         (xgene1_extra_costs): Likewise.
20804         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20805         rtx_costs.
20806
20807 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20808
20809         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20810          storev.
20811         (cortexa8_extra_costs): Likewise.
20812         (cortexa5_extra_costs): Likewise.
20813         (cortexa7_extra_costs): Likewise.
20814         (cortexa12_extra_costs): Likewise.
20815         (cortexa15_extra_costs): Likewise.
20816         (v7m_extra_costs): Likewise.
20817
20818 2015-05-20  Jeff Law  <law@redhat.com>
20819
20820         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20821         instead of open-coded version.  Also delete the jump thread created
20822         within this function.
20823
20824 2015-05-20  Alan Modra  <amodra@gmail.com>
20825
20826         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20827         stack adjusting insn.  Formatting.
20828         (rs6000_emit_prologue): Track stack adjusting insn, and use of
20829         r12.  If possible, emit first -fsplit-stack arg pointer insn
20830         before stack adjust.  Don't use r12 to save cr if split-stack.
20831
20832 2015-05-20  Alan Modra  <amodra@gmail.com>
20833
20834         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20835         Define.
20836         (rs6000_supports_split_stack): New function.
20837         * gcc/config/rs6000/rs6000.c (machine_function): Add
20838         split_stack_arg_pointer.
20839         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20840         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20841         rather than virtual_incoming_args_rtx.
20842         (rs6000_va_start): Likewise.
20843         (split_stack_arg_pointer_used_p): New function.
20844         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20845         (morestack_ref): New var.
20846         (gen_add3_const, rs6000_expand_split_stack_prologue,
20847         rs6000_internal_arg_pointer, rs6000_live_on_entry,
20848         rs6000_split_stack_space_check): New functions.
20849         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20850         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20851         (UNSPECV_SPLIT_STACK_RETURN): Define.
20852         (split_stack_prologue, load_split_stack_limit,
20853         load_split_stack_limit_di, load_split_stack_limit_si,
20854         split_stack_return, split_stack_space_check): New expands and insns.
20855         * gcc/config/rs6000/rs6000-protos.h
20856         (rs6000_expand_split_stack_prologue): Declare.
20857         (rs6000_split_stack_space_check): Declare.
20858
20859 2015-05-20  Alan Modra  <amodra@gmail.com>
20860
20861         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20862         (direct_return): Test vrsave_size rather than vrsave_mask.
20863         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
20864         (rs6000_emit_epilogue): Likewise.
20865
20866 2015-05-20  Alan Modra  <amodra@gmail.com>
20867
20868         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20869         when not saving registers.
20870         (debug_stack_info): Adjust to omit printing unused offsets,
20871         as before.
20872         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20873         expression.
20874
20875 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20876
20877         PR c++/65835
20878         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20879         value_type to const char *.
20880
20881 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
20882
20883         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20884         to build a biarch toolchain again.
20885
20886 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
20887
20888         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20889         or implicit declarations.
20890         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20891         into it.
20892         (get_odr_type): Check type has linkage before adding bases.
20893         (register_odr_type): Check that type has linkage before adding it.
20894         (type_known_to_have_no_deriavations_p): Rename to ..
20895         (type_known_to_have_no_derivations_p): This one.
20896         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20897         (type_known_to_have_no_derivations_p): This one.
20898         * ipa-polymorphic-call.c
20899         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20900         type has linkage.
20901
20902 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20903
20904         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20905         (layout_type): Use RECORD_OR_UNION_TYPE_P.
20906
20907 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20908
20909         * config/s390/s390.c (s390_vector_bool_type_p): New function.
20910         (s390_invalid_binary_op): New function.
20911         (TARGET_INVALID_BINARY_OP): Define macro.
20912
20913 2015-05-19  David Sherwood  <david.sherwood@arm.com>
20914
20915         * loop-invariant.c (create_new_invariant): Don't calculate address cost
20916         if mode is not a scalar integer.
20917         (get_inv_cost): Increase computational cost for unused invariants.
20918
20919 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20920
20921         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
20922         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
20923         * config/s390/s390-builtin-types.def: New file.
20924         * config/s390/s390-builtins.def: New file.
20925         * config/s390/s390-builtins.h: New file.
20926         * config/s390/s390-c.c: New file.
20927         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20928         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20929         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20930         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20931         prototypes.
20932         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20933         Include.
20934         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20935         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20936         variable definitions.
20937         (s390_const_operand_ok): New function.
20938         (s390_expand_builtin): Rewrite.
20939         (s390_init_builtins): New function.
20940         (s390_handle_vectorbool_attribute): New function.
20941         (s390_attribute_table): Add s390_vector_bool attribute.
20942         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
20943         (s390_branch_condition_mask): Generate masks for new modes.
20944         (s390_expand_vec_compare_cc): New function.
20945         (s390_mangle_type): Add mangling for vector bool types.
20946         (enum s390_builtin): Remove.
20947         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
20948         efpc builtins.
20949         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
20950         s390_cpu_cpp_builtins.
20951         (REGISTER_TARGET_PRAGMAS): New macro.
20952         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
20953         (insn_cmp mode attribute): Add new CC modes.
20954         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
20955         (lcbb): New pattern definition.
20956         * config/s390/s390intrin.h: Include vecintrin.h.
20957         * config/s390/t-s390: New file.
20958         * config/s390/vecintrin.h: New file.
20959         * config/s390/vector.md: Include vx-builtins.md.
20960         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
20961         support.
20962
20963 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20964
20965         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
20966         CCVFHE.
20967         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
20968         (s390_select_ccmode): Likewise.
20969         (s390_canonicalize_comparison): Swap operands if necessary.
20970         (s390_expand_vec_compare_scalar): Expand DFmode compare using
20971         single element vector instructions.
20972         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
20973         (s390_branch_condition_mask): Generate CC masks for the new modes.
20974         * config/s390/s390.md (v0, vf, vd): New mode attributes.
20975         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
20976         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
20977         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
20978         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
20979         (*extend<DSF:mode><BFP:mode>2): New insn definition.
20980         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
20981         (extend<DSF:mode><BFP:mode>2): Turn into expander.
20982         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
20983         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
20984         (sqrt<mode>2): Add vector instruction.
20985
20986 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20987
20988         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
20989         constraints.
20990         * config/s390/predicates.md (const0_operand, constm1_operand)
20991         (constable_operand): Accept vector operands.
20992         * config/s390/s390-modes.def: Add supported vector modes.
20993         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
20994         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
20995         (s390_bytemask_vector_p, s390_expand_vec_strlen)
20996         (s390_expand_vec_compare, s390_expand_vcond)
20997         (s390_expand_vec_init): Add prototypes.
20998         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
20999         (s390_vector_mode_supported_p): New function.
21000         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21001         (s390_contiguous_bitmask_vector_p): New function.
21002         (s390_bytemask_vector_p): New function.
21003         (s390_split_ok_p): Vector regs don't work either.
21004         (regclass_map): Add VEC_REGS.
21005         (s390_legitimate_constant_p): Handle vector constants.
21006         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21007         (legitimate_reload_vector_constant_p): New function.
21008         (s390_preferred_reload_class): Handle CONST_VECTOR.
21009         (s390_reload_symref_address):  Likewise.
21010         (s390_secondary_reload): Vector memory instructions only support
21011         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
21012         (s390_emit_ccraw_jump): New function.
21013         (s390_expand_vec_strlen): New function.
21014         (s390_expand_vec_compare): New function.
21015         (s390_expand_vcond): New function.
21016         (s390_expand_vec_init): New function.
21017         (s390_dwarf_frame_reg_mode): New function.
21018         (print_operand): Handle addresses with 'O' and 'R' constraints.
21019         (NR_C_MODES, constant_modes): Add vector modes.
21020         (s390_output_pool_entry): Handle vector constants.
21021         (s390_hard_regno_mode_ok): Handle vector registers.
21022         (s390_class_max_nregs): Likewise.
21023         (s390_cannot_change_mode_class): New function.
21024         (s390_invalid_arg_for_unprototyped_fn): New function.
21025         (s390_function_arg_vector): New function.
21026         (s390_function_arg_float): Remove size variable.
21027         (s390_pass_by_reference): Handle vector arguments.
21028         (s390_function_arg_advance): Likewise.
21029         (s390_function_arg): Likewise.
21030         (s390_return_in_memory): Vector values are returned in a VR if
21031         possible.
21032         (s390_function_and_libcall_value): Handle vector arguments.
21033         (s390_gimplify_va_arg): Likewise.
21034         (s390_call_saved_register_used): Consider the arguments named.
21035         (s390_conditional_register_usage): Disable v16-v31 for non-vec
21036         targets.
21037         (s390_preferred_simd_mode): New function.
21038         (s390_support_vector_misalignment): New function.
21039         (s390_vector_alignment): New function.
21040         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21041         (TARGET_VECTOR_MODE_SUPPORTED_P)
21042         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21043         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21044         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21045         (TARGET_VECTOR_ALIGNMENT): Define target macro.
21046         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21047         (FIRST_PSEUDO_REGISTER): Increase value.
21048         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21049         (VECTOR_REG_P): Define macros.
21050         (FIXED_REGISTERS, CALL_USED_REGISTERS)
21051         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21052         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21053         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21054         Add vector registers.
21055         (CANNOT_CHANGE_MODE_CLASS): Call C function.
21056         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21057         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21058         memory.
21059         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21060         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21061         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21062         (VR*_REGNUM): New constants.
21063         (ALL): New mode iterator.
21064         (INTALL): Remove mode iterator.
21065         Include vector.md.
21066         (movti): Implement TImode moves for VRs.
21067         Disable TImode splitter for VR targets.
21068         Implement splitting TImode GPR<->VR moves.
21069         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21070         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21071         reload<mode>_la_in, reload<mode>_la_out.
21072         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21073         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21074         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21075         (mov<mode> SF SD): Prefer lder, lde for loading.
21076         Add lrl and strl instructions.
21077         Add vector instructions.
21078         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21079         Call s390_expand_vec_strlen on z13.
21080         (*cc_to_int): Change predicate to nonimmediate_operand.
21081         (addti3): Rename to *addti3.  New expander.
21082         (subti3): Rename to *subti3.  New expander.
21083         * config/s390/vector.md: New file.
21084
21085 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21086
21087         * common/config/s390/s390-common.c (processor_flags_table): Add
21088         z13.
21089         * config.gcc: Add z13.
21090         * config/s390/s390-opts.h (enum processor_type): Add
21091         PROCESSOR_2964_Z13.
21092         * config/s390/s390.c (s390_adjust_priority): Check for
21093         PROCESSOR_2964_Z13.
21094         (s390_reorg): Likewise.
21095         (s390_sched_reorder): Likewise.
21096         (s390_sched_variable_issue): Likewise.
21097         (s390_loop_unroll_adjust): Likewise.
21098         (s390_option_override): Likewise. Default to -mvx when available.
21099         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21100         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21101         (TARGET_VX_ABI): Define macros.
21102         macros.
21103         (TARGET_DEFAULT): Add MASK_OPT_VX.
21104         * config/s390/s390.md ("cpu" attribute): Add z13.
21105         ("cpu_facility" attribute): Add vec.
21106         * config/s390/s390.opt (processor_type): Add z13.
21107         (mvx): New options.
21108         * doc/invoke.texi: Add z13 option for -march.
21109
21110 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21111
21112         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21113         mode check to make sure that only scalar integer values are
21114         accepted.
21115
21116 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
21117
21118         * tree.c (verify_type_variant): Fix #undef.
21119         (gimple_canonical_types_compatible_p): Move here from lto.c
21120         (verify_type): Verify TYPE_CANONICAL compatibility.
21121         * tree.h (gimple_canonical_types_compatible_p): Declare.
21122
21123 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21124
21125         PR middle-end/66199
21126         * tree.h (OMP_TEAMS_COMBINED): Define.
21127         * gimplify.c (enum gimplify_omp_var_data): Add
21128         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21129         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21130         (omp_notice_variable): Accept both ORT_TEAMS
21131         and ORT_COMBINED_TEAMS.  Don't recurse if
21132         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21133         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21134         GOVD_FIRSTPRIVATE.
21135         (omp_no_lastprivate): New function.
21136         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21137         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21138         notice_outer and set appropriate bits, otherwise make
21139         sure default(none) combined constructs won't complain.
21140         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21141         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21142         omp_no_lastprivate either remove the clause or turn it
21143         into OMP_CLAUSE_PRIVATE.
21144         (gimplify_omp_for): Fix up handling of implicit
21145         lastprivate or linear iterators.
21146         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21147         ORT_COMBINED_TEAMS.
21148         * omp-low.c (lower_omp_for_lastprivate): For combined
21149         for simd use fd.loop.n2 from the for rather than simd.
21150
21151 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21152
21153         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21154         instead of gen_rtx_raw_REG.
21155         (cris_expand_epilogue): Likewise.
21156         * config/microblaze/microblaze.c (microblaze_classify_address):
21157         Likewise.
21158         * config/sparc/sparc.md: Likewise.
21159
21160 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
21161
21162         * config/alpha/alpha.c (alpha_legitimize_reload_address)
21163         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21164         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21165         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21166         Use CASE_CONST_SCALAR_INT.
21167         (print_operand) <case 'M'>: Use mode_width_operand to check the
21168         value of the constant.
21169         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21170         * config/alpha/predicates.md (input_operand): Use general_operand
21171         instead of match_code as operand check.
21172         (symbolic_operand): Use match_code with subexpression digits.
21173         * config/alpha/constraints.md (Q): Ditto.
21174
21175 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21176
21177         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21178
21179 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21180
21181         * config/s390/s390.c (s390_secondary_reload): Fix check for
21182         load/store relative.
21183
21184 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21185
21186         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
21187         alternative_mask to uint64_t.
21188
21189 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
21190
21191         PR tree-optimization/66187
21192         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21193         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
21194         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21195
21196 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
21197
21198         * diagnostic.c (diagnostic_report_current_module): Strengthen
21199         local "new_map" from const line_map * to
21200         const line_map_ordinary *.
21201         * genmatch.c (error_cb): Likewise for local "map".
21202         (output_line_directive): Likewise for local "map".
21203         * input.c (expand_location_1): Likewise for local "map".
21204         Pass NULL rather than &map to
21205         linemap_unwind_to_first_non_reserved_loc, since the value is never
21206         read from there, and the value written back not read from here.
21207         (is_location_from_builtin_token): Strengthen local "map" from
21208         const line_map * to const line_map_ordinary *.
21209         (dump_location_info): Strengthen locals "map" from
21210         line_map *, one to const line_map_ordinary *, the other
21211         to const line_map_macro *.
21212         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21213         const line_map * to const line_map_macro *.
21214         (maybe_unwind_expanded_macro_loc): Add a call to
21215         linemap_check_macro when writing to the "map" field of the
21216         loc_map_pair.
21217         Introduce local const line_map_ordinary * "ord_map", using it in
21218         place of "map" in the part of the function where we know we have
21219         an ordinary map.  Strengthen local "m" from const line_map * to
21220         const line_map_ordinary *.
21221
21222 2015-05-19  Nick Clifton  <nickc@redhat.com>
21223
21224         PR target/66156
21225         * config/msp430/msp430.md (zero_extendhisi2): Add support for
21226         separate source and destination registers.
21227
21228 2015-05-19  Richard Biener  <rguenther@suse.de>
21229
21230         PR tree-optimization/66165
21231         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21232         for no load permutation.
21233
21234         PR tree-optimization/66185
21235         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21236         when building the SLP node from scalars.
21237
21238 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21239             Tristan Gingold  <gingold@adacore.com>
21240
21241         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21242         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21243         (expand_stack_restore): Call record_new_stack_level.
21244         (expand_stack_save): Do not call do_pending_stack_adjust.
21245         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21246         * calls.c (expand_call): Call record_new_stack_level for alloca.
21247         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21248         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21249         (update_sjlj_context): New global function.
21250         * except.h (update_sjlj_context): Declare.
21251         * explow.c (record_new_stack_level): New global function.
21252         (allocate_dynamic_stack_space): Call record_new_stack_level.
21253         * explow.h (record_new_stack_level): Declare.
21254         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21255         * cfgrtl.c (duplicate_insn_chain): Likewise.
21256
21257 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21258
21259         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21260         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21261         STACK_GROWS_DOWNWARD as normal if.
21262         (expand_call): Likewise.
21263
21264 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
21265
21266         PR target/54236
21267         * config/sh/sh.md (*round_int_even): New insn_and_split and
21268         accompanying new unnamed split.
21269
21270 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21271
21272         * bitmap.c (bitmap_set_range): Handle count==1 specially.
21273         (bitmap_clear_range): Likewise.
21274         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21275         bitmap_set_range unconditionally.
21276         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21277         * df-scan.c (df_mark_reg): Likewise.
21278         * haifa-sched.c (setup_ref_regs): Likewise.
21279         * sched-rgn.c (update_live_1): Likewise.
21280
21281 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21282
21283         * regs.h (END_HARD_REGNO): Delete.
21284         (END_REGNO): Move to...
21285         * rtl.h: ...here.
21286         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21287         * caller-save.c (mark_set_regs): Likewise.
21288         * combine.c (move_deaths, distribute_notes): Likewise.
21289         * cse.c (invalidate, invalidate_for_call): Likewise.
21290         * df-scan.c (df_ref_record): Likewise.
21291         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21292         (record_last_reg_set_info): Likewise.
21293         * reg-stack.c (convert_regs_exit): Likewise.
21294         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21295         * resource.c (update_live_status): Likewise.
21296         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21297
21298 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21299
21300         * rtl.h (reg_info): Add an nregs field.
21301         (REG_NREGS): Use it.
21302         (SET_REGNO_RAW): Delete.
21303         (set_regno_raw): New function.
21304         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21305         (END_REGNO): Redefine in terms of REG_NREGS.
21306         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21307         SET_REGNO_RAW.
21308         * emit-rtl.c (set_mode_and_regno): Likewise.
21309         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21310         instead of SET_REGNO_RAW.
21311
21312 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21313
21314         * rtl.h (PUT_MODE_RAW): New macro.
21315         (PUT_REG_NOTE_KIND): Use it.
21316         (set_mode_and_regno): Declare.
21317         (gen_raw_REG): Change regno to "unsigned int".
21318         (gen_rtx_REG): Change "unsigned" to "unsigned int".
21319         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21320         use set_mode_and_regno to change the mode of registers.
21321         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21322         * emit-rtl.c (set_mode_and_regno): New function.
21323         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
21324         * caller-save.c (reg_save_code): Use set_mode_and_regno.
21325         * expr.c (init_expr_target): Likewise.
21326         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21327         * postreload.c (reload_cse_simplify_operands): Likewise.
21328
21329 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21330
21331         * caller-save.c (init_caller_save): Use word_mode and
21332         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21333         * expr.c (init_expr_target): Likewise.
21334         * ira.c (setup_prohibited_mode_move_regs): Likewise.
21335         * postreload.c (reload_cse_regs_1): Likewise.
21336
21337 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21338
21339         * rtl.def (REG): Change format to "r".
21340         * rtl.h (rtunion): Remove rt_reg.
21341         (reg_info): New structure.
21342         (rtx_def): Add reg field to main union.
21343         (X0REGATTR): Delete.
21344         (REG_CHECK): New macro.
21345         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21346         * rtl.c (rtx_format): Document "r".
21347         (rtx_code_size): Handle REG specially.
21348         * gengenrtl.c (special_format): Return true for formats
21349         that include 'r'.
21350         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21351         Deal with REG_ATTRS after the field loop.
21352         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21353         * expmed.c (init_expmed): Call gen_raw_REG instead of
21354         gen_rtx_raw_REG.
21355         * expr.c (init_expr_target): Likewise.
21356         * regcprop.c (maybe_mode_change): Likewise.
21357         * varasm.c (make_decl_rtl): Likewise.
21358         * final.c (leaf_renumber_regs_insn): Return early after
21359         handling REGs.
21360         * genemit.c (gen_exp): Handle 'r' fields.
21361         * genpeep.c (match_rtx): Likewise.
21362         * gensupport.c (subst_pattern_match): Likewise.
21363         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21364         (alter_constraints, subst_dup): Likewise.
21365         * read-rtl.c (read_rtx_code): Likewise.
21366         * print-rtl.c (print_rtx): Likewise.
21367         * genrecog.c (find_operand, find_matching_operand): Likewise.
21368         (validate_pattern, match_pattern_2): Likewise.
21369         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21370         (rtx_test::regno_field): New function.
21371         (operator ==, safe_to_hoist_p, transition_parameter_type)
21372         (parameter_type_string, print_parameter_value)
21373         (print_nonbool_test, print_test): Handle new enum values.
21374         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21375         * lra-constraints.c (operands_match_p): Likewise.
21376
21377 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21378
21379         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21380         Change type of new_regno to unsigned int.
21381         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21382         new_regno to unsigned int.
21383         (df_ref_change_reg_with_loc): Remove old_regno parameter.
21384         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
21385         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21386         (SET_REGNO_RAW): Add space after ",".
21387
21388 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21389
21390         * rtl.h (REG_NREGS): New macro
21391         * alias.c (record_set): Use it.
21392         * cfgcleanup.c (mark_effect): Likewise.
21393         * combine.c (likely_spilled_retval_1): Likewise.
21394         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21395         (move_deaths, distribute_notes): Likewise.
21396         * cselib.c (cselib_record_set): Likewise.
21397         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21398         * df-scan.c (df_mark_reg): Likewise.
21399         * dse.c (look_for_hardregs): Likewise.
21400         * dwarf2out.c (reg_loc_descriptor): Likewise.
21401         (multiple_reg_loc_descriptor): Likewise.
21402         * expr.c (write_complex_part, read_complex_part): Likewise.
21403         (emit_move_complex): Likewise.
21404         * haifa-sched.c (setup_ref_regs): Likewise.
21405         * ira-lives.c (mark_hard_reg_live): Likewise.
21406         * lra.c (lra_set_insn_recog_data): Likewise.
21407         * mode-switching.c (create_pre_exit): Likewise.
21408         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21409         (reload_combine_recognize_pattern): Likewise.
21410         (reload_combine_note_use, move2add_record_mode): Likewise.
21411         (reload_cse_move2add): Likewise.
21412         * reg-stack.c (subst_stack_regs_pat): Likewise.
21413         * regcprop.c (kill_value, copy_value): Likewise.
21414         (copyprop_hardreg_forward_1): Likewise.
21415         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21416         (build_def_use): Likewise.
21417         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21418         (deps_analyze_insn): Likewise.
21419         * sched-rgn.c (check_live_1, update_live_1): Likewise.
21420         * sel-sched.c (count_occurrences_equiv): Likewise.
21421         * valtrack.c (dead_debug_insert_temp): Likewise.
21422
21423 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
21424
21425         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21426         * dse.c (note_add_store): Likewise.
21427         * ira-lives.c (mark_hard_reg_dead): Likewise.
21428         * loop-invariant.c (mark_reg_store): Likewise.
21429         (mark_reg_death): Likewise.
21430         * postreload.c (reload_combine): Likewise.
21431         (reload_combine_note_store): Likewise.
21432         (reload_combine_note_use): Likewise.
21433         * recog.c (peep2_reg_dead_p): Likewise.
21434
21435 2015-05-19  Alan Modra  <amodra@gmail.com>
21436
21437         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21438         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21439         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21440         unused predicates.
21441         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21442         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
21443         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21444         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21445
21446 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
21447
21448         * config/mips/mips.md (JOIN_MODE): New mode iterator.
21449         (join2_load_Store<JOIN_MODE:mode>): New pattern.
21450         (join2_loadhi): Likewise.
21451         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21452         load-load and store-stores.
21453         * config/mips/mips.opt (mload-store-pairs): New option.
21454         (TARGET_LOAD_STORE_PAIRS): New macro.
21455         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21456         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21457         * config/mips/mips.c (mips_load_store_bonding_p): New function.
21458
21459 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
21460
21461         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21462         explicit swaps.
21463         * dojump.c (do_compare_rtx_and_jump): Likewise.
21464         * expmed.c (emit_store_flag_1): Likewise.
21465         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21466         * final.c (sprint_ul): Use std::reverse for reversing a string.
21467         * fold-const.c (extract_muldiv_1): Use std::swap.
21468         * genmodes.c (emit_mode_int_n): Likewise.
21469         * ifcvt.c (dead_or_predicable): Likewise.
21470         * ira-build.c (ira_merge_live_ranges): Likewise.
21471         (swap_allocno_copy_ends_if_necessary): Likewise.
21472         * ira.c (ira_setup_alts): Likewise.
21473         * loop-iv.c (iv_analyze_expr): Likewise.
21474         (implies_p): Likewise.
21475         (canon_condition): Likewise.
21476         * lra-constraints.c (swap_operands): Likewise.
21477         * lra-lives.c (lra_merge_live_ranges): Likewise.
21478         * omega.c (swap): Remove.
21479         (bswap): Remove.
21480         (omega_unprotect_1): Use std::swap.
21481         (omega_solve_geq): Likewise.
21482         * optabs.c (expand_binop_directly): Likewise.
21483         (expand_binop): Likewise.
21484         (emit_conditional_move): Likewise.
21485         (emit_conditional_add): Likewise.
21486         * postreload.c (reload_cse_simplify_operands): Likewise.
21487         * reg-stack.c (emit_swap_insn): Likewise.
21488         (swap_to_top): Likewise.
21489         (compare_for_stack_reg): Likewise.
21490         (subst_asm_stack_regs): Likewise.
21491         * reload.c (find_reloads): Likewise.
21492         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21493         * sel-sched.c (invoke_reorder_hooks): Likewise.
21494         (create_block_for_bookkeeping): Likewise.
21495         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21496         (lambda_matrix_right_hermite): Use std::swap.
21497         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21498         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21499         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21500         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21501         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21502         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21503         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21504         * tree-vrp.c (compare_ranges): Likewise.
21505         * var-tracking.c (add_with_sets): Likewise.
21506         (vt_find_locations): Likewise.
21507
21508 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
21509
21510         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21511         pie executables.
21512         (FBSD_ENDFILE_SPEC): Likewise.
21513         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21514         config/freebsd-spec.h.
21515         (ENDFILE_SPEC): Likewise.
21516
21517 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
21518             Richard Henderson  <rth@redhat.com>
21519
21520         PR target/57032
21521         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21522         Check for a memory location that is not a reference (using an AND)
21523         to an unaligned location here.
21524         * config/alpha/predicates.md (normal_memory_operand): Remove.
21525
21526 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
21527
21528         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21529         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21530
21531 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21532
21533         * config/mips/mips.c (micromips_globals): New variable.
21534         (mips_set_compression_mode): Save and reinitialize target-dependent
21535         state for microMIPS.
21536
21537 2015-05-18  Martin Liska  <mliska@suse.cz>
21538
21539         * dbgcnt.def: Add new counter.
21540         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21541
21542 2015-05-18  Martin Liska  <mliska@suse.cz>
21543
21544         * dbgcnt.def: Sort counters.
21545         * opts.c (common_handle_option): Do not compile if
21546         -fdbg-cnt-list is enabled.
21547
21548 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21549
21550         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21551         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
21552         address operator to va_list operand.
21553         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21554         unconditionally.
21555         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21556         operand.
21557         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21558         * config/s390/s390.c (s390_gimplify_va_arg): Same.
21559         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21560
21561 2015-05-18  Tom de Vries  <tom@codesourcery.com>
21562
21563         * tree-ssa-tail-merge.c: Fix whitespace.
21564
21565 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
21566
21567         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21568         cortex-a17, and cortex-a17.cortex-a7.
21569
21570 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
21571
21572         PR target/54236
21573         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21574
21575 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
21576
21577         PR target/66174
21578         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21579         QImode inner modes for TARGET_AVX512BW.  Force mask operand
21580         to a register for AVX512F modes.
21581
21582 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21583
21584         * toplev.c (emit_debug_global_declarations): Do not output debug info
21585         when doing slim LTO objects.
21586
21587 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21588
21589         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21590         odr_types_equivalent_p): Declare.
21591         (odr_type_p): Use gcc_checking_assert.
21592         (type_in_anonymous_namespace_p) Declare.
21593         (type_with_linkage_p): Declare.
21594         * common.opt (Wlto-type-mismatch): New warning.
21595         * ipa-devirt.c (compound_type_base): New function.
21596         (odr_or_derived_type_p): New function.
21597         (odr_types_equivalent_p): New function.
21598         (add_type_duplicate): Simplify.
21599         (type_with_linkage_p): Add hack to prevent false positives on C types
21600         (type_in_anonymous_namespace_p): Likewise.
21601         * tree.c (need_assembler_name_p): Use type_with_linkage.
21602         * tree.h (type_in_anonymous_namespace_p): Remove.
21603         * doc/invoke.texi (-Wlto-type-mismatch): Document
21604
21605 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
21606
21607         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21608         (verify_type): Verify STRING_FLAG.
21609
21610 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21611
21612         PR fortran/44054
21613         * tree-pretty-print.c (percent_K_format): Replace locus pointer
21614         with accessor function.
21615         * tree-diagnostic.c (diagnostic_report_current_function): Use
21616         diagnostic_location function.
21617         (maybe_unwind_expanded_macro_loc): Likewise.
21618         (virt_loc_aware_diagnostic_finalizer): Likewise.
21619         (default_tree_printer): Replace locus pointer with accessor function.
21620         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21621         (diagnostic_set_info_translated): Initialize second location.
21622         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21623         (diagnostic_show_locus): Handle two locations. Call
21624         diagnostic_print_caret_line.
21625         (diagnostic_print_caret_line): New.
21626         (default_diagnostic_starter): Use diagnostic_location function.
21627         (diagnostic_report_diagnostic): Use diagnostic_location function.
21628         (verbatim): Do not set text.locus.
21629         * diagnostic.h (struct diagnostic_info): Remove location field.
21630         (struct diagnostic_context): Make caret_chars an array of two.
21631         (diagnostic_location): New inline.
21632         (diagnostic_expand_location): Handle two locations.
21633         (diagnostic_same_line): New inline.
21634         (diagnostic_print_caret_line): Declare.
21635         (CARET_LINE_MARGIN): New constant.
21636         * pretty-print.c (pp_printf): Do not set text.locus.
21637         (pp_verbatim): Do not set text.locus.
21638         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21639         (struct text_info): Replace locus pointer with locations
21640         array. Add accessor functions.
21641
21642 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
21643             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21644
21645         PR target/65768
21646         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21647         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21648          large constants in register instead of splitting them.
21649
21650 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
21651
21652         PR target/66140
21653         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21654         replacements in memory addresses.
21655         (get_unaligned_address): Ditto.
21656
21657 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
21658
21659         * config/ft32/*: New files for FT32 port.
21660         * doc/install.texi: Add FT32 information.
21661         * doc/invoke.texi: Add FT32 information.
21662         * doc/md.texi: Add FT32 information.
21663         * doc/contrib.texi: Self added.
21664
21665 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
21666
21667         PR tree-optimization/64454
21668         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21669         (-1 - A -> ~A): Remove unnecessary condition.
21670
21671 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
21672
21673         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21674         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21675         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21676
21677 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
21678
21679         * ipa-chkp.h (chkp_wrap_function): New.
21680         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21681         (chkp_wrap_function_name): New.
21682         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21683         to get wrapper name.
21684         * lto-cgraph.c: Include ipa-chkp.h.
21685         (input_cgraph_1): Avoid alias chain for wrappers.
21686
21687 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21688
21689         PR middle-end/66134
21690         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21691         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21692
21693 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21694
21695         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21696         (AARCH64_FL_SLOWMUL): Delete.
21697         (AARCH64_FL_CRC): Redefine to 1<<3.
21698         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21699
21700 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21701
21702         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21703         casting.
21704
21705 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21706
21707         * config/alpha/alpha.md (extendqidi2): Use general_operand
21708         instead of some_operand for operand[1] predicate.
21709         (extendhidi2): Ditto.
21710         (cbranchdi4): Use general_operand instead of some_operand
21711         for operand[1] and operands[2] predicates.
21712         (cstoredi4): Ditto.
21713         * config/alpha/predicates.md (some_operand): Remove unused predicate.
21714         (some_ni_operand): Ditto.
21715
21716 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
21717
21718         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21719         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
21720         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21721         low part of the constant using alpha_emit_set_const_1.
21722         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21723
21724 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
21725
21726         * varasm.c (output_constant_pool_1): Pass down alignment from
21727         constant pool entry's descriptor to output_constant_pool_2.
21728         (output_object_block): Add comment prior to call to
21729         output_constant_pool_1.
21730
21731 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
21732
21733         PR rtl-optimization/65862
21734         * target.def (ira_change_pseudo_allocno_class): New hook.
21735         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21736         value of the hook.
21737         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21738         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21739         hook.
21740         * ira-costs.c (find_costs_and_classes): Call the hook and change
21741         classes when it is necessary.
21742         * doc/tm.texi: Update.
21743
21744 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
21745
21746         * config/i386/i386.md (sibcall_memory): Check that register with
21747         callee address is not also used as one of the arguments, instead
21748         of checking that it is not live after the sibcall.
21749         (sibcall_pop_memory): Ditto.
21750         (sibcall_value_memory): Ditto.
21751         (sibcall_value_pop_memory): Ditto.
21752
21753 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
21754
21755         * generic-match-head.c (types_match): Handle non-types.
21756         * gimple-match-head.c (types_match): Likewise.
21757         * match.pd: Remove unnecessary TREE_TYPE for types_match.
21758
21759 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
21760
21761         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21762         (csneg3<mode>_insn): Enable expansion of pattern.
21763
21764 2015-05-14  Nick Clifton  <nickc@redhat.com>
21765
21766         * config/rl78/rl78.c (rl78_select_section): Select the correct
21767         default section based upon the category of the decl.
21768
21769 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21770
21771         PR rtl-optimization/30967
21772         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21773         destination mode for the cost of scc patterns.
21774
21775 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21776
21777         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21778         using SWIM248 mode iterator.
21779         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21780         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
21781         for operand[2] constraint.
21782         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21783
21784 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21785
21786         PR middle-end/66133
21787         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21788         make sure it is never noreturn, even when the task body does not
21789         return.
21790         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21791         right before GIMPLE_OMP_RETURN.
21792         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21793         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
21794         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21795
21796 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21797
21798         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21799         * tree-ssa-math-opts.c: Include params.h
21800         (pow_synth_sqrt_info): New struct.
21801         (representable_as_half_series_p): New function.
21802         (get_fn_chain): Likewise.
21803         (print_nested_fn): Likewise.
21804         (dump_fractional_sqrt_sequence): Likewise.
21805         (dump_integer_part): Likewise.
21806         (expand_pow_as_sqrts): Likewise.
21807         (gimple_expand_builtin_pow): Use above to attempt to expand
21808         pow as series of square roots.  Removed now unused variables.
21809
21810 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
21811
21812         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21813         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21814         Remove *p0 and *p1 arguments.  Rewrite function.
21815         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21816         (alpha_split_const_mov): Update calls to alpha_extract_integer and
21817         alpha_emit_set_long_const.
21818         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21819         (alpha_output_mi_thunk_osf): Ditto.
21820         * config/alpha/alpha.md (movti): Do not check operands[1]
21821         for CONST_DOUBLE.
21822
21823 2015-05-13  Richard Biener  <rguenther@suse.de>
21824
21825         PR tree-optimization/66129
21826         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21827         commutative.
21828         (vect_schedule_slp_instance): Fix typo.
21829
21830 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
21831
21832         * common.opt (fdump-internal-locations): New option.
21833         * input.c: Include diagnostic-core.h.
21834         (get_end_location): New function.
21835         (write_digit): New function.
21836         (write_digit_row): New function.
21837         (dump_location_range): New function.
21838         (dump_labelled_location_range): New function.
21839         (dump_location_info): New function.
21840         * input.h (dump_location_info): New prototype.
21841         * toplev.c (compile_file): Handle flag_dump_locations.
21842
21843 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
21844
21845         * gimple-expr.h (is_gimple_constant): Reorder.
21846         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21847
21848 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
21849
21850         * combine.c (simplify_set): When generating a CC set, if the
21851         source already is in the correct mode, do not wrap it in a
21852         compare.  Simplify the rest of that code.
21853
21854 2015-05-13  Richard Biener  <rguenther@suse.de>
21855
21856         PR tree-optimization/66123
21857         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21858         a taken edge.
21859
21860 2015-05-13  Richard Biener  <rguenther@suse.de>
21861
21862         PR middle-end/66110
21863         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21864         specially.
21865         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21866
21867 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
21868
21869         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21870         * aclocal.m4: Regenerated with automake-1.11.6.
21871
21872 2015-05-13  Tom de Vries  <tom@codesourcery.com>
21873
21874         PR tree-optimization/66010
21875         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21876         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21877         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
21878         and rval based on do_deref.
21879
21880 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21881
21882         PR target/65103
21883         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21884         link time constants into adress expressions and therefore set
21885         their cost to 0.
21886
21887 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
21888
21889         PR target/66112
21890         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21891         Use SWI248 iterator instead of SWI.
21892         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
21893         Use eq_attr "alternative" "0" instead of match_test in
21894         length_immediate attribute computation.
21895         (*mulvhi4, *mulvhi4_1): New define_insns.
21896
21897         PR target/66112
21898         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21899         SIGNED to get precision of non-negative value.
21900
21901 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21902
21903         PR target/66048
21904         * function.c (diddle_return_value_1): Process bounds first.
21905         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21906         register.
21907
21908 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21909
21910         PR rtl-optimization/64616
21911         * loop-invariant.c (can_move_invariant_reg): New.
21912         (move_invariant_reg): Call above new function to decide whether
21913         instruction can just be moved, skipping creation of temporary
21914         register.
21915
21916 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21917
21918         PR target/pr66047.c
21919         * i386.c (ix86_function_sseregparm): Only return -1 if local function
21920         with implied regparm is called from -mno-sse function.
21921         (init_cumulative_args): Output error if ix86_function_sseregparm
21922         return -1 and SSE register would be needed.
21923         (function_arg_advance_32): Likewise.
21924         (function_arg_32): Likewise.
21925         * i386.h (ix86_args): Add decl field.
21926
21927 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
21928
21929         PR ipa/65873
21930         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21931         inlines across optimization boundary.
21932
21933 2015-05-12  Jason Merrill  <jason@redhat.com>
21934
21935         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21936         string literal and macro name.
21937
21938 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
21939
21940         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
21941         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
21942         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
21943
21944 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
21945
21946         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
21947         (-Wmisleading-indentation): New option.
21948         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
21949
21950 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
21951
21952         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
21953         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
21954         (alpha_extract_integer): Ditto.
21955         (alpha_legitimate_constant_p): Ditto.
21956         (alpha_split_tmode_pair): Ditto.
21957         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
21958         (alpha_expand_mov): Ditto.
21959         (print_operand): Remove handling of 'H' modifier.
21960         <case 'm'>: Remove CONST_DOUBLE handling.
21961         (summarize_insn): Handle CONST_WIDE_INT.
21962         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
21963         (anddi3): Ditto.
21964         (movti): Handle CONST_WIDE_INT.
21965         * config/alpha/constraints.md ('H'): Remove constraint definition.
21966         ('G'): Do not match MODE_FLOAT class.
21967         * config/alpha/predicates.md (const0_operand): Also match
21968         const_wide_int.
21969         (non_add_const_operand): Ditto.
21970         (non_zero_const_operand): Ditto.
21971         (some_operand): Ditto.
21972         (input_operand): Ditto.  Handle CONST_WIDE_INT.
21973         (and_operand): Do not match const_double.
21974         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
21975
21976 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
21977
21978         PR target/65697
21979         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
21980         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
21981         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
21982         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
21983         is_mm_seq_cst, is_mm_sync): New accessor functions.
21984         * builtins.c (expand_builtin_sync_operation,
21985         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
21986         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
21987         (get_memmodel,  expand_builtin_atomic_compare_exchange,
21988         expand_builtin_atomic_load, expand_builtin_atomic_store,
21989         expand_builtin_atomic_clear): Use new accessor routines.
21990         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
21991         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
21992         (maybe_emit_sync_lock_test_and_set): Use new accessors and
21993         MEMMODEL_SYNC_ACQUIRE.
21994         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
21995         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
21996         expand_atomic_store): Use new accessors.
21997         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
21998         * tsan.c (instrument_builtin_call): Update check for memory model beyond
21999         final enum to use MEMMODEL_LAST.
22000         * c-family/c-common.c: Use new accessor for memmodel_base.
22001         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22002         accessors.
22003         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22004         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22005         mem_thread_fence, *dmb): Likewise.
22006         * config/alpha/alpha.c (alpha_split_compare_and_swap,
22007         alpha_split_compare_and_swap_12): Likewise.
22008         * config/arm/arm.c (arm_expand_compare_and_swap,
22009         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22010         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22011         atomic_loaddi): Likewise.
22012         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22013         Likewise.
22014         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22015         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22016         use new accessors.
22017         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22018         atomic_store<mode>, atomic_compare_and_swap<mode>,
22019         atomic_exchange<mode>): Use new accessors.
22020         * config/mips/mips.c (mips_process_sync_loop): Likewise.
22021         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22022         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22023         rs6000_post_atomic_barrier): Add new cases.
22024         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22025         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22026         (atomic_load<mode>): Add new cases and use new accessors.
22027         (store_quadpti): Add new cases.
22028         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22029         accessors.
22030         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22031         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22032         model, not 8.
22033
22034 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
22035
22036         * ipa-devirt.c (type_with_linkage_p): New function.
22037         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22038         type has linkage.
22039         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22040         (can_be_name_hashed_p): Simplify.
22041         (hash_odr_name): Check that type has linkage before checking if it is
22042         anonymous.
22043         (types_same_for_odr): Likewise.
22044         (odr_name_hasher::equal): Likewise.
22045         (odr_subtypes_equivalent_p): Likewise.
22046         (warn_types_mismatch): Likewise.
22047         (get_odr_type): Likewise.
22048         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22049         * ipa-utils.h (odr_type_p): Move offline.
22050         * tree.c (need_assembler_name_p): Fix handling of types
22051         without linkages.
22052         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22053
22054 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
22055
22056         * timevar.c (timevar_enable): Delete in favor of...
22057         (g_timer): New global.
22058         (struct timevar_def): Move to timevar.h inside class timer.
22059         (struct timevar_stack_def): Likewise.
22060         (timevars): Delete global in favor of field "m_timevars" within
22061         class timer in timevar.h
22062         (stack): Likewise, in favor of field "m_stack".
22063         (unused_stack_instances): Likewise, in favor of field
22064         "m_unused_stack_instances".
22065         (start_time): Likewise, in favor of field "m_start_time".
22066         (get_time): Eliminate check for timevar_enable.
22067         (timer::timer): New function, built from part of timevar_init.
22068         (timevar_init): Rewrite idempotency test from using
22069         "timevar_enable" bool to using dynamic allocation of "g_timer".
22070         Move rest of implementation into timer's constructor.
22071         (timevar_push_1): Rename to...
22072         (timer::push): ...this, adding "m_" prefixes to variables that
22073         are now fields of timer.
22074         (timevar_pop_1): Likewise, rename to...
22075         (timer::pop): ...this, and add "m_" prefixes.
22076         (timevar_start): Replace test for "timevar_enable" with one for
22077         "g_timer", and move bulk of implementation to...
22078         (timer::start): ...here, adding "m_" prefixes.
22079         (timevar_stop): Likewise, from here...
22080         (timer::stop): ...to here.
22081         (timevar_cond_start): Likewise, from here...
22082         (timer::cond_start): ...to here.
22083         (timevar_cond_stop): Likewise, from here...
22084         (timer::cond_stop): ...to here.
22085         (validate_phases): Rename to...
22086         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
22087         locals "total" and "tv" const.
22088         (timevar_print): Rename to...
22089         (timer::print): ...this, and add "m_" prefixes.  Make locals
22090         "total" and "tv" const.  Eliminate test for timevar_enable.
22091         * timevar.h (timevar_enable): Eliminate.
22092         (g_timer): New declaration.
22093         (timevar_push_1): Eliminate.
22094         (timevar_pop_1): Eliminate.
22095         (timevar_print): Eliminate.
22096         (class timer): New class.
22097         (timevar_push): Rewrite to use g_timer.
22098         (timevar_pop): Likewise.
22099         * toplev.c (toplev::~toplev): Likewise.
22100
22101 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
22102
22103         * arm-protos.h (arm_sched_autopref): Delete.
22104         (tune_params): Re-organize, use enums for flag values.
22105         (FUSE_OPS): New macro.
22106         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22107         (ARM_PREFETCH_BENEFICIAL): Likewise.
22108         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22109         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22110         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22111         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22112         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22113         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
22114         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22115         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22116         format.
22117         (arm_option_override, thumb2_reorg, arm_print_tune_info)
22118         (aarch_macro_fusion_pair_p): Update uses of current_tune.
22119         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22120
22121 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
22122
22123         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22124         "break".
22125
22126 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
22127             Sandra Loosemore <sandra@codesourcery.com>
22128
22129         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22130         value.
22131         (REG_CLASS_NAMES): Add "IJMP_REGS".
22132         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22133         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22134         use new "c" register constraint.
22135         * config/nios2/constraint.md (c): New register constraint
22136         corresponding to IJMP_REGS.
22137
22138 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22139
22140         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22141         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22142         define_splits): Delete, revamp, transmogrify into ...
22143         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22144         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22145         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22146         New.
22147
22148 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22149
22150         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22151         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22152
22153 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22154
22155         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22156         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22157         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22158         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22159         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22160         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22161         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22162         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22163         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22164         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22165         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22166         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22167         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22168         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22169         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22170         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22171         and 30 corresponding splitters): Delete.
22172
22173 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22174
22175         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22176         zero_extract.
22177
22178 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22179
22180         * combine.c (recog_for_combine_1): New function, factored out
22181         from recog_for_combine.
22182         (change_zero_ext): New function.
22183         (recog_for_combine): If recog fails, try again with the pattern
22184         modified by change_zero_ext; if that still fails, restore the
22185         pattern.
22186
22187 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
22188
22189         * combine.c (get_undo_marker): New function.
22190         (undo_to_marker): New function, largely factored out from ...
22191         (undo_all): ... this.  Adjust.
22192
22193 2015-05-12  Richard Biener  <rguenther@suse.de>
22194
22195         PR tree-optimization/66101
22196         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22197         fixup if we turn a loop exit edge to a fallthru edge.
22198
22199 2015-05-12  Richard Biener  <rguenther@suse.de>
22200
22201         PR tree-optimization/37021
22202         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22203         (SLP_TREE_TWO_OPERATORS): New define.
22204         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22205         SLP_TREE_TWO_OPERATORS.
22206         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22207         SLP node.
22208         (vect_build_slp_tree): Adjust.
22209         (vect_analyze_slp_cost_1): Likewise.
22210         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22211         emitting two vector stmts and mixing the results.
22212
22213 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22214
22215         * call.c (print_z_candidates): Remove dead code.
22216
22217 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22218
22219         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22220         and zEC12_simple_fp.
22221         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22222         to 1.
22223
22224 2015-05-12  Tom de Vries  <tom@codesourcery.com>
22225
22226         PR tree-optimization/66010
22227         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22228         ifn_va_arg.
22229         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22230         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
22231         va_lists are passed, and remove corresponding handling.
22232         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
22233         do_deref argument to ifn_va_arg.
22234         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22235         ifn_va_arg.
22236
22237 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22238
22239         PR target/65955
22240         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22241         REG before taking its REGNO.
22242
22243 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22244
22245         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22246         rsp->sign_bit_copies and rsp->nonzero_bits into ...
22247         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
22248         present to get more accurate information about the number of sign bit
22249         copies and non zero bits.
22250
22251 2015-05-12  Richard Biener  <rguenther@suse.de>
22252
22253         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22254         do not allow unrolling.
22255
22256 2015-05-11  Richard Henderson  <rth@redhat.com>
22257
22258         * config/i386/i386-modes.def (CCP): New.
22259         * config/i386/i386.c (put_condition_code): Handle it.
22260         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22261
22262 2015-05-11  Richard Henderson  <rth@redhat.com>
22263
22264         * target.def (md_asm_clobbers): Replace with...
22265         (md_asm_adjust): this.
22266         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22267         (TARGET_MD_ASM_ADJUST): New.
22268         * tm.texi: Rebuild.
22269         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22270         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22271         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22272
22273         * cfgexpand.c (check_operand_nalternatives): Accept vector of
22274         constraints instead of lists of outputs and inputs.
22275         (expand_asm_stmt): Save and restore input_location around the
22276         body of the function.  Move asm data into vectors instead of
22277         building tree lists.  Generate cleanup sequences as needed,
22278         rather than waiting til the end.  Use new md_asm_adjust hook.
22279
22280         * config/vxworks.c: Include vec.h before target.h.
22281         * gimple.c: Likewise.
22282         * incpath.c: Likewise.
22283         * mode-switching.c: Likewise.
22284
22285         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22286         (cris_md_asm_adjust): this.
22287         (TARGET_MD_ASM_CLOBBERS): Remove.
22288         (TARGET_MD_ASM_ADJUST): New.
22289         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22290         (ix86_md_asm_adjust): this.
22291         (TARGET_MD_ASM_CLOBBERS): Remove.
22292         (TARGET_MD_ASM_ADJUST): New.
22293         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22294         (mn10300_md_asm_adjust): this.
22295         (TARGET_MD_ASM_CLOBBERS): Remove.
22296         (TARGET_MD_ASM_ADJUST): New.
22297         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22298         (rs6000_md_asm_adjust): this.
22299         (TARGET_MD_ASM_CLOBBERS): Remove.
22300         (TARGET_MD_ASM_ADJUST): New.
22301         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22302         (visium_md_asm_adjust): this.
22303         (TARGET_MD_ASM_CLOBBERS): Remove.
22304         (TARGET_MD_ASM_ADJUST): New.
22305
22306 2015-05-11  Richard Henderson  <rth@redhat.com>
22307
22308         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22309         if noutputs is zero.
22310         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22311
22312         * cfgexpand.c (expand_asm_operands): Merge into...
22313         (expand_asm_stmt): ... here.
22314
22315         * cfgexpand.c (expand_asm_operands): Don't call
22316         resolve_asm_operand_names.
22317         * stmt.c (resolve_asm_operand_names): Clarify block comment.
22318
22319 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
22320
22321         * dwarf2out.c (gen_member_die): Sanity check that we access
22322         TYPE_MAIN_VARIANT for TYPE_METHODS.
22323         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22324         checking TYPE_METHODS.
22325         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22326         if non-null.
22327         (build_distinct_type_copy): Clear TYPE_METHODS.
22328         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22329         (verify_type): Allow TYPE_METHODS to be error_mark_node.
22330         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22331
22332 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
22333
22334         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22335         (emit_pattern_before_setloc): Likewise.
22336
22337 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22338
22339         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22340         for define_peephole2s.
22341         (get_peephole2_pattern): New function.
22342         (main): Use it.  Call validate_pattern.
22343
22344 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22345
22346         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22347         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22348         (Last callee saved reg is different for AVR_TINY architecture)
22349
22350 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22351
22352         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22353         when looking for memory references.
22354
22355 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22356
22357         PR target/65753
22358         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22359         via function pointers.
22360
22361 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
22362
22363         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22364         indirect call by forcing address into a pseudo with -fno-plt.
22365         * common.opt (flag_plt): New option.
22366         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22367         ([-fno-plt]): Document.
22368
22369 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
22370
22371         PR bootstrap/66105
22372         * config/rs6000/option-defaults.h: Add space between string literal
22373         and macro name.
22374
22375 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22376
22377         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22378         accross ARM targets.
22379
22380 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22381
22382         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22383         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22384
22385 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
22386
22387         PR rtl-optimization/66076
22388         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22389         Don't grow the heap array if it is already big enough from a
22390         previous iteration.
22391
22392 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22393
22394         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22395         (is_called_in_ARM_mode): Remove.
22396         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22397         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22398         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22399          arm_declare_function_name.
22400
22401 2015-05-11  Christian Bruel  <christian.bruel@st.com>
22402
22403         * config/arm/arm.c (arm_option_override): Reoganized and split into :
22404         (arm_option_params_internal); New function.
22405         (arm_option_check_internal): New function.
22406         (arm_option_override_internal): New function.
22407         (thumb_code, thumb1_code): Remove.
22408         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22409         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22410         (thumb_code, thumb1_code): Remove.
22411         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22412
22413 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
22414
22415         * config/alpha/alpha.c (alpha_emit_set_const_1)
22416         (alpha_emit_set_long_const, alpha_extract_integer)
22417         (alpha_legitimate_constant_p, alpha_split_const_mov)
22418         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22419         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22420         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22421         HOST_WIDE_INT_1U.
22422         * config/alpha/predicates.md (mode_mask_operand): Do not match
22423         const_double RTX.
22424         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22425         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22426         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22427         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22428         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22429
22430 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
22431
22432         PR target/65780
22433         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22434         default_binds_local_p_2.
22435         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22436         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22437
22438 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22439
22440         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22441
22442 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22443
22444         Patch by Richard Biener
22445         * coverage.c (coverage_obj_init): Delay building of type variant
22446         until the type is finished.
22447
22448 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22449
22450         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22451         mismatch between C and C++ type; compoare correctly ARG_TYPES
22452         for non-prototypes and output correctly parameter index for METHOD_TYPE.
22453         (odr_types_equivalent_p): Fix wording of warning about attributes;
22454         it is OK to match prototype and non-prototype.
22455
22456 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22457
22458         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22459         TYPE_ARG_TYPES list.
22460         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22461         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22462
22463 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
22464
22465         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22466         * tree.h (is_lang_specific): Constify.
22467
22468 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
22469
22470         PR tree-optimization/64454
22471         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22472         Rewrite.
22473
22474 2015-05-08  Jason Merrill  <jason@redhat.com>
22475
22476         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22477         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22478         config/darwin.h, config/darwin9.h, config/elfos.h,
22479         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22480         config/microblaze/microblaze.h, config/mips/mips.h,
22481         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22482         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22483         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22484         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22485         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22486         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22487         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22488         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22489         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22490         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22491         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22492         between string literal and macro name.
22493
22494 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22495
22496         * jump.c: Change argument types to rtx_insn *.
22497         * rtl.h: Adjust.
22498
22499 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22500
22501         * lra-constraints.c: Change argument type to rtx_insn *.
22502
22503 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22504
22505         * df-problems.c: Change argument type to rtx_insn *.
22506
22507 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22508
22509         * combine.c: Change argument type to rtx_insn *.
22510
22511 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22512
22513         * rtl.h: Adjust.
22514         * rtlanal.c: Change argument type to rtx_insn *.
22515
22516 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22517
22518         * sched-deps.c: Change argument types to rtx_insn *.
22519         * sched-int.h: Adjust.
22520
22521 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22522
22523         * dwarf2cfi.c: Change argument type to rtx_insn *.
22524
22525 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22526
22527         * ira.c (decrease_live_ranges_number): Changetype of local
22528         variable to rtx_insn *.
22529         * recog.c: Change argument types to rtx_insn *.
22530         * recog.h: Adjust.
22531
22532 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22533
22534         * reorg.c: Change argument types to rtx_insn *.
22535
22536 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22537
22538         * ira-color.c: Change argument types to rtx_insn *.
22539         * lra-eliminations.c: Likewise.
22540         * ira.h: Adjust.
22541
22542 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22543
22544         * gcse.c: Change argument types to rtx_insn *.
22545
22546 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22547
22548         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22549
22550 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22551
22552         * emit-rtl.c (emit_debug_insn_before): Change argument type to
22553         rtx_insn *.
22554         * rtl.h: Adjust.
22555
22556 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22557
22558         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22559         * rtl.h: Adjust.
22560
22561 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22562
22563         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22564         * rtl.h: Adjust.
22565
22566 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22567
22568         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22569         * rtl.h: Adjust.
22570
22571 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22572
22573         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22574         * rtl.h: Adjust.
22575
22576 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22577
22578         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22579         to rtx_insn *.
22580         * rtl.h: Adjust.
22581
22582 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22583
22584         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22585         to rtx_insn *.
22586         * rtl.h: Likewise.
22587
22588 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22589
22590         * except.c (can_nonlocal_goto): Change type of argument to
22591         rtx_insn *.
22592         * rtl.h: Adjust.
22593
22594 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22595
22596         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22597         * rtl.h: Adjust.
22598
22599 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22600
22601         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22602         * cfgrtl.c (can_delete_label_p): Adjust.
22603         * rtl.h: likewise.
22604
22605 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22606
22607         * reorg.c (stop_search_p): Change argument to rtx_insn *.
22608
22609 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22610
22611         * except.c (make_reg_eh_region_note): Change argument to
22612         rtx_insn *.
22613         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22614         * except.h: Adjust.
22615
22616 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22617
22618         * mode-switching.c (commit_mode_sets): Change type of local
22619         variable from rtx to rtx_insn *.
22620
22621 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
22622
22623         * doc/install.texi (--enable-languages): Add missing jit and lto info.
22624         Add ^ to grep command.
22625         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22626         arg to last gimple_simplify declaration.  Add missing gimple_build
22627         declaration for built-in function case with four tree args.
22628
22629 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22630             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22631
22632         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22633         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22634         (GNU_USER_DYNAMIC_LINKERN32): Update.
22635
22636 2015-05-08  Richard Biener  <rguenther@suse.de>
22637
22638         PR tree-optimization/66036
22639         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22640         Handle strided group loads.
22641         (vect_verify_datarefs_alignment): Likewise.
22642         (vect_enhance_data_refs_alignment): Likewise.
22643         (vect_analyze_group_access): Likewise.
22644         (vect_analyze_data_ref_access): Likewise.
22645         (vect_analyze_data_ref_accesses): Likewise.
22646         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22647         (vectorizable_load): Likewise.
22648
22649 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
22650
22651         * config/rs6000/rs6000.md: Require operand inequality in one
22652         of the peepholes.
22653
22654 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22655             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22656
22657         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22658         from (set ...).
22659         * config/rx/rx.md (movdi, movdf): Likewise.
22660         Likewise for define_peephole2s.
22661
22662 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22663
22664         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22665         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22666         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22667         vtst_u64): Rewrite using gcc vector extensions.
22668
22669 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22670
22671         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22672         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22673
22674 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
22675
22676         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22677
22678 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22679
22680         * config/glibc-stdint.h (OPTION_MUSL): Define.
22681         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22682         Change the definition based on OPTION_MUSL for 64 bit targets.
22683         * config/linux.h (OPTION_MUSL): Redefine.
22684         * config/alpha/linux.h (OPTION_MUSL): Redefine.
22685         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22686         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22687
22688 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
22689             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22690
22691         * config.gcc (LIBC_MUSL): New tm_defines macro.
22692         * config/linux.h (OPTION_MUSL): Define.
22693         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22694         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22695         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22696         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22697         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22698         * config/linux.opt (mmusl): New option.
22699         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22700         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22701         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22702         * configure: Regenerate.
22703
22704 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22705             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22706
22707         PR target/48904
22708         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22709         * config/i386/knetbsd-gnu64.h: New file.
22710
22711 2015-05-08  Marek Polacek  <polacek@redhat.com>
22712
22713         PR c/64918
22714         * doc/invoke.texi: Document -Woverride-init-side-effects.
22715
22716 2015-05-07  Marek Polacek  <polacek@redhat.com>
22717
22718         PR c/65179
22719         * doc/invoke.texi: Document -Wshift-negative-value.
22720
22721 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
22722
22723         * gcov-tool.c (do_merge): Refactore to remove int ret.
22724         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22725         !type == FUNC to type != FUNC.
22726         * reload.h (struct target_reload): Changee to type of
22727         x_spill_indirect_levels from bool to unsigned char.
22728
22729 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
22730
22731         * rtl.h (always_void_p): New function.
22732         * gengenrtl.c (always_void_p): Likewise.
22733         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22734         with code foo are always VOIDmode.
22735         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22736         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22737         compare-elim.c, config/aarch64/aarch64.c,
22738         config/aarch64/aarch64.md, config/alpha/alpha.c,
22739         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22740         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22741         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22742         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22743         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22744         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22745         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22746         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22747         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22748         config/ia64/vect.md, config/iq2000/iq2000.c,
22749         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22750         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22751         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22752         config/mep/mep.c, config/microblaze/microblaze.c,
22753         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22754         config/mn10300/mn10300.c, config/msp430/msp430.c,
22755         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22756         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22757         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22758         config/rs6000/altivec.md, config/rs6000/rs6000.c,
22759         config/rs6000/rs6000.md, config/rs6000/vector.md,
22760         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22761         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22762         config/sh/sh.md, config/sh/sh_treg_combine.cc,
22763         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22764         config/spu/spu.md, config/stormy16/stormy16.c,
22765         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22766         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22767         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22768         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22769         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22770         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22771         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22772         var-tracking.c: Update calls accordingly.
22773
22774 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22775
22776         PR middle-end/192
22777         PR middle-end/54303
22778         * varasm.c (function_mergeable_rodata_prefix): New function.
22779         (mergeable_string_section): Use it.
22780         (mergeable_constant_section): Use it.
22781
22782 2015-05-07  Jeff Law  <law@redhat.com>
22783
22784         PR target/39726
22785         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22786         simplifier to narrow arithmetic.
22787         * generic-match-head.c: (types_match, single_use): New functions.
22788         * gimple-match-head.c: (types_match, single_use): New functions.
22789
22790 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22791
22792         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22793         rtx type.
22794
22795 2015-05-07  Richard Biener  <rguenther@suse.de>
22796
22797         PR tree-optimization/66002
22798         * passes.def: Schedule another pass_merge_phi after ifcombine, right
22799         before phiopt.
22800
22801 2015-05-07  Marek Polacek  <polacek@redhat.com>
22802             Martin Uecker  <uecker@eecs.berkeley.edu>
22803
22804         * doc/invoke.texi: Document -fsanitize=bounds-strict.
22805         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22806         into SANITIZE_NONDEFAULT.
22807         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22808
22809 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
22810
22811         PR target/66015
22812         * config/alpha/alpha.c (alpha_override_options_after_change): New.
22813         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22814         (alpha_override_options): Move align_loops, align_jumps and
22815         align_functions handling into alpha_override_options_after_change.
22816
22817 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
22818             Chris Jones  <chrisj@nvidia.com>
22819             Joshua Conner  <jconner@nvidia.com>
22820
22821         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22822         linking of crtfastmath.o.
22823         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22824
22825 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
22826
22827         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22828         (cstore<mode>4_unsigned_imm): New expander.
22829         (cstore<mode>4): Remove empty constraint strings.  Use the new
22830         expanders.
22831
22832 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
22833
22834         PR target/64208
22835         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22836         alternatives.
22837
22838 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22839
22840         * config/aarch64/geniterators.sh: Use standard BRE in sed.
22841
22842 2015-05-06  Alan Modra  <amodra@gmail.com>
22843
22844         PR target/66033
22845         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22846         (UNSPEC_NOP): Define.
22847         (reload_vsx_from_gpr<mode>): Add missing DONE.
22848         (reload_gpr_from_vsx<mode>): Likewise.
22849         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22850         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22851
22852 2015-05-06  Christian Bruel  <christian.bruel@st.com>
22853
22854         PR target/66015
22855         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22856         align_jumps, align_functions into aarch64_override_options_after_change.
22857
22858 2015-05-06  Richard Biener  <rguenther@suse.de>
22859
22860         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22861         vect_transform_slp_perm_load to check if we support a permutation
22862         for basic-block vectorization.
22863
22864 2015-05-06  Nick Clifton  <nickc@redhat.com>
22865
22866         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22867         used, even if it is not being used as a frame pointer.
22868
22869 2015-05-05  Jason Merrill  <jason@redhat.com>
22870
22871         * dwarf2out.c (gen_member_die): Don't emit anything for an
22872         anonymous class constructor.
22873
22874 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
22875
22876         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22877         that it reflects the block structure.
22878         (afdo_propagate_edge): Likewise.
22879         (afdo_calculate_branch_prob): Likewise.
22880         (afdo_annotate_cfg): Likewise.
22881         * cfgcleanup.c (equal_different_set_p): Likewise.
22882         (try_crossjump_to_edge): Likewise.
22883         * cgraph.c (cgraph_node::verify_node): Likewise.
22884         * cgraphunit.c (expand_all_functions): Likewise.
22885         * config/i386/i386.c (ix86_expand_copysign): Likewise.
22886         (exact_dependency_1): Likewise.
22887         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22888         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22889         * gensupport.c (process_define_subst): Likewise.
22890         * lto-wrapper.c (merge_and_complain): Likewise.
22891         * tree-if-conv.c (if_convertible_bb_p): Likewise.
22892         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22893         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22894         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22895         * tree-vect-loop.c (vectorizable_reduction): Likewise.
22896         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22897         * tree-vect-stmts.c (vectorizable_shift): Likewise.
22898         * tree-vrp.c (vrp_finalize): Likewise.
22899         * tree.c (variably_modified_type_p): Likewise.
22900
22901 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
22902
22903         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22904         on darwin12 and later.
22905         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22906         file to pass -rdynamic on darwin12 and later.
22907         * config/darwin.opt (rdynamic): Add.
22908
22909 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22910
22911         * doc/extend.texi (C Extensions): Update menu for moved Variable
22912         Attributes and Type Attributes sections.
22913
22914 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22915
22916         PR target/65990
22917         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22918         if rep_8byte stringop strategy was specified for 32-bit target.
22919
22920 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
22921
22922         PR target/65915
22923         * config/i386/i386.md (vector convert to float spltiter): Check for
22924         xmm16+, when splitting scalar float conversion.
22925         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22926
22927 2015-05-05  Nick Clifton  <nickc@redhat.com>
22928
22929         * config/msp430/msp430-opts.h (enum msp430_regions): New.
22930         * config/msp430/msp430.c (msp430_override_options): Complain if
22931         -mcode-region or -mdata-region is used on a non MSP430X.
22932         (msp430_section_attr): New function.  Checks lower, upper and
22933         either attributes.
22934         (msp430_attribute_table): Add lower, upper and either.
22935         (gen_prefix): New function.  Generates a prefix for a section
22936         name.
22937         (msp430_select_section): New function - handles the choice of
22938         section for an object.  Takes into account memory region
22939         attributes and options.
22940         (msp430_function_section): Use gen_prefix.
22941         (TARGET_SECTION_TYPE_FLAGS): Define.
22942         (msp430_section_type_flags): New function.
22943         (TARGET_ASM_UNIQUE_SECTION): Define.
22944         (msp430_unique_section): New function.
22945         (msp430_output_aligned_decl_common): New function.
22946         (msp430_do_not_relax_short_jumps): New function.
22947         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
22948         Define.
22949         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22950         * config/msp430/msp430-protos.h
22951         (msp430_do_not_relax_short_jumps): New prototype.
22952         (msp430_output_aligned_decl_common): New prototype.
22953         * config/msp430/msp430.md (length): New attribute.
22954         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
22955         then use a long code sequence for short jumps.
22956         * config/msp430/msp430.opt (mcode-region): New.
22957         (mdata-region): New.
22958         * doc/invoke.texi: Document new options.
22959         * doc/extend.texi: Document new attributes.
22960
22961 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22962
22963         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
22964         (tune_params): Add field branch_costs.
22965         (aarch64_branch_cost): Declare.
22966         * gcc/config/aarch64.c (generic_branch_cost): New.
22967         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
22968         (cortexa53_tunings): Likewise.
22969         (cortexa57_tunings): Likewise.
22970         (thunderx_tunings): Likewise.
22971         (xgene1_tunings): Likewise.
22972         (aarch64_branch_cost): Define.
22973         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
22974
22975 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
22976
22977         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
22978         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
22979         * config/i386/i386.md: Ditto.
22980         * config/i386/winnt.c: Ditto.
22981
22982 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
22983
22984         * doc/extend.texi (__atomic Builtins): Move implementation details
22985         to the end of the description, rewrite opening paragraphs, state
22986         difference with __sync builtins, state C11/C++11 assumptions,
22987         weaken itemized descriptions, add explanation of memory model
22988         behaviour, expand description of compare-exchange, simplify text.
22989
22990 2015-05-05  Renlin Li  <renlin.li@arm.com>
22991
22992         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
22993
22994 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
22995
22996         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
22997         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
22998         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
22999         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23000         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23001         * configure: Regenerate.
23002         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23003         * doc/install.texi (aarch64*-*-*): Document new
23004         --enable-fix-cortex-a53-843419 option.
23005         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23006         and -mno-fix-cortex-a53-843419 options.
23007
23008 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
23009
23010         PR target/65871
23011         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23012
23013 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
23014
23015         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23016         fix overactive TYPE_MIN_VALUE check and add FIXME for type
23017         compatibility problems.
23018
23019 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23020
23021         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23022         constraints.
23023         (cbranchsi4_reg): New.
23024         * config/microblaze/microblaze.c
23025         (microblaze_expand_conditional_branch_reg): New.
23026         * config/microblaze/microblaze-protos.h
23027         (microblaze_expand_conditional_branch_reg): New prototype.
23028
23029 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
23030
23031         * config/microblaze/microblaze.md (peephole2): New.
23032
23033 2015-05-04  Jeff Law  <law@redhat.com>
23034
23035         Revert:
23036         2015-05-04  Jeff Law  <law@redhat.com>
23037
23038         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23039         simplifier to narrow arithmetic.
23040         * generic-match-head.c: (types_match, single_use): New functions.
23041         * gimple-match-head.c: (types_match, single_use): New functions.
23042
23043 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23044
23045         PR target/65987
23046         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23047         (split_branches): Likewise.
23048
23049 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
23050
23051         * common.opt (fdelete-null-pointer-checks): Init to -1.
23052         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23053         override flag_delete_null_pointer_checks default.
23054         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23055         behavior re address zero.  Better document target-specific behavior.
23056         (-fisolate-errneous-paths-dereference): Mention relationship to
23057         -fdelete-null-pointer-checks.
23058
23059 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23060
23061         PR tree-optimization/65984
23062         * ubsan.c: Include tree-cfg.h.
23063         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23064         stmt_could_throw_p test, rename can_throw variable to ends_bb.
23065
23066 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23067
23068         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23069         to CONST_DOUBLE_P predicate.
23070         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23071         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23072         allow only operands that satisfy standard_sse_constant_p predicate.
23073         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23074         to CONST_DOUBLE_P predicate.
23075
23076 2015-05-04  Jeff Law  <law@redhat.com>
23077
23078         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23079         simplifier to narrow arithmetic.
23080         * generic-match-head.c: (types_match, single_use): New functions.
23081         * gimple-match-head.c: (types_match, single_use): New functions.
23082
23083 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
23084
23085         * config/arm/arm.c: Restore bootstrap.
23086
23087 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
23088
23089         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23090         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23091         as CONST_WIDE_INT, not CONST_DOUBLE.
23092         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23093         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23094         (ix86_find_base_term): Do not check for CONST_DOUBLE.
23095         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23096         (ix86_build_signbit_mask): Rewrite using wide ints.
23097         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23098         (ix86_rtx_costs): Handle CONST_WIDE_INT.
23099         (find_constant): Ditto.
23100         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23101         using gen_int_mode.
23102         * config/i386/predicates.md (x86_64_immediate_operand)
23103         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23104         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23105         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23106         (const0_operand): Also match const_wide_int.
23107         (constm1_operand): Ditto.
23108         (const1_operand): Ditto.
23109
23110 2015-05-04  Richard Biener  <rguenther@suse.de>
23111
23112         PR tree-optimization/65965
23113         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23114         store groups at gaps.
23115
23116 2015-05-04  Richard Biener  <rguenther@suse.de>
23117
23118         PR tree-optimization/65935
23119         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23120         then make sure to apply that swapping to the IL.
23121
23122 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
23123
23124         * Makefile.in (PATCHLEVEL_c): New variable.
23125         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23126         expand the same way as if DEVPHASE_c was non-empty.
23127
23128 2015-05-04  Kai Tietz  <ktietz@redhat.com>
23129
23130         PR target/65559
23131         * lto-wrapper.c (run_gcc): Open filename
23132         in binary-mode.
23133
23134 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
23135
23136         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
23137         sections up in file, to immediately after the Function Attributes
23138         section.
23139
23140 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
23141
23142         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23143
23144 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23145
23146         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23147         (insert_partition_copy_on_edge): Adjust.
23148         (insert_rtx_to_part_on_edge): Likewise.
23149         (insert_part_to_rtx_on_edge): Likewise.
23150
23151 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23152
23153         * function.c (set_return_jump_label): Change type of argument to
23154         rtx_insn *.
23155         * function.h (set_return_jump_label): Adjust.
23156
23157 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23158
23159         * reload.h (struct reg_equivs_t): Change type of init to
23160         rtx_insn *.
23161         * ira.c (fix_reg_equiv_init): Adjust.
23162         * reload1.c (eliminate_regs_1): Likewise.
23163         (init_eliminable_invariants): Likewise.
23164
23165 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23166
23167         * cselib.c (fp_setter_insn): Take a rtx_insn *.
23168         * cselib.h (fp_setter_insn): Adjust.
23169
23170 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23171
23172         * recog.c (struct validate_replace_src_data): Change type of
23173         insn field to rtx_insn *.
23174         (validate_replace_src_group): Change type of argument to rtx_insn *.
23175         * recog.h (validate_replace_src_group): Adjust.
23176
23177 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23178
23179         * haifa-sched.c: Change the type of some variables to rtx_insn *.
23180         * sched-deps.c: Likewise.
23181         * sched-int.h: Likewise.
23182         * sched-rgn.c: Likewise.
23183         * sel-sched.c: Likewise.
23184
23185 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23186
23187         to rtx_insn *.
23188         * config/i386/i386.c: Change the type of some arguments to
23189         rtx_insn *.
23190         * config/arm/arm.c: Likewise.
23191
23192 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23193
23194         * lra-constraints.c: Change type of some arguments to rtx_insn *.
23195
23196 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23197
23198         * regcprop.c (kill_autoinc_value): Change type of argument to
23199         rtx_insn *.
23200
23201 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23202
23203         * genrecog.c (print_subroutine): Adjust.
23204         * recog.c (get_bool_attr_mask_uncached): Likewise.
23205         * recog.h (struct recog_data_d): Change the type of insn to
23206         rtx_insn *.
23207
23208 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23209
23210         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23211
23212 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23213
23214         * df-problems.c (df_set_note): Change type of argument to
23215         rtx_insn *.
23216
23217 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23218
23219         * builtins.c (expand_builtin_trap): Change type of local
23220         variable to rtx_insn *.
23221         (add_sched_insns_for_speculation): Likewise.
23222         (ix86_emit_save_regs): Likewise.
23223         (get_scratch_register_on_entry): Likewise.
23224         (ix86_emit_restore_reg_using_pop): Likewise.
23225         (ix86_emit_leave): Likewise.
23226         (ix86_emit_restore_regs_using_mov): Likewise.
23227         (ix86_expand_epilogue): Likewise.
23228         Likewise.
23229         (rl78_alloc_physical_registers_umul): Likewise.
23230         * cselib.c (discard_useless_locs): Likewise.
23231         (cselib_invalidate_regno): Likewise.
23232         (cselib_invalidate_mem): Likewise.
23233         * function.c (expand_function_start): Likewise.
23234         (emit_use_return_register_into_block): Likewise.
23235         * gcse.c: Likewise.
23236         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23237         * ifcvt.c (noce_get_alt_condition): Likewise.
23238         * loop-doloop.c (doloop_condition_get): Likewise.
23239         * lra-constraints.c (inherit_in_ebb): Likewise.
23240         * modulo-sched.c (sms_schedule_by_order): Likewise.
23241         * recog.c (next_insn_tests_no_inequality): Likewise.
23242         * reorg.c (emit_delay_sequence): Likewise.
23243         (update_reg_dead_notes): Likewise.
23244         (fix_reg_dead_note): Likewise.
23245         (fill_slots_from_thread): Likewise.
23246         (delete_computation): Likewise.
23247
23248 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
23249
23250         * doc/extend.texi (Variable Attributes): Add menu and proper
23251         @nodes to subsections.  Move Microsoft Windows attributes to
23252         their own subsection.
23253         (Type Attributes): Reorganize introduction to remove duplicate
23254         list of attributes.  Add menu and proper @nodes to subsections.
23255         Alphabetize the main table of common attributes.
23256
23257 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
23258
23259         * match.pd: New simplification patterns.
23260         (x + (x & 1))  -> ((x + 1) & ~1)
23261         (x & ~(x & y)) -> ((x & ~y))
23262         (x | ~(x | y)) -> ((x | ~y))
23263
23264 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23265
23266         * target.def (attribute_table): Mention that struct attribute_spec
23267         is defined in tree-core.h rather than tree.h
23268         * doc/tm.texi: Regenerate.
23269
23270 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
23271
23272         * genrecog.c (test): Rename to rtx_test.  Update rest of file
23273         accordingly.
23274
23275 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23276
23277         PR translation/65959
23278         * params.h (DEFPARAM): Rename msgid to nocmsgid.
23279
23280 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23281
23282         * gcc/config/aarch64/aarch64-protos.h (tune_params):
23283         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23284         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23285         Return value depending on target.
23286         (generic_tunings): Initialize new target settings.
23287         (cortexa53_tunings): Likewise.
23288         (cortexa57_tunings): Likewise.
23289         (thunderx_tunings): Likewise.
23290         (xgene1_tunings): Likewise.
23291
23292 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23293
23294         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23295         Make Cortex-A53 shift costs more accurate.
23296
23297 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23298
23299         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23300         UNSIGNED_FLOAT.
23301
23302 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
23303
23304         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23305         Calculate cost of op0 and op1 in PLUS and MINUS cases.
23306
23307 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23308
23309         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23310         Add cost of op0 in the compare-with-fpzero case.
23311
23312 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
23313
23314         * builtins.c (fold_builtin_1): Remove spurious second
23315         semicolon.
23316         * cgraph.h (symtab_node::get_availability): Likewise.
23317         * opts.c (common_handle_option): Remove spurious second semicolon.
23318         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23319         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23320
23321 2015-04-30  Caroline Tice  <cmtice@google.com>
23322
23323         PR gcov-profile/65929
23324         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23325         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23326         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23327         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23328         * doc/tm.texi: Regenerate.
23329         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
23330         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23331         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
23332         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23333
23334 2015-04-30  Marek Polacek  <polacek@redhat.com>
23335
23336         * varasm.c (handle_cache_entry): Fix logic.
23337
23338 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23339
23340         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23341         (*extrsi5_insn_uxtw_alt): Likewise.
23342         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23343         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23344         operations.
23345
23346 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23347
23348         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23349         fabd in ABS case.
23350
23351 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23352
23353         * config/aarch64/aarch64.md
23354         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23355         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23356         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23357         appropriately.  Handle alternative EON form.
23358
23359 2015-04-30  Renlin Li  <renlin.li@arm.com>
23360
23361         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23362         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23363
23364 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23365
23366         PR ipa/65873
23367         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23368         -fstrict-aliasing boundaries.
23369
23370 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23371
23372         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23373         and [SU]MNEGL patterns.
23374
23375 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23376
23377         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23378         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23379         combined arithmetic-shift ops.  Properly handle all shift and extend
23380         operations that can occur in combination with PLUS/MINUS.
23381         Rename maybe_fma to compound_p.
23382         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23383         arithmetic and shift operations.
23384
23385 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23386
23387         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23388         rather than arith_shift cost when costing ADD/MINUS of an
23389         extended value.
23390
23391 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
23392
23393         PR lto/65948
23394         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23395         to itself.
23396
23397 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
23398
23399         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23400         are for the same position.
23401
23402 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
23403
23404         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
23405         vectorize_loops.
23406         (vectorize_loops): Use it.
23407
23408 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23409
23410         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23411         for aggregate types.
23412         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23413         type to be non_ODR.
23414         * tree.c (need_assembler_name_p): Compute mangled name for
23415         non-fundamental types and integer types.
23416
23417 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
23418
23419         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23420         manual swaps.
23421         * expr.c (expand_expr_real_2): Likewise.
23422
23423 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23424
23425         * tree.c (build_common_builtin_nodes): Do not build
23426         __builtin_alloca_with_align as equivalent of library alloca.
23427
23428 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
23429
23430         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23431         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23432         bugus variants.
23433         * tree.c: Include print-tree.h and ipa-utils.h
23434         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23435         (free_lang_data_in_cgraph): Call verify_type.
23436         (verify_type_variant): New function.
23437         (verify_type): New function.
23438         * tree.h (verify_type): Declare.
23439
23440 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
23441
23442         * config/mips/mips-cpus.def: (mips4): Change default processor
23443         from PROCESSOR_R8000 to PROCESSOR_R10000.
23444
23445 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23446
23447         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23448         la/jalr instead of jal.
23449
23450 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
23451
23452         PR target/65871
23453         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23454         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23455         (setcc+movzbl peephole2): Check also clobbered reg.
23456         (setcc+andl peephole2): Ditto.
23457
23458 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23459
23460         PR libgomp/65099
23461         * config/nvptx/mkoffload.c (target_ilp32): New variable.
23462         (main): Set it depending on "-foffload-abi=[...]".
23463         (compile_native, main): Use it to pass "-m32" or "-m64" to the
23464         compiler.
23465
23466 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23467
23468         PR target/65770
23469         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23470         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23471         Flip lane index back at assembly time for bigendian.
23472
23473 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
23474
23475         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23476         * gimplify.c (gimplify_omp_workshare): Use it.
23477
23478 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23479
23480         * Makefile.in (build/genrecog.o): Depend on inchash.h.
23481         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23482         build/inchash.o
23483         * genrecog.c: Rewrite most of the code except for the third page.
23484
23485 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23486
23487         * inchash.h, inchash.c: Include bconfig.h for build objects.
23488         * Makefile.in (build/inchash.o): New rule.
23489
23490 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
23491
23492         PR target/65924
23493         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23494         number in type attribute expression.
23495
23496 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
23497
23498         * loop-iv.c (canon_condition): Generalize to all types of integer
23499         constant.
23500
23501 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
23502
23503         * gimple-walk.c: Prune duplicate or unneeded includes.
23504         (walk_gimple_asm): Only call parse_input_constraint or
23505         parse_output_constraint if their findings are used.
23506         Honour parse_input_constraint and parse_output_constraint
23507         result.
23508
23509 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23510
23511         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23512
23513 2015-04-29  Tom de Vries  <tom@codesourcery.com>
23514
23515         PR tree-optimization/65893
23516         * passes.def (pass_all_optimizations): Move pass_stdarg to after
23517         pass_dce.
23518
23519 2015-04-29  Richard Biener  <rguenther@suse.de>
23520
23521         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23522         compute GROUP_SIZE for basic-block SLP.
23523         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23524         take into account gaps.
23525         (vect_get_mask_element): Properly reject references to previous
23526         vectors.
23527         (vect_transform_slp_perm_load): Likewise.
23528
23529 2015-04-29  Christian Bruel  <christian.bruel@st.com>
23530
23531         PR target/64835
23532         * config/i386/i386.c (ix86_default_align): New function.
23533         (ix86_override_options_after_change): Call ix86_default_align.
23534         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23535         (ix86_override_options_after_change): New function.
23536
23537 2015-04-28  Jeff Law  <law@redhat.com>
23538
23539         * tree-ssa-dom.c (record_equality); Fix comment typos.
23540
23541 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23542
23543         PR tree-optimization/65887
23544         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23545
23546 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
23547
23548         * doc/extend.texi (Declaring Attributes of Functions): Split into
23549         subsections by target.  Alphabetize the table of common attributes.
23550         Rewrite some of the introductory text to reflect the new structure.
23551         Update some cross-references to point to the new subsections.
23552         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
23553         duplicate copies in the discussion of function, label, and type
23554         attributes.
23555
23556 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
23557
23558         PR bootstrap/65910
23559         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23560
23561 2015-04-28  Jason Merrill  <jason@redhat.com>
23562
23563         PR c++/65734
23564         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23565         (finalize_type_size): Respect TYPE_USER_ALIGN.
23566         (layout_type) [ARRAY_TYPE]: Likewise.
23567
23568 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
23569
23570         * config/arm/arm.md (*arm_movt): Fix type attribute.
23571         (*cmpsi_shiftsi): Likewise.
23572         (*cmpsi_shiftsi_swp): Likewise.
23573         (*movsicc_insn): Likewise.
23574         (*cond_move): Likewise.
23575         (*if_plus_move): Likewise.
23576         (*if_move_plus): Likewise.
23577         (*if_arith_move): Likewise.
23578         (*if_move_arith): Likewise.
23579         (*if_shift_move): Likewise.
23580         (*if_move_shift): Likewise.
23581         (*arm_movtas_ze): Likewise.
23582         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23583         redundancy and type attribute.
23584         (*thumb2_movsi_insn): Fix type attribute.
23585         (*thumb2_addsi_short): Likewise.
23586         (thumb2_addsi3_compare0): Likewise.
23587         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23588         attributes accordingly.
23589
23590 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23591
23592         PR other/65911
23593         * function.c (pad_to_arg_alignment): Add parentheses.
23594
23595 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
23596
23597         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23598         libgcc/config/frv/elf-lib.h.
23599
23600 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23601
23602         * tree-call-cdce.c: Fix example in header comment.
23603
23604 2015-04-28  Richard Biener  <rguenther@suse.de>
23605
23606         PR tree-optimization/62283
23607         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23608         fails fatally and we are vectorizing a basic-block simply
23609         cause the child to be constructed piecewise.
23610         (vect_analyze_slp_cost_1): Adjust.
23611         (vect_detect_hybrid_slp_stmts): Likewise.
23612         (vect_bb_slp_scalar_cost): Likewise.
23613         (vect_get_constant_vectors): For piecewise constructed
23614         constants place them after the last def.
23615         (vect_get_slp_defs): Adjust.
23616         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23617         externals for basic-block vectorization.
23618
23619 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23620
23621         PR target/63503
23622         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23623         aarch64-*-*.
23624         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23625         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23626         (AARCH64_TUNE_FMA_STEERING): Likewise.
23627         * config/aarch64/aarch64-cores.def: Set
23628         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23629         FMUL/FMADD instructions.
23630         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23631         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
23632         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23633         * config/aarch64/cortex-a57-fma-steering.h: New file.
23634         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23635
23636 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
23637
23638         * gensupport.c (std_preds): Add missing codes to address_operand entry.
23639
23640 2015-04-28  Richard Biener  <rguenther@suse.de>
23641
23642         PR tree-optimization/65851
23643         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23644         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
23645         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
23646         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23647         (ccp_visit_phi_node): Adjust.
23648         (evaluate_stmt): For simplifications to SSA names return its
23649         lattice value if that isn't VARYING.  Return immediately when
23650         simplified to a constant.
23651         (visit_assignment): Adjust.
23652         (ccp_visit_stmt): Likewise.
23653
23654 2015-04-28  Tom de Vries  <tom@codesourcery.com>
23655
23656         PR tree-optimization/65818
23657         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23658         evaluated.
23659
23660 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23661
23662         * calls.c (save_fixed_argument_area): Don't check
23663         ARGS_GROW_DOWNWARD with the preprocessor.
23664         (restore_fixed_argument_area): Likewise.
23665         (mem_overlaps_already_clobbered_arg_p): Likewise.
23666         (check_sibcall_argument_overlap): Likewise.
23667         (expand_call): Likewise.
23668         (emit_library_call_value_1): Likewise.
23669         (store_one_arg): Likewise.
23670         * function.c (assign_parms): Likewise.
23671         (locate_and_pad_parm): Likewise.
23672         (pad_to_arg_alignment): Likewise.
23673         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23674
23675 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23676
23677         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23678         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23679         * calls.c (save_fixed_argument_area): Don't chekc if
23680         ARGS_GROW_DOWNWARD is defined.
23681         (restore_fixed_argument_area): Likewise.
23682         (mem_overlaps_already_clobbered_arg_p): Likewise.
23683         (check_sibcall_argument_overlap): Likewise.
23684         (expand_call): Likewise.
23685         (emit_library_call_value_1): Likewise.
23686         (store_one_arg): Likewise.
23687         * function.c (assign_parms): Likewise.
23688         (locate_and_pad_parm): Likewise.
23689         (pad_to_arg_alignment): Likewise.
23690         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23691
23692 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23693
23694         * defaults.h (gen_epilogue): New function.
23695         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23696         defined.
23697         * cfgrtl.c (cfg_layout_finalize): Likewise.
23698         * df-scan.c: Likewise.
23699         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23700         (reposition_prologue_and_epilogue_notes): Likewise.
23701         * reorg.c (find_end_label): Likewise.
23702         * toplev.c: Likewise.
23703
23704 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23705
23706         * bb-reorder.c (HAVE_return): Don't check if its undefined.
23707         * defaults.h (gen_simple_return): New function.
23708         (gen_simple_return): Likewise.
23709         (HAVE_return): Add default definition to false.
23710         (HAVE_simple_return): Likewise.
23711         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23712         HAVE_return and HAVE_simple_return are defined.
23713         * function.c (gen_return_pattern): Likewise.
23714         (convert_jumps_to_returns): Likewise.
23715         (thread_prologue_and_epilogue_insns): Likewise.
23716         * reorg.c (find_end_label): Likewise.
23717         (dbr_schedule): Likewise.
23718         * shrink-wrap.c: Likewise.
23719         * shrink-wrap.h: Likewise.
23720
23721 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23722
23723         * defaults.h (EPILOGUE_USES): Add default definition of false.
23724         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23725         * resource.c (init_resource_info): Likewise.
23726
23727 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23728
23729         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23730         to false.
23731         * dwarf2out.c (field_byte_offset): REmove check if
23732         PCC_BITFIELD_TYPE_MATTERS is defined.
23733         * stor-layout.c (layout_decl): Likewise.
23734         (update_alignment_for_field): Likewise.
23735         (place_field): Likewise.
23736
23737 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23738
23739         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23740         true.
23741         * regrename.c (check_new_reg_p): Remove check if
23742         HARD_REGNO_RENAME_OK is defined.
23743         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23744
23745 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23746
23747         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23748         * cse.c (fold_rtx): Likewise.
23749         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23750         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23751         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23752         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23753         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23754         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23755         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23756         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23757         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23758         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23759         * Likewise.
23760         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23761         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23762         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23763         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23764         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23765         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23766         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23767         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23768         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23769         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23770         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23771         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23772         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23773         * doc/tm.texi: Regenerate.
23774         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23775         either true or false.
23776
23777 2015-04-27  Jeff Law  <law@redhat.com>
23778
23779         PR tree-optimization/65217
23780         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23781         of them has a single use, make sure it is the LHS of the implied
23782         copy.
23783
23784 2015-04-28  Alan Modra  <amodra@gmail.com>
23785
23786         PR target/65810
23787         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23788         (offsettable_ok_by_alignment): Use minimum of decl and toc
23789         pointer alignment.  Replace dead code with assertion.
23790         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
23791         case if size exceeds toc pointer alignment.
23792         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23793         (rs6000_emit_move): Likewise.
23794         * configure.ac: Add linker toc pointer alignment check.
23795         * configure: Regenerate.
23796         * config.in: Regenerate.
23797
23798 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
23799
23800         * config.gcc: Add h8300-*-linux.
23801         * config/h8300/linux.h: New.
23802         * config/h8300/t-linux: New.
23803         * config/h8300/h8300.c (h8300_option_override): Normal mode
23804         is not supported for h8300-*-linux.
23805         (h8300_file_start): Target priority change.
23806         (get_shift_alg): Likewise.
23807         (h8300_shift_need_scratch_p): Likewise.
23808         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23809         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23810
23811 2015-04-27  Caroline Tice  <cmtice@google.com>
23812
23813         * final.c (final_scan_insn):  Output cold_function_name as function
23814         type.
23815         * varasm.c (cold_function_name):  Make global.
23816         (assemble_start_function):  Re-set cold_function_name.
23817         (assemble_end_function): Output cold partition size.
23818         * varasm.h (cold_function_name):  Declare global.
23819
23820 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
23821
23822         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23823         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23824         constraint.
23825         (*movxi_internal_avx512f): Ditto.
23826         (define_split): Check for xmm16+, when splitting scalar float_extend.
23827         (*extendsfdf2_mixed): Use "v" constraint.
23828         (define_split): Check for xmm16+, when splitting scalar float_truncate.
23829         (*truncdfsf_fast_sse): Use "v" constraint.
23830         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23831         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23832         (define_peephole2): Check for xmm16+, when converting scalar
23833         float_truncate.
23834         (define_peephole2): Check for xmm16+, when converting scalar
23835         float_extend.
23836         (*fop_<mode>_comm_mixed): Use "v" constraint.
23837         (*fop_<mode>_comm_sse): Ditto.
23838         (*fop_<mode>_1_mixed): Ditto.
23839         (*sqrt<mode>2_sse): Ditto.
23840         (*ieee_s<ieee_maxmin><mode>3): Ditto.
23841
23842 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23843
23844         * combine.c (simplify_if_then_else): Use std::swap instead
23845         of manually swapping.
23846         (known_cond): Likewise.
23847         (simplify_comparison): Likewise.
23848
23849 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
23850
23851         PR target/64579
23852         * config/rs6000/htm.md: Remove all define_expands.
23853         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23854         UNSPECV_HTM_TABORTWCI): Remove.
23855         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23856         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23857         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23858         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23859         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23860         tabortwci_internal): Remove define_insns.
23861         (tabort<wd>c, tabort<wd>ci): New define_insns.
23862         (tabort): Use gpc_reg_operand.
23863         (tcheck): Remove operand.
23864         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23865         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23866         expected value.
23867         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23868         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
23869         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23870         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23871         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23872         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23873         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23874         (tcheck): Remove builtin argument.
23875         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23876         not TARGET_64BIT.
23877         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
23878         tabortdc and tabortdci builtins when not in 64-bit mode.
23879         Modify code to handle the loss of the HTM define_expands.
23880         Emit code to copy the CR register to TARGET.
23881         (htm_init_builtins): Modify code to handle the loss of the HTM
23882         define_expands.
23883         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23884         (RS6000_BTC_64BIT): Likewise.
23885         (RS6000_BTC_CR): New macro.
23886         * doc/extend.texi: Update documentation for htm builtins.
23887
23888 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23889
23890         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23891         of manually swapping.
23892         (simplify_associative_operation): Likewise.
23893         (simplify_binary_operation): Likewise.
23894         (simplify_plus_minus): Likewise.
23895         (simplify_relational_operation): Likewise.
23896         (simplify_ternary_operation): Likewise.
23897
23898 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23899
23900         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23901         (xs_hi_nonmemory_operand): Remove error.
23902         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23903         general_operand rather than xs_hi_general_operand.
23904
23905 2015-04-27  Richard Biener  <rguenther@suse.de>
23906
23907         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23908         (record_equivalences_from_stmt): Valueize rhs.
23909         (record_equality): Canonicalize x and y order via
23910         tree_swap_operands_p.  Do not swap operands for same loop depth.
23911
23912 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
23913
23914         PR target/65296
23915         PR target/65895
23916         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23917         Add hint how to use own spec file.
23918
23919 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
23920
23921         PR tree-optimization/65875
23922         * tree-vrp.c (update_value_range): If in is_new case setting
23923         old_vr to VR_VARYING, also set new_vr to it.  Remove
23924         old_vr->type == VR_VARYING test.
23925         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23926         SSA_PROP_INTERESTING if update_value_range returned true,
23927         but new range is VR_VARYING.
23928
23929 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23930
23931         * combine.c (sign_extend_short_imm): New.
23932         (set_nonzero_bits_and_sign_copies): Use above new function for sign
23933         extension of src short immediate.
23934         (reg_nonzero_bits_for_combine): Likewise for tem.
23935
23936 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23937
23938         * stor-layout.c (self_referential_component_ref_p): New predicate.
23939         (copy_self_referential_tree_r): Use it.
23940         (self_referential_size): Punt for simple operations directly involving
23941         self-referential component references.
23942         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
23943
23944 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23945
23946         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
23947
23948 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
23949
23950         * vec.h (vec): Make splice arguments const.  Update definitions
23951         accordingly.
23952
23953 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
23954
23955         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
23956         alternatives.
23957
23958 2015-04-26  Tom de Vries  <tom@codesourcery.com>
23959
23960         PR tree-optimization/65826
23961         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
23962
23963 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
23964
23965         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
23966         (*madd3<mode>): Ditto.
23967         (*msub4<mode>): Ditto.
23968         (*msub3<mode>): Ditto.
23969         (*nmadd4<mode>): Ditto.
23970         (*nmadd3<mode>): Ditto.
23971         (*nmadd4<mode>_fastmath): Ditto.
23972         (*nmadd3<mode>_fastmath): Ditto.
23973         (*nmsub4<mode>): Ditto.
23974         (*nmsub3<mode>): Ditto.
23975         (*nmsub4<mode>_fastmath): Ditto.
23976         (*nmsub3<mode>_fastmath): Ditto.
23977
23978 2015-04-24  Jason Merrill  <jason@redhat.com>
23979
23980         PR c++/50800
23981         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
23982         down when building TYPE_CANONICAL.
23983         (build_pointer_type_for_mode): Likewise.
23984
23985 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
23986
23987         * genrecog.c (validate_pattern): Check matching constraint refers
23988         to a lower numbered operand.
23989
23990 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23991
23992         PR target/65849
23993         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
23994         save to independent variables use the Save attribute.  This will
23995         allow these options to be modified with the #pragma/attribute
23996         target support.
23997         (-mallow-movmisalign): Likewise.
23998         (-mallow-df-permute): Likewise.
23999         (-msched-groups): Likewise.
24000         (-malways-hint): Likewise.
24001         (-malign-branch-targets): Likewise.
24002         (-mvectorize-builtins): Likewise.
24003         (-msave-toc-indirect): Likewise.
24004
24005         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24006         can be set via the #pragma/attribute target support.
24007         (rs6000_opt_vars): Likewise.
24008         (rs6000_inner_target_options): If VSX was set, also set
24009         -mno-avoid-indexed-addresses.
24010
24011 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24012
24013         * config/arm/iterators.md (shiftable_ops): Rename to...
24014         (SHIFTABLE_OPS): ... This.  Update use in comments.
24015         (ior_xor): Rename to...
24016         (IOR_XOR): ... This.
24017         (vqh_ops): Rename to...
24018         (VQH_OPS): ... This.
24019         (vqhs_ops): Rename to...
24020         (VQHS_OPS): ... This.
24021         (rshifts): Rename to...
24022         (RSHIFTS): ... This.
24023         (returns): Rename to...
24024         (RETURNS): ... This.
24025         * config/arm/arm.md: Update uses of the above.
24026         * config/arm/neon.md: Likewise.
24027
24028 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24029
24030         * config.host (case ${host}): Add aarch64*-*-linux case.
24031         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24032         fields to all the cores.
24033         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24034         Add MCPU_MTUNE_NATIVE_SPECS.
24035         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24036         field to all extensions.
24037         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24038         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24039         Adjust definition of AARCH64_OPT_EXTENSION.
24040         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24041         (MCPU_MTUNE_NATIVE_SPECS): Define.
24042         * config/aarch64/driver-aarch64.c: New file.
24043         * config/aarch64/x-arch64: New file.
24044         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24045         -mtune and -march.
24046
24047 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24048             Wei Mi  <wmi@google.com>
24049
24050         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24051         * config/i386/i386.c (extract_base_offset_in_addr): New function.
24052         (ix86_operands_ok_for_move_multiple): Ditto.
24053         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24054         (movlpd/movhpd to movupd peephole2): Ditto.
24055
24056 2015-04-24  Marek Polacek  <polacek@redhat.com>
24057
24058         PR c/61534
24059         * input.h (from_macro_expansion_at): Define.
24060
24061         PR c/63357
24062         * doc/invoke.texi: Update description of -Wlogical-op.
24063
24064 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24065
24066         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24067         ternary operator in fprintf and harmonize spacing.
24068
24069 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24070
24071         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24072         Mark operand1 commutative.
24073
24074 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
24075
24076         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24077         input operands in memory.
24078         (*vec_concatv2si_sse4_1): Ditto.
24079         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24080         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24081         register_operand.
24082         (vec_extract_hi_v32hi): Ditto.
24083         (vec_extract_hi_v64hi): Ditto.
24084         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24085
24086 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24087             Steven Bosscher <steven@gcc.gnu.org>
24088
24089         PR rtl-optimization/34503
24090         * cprop.c (cprop_reg_p): New.
24091         (hash_scan_set): Use above function to check if register can be
24092         propagated.
24093         (find_avail_set): Return up to two sets, one whose source is a
24094         register and one whose source is a constant.  Sets are returned in an
24095         array passed as parameter rather than as a return value.
24096         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
24097         sets returned by find_avail_set, starting with the one whose source is
24098         a constant. Use cprop_reg_p to check if register can be propagated.
24099         (do_local_cprop): Use cprop_reg_p to check if register can be
24100         propagated.
24101         (implicit_set_cond_p): Likewise.
24102
24103 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24104
24105         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24106         (sem_function::equals): IGNORED_NODES parameter is now unused;
24107         update call of equals_private.
24108         (sem_function::equals_private): Do not call equals_wpa; skip
24109         gimple body matching if there is no body.
24110         (sem_function::init): Add logic to hash tthunk info.
24111         (sem_function::parse): Also parse thunks.
24112         * ipa-icf.h (equals_private): Update declaration.
24113
24114 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24115
24116         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24117         asterisk from name so this can be generated directly.
24118         (*altivec_stvx_<mode>_internal): Likewise.
24119         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24120         that this is never called during or after reload/lra.
24121         (rs6000_frame_related): Remove split_reg
24122         argument and logic that references it.
24123         (emit_frame_save): Remove last parameter from call to
24124         rs6000_frame_related.
24125         (rs6000_emit_prologue): Remove last parameter from eight calls to
24126         rs6000_frame_related.  Force generation of stvx instruction for
24127         Altivec register saves.  Remove split_reg handling, which is no
24128         longer needed.
24129         (rs6000_emit_epilogue):  Force generation of lvx instruction for
24130         Altivec register restores.
24131
24132 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24133
24134         * config/rs6000/rs6000.opt (mcrypto): Change option description to
24135         match category changes in ISA 2.07B.
24136
24137 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24138
24139         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24140         iterators.
24141         (cmp_op, cmp_type): New code attributes.
24142         (NEON_VCMP, NEON_VACMP): New int iterators.
24143         (cmp_op_unsp): New int attribute.
24144         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24145         (neon_vceq<mode>): Delete.
24146         (neon_vc<cmp_op><mode>_insn): New pattern.
24147         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24148         (neon_vcgeu<mode>): Delete.
24149         (neon_vcle<mode>): Likewise.
24150         (neon_vclt<mode>: Likewise.
24151         (neon_vcage<mode>): Likewise.
24152         (neon_vcagt<mode>): Likewise.
24153         (neon_vca<cmp_op><mode>): New define_expand.
24154         (neon_vca<cmp_op><mode>_insn): New pattern.
24155         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24156
24157 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24158
24159         * tree.h (attribute_value_equal): Declare.
24160         * tree.c (attribute_value_equal): Export.
24161
24162 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24163
24164         * ipa-icf.c (sem_item::compare_attributes): New function.
24165         (sem_item::compare_referenced_symbol_properties): Compare variable
24166         attributes.
24167         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24168         (sem_function::param_used_p): New function.
24169         (sem_function::equals_wpa): Fix attribute comparsion; match
24170         parameter type codes; do not compare paremter flags when
24171         they are not used; compare edge flags; compare indirect calls.
24172         (sem_item::update_hash_by_addr_refs): Hash reference type.
24173         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24174         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24175         reference use type.
24176         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24177         * ipa-icf.h (compare_attributes, param_used_p): Declare.
24178
24179 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
24180
24181         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24182         cleanup.
24183         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24184         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24185         (sem_item::compare_referenced_symbol_properties): New.
24186         (sem_item::hash_referenced_symbol_properties): New.
24187         (sem_item::compare_cgraph_references): Rename to ...
24188         (sem_item::compare_symbol_references): ... this one; use
24189         compare_referenced_symbol_properties.
24190         (sem_function::equals_wpa): Do not compare
24191         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24192         DECL_IS_OPERATOR_NEW; compare pointer sizes.
24193         (sem_item::update_hash_by_addr_refs): Call
24194         hash_referenced_symbol_properties.
24195         (sem_item::update_hash_by_local_refs): Cleanup.
24196         (sem_function::merge): Do not mix up symbol properties.
24197         (sem_variable::equals_wpa): Use compare_symbol_references.
24198         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24199         (sem_item::hash_referenced_symbol_properties): New.
24200         (sem_item::compare_symbol_references): New.
24201         (sem_item::compare_cgraph_references): Remove.
24202
24203 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
24204
24205         PR target/26702
24206         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24207         Emit size of local.
24208
24209 2015-04-23  Nick Clifton  <nickc@redhat.com>
24210
24211         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24212         ATTRIBUTE_UNUSED to x parameter.
24213         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24214
24215 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24216
24217         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24218         TARGET_CRYPTO to TARGET_P8_VECTOR>
24219         (crypto_vpermxor_<mode>): Likewise.
24220         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24221         (BU_CRYPTO_3A): Likewise.
24222         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24223         (BU_CRYPTO_OVERLOAD_3A): New #define.
24224         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24225         (VPMSUMH): Likewise.
24226         (VPMSUMW): Likewise.
24227         (VPMSUMD): Likewise.
24228         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24229         (VPERMXOR_V4SI): Likewise.
24230         (VPERMXOR_V8HI): Likewise.
24231         (VPERMXOR_V16QI): Likewise.
24232         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24233         BU_CRYPTO_OVERLOAD_2A.
24234         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24235         BU_CRYPTO_OVERLOAD_3A.
24236         * config/rs6000/rs6000.opt (mcrypto): Change description of
24237         option.
24238
24239 2015-04-23  Richard Biener  <rguenther@suse.de>
24240
24241         * passes.def: Remove copy propagation passes run directly after CCP.
24242         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24243         SSA names.
24244         (ccp_visit_phi_node): Rework to handle first executable edge
24245         specially.
24246
24247 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
24248
24249         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24250         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24251         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24252         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24253         (thumb_legimitimize_reload_address): Remove.
24254         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24255         Remove.
24256         (thumb_legimitimize_reload_address): Remove.
24257
24258 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24259
24260         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24261
24262 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24263
24264         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24265         MAX_LDM_STM_OPS.
24266         (store_multiple): Likewise.
24267
24268 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24269
24270         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24271         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24272         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24273         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24274         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24275         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24276         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24277         Specify issue_rate value.
24278         (arm_issue_rate): Look up issue rate from tuning structs. Remove
24279         large switch statement.
24280         (arm_marvell_pj4_tune): New struct.
24281         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24282         struct.
24283
24284 2015-04-23  Richard Biener  <rguenther@suse.de>
24285
24286         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24287         (vect_find_last_store_in_slp_instance): Rename to ...
24288         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24289         (vect_analyze_slp_cost_1): Use vector_load for constant defs
24290         and vec_construct for external defs when estimating prologue cost.
24291         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24292         Compute costs here only when vectorizing loops.
24293         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24294         have been determined.
24295         (vect_schedule_slp_instance): Simplify vectorized code placement
24296         and prepare for in-BB external defs.
24297         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24298         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24299         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24300         guard.
24301         (vect_model_load_cost): Likewise.
24302         (vectorizable_store): Instead add it here.
24303         (vectorizable_load): Likewise.
24304         (vect_is_simple_use): Dump def type textually.
24305
24306 2015-04-23  Richard Biener  <rguenther@suse.de>
24307
24308         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24309         * cfgloop.c (verify_loop_structure): Verify the root loop node.
24310         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24311         instead of get_eh_region_from_lp_number.
24312         * loop-init.c (fix_loop_structure): If we removed a loop, reset
24313         the SCEV cache.
24314
24315 2015-04-23  Anton Blanchard  <anton@samba.org>
24316
24317         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24318         need for -mprofile-kernel to save LR to stack.
24319
24320 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24321
24322         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24323         adjustments.
24324         (insn_is_swappable_p): Return 1 for a convert from double to
24325         single precision when all of its uses are splats of BE element
24326         zero.
24327
24328 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24329
24330         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24331
24332 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24333
24334         PR target/65456
24335         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
24336         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24337         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24338         option.
24339         (rs6000_builtin_mask_for_load): Return 0 for targets with
24340         efficient unaligned VSX accesses so that the vectorizer will use
24341         direct unaligned loads.
24342         (rs6000_builtin_support_vector_misalignment): Always return true
24343         for targets with efficient unaligned VSX accesses.
24344         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24345         stores on targets with efficient unaligned VSX accesses is almost
24346         always the same as the cost of an aligned load or store, so model
24347         it that way.
24348         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24349         unaligned vectors if we have efficient unaligned VSX accesses.
24350         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24351         undocumented option.
24352
24353 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24354
24355         Revert:
24356         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24357
24358         * config.gcc (LIBC_MUSL): New tm_defines macro.
24359         * config/linux.h (OPTION_MUSL): Define.
24360         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24361         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24362         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24363
24364         * config/linux.opt (mmusl): New option.
24365         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24366         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24367
24368         * configure: Regenerate.
24369
24370 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
24371
24372         * config.gcc (LIBC_MUSL): New tm_defines macro.
24373         * config/linux.h (OPTION_MUSL): Define.
24374         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24375         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24376         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24377
24378         * config/linux.opt (mmusl): New option.
24379         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24380         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24381
24382         * configure: Regenerate.
24383
24384 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
24385
24386         * doc/invoke.texi (-fsanitize-sections): Update description.
24387         * asan.c (set_sanitized_sections): Parse incoming arg.
24388         (section_sanitized_p): Support wildcards.
24389
24390 2015-04-22  Tom de Vries  <tom@codesourcery.com>
24391
24392         PR tree-optimization/65823
24393         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24394         equality between ap_copy and ap.
24395
24396 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24397
24398         PR target/47098
24399         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24400
24401 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24402
24403         PR target/47122
24404         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24405
24406 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24407
24408         PR target/55144
24409         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24410         remove already contained t-files.
24411
24412 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24413
24414         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24415         Remove unneeded forward declarations.
24416         (suitable_for_tail_call_opt_p): Commentary typo fix.
24417
24418 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24419
24420         * varasm.c (emit_bss): Remove redundant guard.
24421
24422 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24423
24424         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24425
24426 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24427
24428         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24429
24430 2015-04-22  Hale Wang  <hale.wang@arm.com>
24431             Terry Guo  <terry.guo@arm.com>
24432
24433         PR rtl-optimization/64818
24434         * combine.c (can_combine_p): Don't combine user-specified
24435         register if it is in an asm input.
24436
24437 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
24438
24439         PR ipa/65076
24440         * passes.def (early_optimizations): Add pass_dse.
24441
24442 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24443
24444         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24445         * reorg.c (redundant_insn): Remove ifdef
24446         INSN_REFERENCES_ARE_DELAYED.
24447         * resource.c (mark_referenced_resources): Likewise.
24448
24449 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24450
24451         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24452         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24453         * resource.c (mark_set_resources): Likewise.
24454
24455 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24456
24457         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24458         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24459         (flow_find_head_matching_sequence): Likewise.
24460         (try_head_merge_bb): Likewise.
24461         * combine.c (can_combine_p): Likewise.
24462         (try_combine): Likewise.
24463         (distribute_notes): Likewise.
24464         * df-problems.c (can_move_insns_across): Likewise.
24465         * final.c (final): Likewise.
24466         * gcse.c (insert_insn_end_basic_block): Likewise.
24467         * ira.c (find_moveable_pseudos): Likewise.
24468         * reorg.c (try_merge_delay_insns): Likewise.
24469         (fill_simple_delay_slots): Likewise.
24470         (fill_slots_from_thread): Likewise.
24471         * sched-deps.c (sched_analyze_2): Likewise.
24472
24473 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24474
24475         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24476         PIC_OFFSET_TABLE_REGNUM.
24477
24478 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24479
24480         * alias.c (init_alias_target): Remove ifdef
24481         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24482         * df-scan.c (df_insn_refs_collect): Likewise.
24483         (df_get_regular_block_artificial_uses): Likewise.
24484         (df_get_eh_block_artificial_uses): Likewise.
24485         (df_get_entry_block_def_set): Likewise.
24486         (df_get_exit_block_use_set): Likewise.
24487         * emit-rtl.c (gen_rtx_REG): Likewise.
24488         * ira.c (ira_setup_eliminable_regset): Likewise.
24489         * reginfo.c (init_reg_sets_1): Likewise.
24490         * regrename.c (rename_chains): Likewise.
24491         * reload1.c (reload): Likewise.
24492         (eliminate_regs_in_insn): Likewise.
24493         * resource.c (mark_referenced_resources): Likewise.
24494         (init_resource_info): Likewise.
24495
24496 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24497
24498         * defaults.h (MASK_RETURN_ADDR): New definition.
24499         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24500         MASK_RETURN_ADDR.
24501
24502 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24503
24504         * defaults.h (RETURN_ADDR_OFFSET): New definition.
24505         * except.c (expand_builtin_extract_return_addr): Remove ifdef
24506         RETURN_ADDR_OFFSET.
24507         (expand_builtin_frob_return_addr): Likewise.
24508
24509 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24510
24511         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24512         (try_redirect_by_replacing_jump): Likewise.
24513         (rtl_tidy_fallthru_edge): Likewise.
24514         * combine.c (insn_a_feeds_b): Likewise.
24515         (find_split_point): Likewise.
24516         (simplify_set): Likewise.
24517         * cprop.c (cprop_jump): Likewise.
24518         * cse.c (cse_extended_basic_block): Likewise.
24519         * df-problems.c (can_move_insns_across): Likewise.
24520         * function.c (emit_use_return_register_into_block): Likewise.
24521         * haifa-sched.c (sched_init): Likewise.
24522         * ira.c (find_moveable_pseudos): Likewise.
24523         * loop-invariant.c (find_invariant_insn): Likewise.
24524         * lra-constraints.c (curr_insn_transform): Likewise.
24525         * postreload.c (reload_combine_recognize_const_pattern):
24526         * Likewise.
24527         * reload.c (find_reloads): Likewise.
24528         * reorg.c (delete_scheduled_jump): Likewise.
24529         (steal_delay_list_from_target): Likewise.
24530         (steal_delay_list_from_fallthrough): Likewise.
24531         (redundant_insn): Likewise.
24532         (fill_simple_delay_slots): Likewise.
24533         (fill_slots_from_thread): Likewise.
24534         (delete_computation): Likewise.
24535         * sched-rgn.c (add_branch_dependences): Likewise.
24536
24537 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24538
24539         * genconfig.c (main): Always define HAVE_cc0.
24540         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24541         HAVE_cc0.
24542         * cfgcleanup.c (flow_find_cross_jump): Likewise.
24543         (flow_find_head_matching_sequence): Likewise.
24544         (try_head_merge_bb): Likewise.
24545         * cfgrtl.c (rtl_merge_blocks): Likewise.
24546         (try_redirect_by_replacing_jump): Likewise.
24547         (rtl_tidy_fallthru_edge): Likewise.
24548         * combine.c (do_SUBST_MODE): Likewise.
24549         (insn_a_feeds_b): Likewise.
24550         (combine_instructions): Likewise.
24551         (can_combine_p): Likewise.
24552         (try_combine): Likewise.
24553         (find_split_point): Likewise.
24554         (subst): Likewise.
24555         (simplify_set): Likewise.
24556         (distribute_notes): Likewise.
24557         * cprop.c (cprop_jump): Likewise.
24558         * cse.c (cse_extended_basic_block): Likewise.
24559         * df-problems.c (can_move_insns_across): Likewise.
24560         * final.c (final): Likewise.
24561         (final_scan_insn): Likewise.
24562         * function.c (emit_use_return_register_into_block): Likewise.
24563         * gcse.c (insert_insn_end_basic_block): Likewise.
24564         * haifa-sched.c (sched_init): Likewise.
24565         * ira.c (find_moveable_pseudos): Likewise.
24566         * loop-invariant.c (find_invariant_insn): Likewise.
24567         * lra-constraints.c (curr_insn_transform): Likewise.
24568         * optabs.c (prepare_cmp_insn): Likewise.
24569         * postreload.c (reload_combine_recognize_const_pattern):
24570         * Likewise.
24571         * reload.c (find_reloads): Likewise.
24572         (find_reloads_address_1): Likewise.
24573         * reorg.c (delete_scheduled_jump): Likewise.
24574         (steal_delay_list_from_target): Likewise.
24575         (steal_delay_list_from_fallthrough): Likewise.
24576         (try_merge_delay_insns): Likewise.
24577         (redundant_insn): Likewise.
24578         (fill_simple_delay_slots): Likewise.
24579         (fill_slots_from_thread): Likewise.
24580         (delete_computation): Likewise.
24581         (relax_delay_slots): Likewise.
24582         * sched-deps.c (sched_analyze_2): Likewise.
24583         * sched-rgn.c (add_branch_dependences): Likewise.
24584
24585 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24586
24587         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24588         that is trivially ded on non cc0 targets.
24589         (simplify_set): Likewise.
24590         (mark_used_regs_combine): Likewise.
24591         * cse.c (new_basic_block): Likewise.
24592         (fold_rtx): Likewise.
24593         (cse_insn): Likewise.
24594         (cse_extended_basic_block): Likewise.
24595         (set_live_p): Likewise.
24596         * rtlanal.c (canonicalize_condition): Likewise.
24597         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24598
24599 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24600
24601         * conditions.h: Define macros even if HAVE_cc0 is undefined.
24602         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24603         * final.c: Likewise.
24604         * jump.c: Likewise.
24605         * recog.c: Likewise.
24606         * recog.h: Declare functions even when HAVE_cc0 is undefined.
24607         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24608
24609 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24610
24611         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24612         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24613         * builtins.c (expand_builtin): Remove check if
24614         EH_RETURN_DATA_REGNO is defined.
24615         * df-scan.c (df_bb_refs_collect): Likewise.
24616         (df_get_exit_block_use_set): Likewise.
24617         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24618         * ira-lives.c (process_bb_node_lives): Likewise.
24619         * lra-lives.c (process_bb_lives): Likewise.
24620
24621 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24622
24623         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24624         FIRST_PSEUDO_REG): New.
24625         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24626         (ARG_POINTER_REGNUM): Define to ARGP_REG.
24627         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24628         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24629         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24630         (FIRST_INT_REG): New.
24631         (LAST_INT_REG): New.
24632         (FIRST_*_REG): Define using *_REG.
24633         (LAST_*_REG): Ditto.
24634         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24635         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24636         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24637
24638 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24639
24640         * expmed.c: (synth_mult): Only assume overlapping
24641         shift with previous steps in alg_sub_t_m2 case.
24642
24643 2015-04-21  Richard Biener  <rguenther@suse.de>
24644
24645         PR tree-optimization/65650
24646         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24647         transitions involving copies.
24648         (set_lattice_value): Adjust for copy lattice state.
24649         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24650         if that doesn't dominate the merge point.
24651         (bit_value_unop): Adjust what we treat as varying mask.
24652         (bit_value_binop): Likewise.
24653         (bit_value_assume_aligned): Likewise.
24654         (evaluate_stmt): When we simplified to a SSA name record a copy
24655         instead of dropping to varying.
24656         (visit_assignment): Simplify.
24657
24658         * gimple-match.h (gimple_simplify): Add another callback.
24659         * gimple-fold.c (fold_stmt_1): Adjust caller.
24660         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24661         for the 2nd callback.
24662         * gimple-match-head.c (gimple_simplify): Add a callback that is
24663         used to valueize the stmt operands and use it that way.
24664
24665 2015-04-21  Richard Biener  <rguenther@suse.de>
24666
24667         PR tree-optimization/65788
24668         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24669
24670 2015-04-21  Richard Biener  <rguenther@suse.de>
24671
24672         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24673         vec_construct cost by vec_stmt_cost.
24674
24675 2015-04-21  Richard Biener  <rguenther@suse.de>
24676
24677         * cfghooks.h (create_basic_block): Replace with two overloads
24678         for RTL and GIMPLE.
24679         (split_block): Likewise.
24680         * cfghooks.c (split_block): Rename to ...
24681         (split_block_1): ... this.
24682         (split_block): Add two type-safe overloads for RTL and GIMPLE.
24683         (split_block_after_labels): Call split_block_1.
24684         (create_basic_block): Rename to ...
24685         (create_basic_block_1): ... this.
24686         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24687         (create_empty_bb): Call create_basic_block_1.
24688         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24689         split_block_after_labels.
24690         * omp-low.c (expand_parallel_call): Likewise.
24691         (expand_omp_target): Likewise.
24692         (simd_clone_adjust): Likewise.
24693         * tree-chkp.c (chkp_get_entry_block): Likewise.
24694         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24695         create_basic_block overload.
24696         (cgraph_node::expand_thunk): Likewise.
24697         * tree-cfg.c (make_blocks): Likewise.
24698         (handle_abnormal_edges): Likewise.
24699         * tree-inline.c (copy_bb): Likewise.
24700
24701 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24702
24703         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24704         New pattern.
24705         (*xor_one_cmplsidi3_ze): Likewise.
24706
24707 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24708
24709         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24710         use df_remove_problem rather than manually removing problems, leaving
24711         holes in df->problems_in_order[].
24712
24713 2015-04-21  Tom de Vries  <tom@codesourcery.com>
24714
24715         PR tree-optimization/65802
24716         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24717
24718 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24719
24720         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24721         Increase to 128.
24722         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24723         at '.'.  Assert that there's enough space for everything.
24724
24725 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
24726
24727         PR tree-optimization/64950
24728         Revert:
24729         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
24730
24731         PR target/41089
24732         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24733         as volatile.
24734
24735 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
24736
24737         PR rtl-optimization/64916
24738         * cfgcleanup.c (values_equal_p): New function.
24739         (can_replace_by): Use it.
24740
24741 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
24742
24743         PR c++/65801
24744         * doc/invoke.texi ([-Wnarrowing]): Update.
24745
24746 2015-04-20  Jeff Law  <law@redhat.com>
24747
24748         PR tree-optimization/65658
24749         * tree-ssa-threadupdate.c (redirection_block_p): Remove
24750         redundant test for GIMPLE_ASSIGN in last change.
24751
24752 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
24753
24754         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24755         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24756         (legitimize_tls_address): Ditto.
24757         (ix86_expand_move): Ditto.
24758         (ix86_expand_binary_operator): Remove reload_in_progress checks.
24759         (ix86_expand_unary_operator): Ditto.
24760         * config/i386/predicates.md (index_register_operand): Ditto.
24761
24762 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
24763
24764         * reorg.c (try_merge_delay_insns): Improve correctness checking
24765         for targets with multiple delay slots.
24766
24767 2015-04-20  Jeff Law  <law@redhat.com>
24768
24769         PR tree-optimization/65658
24770         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24771         statements too.
24772
24773 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24774
24775         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24776         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24777         Delete.
24778
24779 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
24780
24781         PR debug/65807
24782         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24783
24784 2015-04-20  Richard Biener  <rguenther@suse.de>
24785
24786         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24787         * gimple-fold.c (gimple_build_valueize): New function.
24788         (gimple_build): Always use gimple_build_valueize as valueize hook.
24789
24790 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
24791
24792         PR target/64134
24793         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24794         and overwrite variable parts if <= 1/2 the elements are variable.
24795
24796 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
24797
24798         PR rtl-optimization/65805
24799         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24800         Don't use difference of offset and previous offset if
24801         update_sp_offset is non-zero.
24802         (eliminate_regs_in_insn): Ditto.
24803         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24804         lra_eliminate_regs_1 call.
24805         * lra-constraints.c (get_equiv_with_elimination): Ditto.
24806
24807 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
24808
24809         * hash-table.h: Remove version of hash_table that stored value_type *.
24810         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24811         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24812         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24813         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24814         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24815         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24816         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24817         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24818         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24819         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24820         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24821         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24822         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24823         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24824         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24825         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24826
24827 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24828             Jakub Jelinek  <jakub@redhat.com>
24829
24830         PR target/65787
24831         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24832         subsequent SH_NONE operand does not overwrite an existing *special
24833         value.
24834         (adjust_extract): Handle case where a vec_extract operation is
24835         wrapped in a PARALLEL.
24836
24837 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24838
24839         PR target/65780
24840         * config/i386/i386.c (ix86_binds_local_p): Define only if
24841         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24842
24843 2015-04-17  Jeff Law  <law@redhat.com>
24844
24845         PR tree-optimization/47679
24846         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24847         * tree-ssa-scopedtables.c: New file.
24848         * tree-ssa-scopedtables.h: New file.
24849         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24850         (const_and_copies): Change name/type.
24851         (record_const_or_copy): Move into tree-ssa-scopedtables.c
24852         (record_const_or_copy_1): Similarly.
24853         (restore_vars_to_original_value): Similarly.
24854         (pass_dominator::execute): Create and destroy const_and_copies table.
24855         (thread_across_edge): Update passing of const_and_copies.
24856         (record_temporary_equivalence): Use method calls rather than
24857         manipulating const_and_copies directly.
24858         (record_equality, cprop_into_successor_phis): Similarly.
24859         (dom_opt_dom_walker::before_dom_children): Similarly.
24860         (dom_opt_dom_walker::after_dom_children): Similarly.
24861         (eliminate_redundant_computations): Similarly.
24862         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24863         (record_temporary_equivalence): Likewise.
24864         (invalidate_equivalences): Likewise.
24865         (record_temporary_equivalences_from_phis): Update due to type
24866         change of const_and_copies.  Use method calls rather than
24867         manipulating the stack directly.
24868         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24869         (thread_through_normal_block, thread_across_edge): Likewise.
24870         (thread_across_edge): Likewise.
24871         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24872         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
24873         of equiv_stack.
24874         (identify_jump_threads): Update due to type change of equiv_stack.
24875         (finalize_jump_threads): Delete the equiv_stack when complete.
24876
24877 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
24878
24879         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24880         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24881         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24882
24883 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
24884
24885         PR target/65535
24886         * config.gcc: Exit with a comment when we do not have a major version
24887         number for the FreeBSD target.
24888
24889 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24890
24891         PR target/65689
24892         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24893         maybe_allows_mem bitfields.
24894         (maybe_allows_none_start, maybe_allows_none_end,
24895         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24896         maybe_allows_mem_end): New variables.
24897         (compute_maybe_allows): New function.
24898         (add_constraint): Use it to initialize maybe_allows_reg and
24899         maybe_allows_mem fields.
24900         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24901         is_address constraints such that those that allow neither mem nor
24902         reg come first, then those that only allow reg but not mem, then
24903         those that only allow mem but not reg, then the rest.
24904         (write_allows_reg_mem_function): New function.
24905         (write_tm_preds_h): Call it.
24906         * stmt.c (parse_output_constraint, parse_input_constraint): Use
24907         the generated insn_extra_constraint_allows_reg_mem function
24908         instead of always setting *allows_reg = true; *allows_mem = true;
24909         for unknown extra constraints.
24910
24911 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
24912
24913         PR target/65780
24914         * output.h (default_binds_local_p_3): New.
24915         * varasm.c (default_binds_local_p_3): Make it public.  Take an
24916         argument to indicate if common symbol may be local.  If common
24917         symbol may be local, treat non-external variable as defined
24918         locally.
24919         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24920         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24921         * config/i386/i386.c (ix86_binds_local_p): New.
24922         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24923         ix86_binds_local_p.
24924
24925 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
24926
24927         PR debug/65771
24928         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24929         trying mem_loc_descriptor on XEXP (rtl, 0).
24930
24931 2015-04-17  Martin Liska  <mliska@suse.cz>
24932
24933         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24934         Release symbol_compare_collection.
24935         * ipa-reference.c: Add TODO that a vector should be released.
24936
24937 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24938
24939         PR target/65296
24940         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
24941         to new AVR-LibC file layout (bug #44574).
24942         (*avrlibc_devicelib): Same.
24943         * config/avr/avr-mcus.def: Adjust comments.
24944         * config/avr/avr.opt (nodevicelib): Adjust help.
24945
24946 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
24947
24948         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
24949
24950 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
24951
24952         PR c++/64527
24953         * gimplify.c (gimplify_init_constructor): Always emit a
24954         side-effecting constructor.
24955
24956 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24957
24958         PR tree-optimization/64950
24959         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
24960         in cfun->curr_properties.
24961         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
24962         if we generate an IFN_VA_ARG.
24963         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
24964         function if PROP_gimple_lva is not set in src function.
24965
24966 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24967             Michael Matz  <matz@suse.de>
24968
24969         PR tree-optimization/64950
24970         * gimple-iterator.c (update_modified_stmts): Remove static.
24971         * gimple-iterator.h (update_modified_stmts): Declare.
24972         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
24973         (gimplify_va_arg_internal): New function.
24974         (gimplify_va_arg_expr): Use IFN_VA_ARG.
24975         * gimplify.h (gimplify_va_arg_internal): Declare.
24976         * internal-fn.c (expand_VA_ARG): New unreachable function.
24977         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
24978         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
24979         (expand_ifn_va_arg): New function.
24980         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
24981         (pass_stdarg::execute): Call expand_ifn_va_arg.
24982         (pass_data_lower_vaarg): New pass_data.
24983         (pass_lower_vaarg): New gimple_opt_pass.
24984         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
24985         (make_pass_lower_vaarg): New function.
24986         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
24987         properties_required field.
24988         * passes.def (all_passes): Add pass_lower_vaarg.
24989         * tree-pass.h (PROP_gimple_lva): Add define.
24990         (make_pass_lower_vaarg): Declare.
24991
24992 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24993
24994         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
24995         * calls.c (call_expr_flags): Same.
24996
24997 2015-04-17  Tom de Vries  <tom@codesourcery.com>
24998
24999         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25000         (pass_stdarg::execute): ... here.
25001
25002 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25003             Michael Matz  <matz@suse.de>
25004
25005         * tree-cfg.c (make_blocks_1): Factor out of ...
25006         (make_blocks): ... here.
25007         (make_edges_bb): Factor out of ...
25008         (make_edges): ... here.
25009         (gimple_find_sub_bbs): New function.
25010         * tree-cfg.h (gimple_find_sub_bbs): Declare.
25011
25012 2015-04-17  Tom de Vries  <tom@codesourcery.com>
25013
25014         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25015
25016 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
25017
25018         * asan.c (set_sanitized_sections): New function.
25019         (section_sanitized_p): Ditto.
25020         (asan_protect_global): Optionally sanitize user-defined
25021         sections.
25022         * asan.h (set_sanitized_sections): Declare new function.
25023         * common.opt (fsanitize-sections): New option.
25024         * doc/invoke.texi (-fsanitize-sections): Document new option.
25025         * opts-global.c (handle_common_deferred_options): Handle new
25026         option.
25027
25028 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
25029
25030         PR debug/65771
25031         * dwarf2out.c (loc_list_from_tree): Return NULL
25032         for DEBUG_EXPR_DECL.
25033
25034 2015-04-17  Christian Bruel  <christian.bruel@st.com>
25035
25036         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25037         same attributes.
25038
25039 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25040
25041         * ira-color.c (setup_left_conflict_sizes_p): Do not process
25042         node itself when computing left conflict subnode size.
25043
25044 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25045
25046         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25047         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25048         *fop_<mode>_1_sse using enabled attribute.  Use
25049         register_mixssei387nonimm_operand operand 1 predicate. Change
25050         alternative 3 constraints from "x" to "v".
25051
25052 2015-04-16  Richard Biener  <rguenther@suse.de>
25053
25054         PR tree-optimization/65774
25055         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25056         bit-value tracking on.
25057
25058 2015-04-16  Richard Biener  <rguenther@suse.de>
25059
25060         PR tree-optimization/64277
25061         * tree-vrp.c (check_array_ref): Fix anti-range handling,
25062         simplify upper bound handling.
25063         (search_for_addr_array): Simplify.
25064         (check_array_bounds): Handle ADDR_EXPRs here.
25065         (check_all_array_refs): Simplify.
25066
25067 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
25068
25069         * config/i386/i386.c (print_reg): Rewrite function.
25070
25071 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25072
25073         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25074         Invert the condition.
25075
25076 2015-04-16  Renlin Li  <renlin.li@arm.com>
25077
25078         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25079         simplifications for UNSIGNED_FLOAT.
25080
25081 2015-04-16  Nick Clifton  <nickc@redhat.com>
25082
25083         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25084         MUL_UNINIT.
25085         (enum rl78_cpu_type): New.
25086         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25087         (umulhi3_shift_virt): Remove m constraint from operand 1.
25088         (umulqihi3_virt): Likewise.
25089         * config/rl78/rl78.c (rl78_option_override): Add code to process
25090         -mcpu and -mmul options.
25091         (rl78_alloc_physical_registers): Add code to handle divhi and
25092         divsi valloc attributes.
25093         (set_origin): Likewise.
25094         * config/rl78/rl78.h (RL78_MUL_G14): Define.
25095         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25096         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25097         __RL78_Gxx__.
25098         (ASM_SPEC): Pass -mcpu on to assembler.
25099         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25100         (mulqi3_rl78): Likewise.
25101         (mulhi3_g13): Likewise.
25102         (mulhi3): Generate the G13 or G14 versions of the insn directly.
25103         (mulsi3): Likewise.
25104         (mulhi3_g14): Add clobbers of AX and BC.
25105         (mulsi3_g14): Likewise.
25106         (mulsi3_g13): Likewise.
25107         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25108         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25109         * config/rl78/rl78.opt (mmul): Initialise value to
25110         RL78_MUL_UNINIT.
25111         (mcpu): New option.
25112         (m13, m14, mrl78): New option aliases.
25113         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25114         (MULTILIB_DIRNAMES): Add g13 and g14.
25115         * doc/invoke.texi: Document -mcpu and -mmul options.
25116
25117 2015-04-16  Richard Biener  <rguenther@suse.de>
25118
25119         * tree-ssa-ccp.c (likely_value): See if we have operands that
25120         are marked as never simulate again and return CONSTANT in this
25121         case.
25122         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25123         not have any operands that will be simulated again as
25124         not being simulated again.
25125
25126 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
25127
25128         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25129         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25130         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25131         attribute.
25132         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25133         enabled attribute.
25134         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25135         *float<SWI48:mode><MODEF:mode>2_sse.
25136         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25137         enabled attribute.
25138         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25139         enabled attribute.
25140
25141 2015-04-15  Tom de Vries  <tom@codesourcery.com>
25142
25143         PR other/65487
25144         * function.c (push_dummy_function): New function.
25145         (init_dummy_function_start): Use push_dummy_function.
25146         (pop_dummy_function): New function.  Factored out of ...
25147         (expand_dummy_function_end): ... here.
25148         * function.h (push_dummy_function, pop_dummy_function): Declare.
25149         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25150         pop_dummy_function.
25151         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25152
25153 2015-04-15  Jeff Law  <law@redhat.com>
25154
25155         PR tree-optimization/47679
25156         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25157         need for forward declaration in upcoming changes.
25158         (record_conditions, record_edge_info): Likewise.
25159
25160         PR rtl-optimization/42522
25161         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25162         SIGN_EXTRACT as a whole object rather than simplifying
25163         its operand.
25164
25165 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
25166
25167         PR ipa/65765
25168         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25169         and GIMPLE_PREDICT use break instead of return true. For
25170         GIMPLE_EH_DISPATCH, compare dispatch region.
25171
25172 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
25173
25174         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
25175         details about the implementation.  Make clear preference for
25176         __atomic builtins.  Reduce possibility of future change.
25177
25178 2015-04-15  Nick Clifton  <nickc@redhat.com>
25179
25180         * config/rx/rx.opt (mallow-string-insns): New option.
25181         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25182         builtin if string instructions are denied.
25183         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25184         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25185         appropriate.
25186         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25187         * config/rx/rx.md (movstr): Enable pattern only if string
25188         instructions are allowed.
25189         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25190         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25191         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25192         (MULTILIB_DIRNAMES): Add no-strings.
25193         * doc/invoke.texi: Document -mno-allow-string-insns.
25194
25195 2015-04-15  Alan Modra  <amodra@gmail.com>
25196
25197         PR target/65408
25198         PR target/58744
25199         PR middle-end/36043
25200         * calls.c (load_register_parameters): Don't load past end of
25201         mem unless suitably aligned.
25202
25203 2015-04-15  Nick Clifton  <nickc@redhat.com>
25204
25205         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25206         decrement instruction as being frame related.
25207         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25208         based addresses.
25209         If zero extending a function address enclose the operation in
25210         %code(...).
25211         (rl78_preferred_reload_class): New function.
25212         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25213         * config/rl78/rl78.md: Remove useless constraints in expanders.
25214         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25215         (mulhi3_rl78): Likewise.
25216         (mulhi3_g13): Likewise.
25217         (mulsi3_rl78): Likewise.
25218         (es_addr): Move to before the multiply patterns.
25219
25220 2015-04-15  Alan Modra  <amodra@gmail.com>
25221
25222         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25223         and sequence_stack.  Add seq.
25224         (seq_stack): Delete.
25225         * function.c (prepare_function_start): Don't access x_last_insn.
25226         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25227         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25228         * emit_rtl.c (start_sequence, push_topmost_sequence,
25229         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25230         sequence accessors.
25231         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25232         remove_insn): Likewise.  Simplify.
25233         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25234         and pop_topmost_sequence.
25235         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
25236         debug insns.
25237         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25238
25239 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
25240
25241         PR target/65729
25242         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25243         the assertiion.
25244
25245 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25246
25247         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25248         (LEGACY_INT_REGNO_P): Ditto.
25249         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25250         (ANY_MASK_REG_P): Remove.
25251         (BND_REG_P): Rename from ANY_BND_REG_P.
25252         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25253         legacy integer registers.  Do not handle MMX_REG_P in a special way.
25254         Merge 64byte and 32byte SSE handling.
25255
25256 2015-04-14  Nick Clifton  <nickc@redhat.com>
25257
25258         * expr.c (expand_assignment): Force an address offset computation
25259         into a register before changing its mode.
25260         (expand_expr_real_1): Likewise.
25261
25262 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
25263
25264         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25265         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25266         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25267         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25268         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25269         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25270         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25271         and __aarch64_vget_lane_any.
25272
25273 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
25274
25275         PR rtl-optimization/65761
25276         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25277         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25278
25279 2015-04-14  Richard Biener  <rguenther@suse.de>
25280
25281         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25282         (graphite_can_represent_scev): Use POINTER_TYPE_P.
25283
25284 2015-04-14  Richard Biener  <rguenther@suse.de>
25285
25286         PR tree-optimization/65758
25287         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25288         against -1.
25289         (ccp_lattice_meet): Likewise.
25290         (bit_value_unop): Likewise.
25291         (bit_value_binop): Likewise.
25292         (bit_value_assume_aligned): Likewise.
25293
25294 2015-04-14  Christian Bruel  <christian.bruel@st.com>
25295
25296         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25297         function.
25298
25299 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
25300
25301         PR tree-optimization/63387
25302         * match.pd ((x unord x) | (y unord y) -> (x unord y),
25303         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25304
25305 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
25306
25307         * config/i386/predicates.md (any_QIreg_operand): Rename from
25308         q_regs_operand.  Do not process subregs.
25309         (QIreg_operand): Use QI_REGNO_P predicate.
25310         (ext_QIreg_operand): Ditto.
25311         (ext_register_operand): Ditto.
25312         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25313         (AND splitters): Ditto.
25314         (AND with -65536 splitter): Add SWI48 mode for operand 0.
25315         (AND with -256 splitter): Use any_QIreg_operand predicate and
25316         SWI248 mode for operand 0.
25317         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25318         mode for operand 0.
25319         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25320
25321 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
25322
25323         * doc/plugins.texi: Rewrite first introductory paragraph.
25324
25325 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25326
25327         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25328         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25329
25330 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25331
25332         * ipa-profie.c (ipa_profile): Check number of parameters
25333         and possible polymorphic call targets before
25334         devirtualizing.
25335
25336 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
25337
25338         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25339         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25340
25341 2015-04-13  Richard Biener  <rguenther@suse.de>
25342
25343         PR tree-optimization/65204
25344         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25345         takens for bit-CCP.
25346
25347 2015-04-13  Richard Biener  <rguenther@suse.de>
25348
25349         PR target/65660
25350         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25351         and cond_not_taken_branch_cost to 4 and 2.
25352         (bdver2_cost): Likewise.
25353         (bdver3_cost): Likewise.
25354         (bdver4_cost): Likewise.
25355
25356 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25357
25358         * hash-table.h (hash_table constructor): Add mem stats.
25359         (alloc_entries): Likewise.
25360
25361 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25362
25363         * ipa-cp.c (ipcp_driver): Relase prev_edge.
25364         * passes.c (execute_one_pass): Only add transform if pass has one.
25365
25366 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
25367
25368         * config/i386/i386.c (ix86_option_override_internal): Don't set
25369         -fprefetch-loop-arrays if optimizing for size.
25370
25371 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
25372             Gerald Pfeifer  <gerald@pfeifer.com>
25373
25374         * doc/contrib.texi (Contributors): Add Martin Jambor and
25375         Michael Matz.
25376
25377 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
25378
25379         * BASE-VER: Set to 6.0.0.
25380
25381         PR tree-optimization/65747
25382         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25383         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25384
25385 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25386
25387         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25388         sentence.  Improve grammar.
25389
25390 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
25391
25392         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25393
25394 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25395
25396         PR ipa/65743
25397         * ipa-inline-transform.c (speculation_removed): Remove static var.
25398         (check_speculations): New function.
25399         (clone_inlined_nodes): Do not check spculations.
25400         (inline_call): Call check_speculations.
25401         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25402         consider non-invariants.
25403
25404 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
25405             Martin Liska  <mliska@suse.cz>
25406
25407         PR ipa/65722
25408         * ipa-icf.c (sem_item::compare_cgraph_references): function and
25409         variable can not match.
25410         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25411         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25412
25413 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
25414
25415         PR tree-optimization/65735
25416         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25417         Remove visited_phis argument, add visited_bbs, avoid recursing into the
25418         same bb rather than just into the same phi node.
25419         (thread_through_normal_block): Adjust caller.
25420
25421 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25422
25423         * doc/contrib.texi (Contributors): Add Ira Rosen.
25424
25425 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
25426
25427         * gcov.c (find_source): Fix miswording in error message.
25428         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25429         (ix86_expand_sse_comi_round): Fix typo in error message.
25430
25431 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
25432
25433         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25434
25435 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
25436
25437         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25438
25439 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25440
25441         PR target/65710
25442         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25443         Print bad_spills_num and insn_pseudos_num.
25444
25445 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25446
25447         PR target/65694
25448         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25449         when creating +1 values for SImode.
25450
25451 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
25452
25453         PR target/65729
25454         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25455         assert.
25456
25457 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
25458             Iain Sandoe  <iain@codesourcery.com>
25459
25460         PR target/65351
25461         * configure: Regenerate.
25462
25463 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25464
25465         PR target/65671
25466         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25467
25468 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
25469
25470         * doc/contrib.texi (Contributors): Add John Marino.
25471
25472 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25473
25474         PR tree-optimization/65709
25475         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25476         TREE_TYPE (TREE_TYPE (t)).
25477
25478 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
25479
25480         PR target/65710
25481         * lra-int.h (lra_bad_spill_regno_start): New.
25482         * lra.c (lra_bad_spill_regno_start): New.
25483         (lra): Set up lra_bad_spill_regno_start.  Set up
25484         lra_constraint_new_regno_start unconditionally.
25485         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25486         spill preferences.
25487
25488 2015-04-09  Marek Polacek  <polacek@redhat.com>
25489             Jakub Jelinek  <jakub@redhat.com>
25490
25491         PR middle-end/65554
25492         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25493         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25494         of STRIP_NOPS.
25495
25496 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
25497
25498         PR rtl-optimization/65693
25499         * combine.c (is_parallel_of_n_reg_sets): Move outside of
25500         #ifndef HAVE_cc0.
25501
25502 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
25503
25504         PR target/65296
25505         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25506         device specs file if "device-specs%s" didn't resolve to a path.
25507
25508 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
25509
25510         PR target/65676
25511         * config/i386/i386.c (fixup_modeless_constant): New.
25512         (ix86_expand_args_builtin): Fixup modeless constant operand.
25513         (ix86_expand_round_builtin): Ditto.
25514         (ix86_expand_special_args_builtin): Ditto.
25515         (ix86_expand_builtin): Ditto.
25516
25517 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
25518
25519         PR target/65693
25520         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25521         any pow2 integer in between 2 and 0x80000000U inclusive.
25522
25523 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
25524
25525         PR rtl-optimization/65693
25526         * combine.c (is_parallel_of_n_reg_sets): Change first argument
25527         from an rtx_insn * to an rtx.
25528         (try_combine): Adjust both callers.  Use it once more.
25529
25530 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25531
25532         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25533         (chkp_make_static_const_bounds): Search existing
25534         symbol by assembler name.  Use make_decl_one_only.
25535         (chkp_get_zero_bounds_var): Remove node search which
25536         is now performed in chkp_make_static_const_bounds.
25537         (chkp_get_none_bounds_var): Likewise.
25538
25539 2015-04-08  Michael Witten  <mfwitten@gmail.com>
25540
25541         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25542         to an example.
25543
25544 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25545
25546         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25547
25548 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25549
25550         * doc/extend.texi (__sync Builtins): Fix grammar.
25551
25552 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25553
25554         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25555
25556 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25557
25558         * varasm.c (emit_local): Move definition of align.
25559
25560 2015-04-08  Julian Brown  <julian@codesourcery.com>
25561
25562         * config/nvptx/mkoffload.c (process): Support variable mapping.
25563
25564 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
25565
25566         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25567         alpha_links **.
25568         (alpha_write_one_linkage): Correct typo.
25569
25570 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25571
25572         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25573
25574 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
25575
25576         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25577
25578 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
25579
25580         * tree-chkp.h (chkp_insert_retbnd_call): New.
25581         * tree-chkp.c (chkp_insert_retbnd_call): New.
25582         * ipa-split.c (insert_bndret_call_after): Remove.
25583         (split_function): Use chkp_insert_retbnd_call.
25584         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25585         bounds for instrumented functions.
25586
25587 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
25588
25589         PR ipa/65540
25590         * calls.c (initialize_argument_information): When producing tail
25591         call also turn SSA_NAMES passed by references to original PARM_DECLs
25592
25593 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
25594
25595         PR target/65648
25596         * lra-remat.c (do_remat): Process input and non-input insn
25597         registers separately.
25598
25599 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25600
25601         PR debug/65678
25602         * valtrack.c (debug_lowpart_subreg): New function.
25603         (dead_debug_insert_temp): Use it.
25604
25605         PR middle-end/65680
25606         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25607         into signed HOST_WIDE_INT the same as negative bit_offset.
25608
25609 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
25610
25611         * ipa-comdats.c (ipa_comdats): Visit all thunks
25612         to set proper comdat group.
25613
25614 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25615
25616         PR target/65489
25617         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25618         on constants for NEON VSTRUCT modes.
25619
25620 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
25621             Iain Sandoe  <iain@codesourcery.com>
25622
25623         PR target/65351
25624         * configure: Regenerate.
25625
25626 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25627
25628         PR target/65614
25629         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25630         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25631         that LFD is used to load double constants instead of LFS.  Add
25632         defaults for all costs structures.  Add comments for missing
25633         initialization fields.
25634         (size32_cost): Likewise.
25635         (size64_cost): Likewise.
25636         (rs64a_cost): Likewise.
25637         (mpccore_cost): Likewise.
25638         (ppc403_cost): Likewise.
25639         (ppc405_cost): Likewise.
25640         (ppc440_cost): Likewise.
25641         (ppc476_cost): Likewise.
25642         (ppc601_cost): Likewise.
25643         (ppc603_cost): Likewise.
25644         (ppc604_cost): Likewise.
25645         (ppc604e_cost): Likewise.
25646         (ppc620_cost): Likewise.
25647         (ppc630_cost): Likewise.
25648         (ppccell_cost): Likewise.
25649         (ppc750_cost): Likewise.
25650         (ppc7450_cost): Likewise.
25651         (ppc8540_cost): Likewise.
25652         (ppce300c2c3_cost): Likewise.
25653         (ppce500mc_cost): Likewise.
25654         (ppce500mc64_cost): Likewise.
25655         (ppce5500_cost): Likewise.
25656         (ppce6500_cost): Likewise.
25657         (titan_cost): Likewise.
25658         (power4_cost): Likewise.
25659         (power6_cost): Likewise.
25660         (power7_cost): Likewise.
25661         (power8_cost): Likewise.
25662         (ppca2_cost): Likewise.
25663         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25664
25665         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25666         instead of XXLOR to copy SFmode to clear out dirty bits created
25667         when SFmode denormals are generated.
25668         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25669         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25670
25671 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25672
25673         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25674         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25675         * config/aarch64/aarch64-tune.md: Regenerate.
25676
25677 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
25678
25679         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25680         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25681         * config/arm/arm-cores.def (exynos-m1): New core.
25682         * config/arm/arm-tune.md: Regenerate.
25683         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25684         * config/arm/bpabi.h: Likewise.
25685
25686 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25687
25688         * ipa-cp (set_single_call_flag): Remove too
25689         restrictive assert.
25690
25691 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
25692
25693         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25694         GOMP_offload_unregister from the destructor.
25695
25696 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
25697
25698         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25699         flags for instrumentation thunk.
25700         (chkp_produce_thunks): Likewise.
25701
25702 2015-04-05  Martin Liska  <mliska@suse.cz>
25703
25704         PR ipa/65665
25705         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25706         has computed data structure.
25707         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25708
25709 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
25710
25711         * invoke.texi (inline-unit-growth): Increase growth to 20%
25712         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25713
25714 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
25715
25716         PR target/65647
25717         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
25718         value checking.
25719         (lra_rematerialization_iter): New.
25720         * lra.c (lra): Initialize lra_rematerialization_iter.
25721         Stop updating lra_constraint_new_regno_start after switching of
25722         inheritance and rematerialization.
25723         * lra-remat.c (lra_rematerialization_iter): New.
25724         (lra_remat): Add printing pass iteration.  Do rematerialization
25725         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25726
25727 2015-04-04  Richard Biener  <rguenther@suse.de>
25728
25729         PR tree-optimization/64909
25730         PR tree-optimization/65660
25731         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25732         to take a cost vector for scalar iteration cost.
25733         (vect_get_single_scalar_iteration_cost): Likewise.
25734         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25735         Compute the scalar iteration cost into a cost vector.
25736         (vect_get_known_peeling_cost): Use the scalar cost vector to
25737         account for the cost of the peeled iterations.
25738         (vect_estimate_min_profitable_iters): Likewise.
25739         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25740         Likewise.
25741
25742 2015-04-04  Alan Modra  <amodra@gmail.com>
25743
25744         PR target/65576
25745         PR target/65240
25746         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25747         0.0 constant unless TARGET_VSX.
25748         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25749         alternative.
25750
25751 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25752
25753         PR ipa/65654
25754         * ipa-inline-transform.c (inline_call): Skip sanity check to work
25755         around the ICE
25756
25757 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25758
25759         PR ipa/65655
25760         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25761         speculative indirect edges to avoid ordering issue.
25762
25763 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
25764
25765         PR ipa/65076
25766         * ipa-inline.c (edge_badness): Add combined size to the denominator.
25767
25768 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
25769
25770         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25771         TYPE_ARTIFICIAL on the .omp_data* types.
25772
25773 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25774
25775         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25776         instrumentation thunks.
25777
25778 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25779
25780         * config/i386/i386.c (ix86_expand_call): Avoid nested
25781         PARALLEL in returned call value.
25782
25783 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25784
25785         * lto-cgraph.c (input_cgraph_1): Always link instrumented
25786         assembler name with original one.
25787
25788 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25789
25790         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25791
25792 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25793
25794         Revert parts of r216820.
25795         * config/i386/i386.md (movqi_internal): Correct type calculation
25796         for alternatives 3 and 5.
25797
25798 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
25799
25800         PR preprocessor/61977
25801         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25802         predefine __vector/__bool/__pixel macros nor context sensitive
25803         macros for CLK_ASM.
25804         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25805
25806 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
25807
25808         * config/pa/pa.c (pa_output_move_double): Directly handle register
25809         indexed memory operand.  Simplify handling of scaled register indexed
25810         memory operands.
25811
25812 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25813
25814         PR driver/65444
25815         * config/i386/linux-common.h (MPX_SPEC): New.
25816         (CHKP_SPEC): Add MPX_SPEC.
25817         * doc/invoke.texi (-fcheck-pointer-boudns): Document
25818         possible issues with '-z bndplt' support in linker.
25819
25820 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
25821
25822         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25823         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25824         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25825         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25826         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25827
25828 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
25829
25830         * config/i386/sync.md (UNSPEC_MOVA): Remove.
25831         (atomic_load<mode>): Change operand 0 predicate to
25832         nonimmediate_operand and fix up the destination when needed.
25833         Use UNSPEC_LDA.
25834         (atomic_loaddi_fpu): Use UNSPEC_LDA.
25835         (atomic_store<mode>): Change operand 1 predicate to
25836         nonimmendate_operand and move the source to register when needed.
25837         Use UNSPEC_STA.
25838         (atomic_store<mode>_1): Use UNSPEC_STA.
25839         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25840         Fix moves from memory operand.  Use UNSPEC_STA.
25841
25842 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25843
25844         * expmed.c (strict_volatile_bitfield_p): Check that the access will
25845         not cross a MODESIZE boundary.
25846         (store_bit_field, extract_bit_field): Added assertions in the
25847         strict volatile bitfields code path.
25848
25849 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25850
25851         PR target/65624
25852         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25853         Increase args array size by one to avoid buffer overflow.
25854
25855 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25856
25857         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25858         split_part.
25859         * ipa-inline.c (edge_badness): Add wrapper penalty.
25860         (sum_callers): Move up.
25861         (inline_small_functions): Set single_caller.
25862         * ipa-inline.h (inline_summary): Add single_caller.
25863         * ipa-split.c (split_function): Set split_part.
25864         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25865         * cgraph.h (cgraph_node): Add split_part.
25866
25867 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
25868
25869         PR target/58945
25870         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25871         Do not split operands 0 and operands 2 to halfmode.
25872         (atomic_compare_and_swap<mode>): Update for
25873         atomic_compare_and_swap<dwi>_doubleword changes.
25874
25875 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
25876
25877         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25878         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25879         no caching is done.
25880
25881 2015-03-31  Martin Liska  <mliska@suse.cz>
25882
25883         PR ipa/65557
25884         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25885         has already filled up function summary.
25886         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25887
25888 2015-03-31  Richard Biener  <rguenther@suse.de>
25889
25890         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25891         of types.
25892
25893 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25894
25895         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25896         nested functions.
25897         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25898         (s390_asm_output_function_label): Adapt to new signature of
25899         s390_function_num_hotpatch_hw
25900         Optimise the code generating assembler output.
25901         Add comments to assembler file.
25902
25903 2015-03-31  Richard Biener  <rguenther@suse.de>
25904
25905         PR middle-end/65626
25906         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25907         of the noreturn call so it is last and cleanup_control_flow_bb
25908         can do the CFG part.
25909
25910 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
25911
25912         PR target/65531
25913         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25914         same_comdat_group for external symbols.
25915         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25916         infinite same_comdat_group traversal loop.
25917
25918 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
25919
25920         PR plugins/61176
25921         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25922         automatically to $headers.
25923
25924 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
25925
25926         PR ipa/65610
25927         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25928         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25929         function.
25930         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25931         Use it.
25932         * ipa-prop.c (param_type_may_change_p): Likewise.
25933         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25934         (remove_unused_scope_block_p): Add in_ctor_dtor_block
25935         argument.  Before inlining, preserve
25936         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25937         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
25938         recursive calls.
25939         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
25940
25941 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25942
25943         PR ipa/65076
25944         * ipa-inline.c (edge_badness): Base denominator on callee's
25945         grwoth squared.
25946
25947 2015-03-27  Martin Jambor  <mjambor@suse.cz>
25948
25949         PR ipa/65478
25950         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
25951         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
25952         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
25953         node_calling_single_call.
25954         * ipa-cp.c (count_callers): New function.
25955         (set_single_call_flag): Likewise.
25956         (initialize_node_lattices): Count callers and set single_flag_call if
25957         necessary.
25958         (incorporate_penalties): New function.
25959         (good_cloning_opportunity_p): Use it, dump new flags.
25960         (propagate_constants_topo): Set node_within_scc flag if appropriate.
25961         * doc/invoke.texi (ipa-cp-recursion-penalty,
25962         ipa-cp-single-call-pentalty): Document.
25963
25964 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25965
25966         PR ipa/65588
25967         * symtab.c (symtab_node::get_partitioning_class): Register vars
25968         are duplicated.
25969         * varpool.c (symbol_table::output_variables) Do not assemble unefined
25970         decls for non-symbols.
25971
25972 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25973
25974         PR target/65248
25975         * output.h (default_binds_local_p_2): New.
25976         * varasm.c (default_binds_local_p_2): Renamed to ...
25977         (default_binds_local_p_3): This.  Don't return true on protected
25978         data symbol if protected data may be external.
25979         (default_binds_local_p): Use default_binds_local_p_3.
25980         (default_binds_local_p_1): Likewise.
25981         (default_binds_local_p_2): New.
25982         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
25983         default_binds_local_p_2 if TARGET_MACHO is undefined.
25984
25985 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
25986
25987         PR target/65593
25988         * config/i386/i386.c (legitimize_pic_address): If base
25989         is SYMBOL_REF or LABEL_REF using %rip addressing, force
25990         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
25991
25992 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25993
25994         PR target/65531
25995         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
25996         comdat groups.
25997
25998 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
25999
26000         PR ipa/65600
26001         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26002         of optimized out indirect call.
26003         (redirect_to_unreachable): Always build symbol table node for
26004         BUILT_IN_UNREACHABLE
26005
26006 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26007
26008         PR target/65407
26009         * ira-costs.c (record_reg_classes): Process all constraint string
26010         containing 0-9.
26011
26012 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
26013
26014         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26015         memory_operand.
26016
26017         PR target/65052
26018         * config/c6x/constraints.md (S3): New constraint.
26019         * config/c6x/c6x.md (real_jump): Use it.
26020
26021 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26022
26023         PR middle-end/65595
26024         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26025         do redirection if the call is not optimized out.
26026
26027 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
26028
26029         PR target/65495
26030         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26031         (fchkp-check-incomplete-type): Add LTO.
26032         (fchkp-zero-input-bounds-for-main): Likewise.
26033         (fchkp-first-field-has-own-bounds): Likewise.
26034         (fchkp-narrow-bounds): Likewise.
26035         (fchkp-narrow-to-innermost-array): Likewise.
26036         (fchkp-use-static-bounds): Likewise.
26037         (fchkp-use-static-const-bounds): Likewise.
26038         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26039
26040 2015-03-27  Marek Polacek  <polacek@redhat.com>
26041
26042         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26043
26044 2015-03-27  Marek Polacek  <polacek@redhat.com>
26045
26046         PR sanitizer/65583
26047         * ubsan.c (ubsan_create_edge): New function.
26048         (instrument_bool_enum_load): Call it.
26049         (instrument_nonnull_arg): Likewise.
26050         (instrument_nonnull_return): Likewise.
26051         (instrument_object_size): Likewise.
26052
26053 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26054
26055         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26056         auto_vec.
26057
26058 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26059
26060         PR lto/65536
26061         * lto-streamer.h (class lto_location_cache): New.
26062         (struct data_in): Add location_cache.
26063         (lto_input_location): Update prototype.
26064         (stream_input_location_now): New.
26065         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26066         pointer to location.
26067         (stream_input_location): Update.
26068         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26069         (warn_odr): Apply location cache before warning.
26070         (lto_input_location): Update prototype.
26071         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26072         Use stream_input_location_now.
26073         * lto-streamer-in.c (lto_location_cache::current_cache): New static
26074         variable.
26075         (lto_location_cache::cmp_loc): New function.
26076         (lto_location_cache::apply_location_cache): New function.
26077         (lto_location_cache::accept_location_cache): New function.
26078         (lto_location_cache::revert_location_cache): New function.
26079         (lto_location_cache::input_location): New function.
26080         (lto_input_location): Do location caching.
26081         (stream_input_location_now): New function.
26082         (input_eh_region, input_struct_function_base): Use
26083         stream_input_location_now.
26084         (lto_data_in_create): use new.
26085         (lto_data_in_delete): Use delete.
26086         * tree-streamer-in.c (unpack_ts_block_value_fields,
26087         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26088         lto_input_ts_exp_tree_pointers): Update for cached location api.
26089
26090 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26091
26092         PR ipa/65076
26093         * passes.def: Add pass_nothrow.
26094         * ipa-pure-const.c: (pass_data_nothrow): New.
26095         (pass_nothrow): New.
26096         (pass_nothrow::execute): New.
26097         (make_pass_nothrow): New.
26098         * tree-pass.h (make_pass_nothrow): Declare.
26099
26100 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26101
26102         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26103         edge to change by speculation resolution or redirection.
26104         (edge_set_predicate): Likewise.
26105         (inline_summary_t::duplicate): Likewise.
26106         (remap_edge_summaries): Likewise.
26107
26108 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26109
26110         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26111         New macros.
26112         (can_inline_edge_p): Relax option matching for always inline functions.
26113
26114 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
26115
26116         PR target/65561
26117         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26118         Check operand 4 and operand 0 for equality.
26119         (avx512f_vextract<shuffletype>32x4_1_maskm):
26120         Check operand 6 and operand 0 for equality.
26121         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26122         for equality.
26123         (vec_extract_hi_<mode>_maskm): Ditto.
26124
26125 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26126
26127         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26128         dead calls back to live.
26129         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26130         cross check to ...
26131         (cgraph_node::verify_node): ... here; verify only callee edges,
26132         not caller.
26133         * cif-code.def (CILK_SPAWN): New code.
26134
26135 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
26136
26137         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26138         (edge_set_predicate): Use it to mark unreachable edges.
26139         (inline_summary_t::duplicate): Remove unnecesary code.
26140         (remap_edge_summaries): Likewise.
26141         (dump_inline_summary): Report contains_cilk_spawn.
26142         (compute_inline_parameters): Compute contains_cilk_spawn.
26143         (inline_read_section, inline_write_summary): Stream
26144         contains_cilk_spawn.
26145         * ipa-inline.c (can_inline_edge_p): Do not touch
26146         DECL_STRUCT_FUNCTION that may not be available;
26147         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26148         remove check for callee_fun->can_throw_non_call_exceptions and
26149         replace it by optimization attribute check; check for flag_exceptions.
26150         * ipa-inline-transform.c (inline_call): Maintain
26151         DECL_FUNCTION_PERSONALITY
26152         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26153
26154 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26155
26156         PR tree-optimization/65551
26157         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26158         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26159
26160 2015-03-26  Richard Biener  <rguenther@suse.de>
26161
26162         PR middle-end/65555
26163         * tree-cfg.c (verify_gimple_call): Do not require a call to
26164         have no LHS if it wasn't recognized as control altering yet.
26165
26166 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
26167
26168         PR tree-optimization/64715
26169         * passes.def: Add another instance of pass_object_sizes before ccp1.
26170         * tree-object-size.c (pass_object_sizes::execute): In
26171         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26172         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26173         __bos result and the computed constant.  Remove redundant
26174         checks, obsoleted by gimple_call_builtin_p test.
26175
26176         * var-tracking.c (variable_tracking_main_1): Don't track
26177         variables for targetm.no_register_allocation targets.
26178
26179 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
26180
26181         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26182         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26183
26184 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26185
26186         PR target/65569
26187         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26188         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
26189         0.0 is correctly setup.
26190         (extenddftf2_internal): Likewise.
26191
26192 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
26193
26194         PR tree-optimization/65177
26195         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26196         (bb_in_bbs): New.
26197         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
26198         edges not adjacent on the path to the original code.
26199
26200 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
26201
26202         PR bootstrap/65537
26203         * doc/install.texi (Building a native compiler): Document new
26204         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
26205         configuration assumes that the host supports the linker plugin.
26206
26207 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26208
26209         PR target/65508
26210         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26211         chain for generated call.
26212
26213 2015-03-25  Richard Biener  <rguenther@suse.de>
26214
26215         * passes.c (pass_manager::execute_early_local_passes): Guard
26216         execution of pass_chkp_instrumentation_passes with
26217         flag_check_pointer_bounds.
26218         (pass_chkp_instrumentation_passes::gate): Likewise.
26219
26220 2015-03-25  Martin Liska  <mliska@suse.cz>
26221
26222         PR tree-optimization/65538
26223         * symbol-summary.h (function_summary::~function_summary):
26224         Relese memory for allocated summaries.
26225         (function_summary::release): New function.
26226
26227 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
26228
26229         PR lto/65515
26230         * lto-streamer-out.c (DFS::worklist): New struct.
26231         (DFS::worklist_vec): New data member.
26232         (DFS::next_dfs_num): Remove.
26233         (DFS::DFS): Rewritten using worklist instead of recursion,
26234         using most of code from DFS::DFS_write_tree.
26235         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26236         pass it to DFS_write_tree calls.
26237         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26238         quick initial checks push it into worklist_vec and return.
26239
26240 2015-03-25  Richard Biener  <rguenther@suse.de>
26241
26242         PR middle-end/65519
26243         * genmatch.c (expr::gen_transform): Re-write to avoid
26244         using gimple_build.
26245
26246 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26247
26248         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26249
26250 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
26251
26252         * config/arm/arm.opt (print_tune_info): New option.
26253         * config/arm/arm.c (arm_print_tune_info): New function.
26254         (arm_file_start): Call arm_print_tune_info.
26255         * config/arm/arm-protos.h (struct tune_params): Add comment.
26256         * doc/invoke.texi (@item -mprint-tune-info): New item.
26257         (-mtune): mention it in ARM Option Summary.
26258
26259 2015-03-25  DJ Delorie  <dj@redhat.com>
26260
26261         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26262         correct clause.
26263
26264 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
26265             Martin Liska  <mliska@suse.cz>
26266
26267         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26268         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26269         (sem_item::add_type): New function.
26270         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26271         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26272         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26273         (sem_function::equals_wpa): Fix typo.
26274         * ipa-icf.h (sem_item::add_type): New function.
26275         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26276         order.
26277
26278 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
26279
26280         PR tree-optimization/65533
26281         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26282         with swapped operands, call vect_free_slp_tree on
26283         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26284         vector.
26285
26286 2015-03-24  Richard Biener  <rguenther@suse.de>
26287
26288         PR middle-end/65517
26289         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26290         for fixup if necessary.
26291
26292 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
26293
26294         * doc/extend.texi (Function Attributes): Add @cindex entries
26295         for all attributes and regularize their format.  Delete text
26296         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
26297         information about "eightbit_data", "tiny_data", and "model"
26298         variable attributes to the Variable Attributes section.  Fix
26299         some obvious typos and copy-editing issues.
26300         (Variable Attributes, Type Attributes): Likewise add/fix
26301         @cindex entries for all attributes.
26302
26303 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26304
26305         PR target/65523
26306         * tree-chkp.c (chkp_build_returned_bound): Ignore
26307         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26308
26309 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
26310
26311         PR target/65505
26312         * config/sh/predicates.md (simple_mem_operand,
26313         displacement_mem_operand): Add test for reg.
26314         (short_displacement_mem_operand): Test for displacement_mem_operand
26315         before invoking sh_disp_addr_displacement.
26316         * config/sh/constraints.md (Sdd, Sra): Simplify.
26317         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26318         Remove redundant displacement_mem_operand tests.
26319
26320 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
26321
26322         PR target/65296
26323         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26324         the same -mmcu=MCU more than once.
26325
26326 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
26327
26328         PR bootstrap/65522
26329         * ipa-devirt.c: Remove duplicate demangle.h include.
26330
26331         PR target/65504
26332         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26333         on the pseudo.
26334         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26335         REG_POINTER on *destptr after adjusting it for prologue size.
26336
26337         PR ipa/65521
26338         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26339         ultimate_alias_target ()->order ints instead of
26340         ultimate_alias_target () pointers.
26341
26342 2015-03-23  Richard Biener  <rguenther@suse.de>
26343
26344         PR tree-optimization/65518
26345         * tree-vect-stmts.c (vectorizable_load): Reject single-element
26346         interleaving cases we generate absymal code for.
26347
26348 2015-03-23  Richard Biener  <rguenther@suse.de>
26349
26350         PR tree-optimization/65494
26351         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26352         matches here.
26353         (vect_analyze_slp_instance): But do that here, always and once.
26354
26355 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26356
26357         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26358         adding T or multiplying by T+1 and subracting T.
26359
26360 2015-03-22  Jeff Law  <law@redhat.com>
26361
26362         PR rtl-optimization/64317
26363         * Makefile.in (OBJS): Add gcse-common.c
26364         * gcse.c: Include gcse-common.h
26365         (struct modify_pair_s): Move structure definition to gcse-common.h
26366         (compute_transp): Move function to gcse-common.c.
26367         (canon_list_insert): Similarly.
26368         (record_last_mem_set_info): Break out some code and put it into
26369         gcse-common.c.  Call into the new common code.
26370         (compute_local_properties): Pass additional arguments to compute_transp.
26371         * postreload-gcse.c: Include gcse-common.h and df.h
26372         (modify_mem_list_set, blocks_with_calls): New variables.
26373         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26374         (get_bb_avail_insn): Pass in the expression index too.
26375         (alloc_mem): Allocate memory for the new bitmaps and lists.
26376         (free_mem): Free memory for the new bitmaps and lists.
26377         (insert_expr_in_table): Record a bitmap index for each entry we
26378         add to the table.
26379         (record_last_mem_set_info): Call into common code in gcse-common.c.
26380         (get_bb_avail_insn): If no available insn was found in the requested
26381         BB.  If BB has a single predecessor, see if the expression is
26382         transparent in BB and available in that single predecessor.
26383         (compute_expr_transp): New wrapper for compute_transp.
26384         (eliminate_partially_redundant_load): Pass expression's bitmap_index
26385         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
26386         (gcse_after_reload_main): If there are elements in the hash table,
26387         then compute transparency for all the elements in the hash table.
26388         * gcse-common.h: New file.
26389         * gcse-common.c: New file.
26390
26391 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
26392
26393         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26394         as an adjective.
26395         (System Headers): Likewise.
26396         (Ifdef): Likewise.
26397         (Traditional macros): Likewise.
26398         (Invocation): Likewise.
26399         (Option Index): Likewise.
26400         * doc/cppopts.texi (-M): Likewise.
26401         (-finput-charset): Likewise.
26402         (--help): Likewise.
26403         * doc.invoke.texi (AVR Options): Likewise.
26404         (V850 Options): Likewise.
26405
26406 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
26407
26408         PR ipa/65475
26409         * ipa-devirt.c: Include demangle.h
26410         (odr_type_d): Add field rtti_broken.
26411         (odr_subtypes_equivalent_p): Do not require name to match.
26412         (compare_virtual_tables): Fix typo; if type already has ODR violation,
26413         bypass the tests; be ready for function referneces in vtables that are
26414         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26415         (warn_odr): Give up for nameless types.
26416         (warn_types_mismatch): Report mismatch in mangled names;
26417         report mismatch in anonymous namespaces; look into component types to
26418         give useful error; report when mismatch is dragged in from other ODR
26419         type.
26420         (odr_types_equivalent_p): Match types for being polymorphic; avoid
26421         duplicated diagnostics.
26422         (add_type_duplicate): Reorder checks so more informative ones come
26423         first; fix typo; do not output "the extra base is defined here" when
26424         we did not warn.
26425         (BINFO_N_BASE_BINFOS): Relax sanity check.
26426
26427 2015-03-22  Martin Liska  <mliska@suse.cz>
26428             Jakub Jelinek  <jakub@redhat.com>
26429
26430         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26431         masks that can potentially include a builtin.
26432         (ix86_add_new_builtins): Introduce fast filter for isa values
26433         that cannot trigger builtin inclusion.
26434
26435 2015-03-22  Martin Liska  <mliska@suse.cz>
26436
26437         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26438         (sem_item::update_hash_by_local_refs): Likewise.
26439         (sem_variable::get_hash): Empty line is fixed.
26440         (sem_item_optimizer::execute): Include adding of hash references.
26441         (sem_item_optimizer::update_hash_by_addr_refs): New function.
26442         (sem_item_optimizer::build_hash_based_classes): Use local hash.
26443         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26444         (sem_item::update_hash_by_local_refs): Likewise.
26445
26446 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26447
26448         PR ipa/65502
26449         * ipa-comdats.c (enqueue_references): Walk through thunks.
26450         (ipa_comdats): Likewise.
26451         (set_comdat_group_1): New function.
26452
26453 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26454
26455         PR ipa/65475
26456         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26457         non-polymorphic
26458
26459 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
26460             Gerald Pfeifer  <gerald@pfeifer.com>
26461
26462         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26463
26464 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26465             Sandra Loosemore  <sandra@codesourcery.com>
26466
26467         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26468         function parameter declaration.
26469         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26470         Update arguments to nios2_adjust_call_address().
26471         (sibcall_internal): Rename from *sibcall.
26472         (sibcall_value_internal): Rename from *sibcall_value.
26473         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26474         (nios2_large_got_address): Add target temp reg parameter.
26475         (nios2_got_address): Adjust call to nios2_large_got_address, add
26476         force_reg around it.
26477         (nios2_load_pic_address): Add target temp reg parameter, replace call
26478         to nios2_got_address with corresponding code.
26479         (nios2_legitimize_constant_address): Update call to
26480         nios2_load_pic_address.
26481         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26482         to use temp reg for PIC loading purposes.
26483         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26484         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26485         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26486
26487 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26488
26489         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26490         usage of "the @option{...}".
26491         (-Wopenmp-simd): Likewise.
26492         (-fsanitize-recover): Likewise.
26493         (-fsanitize-undefined-trap-on-error): Likewise.
26494         (-flto): Likewise.
26495         (tracer-dynamic-coverage-feedback): Likewise.
26496         (reorder-block-duplicate-feedback): Likewise.
26497         (loop-unroll-jam-size): Likewise.
26498         (-B): Likewise.
26499         (-I-): Likewise.
26500         (-mabs=legacy): Likewise.
26501         (-mupper-regs-df): Likewise.
26502         (-mupper-regs-sf): Likewise.
26503         (-mpointers-to-nested-functions): Likewise.
26504
26505 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26506
26507         * doc/extend.texi (Cilk Plus Builtins): Add markup.
26508
26509 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
26510
26511         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26512         additional index entries and cross-references.
26513         (-fchkp-check-incomplete-type): Likewise.
26514         (-fchkp-first-field-has-own-bounds): Likewise.
26515         (-fchkp-narrow-to-innermost-array): Likewise.
26516         (-fchkp-use-fast-string-functions): Likewise.
26517         (-fchkp-use-nochk-string-functions): Likewise.
26518         (-fchkp-use-static-const-bounds): Likewise.
26519         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26520         (-fchkp-instrument-marked-only): Likewise.
26521         (-fchkp-use-wrappers): Likewise.
26522         (-static-libmpx): Likewise.
26523         (-static-libmpxwrappers): Likewise.
26524         * doc/extend.texi (bnd_legacy): Likewise.
26525         (bnd_instrument): Likewise.
26526         (bnd_variable_size): Likewise.
26527         (Pointer Bounds Checker builtins): Likewise.
26528
26529 2015-03-21  Tom de Vries  <tom@codesourcery.com>
26530
26531         PR tree-optimization/65458
26532         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26533         * cgraph.h (cgraph_node): Add parallelized_function field.
26534         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26535         (input_overwrite_node): Read parallelized_function field.
26536         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26537         parallelized_function on cgraph_node for child_fn.
26538         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26539         Remove include of gt-tree-parloops.h.
26540         (parallelized_functions): Remove static variable.
26541         (parallelized_function_p): Rewrite using parallelized_function field of
26542         cgraph_node.
26543         (create_loop_fn): Remove adding to parallelized_functions.
26544         * Makefile.in (GTFILES): Remove tree-parloops.c
26545
26546 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
26547
26548         PR rtl-optimization/64366
26549         * lra.c (lra_update_insn_regno_info): Consider regs in
26550         CALL_INSN_FUNCTION_USAGE memory.
26551
26552 2015-03-20  Richard Biener  <rguenther@suse.de>
26553
26554         PR middle-end/64715
26555         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26556         for type comparison and gcc_checking_assert.
26557         (chrec_fold_plus_poly_poly): Likewise.
26558         (chrec_fold_multiply_poly_poly): Likewise.
26559         (chrec_convert_1): Likewise.
26560         * gimplify.c (gimplify_expr): Remove premature folding of
26561         &X + CST to &MEM[&X, CST].
26562
26563 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
26564
26565         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26566         already is final.
26567         (ipa_inline): Recompute inline_failed codes.
26568         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26569         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26570         CIF_FINAL_ERROR.
26571
26572 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
26573
26574         PR rtl-optimization/60851
26575         * recog.c (constrain_operands): Accept a pseudo register before reload
26576         for LRA enabled targets.
26577
26578 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
26579
26580         PR target/65240
26581         * config/rs6000/predicates.md (easy_fp_constant): Remove special
26582         -ffast-math handling that kept non-0 constants live in the RTL
26583         until reload.  Remove logic testing the number of instructions it
26584         took to create a constant in a GPR that was never used, due to a
26585         test for soft-float earlier.
26586         (memory_fp_constant): Delete, no longer used.
26587
26588         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26589         alternatives for loading non-0 constants into GPRs for hard
26590         floating point that is no longer needed due to changes in
26591         easy_fp_constant.  Add support for loading 0.0 into GPRs.
26592         (mov<mode>_hardfloat32): Likewise.
26593         (mov<mode>_hardfloat64): Likewise.
26594         (mov<mode>_64bit_dm): Likewise.
26595         (movtd_64bit_nodm): Likewise.
26596         (pre-reload move FP constant define_split): Delete define_split,
26597         since it is no longer used.
26598         (extenddftf2_internal): Remove GHF constraints that are not valid
26599         for extenddftf2.
26600
26601 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
26602
26603         PR rtl-optimization/63491
26604         * lra-constraints.c (check_and_process_move): Use src instead of
26605         sreg.  Remove some dead code.
26606
26607 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
26608
26609         PR ipa/65380
26610         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26611         (sem_variable::merge): Likewise.
26612
26613 2015-03-19  Martin Liska  <mliska@suse.cz>
26614
26615         PR ipa/65465
26616         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26617         all fields of cgraph_thunk_info.
26618
26619 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26620
26621         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26622         clone instrumented thunks.
26623
26624 2015-03-19  Richard Biener  <rguenther@suse.de>
26625
26626         Revert
26627         2015-03-10  Richard Biener  <rguenther@suse.de>
26628
26629         PR middle-end/63155
26630         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26631         * tree-ssa-coalesce.c: Include timevar.h.
26632         (attempt_coalesce): Handle graph being NULL.
26633         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26634         Split out abnormal coalescing to ...
26635         (perform_abnormal_coalescing): ... this function.
26636         (coalesce_ssa_name): Perform abnormal coalescing without computing
26637         live/conflict.
26638         (verify_ssa_coalescing_worker): New function.
26639         (verify_ssa_coalescing): Likewise.
26640
26641 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26642             Jakub Jelinek  <jakub@redhat.com>
26643
26644         PR sanitizer/65400
26645         * tsan.c (instrument_gimple): Clear tail call flag on
26646         calls.
26647
26648 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
26649
26650         PR sanitizer/65400
26651         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26652         call in the return bb.
26653         (find_split_points): Add RETURN_BB argument, don't call
26654         find_return_bb.
26655         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
26656         if true append TSAN_FUNC_EXIT internal call after the call to
26657         the split off function.
26658         (execute_split_functions): Call find_return_bb here.
26659         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26660         Adjust find_split_points and split_function calls.
26661
26662 2015-03-18  DJ Delorie  <dj@redhat.com>
26663
26664         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26665         (iorqi3_virt): Likewise.
26666
26667 2015-03-18  Tom de Vries  <tom@codesourcery.com>
26668
26669         * tree-parloops.c (parallelize_loops): Make static.
26670         * tree-parloops.h (parallelize_loops): Remove extern declaration.
26671
26672 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
26673
26674         PR middle-end/64491
26675         Revert:
26676         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
26677
26678         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26679         condition would be removed due to undefined behaviour.
26680
26681 2015-03-18  Martin Liska  <mliska@suse.cz>
26682
26683         PR ipa/65432
26684         * cgraph.c (cgraph_node::get_create): Remove unnecessary
26685         xstrdup_for_dump wrapper.
26686         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26687         sem_item::name.
26688         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26689         with xstrdup_for_dump.
26690         (sem_variable::equals): Likewise.
26691         (sem_item_optimizer::read_section): Use symtab_node::name instead of
26692         sem_item::name.
26693         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26694         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26695         symtab_node::asm_name with xstrdup_for_dump.
26696         (congruence_class::dump): Use symtab_node::name instead of
26697         sem_item::name.
26698         * ipa-icf.h (symtab_node::name): Remove.
26699         (symtab_node::asm_name): Likewise.
26700
26701 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26702
26703         PR tree-optimization/65450
26704         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26705         function.
26706         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26707         it instead of duplicate_ssa_name_ptr_info.
26708
26709         PR target/65222
26710         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26711
26712 2015-03-18  Richard Biener  <rguenther@suse.de>
26713
26714         * tree-data-ref.h (struct access_matrix): Remove.
26715         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26716         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26717         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26718         (am_vector_index_for_loop): Likewise.
26719         (struct data_reference): Remove access_matrix member.
26720         (DR_ACCESS_MATRIX): Remove.
26721         (lambda_vector_new): Add comment.
26722         (lambda_matrix_new): Use XOBNEWVEC.
26723
26724 2015-03-18  Richard Biener  <rguenther@suse.de>
26725
26726         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26727         (pass_ch::execute): Cleanup the CFG only if we did sth.
26728         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26729
26730 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26731
26732         * expmed.c (synth_mult): Use std::swap instead of manually
26733         swapping algorithms.
26734
26735 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
26736
26737         PR target/65078
26738         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26739
26740 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
26741
26742         PR target/65296
26743         * config/avr/avr.opt (-nodevicelib): New option.
26744         * doc/invoke.texi (AVR Options): Document it.
26745         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26746         libgcc.a, libc.a, libm.a.
26747         * config/avr/specs.h: Same.
26748         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26749         which don't (directly) depend on the device.  Print more help.
26750         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26751         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26752         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26753         case of an error.
26754         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26755         for specs file name.
26756         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26757         * config/avr/avr-mcus.def: Adjust initializers and comments.
26758
26759 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
26760
26761         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26762         DECL_ONE_ONLY to check if decl is one only.
26763         * ipa-split.c (consider_split): Limit splitt of one only functions.
26764
26765 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26766
26767         PR tree-optimization/65427
26768         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26769         functions.
26770         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26771
26772 2015-03-16  Marek Polacek  <polacek@redhat.com>
26773
26774         * cgraph.h (add_new_static_var): Remove declaration.
26775         * varpool.c (add_new_static_var): Remove function.
26776
26777 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
26778
26779         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26780         instead of vec<tree> * with vec_alloc and release for args.
26781         Adjust all users.
26782
26783         PR middle-end/65431
26784         * omp-low.c (delete_omp_context): Only splay_tree_delete
26785         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26786         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
26787
26788 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26789
26790         PR sanitizer/64820
26791         * cfgexpand.c (align_base): New function.
26792         (alloc_stack_frame_space): Call it.
26793         (expand_stack_vars): Align prev_frame to be sure
26794         data->asan_vec elements aligned properly.
26795
26796 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
26797
26798         PR middle-end/65409
26799         * expr.c (store_field): Do not do a direct block copy if the source is
26800         a PARALLEL with BLKmode.
26801
26802 2015-03-16  Tom de Vries  <tom@codesourcery.com>
26803
26804         PR middle-end/65414
26805         Revert:
26806         2015-03-12  Tom de Vries  <tom@codesourcery.com>
26807
26808         PR rtl-optimization/64895
26809         * lra-lives.c (check_pseudos_live_through_calls): Use
26810         actual_call_used_reg_set instead of call_used_reg_set, if available.
26811
26812 2015-03-16  Alan Modra  <amodra@gmail.com>
26813
26814         PR target/63150
26815         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26816         Modify Z->r bswapdi splitter to use dest in place of scratch.
26817         In r->Z and Z->r bswapdi splitter rename word_high, word_low
26818         to word1, word2 and rearrange logic to suit.
26819         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26820         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
26821         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26822         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
26823         early clobber.
26824
26825 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
26826
26827         PR tree-optimization/65369
26828         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26829         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26830         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26831
26832         PR tree-optimization/65418
26833         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26834         are casts in the first PLUS_EXPR operand, ensure tbias and
26835         *totallowp are in the inner type.
26836
26837         PR rtl-optimization/65401
26838         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26839         argument.  If true, adjust_address_nv of x with big-endian
26840         correction for the mode widening to GET_MODE (y).
26841         (make_field_assignment): Don't do MEM mode widening here.
26842         Use MEM_P instead of GET_CODE == MEM.
26843
26844 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
26845
26846         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26847         the external decls.
26848
26849 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26850
26851         PR target/64600
26852         * config/arm/arm.c (arm_gen_constant, AND case): Use
26853         ARM_SIGN_EXTEND when constructing AND mask.
26854
26855 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26856
26857         * graph.c (print_graph_cfg): Make function names visible and append
26858         parenthesis to it.  Also make groups of basic blocks belonging to the
26859         same function visible.
26860
26861 2015-03-12  Richard Biener  <rguenther@suse.de>
26862
26863         PR middle-end/44563
26864         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26865         to avoid quadratic behavior with inline expansion splitting blocks.
26866         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26867         with the successor if the predecessor will be merged with it.
26868         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26869         entry block with its successor.
26870
26871 2015-03-13  Richard Biener  <rguenther@suse.de>
26872
26873         PR middle-end/44563
26874         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26875         (cleanup_tree_cfg_1): Do not call it.
26876         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26877         (fixup_noreturn_call): Mark the stmt as control altering.
26878         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26879         here.
26880         (pass_data_fixup_cfg): Produce a dump file.
26881         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26882         (need_noreturn_fixup): New global.
26883         (pass_dominator::execute): Fixup queued noreturn calls.
26884         (optimize_stmt): Queue calls that became noreturn for fixup.
26885         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26886         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26887         (el_to_fixup): New global.
26888         (eliminate_dom_walker::before_dom_childre): Queue calls that
26889         became noreturn for fixup.
26890         (eliminate): Fixup queued noreturn calls.
26891         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26892         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26893         (substitute_and_fold_dom_walker::before_dom_children): Queue
26894         alls that became noreturn for fixup.
26895         (substitute_and_fold): Fixup queued noreturn calls.
26896
26897 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
26898
26899         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26900         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26901         are building; for methods check ODR type of class they belong to if
26902         they may lead to a polymorphic call.
26903         (sem_function::compare_polymorphic_p): Be bit smarter about testing
26904         when function may lead to a polymorphic call.
26905         (sem_function::compare_type_list): Remove.
26906         (sem_variable::equals): Update use of compatible_types_p.
26907         (sem_variable::parse_tree_refs): Remove.
26908         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26909         cdtor.
26910         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26911         matching here.
26912         (func_checker::compatible_polymorphic_types_p): Break out from ...
26913         (unc_checker::compatible_types_p): ... here.
26914         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26915         Declare.
26916         (unc_checker::compatible_types_p): Update.
26917         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26918         Remove.
26919
26920 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26921
26922         PR rtl-optimization/65235
26923         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26924         When first element of vec_concat is const_int, calculate its size
26925         using second element.
26926
26927 2015-03-12  Richard Biener  <rguenther@suse.de>
26928
26929         PR middle-end/65270
26930         * fold-const.c (operand_equal_p): Fix ordering of resetting
26931         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26932
26933 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
26934
26935         * config/s390/s390.c (s390_reorg): Move code to output nops after label
26936         to s390_reorg ().
26937         (s390_asm_output_function_label): Likewise.
26938         * config/s390/s390.c (s390_asm_output_function_label):
26939         Fix function label alignment with -mhtopatch.
26940         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
26941         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
26942         ("nop_2_byte"): New define_insn.
26943         ("nop_4_byte"): Likewise.
26944         ("nop_6_byte"): Likewise.
26945         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
26946         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
26947
26948 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26949
26950         PR target/65103
26951         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
26952         register.
26953
26954 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
26955
26956         PR target/65044
26957         * toplev.c (process_options): Restrict Pointer Bounds Checker
26958         usage with Address Sanitizer.
26959
26960 2015-03-12  Richard Biener  <rguenther@suse.de>
26961
26962         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
26963         to split on.
26964         * omp-low.c (expand_omp_taskreg): Split block before removing
26965         the stmt.
26966         (expand_omp_target): Likewise.
26967         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
26968         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
26969         stmt to split_block.
26970
26971 2015-03-12  Tom de Vries  <tom@codesourcery.com>
26972
26973         PR rtl-optimization/64895
26974         * lra-lives.c (check_pseudos_live_through_calls): Use
26975         actual_call_used_reg_set instead of call_used_reg_set, if available.
26976
26977 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
26978
26979         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
26980         (cgraph_node::remove): Likewise.
26981         (cgraph_node::get_untransformed_body): Likewise.
26982         * varpool.c (varpool_node::remove): Likewise.
26983         (varpool_node::get_constructor): Add sanity check.
26984
26985 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
26986
26987         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
26988         old GCC versions.
26989         (-fabi-compat-version): Likewise.
26990         (-ffriend-injection): Likewise.
26991         (-Wdeclaration-after-statement): Likewise.
26992         (-fomit-frame-pointer): Likewise.
26993         (-ftree-coalesce-inlined-vars): Likewise.
26994         (-fvisibility=): Likewise.
26995         * doc/extend.texi (Typeof): Likewise.
26996         (Zero Length): Likewise.
26997         (Escaped Newlines): Likewise.
26998         (Compound Literals): Likewise.
26999         (Function Attributes): Likewise.
27000         (Label Attributes): Likewise.
27001         (Type Attributes): Likewise.
27002         (Function Names): Likewise.
27003         (Other Builtins): Likewise.
27004         (Function Specific Option Pragmas): Likewise.
27005         (C++ Interface): Likewise.
27006
27007 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
27008
27009         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27010
27011 2015-03-11  Marek Polacek  <polacek@redhat.com>
27012
27013         PR tree-optimization/65388
27014         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27015
27016 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27017
27018         PR target/65296
27019         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27020         * configure: Regenerate.
27021         * config.in: Regenerate.
27022         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27023         [-mn-flash]: Document it.
27024         [__AVR_ARCH__]: Document avrtiny.
27025
27026         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27027         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27028         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27029
27030 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27031
27032         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27033
27034 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
27035
27036         PR target/65242
27037         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27038         allow reloads of PLUS in floating point/VSX registers.
27039
27040 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
27041
27042         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27043         crypto_sha256_fast.
27044         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27045
27046 2015-03-11  Richard Biener  <rguenther@suse.de>
27047
27048         PR tree-optimization/65310
27049         * tree-sra.c (build_ref_for_offset): Also preserve larger
27050         alignment.
27051
27052 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
27053
27054         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27055
27056 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27057
27058         PR target/65368
27059         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27060         new define_expand.
27061         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27062
27063 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27064
27065         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27066         (sem_function::equals_wpa): ... here.
27067
27068 2015-03-10  Marek Polacek  <polacek@redhat.com>
27069             Jakub Jelinek  <jakub@redhat.com>
27070
27071         PR sanitizer/65367
27072         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27073         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
27074         separately.
27075
27076 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27077
27078         PR target/65286
27079         * config/rs6000/t-linux: For powerpc64* target set
27080         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27081
27082 2015-03-10  Richard Biener  <rguenther@suse.de>
27083
27084         PR middle-end/44563
27085         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27086         for redirect_all_calls.
27087
27088 2015-03-10  Marek Polacek  <polacek@redhat.com>
27089
27090         * gdbinit.in (pcfun): Define and document.
27091
27092 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
27093
27094         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27095         of libgomp-plugin.h.
27096         (find_target_compiler): Support a case when the path to gcc is
27097         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27098         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27099         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27100         libgomp-plugin.h.
27101         (main): Use GCC_INSTALL_NAME as target_driver_name.
27102         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27103         define.
27104         (mkoffload.o): Remove obsolete include path and defines.
27105         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27106
27107 2015-03-10  Richard Biener  <rguenther@suse.de>
27108
27109         PR middle-end/63155
27110         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27111         * tree-ssa-coalesce.c: Include timevar.h.
27112         (attempt_coalesce): Handle graph being NULL.
27113         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27114         Split out abnormal coalescing to ...
27115         (perform_abnormal_coalescing): ... this function.
27116         (coalesce_ssa_name): Perform abnormal coalescing without computing
27117         live/conflict.
27118         (verify_ssa_coalescing_worker): New function.
27119         (verify_ssa_coalescing): Likewise.
27120
27121 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
27122
27123         PR target/65296
27124         * config.gcc (extra_options) [avr]: Remove.
27125         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27126         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27127         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27128
27129         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27130         (-mmcu=): Add Var and MissingArgError properties.
27131         (-march=): Remove.
27132         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27133         * config/avr/t-multilib: Regenerate.
27134         * config/avr/specs.h: New file.
27135         * config/avr/driver-avr.c: New file.
27136         * config/avr/genopt.sh: Remove file.
27137         * config/avr/avr-tables.opt: Remove file.
27138         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27139         * config/avr/avr-c.c: Same.
27140         * avr-arch.h: Same.
27141         (avr_current_device): Remove proto.
27142         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27143         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27144         (EXTRA_SPEC_FUNCTIONS): Define.
27145         (avr_devicespecs_file): New specs function proto.
27146         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27147         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27148         (avr_current_device): Remove definition and usage.
27149         (avr_set_core_architecture): New static function.
27150         (avr_option_override): Use it.
27151         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27152         (mcu_name): New static array.
27153         (comparator, avr_archs_str, avr_mcus_str): New static functions.
27154         (avr_inform_devices, avr_inform_core_architectures): New functions.
27155         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27156         (avrlibc.h) [WITH_AVRLIBC]: Include.
27157         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27158         (print_mcu): Rewrite from scratch.
27159         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27160         Forward to avr-specific specs defined in device-specs file.
27161         * config/avr/t-avr (driver-avr.o): New rule.
27162         (avr-devices.o): Depend on avr-arch.h.
27163         (avr-mcus): No more depend on avr-tables.opt.
27164         (avr-tables.opt): Remove rule.
27165         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27166
27167 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27168
27169         * c-family/c.opt (fchkp-use-wrappers): New.
27170         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27171         (chkp_wrap_function): New.
27172         (chkp_build_instrumented_fndecl): Support wrapped
27173         functions.
27174         * doc/invoke.texi (-fcheck-pointer-bounds): New.
27175         (-fchkp-check-incomplete-type): New.
27176         (-fchkp-first-field-has-own-bounds): New.
27177         (-fchkp-narrow-bounds): New.
27178         (-fchkp-narrow-to-innermost-array): New.
27179         (-fchkp-optimize): New.
27180         (-fchkp-use-fast-string-functions): New.
27181         (-fchkp-use-nochk-string-functions): New.
27182         (-fchkp-use-static-bounds): New.
27183         (-fchkp-use-static-const-bounds): New.
27184         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27185         (-fchkp-check-read): New.
27186         (-fchkp-check-write): New.
27187         (-fchkp-store-bounds): New.
27188         (-fchkp-instrument-calls): New.
27189         (-fchkp-instrument-marked-only): New.
27190         (-fchkp-use-wrappers): New.
27191         (-static-libmpx): New.
27192         (-static-libmpxwrappers): New.
27193
27194 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27195
27196         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27197         (CHKP_SPEC): Add wrappers library.
27198         * c-family/c.opt (static-libmpxwrappers): New.
27199
27200 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
27201
27202         * config/i386/linux-common.h (LIBMPX_LIBS): New.
27203         (LIBMPX_SPEC): New.
27204         (CHKP_SPEC): New.
27205         * gcc.c (CHKP_SPEC): New.
27206         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27207         * c-family/c.opt (static-libmpx): New.
27208
27209 2015-03-10  Richard Biener  <rguenther@suse.de>
27210
27211         PR middle-end/44563
27212         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27213         for compare_type.
27214         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27215         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27216         (cgraph_add_edge_to_call_site_hash): Likewise.
27217         (cgraph_node::get_edge): Likewise.
27218         (cgraph_edge::set_call_stmt): Likewise.
27219         (cgraph_edge::remove_caller): Likewise.
27220
27221 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
27222
27223         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27224         (callee_saved_gpr_regs_size): ... this.
27225         (callee_saved_regs_first_regno): Rename to ...
27226         (callee_saved_first_gpr_regno): ... this.
27227         (callee_saved_regs_last_regno) Rename to ...
27228         (callee_saved_last_gpr_regno): ... this.
27229         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27230         variables.
27231         (nds32_initial_elimination_offset): Likewise.
27232         (nds32_expand_prologue): Likewise.
27233         (nds32_expand_epilogue): Likewise.
27234         (nds32_expand_prologue_v3push): Likewise.
27235         (nds32_expand_epilogue_v3pop): Likewise.
27236         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27237         Adjust renamed variables.
27238         (nds32_output_stack_pop): Likewise.
27239
27240 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27241
27242         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27243         code in comment.
27244
27245 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
27246
27247         PR rtl-optimization/65321
27248         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27249         than shift mode.
27250         * var-tracking.c (use_narrower_mode): Likewise.
27251
27252 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
27253
27254         PR tree-optimization/65355
27255         * varasm.c (notice_global_symbol): Do not produce RTL.
27256         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27257         anchor.
27258         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27259         check for section anchors.
27260
27261 2015-03-10  Alan Modra  <amodra@gmail.com>
27262
27263         PR target/65286
27264         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27265         to be single-arch by default.  Set cpu_is_64bit for powerpc64
27266         given --with-cpu=native.
27267         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27268         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27269         and powerpc64le.
27270         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27271         rs6000_isa_flags rather than TARGET_64BIT.
27272
27273 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
27274             Kaz Kojima  <kkojima@gcc.gnu.org>
27275
27276         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27277
27278 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
27279
27280         PR lto/65361
27281         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27282         on a TREE_BINFO, instead use BINFO_TYPE.
27283
27284 2015-03-09  Richard Biener  <rguenther@suse.de>
27285
27286         PR middle-end/65270
27287         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27288         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27289         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
27290         of that.  When comparing dereferences compare alignment.
27291         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27292
27293 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27294
27295         * ipa-inline-analysis.c (check_callers): Check
27296         node->can_remove_if_no_direct_calls_and_refs_p.
27297         (growth_likely_positive): Reorganize to call
27298         can_remove_if_no_direct_calls_p later.
27299         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27300         will_be_removed_from_program_if_no_direct_calls_p): Add
27301         will_inline parameter.
27302         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27303         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27304         Handle inliner case correctly.
27305
27306 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27307
27308         PR tree-optimization/63743
27309         * cfgexpand.c (reorder_operands): Also reorder if only second operand
27310         had its definition forwarded by TER.
27311
27312 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
27313
27314         PR lto/65316
27315         * ipa-utils.h (types_odr_comparable): Add strict argument.
27316         * ipa-devirt.c: Fix whitespace;
27317         (odr_hasher): Remove.
27318         (odr_name_hasher, odr_vtable_hasher): New hashers.
27319         (can_be_name_hashed_p): New predicate.
27320         (hash_type_name): remove.
27321         (hash_odr_name): New.
27322         (odr_name_hasher::hash): new.
27323         (can_be_vtable_hashed_p): New.
27324         (hash_odr_vtable): New.
27325         (odr_vtable_hasher::hash): New.
27326         (types_same_for_odr): Add strict parameter.
27327         (types_odr_comparable): Likewise.
27328         (odr_name_hasher::equal): New.
27329         (odr_vtable_hasher::equal): New.
27330         (odr_name_hasher::remove): New.
27331         (odr_hash_type): Change to hash_table<odr_name_hasher>.
27332         (odr_vtable_hash_type): New.
27333         (odr_vtable_hash): New.
27334         (odr_subtypes_equivalent_p): Do strict comparsion.
27335         (add_type_duplicate): Merge type names; cleanup; avoid type
27336         duplicates.
27337         (register_odr_type): Initialize vtable hash.
27338         (build_type_inheritance_graph): Likewise
27339         (get_odr_type): Reorg to use two hashes.
27340         (dump_possible_polymorphic_call_targets): Move sanity check after debug
27341         output.
27342         (ipa_devirt): Dump type_inheritance_graph.
27343         (types_same_for_odr): Add strict mode.
27344
27345 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27346
27347         PR ipa/65334
27348         * cgraph.h (symtab_node): Add definition_alignment,
27349         can_increase_alignment_p and increase_alignment.
27350         * symtab.c (symtab_node::can_increase_alignment_p,
27351         increase_alignment_1, symtab_node::increase_alignment,
27352         symtab_node::definition_alignment): New.
27353         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27354         can_increase_alignment_p.
27355         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27356         * tree-vect-stmts.c (ensure_base_align): Likewise.
27357         * varasm.c (function_section_1): Use definition_alignment.
27358         (assemble_start_function): Likewise.
27359         (emit_local): likewise.
27360         (build_constant_desc): Likewsie.
27361         (output_constant_def_contents): Likewise.
27362         (place_block_symbol): Likewise.
27363         (output_object_block): Likewise.
27364
27365 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27366
27367         PR ipa/65316
27368         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27369         when outputting debug.
27370
27371 2015-03-07  Marek Polacek  <polacek@redhat.com>
27372             Martin Uecker  <uecker@eecs.berkeley.edu>
27373
27374         PR sanitizer/65280
27375         * doc/invoke.texi: Update description of -fsanitize=bounds.
27376
27377 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
27378
27379         * tree-ssa-phiopt.c (neg_replacement): Remove.
27380         (tree_ssa_phiopt_worker): Remove negate optimization.
27381
27382 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27383
27384         PR ipa/65302
27385         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27386
27387 2015-03-06  Richard Biener  <rguenther@suse.de>
27388
27389         PR middle-end/64928
27390         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27391         and liveout_obstack members.
27392         (calculate_live_on_exit): Remove.
27393         (calculate_live_ranges): Change declaration.
27394         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27395         (new_tree_live_info): Adjust.
27396         (calculate_live_ranges): Delete livein when not wanted.
27397         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27398         Deal with partly deleted live info.
27399         (loe_visit_block): Remove temporary bitmap by using
27400         bitmap_ior_and_compl_into.
27401         (live_worklist): Adjust accordingly.
27402         (calculate_live_on_exit): Make static.
27403         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27404         we do not need livein.
27405
27406 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
27407
27408         * real.c (real_from_string): Fix typo in assertion.
27409
27410 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
27411
27412         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27413         the patch.
27414
27415 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
27416
27417         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27418
27419 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
27420
27421         PR target/64342
27422         * lra-assigns.c (find_hard_regno_for): Rename to
27423         find_hard_regno_for_1.  Add a new parameter.
27424         (find_hard_regno_for): New function using find_hard_regno_for_1.
27425
27426 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27427
27428         PR rtl-optimization/65067
27429         * expmed.c (store_bit_field, extract_bit_field): Reworked the
27430         strict volatile bitfield handling.
27431
27432 2015-03-05  Martin Liska  <mliska@suse.cz>
27433
27434         PR ipa/65318
27435         * ipa-icf.c (sem_variable::equals): Compare variables types.
27436
27437 2015-03-05  Richard Henderson  <rth@redhat.com>
27438
27439         PR target/65121
27440         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27441         correctly check weak symbol binding.
27442
27443 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
27444
27445         PR middle-end/65315
27446         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27447         needed alignment.
27448
27449 2015-03-05  Martin Liska  <mliska@suse.cz>
27450
27451         * ipa-inline.c (inline_small_functions): Set default value to
27452         prevent warning during bootstrap.
27453         * tree.h: Add pragma guard that ignores false positives during
27454         bootstrap.
27455
27456 2015-03-05  Richard Biener  <rguenther@suse.de>
27457
27458         PR tree-optimization/65310
27459         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27460         Properly preserve alignment of the base of the access.
27461
27462 2015-03-05  Richard Biener  <rguenther@suse.de>
27463
27464         PR ipa/65270
27465         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27466         Compare dependence info.
27467
27468 2015-03-05  Richard Biener  <rguenther@suse.de>
27469
27470         PR middle-end/65233
27471         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27472         tree-into-ssa.h.
27473         (walk_ssa_copies): Revert last chage.  Instead do not walk
27474         SSA names registered for SSA update.
27475
27476 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27477
27478         PR ipa/65270
27479         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27480         vtable references for their containing type.
27481         (sem_function::equals_wpa): Compare TYPE_RESTRICT
27482         and type attributes.
27483
27484 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
27485
27486         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27487         before negating it.
27488         * stor-layout.c (finalize_record_size): Revert latest change.
27489
27490 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
27491
27492         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27493
27494 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27495
27496         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27497         for correct comdat handling.
27498         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27499         Likewise.
27500         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27501         (used_from_object_file_p_worker): Remove.
27502         (cgraph_node::only_called_directly_or_alised): Add
27503         used_from_object_file_p.
27504         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27505         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27506         can_remove_if_no_direct_calls_and_refs_p.
27507
27508 2015-03-04  Nick Clifton  <nickc@redhat.com>
27509
27510         * config/rl78/rl78.h (enum reg_class): Remove real registers from
27511         General register class.
27512         * config/rl78/rl78-real.md: Replace general register constraints
27513         with real+virtual register constraints.
27514
27515 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27516
27517         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27518         from checking for -mhtm option.
27519
27520 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
27521
27522         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27523         (struct ipa_sra_check_caller_data): Add has_thunk field.
27524         (ipa_sra_check_caller): Check for thunk.
27525         (ipa_sra_preliminary_function_checks): Give up on function with
27526         thunks.
27527         (ipa_early_sra): Use call_for_symbol_and_aliases.
27528
27529 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
27530
27531         PR target/65249
27532         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27533         called for __stack_chk_guard symbol.
27534
27535 2015-03-03  DJ Delorie  <dj@redhat.com>
27536
27537         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27538         inc/dec.
27539         (*addhi3_real): Likewise.
27540         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27541         pattern to match incrementing memory.
27542         * config/rl78/predicates.md (rl78_1_2_operand): New.
27543         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27544         it's the same and only mem.
27545         (rl78_alloc_physical_registers_op2): If there's effectively only
27546         one MEM, transcode it into HL.
27547         (rl78_far_p): Reject addresses that aren't legitimate.
27548
27549 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27550
27551         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27552         negating it.
27553
27554         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27555
27556 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27557
27558         Implement call0 ABI for xtensa
27559         * config/xtensa/constraints.md ("a" constraint): Include stack
27560         pointer in case of call0 ABI.
27561         ("q" constraint): Make empty in case of call0 ABI.
27562         ("D" constraint): Include stack pointer in case of call0 ABI.
27563         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27564         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27565         prototypes.
27566         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27567         variable.
27568         (xtensa_regno_to_class): Make it a local variable in the
27569         function xtensa_regno_to_class.
27570         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27571         macro, function prototype and implementation.
27572         (reg_nonleaf_alloc_order): Make it a local variable in the
27573         function order_regs_for_local_alloc.
27574         (xtensa_conditional_register_usage): New function.
27575         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27576         (xtensa_valid_move): Allow direct moves to stack pointer
27577         register in call0 ABI.
27578         (xtensa_setup_frame_addresses): Only spill register windows in
27579         windowed ABI.
27580         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27581         call0 ABI respectively.
27582         (xtensa_function_arg_1): Only mark a7 register for copying in
27583         windowed ABI.
27584         (xtensa_call_save_reg): New function.
27585         (compute_frame_size): Add space for callee saved register
27586         storage to the frame size in call0 ABI.
27587         (xtensa_expand_prologue): Generate code to set up stack frame
27588         and save callee-saved registers in call0 ABI.
27589         (xtensa_expand_epilogue): New function.
27590         (xtensa_set_return_address): New function.
27591         (xtensa_return_addr): Calculate return address in call0 ABI.
27592         (xtensa_builtin_saveregs): Only mark a7 register for copying and
27593         emit copying code in windowed ABI.
27594         (order_regs_for_local_alloc): Add preferred register allocation
27595         order for non-leaf function in call0 ABI.
27596         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27597         (xtensa_asm_trampoline_template): Add trampoline generation for
27598         call0 ABI.
27599         (xtensa_trampoline_init): Add trampoline initialization for
27600         call0 ABI.
27601         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27602         functions.
27603         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27604         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27605         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27606         ABI call-used registers.
27607         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27608         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27609         call0 ABI.
27610         (REG_CLASS_CONTENTS): Include all registers into the preferred
27611         reload registers set, adjust the set in the
27612         xtensa_conditional_register_usage.
27613         (xtensa_regno_to_class): Drop variable declaration.
27614         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27615         function.
27616         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27617         respectively.
27618         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27619         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27620         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27621         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27622         location in call0 ABI.
27623         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27624         stack adjustment size when handling exception.
27625         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27626         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27627         definitions.
27628         ("return" pattern): Generate ret.n/ret in call0 ABI.
27629         ("epilogue" pattern): Expand epilogue.
27630         ("nonlocal_goto" pattern): Use default in call0 ABI.
27631         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27632         emit eh_set_a0_* depending on ABI.
27633         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27634         ("eh_set_a0_call0", "blockage"): New patterns.
27635
27636 2015-03-03  Martin Liska  <mliska@suse.cz>
27637
27638         PR ipa/65287
27639         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27640
27641 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27642
27643         PR 65138/target
27644         * config/rs6000/rs6000-tables.opt: Regenerate table.
27645
27646 2015-03-03  Renlin Li  <renlin.li@arm.com>
27647
27648         * doc/md.texi (@item ^): Change ? into ^.
27649
27650 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27651
27652         * doc/tm.texi: Regenerated.
27653
27654 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
27655
27656         * builtins.c (expand_builtin_return_addr): Add
27657         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27658         surrounding #ifdef.
27659         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27660         definition to 1.
27661         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27662         Likewise.
27663         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27664         undefined.
27665         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27666         paragraph.
27667
27668 2015-03-03  Martin Jambor  <mjambor@suse.cz>
27669             Eric Botcazou  <ebotcazou@adacore.com>
27670
27671         * tree-sra.c (ipa_sra_check_caller_data): New type.
27672         (has_caller_p): Removed.
27673         (ipa_sra_check_caller): New function.
27674         (ipa_sra_preliminary_function_checks): Use it.
27675
27676 2015-03-03  Martin Liska  <mliska@suse.cz>
27677
27678         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27679         instead of if branch.
27680
27681 2015-03-03  Martin Liska  <mliska@suse.cz>
27682
27683         PR ipa/65282
27684         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27685
27686 2015-03-23  Jeff Law  <law@redhat.com>
27687
27688         PR tree-optimization/65241
27689         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27690         hash table if INSERT is true.
27691
27692 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27693
27694         PR target/65296
27695         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27696
27697 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27698
27699         PR target/64331
27700         * config/avr/avr.c (context.h, tree-pass.h): Include them.
27701         (avr_pass_data_recompute_notes): New static variable.
27702         (avr_pass_recompute_notes): New class.
27703         (avr_register_passes): New static function.
27704         (avr_option_override): Call it.
27705
27706 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
27707
27708         Fix various problems with specs file generation.
27709
27710         PR target/65296
27711         * config.gcc (extra_gcc_objs) [avr]: Remove.
27712         * config/avr/driver-avr.c: Remove file.
27713         * config/avr/t-avr (driver-avr.o): Remove rule.
27714         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27715         INCLUDES to build.  Depend on TM_H.
27716         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
27717         build warnings.  Fix non-matching types and non-existing %-codes.
27718         (tm.h): Include.
27719         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27720         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27721         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27722         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27723         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27724         (LIBGCC_SPEC): Remove definitions.
27725
27726 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27727
27728         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27729         to create a register in testing mode.
27730
27731 2015-03-03  Martin Liska  <mliska@suse.cz>
27732             Jan Hubicka  <hubicka@ucw.cz>
27733
27734         PR ipa/65263
27735         * cgraph.c (cgraph_node::has_thunk_p): New function.
27736         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27737         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27738         (sem_function::merge): Assert is changed.
27739
27740 2015-03-03  Martin Liska  <mliska@suse.cz>
27741             Martin Jambor  <mjambor@suse.cz>
27742
27743         PR ipa/65087
27744         * ipa-icf.c (sem_item_optimizer::execute): Change function
27745         return value to boolean.
27746         (sem_item_optimizer::merge_classes): Likewise.
27747         (ipa_icf_driver): Return TODO_remove_functions in case there's
27748         a merge operation processed.
27749         * ipa-icf.h: Change function return value to boolean.
27750
27751 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27752
27753         PR 65138/target
27754         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27755         processor type for 64-bit little endian PowerPC.
27756
27757         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27758         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
27759         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
27760         printing built-in mask so it does not pass NULL pointers.
27761
27762         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27763         -mcpu=powerpc64le.
27764
27765 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
27766
27767         PR target/58158
27768         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27769         !ISA_HAS_FP_CONDMOVE.
27770
27771 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
27772
27773         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27774         reload_completed.
27775
27776 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
27777
27778         * doc/invoke.texi (Options for Code Generation Conventions):
27779         Fix URL of DSO paper.
27780
27781 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27782
27783         PR ipa/65130
27784         * ipa-inline.c (check_callers): Looks for recursion.
27785         (inline_to_all_callers): Give up on uninlinable or recursive edges.
27786         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27787         summary of inline clones.
27788         (do_estimate_growth_1): Fix recursion check.
27789
27790 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27791
27792         PR ipa/64988
27793         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27794         comdat groups.
27795
27796 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
27797             Aldy Hernandez  <aldyh@redhat.com>
27798
27799         PR lto/65276
27800         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27801         when checking TYPE_BINFO.
27802
27803 2015-03-02  Richard Biener  <rguenther@suse.de>
27804
27805         PR ipa/65270
27806         * ipa-icf-gimple.c: Include builtins.h.
27807         (func_checker::compare_memory_operand): Compare base alignment.
27808
27809 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27810
27811         PR target/65184
27812         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27813         are never passed by reference.
27814
27815 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
27816
27817         PR target/65183
27818         * tree-chkp.c (chkp_check_lower): Don't check against
27819         zero bounds for already instrumented functions.
27820         (chkp_check_upper): Likewise.
27821         (chkp_fini): Clean pass local data to avoid wrong reusage.
27822
27823 2015-02-28  Martin Liska  <mliska@suse.cz>
27824             Jan Hubicka  <hubicka@ucw.cz>
27825
27826         * ipa-icf.c (sem_variable::equals): Improve debug output;
27827         get variable constructor.
27828         (sem_variable::parse): Do not filter out too early; give up on
27829         volatile and register vars.
27830         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27831         variables.
27832         * ipa-icf.h (sem_variable::init): Do not set ctor.
27833         (sem_variable::ctor): Remove.
27834
27835 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
27836
27837         PR middle-end/65233
27838         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27839
27840 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27841
27842         * ipa-icf.c: Include stor-layout.h
27843         (sem_function::compare_cgraph_references): Rename to ...
27844         (sem_item::compare_cgraph_references): ... this one.
27845         (sem_variable::equals_wpa): New function
27846         (sem_variable::equals): Do not check stuff already verified by
27847         equals_wpa.
27848         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27849         * ipa-icf.h (sem_item): Add compare_cgraph_references.
27850         (sem_function): Remove compare_cgraph_references.
27851         (sem_variable): Turns equals_wpa into non-inline.
27852
27853 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27854
27855         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27856         (sem_item::add_expr): New function.
27857         (sem_function::hash_stmt): Handle operands of most statements.
27858         (sem_variable::get_hash): Hash the actual constructor.
27859         * ipa-icf.h (sem_item): Add add_expr.
27860         (sem_function): Update prototype of hash_stmt
27861
27862 2015-02-28  Martin Liska  <mliska@suse.cz>
27863             Jan Hubicka  <hubicka@ucw.cz>
27864
27865         PR ipa/65245
27866         * ipa-icf-gimple.c (func_checker::compare_function_decl):
27867         Remove.
27868         (func_checker::compare_variable_decl): Skip symtab vars.
27869         (func_checker::compare_cst_or_decl): Update.
27870         * ipa-icf.c (sem_function::parse): Do not consider aliases.
27871         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27872         use correct symtab predicates.
27873         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27874         (sem_variable::parse):  Update comment.
27875         (sem_item_optimizer::build_graph): Consider ultimate aliases
27876         for references.
27877
27878 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27879
27880         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27881         of OBJ_TYPE_REF.
27882
27883 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27884
27885         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27886         (sem_variable::merge) Likewise.
27887
27888 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27889
27890         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27891         target; also match flag_ipa_devirt.
27892
27893 2015-03-01  Martin Liska  <mliska@suse.cz>
27894             Jan Hubicka  <hubicka@ucw.cz>
27895
27896         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27897         Validate variable alignment.
27898         * ipa-icf.c (sem_function::equals_private): Be more precise
27899         about non-common function attributes.
27900         (sem_variable::equals): Likewise.
27901
27902 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27903
27904         PR ipa/65237
27905         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27906         across COMDAT group boundary.
27907
27908 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27909
27910         PR ipa/65232
27911         * ipa-icf.c (clear_decl_rtl): New function.
27912         (sem_function::merge): Clear RTL before forming alias.
27913         (sem_variable::merge): Clear RTL before forming alias.
27914
27915 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
27916
27917         PR ipa/65236
27918         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27919
27920 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
27921
27922         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27923         to neon_to_gp<q>.
27924
27925 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27926
27927         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27928         a typo in the description.
27929
27930 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27931
27932         PR target/64317
27933         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27934         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27935         * lra-constraints.c: Include "params.h".
27936         (EBB_PROBABILITY_CUTOFF): Use
27937         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27938         (lra_inheritance): Use '<' instead of '<=' for
27939         EBB_PROBABILITY_CUTOFF.
27940         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
27941         Document change.
27942
27943 2015-02-27  Martin Liska  <mliska@suse.cz>
27944
27945         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
27946         vector length condition.
27947
27948 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
27949
27950         * doc/extend.texi (x86 transactional memory intrinsics):
27951         Reorganize discussion of _xbegin.  Clarify that the return
27952         value is a bit mask.  Expand example and move to end of section.
27953
27954 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
27955             Aldy Hernandez  <aldyh@redhat.com>
27956
27957         PR rtl-optimization/65220
27958         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
27959
27960 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
27961
27962         PR target/65032
27963         * lra-remat.c (update_scratch_ops): New.
27964         (do_remat): Call it.
27965         * lra.c (lra_register_new_scratch_op): New. Take code from ...
27966         (remove_scratches): ... here.
27967         * lra-int.h (lra_register_new_scratch_op): New prototype.
27968
27969 2015-02-27  Marek Polacek  <polacek@redhat.com>
27970
27971         PR c/65040
27972         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
27973         -Wformat-signedness anymore.
27974
27975 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27976
27977         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
27978         function.
27979         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
27980
27981 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27982
27983         * config/s390/s390.c (enum s390_builtin):
27984         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
27985         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
27986         (s390_init_builtins): Generate new builtin functions.
27987         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
27988         (s390_sfpc, s390_efpc): New pattern definitions.
27989
27990 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27991
27992         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
27993         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
27994         (s390_builtin_decls): New array.
27995         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
27996         (s390_builtin_decl): New function.
27997         (TARGET_BUILTIN_DECL): Define macro.
27998
27999 2015-02-27  Richard Biener  <rguenther@suse.de>
28000
28001         PR middle-end/63175
28002         * builtins.c (get_object_alignment_2): Make sure to re-apply
28003         the ANDed mask after recursing to its operand gets us a new
28004         misalignment bit position.
28005
28006 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
28007             Martin Liska  <mliska@suse.cz>
28008
28009         PR bootstrap/65150
28010         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28011         Use address_matters_p.
28012         (redirect_all_callers, set_addressable): New functions.
28013         (sem_function::merge): Reorganize and fix merging issues.
28014         (sem_variable::merge): Likewise.
28015         (sem_variable::compare_sections): Remove.
28016         * common.opt (fmerge-all-constants, fmerge-constants): Remove
28017         Optimization flag.
28018         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28019         redirect them.
28020         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28021         decl is used.
28022         (address_matters_1): New function.
28023         (symtab_node::address_matters_p): New function.
28024         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28025         check for merged flag.
28026         * cgraph.h (address_matters_p): Declare.
28027         (symtab_node::address_taken_from_non_vtable_p): Remove.
28028         (symtab_node::address_can_be_compared_p): New method.
28029         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28030         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28031         Remove.
28032         (comdat_can_be_unshared_p_1) Use address_matters_p.
28033         (update_vtable_references): Fix formating.
28034         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28035         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28036         * cgraphclones.c: Preserve merged and icf_merged flags.
28037
28038 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
28039
28040         * doc/extend.texi (Function Attributes): Fix spelling and typos.
28041         (Label Attributes): Likewise.
28042         (Cilk Plus Builtins): Likewise.
28043         (ARC SIMD Built-in Functions): Likewise.
28044         (ARM C Language Extensions (ACLE)): Likewise.
28045         (PowerPC Built-in Functions): Likewise.
28046         (PowerPC Hardware Transactional Memory Built-in Functions):
28047         Likewise.
28048
28049 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28050
28051         PR tree-optimization/65216
28052         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28053         new stmt and new SSA_NAME for lhs whenever the arguments have
28054         changed and weren't just swapped.  Fix comment typo.
28055
28056         PR tree-optimization/65215
28057         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28058         for PDP endian targets.
28059         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28060         Fix up formatting issues.
28061         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
28062         size is smaller than the original, adjust MEM_REF offset by the
28063         difference of sizes.  Use is_gimple_mem_ref_addr instead of
28064         is_gimple_min_invariant test to avoid adding address temporaries.
28065
28066 2015-02-26  Martin Liska  <mliska@suse.cz>
28067             Jan Hubicka  <hubicka@ucw.cz>
28068
28069         PR ipa/64693
28070         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28071         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28072         (sem_item_optimizer::process_cong_reduction): Include division by
28073         sensitive references.
28074         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28075         * ipa-ref.c (ipa_ref::address_matters_p): New function.
28076         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28077
28078 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
28079
28080         PR target/65192
28081         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28082         Remove.
28083         * config/avr/avr.c: Same.
28084         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28085         Refuse any constant address not in 0..0xbf.
28086         * config/avr/avr.md (*mov<mode>, *movsf): Remove
28087         tiny_valid_direct_memory_access_range from insn conditions.
28088         (mov<mode>): Don't special-case expansion of avrtiny addresses.
28089
28090 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
28091
28092         PR target/61142
28093         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28094         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28095         * config/sh/predicates.md (const_logical_operand): New predicate.
28096         * config/sh/sh.md: Add new peephole2 patterns.
28097
28098 2015-02-26  Marek Polacek  <polacek@redhat.com>
28099
28100         PR ipa/65008
28101         * ipa-inline.c (early_inliner): Recompute inline parameters.
28102
28103 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28104
28105         PR target/65171
28106         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28107         instructions with TImode operands are included in the analysis.
28108
28109 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28110
28111         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28112         of an EDGE_FSM_THREAD.
28113
28114 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28115
28116         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28117
28118 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
28119
28120         PR debug/46102
28121         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28122
28123 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
28124
28125         PR tree-optimization/65048
28126         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28127         (thread_through_all_blocks): Call valid_jump_thread_path.
28128         Remove invalid FSM jump-thread paths.
28129
28130 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
28131
28132         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28133         (ipa_write_optimization_summaries): Likewise.
28134         * tree-streamer.h: Include data-streamer.h.
28135         (streamer_mode_table): Declare extern variable.
28136         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28137         * lto-streamer-out.c (lto_output_init_mode_table,
28138         lto_write_mode_table): New functions.
28139         (produce_asm_for_decls): Call lto_write_mode_table when streaming
28140         offloading LTO.
28141         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28142         (lto_create_simple_input_block): Add mode_table argument to the
28143         lto_input_block constructors.
28144         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28145         Likewise.
28146         * data-streamer-in.c (string_for_index): Likewise.
28147         * ipa-inline-analysis.c (inline_read_section): Likewise.
28148         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28149         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28150         * lto-streamer-in.c (lto_read_body_or_constructor,
28151         lto_input_toplevel_asms): Likewise.
28152         (lto_input_mode_table): New function.
28153         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28154         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28155         Use bp_pack_machine_mode.
28156         * real.h (struct real_format): Add name field.
28157         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28158         (class lto_input_block): Add mode_table member.
28159         (lto_input_block::lto_input_block): Add mode_table_ argument,
28160         initialize mode_table.
28161         (struct lto_file_decl_data): Add mode_table field.
28162         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28163         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28164         unpack_ts_decl_common_value_fields,
28165         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28166         * tree-streamer.c (streamer_mode_table): New variable.
28167         * real.c (ieee_single_format, mips_single_format,
28168         motorola_single_format, spu_single_format, ieee_double_format,
28169         mips_double_format, motorola_double_format,
28170         ieee_extended_motorola_format, ieee_extended_intel_96_format,
28171         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28172         ibm_extended_format, mips_extended_format, ieee_quad_format,
28173         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28174         decimal_single_format, decimal_double_format, decimal_quad_format,
28175         ieee_half_format, arm_half_format, real_internal_format): Add name
28176         field.
28177         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28178
28179 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
28180
28181         PR target/65161
28182         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28183         reordering for selective scheduling.
28184
28185 2015-02-26  Terry Guo  <terry.guo@arm.com>
28186
28187         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28188         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28189         (arm_arch_no_volatile_ce): Declare new global variable.
28190         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28191         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28192         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28193         (TARGET_NO_VOLATILE_CE): New macro.
28194         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28195         volatile memory access in IT block
28196
28197 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28198
28199         PR tree-optimization/61917
28200         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28201         that reduc_def_stmt is null.
28202
28203 2015-02-25  Martin Liska  <mliska@suse.cz>
28204
28205         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28206         hard register variables.
28207
28208 2015-02-25  Kai Tietz  <ktietz@redhat.com>
28209
28210         PR target/64212
28211         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28212         (symtab::noninterposable_alias): Likewise.
28213
28214 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28215
28216         PR target/65167
28217         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28218         bounds registers.
28219         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28220
28221 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
28222
28223         PR target/64997
28224         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28225         as split condition; force split via '#' in output pattern.
28226
28227 2015-02-25  Richard Biener  <rguenther@suse.de>
28228             Kai Tietz  <ktietz@redhat.com>
28229
28230         PR tree-optimization/61917
28231         * tree-vect-loop.c (vectorizable_reduction): Allow
28232         vect_internal_def without reduction to exit graceful.
28233
28234 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28235
28236         PR target/65196
28237         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28238         only with NONDEBUG_INSN_P.
28239
28240 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
28241
28242         Use variadic macros with avr-log.c.
28243
28244         * config/avr/avr-protos.h (avr_vdump): New prototype.
28245         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28246         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28247         * config/avr/avr-log.c: Adjust comments.
28248         (avr_vdump): New function.
28249         (avr_vadump): Pass caller as 2nd argument instead of format string.
28250         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28251         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28252
28253 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
28254
28255         PR lto/64374
28256         * target.def (target_option_stream_in): New target hook.
28257         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28258         targetm.target_option.post_stream_in if non-NULL.
28259         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28260         * doc/tm.texi: Updated.
28261         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28262         function.
28263         (TARGET_OPTION_POST_STREAM_IN): Redefine.
28264
28265 2015-02-24  Jeff Law  <law@redhat.com>
28266
28267         PR target/65117
28268         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28269         of operand 0 and operand 2.
28270         (zero_cost_loop_end, loop_end): Similarly.
28271
28272 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
28273
28274         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28275         CXX_MEM_STAT_INFO.
28276
28277 2015-02-24  DJ Delorie  <dj@redhat.com>
28278
28279         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28280         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28281         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28282         instead of hardcoding SImode.
28283
28284 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
28285
28286         * omp-low.c (create_omp_child_function): Tag entrypoint
28287         functions with a special attribute.
28288
28289 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28290
28291         PR target/65058
28292         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28293
28294 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
28295
28296         PR rtl-optimization/65123
28297         * lra-remat.c (operand_to_remat): Check hard regs in insn
28298         definition too.
28299
28300 2015-02-24  Nick Clifton  <nickc@redhat.com>
28301
28302         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28303         to the assembler.
28304
28305 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
28306
28307         PR libgomp/64625
28308         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28309         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28310         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28311         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28312         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28313         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28314         (BUILT_IN_GOACC_PARALLEL): Specify as
28315         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28316         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28317         * builtin-types.def
28318         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28319         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28320         Remove function types.
28321         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28322         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28323         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28324         New function types.
28325
28326 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
28327
28328         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28329
28330 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
28331
28332         PR tree-optimization/65170
28333         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28334         if val[1] < 0, clear also val[2] and return 3.
28335
28336 2015-02-24  Alan Modra  <amodra@gmail.com>
28337
28338         PR target/65172
28339         * config/rs6000/rs6000.c (get_memref_parts): Only return true
28340         when *base is a reg.  Handle nested plus addresses.  Simplify
28341         pre_modify test.
28342
28343 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
28344
28345         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28346         use natural alignment when optimizing for size.
28347
28348 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
28349
28350         PR target/65153
28351         * config/sh/sh.md (movsicc_true+3): Remove peephole.
28352         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28353         * config/sh/sh.c (replace_n_hard_rtx): Remove.
28354
28355 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
28356
28357         PR fortran/63427
28358         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28359         too big for a wide_int.  Implement missing wrapping operation.
28360
28361 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
28362
28363         PR target/65163
28364         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28365         instead of const_int 4294901760.
28366
28367 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
28368
28369         * config/avr/t-avr: Fix typo in comment.
28370
28371 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
28372
28373         * doc/rtl.texi (fma): Clarify documentation.
28374
28375 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
28376
28377         PR debug/58123
28378         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28379         over input_location.
28380
28381 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28382
28383         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28384         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28385         restrict alignments to absolute_biggest_alignment.
28386         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28387         Define.
28388         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28389         * doc/tm.texi: Regenerate.
28390         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28391
28392 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
28393
28394         PR target/64172
28395         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28396
28397 2015-02-20  Richard Biener  <rguenther@suse.de>
28398
28399         PR tree-optimization/65136
28400         * tree-ssa-propagate.c: Include cfgloop.h.
28401         (replace_phi_args_in): Avoid replacing loop latch edge PHI
28402         arguments with constants.
28403
28404 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
28405             Martin Liska  <mliska@suse.cz>
28406
28407         PR target/63892
28408         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28409         don't try to create_thunk if stdarg_p.  If
28410         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28411         redirect_callers if possible.
28412         (sem_item_optimizer::execute): Call unregister_hooks here...
28413         (ipa_icf_driver): ... instead of here.
28414
28415 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28416
28417         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28418         Mark operand 0 as earlyclobber in 2nd alternative.
28419         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28420         Write negated shift amount into QI lowpart operand 0 and use it
28421         in the shift step.
28422         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28423
28424 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28425
28426         * cgraph.h (clone_function_name_1): Declare.
28427         * cgraphclones.c (clone_function_name_1): New function.
28428         (clone_function_name): Use it.
28429         * lto-partition.c: Include "stringpool.h".
28430         (must_not_rename, maybe_rewrite_identifier)
28431         (validize_symbol_for_target): New static functions.
28432         (privatize_symbol_name): Use must_not_rename.
28433         (promote_symbol): Call validize_symbol_for_target.
28434         (lto_promote_cross_file_statics): Likewise.
28435         (lto_promote_statics_nonwpa): Likewise.
28436
28437 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
28438
28439         PR target/64452
28440         * config/avr/avr.md (pushhi_insn): New insn.
28441         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28442
28443 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
28444             Jakub Jelinek  <jakub@redhat.com>
28445
28446         * tree-streamer.c (preload_common_nodes): Don't preload
28447         TI_VA_LIST* for offloading.
28448         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28449         in_lto_p.
28450
28451 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
28452
28453         * config/pa/pa.c (pa_emit_move_sequence): Always force
28454         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
28455         note on insn.
28456
28457         * config/pa/pa.c (pa_reloc_rw_mask): New function.
28458         (TARGET_ASM_RELOC_RW_MASK): Define.
28459         (pa_cannot_force_const_mem): Revert previous change.
28460
28461 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
28462             Jan Hubicka  <hubicka@ucw.cz>
28463
28464         PR ipa/65028
28465         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28466         across jump functions.
28467
28468 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
28469
28470         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28471
28472 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
28473
28474         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28475
28476 2015-02-19  Richard Henderson  <rth@redhat.com>
28477
28478         PR middle-end/65074
28479         * varasm.c (default_binds_local_p_2): Don't test node->definition;
28480         test DECL_EXTERNAL independent of symtab_node.
28481
28482 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
28483
28484         PR lto/65012
28485         * varpool.c (varpool_node::get_constructor): Return early
28486         if this->lto_file_data is NULL.
28487
28488 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28489
28490         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28491         (rank_for_schedule_debug): Update.
28492         (ready_sort): Make static.  Move sorting logic to ...
28493         (ready_sort_debug, ready_sort_real): New static functions.
28494         (schedule_block): Sort both debug insns and real insns in preparation
28495         for ready list trimming.  Improve debug output.
28496         * sched-int.h (ready_sort): Remove global declaration.
28497
28498 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
28499
28500         * ipa-icf.c (sem_function::equals_private): Adjust.
28501         (sem_function::bb_dict_test): Take a vec<int> * instead of
28502         auto_vec<int>.
28503         * ipa-icf.h (bb_dict_test): Likewise.
28504
28505 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28506
28507         PR gcov-profile/64634
28508         * tree-eh.c (frob_into_branch_around): Fix up typos
28509         in function comment.
28510         (lower_catch): Put eh_seq resulting from EH lowering of
28511         the cleanup sequence after the cleanup rather than before it.
28512
28513 2015-02-18  Tom de Vries  <tom@codesourcery.com>
28514
28515         * common.opt (fstdarg-opt): New option.
28516         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28517         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28518         (@item -fstdarg-opt): New item.
28519
28520 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28521
28522         PR target/65064
28523         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28524         for common symbols.
28525
28526 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28527
28528         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28529         insn-modes.h.
28530         (ALL_HOST_OBJS): Add mkoffload.o.
28531         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28532
28533 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
28534
28535         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28536         (compare_virtual_tables): Be smarter about skipping typeinfos;
28537         do sane output on virtual table table mismatch.
28538         (warn_odr): Be ready for forward declarations of enums;
28539         output sane info on base mismatch and virtual table mismatch.
28540         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28541         when only one type is polymorphic.
28542         (get_odr_type): Fix hashtable corruption.
28543         (dump_odr_type): Dump mangled names.
28544
28545 2015-02-18  Richard Biener  <rguenther@suse.de>
28546
28547         PR tree-optimization/65063
28548         * tree-predcom.c (determine_unroll_factor): Return 1 if we
28549         have replaced looparound PHIs.
28550
28551 2015-02-18  Martin Liska  <mliska@suse.cz>
28552
28553         * lto-streamer.c (lto_streamer_init): Encapsulate
28554         streamer_check_handled_ts_structures with checking macro.
28555
28556 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
28557
28558         PR ipa/65087
28559         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28560         section if !implicit_section.
28561         (cgraph_node::create_version_clone_with_body): Likewise.
28562         * trans-mem.c (ipa_tm_create_version): Likewise.
28563
28564 2015-02-18  Richard Biener  <rguenther@suse.de>
28565
28566         PR tree-optimization/62217
28567         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28568         into BIVs.
28569
28570 2015-02-18  Marek Polacek  <polacek@redhat.com>
28571
28572         PR sanitizer/65081
28573         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28574         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28575         is in range [-16K, -1].  Don't issue run-time error if
28576         (ptr > ptr + offset).
28577
28578 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
28579
28580         * doc/install.texi (nvptx-*-none): New section.
28581         * doc/invoke.texi (Nvidia PTX Options): Likewise.
28582         * config/nvptx/nvptx.opt: Update.
28583
28584         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28585         (access_check): New functions, copied from
28586         config/i386/intelmic-mkoffload.c.
28587         (main): For non-installed testing, look in all COMPILER_PATHs for
28588         GCC_INSTALL_NAME.
28589
28590         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28591
28592 2015-02-18  Andrew Pinski  <apinski@cavium.com>
28593             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28594
28595         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28596         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28597
28598 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28599
28600         * ipa-visibility.c (function_and_variable_visibility): Only
28601         check locality if node is not already local.
28602         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28603         call_for_symbol_and_aliases instead of
28604         call_for_symbol_thunks_and_aliases.
28605         (ipa_inline): Likewise.
28606         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28607         first walk aliases.
28608         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28609         call_for_symbol_and_aliases.
28610         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28611         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28612         (ipa_propagate_frequency): Update.
28613         (ipa_profile): Add opt_for_fn gueards.
28614
28615 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28616
28617         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28618         * doc/invoke.texi (SH options): Document it.
28619         * config/sh/sh.c (sh_insn_length_adjustment): Check
28620         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28621
28622 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28623
28624         * common.opt (fipa-cp-alignment): New.
28625         * ipa-cp.c (ipcp_store_alignment_results): Check
28626         flag_ipa_cp_alignment.
28627         * opts.c (default_options_table): Enable -fipa-cp-alignment for
28628         -O2.
28629         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28630         * doc/invoke.texi: Document -fipa-cp-alignment.
28631
28632 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
28633
28634         PR target/64793
28635         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28636         to nil.  Adjust comments.
28637
28638 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
28639
28640         * ipa-visibility.c (function_and_variable_visibility): Only
28641         check locality if node is not already local.
28642         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28643         call_for_symbol_and_aliases instead of
28644         call_for_symbol_thunks_and_aliases.
28645         (ipa_inline): Likewise.
28646         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28647         first walk aliases.
28648         * ipa.c (symbol_table::remove_unreachable_nodes): Use
28649         call_for_symbol_and_aliases.
28650         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28651         (ipa_propagate_frequency_1): Use it; use opt_for_fn
28652         (ipa_propagate_frequency): Update.
28653         (ipa_profile): Add opt_for_fn guards.
28654
28655 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
28656
28657         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28658         skipping of "strange" tokens.
28659
28660 2015-02-17  Jeff Law  <law@redhat.com>
28661
28662         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
28663         obsolete comment.
28664
28665 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
28666
28667         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28668         as forcing a HARD_DEP between instructions, thereby
28669         disallowing rewriting to break dependencies.
28670
28671 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28672
28673         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28674         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28675         variables in boundary that have no inlitalizer encoded and are
28676         not aliases.
28677         * varasm.c (default_binds_local_p_2): External definitions do not
28678         count as definitions here.
28679
28680 2015-02-16  Jeff Law  <law@redhat.com>
28681
28682         PR tree-optimization/64823
28683         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28684         statements.
28685         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28686         threading through blocks with PHIs, but no statements.
28687         (thread_through_normal_block): Distinguish between blocks where
28688         we did not process all the statements and blocks with no statements.
28689
28690 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
28691             James Greenhalgh  <james.greenhalgh@arm.com>
28692
28693         PR ipa/64963
28694         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28695         section if not linkonce.  Fix up formatting.
28696         (cgraph_node::create_version_clone_with_body): Copy section.
28697         * trans-mem.c (ipa_tm_create_version): Likewise.
28698
28699 2015-02-16  Richard Biener  <rguenther@suse.de>
28700
28701         PR tree-optimization/65077
28702         * tree-ssa-structalias.c (get_constraint_for_1): Handle
28703         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28704         (find_func_aliases): Allow float values to carry pointers again.
28705
28706 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28707
28708         * doc/install.texi (Specific): Reorder targets list to put
28709         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
28710         from the top menu.
28711
28712 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
28713             David Edelsohn  <dje.gcc@gmail.com>
28714
28715         PR target/65058
28716         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28717         mapping class to external variable or function reference.
28718         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28719         mapping class.
28720
28721 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
28722
28723         PR target/53348
28724         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28725         ASM_WEAKEN_DECL if defined.
28726
28727 2015-02-16  Richard Biener  <rguenther@suse.de>
28728
28729         PR lto/65015
28730         * varasm.c (default_file_start): For LTO produced units
28731         emit <artificial> as file directive.
28732
28733 2015-02-16  Richard Biener  <rguenther@suse.de>
28734
28735         PR tree-optimization/63593
28736         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28737         stmts and releasing SSA names until...
28738         (execute_pred_commoning): ... after processing all chains.
28739
28740 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
28741
28742         PR ipa/65059
28743         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28744         external functions.
28745
28746 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
28747
28748         * doc/bugreport.texi: Adjust section titles throughout the file
28749         to use "Title Case".
28750         * doc/extend.texi: Likewise.
28751         * doc/gcov.texi: Likewise.
28752         * doc/implement-c.texi: Likewise.
28753         * doc/implement-cxx.texi: Likewise.
28754         * doc/invoke.texi: Likewise.
28755         * doc/objc.texi: Likewise.
28756         * doc/standards.texi: Likewise.
28757         * doc/trouble.texi: Likewise.
28758
28759 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
28760
28761         * cgraph.h (symtab_node::has_aliases_p): Simplify.
28762         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28763         * tree.c (lookup_binfo_at_offset): Make static.
28764         (get_binfo_at_offset): Do not shadow offset; add explanatory
28765         comment.
28766
28767 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
28768
28769         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28770         for all floading point loads and stores except those using a register
28771         index address.
28772         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28773         to a register.
28774
28775 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28776
28777         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28778         (do_estimate_growth_1): Record if any uninlinable edge was seen.
28779         (estimate_growth): Handle uninlinable edges correctly.
28780         (check_callers): New.
28781         (growth_likely_positive): Handle aliases correctly.
28782
28783 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
28784
28785         * ipa-chkp.c: Use iterate_direct_aliases.
28786         * symtab.c (resolution_used_from_other_file_p): Move inline.
28787         (symtab_node::create_reference): Fix formating.
28788         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28789         (symtab_node::iterate_reference): Move inline.
28790         (symtab_node::iterate_referring): Move inline.
28791         (symtab_node::iterate_direct_aliases): Move inline.
28792         (symtab_node::used_from_object_file_p_worker): Inline into ...
28793         (symtab_node::used_from_object_file_p): ... this one; move inline.
28794         (symtab_node::call_for_symbol_and_aliases): Move inline;
28795         use iterate_direct_aliases.
28796         (symtab_node::call_for_symbol_and_aliases_1): New method.
28797         (cgraph_node::call_for_symbol_and_aliases): Move inline;
28798         use iterate_direct_aliases.
28799         (cgraph_node::call_for_symbol_and_aliases_1): New method.
28800         (varpool_node::call_for_node_and_aliases): Rename to ...
28801         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28802         use iterate_direct_aliases.
28803         (varpool_node::call_for_symbol_and_aliases_1): New method.
28804         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28805         (ipa_discover_readonly_nonaddressable_var): Update.
28806         * ipa-devirt.c: Fix formating.
28807         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28808         Move inline.
28809         (cgraph_node::call_for_symbol_and_aliases): Move inline.
28810         (cgraph_node::call_for_symbol_and_aliases_1): New function..
28811         * cgraph.h (used_from_object_file_p_worker): Remove.
28812         (resolution_used_from_other_file_p): Move inline.
28813         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28814         (symtab_node::iterate_reference): Move inline.
28815         (symtab_node::iterate_referring): Move inline.
28816         (symtab_node::iterate_direct_aliases): Move inline.
28817         (symtab_node::used_from_object_file_p_worker): Inline into ...
28818         (symtab_node::used_from_object_file_p): Move inline.
28819         * tree-emutls.c (ipa_lower_emutls): Update.
28820         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28821         (varpool_node::call_for_node_and_aliases): Remove.
28822
28823 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
28824
28825         PR tree-optimization/62209
28826         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28827         op == range->exp, insert seq and gimplified code after labels
28828         instead of after the phi.
28829
28830 2015-02-13  Jeff Law  <law@redhat.com>
28831
28832         PR bootstrap/65060
28833         Revert my change for tree-optimization/64823.
28834
28835 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28836
28837         PR tree-optimization/65053
28838         * tree-ssa-phiopt.c (value_replacement): When moving assign before
28839         cond, either reset VR on lhs or set it to phi result VR.
28840
28841 2015-02-13  Jeff Law  <law@redhat.com>
28842
28843         PR tree-optimization/64823
28844         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28845         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28846         threading through blocks with PHIs, but no statements.
28847         (thread_through_normal_block): Distinguish between blocks where
28848         we did not process all the statements and blocks with no statements.
28849
28850         PR rtl-optimization/47477
28851         * match.pd (convert (plus/minus (convert @0) (convert @1): New
28852         simplifier to narrow arithmetic.
28853
28854 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
28855
28856         PR ipa/65028
28857         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28858         polymorphic call info when type is not known to be preserved.
28859
28860 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
28861
28862         PR ipa/65028
28863         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28864         (inline_call): Use it.
28865
28866 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
28867
28868         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28869         GOMP_DEVICE_NVIDIA_PTX.
28870
28871 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
28872
28873         PR ipa/65034
28874         * stmt.c (emit_case_nodes): Use void_type_node instead of
28875         NULL_TREE as LABEL_DECL type.
28876
28877 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
28878
28879         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28880         constraints.
28881         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28882         symbolic references to data to be forced to constant memory on the
28883         SOM target.
28884
28885 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
28886
28887         PR tree-optimization/65002
28888         * tree-cfg.c (pass_data_fixup_cfg): Don't update
28889         SSA on start.
28890         * tree-sra.c (some_callers_have_no_vuse_p): New.
28891         (ipa_early_sra): Reject functions whose callers
28892         assume function is read only.
28893
28894 2015-02-13  Richard Biener  <rguenther@suse.de>
28895
28896         PR lto/65015
28897         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28898         for LTO produced CUs.
28899
28900 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
28901
28902         PR tree-optimization/64705
28903         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28904         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28905         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28906         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28907         expand_simple_operations.
28908
28909 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28910             Richard Henderson  <rth@redhat.com>
28911
28912         PR rtl/32219
28913         * cgraphunit.c (cgraph_node::finalize_function): Set definition
28914         before notice_global_symbol.
28915         (varpool_node::finalize_decl): Likewise.
28916         * varasm.c (default_binds_local_p_2): Rename from
28917         default_binds_local_p_1, add weak_dominate argument.  Use direct
28918         returns instead of assigning to local variable.  Unify varpool and
28919         cgraph paths via symtab_node.  Reject undef weak variables before
28920         testing visibility.  Reorder tests for simplicity.
28921         (default_binds_local_p): Use default_binds_local_p_2.
28922         (default_binds_local_p_1): Likewise.
28923         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28924         via symtab_node.
28925         (default_elf_asm_output_external): Emit visibility when specified.
28926
28927 2015-02-13  Alan Modra  <amodra@gmail.com>
28928
28929         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28930         code setting up r11 for out-of-line fp restore.
28931
28932 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
28933
28934         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28935         (muser-mode): Likewise.
28936
28937 2015-02-13  Alan Modra  <amodra@gmail.com>
28938
28939         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
28940         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
28941
28942 2015-02-12  David Howells  <dhowells@redhat.com>
28943
28944         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
28945         warning.
28946         * tree-ssa-uninit.c (dump_predicates): Likewise.
28947         * opts.c (print_filtered_help): Likewise.
28948
28949 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28950
28951         * dwarf2out.c (output_die): Use "%s", name instead of name to
28952         avoid -Wformat-security warning.
28953
28954         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
28955         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28956         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
28957         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
28958
28959 2015-02-12  Jason Merrill  <jason@redhat.com>
28960
28961         * common.opt (-flifetime-dse): New.
28962
28963 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
28964
28965         PR sanitizer/65019
28966         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
28967
28968         PR tree-optimization/65014
28969         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
28970         use original second operand of arg0 or arg1 instead of
28971         that adjusted by STRIP_NOPS.
28972
28973 2015-02-11  Jeff Law  <law@redhat.com>
28974
28975         PR target/63347
28976         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
28977         that needs to be queued, just queue it for a single cycle.
28978
28979 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
28980
28981         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
28982         bodies of thunks; comment on why.
28983         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
28984         symbols are extern.
28985
28986 2015-02-11  Richard Henderson  <rth@redhat.com>
28987
28988         PR sanitize/65000
28989         * tree-eh.c (mark_reachable_handlers): Mark source and destination
28990         regions of __builtin_eh_copy_values.
28991
28992 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
28993
28994         PR middle-end/65003
28995         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
28996         ultimate alias is MEM with SYMBOL_REF satisfying
28997         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
28998         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
28999
29000 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
29001
29002         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29003         "diagnostic-core.h".
29004         (main): Initialize progname, and call diagnostic_initialize.
29005
29006         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29007         instead of __OPENMP_TARGET__.
29008
29009         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29010         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29011         hard-coding PTX_ID.
29012
29013 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
29014
29015         * doc/sourcebuild.texi (pie_enabled): Document.
29016
29017 2015-02-11  Martin Liska  <mliska@suse.cz>
29018
29019         PR ipa/64813
29020         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29021         a return value for call to a function that is noreturn.
29022
29023 2015-02-11  Richard Biener  <rguenther@suse.de>
29024
29025         PR lto/65015
29026         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29027         and -fresolution.
29028
29029 2015-02-11  Andrew Pinski  <apinski@cavium.com>
29030
29031         PR target/64893
29032         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29033         Change the first argument type to size_type_node and add another
29034         size_type_node.
29035         (aarch64_simd_expand_builtin): Handle the new argument to
29036         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29037         print an out when the first two arguments are not
29038         nonzero integer constants.
29039         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29040         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29041
29042 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
29043
29044         PR target/61925
29045         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29046         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29047         (ix86_set_current_function): Rewritten.
29048         (ix86_add_new_builtins): Temporarily clear current_target_pragma
29049         when creating builtin fndecls.
29050
29051 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29052
29053         PR ipa/65005
29054         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29055         function.
29056         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29057         have no comdat group.
29058         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29059         (lto_output_varpool_node): Always output alias info.
29060         (output_refs): Output refs of boundary aliases, too.
29061         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29062         (output_symtab): Output call eges in thunks in boundary.
29063         (get_alias_symbol): Remove.
29064         (input_node, input_varpool_node): Do not special case weakrefs.
29065         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29066         alias and thunks targets in the boundary; do not take removed symbols
29067         from their comdat groups.
29068         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29069         (cgraph_node::global_info): Remove.
29070         (cgraph_node::rtl_info): Look through aliases and thunks.
29071         * cgrpah.h (global_info): Remove.
29072         (non_local_p): Remove.
29073
29074 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29075             Sandra Loosemore  <sandra@codesourcery.com>
29076
29077         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29078         to inline asm.  List dialects in proper order.
29079
29080 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29081             Sandra Loosemore  <sandra@codesourcery.com>
29082
29083         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29084
29085 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
29086
29087         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29088         modified) reference to Solaris.
29089
29090 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
29091
29092         * doc/extend.texi (Extended Asm): Fix typos.
29093
29094 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
29095
29096         PR sanitizer/65004
29097         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29098
29099 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
29100
29101         PR target/64661
29102         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29103         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29104         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29105         * config/sh/constraints.md (Ara, Add): New constraints.
29106         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29107         predicates.
29108         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29109         atomic_mem_operand_0.  Don't use force_reg on the memory address.
29110         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29111         Sra constraint.  Convert to insn_and_split.  Add workaround for
29112         PR 64974.
29113         (atomic_compare_and_swap<mode>_hard): Copy to
29114         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
29115         Use atomic_mem_operand_0 predicate.
29116         (atomic_compare_and_swap<mode>_soft_gusa,
29117         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29118         AraAdd constraints.
29119         (atomic_compare_and_swap<mode>_soft_tcb,
29120         atomic_compare_and_swap<mode>_soft_imask,
29121         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29122         atomic_mem_operand_0 predicate and SraSdd constraints.
29123         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29124         constraint.
29125         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29126         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
29127         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29128         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
29129         force_reg on the memory address.
29130         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29131         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29132         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29133         atomic_mem_operand_1 predicate and Sra constraint.
29134         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29135         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29136         Use atomic_mem_operand_1 predicate.
29137         (atomic_<fetchop_name><mode>_hard): Copy to
29138         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
29139         Use atomic_mem_operand_1 predicate.
29140         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29141         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29142         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
29143         insn_and_split.  Use atomic_mem_operand_1 predicate.
29144         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29145         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
29146         Use atomic_mem_operand_1 predicate.
29147         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29148         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
29149         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29150         in generated insn with original mem operand before emitting the insn.
29151         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29152         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29153         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29154         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29155         Use atomic_mem_operand_1 predicate and AraAdd constraints.
29156         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29157         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29158         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29159         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29160         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29161         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29162         atomic_not_fetch<mode>_soft_tcb,
29163         atomic_<fetchop_name>_fetch<mode>_soft_imask,
29164         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29165         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29166         Use atomic_mem_operand_1 predicate and SraSdd constraints.
29167
29168 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
29169
29170         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29171         and 3 earlyclobber operands.
29172
29173 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29174
29175         * common.opt (fstack-reuse): Mark as optimization.
29176
29177 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
29178
29179         PR ipa/64982
29180         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29181
29182 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
29183
29184         PR tree-optimization/64326
29185         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29186
29187 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
29188
29189         PR gcov-profile/61889
29190         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29191
29192 2015-02-10  Richard Biener  <rguenther@suse.de>
29193
29194         PR tree-optimization/64995
29195         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29196         value we use is final.
29197         (visit_reference_op_store): Always valueize op.
29198         (visit_use): Properly valueize vuses.
29199
29200 2015-02-10  Richard Biener  <rguenther@suse.de>
29201
29202         PR tree-optimization/64909
29203         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29204         pass a scalar-stmt count estimate to the cost model.
29205         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29206
29207 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
29208
29209         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29210         enabled by default together with var-tracking.
29211
29212 2015-02-10  Nick Clifton  <nickc@redhat.com>
29213
29214         * config/rl78/rl78.c: Remove DIV attribute code accidentally
29215         included in previous rl78 commit.
29216
29217 2015-02-10  Richard Biener  <rguenther@suse.de>
29218
29219         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29220         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29221         return the bitpack.
29222
29223 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29224
29225         PR gcov-profile/61889
29226         * config.in: regenerate.
29227         * configure.in: Likewise.
29228         * configure.ac: Check for ftw.h.
29229         * gcov-tool.c: Check for ftw.h before using nftw.
29230
29231 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
29232
29233         PR lto/64076
29234         * ipa-visibility.c (update_visibility_by_resolution_info): Only
29235         assert when not in lto mode.
29236
29237 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29238
29239         * ira-color.c (setup_left_conflict_sizes_p): Simplify
29240         initialization/assignment of conflict_size.
29241
29242 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
29243
29244         PR ipa/64978
29245         * ipa-cp.c (gather_caller_stats): Skip thunks.
29246         (propagate_constants_topo): Skip aliases.
29247
29248 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
29249
29250         PR target/64761
29251         * config/sh/sh.c (sh_option_override): Don't change
29252         -freorder-blocks-and-partition to -freorder-blocks even when
29253         unwinding is enabled.
29254         (sh_can_follow_jump): Return false if the followee jump is
29255         a crossing jump when -freorder-blocks-and-partition is specified.
29256         * config/sh/sh.md (*jump_compact_crossing): New insn.
29257
29258 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
29259             Kaz Kojima  <kkojima@gcc.gnu.org>
29260
29261         PR target/64761
29262         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29263         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29264         (sh_can_redirect_branch): Rename to ...
29265         (sh_can_follow_jump): ... this.  Constify argument types.
29266         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29267         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29268         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29269         * doc/tm.texi: Regenerate.
29270
29271 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29272
29273         PR sanitizer/64981
29274         * builtins.c (expand_builtin): Call targetm.expand_builtin
29275         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29276
29277 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29278
29279         PR ipa/61548
29280         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29281
29282 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29283
29284         PR ipa/63566
29285         * ipa-icf.c (set_local): New function.
29286         (sem_function::merge): Use it.
29287
29288 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29289
29290         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29291         (add_type_duplicate): Fix comparison of BINFOs.
29292
29293 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29294
29295         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29296         on getting VOID pointer.
29297
29298 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
29299
29300         PR target/64979
29301         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29302         va_list escapes.
29303
29304 2015-02-09  Richard Biener  <rguenther@suse.de>
29305
29306         * genmatch.c (replace_id): Copy expr_type.
29307
29308 2015-02-09  Richard Biener  <rguenther@suse.de>
29309
29310         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29311         (streamer_write_tree_bitfields): Declare.
29312         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29313         properly unpack padding.
29314         (unpack_value_fields): Inline ...
29315         (streamer_read_tree_bitfields): ... here.
29316         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29317         and properly add padding bits.
29318         (streamer_pack_tree_bitfields): Fold into ...
29319         (streamer_write_tree_bitfields): ... this new function,
29320         exposing the bitpack object.
29321         * lto-streamer-out.c (lto_write_tree_1): Call
29322         streamer_write_tree_bitfields.
29323
29324 2015-02-09  Richard Biener  <rguenther@suse.de>
29325
29326         PR tree-optimization/54000
29327         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29328         (struct ivopts_data): Add loop_loc member.
29329         (tree_ssa_iv_optimize_loop): Dump loop location.
29330         (create_new_ivs): Likewise, also dump number of IVs generated.
29331
29332 2015-02-09  Martin Liska  <mliska@suse.cz>
29333
29334         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29335         just if not yet registered.
29336         (ipa_icf_generate_summary): Register callgraph hooks.
29337
29338 2015-02-08  Andrew Pinski  <apinski@cavium.com>
29339
29340         * config/aarch64/aarch64.c (gty_dummy): Delete.
29341
29342 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29343
29344         PR ipa/63566
29345         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29346         (cgraph_node::local_p): Remove thunk related FIXME.
29347
29348 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29349
29350         PR ipa/63566
29351         * i386.c (ix86_function_regparm): Look through aliases to see if callee
29352         is local and optimized.
29353         (ix86_function_sseregparm): Likewise; also use target's SSE math
29354         settings; error out instead of silently generating wrong code
29355         on mismatches.
29356         (init_cumulative_args): Look through aliases.
29357
29358 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29359
29360         PR ipa/63566
29361         * ipa-split.c (execute_split_functions): Split if function has aliases.
29362
29363 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
29364
29365         PR ipa/63566
29366         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29367         aliases before trying to expand it.
29368         (cgraph_node::expand_thunk): Fix formating.
29369
29370 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
29371
29372         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29373         (Using Assembly Language with C): Expand introduction.
29374         (Basic Asm): Copy-edit.  Add more information about uses of
29375         basic asm.
29376         (Extended Asm): Copy-edit.  Document new escape syntax and
29377         %l[label] syntax.
29378         (Global Reg Vars): Copy-edit.
29379         (Local Reg Vars): Likewise.
29380
29381 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
29382
29383         PR debug/2714
29384         PR bootstrap/64256
29385         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29386         (DBX_CONTIN_CHAR): Define.
29387
29388 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
29389             Brian Rzycki  <b.rzycki@samsung.com>
29390
29391         PR tree-optimization/64878
29392         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29393         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29394         Stop recursion at loop phi nodes after having visited a loop phi node.
29395
29396 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29397
29398         * toplev.c (process_options): Change flag_ipa_ra before creating
29399         optimization_{default,current}_node.
29400
29401         PR ipa/64896
29402         * cgraphunit.c (cgraph_node::expand_thunk): If
29403         restype is not is_gimple_reg_type nor the thunk_fndecl
29404         returns aggregate_value_p, set restmp to a temporary variable
29405         instead of resdecl.
29406
29407 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
29408
29409         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29410
29411 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
29412
29413         PR target/64205
29414         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29415         add a general secondary reload handler for SDmode, unless we have
29416         both read/write support for SDmode.
29417
29418 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29419
29420         PR middle-end/64937
29421         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29422         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29423         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29424         1 before, push it to abstract_vec.
29425         (dwarf2out_abstract_function): Adjust caller.  Don't call
29426         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29427         DECL_ABSTRACT_P flags for all abstract_vec elts.
29428
29429 2015-02-06  Renlin Li  <renlin.li@arm.com>
29430
29431         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29432         complex gimple.
29433         * tree-ssa.c (execute_update_addresses_taken): Likewise.
29434
29435 2015-02-06  Jeff Law  <law@redhat.com>
29436
29437         PR target/64889
29438         * config/h8300/h8300.c (push): New argument "in_prologue".
29439         Pass "in_prologue" along to "F".
29440         (h8300_push_pop): Corresponding changes.
29441         (h8300_expand_prologue): Likewise.
29442         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
29443
29444 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
29445
29446         PR rtl-optimization/64957
29447         PR debug/64817
29448         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29449         IOR rather than for AND.
29450
29451 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
29452
29453         PR target/62631
29454         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29455         of shift-add and (add + shift) operations.  Rename local variable.
29456
29457 2015-02-05  Jeff Law  <law@redhat.com>
29458
29459         PR target/17306
29460         * config/h8300/constraints.md (U): Correctly dectect
29461         "eightbit_data" memory addresses.
29462         * config/h8300/h8300.c (eightbit_constant_address_p): Also
29463         handle (const (plus (symbol_ref (x)))) where x is declared
29464         as an 8-bit data memory address.
29465         * config/h8300/h8300.md (call, call_value): Correctly detect
29466         "funcvec" functions.
29467
29468         PR target/43264
29469         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29470         24 to 28 bits for the H8/300.
29471
29472 2015-02-06  Alan Modra  <amodra@gmail.com>
29473
29474         PR target/64876
29475         * config/rs6000/rs6000.c (chain_already_loaded): New function.
29476         (rs6000_call_aix): Use it.
29477
29478 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
29479
29480         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29481         check.
29482
29483 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
29484
29485         * config/h8300/constraints.md ("U" constraint): Use strict
29486         variant of REG_OK_FOR_BASE_P after reload has started.
29487
29488 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
29489
29490         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29491         define to zero if !TARGET_NEON.
29492         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29493
29494 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29495             Trevor Saunders  <tsaunders@mozilla.com>
29496
29497         PR ipa/61548
29498         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29499
29500 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29501
29502         PR ipa/61548
29503         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29504         when removing varpool nodes.
29505
29506 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29507
29508         PR ipa/61548
29509         * varpool.c (varpool_node::remove): Fix order of variables.
29510
29511 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29512
29513         PR ipa/64686
29514         * ipa-inline.c (inline_small_functions): Fix ordering issue between
29515         speculation resolution and key updates.
29516
29517 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29518
29519         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29520         about not letting any speculative edges unupdated.
29521
29522 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29523
29524         PR gcov/64123
29525         * gcov-io.c (gcov_var): Export.
29526
29527 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29528
29529         PR middle-end/64922
29530         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29531         edges that become speculative.
29532
29533 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29534
29535         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29536         or DW_LANG_Fortran08.
29537         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29538         DW_LANG_Fortran08.
29539         (gen_compile_unit_die): Handle "GNU Fortran2003" and
29540         "GNU Fortran2008" language strings.
29541         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29542         * langhooks.h (lang_GNU_Fortran): New prototype.
29543         * langhooks.c (lang_GNU_Fortran): New function.
29544         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29545         lang_GNU_Fortran.
29546
29547 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29548
29549         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29550         (RTX_OK_FOR_OLO10_P): Likewise.
29551
29552 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
29553
29554         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29555
29556 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
29557
29558         PR middle-end/64922
29559         * gimple.c: Include gimple-ssa.h.
29560         (maybe_remove_unused_call_args): New function.
29561         * gimple.h (maybe_remove_unused_call_args): Declare.
29562         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29563         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29564         * gimple-fold.c (gimple_fold_call): Likewise.
29565
29566 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29567
29568         PR rtl-optimization/64905
29569         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29570         pointer alignment if it isn't needed.
29571
29572 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29573
29574         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29575         cortex-a72.cortex-a53.
29576         * config/aarch64/aarch64-tune.md: Regenerate.
29577         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29578
29579 2015-02-04  Nick Clifton  <nickc@redhat.com>
29580
29581         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29582         inside a MEM.
29583
29584 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
29585
29586         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29587         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29588         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29589         of DEF_BUILTIN.
29590         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29591         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29592         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29593         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29594         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29595         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29596         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29597         * tree-core.h (enum built_in_function): In between
29598         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29599         for builtins that use DEF_BUILTIN_CHKP macro.
29600
29601 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
29602
29603         PR debug/64817
29604         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29605         operands for tcc_comparison exprs.  Fix typos.
29606
29607         PR debug/64817
29608         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29609         of two XORs that have an intervening AND or IOR.
29610
29611         PR debug/64817
29612         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29613         simplification of XOR of AND to not allocate new rtx before
29614         committing to a simplification.
29615
29616 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29617
29618         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29619         manual swaps in all peepholes.
29620
29621 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29622
29623         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29624         of manual swapping implementation.
29625         (aarch64_expand_vec_perm_const_1): Likewise.
29626
29627 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
29628
29629         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29630         (generic_addrcost_table): Remove NAMED_PARAM.
29631         (cortexa57_addrcost_table): Likewise.
29632         (xgene1_addrcost_table): Likewise.
29633         (generic_regmove_table): Likewise.
29634         (cortexa53_regmove_table): Likewise.
29635         (xgene1_regmove_table): Likewise.
29636         (generic_vector_table): Likewise.
29637         (cortexa57_vector_table): Likewise.
29638         (xgene1_vector_table): Likewise.
29639         (generic_tunings): Likewise.
29640         (cortexa53_tunings): Likewise.
29641         (cortexa57_tunings): Likewise.
29642         (xgene1_tunings): Likewise.
29643
29644 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
29645
29646         * config/arm/arm-cores.def: Add cortex-a72 and
29647         cortex-a72.cortex-a53.
29648         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29649         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29650         * config/arm/arm-tune.md: Regenerate.
29651         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29652         "cortex-a72.cortex-a53".
29653         * doc/invoke.texi (ARM Options/-mtune): Likewise.
29654
29655 2015-02-04  Nick Clifton  <nickc@redhat.com>
29656
29657         PR target/64408
29658         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29659         of accepted codes.
29660         (nonimmediate_di_operand): Likewise.
29661
29662         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29663         prefixes of known F5 using MSP430 MCUs.
29664
29665 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29666
29667         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29668         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29669         instead of __builtin_sqrt.
29670
29671 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
29672
29673         * varasm.c (do_assemble_alias): Follow transparent alias
29674         chain for target.
29675         (default_assemble_visibility): Follow transparent alias
29676         chain for decl name.
29677
29678 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29679
29680         PR middle-end/62103
29681         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29682         to compute size of referenced value in the constant case.
29683
29684 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29685
29686         PR rtl-optimization/64756
29687         * cse.c (invalidate_dest): New function.
29688         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
29689         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29690         invalidate and do not record it.
29691
29692 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
29693
29694         PR target/64660
29695         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29696         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29697         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29698         atomic_nand<mode>_soft_tcb): New insns.
29699         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29700         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29701         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29702         Split into atomic_not_fetchsi_hard if operands[0] is unused.
29703         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29704         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29705         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
29706         atomic_not<mode>_hard if operands[0] is unused.
29707         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29708         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29709         if operands[0] is unused.
29710         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
29711         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29712         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29713         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29714         unused.
29715         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
29716         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29717         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29718         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29719         if operands[0] is unused.
29720         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
29721         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29722         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
29723         atomic_nand_fetchsi_hard if operands[0] is unused.
29724         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
29725         atomic_nand<mode>_hard if operands[0] is unused.
29726         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
29727         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29728         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
29729         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29730         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
29731         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29732         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29733         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29734         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
29735         atomic_not<mode>_hard if operands[0] is unused.
29736         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29737         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29738         unused.
29739         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29740         into atomic_not<mode>_soft_tcb if operands[0] is unused.
29741         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
29742         atomic_nand<mode>_hard if operands[0] is unused.
29743         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
29744         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29745
29746 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
29747
29748         PR jit/64810
29749         * Makefile.in (GCC_OBJS): Add gcc-main.o.
29750         * gcc-main.c: New file, containing "main" taken from gcc.c.
29751         * gcc.c (do_self_spec): Free decoded_options.
29752         (class driver): Move declaration to gcc.h.
29753         (main): Move declaration and implementation to new file
29754         gcc-main.c.
29755         (driver_get_configure_time_options): New function.
29756         * gcc.h (class driver): Move this declaration here, from
29757         gcc.c.
29758         (driver_get_configure_time_options): New declaration.
29759
29760 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
29761
29762         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29763         cross-module inlining.
29764         * cgraph.h (cgraph_node): Add flag merged.
29765         * ipa-icf.c (sem_function::merge): Maintain it.
29766
29767 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
29768
29769         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29770         instead of OBJECT_P.
29771
29772 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
29773
29774         PR target/62631
29775         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29776         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29777         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29778         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29779
29780 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
29781
29782         PR other/63504
29783         * combine.c (reg_n_sets_max): New variable.
29784         (can_change_dest_mode, reg_nonzero_bits_for_combine,
29785         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29786         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29787         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29788         (rest_of_handle_combine): Initialize reg_n_sets_max.
29789
29790 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
29791
29792         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29793         if some always_inline was inlined, apply changes before inlining
29794         heuristically.
29795
29796 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
29797
29798         PR jit/64810
29799         * config/arm/arm.c (arm_option_override): Set
29800         arm_selected_arch/cpu/tune to NULL on entry.
29801
29802 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
29803             Andrew Pinski  <pinskia@gcc.gnu.org>
29804             Jakub Jelinek  <jakub@gcc.gnu.org>
29805
29806         PR target/64231
29807         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29808         integer typing for small model. Use IN_RANGE.
29809
29810 2015-02-02  Richard Biener  <rguenther@suse.de>
29811
29812         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29813         * tree-vrp.c (vrp_valueize_1): Likewise.
29814
29815 2015-02-02  Alan Modra  <amodra@gmail.com>
29816
29817         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29818         than mem for toc_restore.
29819         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29820         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29821         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29822
29823 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
29824
29825         PR target/64047
29826         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29827         explicit default options.
29828
29829 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
29830
29831         PR ipa/64872
29832         * ipa-utils.c (ipa_merge_profiles): Add release argument.
29833         * ipa-icf.c (sem_function::merge): Do not release body when merging.
29834         * ipa-utils.h (ipa_merge_profiles): Update prototype.
29835
29836 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
29837
29838         PR debug/64817
29839         * cfgexpand.c (deep_ter_debug_map): New variable.
29840         (avoid_deep_ter_for_debug): New function.
29841         (expand_debug_expr): If TERed SSA_NAME is in
29842         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29843         instead of trying to expand SSA_NAME's def stmt.
29844         (expand_debug_locations): When expanding debug bind
29845         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29846         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29847         value.
29848         (pass_expand::execute): Call avoid_deep_ter_for_debug on
29849         all debug bind stmts.  Delete deep_ter_debug_map after
29850         expand_debug_location if non-NULL and clear it.
29851
29852 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
29853
29854         PR target/64851
29855         * config/sh/sync.md (atomic_fetch_notsi_hard,
29856         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29857         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29858         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29859         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29860         atomic_not_fetch<mode>_soft_imask): New insns.
29861
29862 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29863
29864         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29865         (rank_for_schedule_debug): Split from ...
29866         (rank_for_schedule): ... this.
29867         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29868         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29869
29870 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29871
29872         * doc/md.texi (Machine Constraints): Alphabetize table by target.
29873         * doc/extend.texi (x86 Variable Attributes): Move section to
29874         correct alphabetization after renaming.
29875         (x86 Type Attributes): Likewise.
29876         (Target Builtins): Re-alphabetize menu.
29877         (x86 Built-in Functions): Move section to correct alphabetization
29878         after renaming.
29879         (x86 transactional memory intrinsics): Likewise.
29880         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29881         and x86 Windows Options in table and menu.
29882         (x86 Options): Move section to correct alphabetization after
29883         renaming.
29884         (x86 Windows Options): Likewise.
29885
29886 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
29887
29888         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29889         preferred names of the architecture and its 32- and 64-bit
29890         variants.
29891         * doc/invoke.texi: Likewise.
29892         * doc/md.texi: Likewise.
29893
29894 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29895
29896         PR target/64882
29897         * config/i386/predicates.md (address_no_seg_operand): Reject
29898         non-CONST_INT_P operands in invalid mode.
29899
29900 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
29901
29902         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29903         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
29904         * config/i386/predicates.md (address_no_seg_operand): Call
29905         address_operand with VOIDmode.
29906         (vsib_address_operand): Ditto.
29907         (address_mpx_no_base_operand): Ditto.
29908         (address_mpx_no_index_operand): Ditto.
29909
29910 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29911
29912         PR target/64688
29913         * lra-constraints.c (original_subreg_reg_mode): New.
29914         (simplify_operand_subreg): Try to simplify subreg of const.  Use
29915         original_subreg_reg_mode for it.
29916         (swap_operands): Update original_subreg_reg_mode.
29917         (curr_insn_transform): Set up original_subreg_reg_mode.
29918
29919 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
29920
29921         PR target/64617
29922         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29923         function.
29924         (process_alt_operands): Use it.
29925         (curr_insn_transform): Check the optional reload pseudo class is
29926         ok for the mode.
29927
29928 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
29929
29930         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29931         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29932         prototype.
29933         * toplev.h (init_asm_output): Update comment on use of
29934         UNKNOWN_LOCATION with fatal_error.
29935         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29936         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29937         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29938         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
29939         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
29940         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
29941         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
29942         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
29943         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
29944         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
29945         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
29946         fatal_error changed to pass input_location as first argument.
29947
29948 2015-01-30  Martin Liska  <mliska@suse.cz>
29949
29950         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
29951         in #pragma GCC diagnostic guards.
29952
29953 2015-01-30  Richard Biener  <rguenther@suse.de>
29954
29955         PR tree-optimization/64829
29956         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
29957         not add a widening conversion pattern but hand off extra
29958         widenings to callers.
29959         (vect_recog_widen_mult_pattern): Handle extra widening produced
29960         by vect_handle_widen_op_by_const.
29961         (vect_recog_widen_shift_pattern): Likewise.
29962         (vect_pattern_recog_1): Remove excess vertical space in dumping.
29963         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
29964         (vect_init_vector_1): Likewise.
29965         (vect_get_vec_def_for_operand): Likewise.
29966         (vect_finish_stmt_generation): Likewise.
29967         (vectorizable_load): Likewise.
29968         (vect_analyze_stmt): Likewise.
29969         (vect_is_simple_use): Likewise.
29970
29971 2015-01-29  Jeff Law  <law@redhat.com>
29972
29973         * combine.c (try_combine): Fix typo in comment.
29974
29975 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
29976
29977         PR target/64580
29978         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
29979         (rs6000_stack_info): Add assert.
29980         (rs6000_output_savres_externs): New function, split off from...
29981         (rs6000_output_function_prologue): ... here.  Do not call it for
29982         thunks.
29983
29984 2015-01-29  Jeff Law  <law@redhat.com>
29985
29986         PR target/15184
29987         * combine.c (try_combine): If I0 is a memory load and I3 a store
29988         to a related address, increase the "goodness" of doing a 4-insn
29989         combination with I0-I3.
29990         (make_field_assignment): Handle SUBREGs in the ior+and case.
29991
29992 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
29993
29994         PR tree-optimization/64746
29995         * tree-if-conv.c (mask_exists): New function.
29996         (predicate_mem_writes): Save created mask with given size for further
29997         use.
29998         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
29999         (ifcvt_repair_bool_pattern): Collect all statements that are root
30000         of bool pattern and use iterative algorithm to remove multiple uses
30001         of predicates, display number of required iterations.
30002
30003 2015-01-29  Richard Biener  <rguenther@suse.de>
30004
30005         PR tree-optimization/64853
30006         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30007         stmt will get simulated again.
30008         * tree-ssa-ccp.c (valueize_op_1): Likewise.
30009
30010 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30011
30012         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30013         return_in_pc.  Remove redundant assignments.
30014         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30015         (arm_expand_epilogue): Don't compare boolean with true in if condition.
30016
30017 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
30018
30019         * config/i386/i386.c (ix86_mode_after): Make static.
30020
30021 2015-01-29  Richard Biener  <rguenther@suse.de>
30022
30023         PR tree-optimization/64844
30024         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30025         dump cost model analysis.
30026         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30027         Do not register adjusted load/store costs here.
30028
30029 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30030             Uros Bizjak  <ubizjak@gmail.com>
30031
30032         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30033         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30034         using x86_use_pseudo_pic_reg.
30035         * config/i386/i386.c (ix86_conditional_register_usage): Remove
30036         support for fixed PIC register.
30037         (ix86_use_pseudo_pic_reg): Not static any more.
30038
30039 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
30040
30041         PR middle-end/64805
30042         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30043         to avoid error in cgraph node verification.
30044
30045 2015-01-29  Marek Polacek  <polacek@redhat.com>
30046
30047         * doc/standards.texi: Reflect that the default for C is gnu11.
30048
30049 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
30050
30051         PR target/64761
30052         * reorg.c (switch_text_sections_between_p): New function.
30053         (relax_delay_slots): Call it when testing if the jump insn
30054         is removable.  Use targetm.can_follow_jump when testing if
30055         the conditional branch can follow an unconditional jump.
30056
30057 2015-01-27  Caroline Tice  <cmtice@google.com>
30058
30059         Committing VTV Cywin/Ming patch for Patrick Wollgast
30060         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30061         if -fvtable-verify=preinit/std is used.
30062         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30063         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30064         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30065         if -fvtable-verify=preinit/std is used.
30066         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30067         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30068         if -fvtable-verify=preinit/std is used.
30069         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30070         * config/i386/mingw32.h (LIB_SPEC): Likewise.
30071         * varasm.c (assemble_variable): Add code to properly set the comdat
30072         section and name for the .vtable_map_vars section in case the
30073         target is PE or COFF.
30074
30075 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30076
30077         PR ipa/64801
30078         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30079         make sane BB profile.
30080         (cgraph_node::expand_thunk): Make sane BB profile.
30081         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30082         * cgraph.h (init_lowered_empty_function): Update prototype.
30083         * config/i386/i386.c (make_resolver_func): Update call.
30084         * predict.c (gate): Disable branch prediction pass if
30085         profile is already there.
30086
30087 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
30088
30089         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30090         * opth-gen.awk: Likewise.
30091         * common.opt: Mark flag_fp_contract_mode as Optimization.
30092
30093 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30094
30095         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30096         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30097
30098 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
30099
30100         PR target/64659
30101         * config/sh/predicates.md (atomic_arith_operand,
30102         atomic_logical_operand): Remove.
30103         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30104         (atomic_arith_operand_0): New predicate.
30105         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30106         Use atomic_arith_operand_0 for input values.
30107         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30108         atomic_compare_and_swap<mode>_soft_gusa,
30109         atomic_compare_and_swap<mode>_soft_tcb,
30110         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30111         arith_reg_operand instead of register_operand.
30112         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
30113         atomic_arith_operand_0 for newval input.
30114         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30115         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30116         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30117         arith_reg_operand instead of register_operand.
30118         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30119         fetchop_predicate_1, fetchop_constraint_1_llcs,
30120         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30121         fetchop_constraint_1_imask): New code iterator attributes.
30122         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30123         register_operand.  Use fetchop_predicate_1.
30124         (atomic_fetch_<fetchop_name>si_hard,
30125         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30126         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30127         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30128         and arith_reg_operand instead of register_operand.  Use
30129         fetchop_predicate_1, fetchop_constraint_1_gusa.
30130         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30131         and arith_reg_operand instead of register_operand.  Use
30132         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
30133         to allow R0 usage.
30134         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30135         and arith_reg_operand instead of register_operand.  Use
30136         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
30137         to allow R0 usage.
30138         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30139         register_operand.  Use atomic_logical_operand_1.
30140         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30141         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30142         arith_reg_operand instead of register_operand.
30143         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30144         Use arith_reg_dest and arith_reg_operand instead of register_operand.
30145         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
30146         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30147         register_operand.  Use fetchop_predicate_1.
30148         (atomic_<fetchop_name>_fetchsi_hard,
30149         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30150         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30151         fetchop_constraint_1_llcs.
30152         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30153         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30154         fetchop_constraint_1_gusa.
30155         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30156         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30157         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
30158         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30159         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
30160         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
30161         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30162         register_operand.  Use atomic_logical_operand_1.
30163         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30164         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30165         arith_reg_operand instead of register_operand.
30166         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30167         arith_reg_operand instead of register_operand.  Use logical_operand
30168         and K08.  Adjust asm sequence to allow R0 usage.
30169         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30170         arith_reg_operand instead of register_operand.  Use logical_operand
30171         and K08.
30172
30173 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30174
30175         PR other/63504
30176         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30177         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30178         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30179         only get_full_len HOST_WIDE_INTs from get_val () array rather than
30180         all bits in *val_wide.
30181
30182 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
30183
30184         * varpool.c (tls_model_names): Fix names.
30185         (varpool_node::dump): Dump tls- prefix for tls models.
30186
30187 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
30188             Bernd Schmidt  <bernds@codesourcery.com>
30189             Nathan Sidwell  <nathan@codesourcery.com>
30190
30191         * config/nvptx/mkoffload.c: New file.
30192         * config/nvptx/t-nvptx: Add build rules for it.
30193         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30194         (extra_programs): Add mkoffload.
30195         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30196         function.
30197         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30198
30199 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
30200
30201         PR middle-end/64809
30202         * cfgexpand.c (reorder_operands): Skip debug gimples.
30203
30204 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
30205
30206         PR tree-optimization/64277
30207         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30208         range info when possible to refine estimation.
30209
30210 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30211
30212         PR tree-optimization/64718
30213         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30214         be a 16bit unsigned integer when n->range is 16.
30215         (bswap_replace): Convert src to that type if necessary for all bswap
30216         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
30217         set in pass_optimize_bswap::execute ().
30218
30219 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
30220
30221         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30222         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30223         integer and floating point variants.
30224         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30225
30226 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
30227
30228         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30229         for all vector modes.
30230
30231 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
30232
30233         PR bootstrap/64612
30234         * doc/sourcebuild.texi (comdat_group): Document.
30235
30236 2015-01-28  Terry Guo  <terry.guo@arm.com>
30237
30238         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30239
30240 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
30241
30242         * toplev.c (print_version): Add param "show_global_state", and
30243         only print GGC and plugin information if it is true.
30244         (init_asm_output): Pass in "true" for the new param when calling
30245         print_version.
30246         (process_options): Likewise.
30247         (toplev::main): Likewise.
30248         * toplev.h (print_version): Add new param to decl.
30249
30250 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30251
30252         PR ipa/60871
30253         PR ipa/64139
30254         * tree.c (lookup_binfo_at_offset): New function.
30255         (get_binfo_at_offset): Use it.
30256
30257 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
30258
30259         PR ipa/64282
30260         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30261         on vtable being vtable.
30262
30263 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30264
30265         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30266         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30267         -mhotpatch= option.
30268         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30269         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
30270         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30271         Renamed.
30272         (s390_hotpatch_trampoline_halfwords_max): Renamed.
30273         (s390_hotpatch_hw_max): New name.
30274         (s390_hotpatch_trampoline_halfwords): Renamed.
30275         (s390_hotpatch_hw_before_label): New name.
30276         (get_hotpatch_attribute): Removed.
30277         (s390_hotpatch_hw_after_label): New name.
30278         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30279         attribute.
30280         (s390_attribute_table): Ditto.
30281         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30282         (s390_function_num_hotpatch_hw): New name.
30283         Remove special handling of inline functions and hotpatching.
30284         Return number of nops before and after the function label.
30285         (s390_can_inline_p): Removed.
30286         (s390_asm_output_function_label): Emit a configurable number of nops
30287         after the function label.
30288         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30289         (TARGET_CAN_INLINE_P) Removed.
30290         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30291
30292 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30293             Jiong Wang  <jiong.wang@arm.com>
30294
30295         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30296         of scratch reg.
30297         (cb<optab><mode>1): Likewise.
30298         * config/aarch64/iterators.md (bcond): New define_code_attr.
30299
30300 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30301
30302         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30303         memory accesses.
30304
30305 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30306
30307         * config/s390/s390.c (s390_register_move_cost): Increase costs for
30308         FPR->GPR moves.
30309
30310 2015-01-27  Richard Biener  <rguenther@suse.de>
30311
30312         * tree-vrp.c (update_value_range): Intersect the range with
30313         old recorded SSA name range information.
30314
30315 2015-01-27  Nick Clifton  <nickc@redhat.com>
30316
30317         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30318         BC, DE and HL registers directly, not via AX.
30319         When decrementing the stack pointer by a large amount, transfer SP
30320         into AX and perform the subtraction there.
30321         (rl78_expand_epilogue): Perform the inverse of the above
30322         enhancements.
30323
30324 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30325
30326         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30327
30328 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30329             Yury Gribov  <y.gribov@samsung.com>
30330
30331         PR ubsan/64741
30332         * ubsan.c (ubsan_source_location): Refactor code.
30333         (ubsan_type_descriptor): Update type size. Refactor code.
30334
30335 2015-01-27  Richard Biener  <rguenther@suse.de>
30336
30337         PR tree-optimization/56273
30338         PR tree-optimization/59124
30339         PR tree-optimization/64277
30340         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30341         from the first VRP pass.
30342
30343 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30344
30345         PR ipa/64776
30346         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30347         handle the first argument in the same loop as all the other arguments.
30348
30349         PR rtl-optimization/61058
30350         * jump.c (cleanup_barriers): Update basic block boundaries
30351         if BLOCK_FOR_INSN is non-NULL on PREV.
30352
30353 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
30354
30355         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30356         bounds narrowing, already instrumented calls and calls to
30357         not instrumentable functions.
30358
30359 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
30360
30361         PR tree-optimization/64807
30362         * wide-int.cc (wi::divmod_internal): Clear
30363         b_dividend[dividend_blocks_needed].
30364
30365 2015-01-26  DJ Delorie  <dj@redhat.com>
30366
30367         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30368         volatile memory references.
30369
30370 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
30371
30372         PR target/49263
30373         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30374         remove_insn.
30375         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30376         shifts if it already fits into K08.
30377
30378 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30379
30380         PR ipa/64730
30381         * ipa-inline.c (inline_small_functions): Print "unknown" even
30382         if edge->call_stmt is non-NULL, but has builtins or unknown
30383         location.
30384
30385         PR middle-end/64421
30386         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30387         with asterisk, skip the first character.
30388
30389 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30390
30391         PR target/64806
30392         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30393         order change.
30394
30395 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
30396
30397         PR target/64795
30398         * config/i386/i386.md (*movdi_internal): Also check operand 0
30399         to determine TYPE_LEA operand.
30400         (*movsi_internal): Ditto.
30401
30402 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
30403
30404         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30405         OPTION_MASK_QUAD_MEMORY_ATOMIC.
30406
30407 2015-01-26  Renlin Li  <renlin.li@arm.com>
30408
30409         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30410         the comment.
30411         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30412         for higher part.
30413
30414 2015-01-26  Richard Biener  <rguenther@suse.de>
30415
30416         PR middle-end/64764
30417         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30418         combining two BIT_AND_EXPR predicates.
30419
30420 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30421
30422         PR bootstrap/64754
30423         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30424
30425 2015-01-26  Terry Guo  <terry.guo@arm.com>
30426
30427         * config/arm/arm.c (arm_file_start): Update the assignment of
30428         Tag_ABI_HardFP_use.
30429
30430 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
30431
30432         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30433         pipeline model.
30434         config/arm/arm.md: Include the new Cortex-A57 model.
30435         (generic_sched): Don't use generic_sched when tuning for
30436         Cortex-A57.
30437
30438 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
30439             Uros Bizjak  <ubizjak@gmail.com>
30440
30441         * config/i386/i386.c (get_builtin_code_for_version): Add
30442         support for BMI and BMI2 multiversion functions.
30443
30444 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30445
30446         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30447         (extract_bit_field): Likewise.
30448         (extract_low_bits): Likewise.
30449         (expand_mult): Likewise.
30450         (expand_mult_highpart_adjust): Likewise.
30451
30452 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30453
30454         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30455         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30456         * config/i386/i386.c (processor_model): Add
30457         M_INTEL_COREI7_BROADWELL.
30458         (arch_names_table): Add "broadwell".
30459
30460 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
30461
30462         PR target/49263
30463         PR target/53987
30464         PR target/64345
30465         PR target/59533
30466         PR target/52933
30467         PR target/54236
30468         PR target/51244
30469         * config/sh/sh-protos.h
30470         (sh_extending_set_of_reg::can_use_as_unextended_reg,
30471         sh_extending_set_of_reg::use_as_unextended_reg,
30472         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30473         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30474         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30475         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30476         (sh_treg_insns): New class.
30477         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30478         (scope_counter): New class.
30479         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30480         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30481         sh_extending_set_of_reg::can_use_as_unextended_reg,
30482         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30483         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30484         sh_split_treg_set_expr): New functions.
30485         (addsubcosts): Handle treg_set_expr.
30486         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30487         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30488         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30489         (sh_insn_operands_modified_between_p): Make non-static.
30490         * config/sh/predicates.md (zero_extend_movu_operand): Allow
30491         simple_mem_operand in addition to displacement_mem_operand.
30492         (zero_extend_operand): Don't allow zero_extend_movu_operand.
30493         (treg_set_expr, treg_set_expr_not_const01,
30494         arith_reg_or_treg_set_expr): New predicates.
30495         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30496         arith_or_int_operand instead of logical_operand.  Convert to
30497         insn_and_split.  Try to optimize constant operand in splitter.
30498         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
30499         (*tstqi_t_zero): Delete.
30500         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30501         (tstsi_t_and_not): Delete.
30502         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30503         Convert to insn_and_split.
30504         (unnamed split, tstsi_t_zero_extract_xor,
30505         tstsi_t_zero_extract_subreg_xor_little,
30506         tstsi_t_zero_extract_subreg_xor_big): Delete.
30507         (*tstsi_t_shift_mask): New insn_and_split.
30508         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30509         to recombine with surrounding insns when splitting.
30510         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30511         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30512         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30513         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30514         (*cbranch_div0s: Delete.
30515         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30516         Try to recombine with surrounding insns when splitting.  Add operand
30517         order variants.
30518         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30519         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30520         *addc_r_r_msb, *addc_2r_msb): Delete.
30521         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
30522         order variant.
30523         (*addc_negreg_t): New insn_and_split.
30524         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
30525         Try to recombine with surrounding insns when splitting.
30526         Add operand order variants.
30527         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30528         insn_and_split patterns.
30529         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
30530         surrounding insns when splitting.
30531         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30532         (*rotcl): Likewise.  Add zero_extract variant.
30533         (*ashrsi2_31): New insn_and_split.
30534         (*negc): Convert to insn_and_split.  Use treg_set_expr.
30535         (*zero_extend<mode>si2_disp_mem): Update comment.
30536         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30537         condition.
30538         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
30539         with surrounding insns when splitting.
30540         (any_treg_expr_to_reg): New insn_and_split.
30541         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30542         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30543         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30544         *zero_extract_2): New single bit zero extract patterns.
30545         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30546         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30547         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30548         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30549         set destination.
30550         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30551         register_operand for set source.
30552
30553 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
30554
30555         * i386.opt (prefetch_sse): New targetsave.
30556         * i386.c (ix86_function_specific_save): Save prefetch_sse.
30557         (ix86_function_specific_restore): Restore prefetch_sse and initialize
30558         ix86_cost/ix86_tune_cost.
30559
30560 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30561
30562         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30563         Support the JIT by using 0 as the language type.
30564
30565 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30566
30567         PR target/64317
30568         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
30569         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30570         (mark_regno_live, process_bb_lives): Pass new parameter value to
30571         make_hard_regno_born.
30572
30573 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30574
30575         PR rtl-optimization/63637
30576         PR rtl-optimization/60663
30577         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30578         if elt->cost is MAX_COST for ASM_OPERANDS.
30579         (find_sets_in_insn): Fix up comment typo.
30580         (cse_insn): Don't set src_volatile for all non-volatile
30581         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30582         or with "memory" clobber.  Set elt->cost to MAX_COST
30583         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
30584         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30585
30586 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30587
30588         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30589         alternative 1.
30590
30591 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
30592
30593         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30594         libgcc/config/i386/elf-lib.h.
30595
30596 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30597
30598         PR driver/64737
30599         * gcc.c (print_configuration): Don't print a blank line at the end
30600         here...
30601         (run_attempt): ... but here unstead.
30602
30603         PR middle-end/64734
30604         * omp-low.c (scan_sharing_clauses): Don't ignore
30605         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30606         on target data/update constructs.
30607
30608 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30609
30610         PR target/50928
30611         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30612         (DEBUG_RELOAD): Removed define.
30613         (m32c_limit_reload_class): Enable traces with if DEBUG0.
30614         (m32c_function_arg): Added a type cast.
30615         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30616         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30617         * config/m32c/bitops.md (andqi3_16): Likewise.
30618         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30619         (push_a01_l): Likewise.
30620
30621 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30622
30623         PR jit/64721
30624         * main.c (main): Construct toplev instances with init_signals=true.
30625         * toplev.c (general_init): Add param "init_signals", and use it to
30626         conditionalize the calls to signal and host_hooks.extra_signals.
30627         (toplev::toplev): Add param "init_signals".
30628         (toplev::main): When invoking general_init, pass m_init_signals
30629         to control whether signal-handlers are installed.
30630         * toplev.h (toplev::toplev): Add param "init_signals".
30631         (toplev::m_init_signals): New field.
30632
30633 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
30634
30635         PR jit/64722
30636         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30637         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30638         latter may be affected by the former (e.g. on i686).
30639
30640 2015-01-23  Martin Liska  <mliska@suse.cz>
30641
30642         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30643         false positive during profiledbootstrap.
30644
30645 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30646
30647         PR libgomp/64672
30648         * lto-opts.c (lto_write_options): Output non-explicit conservative
30649         -fno-openacc.
30650         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30651         (append_compiler_options): Pass -fopenacc through.
30652
30653 2015-01-23  Tom de Vries  <tom@codesourcery.com>
30654
30655         PR libgomp/64707
30656         * lto-opts.c (lto_write_options): Output non-explicit conservative
30657         -fno-openmp.
30658         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30659         (append_compiler_options): Pass -fopenmp through.
30660
30661 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
30662
30663         PR debug/64511
30664         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30665         GTY markup.
30666
30667         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30668         * diagnostic.def (DK_ICE_NOBT): New kind.
30669         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30670         like DK_ICE, but never print backtrace.
30671         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30672         (internal_error_no_backtrace): New function.
30673         * gcc.c (execute): Use internal_error_no_backtrace instead of
30674         internal_error.
30675
30676 2015-01-22  Jeff Law  <law@redhat.com>
30677
30678         PR target/52076
30679         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30680         improve code density for small immediate to memory case.
30681         (insv): Better handle bitfield assignments when the field is
30682         being set to all ones.
30683         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30684         operand predicate.
30685
30686 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30687             Jakub Jelinek  <jakub@redhat.com>
30688
30689         PR middle-end/64729
30690         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30691         for !TARGET_LIBC_PROVIDES_SSP version and
30692         -fstack-protector-{all,strong,explicit} otherwise.
30693         * config/freebsd.h (LINK_SSP_SPEC): Handle
30694         -fstack-protector-{strong,explicit}.
30695
30696 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
30697             H.J. Lu  <hongjiu.lu@intel.com>
30698
30699         PR ipa/64694
30700         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30701         heap.
30702
30703 2015-01-22  Wei Mi  <wmi@google.com>
30704
30705         PR rtl-optimization/64557
30706         * dse.c (record_store): Call get_addr for mem_addr.
30707         (check_mem_read_rtx): Likewise.
30708
30709 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30710
30711         * fold-const.c (const_binop): Add early return for non-tcc_binary.
30712
30713 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
30714
30715         * toplev.c (init_local_tick): Process the failure when read
30716         fails for random_seed.
30717
30718         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30719         'pretty_name' to avoid memory overflow.
30720
30721 2015-01-22  Richard Biener  <rguenther@suse.de>
30722
30723         PR middle-end/64728
30724         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30725         abnormal coalescing on undefined SSA names.
30726
30727 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
30728
30729         PR target/64688
30730         PR target/64477
30731         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30732         for alternative 3.
30733         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30734
30735 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
30736
30737         PR middle-end/63325
30738         * fold-const.c (fold_checksum_tree): Don't include value of
30739         expr->decl_with_vis.symtab_node in the checksum.
30740
30741 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30742
30743         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30744
30745 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
30746
30747         PR driver/64690
30748         * gcc.c (insert_comments): New function.
30749         (try_generate_repro): Call it.
30750         (append_text): Removed.
30751
30752 2015-01-22  Richard Biener  <rguenther@suse.de>
30753
30754         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30755         with IL incompatible options.  Properly honor user optimize
30756         attributes.
30757
30758 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
30759
30760         PR rtl-optimization/64682
30761         * combine.c (distribute_notes): When moving a death note for
30762         a register that is set in the new I2, make sure to put it
30763         before that new I2.
30764
30765 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
30766
30767         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30768         not TARGET_DEFAULT.
30769
30770 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
30771
30772         PR debug/64511
30773         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30774         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30775         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30776
30777         PR sanitizer/64706
30778         * doc/invoke.texi (-fsanitize=vptr): Document.
30779
30780         PR rtl-optimization/62078
30781         * dse.c: Include cfgcleanup.h.
30782         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30783         anything call purge_all_dead_edges and cleanup_cfg at the end
30784         of the pass.
30785
30786 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
30787
30788         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30789         edges.
30790
30791 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30792
30793         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30794         decl attribute.
30795
30796 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30797             Tejas Belagod <Tejas.Belagod@arm.com>
30798
30799         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30800         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30801         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30802         Removed.
30803
30804 2015-01-21  David Sherwood  <david.sherwood@arm.com>
30805             Tejas Belagod <Tejas.Belagod@arm.com>
30806
30807         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30808         (aarch64_reverse_mask): New decls.
30809         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30810         (insn_count): New mode_attr.
30811         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30812         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30813         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30814         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30815         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30816         (aarch64_simd_st4): New patterns.
30817         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30818         (aarch64_reverse_mask): New functions.
30819
30820 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
30821
30822         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30823         Declare.
30824         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30825         addressing modes for BE.
30826         (aarch64_print_operand): Add 'R' specifier.
30827         (aarch64_simd_disambiguate_copy): Delete.
30828         (aarch64_simd_emit_reg_reg_move): New function.
30829         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30830         in define_splits for structural moves.
30831         (mov<mode>): Use less restrictive predicates.
30832         (*aarch64_mov<mode>): Simplify and only allow for LE.
30833         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30834
30835 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
30836
30837         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30838
30839 2015-01-21  Richard Henderson  <rth@redhat.com>
30840
30841         PR target/64669
30842         * ccmp.c (used_in_cond_stmt_p): Remove.
30843         (expand_ccmp_expr): Don't use it.
30844
30845 2015-01-21  Nick Clifton  <nickc@redhat.com>
30846
30847         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30848         PARALLELs.
30849
30850 2015-01-21  Richard Biener  <rguenther@suse.de>
30851
30852         PR middle-end/64313
30853         * tree-core.h (builtin_info, builtin_info_type): Turn from
30854         an object with two arrays into an array of an object with
30855         decl and two flags, implicit_p and declared_p.
30856         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30857         set_builtin_decl, set_builtin_decl_implicit_p,
30858         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30859         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30860         * builtins.c (builtin_info): Adjust.
30861         * gimplify.c (gimplify_addr_expr): References to builtins
30862         that have been declared by the user makes them eligible for
30863         use by the compiler.  Call set_builtin_decl_implicit_p on them.
30864
30865 2015-01-20  Jeff Law  <law@redhat.com>
30866
30867         PR target/59946
30868         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30869         allow pc-relative addresses in operand predicates or constraints.
30870
30871 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
30872
30873         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30874         neon on aarch32 processors for stringops.
30875
30876 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30877
30878         PR ipa/63576
30879         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30880
30881 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30882
30883         PR lto/45375
30884         * ipa-inline.c: Include lto-streamer.h
30885         (report_inline_failed_reason): Output source file differences and
30886         flags on optimization/target node mismatch.
30887         (can_inline_edge_p): Consider caller to be the outer inline function;
30888         be less restrictive about matching opimize and optimize_size attributes.
30889         (inline_account_function_p): Break out from ...
30890         (inline_small_functions): ... here.
30891         * ipa-inline-transform.c (clone_inlined_nodes): Use
30892         inline_account_function_p.
30893         (inline_call): Use optimize attribution; use inline_account_function_p.
30894         (inline_transform): Use opt_for_fn.
30895         * ipa-inline.h (inline_account_function_p): Declare.
30896
30897 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
30898
30899         PR debug/64663
30900         * dwarf2out.c (decl_piece_node): Don't put bitsize into
30901         mode if bitsize <= 0.
30902         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30903         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30904         sizes and positions.
30905
30906 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
30907
30908         * config/nios2/nios2.c (nios2_asm_file_end): Implement
30909         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30910         needed.
30911         (TARGET_ASM_FILE_END): Define.
30912
30913 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30914
30915         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30916         (struct tune_params): Use the enum.
30917         * arm.c (arm_*_tune): Update.
30918         (arm_option_override): Update.
30919
30920 2015-01-20  Richard Biener  <rguenther@suse.de>
30921
30922         PR ipa/64684
30923         * ipa-reference.c (add_static_var): Inline ...
30924         (analyze_function): ... here after splitting out from ...
30925         (is_proper_for_analysis): ... this.
30926
30927 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
30928
30929         PR target/64149
30930         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30931         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30932         replace the conditional with it's true branch.
30933         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30934         (arm_lra_p): Remove.
30935
30936 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
30937
30938         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
30939
30940 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30941
30942         * config/tilegx/mul-tables.c: Move symtab.h include after
30943         coretypes.h include.
30944         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
30945         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
30946         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
30947         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
30948         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30949
30950 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
30951
30952         PR bootstrap/64676
30953         Revert:
30954         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
30955
30956         PR rtl-optimization/64081
30957         * loop-iv.c (def_pred_latch_p): New function.
30958         (latch_dominating_def): Allow specific cases with non-single
30959         definitions.
30960         (iv_get_reaching_def): Likewise.
30961         (check_complex_exit_p): New function.
30962         (check_simple_exit): Use check_complex_exit_p to allow certain cases
30963         with exits not executing on any iteration.
30964
30965 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30966
30967         PR lto/45375
30968         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
30969         to set branch cost.
30970
30971 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
30972
30973         PR lto/45375
30974         * i386.c (gate): Check flag_expensive_optimizations and
30975         optimize_size.
30976         (ix86_option_override_internal): Drop optimize_size condition
30977         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
30978         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
30979         MASK_PREFER_AVX128.
30980         (ix86_avx256_split_vector_move_misalign,
30981         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
30982         * sse.md (all uses of TARGET_PREFER_AVX128): Add
30983         optimize_insn_for_speed_p check.
30984
30985 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30986
30987         * config/mips/mips.h (FP_ASM_SPEC): New define.
30988         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
30989         instead.
30990
30991 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
30992
30993         PR target/53988
30994         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
30995         nullptr for insn when reaching the first insn.
30996         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
30997         (sh_insn_operands_modified_between_p): Add nullptr check.
30998         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
30999         sign extending mem load if the insn contains any UNSPEC or
31000         UNSPEC_VOLATILE.
31001
31002 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31003
31004         * params.def (inline-unit-growth): Drop to 15%.
31005         * invoke.texi (inline-unit-growth): Document change.
31006
31007 2015-01-19  Martin Liska  <mliska@suse.cz>
31008
31009         PR ipa/64668
31010         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31011         function for second argument of OBJ_TYPE_REF.
31012
31013 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31014
31015         PR ipa/64218
31016         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31017         whether function is an alias.
31018
31019 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
31020
31021         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31022         cases.
31023
31024 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
31025
31026         PR rtl-optimization/64671
31027         * lra-remat.c (operand_to_remat): Don't consider jump and call
31028         insns.
31029
31030 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
31031
31032         PR target/59828
31033         * config/rs6000/default64.h: Include rs6000-cpus.def.
31034         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31035         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31036         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31037         and POWER8.
31038         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31039         POWER8.
31040         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31041         pseudo-op to specify assembler dialect.
31042
31043 2015-01-19  Martin Liska  <mliska@suse.cz>
31044
31045         PR ipa/64664
31046         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31047         Handle safe potentially removed nodes during filtering.
31048
31049 2015-01-19  Martin Liska  <mliska@suse.cz>
31050
31051         * doc/extend.texi (no_icf): Add new attribute description.
31052         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31053         where the pass attempts to merge a function with no_icf attribute.
31054
31055 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31056
31057         PR target/64532
31058         * doc/md.texi (ARM Options): Document register constraints.
31059
31060 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
31061             Andrew Pinski  <apinski@cavium.com>
31062
31063         PR target/64304
31064         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31065         (ashl<mode>3): Don't expand if operands[2] is not constant.
31066
31067 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31068
31069         PR target/64448
31070         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31071         Match xor-and-xor RTL pattern.
31072
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  Jakub Jelinek  <jakub@redhat.com>
31085
31086         * common.opt (fgraphite): Fix a typo.
31087
31088 2015-01-19  Felix Yang  <felix.yang@huawei.com>
31089
31090         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31091         pattern.
31092         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31093         uminp, smax_nanp, smin_nanp): New builtins.
31094         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31095         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31096         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31097         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31098         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31099         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31100         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31101         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31102         vpminnms_f32): Rewrite using builtin functions.
31103
31104 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
31105
31106         PR libgomp/64625
31107         * omp-low.c (offload_symbol_decl): Remove variable.
31108         (get_offload_symbol_decl): Remove function.
31109         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31110         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31111         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31112         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31113         BUILT_IN_GOACC_UPDATE don't pass it at all.
31114
31115 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31116
31117         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31118         callers.
31119
31120 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
31121
31122         * ipa-chkp.c (chkp_produce_thunks): Add early param
31123         to split thunks production into two passes.  Keep
31124         'always_inline' function bodies after the first pass.
31125         (pass_data_ipa_chkp_early_produce_thunks): New.
31126         (pass_ipa_chkp_early_produce_thunks): New.
31127         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31128         chkp_produce_thunks signature.
31129         (make_pass_ipa_chkp_early_produce_thunks): New.
31130         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31131         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31132         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31133
31134 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31135
31136         * cgraph.c (cgraph_node::dump): Dump profile flags.
31137
31138 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
31139
31140         PR target/64652
31141         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31142         reg appear first in the parallel.
31143
31144 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31145
31146         * ipa-reference.c (set_reference_optimization_summary,
31147         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31148         disabled.
31149         (ignore_module_statics): New static var.
31150         (propagate_bits): If ipa-reference is disabled, do not look into local
31151         properties.
31152         (analyze_function): Disable analysis when ipa_reference is disabled.
31153         (generate_summary): Do not dump when reference is disabled;
31154         collect vars accessed from functions with ipa-reference disabled.
31155         (get_read_write_all_from_node): When ipa-reference is disabled, use the
31156         node flags.
31157         (gate): Enable for LTO.
31158         (ignore_edge_p): New function.
31159         (propagate): Skip functions w/o ipa-reference analysis.
31160         * optc-save-gen.awk: Handle optimize_debug correctly.
31161         * opth-gen.awk: Likewise.
31162         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31163         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31164         fira-share-save-slots, fira-share-spill-slots,
31165         fmodulo-sched-allow-regmoves, fpartial-inlining,
31166         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31167         ftracer, ftree-parallelize-loops, fassociative-math,
31168         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31169         Optimization
31170         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31171         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31172         Optimization.
31173         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31174         Fix for IPA.
31175
31176 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
31177
31178         PR ipa/64378
31179         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31180         flag correctly.
31181         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31182
31183 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31184
31185         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31186         Remove duplicate option listings.
31187
31188 2015-01-18  Felix Yang  <felix.yang@huawei.com>
31189
31190         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31191         (autofdo_source_profile::get_callsite_total_count,
31192         function_instance::get_function_instance_by_decl,
31193         string_table::get_index, string_table::get_index_by_decl,
31194         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31195         Fix comment typos. Reformatting and minor code rearrangement.
31196
31197 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31198
31199         * config/rs6000/rs6000.md (probe_stack): Delete.
31200         (probe_stack_address): New.
31201
31202 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31203
31204         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31205         to test for 32-bit ABIs, not !TARGET_POWERPC64.
31206
31207 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
31208
31209         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31210         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
31211         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
31212         snafu.
31213         (rs6000_libcall_value): Use the new function.
31214
31215 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
31216
31217         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31218
31219 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
31220
31221         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31222         implement a more precise life analysis for it during backward scan.
31223
31224 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
31225
31226         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31227
31228 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
31229
31230         PR rtl-optimization/52773
31231         * calls.c (emit_library_call_value): When pushing arguments use
31232         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31233         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
31234         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31235
31236 2015-01-17  Jeff Law  <law@redhat.com>
31237
31238         PR rtl-optimization/32790
31239         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31240         not ZERO_EXTEND in SET_DESTs.
31241
31242 2015-01-17  Alan Modra  <amodra@gmail.com>
31243
31244         * cprop.c (do_local_cprop): Revert last change.
31245
31246 2015-01-16  DJ Delorie  <dj@redhat.com>
31247             Nick Clifton  <nickc@redhat.com>
31248
31249         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31250         (addhi3_real): Likewise.  Fix [HL+0] syntax.
31251         (subqi3_real): Likewise.
31252         (subhi3_real): Likewise.
31253         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
31254         (cbranchhi4_real): Likewise.
31255         (cbranchhi4_real_inverted): Likewise.
31256         (cbranchsi4_real_lt): Likewise.
31257         (cbranchsi4_real_ge): Likewise.
31258         (cbranchsi4_real_ge): Likewise.
31259         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31260         (sub<mode>3_virt): Likewise.
31261         (cbranchqi4_virt): Likewise.
31262         (cbranchhi4_virt): Likewise.
31263         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31264         always use '[reg+imm]' even when imm is zero.
31265         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31266         (rl78_general_operand): New.
31267         (rl78_nonimmediate_operand): New.
31268         (rl78_nonfar_operand): Use them.
31269         (rl78_nonfar_nonimm_operand): Likewise.
31270         (rl78_stack_based_mem): Fix.
31271         * config/rl78/constraints.md (Ibqi): New.
31272         (IBqi): New.
31273         (Wsa): New.
31274         (Wsf): New.
31275         (Cs1): Fix.
31276         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31277         (iorqi3): Likewise.
31278         (xorqi3): Likewise.
31279         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31280
31281         * config/rl78/constrains (Qs8): New constraint.
31282         * config/rl78/rl78.c (rl78_flags_already_set): New function.
31283         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31284         * config/rl78/rl78-real.md (update_Z): New attribute.
31285         Update patterns to set it.
31286         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31287         shorter compare and branch sequence can be used.
31288         (cbranchhi4_real): Likewise.
31289         (cbranchhi4_real_inverted): Likewise.
31290
31291         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31292         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31293         address space.
31294         * config/rl78/rl78.c (rl78_get_name_encoding): New.
31295         (rl78_option_override): Allow -mes0 only if C.
31296         (characterize_address): Support subregs of symbol_refs.
31297         (rl78_addr_space_address_mode): Move.  Add __near.
31298         (rl78_far_p): Likewise.
31299         (rl78_addr_space_pointer_mode): Likewise.
31300         (rl78_as_legitimate_address): Likewise.
31301         (rl78_addr_space_subset_p): Likewise.
31302         (rl78_addr_space_convert): Likewise.
31303         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31304         symbols with -mes0.
31305         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
31306         addressing.
31307         (rl78_alloc_physical_registers_op1): Change logic to prefer
31308         symbol[BC] addressing.
31309         (frodata_section): New.
31310         (rl78_asm_init_sections): Initialize it.
31311         (rl78_select_section): Put __far readonly symbols in .frodata.
31312         (rl78_make_type_far): New.
31313         (rl78_insert_attributes): Force all readonly symbols to be
31314         __far when -mes0.
31315         (rl78_asm_out_integer): New.
31316         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31317         * config/rl78/rl78.opt (-mes0): New.
31318
31319         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31320         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31321         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31322         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31323         (rl78_saddr_p): New.
31324         (rl78_output_aligned_common): New.
31325         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31326         (rl78_handle_saddr_attribute): New.
31327         (rl78_handle_naked_attribute): New.
31328         (rl78_attribute_table): Add saddr.
31329         (rl78_print_operand_1): Don't print '!' on saddr operands.
31330         (rl78_print_operand_1): Strip encodings.
31331         (rl78_sfr_p): New.
31332         (rl78_strip_name_encoding): New.
31333         (rl78_attrlist_to_encoding): New.
31334         (rl78_encode_section_info): New.
31335         (rl78_asm_init_sections): New.
31336         (rl78_select_section): New.
31337         (rl78_output_labelref): New.
31338         (rl78_output_aligned_common): New.
31339         (rl78_asm_out_integer): New.
31340         (rl78_asm_ctor_dtor): New.
31341         (rl78_asm_constructor): New.
31342         (rl78_asm_destructor): New.
31343
31344         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31345         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31346         (transcode_memory_rtx): Update.
31347         (rl78_expand_epilogue): Use A_REG instead of 0.
31348
31349 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31350
31351         * config/arm/arm-protos.h (struct tune_params): New field
31352         sched_autopref_queue_depth.
31353         * config/arm/arm.c (sched-int.h): Include header.
31354         (arm_first_cycle_multipass_dfa_lookahead_guard,)
31355         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31356         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31357         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31358         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31359         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31360         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31361         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31362         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
31363         * config/arm/t-arm (arm.o): Update.
31364         * haifa-sched.c (update_insn_after_change): Update.
31365         (rank_for_schedule): Use auto-prefetcher model, if requested.
31366         (autopref_multipass_init): New static function.
31367         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31368         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31369         variable for debug dumps.
31370         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31371         (autopref_multipass_dfa_lookahead_guard): New global function that
31372         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31373         (init_h_i_d): Update.
31374         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31375         * sched-int.h (enum autopref_multipass_data_status): New const enum.
31376         (autopref_multipass_data_): Structure for auto-prefetcher data.
31377         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31378         (struct _haifa_insn_data:autopref_multipass_data): New field.
31379         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31380         (autopref_multipass_dfa_lookahead_guard): Declare.
31381
31382 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31383
31384         * rtlanal.c (get_base_term): Handle SCRATCH.
31385
31386 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
31387
31388         * config/aarch64/aarch64.c
31389         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31390         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31391         * config/arm/arm.c
31392         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31393         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31394
31395 2015-01-17  Alan Modra  <amodra@gmail.com>
31396
31397         * cprop.c (do_local_cprop): Disallow replacement of fixed
31398         hard registers.
31399
31400 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31401
31402         PR target/62066
31403         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31404         early return 0.
31405
31406 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31407
31408         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31409         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31410
31411 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31412
31413         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31414         * config/arm/thumb1.md: ... Here.
31415
31416 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31417
31418         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31419         TImode for TARGET_32BIT.
31420
31421 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31422
31423         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31424         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31425         as ...
31426         (rs6000_abi_word_mode): New function.
31427
31428 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31429
31430         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31431         instead of UNITS_PER_WORD to describe the size of stack slots.
31432
31433 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31434
31435         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31436         as rs6000_promote_function_mode.  Move comment to there.
31437         (rs6000_promote_function_mode): New function.
31438
31439 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
31440
31441         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31442         -mpowerpc64 is active.
31443
31444 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31445
31446         PR middle-end/64353
31447         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31448         virtuals on start.
31449
31450 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31451
31452         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31453         introduced in revision 219724.
31454
31455 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31456             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31457
31458         PR target/64263
31459         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31460         destination is not a GP reg.
31461         (*movdi_aarch64): Likewise.
31462
31463 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
31464
31465         PR target/64623
31466         * config/rs6000/default64.h: Revert ISA change.
31467
31468 2015-01-16  Richard Biener  <rguenther@suse.de>
31469
31470         PR middle-end/64614
31471         * tree-ssa-uninit.c: Include tree-cfg.h.
31472         (MAX_SWITCH_CASES): New define.
31473         (convert_control_dep_chain_into_preds): Handle switch statements.
31474         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31475         (normalize_one_pred_1): Do not split bit-manipulations.
31476         Record (x & CST).
31477
31478 2015-01-16  Richard Biener  <rguenther@suse.de>
31479
31480         PR tree-optimization/64568
31481         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31482         complex load rewriting for TARGET_MEM_REFs.
31483
31484 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
31485
31486         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31487
31488 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
31489
31490         PR target/64149
31491         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31492         variable.
31493         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31494         (aarch64_lra_p): Remove.
31495
31496 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31497
31498         PR target/64363
31499         * ipa-chkp.h (chkp_instrumentable_p): New.
31500         * ipa-chkp.c: Include tree-inline.h.
31501         (chkp_instrumentable_p): New.
31502         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31503         Fix processing of not instrumentable functions.
31504         (chkp_versioning): Use chkp_instrumentable_p. Warn about
31505         not instrumentable functions.
31506         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31507         chkp_instrumentable_p.
31508         * tree-inline.h (copy_forbidden): New.
31509         * tree-inline.c (copy_forbidden): Not static anymore.
31510
31511 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31512
31513         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31514         ptr1, ptr2 unused.
31515
31516 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31517
31518         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31519         type OP_OUT to OP_INOUT.
31520
31521 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
31522
31523         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31524         (high x) y) to y if x and y have the same base.
31525
31526 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
31527
31528         * config/arm/cortex-a57.md: New.
31529         * config/aarch64/aarch64.md: Include it.
31530         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31531         * config/aarch64/aarch64-tune.md: Regenerate.
31532
31533 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31534
31535         PR target/64015
31536         * ccmp.c (expand_ccmp_next): New function.
31537         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31538         and compare insn sequence.
31539         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31540         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31541         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31542         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31543         (*ccmp_ior): Changed to ccmp_ior<mode>.
31544         (cmp<mode>): New pattern.
31545         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31546         parameters.
31547         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31548
31549 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
31550
31551         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31552         _mm256_bsrli_epi128): New.
31553         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31554
31555 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31556
31557         * expmed.c (store_bit_field_using_insv): Improve warning message.
31558         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31559
31560 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
31561
31562         PR rtl-optimization/64011
31563         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31564         there is partial overflow.
31565
31566 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31567
31568         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31569         prototype.
31570         (nds32_expand_epilogue_v3pop): Likewise.
31571         * config/nds32/nds32.md (sibcall): Define this for sibling call
31572         optimization.
31573         (sibcall_register): Likewise.
31574         (sibcall_immediate): Likewise.
31575         (sibcall_value): Likewise.
31576         (sibcall_value_register): Likewise.
31577         (sibcall_value_immediate): Likewise.
31578         (sibcall_epilogue): Likewise.
31579         (epilogue): Pass false to indicate this is not a sibcall epilogue.
31580         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31581         (nds32_expand_epilogue_v3pop): Likewise.
31582
31583 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31584
31585         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31586         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31587         (return_internal): New.
31588         (return): Define this named pattern.
31589         (simple_return): Define this named pattern.
31590         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31591         pattern instead of unspec_volatile_func_return.
31592         (nds32_expand_epilogue_v3pop): Likewise.
31593         (nds32_can_use_return_insn): New function.
31594
31595 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31596
31597         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31598         * config/nds32/nds32.md (pop25return): New.
31599         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31600         pop25return pattern.
31601
31602 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31603
31604         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31605         -mforbid-fp-as-gp, and -mex9 options.
31606
31607 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
31608
31609         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31610         remove -mgp-direct option.
31611
31612 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31613
31614         * doc/invoke.texi (--param early-inlining-insns): Update default value.
31615         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31616
31617 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31618
31619         * ipa-inline.c (inline_small_functions): Work around hints
31620         cache issue.
31621
31622 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
31623
31624         PR target/59710
31625         * doc/invoke.texi (Option Summary): Document new Nios II
31626         -mgpopt= syntax.
31627         (Nios II Options): Likewise.
31628         * config/nios2/nios2.opt: Add -mgpopt= option support.
31629         Modify existing -mgpopt and -mno-gpopt options to be aliases.
31630         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31631         * config/nios2/nios2.c (nios2_option_override): Adjust
31632         -mgpopt defaulting.
31633         (nios2_in_small_data_p): Return true for explicit small data
31634         sections even with -G0.
31635         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31636         option choices.
31637
31638 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31639
31640         PR ipa/64612
31641         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31642         of comdat locals.
31643         (inline_call): Fix removal of aliases.
31644
31645 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
31646
31647         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31648         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31649         * opts.c (common_handle_option): Add -fsanitize=vptr.
31650         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31651         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31652         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31653         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31654         (ubsan_expand_vptr_ifn): New prototype.
31655         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31656         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31657         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31658         expand_LOOP_VECTORIZED): Make argument nameless, remove
31659         ATTRIBUTE_UNUSED.
31660         (expand_UBSAN_VPTR): New function.
31661         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31662         in fn spec.
31663         (UBSAN_VPTR): New internal function.
31664         * sanopt.c (tree_map_traits): Renamed to ...
31665         (sanopt_tree_map_traits): ... this.
31666         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31667         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31668         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
31669         (maybe_optimize_ubsan_vptr_ifn): New function.
31670         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31671         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
31672         -fsanitize=vptr.
31673         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31674         internal calls like pure functions for aliasing, even when they
31675         have other side-effects that prevent making them ECF_PURE.
31676         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31677         (ubsan_expand_vptr_ifn): New function.
31678
31679 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31680
31681         PR rtl-optimization/64110
31682         * stmt.c (parse_output_constraint): Process '^' and '$'.
31683         (parse_input_constraint): Ditto.
31684         * lra-constraints.c (process_alt_operands): Process the new
31685         constraints.
31686         * ira-costs.c (record_reg_classes): Process the new constraint
31687         '^'.
31688         * genoutput.c (indep_constraints): Add '^' and '$'.
31689         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31690         * doc/md.texi: Add description of the new constraints.
31691
31692 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
31693             Bernd Schmidt  <bernds@codesourcery.com>
31694             Cesar Philippidis  <cesar@codesourcery.com>
31695             James Norris  <jnorris@codesourcery.com>
31696             Tom de Vries  <tom@codesourcery.com>
31697             Ilmir Usmanov  <i.usmanov@samsung.com>
31698             Dmitry Bocharnikov  <dmitry.b@samsung.com>
31699             Evgeny Gavrin  <e.gavrin@samsung.com>
31700             Jakub Jelinek  <jakub@redhat.com>
31701
31702         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31703         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31704         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31705         New function types.
31706         * builtins.c: Include "gomp-constants.h".
31707         (expand_builtin_acc_on_device): New function.
31708         (expand_builtin, is_inexpensive_builtin): Handle
31709         BUILT_IN_ACC_ON_DEVICE.
31710         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31711         New macros.
31712         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31713         flag_openmp.
31714         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31715         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31716         i386/intelmic-offload.h.
31717         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31718         to libgomp and its dependencies.
31719         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31720         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31721         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31722         * config/ia64/hpux.h (LIB_SPEC): Likewise.
31723         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31724         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31725         * doc/generic.texi: Update for OpenACC changes.
31726         * doc/gimple.texi: Likewise.
31727         * doc/invoke.texi: Likewise.
31728         * doc/sourcebuild.texi: Likewise.
31729         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31730         GF_OMP_FOR_KIND_OACC_LOOP.
31731         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31732         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31733         GF_OMP_TARGET_KIND_OACC_UPDATE,
31734         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31735         Dump more data.
31736         * gimple.c: Update comments for OpenACC changes.
31737         * gimple.def: Likewise.
31738         * gimple.h: Likewise.
31739         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31740         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31741         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31742         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31743         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31744         appropriate place.
31745         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31746         * gimplify.c: Include "gomp-constants.h".
31747         Update comments for OpenACC changes.
31748         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31749         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31750         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31751         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31752         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31753         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31754         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31755         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31756         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31757         OMP_CLAUSE_SEQ.
31758         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31759         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31760         OMP_CLAUSE_SET_MAP_KIND.
31761         (gimplify_oacc_cache): New function.
31762         (gimplify_omp_for): Handle OACC_LOOP.
31763         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31764         OACC_DATA.
31765         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31766         OACC_EXIT_DATA, OACC_UPDATE.
31767         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31768         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31769         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31770         (gimplify_body): Consider flag_openacc next to flag_openmp.
31771         * lto-streamer-out.c: Include "gomp-constants.h".
31772         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31773         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31774         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31775         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31776         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31777         (BUILT_IN_ACC_ON_DEVICE): New builtins.
31778         * omp-low.c: Include "gomp-constants.h".
31779         Update comments for OpenACC changes.
31780         (struct omp_context): Add reduction_map, gwv_below, gwv_this
31781         members.
31782         (extract_omp_for_data, use_pointer_for_field, install_var_field)
31783         (new_omp_context, delete_omp_context, scan_sharing_clauses)
31784         (create_omp_child_function, scan_omp_for, scan_omp_target)
31785         (check_omp_nesting_restrictions, lower_reduction_clauses)
31786         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31787         Update for OpenACC changes.
31788         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31789         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31790         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31791         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31792         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31793         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
31794         OMP_CLAUSE_MAP_*.
31795         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31796         Handle GF_OMP_FOR_KIND_OACC_LOOP.
31797         (expand_omp_target, lower_omp_target): Handle
31798         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31799         GF_OMP_TARGET_KIND_OACC_UPDATE,
31800         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31801         GF_OMP_TARGET_KIND_OACC_DATA.
31802         (pass_expand_omp::execute, execute_lower_omp)
31803         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31804         flag_openmp.
31805         (offload_symbol_decl): New variable.
31806         (oacc_get_reduction_array_id, oacc_max_threads)
31807         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31808         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31809         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31810         (oacc_gimple_assign, oacc_initialize_reduction_data)
31811         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31812         functions.
31813         (is_targetreg_ctx): Remove function.
31814         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31815         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31816         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31817         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31818         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31819         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31820         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31821         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31822         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31823         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31824         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31825         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31826         * tree-core.h: Update comments for OpenACC changes.
31827         (enum omp_clause_map_kind): Remove.
31828         (struct tree_omp_clause): Change type of map_kind member from enum
31829         omp_clause_map_kind to unsigned char.
31830         * tree-inline.c: Update comments for OpenACC changes.
31831         * tree-nested.c: Likewise.  Include "gomp-constants.h".
31832         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31833         (convert_tramp_reference_stmt, convert_gimple_call): Update for
31834         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
31835         OMP_CLAUSE_SET_MAP_KIND.
31836         * tree-pretty-print.c: Include "gomp-constants.h".
31837         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31838         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31839         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31840         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31841         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31842         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
31843         instead of OMP_CLAUSE_MAP_*.
31844         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31845         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31846         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31847         * tree-streamer-in.c: Include "gomp-constants.h".
31848         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31849         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
31850         * tree-streamer-out.c: Include "gomp-constants.h".
31851         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31852         OMP_CLAUSE_MAP_*.
31853         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31854         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31855         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31856         * tree.c (omp_clause_num_ops): Update accordingly.
31857         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31858         Likewise.
31859         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31860         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31861         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31862         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31863         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31864         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31865         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31866         (OMP_CLAUSE_SET_MAP_KIND): New macro.
31867         * varpool.c (varpool_node::get_create): Consider flag_openacc next
31868         to flag_openmp.
31869         * config/i386/intelmic-offload.h: New file.
31870         * config/nvptx/offload.h: Likewise.
31871
31872 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31873
31874         * explow.h: Remove duplicate contents.
31875         * dojump.h: Likewise.
31876
31877 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
31878
31879         * arm.c (arm_xgene_tune): Add default initializer for instruction
31880         fusion.
31881
31882 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
31883
31884         PR ipa/64068
31885         PR ipa/64559
31886         * ipa.c (symbol_table::remove_unreachable_nodes):
31887         Do not put abstract origins into boundary.
31888
31889 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
31890
31891         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31892         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31893
31894 2015-01-15  Steve Ellcey  <sellcey@mips.com>
31895
31896         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31897         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31898         builtins.def, and chkp-builtins.def.
31899
31900 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
31901
31902         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31903         ISA 2.7 (POWER8).
31904
31905 2015-01-15  Richard Biener  <rguenther@suse.de>
31906
31907         PR tree-optimization/61743
31908         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31909         information on PHIs for some simple cases.
31910
31911 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31912
31913         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31914         Include xgene1.md.
31915         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31916         * config/arm/arm-cores.def (xgene1): New entry.
31917         * config/arm/arm-tables.opt: Regenerate.
31918         * config/arm/arm-tune.md: Regenerate.
31919         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31920
31921 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
31922
31923         * tree-if-conv.c: Include hash-map.h.
31924         (aggressive_if_conv): New variable.
31925         (fold_build_cond_expr): Add simplification of non-zero condition.
31926         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31927         destination block is not always executed.
31928         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31929         than two predecessors if AGGRESSIVE_IF_CONV is true.
31930         (if_convertible_stmt_p): Fix commentary.
31931         (all_preds_critical_p): New function.
31932         (has_pred_critical_p): New function.
31933         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31934         BB can have more than two predecessors and all incoming edges can be
31935         critical.
31936         (predicate_bbs): Skip predication for loop exit block, use build2_loc
31937         to compute predicate for true edge.
31938         (find_phi_replacement_condition): Delete this function.
31939         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
31940         Allow interchange PHI arguments if EXTENDED is false.
31941         Change check that block containing reduction statement candidate
31942         is predecessor of phi-block since phi may have more than two arguments.
31943         (phi_args_hash_traits): New helper structure.
31944         (struct phi_args_hash_traits): New type.
31945         (phi_args_hash_traits::hash): New function.
31946         (phi_args_hash_traits::equal_keys): New function.
31947         (gen_phi_arg_condition): New function.
31948         (predicate_scalar_phi): Add handling of phi nodes with more than two
31949         arguments, delete COND and TRUE_BB arguments, insert body of
31950         find_phi_replacement_condition to predicate ordinary phi nodes.
31951         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
31952         delete call of find_phi_replacement_condition and invoke
31953         predicate_scalar_phi with two arguments.
31954         (insert_gimplified_predicates): Add assert that non-predicated block
31955         don't have statements to insert.
31956         (ifcvt_split_critical_edges): New function.
31957         (ifcvt_split_def_stmt): Likewise.
31958         (ifcvt_walk_pattern_tree): Likewise.
31959         (stmt_is_root_of_bool_pattern): Likewise.
31960         (ifcvt_repair_bool_pattern): Likewise.
31961         (ifcvt_local_dce): Likewise.
31962         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
31963         is copy of inner or outer loop force_vectorize field, invoke
31964         ifcvt_split_critical_edges, ifcvt_local_dce and
31965         ifcvt_repair_bool_pattern for aggressive if-conversion.
31966
31967 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
31968
31969         * config/aarch64/aarch64.md: Include xgene1.md.
31970         * config/aarch64/xgene1.md: New file.
31971
31972 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
31973
31974         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
31975         xgene1 (APM XGene-1) core definition.
31976         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
31977         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
31978         * doc/invoke.texi: Document -mcpu=xgene1.
31979
31980 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31981
31982         * dojump.h: New header file.
31983         * explow.h: Likewise.
31984         * expr.h: Remove includes.
31985         Move expmed.c prototypes to expmed.h.
31986         Move dojump.c prototypes to dojump.h.
31987         Move alias.c prototypes to alias.h.
31988         Move explow.c prototypes to explow.h.
31989         Move calls.c prototypes to calls.h.
31990         Move emit-rtl.c prototypes to emit-rtl.h.
31991         Move varasm.c prototypes to varasm.h.
31992         Move stmt.c prototypes to stmt.h.
31993         (saved_pending_stack_adjust): Move to dojump.h.
31994         (adjust_address): Move to explow.h.
31995         (adjust_address_nv): Move to emit-rtl.h.
31996         (adjust_bitfield_address): Likewise.
31997         (adjust_bitfield_address_size): Likewise.
31998         (adjust_bitfield_address_nv): Likewise.
31999         (adjust_automodify_address_nv): Likewise.
32000         * explow.c (expr_size): Move to expr.c.
32001         (int_expr_size): Likewise.
32002         (tree_expr_size): Likewise.
32003         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32004         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32005         * genemit.c (main): Generate includes statistics.h, real.h,
32006         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32007         stmt.h.
32008         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32009         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32010         explow.h, emit-rtl.h, stmt.h.
32011         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32012         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32013         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32014         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32015         emit-rtl.h, varasm.h, stmt.h.
32016         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32017         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32018         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32019         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32020         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32021         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32022         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32023         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32024         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32025         tm.h tree.h varasm.h vec.h wide-int.h.
32026         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32027         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32028         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32029         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32030         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32031         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32032         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32033         * loop-iv.c: Likewise.
32034         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32035         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32036         statistics.h stmt.h tree.h varasm.h wide-int.h.
32037         * lra-constraints.c: Likewise.
32038         * lra-eliminations.c: Likewise.
32039         * lra-lives.c: Likewise.
32040         * lra-remat.c: Likewise.
32041         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32042         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32043         statistics.h stmt.h tree.h varasm.h wide-int.h.
32044         * hw-doloop.c: Likewise.
32045         * ira-color.c: Likewise.
32046         * ira-emit.c: Likewise.
32047         * loop-doloop.c: Likewise.
32048         * loop-invariant.c: Likewise.
32049         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32050         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32051         statistics.h stmt.h tree.h varasm.h wide-int.h.
32052         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32053         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32054         statistics.h stmt.h tree.h varasm.h wide-int.h.
32055         * combine-stack-adj.c: Likewise.
32056         * cse.c: Likewise.
32057         * ddg.c: Likewise.
32058         * ifcvt.c: Likewise.
32059         * ira-costs.c: Likewise.
32060         * jump.c: Likewise.
32061         * lra-coalesce.c: Likewise.
32062         * lra-spills.c: Likewise.
32063         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32064         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32065         stmt.h varasm.h wide-int.h.
32066         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32067         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32068         varasm.h.
32069         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32070         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32071         statistics.h stmt.h varasm.h wide-int.h.
32072         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32073         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32074         varasm.h wide-int.h.
32075         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32076         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32077         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32078         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32079         statistics.h stmt.h.
32080         * config/tilepro/tilepro.c: Likewise.
32081         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32082         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32083         * config/pdp11/pdp11.c: Likewise.
32084         * config/xtensa/xtensa.c: Likewise.
32085         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32086         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32087         varasm.h.
32088         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32089         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32090         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32091         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32092         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32093         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32094         * rtl-chkp.c: Likewise.
32095         * tree-chkp-opt.c: Likewise.
32096         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32097         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32098         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32099         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32100         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32101         statistics.h stmt.h.
32102         * tree-vect-data-refs.c: Likewise.
32103         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32104         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32105         rtl.h statistics.h stmt.h varasm.h.
32106         * internal-fn.c: Likewise.
32107         * ipa-icf-gimple.c: Likewise.
32108         * lto-section-out.c: Likewise.
32109         * tree-data-ref.c: Likewise.
32110         * tree-nested.c: Likewise.
32111         * tree-outof-ssa.c: Likewise.
32112         * tree-predcom.c: Likewise.
32113         * tree-pretty-print.c: Likewise.
32114         * tree-scalar-evolution.c: Likewise.
32115         * tree-ssa-strlen.c: Likewise.
32116         * tree-vect-loop.c: Likewise.
32117         * tree-vect-patterns.c: Likewise.
32118         * tree-vect-slp.c: Likewise.
32119         * tree-vect-stmts.c: Likewise.
32120         * tsan.c: Likewise.
32121         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32122         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32123         stmt.h.
32124         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32125         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32126         statistics.h stmt.h varasm.h.
32127         * loop-unroll.c: Likewise.
32128         * ubsan.c: Likewise.
32129         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32130         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32131         stmt.h varasm.h.
32132         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32133         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32134         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32135         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32136         statistics.h stmt.h.
32137         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32138         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32139         statistics.h stmt.h varasm.h.
32140         * gimple-match-head.c: Likewise.
32141         * lto-cgraph.c: Likewise.
32142         * lto-section-in.c: Likewise.
32143         * lto-streamer-in.c: Likewise.
32144         * lto-streamer-out.c: Likewise.
32145         * tree-affine.c: Likewise.
32146         * tree-cfg.c: Likewise.
32147         * tree-cfgcleanup.c: Likewise.
32148         * tree-if-conv.c: Likewise.
32149         * tree-into-ssa.c: Likewise.
32150         * tree-ssa-alias.c: Likewise.
32151         * tree-ssa-copyrename.c: Likewise.
32152         * tree-ssa-dse.c: Likewise.
32153         * tree-ssa-forwprop.c: Likewise.
32154         * tree-ssa-live.c: Likewise.
32155         * tree-ssa-math-opts.c: Likewise.
32156         * tree-ssa-pre.c: Likewise.
32157         * tree-ssa-sccvn.c: Likewise.
32158         * tree-tailcall.c: Likewise.
32159         * tree-vect-generic.c: Likewise.
32160         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32161         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32162         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32163         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32164         * varasm.c: Likewise.
32165         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32166         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32167         varasm.h.
32168         * init-regs.c: Likewise.
32169         * ira.c: Likewise.
32170         * omp-low.c: Likewise.
32171         * stack-ptr-mod.c: Likewise.
32172         * tree-ssa-reassoc.c: Likewise.
32173         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32174         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32175         varasm.h.
32176         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32177         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32178         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32179         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32180         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32181         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32182         * tree-ssa-phiopt.c: Likewise.
32183         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32184         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32185         * config/fr30/fr30.c: Likewise.
32186         * config/frv/frv.c: Likewise.
32187         * expr.c: Likewise.
32188         * final.c: Likewise.
32189         * optabs.c: Likewise.
32190         * passes.c: Likewise.
32191         * simplify-rtx.c: Likewise.
32192         * stmt.c: Likewise.
32193         * toplev.c: Likewise.
32194         * var-tracking.c: Likewise.
32195         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32196         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32197         * lower-subreg.c: Likewise.
32198         * postreload-gcse.c: Likewise.
32199         * ree.c: Likewise.
32200         * reginfo.c: Likewise.
32201         * store-motion.c: Likewise.
32202         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32203         fixed-value.h hashtab.h real.h stmt.h varasm.h.
32204         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32205         fixed-value.h hashtab.h statistics.h stmt.h.
32206         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32207         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32208         * except.c: Likewise.
32209         * explow.c: Likewise.
32210         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32211         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32212         varasm.h.
32213         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32214         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32215         * tree-ssa-structalias.c: Likewise.
32216         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32217         fixed-value.h insn-config.h real.h statistics.h.
32218         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32219         fixed-value.h insn-config.h real.h statistics.h stmt.h.
32220         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32221         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32222         * cfgbuild.c: Likewise.
32223         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32224         fixed-value.h real.h rtl.h statistics.h stmt.h.
32225         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32226         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32227         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32228         fixed-value.h real.h statistics.h stmt.h.
32229         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32230         fixed-value.h real.h statistics.h stmt.h varasm.h.
32231         * cprop.c: Likewise.
32232         * modulo-sched.c: Likewise.
32233         * postreload.c: Likewise.
32234         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32235         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32236         statistics.h stmt.h varasm.h.
32237         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32238         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32239         rtl.h statistics.h stmt.h varasm.h.
32240         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32241         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32242         varasm.h.
32243         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32244         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32245         varasm.h.
32246         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32247         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32248         varasm.h.
32249         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32250         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32251         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32252         function.h real.h statistics.h stmt.h varasm.h.
32253         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32254         insn-config.h real.h statistics.h stmt.h.
32255         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32256         statistics.h stmt.h.
32257         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32258         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32259         statistics.h stmt.h varasm.h.
32260         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32261         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32262         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32263         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32264         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32265         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32266         statistics.h stmt.h varasm.h.
32267         * ipa-polymorphic-call.c: Likewise.
32268         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32269         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32270         statistics.h stmt.h.
32271         * config/c6x/c6x.c: Likewise.
32272         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32273         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32274         statistics.h stmt.h varasm.h.
32275         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32276         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32277         stmt.h varasm.h.
32278         * ipa-split.c: Likewise.
32279         * tree-eh.c: Likewise.
32280         * tree-ssa-dce.c: Likewise.
32281         * tree-ssa-loop-niter.c: Likewise.
32282         * tree-vrp.c: Likewise.
32283         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32284         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32285         stmt.h.
32286         * config/nds32/nds32-fp-as-gp.c: Likewise.
32287         * config/nds32/nds32-intrinsic.c: Likewise.
32288         * config/nds32/nds32-isr.c: Likewise.
32289         * config/nds32/nds32-md-auxiliary.c: Likewise.
32290         * config/nds32/nds32-memory-manipulation.c: Likewise.
32291         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32292         * config/nds32/nds32-predicates.c: Likewise.
32293         * config/nds32/nds32.c: Likewise.
32294         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32295         fixed-value.h hashtab.h real.h statistics.h.
32296         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32297         fixed-value.h hashtab.h real.h statistics.h stmt.h.
32298         * config/arm/arm.c: Likewise.
32299         * config/avr/avr.c: Likewise.
32300         * config/bfin/bfin.c: Likewise.
32301         * config/h8300/h8300.c: Likewise.
32302         * config/i386/i386.c: Likewise.
32303         * config/ia64/ia64.c: Likewise.
32304         * config/iq2000/iq2000.c: Likewise.
32305         * config/m32c/m32c.c: Likewise.
32306         * config/m32r/m32r.c: Likewise.
32307         * config/m68k/m68k.c: Likewise.
32308         * config/mcore/mcore.c: Likewise.
32309         * config/mep/mep.c: Likewise.
32310         * config/mips/mips.c: Likewise.
32311         * config/mn10300/mn10300.c: Likewise.
32312         * config/moxie/moxie.c: Likewise.
32313         * config/pa/pa.c: Likewise.
32314         * config/rl78/rl78.c: Likewise.
32315         * config/rx/rx.c: Likewise.
32316         * config/s390/s390.c: Likewise.
32317         * config/sh/sh.c: Likewise.
32318         * config/sparc/sparc.c: Likewise.
32319         * config/spu/spu.c: Likewise.
32320         * config/stormy16/stormy16.c: Likewise.
32321         * config/v850/v850.c: Likewise.
32322         * config/vax/vax.c: Likewise.
32323         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32324         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32325         * config/msp430/msp430.c: Likewise.
32326         * predict.c: Likewise.
32327         * value-prof.c: Likewise.
32328         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32329         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32330         * config/microblaze/microblaze.c: Likewise.
32331         * config/nios2/nios2.c: Likewise.
32332         * config/rs6000/rs6000.c: Likewise.
32333         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32334         insn-config.h real.h rtl.h statistics.h stmt.h.
32335         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32336         insn-config.h real.h statistics.h stmt.h.
32337         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32338         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32339         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32340         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32341         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32342         fixed-value.h real.h statistics.h stmt.h.
32343         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32344         fixed-value.h statistics.h stmt.h.
32345         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32346         stmt.h.
32347
32348 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
32349
32350         * gengtype.c (create_user_defined_type): Workaround
32351         -Wmaybe-uninitialized false positives.
32352         * cse.c (fold_rtx): Likewise.
32353         * loop-invariant.c (gain_for_invariant): Likewise.
32354
32355 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
32356
32357         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32358         set the memory attributes in all cases but clear MEM_EXPR if need be.
32359
32360 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
32361
32362         PR tree-optimization/64434
32363         * cfgexpand.c (reorder_operands): New function.
32364         (expand_gimple_basic_block): Insert call of reorder_operands if
32365         optimized is true.
32366
32367 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
32368
32369         * config/mips/micromips.md (*swp): Remove explicit parallel.
32370         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32371         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32372         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32373         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32374         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32375         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32376         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32377         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32378         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32379         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32380         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32381         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32382         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32383         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32384         (mips_wrdsp): Likewise.
32385         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32386         parallel.
32387         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32388         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32389         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32390         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32391         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32392         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32393         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32394         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32395         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32396
32397 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32398
32399         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32400         (mips_print_operand): Support 'y' to print exact log2 in decimal
32401         of a const_int.
32402         * config/mips/mips.h (ISA_HAS_LSA): New define.
32403         (ISA_HAS_DLSA): Likewise.
32404         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32405         * config/mips/predicates.md (const_immlsa_operand): New predicate.
32406
32407 2015-01-15  Martin Liska  <mliska@suse.cz>
32408
32409         PR target/64377
32410         * optc-save-gen.awk: Add support for array types.
32411
32412 2015-01-15  Richard Biener  <rguenther@suse.de>
32413
32414         PR middle-end/64365
32415         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32416         for MEM_REF access functions with the same base can never partially
32417         overlap.
32418
32419 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
32420
32421         * common.opt: New option -fstack-protector-explicit.
32422         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32423         (stack_protect_decl_phase): Handle stack_protect attribute for
32424         explicit stack protection requests.
32425         (expand_used_vars): Similarly.
32426         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32427         * doc/extend.texi: Add documentation for "stack_protect" attribute.
32428         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32429
32430 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
32431
32432         PR target/53988
32433         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32434         reg-reg copies.
32435         (sh_extending_set_of_reg): New struct.
32436         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32437         sh_remove_reg_dead_or_unused_notes): New Declarations.
32438         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32439         sh_find_extending_set_of_reg, sh_split_tst_subregs,
32440         sh_extending_set_of_reg::use_as_extended_reg): New functions.
32441         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32442         convert to insn_and_split and use new function sh_split_tst_subregs.
32443
32444 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
32445
32446         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32447         option.
32448         (Optimization Options): Move -fuse-ld documentation to...
32449         (Link Options): ...here.
32450
32451 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32452
32453         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32454         offsets.
32455         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32456         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32457         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32458         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32459         instead of ZR for the memory operand of LL/SC.
32460         (compare_and_swap_12, sync_add<mode>): Likewise.
32461         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32462         (sync_new_<optab>_12, sync_nand_12): Likewise.
32463         (sync_old_nand_12, sync_new_nand_12): Likewise.
32464         (sync_sub<mode>, sync_old_add<mode>): Likewise.
32465         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32466         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32467         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32468         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32469         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32470         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32471         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32472         * doc/md.texi (ZC): Update description.
32473
32474 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32475
32476         * builtins.c (expand_builtin_atomic_exchange): Remove error when
32477         memory model is CONSUME.
32478         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32479         expand_builtin_atomic_store): Change invalid memory model errors to
32480         warnings.
32481         (expand_builtin_atomic_clear): Change invalid model errors to warnings
32482         and issue warning for CONSUME.
32483
32484 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
32485
32486         * lto-cgraph: Update function comments for
32487         lto_symtab_encoder_encode_*.
32488
32489 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32490
32491         * Makefile.in (site.exp): Do not set ENABLE_LTO.
32492
32493 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
32494
32495         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32496         * lto-cgraph.c (select_what_to_stream): Remove argument, use
32497         lto_stream_offload_p instead.
32498         * lto-streamer.h (select_what_to_stream): Remove argument.
32499         * passes.c (ipa_write_summaries): Likewise.
32500         * tree-pass.h (ipa_write_summaries): Likewise.
32501
32502 2015-01-14  Richard Biener  <rguenther@suse.de>
32503
32504         PR tree-optimization/59354
32505         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32506         groups larger than the slp group size as having gaps.
32507
32508 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
32509
32510         PR middle-end/59448
32511         * builtins.c (get_memmodel): Promote consume to acquire always.
32512
32513 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32514
32515         PR target/64386
32516         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32517         V32HImode.
32518
32519 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32520
32521         PR target/64393
32522         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32523         Enable AVX512BW.
32524         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32525         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32526         AVX512VBMI, as it implies AVX512BW.
32527
32528 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
32529
32530         PR target/64387
32531         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32532         (vec_unpacks_hi_v16sf): Ditto.
32533
32534 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32535
32536         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32537         is not available.
32538
32539 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32540
32541         * doc/invoke.texi (mapcs): Mention deprecation.
32542         (mapcs-frame): Likewise.
32543
32544 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32545
32546         PR target/64453
32547         * config/arm/arm.c (callee_saved_reg_p): Define.
32548         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32549         register is callee saved instead of !call_used_regs[reg].
32550         (thumb1_compute_save_reg_mask): Likewise.
32551
32552 2015-01-14  Hale Wang  <hale.wang@arm.com>
32553
32554         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32555         Cortex-M7.
32556
32557 2015-01-14  Richard Biener  <rguenther@suse.de>
32558
32559         PR lto/64415
32560         * tree-inline.c (insert_debug_decl_map): Check destination
32561         function MAY_HAVE_DEBUG_STMTS.
32562         (insert_init_debug_bind): Likewise.
32563         (insert_init_stmt): Remove redundant check.
32564         (remap_gimple_stmt): Drop debug stmts if the destination
32565         function has var-tracking assignments disabled.
32566
32567 2015-01-14  Martin Liska  <mliska@suse.cz>
32568
32569         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32570         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32571
32572 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32573
32574         PR target/64460
32575         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32576         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32577
32578 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
32579
32580         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32581         level from an ARCH; do not inject the default.
32582         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32583         MIPS_ISA_LEVEL_SPEC.
32584         (MIPS_ISA_NAN2008_SPEC): Update comment.
32585         (BASE_DRIVER_SELF_SPECS): Likewise.
32586         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32587         MIPS_DEFAULT_ISA_LEVEL_SPEC.
32588         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32589         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32590         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32591
32592 2015-01-14  Richard Biener  <rguenther@suse.de>
32593
32594         PR tree-optimization/64493
32595         PR tree-optimization/64495
32596         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32597         assign the proper vectorized PHI to the inner loop exit PHIs.
32598
32599 2015-01-14  Joey Ye  <joey.ye@arm.com>
32600
32601         * config/arm/arm.c (arm_compute_save_reg_mask):
32602         Do not save lr in case of tail call.
32603         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32604
32605 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
32606
32607         * tree-vrp.c (check_array_ref): Emit more warnings
32608         for warn_array_bounds >= 2.
32609         * common.opt: New option -Warray-bounds=.
32610         * doc/invoke.texi: Document -Warray-bounds=.
32611
32612 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32613
32614         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32615         (mforbid-fp-as-gp): Remove.
32616         (mex9): Remove.
32617         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32618         (nds32_symbol_load_store_p): Remove.
32619         (nds32_fp_as_gp_check_available): Clean up implementation.
32620         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32621         cases.
32622         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32623         fp-as-gp and ex9 cases.
32624
32625 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32626
32627         * tree-profile.c (init_ic_make_global_vars): Drop workaround
32628         for bintuils bug 14342.
32629         (init_ic_make_global_vars): Likewise.
32630         (gimple_init_edge_profiler): Likewise.
32631         (gimple_gen_ic_func_profiler): Likewise.
32632
32633 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
32634
32635         * ipa-inline.c (inline_small_functions): Swap the operands in
32636         enum.
32637
32638 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32639
32640         PR ipa/64481
32641         * ipa-inline-analysis.c (node_growth_cache): Remove.
32642         (initialize_growth_caches): Do not initialize it.
32643         (free_growth_caches): Do not free it.
32644         (do_estimate_growth): Rename to ...
32645         (estimate_growth): ... this one; drop growth cache code.
32646         (growth_likely_positive): Always go the heuristics way.
32647         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32648         (reset_edge_caches): Do not reset node growth.
32649         (heap_edge_removal_hook): Do not maintain cache.
32650         (inline_small_functions): Likewise; strenghten sanity check.
32651         (ipa_inline): Do not maintain caches.
32652         * ipa-inline.h (node_growth_cache): Remove.
32653         (do_estimate_growth): Remove to ...
32654         (estimate_growth): this one; remove inline version.
32655         (reset_node_growth_cache): Remove.
32656
32657 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
32658
32659         PR ipa/64565
32660         * ipa-inline.c (inline_small_functions): Update callee keys after
32661         resolving speculation
32662         (inline_small_functions): Always check monotonicity of the queue.
32663
32664 2015-01-13  Marek Polacek  <polacek@redhat.com>
32665
32666         PR middle-end/64391
32667         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32668
32669 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32670
32671         PR rtl-optimization/64286
32672         * ree.c (combine_reaching_defs): Move part of comment earlier,
32673         remove !SCALAR_INT_MODE_P check.
32674         (add_removable_extension): Don't add vector mode
32675         extensions if all uses of the source register aren't the same
32676         vector extensions.
32677
32678 2015-01-13  Renlin Li  <renlin.li@arm.com>
32679
32680         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32681         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32682
32683 2015-01-13  Martin Liska  <mliska@suse.cz>
32684
32685         * ipa-icf.c (sem_function::equals_private): Call new functions
32686         cl_target_option_print_diff and cl_optimization_print_diff.
32687         * optc-save-gen.awk (cl_target_option_print_diff): New function.
32688         (cl_optimization_print_diff): Likewise.
32689         * opth-gen.awk: Likewise.
32690
32691 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
32692
32693         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32694         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32695         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32696         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32697         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32698         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32699
32700 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32701
32702         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32703         instead of src mode.
32704
32705 2015-01-13  Richard Biener  <rguenther@suse.de>
32706
32707         PR lto/64373
32708         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32709         DECL_CONTEXT.
32710
32711 2015-01-13  Andrew Pinski  <apinski@cavium.com>
32712
32713         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32714         volatile mems.
32715         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32716
32717 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
32718
32719         PR middle-end/63974
32720         * cfgexpand.c (expand_computed_goto): Don't call
32721         convert_memory_address here.
32722
32723 2015-01-13  Richard Biener  <rguenther@suse.de>
32724
32725         PR tree-optimization/64406
32726         * tree-loop-distibution.c (pass_loop_distribution::execute):
32727         Reset the SCEV hashtable if we distributed anything.
32728
32729 2015-01-13  Richard Biener  <rguenther@suse.de>
32730
32731         PR tree-optimization/64404
32732         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32733         SLP types for CSEd loads.
32734
32735 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32736
32737         PR tree-optimization/64436
32738         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32739         merge of two symbolic numbers for a bitwise OR to ...
32740         (perform_symbolic_merge): This. Also fix computation of the range and
32741         end of the symbolic number corresponding to the result of a bitwise OR.
32742
32743 2015-01-13  Richard Biener  <rguenther@suse.de>
32744
32745         PR tree-optimization/64568
32746         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32747         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32748
32749 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32750
32751         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32752         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32753
32754 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32755
32756         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32757         target-specific symbol_ref flag.
32758         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32759         resides in rodata section.
32760         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32761         (nds32_encode_section_info): New function.
32762
32763 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32764
32765         * config/nds32/nds32.md (call): Use pseudo instruction bal which
32766         clobbers TA_REGNUM if large code model is specified.
32767         (call_register): Likewise.
32768         (call_immediate): Likewise.
32769         (call_value): Likewise.
32770         (call_value_register): Likewise.
32771         (call_value_immediate): Likewise.
32772
32773 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32774
32775         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32776         (TARGET_CMODEL_MEDIUM): New macro.
32777         (TARGET_CMODEL_LARGE): New macro.
32778         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32779         code model setting in assembly code.
32780
32781 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32782
32783         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32784         Remove MASK_GP_DIRECT flag.
32785         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32786         one of the multilib default options.
32787         * config/nds32/nds32.opt (mgp-direct): Remove.
32788         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32789         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
32790
32791 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
32792
32793         * config/nds32/nds32.opt (mcmodel): Add new option.
32794         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32795         to describe code model.
32796
32797 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
32798
32799         PR target/64479
32800         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32801
32802 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
32803
32804         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32805         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32806         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32807         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32808         __builtin_sh_set_fpscr.
32809
32810 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32811
32812         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32813         after a funtion name just to indicate it is a function.
32814         ([-fsanitize-undefined-trap-on-error]): Likewise.
32815         ([-fdbg-cnt=]): Likewise.
32816         ([-mmemcpy]): Likewise.
32817         ([-mflush-func]): Likewise.
32818         ([-msynci]): Likewise.
32819
32820 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
32821
32822         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32823         example.
32824
32825 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
32826
32827         PR tree-optimization/64563
32828         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32829         instead of != VR_VARYING.
32830
32831         PR target/64513
32832         * config/i386/i386.c (ix86_expand_prologue): Add
32833         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32834
32835         PR tree-optimization/64454
32836         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32837         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32838         for signed or [0, op1 - 1] for unsigned modulo.
32839         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32840         even if op1 does not satisfy integer_pow2p.
32841
32842         PR other/64370
32843         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32844
32845 2015-01-12  Jeff Law  <law@redhat.com>
32846
32847         PR target/64461
32848         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32849         (trunchiqi2, truncsihi2): Similarly.
32850
32851         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32852         rather than calling F.
32853
32854 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32855
32856         * tsan.c (instrument_expr): Use force_gimple_operand.
32857         Use may_be_nonaddressable_p instead of is_gimple_addressable.
32858
32859 2015-01-12  Richard Biener  <rguenther@suse.de>
32860
32861         PR tree-optimization/64530
32862         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32863         back dr1.
32864
32865 2015-01-12  Richard Biener  <rguenther@suse.de>
32866
32867         PR middle-end/64357
32868         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32869         latches properly.
32870
32871 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32872
32873         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32874         Cortex-A17 tuning parameters.
32875         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32876
32877 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32878
32879         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32880         * config/arm/arm.c (arm_macro_fusion_p): New function.
32881         (arm_macro_fusion_pair_p): Likewise.
32882         (TARGET_SCHED_MACRO_FUSION_P): Define.
32883         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32884         (ARM_FUSE_NOTHING): Likewise.
32885         (ARM_FUSE_MOVW_MOVT): Likewise.
32886         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32887         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32888         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32889         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32890         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32891         arm_cortex_a5_tune): Specify fuseable_ops value.
32892
32893 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
32894
32895         PR bootstrap/64561
32896         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32897         test for PIE with copy reloc.
32898         * configure: Regenerated.
32899
32900 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32901
32902         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32903         in gen_rtx_REG.
32904         (arm_tls_descseq_addr): Likewise.
32905         (arm_gen_movmemqi): Likewise.
32906         (arm_expand_epilogue_apcs_frame): Likewise.
32907         (arm_expand_epilogue): Likewise.
32908         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
32909         in gen_rtx_REG.
32910
32911 2015-01-12  Martin Liska  <mliska@suse.cz>
32912
32913         PR ipa/64550
32914         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32915         volatility for correct operands.
32916
32917 2015-01-12  Martin Liska  <mliska@suse.cz>
32918
32919         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32920         indication that a function is not leaf.
32921         (sem_function::compare_polymorphic_p): Likewise.
32922
32923 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32924
32925         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32926         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32927         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32928         fold-const.h, tree-check.h.
32929
32930 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32931
32932         PR ipa/63967
32933         PR ipa/64425
32934         * ipa-inline.c (compute_uninlined_call_time,
32935         compute_inlined_call_time): Use counts for extra precision when
32936         needed possible.
32937         (big_speedup_p): Fix formating.
32938         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
32939         (relative_time_benefit): Remove.
32940         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
32941         merge guessed and read profile paths.
32942         (inline_small_functions): Count only !optimize_size functions into
32943         initial size; be more lax about sanity check when profile is used;
32944         be sure to update inlined function profile when profile is read.
32945
32946 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
32947
32948         PR ipa/63470
32949         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
32950         cost when edge becomes direct.
32951         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
32952         is resolved or when introducing new speculation.
32953
32954 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
32955
32956         PR ipa/64551
32957         PR ipa/64552
32958         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
32959         '||' to fix typo issue.
32960
32961         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
32962         accept and return NULL.
32963
32964 2015-01-12  Martin Liska  <mliska@suse.cz>
32965
32966         * cgraph.c (cgraph_edge::remove_callee): Move function to header
32967         file for being inlined.
32968         (cgraph_set_edge_callee): Delete.
32969         (cgraph_edge::redirect_callee): Move function to header file
32970         for being inlined.
32971         (cgraph_edge::make_direct): Use new function.
32972         (cgraph_edge::dump_edge_flags): New function created from
32973         static dump_edge_flags function.
32974         (cgraph_node::dump): Use new function.
32975         (cgraph_edge::verify_count_and_frequency): New function created
32976         from verify_edge_count_and_frequency.
32977         (cgraph_edge::verify_corresponds_to_fndecl): New function created
32978         from verify_edge_corresponds_to_fndecl.
32979         (verify_edge_corresponds_to_fndecl): Delete.
32980         (cgraph_node::verify_node): Use new function.
32981         * cgraph.h (cgraph_edge::set_callee): New function.
32982         (cgraph_edge::dump_edge_flags): Likewise.
32983         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
32984
32985 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
32986
32987         * ipa-utils.c (estimate_function_body_sizes): Do not
32988         free node params when called late with early=true.
32989
32990 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
32991
32992         * doc/md.texi (Instruction Patterns): Rewrite text for
32993         clarity.
32994         (Example): Likewise.
32995
32996 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
32997
32998         * doc/invoke.texi (Option Summary): Break long lines.
32999         [(-fdiagnostics-color)]: Put long literal in @smallexample
33000         instead of inline.
33001         [(-fsanitize-recover)]: Likewise.
33002         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33003         [(-ffast-math)]: Likewise.
33004         [(--param max-inline-insns-recursive)]: Likewise.
33005         [(--param max-inline-recursive-depth)]: Likewise.
33006         [(-mno-text-section-literals)]: Likewise.
33007
33008 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
33009
33010         * doc/install.texi: Update for libgomp being renamed from "GNU
33011         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33012         Runtime Library".
33013         * doc/sourcebuild.texi: Likewise.
33014
33015 2015-01-10  Anthony Green  <green@moxielogic.com>
33016
33017         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33018         mul.x availability for moxiebox configuration.
33019
33020 2015-01-09  Anthony Green  <green@moxielogic.com>
33021
33022         * config/moxie/moxie.md: Tabify assembly output.
33023
33024 2015-01-09  Anthony Green  <green@moxielogic.com>
33025
33026         * config/moxie/moxie.md (CC_REG): Correct register definition.
33027
33028 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
33029
33030         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33031         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
33032         of log files.
33033
33034 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33035
33036         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33037
33038 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
33039             Jakub Jelinek  <jakub@redhat.com>
33040
33041         PR middle-end/64412
33042         * lto-streamer.h (lto_stream_offload_p): New declaration.
33043         * lto-streamer.c (lto_stream_offload_p): New variable.
33044         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33045         at the same time as section_name_prefix.
33046         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33047         if lto_stream_offload_p.
33048         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33049         stream TREE_TARGET_OPTION if lto_stream_offload_p.
33050         (write_ts_function_decl_tree_pointers): Don't
33051         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33052         * tree-streamer-in.c (unpack_value_fields): Don't stream
33053         TREE_TARGET_OPTION in if ACCEL_COMPILER.
33054         (lto_input_ts_function_decl_tree_pointers): Don't stream
33055         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33056         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33057         instead of section_name_prefix string comparisons.
33058
33059 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
33060
33061         PR rtl-optimization/64536
33062         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33063         tablejumps.
33064
33065 2015-01-09  Michael Collison  <michael.collison@linaro.org>
33066
33067         PR tree-optimization/64322
33068         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33069         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33070
33071 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33072
33073         PR rtl-optimization/64539
33074         * regcprop.c (kill_clobbered_values): Factor out of ...
33075         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
33076         instead of note_stores with kill_clobbered_value.
33077
33078 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33079
33080          * ginclude/unwind-arm-common.h: Revert previous commit.
33081
33082 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
33083
33084         * config.gcc (arm*-*-freebsd*): New configuration.
33085         * config/arm/freebsd.h: New file.
33086         * config.host: Add extra components for arm*-*-freebsd*.
33087         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33088         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33089
33090 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33091
33092         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33093         for -mcpu=e6500.
33094         * config/rs6000/t-rtems: Add e6500 multilibs.
33095
33096 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33097
33098         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33099         MPC8540.
33100
33101 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33102
33103         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33104         MULTILIB_EXCEPTIONS.
33105
33106 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33107
33108         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33109         MULTILIB_EXCEPTIONS.
33110
33111 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33112
33113         * config/arm/t-rtems-eabi: Rename to...
33114         * config/arm/t-rtems: ...this.
33115         * config/arm/rtems-eabi.h: Rename to...
33116         * config/arm/rtems.h: ...this.
33117         * config.gcc (arm*-*-rtems*): Reflect changes above.
33118
33119 2015-01-09  Richard Biener  <rguenther@suse.de>
33120
33121         PR tree-optimization/64410
33122         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33123         on the LHS.
33124         (execute_update_addresses_taken): Deal with that.
33125         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33126         loads/stores for complex variables.
33127
33128 2015-01-09  Martin Liska  <mliska@suse.cz>
33129
33130         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33131         name comparison.
33132         (func_checker::compare_memory_operand): New function.
33133         (func_checker::compare_operand): Split case to newly
33134         added functions.
33135         (func_checker::compare_cst_or_decl): New function.
33136         (func_checker::compare_gimple_call): Identify
33137         memory operands.
33138         (func_checker::compare_gimple_assign): Likewise.
33139         * ipa-icf-gimple.h: New function.
33140
33141 2015-01-09  Martin Liska  <mliska@suse.cz>
33142
33143         PR ipa/64503
33144         * sreal.c (sreal::dump): Change unsigned format to signed for
33145         m_exp value.
33146         (sreal::to_double): Replace exp2 with scalbln.
33147
33148 2015-01-09  Martin Liska  <mliska@suse.cz>
33149
33150         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33151         * ipa-icf.c (sem_function::equals_private): Add support for target and
33152         (sem_item_optimizer::merge_classes): Remove redundant function
33153         optimization flags comparison.
33154         * tree.h (target_opts_for_fn): New function.
33155
33156 2015-01-09  Tom de Vries  <tom@codesourcery.com>
33157
33158         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33159
33160 2015-01-09  Kito Cheng  <kito@0xlab.org>
33161
33162         PR rtl-optimization/64348
33163         * lra-constraints.c (split_reg): Fix caller-save store/restore
33164         instruction generation.
33165
33166 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
33167
33168         PR gcov-profile/61790
33169         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33170         long long.  Fallback to int64_t if host doesn't have long long and
33171         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
33172
33173 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33174
33175         PR tree-optimization/63989
33176         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33177         from 1000 to 10000.
33178         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33179         (get_stridx): If we don't have a record for certain SSA_NAME,
33180         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33181         constant offset, call get_stridx_plus_constant.
33182         (get_stridx_plus_constant): New function.
33183         (zero_length_string): Don't use get_stridx here.
33184
33185         PR target/55023
33186         PR middle-end/64388
33187         * dse.c (struct insn_info): Mention frame_read set also
33188         before reload for tail calls on some targets.
33189         (scan_insn): Revert 2014-12-22 change.  Set frame_read
33190         also before reload for tail calls if
33191         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
33192         instead of add_non_frame_wild_read for non-const/memset
33193         tail calls after reload.
33194
33195 2015-01-08  Jason Merrill  <jason@redhat.com>
33196
33197         * ubsan.c (do_ubsan_in_current_function): New.
33198         (pass_ubsan::gate): Use it.
33199         * ubsan.h: Declare it.
33200         * convert.c (convert_to_integer): Use it.
33201
33202 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33203
33204         PR target/64338
33205         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33206         compare_code when it is unconditionally overwritten afterwards.
33207         Use ix86_reverse_condition instead of reverse_condition.  Don't
33208         change code if *reverse_condition* returned UNKNOWN and don't
33209         swap ct/cf and negate diff in that case.
33210
33211 2015-01-08  Mike Stump  <mikestump@comcast.net>
33212
33213         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33214         (pass_tsan_O0::gate): Likewise.
33215         * extend.texi (Function Attributes): Add no_sanitize_thread
33216         documentation.
33217
33218 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
33219
33220         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33221         for registering builtins.
33222         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33223         add -fopenmp to the argv_obstack used when invoking
33224         compile_for_target.
33225
33226         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33227         add "-m32" or "-m64" to argv_obstack.
33228         (generate_host_descr_file): Likewise, when invoking host_compiler.
33229         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33230         ld.
33231
33232 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33233
33234         * config/sh/sh-mem.cc: Use constant as second operand when emitting
33235         tstsi_t insns.
33236
33237 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
33238
33239         PR target/55212
33240         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33241         constant load if constant operand fits into I08.
33242
33243 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
33244
33245         PR sanitizer/64336
33246         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33247         and TREE_THIS_VOLATILE for MEM_REFs.
33248         (build5_stat): Fix up initialization of TREE_READONLY and
33249         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33250
33251 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
33252
33253         PR target/64533
33254         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33255         of r for the second alternative of the destination operand.
33256
33257 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
33258
33259         PR target/36557
33260         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33261
33262 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33263
33264         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33265         keywords.
33266         ([-fivar-visibility], [-fvisibility]): Likewise.
33267
33268 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33269
33270         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33271         the file where @code, @command, etc is more appropriate.
33272
33273 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
33274
33275         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33276         of -mrecip= documentation.
33277
33278 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
33279
33280         PR target/64505
33281         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33282         correct reload handler if -m32 -mpowerpc64 is used.
33283
33284 2015-01-06  Tom de Vries  <tom@codesourcery.com>
33285
33286         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33287
33288 2015-01-08  Christian Bruel  <christian.bruel@st.com>
33289
33290         PR target/64507
33291         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33292
33293 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33294
33295         PR tree-optimization/63259
33296         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33297         if optab exists for 16bit byteswap.
33298
33299 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
33300
33301         * opts.c (common_handle_option): Add support for
33302         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33303         * doc/invoke.texi: Document -fno-sanitize=all,
33304         -f{,no-}sanitize-recover=all.  Document that
33305         -fsanitize=float-cast-overflow is not enabled
33306         by -fsanitize=undefined.  Fix up documentation
33307         of -f{,no-}sanitize-recover.
33308
33309 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
33310
33311         * config.gcc: Add Visium support.
33312         * configure.ac: Likewise.
33313         * configure: Regenerate.
33314         * doc/extend.texi (interrupt attribute): Add Visium.
33315         * doc/invoke.texi: Document Visium options.
33316         * doc/install.texi: Document Visium target.
33317         * doc/md.texi: Document Visium constraints.
33318         * common/config/visium: New directory.
33319         * config/visium: Likewise.
33320
33321 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33322
33323         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33324         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33325
33326 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
33327
33328         * combine.c (combine_validate_cost): Do not count the cost of a
33329         split I2 twice.  Do not display it twice in the dump, either.
33330
33331 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33332
33333         Revert parts of r219199.
33334         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33335         <inttypes.h>.
33336         ([-Wtraditional]): Restore markup on <limits.h>.
33337
33338 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
33339
33340         PR c++/31397
33341         * doc/invoke.texi: Document -Wsuggest-override.
33342
33343 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
33344
33345         PR rtl-optimization/64287
33346         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33347         (process_options): Disable flag_ipa_ra if profiling.
33348
33349 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33350
33351         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33352
33353 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
33354
33355         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33356         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33357         put under #if TARGET_LOOPS guard.
33358
33359 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
33360
33361         * config/i386/i386.c (output_387_binary_op): Use std::swap.
33362
33363 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
33364
33365         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33366         * rtl.h (refers_to_regno_p): Add overload.
33367         * cse.c: Use it.
33368         * bt-load.c: Likewise.
33369         * combine.c: Likewise.
33370         * df-scan.c: Likewise.
33371         * sched-deps.c: Likewise.
33372         * config/s390/s390.c: Likewise.
33373         * config/m32r/m32r.c: Likewise.
33374         * config/rs6000/spe.md: Likewise.
33375         * config/rs6000/rs6000.c: Likewise.
33376         * config/pa/pa.c: Likewise.
33377         * config/stormy16/stormy16.c: Likewise.
33378         * config/cris/cris.c: Likewise.
33379         * config/arc/arc.md: Likewise.
33380         * config/arc/arc.c: Likewise.
33381         * config/sh/sh.md: Likewise.
33382         * config/sh/sh.c: Likewise.
33383         * config/frv/frv.c: Likewise.
33384
33385 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33386
33387         PR sanitizer/64265
33388         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33389         call as cleanup of the whole body.
33390         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33391         * tsan.c (replace_func_exit): New function.
33392         (instrument_func_exit): Moved earlier.
33393         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33394         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33395         been found.
33396         (tsan_pass): Don't call instrument_func_exit.
33397         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33398         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33399         inlining.
33400
33401         PR sanitizer/64344
33402         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33403         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33404         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
33405         if the result is integer_zerop, return NULL_TREE.
33406         * convert.c (convert_to_integer): Pass expr as ARG.
33407
33408         PR tree-optimization/64465
33409         * tree-inline.c (redirect_all_calls): During inlining
33410         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33411         changed the stmt to a non-throwing call.
33412
33413 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33414
33415         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33416         etc markup throughout the file.
33417
33418 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33419
33420         Enable experimental TSAN support for Ada.
33421         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33422
33423 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33424
33425         PR tree-optimization/64494
33426         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33427         clear SSA_NAME_ANTI_RANGE_P flag.
33428
33429 2015-01-05  Marek Polacek  <polacek@redhat.com>
33430
33431         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33432
33433 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
33434
33435         Update copyright years.
33436
33437         * gcc.c (process_command): Update copyright notice dates.
33438         * gcov-dump.c: Ditto.
33439         * gcov.c: Ditto.
33440         * doc/cpp.texi: Bump @copying's copyright year.
33441         * doc/cppinternals.texi: Ditto.
33442         * doc/gcc.texi: Ditto.
33443         * doc/gccint.texi: Ditto.
33444         * doc/gcov.texi: Ditto.
33445         * doc/install.texi: Ditto.
33446         * doc/invoke.texi: Ditto.
33447
33448         * auto-profile.c, auto-profile.h: Fix up Copyright line.
33449
33450 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
33451
33452         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33453         verb tense, etc.
33454         ([-fvtable-verify], [-fvtv-debug]): Likewise.
33455         ([-Wabi]): Likewise.
33456         ([-fmessage-length]): Likewise.
33457         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33458         ([-Wno-discarded-qualifiers]): Likewise.
33459         ([-Wnodiscarded-array-qualifiers]): Likewise.
33460         ([-Wno-virtual-move-assign]): Likewise.
33461         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33462         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33463         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33464         ([-fsanitize-undefined-trap-on-error]): Likewise.
33465         ([-floop-interchange]): Likewise.
33466         ([-ftree-coalesce-inlined-vars]): Likewise.
33467         ([-fvect-cost-model]): Likewise.
33468         ([-flto]): Likewise.
33469         ([--param]): Likewise.
33470         (Spec Files): Likewise.
33471         ([-mstrict-align]): Likewise.
33472         ([-mfix-cortex-a53-835769]): Likewise.
33473         ([-march], [-mtune]): Likewise.
33474         ([-mpic-register]): Likewise.
33475         ([-munaligned-access]): Likewise.
33476         ([-msp8]): Likewise.
33477         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33478         (AVR Built-in Macros): Likewise.
33479         ([-mpreferred-stack-boundary]): Likewise.
33480         ([-mtune-crtl]): Likewise.
33481         ([-mashf]): Likewise.
33482         ([-mmcu=]): Likewise.
33483         ([-minrt]): Likewise.
33484         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33485         ([-mupper-regs]): Likewise.
33486         ([-matomic-model]): Likewise.
33487         ([-mdiv]): Likewise.
33488         ([-mzdcbranch]): Likewise.
33489         ([-mdisable-callt]): Likewise.
33490         ([-msoft-float]): Likewise.
33491         ([-m8byte-align]): Likewise.
33492         ([-fstack-reuse]): Likewise.
33493
33494 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33495
33496         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33497         Fix markup, light copy-editing.
33498         ([-fauto-profile]): Rewrite to fix formatting and content
33499         problems.
33500
33501 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33502
33503         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33504         Copy-edit description.
33505         ([-fisolate-erroneous-paths-attribute]): Likewise.
33506         * common.opt (fisolate-erroneous-paths-dereference):
33507         Copy-edit description.
33508         (fisolate-erroneous-paths-attribute): Likewise.
33509
33510 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33511
33512         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33513         tidy grammar.
33514
33515 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
33516
33517         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33518         ([-fvtv-debug]): Likewise.
33519         ([-Wc++-compat]): Likewise.
33520         ([-Wc++11-compat]): Likewise.
33521         ([-Wc++14-compat]): Likewise.
33522         ([-Wno-sized-deallocation]): Likewise.
33523         ([-femit-class-debug-always]): Likewise.
33524         ([-femit-struct-debug-detailed]): Likewise.
33525         ([-fno-keep-inline-dllexport]): Likewise.
33526         ([-fira-algorithm]): Likewise.
33527         ([-fira-region]): Likewise.
33528         ([-flra-remat]): Likewise.
33529         ([-fipa-ra]): Likewise.
33530         ([-fhoist-adjacent-loads]): Likewise.
33531         ([-fisolate-erroneous-paths-dereference]): Likewise.
33532         ([-fisolate-erroneous-paths-attribute]): Likewise.
33533         ([-ftree-switch-conversion]): Likewise.
33534         ([-ftree-tail-merge]): Likewise.
33535         ([-ftree-loop-if-convert]): Likewise.
33536         ([-ftree-loop-if-convert-stores]): Likewise.
33537         ([-ftree-loop-distribution]): Likewise.
33538         ([-ftree-loop-distribute-patterns]): Likewise.
33539         ([-flto-compression-level]): Likewise.
33540         ([-flto-report]): Likewise.
33541         ([-flto-report-wpa]): Likewise.
33542         ([-fuse-linker-plugin]): Likewise.
33543         ([-mfix-cortex-a53-835769]): Likewise.
33544         ([-mno-fix-cortex-a53-835769]): Likewise.
33545         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33546         explicit listing; add a note to the discussion indicating they
33547         exist.  Reorder table to group similar options.  Add missing
33548         @opindex entries.  Add @need commands throughout the table to
33549         allow it to be split across multiple pages.
33550         ([-m8bit-idiv]): Fix @opindex.
33551         ([-mavx256-split-unaligned-load]): Likewise.
33552         ([-mavx256-split-unaligned-store]): Likewise.
33553         ([-mstack-protector-guard]): Likewise.
33554         ([-mcpu=]): Likewise.
33555         ([-mcpu]): Likewise.
33556         ([-mpointer-size=]): Likewise.
33557
33558 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
33559
33560         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33561         instead of `m' constraint.  Likewise for unnamed movb comparison
33562         patterns using reg_before_reload_operand predicate.
33563         * config/pa/predicates.md (reg_before_reload_operand): Tighten
33564         predicate to reject register index and LO_SUM DLT memory forms
33565         after reload.
33566
33567 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33568
33569         * doc/invoke.texi (Option Summary): Fix spelling of
33570         -fdevirtualize-at-ltrans.
33571         ([-fdevirtualize]): Fix markup.
33572         ([-fdevirtualize-speculatively]): Fix typo.
33573         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
33574         implementor-speaky.
33575         * common.opt (fdevirtualize-at-ltrans): Likewise.
33576         * ipa-devirt.c: Fix typos in comments throughout the file.
33577         (ipa_devirt): Fix typos in format strings for dump output.
33578
33579 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
33580
33581         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33582         discussion of defaults, light copy-editing.
33583
33584 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33585
33586         * tsan.c (instrument_expr): corrected previous checkin.
33587
33588 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33589
33590         Instrument bit field and unaligned accesses for TSAN.
33591         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33592         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33593         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33594         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33595         unaligned memory regions.
33596
33597 2015-01-01  Anthony Green  <green@moxielogic.com>
33598
33599         * config/moxie/predicates.md (moxie_general_movsrc_operand):
33600         Restrict move source register offsets to 16 bits.
33601 \f
33602 Copyright (C) 2015 Free Software Foundation, Inc.
33603
33604 Copying and distribution of this file, with or without modification,
33605 are permitted in any medium without royalty provided the copyright
33606 notice and this notice are preserved.