]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Move fold_trunc_transparent_mathfn to match.pd
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2
3 * builtins.c (integer_valued_real_p): Move to fold-const.c.
4 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5 (fold_builtin_ceil, fold_builtin_round): Delete.
6 (fold_builtin_1): Handle constant trunc, floor, ceil and round
7 arguments here.
8 * convert.c (convert_to_real): Remove narrowing of rounding
9 functions.
10 * fold-const.h (integer_valued_real_unary_p)
11 (integer_valued_real_binary_p, integer_valued_real_call_p)
12 (integer_valued_real_single_p, integer_valued_real_p): Declare.
13 * fold-const.c (tree_single_nonnegative_warnv_p): Move
14 name_registered_for_update_p check to SSA_NAME case statement.
15 Don't call tree_simple_nonnegative_warnv_p for SSA names.
16 (integer_valued_real_unary_p, integer_valued_real_binary_p)
17 (integer_valued_real_call_p, integer_valued_real_single_p)
18 (integer_valued_real_invalid_p): New functions.
19 (integer_valued_real_p): Move from fold-const.c and rework
20 to call the functions above. Handle SSA names.
21 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
22 * gimple-fold.c (gimple_assign_integer_valued_real_p)
23 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
24 (gimple_stmt_integer_valued_real_p): New functions.
25 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
26 Fold f(x)->x for the same f if x is known to be integer-valued.
27 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
28 the result. Canonicalize floor(x) as trunc(x) if x is
29 nonnegative.
30
31 2015-10-23 Tom de Vries <tom@codesourcery.com>
32
33 * tree-ssa-structalias.c (intra_create_variable_infos): Use
34 make_constraint_from.
35
36 2015-10-23 Tom de Vries <tom@codesourcery.com>
37
38 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
39 setting of is_full_var in case of a single field.
40
41 2015-10-22 Martin Sebor <msebor@redhat.com>
42
43 PR driver/68043
44 * config/i386/i386.opt: Add missing periods to the ends of sentences.
45 * config/msp430/msp430.opt: Same.
46
47 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
48
49 * doc/extend.exp (Global Register Variables): Rewrite.
50
51 2015-10-22 Jeff Law <law@redhat.com>
52
53 * genattrtab.c (main): If we do not have any annul-true or annul-false
54 slots, then write out a dummy eligible_for_annul_true or
55 eligible_for_annul_false as needed.
56
57 2015-10-22 Nick Clifton <nickc@redhat.com>
58
59 * config/msp430/msp430.opt: Add -msilicon-errata and
60 -msilicon-errata-warn.
61 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
62 assembler.
63 * doc/invoke.texi: Document new options.
64
65 2015-10-22 Richard Biener <rguenther@suse.de>
66
67 PR tree-optimization/58497
68 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
69 (expand_vector_operations_1): Use it. Lower operations on
70 all uniform vectors to scalar operations if the HW supports it.
71
72 2015-10-22 Richard Biener <rguenther@suse.de>
73
74 PR tree-optimization/19049
75 PR tree-optimization/65962
76 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
77 to strided accesses if single-element interleaving doesn't work.
78
79 2015-10-22 Richard Biener <rguenther@suse.de>
80
81 PR middle-end/68046
82 PR middle-end/61893
83 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
84 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
85 (expand_unop): Likewise.
86
87 2015-10-22 Richard Biener <rguenther@suse.de>
88
89 * fold-const.c (fold_addr_of_array_ref_difference): Properly
90 convert operands before folding a MINUS_EXPR.
91 (fold_binary_loc): Move simplification of MINUS_EXPR on
92 converted POINTER_PLUS_EXPRs ...
93 * match.pd: ... here.
94
95 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
96
97 * builtins.c (fold_builtin_tan): Delete.
98 (fold_builtin_1): Handle constant tan arguments here.
99 * match.pd: Simplify (tan (atan x)) to x.
100
101 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
102
103 * builtins.c (fold_builtin_cproj): Delete.
104 (fold_builtin_1): Handle constant arguments here.
105 (build_complex_cproj): Move and rename to...
106 * tree.c: (build_complex_inf): ...this.
107 * tree.h (build_complex_inf): Declare.
108 * match.pd: Fold cproj(x)->x if x has no infinity.
109 Use build_complex_inf for existing cproj rules.
110
111 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
112
113 PR target/68015
114 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
115 already have a comparison result.
116
117 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
118
119 PR target/63304
120 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
121 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
122 (aarch64_classify_address): Likewise.
123 (aarch64_secondary_reload): Likewise.
124 (aarch64_override_options_after_change_1): Adjust.
125 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
126 Use aarch64_nopcrelative_literal_loads.
127 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
128 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
129 Declare.
130
131 2015-10-21 Martin Sebor <msebor@redhat.com>
132
133 PR driver/68043
134 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
135 (print_filtered_help): Reference aliased option's name and encourage
136 readers to use it in preference to the alias if the former is not
137 documented. Mention when using an option is diagnosed.
138 * gcc.c (display_help): End each sentence with a period.
139
140 * common.opt: End each sentence that describes an option with
141 a period.
142 * config/aarch64/aarch64.opt: Same.
143 * config/alpha/alpha.opt: Same.
144 * config/arc/arc.opt: Same.
145 * config/arm/arm.opt: Same.
146 * config/avr/avr.opt: Same.
147 * config/bfin/bfin.opt: Same.
148 * config/c6x/c6x.opt: Same.
149 * config/cr16/cr16.opt: Same.
150 * config/cris/cris.opt: Same.
151 * config/cris/linux.opt: Same.
152 * config/darwin.opt: Same.
153 * config/epiphany/epiphany.opt: Same.
154 * config/fr30/fr30.opt: Same.
155 * config/frv/frv.opt: Same.
156 * config/ft32/ft32.opt: Same.
157 * config/g.opt: Same.
158 * config/h8300/h8300.opt: Same.
159 * config/i386/cygming.opt: Same.
160 * config/i386/djgpp.opt: Same.
161 * config/i386/i386.opt: Same.
162 * config/i386/interix.opt: Same.
163 * config/i386/mingw-w64.opt: Same.
164 * config/i386/mingw.opt: Same.
165 * config/ia64/ia64.opt: Same.
166 * config/ia64/ilp32.opt: Same.
167 * config/iq2000/iq2000.opt: Same.
168 * config/linux.opt: Same.
169 * config/lm32/lm32.opt: Same.
170 * config/lynx.opt: Same.
171 * config/m32c/m32c.opt: Same.
172 * config/m32r/m32r.opt: Same.
173 * config/m68k/ieee.opt: Same.
174 * config/m68k/m68k.opt: Same.
175 * config/mcore/mcore.opt: Same.
176 * config/mep/mep.opt: Same.
177 * config/microblaze/microblaze.opt: Same.
178 * config/mips/mips.opt: Same.
179 * config/mmix/mmix.opt: Same.
180 * config/mn10300/mn10300.opt: Same.
181 * config/moxie/moxie.opt: Same.
182 * config/msp430/msp430.opt: Same.
183 * config/nios2/elf.opt: Same.
184 * config/nios2/nios2.opt: Same.
185 * config/nvptx/nvptx.opt: Same.
186 * config/pa/pa-hpux.opt: Same.
187 * config/pa/pa-hpux1010.opt: Same.
188 * config/pa/pa-hpux1111.opt: Same.
189 * config/pa/pa-hpux1131.opt: Same.
190 * config/pa/pa.opt: Same.
191 * config/pa/pa64-hpux.opt: Same.
192 * config/pdp11/pdp11.opt: Same.
193 * config/rl78/rl78.opt: Same.
194 * config/rs6000/476.opt: Same.
195 * config/rs6000/aix64.opt: Same.
196 * config/rs6000/darwin.opt: Same.
197 * config/rs6000/linux64.opt: Same.
198 * config/rs6000/rs6000.opt: Same.
199 * config/rs6000/sysv4.opt: Same.
200 * config/s390/s390.opt: Same.
201 * config/s390/tpf.opt: Same.
202 * config/sh/sh.opt: Same.
203 * config/sol2.opt: Same.
204 * config/sparc/long-double-switch.opt: Same.
205 * config/sparc/sparc.opt: Same.
206 * config/spu/spu.opt: Same.
207 * config/stormy16/stormy16.opt: Same.
208 * config/tilegx/tilegx.opt: Same.
209 * config/tilepro/tilepro.opt: Same.
210 * config/v850/v850.opt: Same.
211 * config/vax/vax.opt: Same.
212 * config/visium/visium.opt: Same.
213 * config/vms/vms.opt: Same.
214 * config/vxworks.opt: Same.
215 * config/xtensa/xtensa.opt: Same.
216
217 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
218 Sebastian Pop <s.pop@samsung.com>
219
220 * graphite-scop-detection.c (parameter_index_in_region): Update call to
221 invariant_in_sese_p_rec.
222 * graphite-sese-to-poly.c (extract_affine): Same.
223 * sese.c (invariant_in_sese_p_rec): Pass in an extra
224 parameter has_vdefs.
225 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
226 variable depends on virtual definitions in the current region.
227 * sese.h (invariant_in_sese_p_rec): Update declaration.
228
229 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
230 Sebastian Pop <s.pop@samsung.com>
231
232 * graphite-scop-detection.c (build_scops): Do not handle scops
233 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
234 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
235
236 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
237
238 * config.in: Regenerate.
239 * configure: Regenerate.
240 * configure.ac (CHECKING_P): Define.
241 * system.h: Use CHECKING_P.
242
243 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
244
245 PR ipa/67056
246 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
247 is negative we don't know the type.
248 (check_stmt_for_type_change): Skip constructors of non-polymorphic
249 types as those won't help devirutalization.
250
251 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
252
253 * fold-const.c (operand_equal_p): Add code matching empty constructors.
254
255 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
256
257 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
258 comments.
259 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
260 Add comments on sign of the result.
261 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
262 Recurse on operand #1 instead of operand #0.
263 <CEIL_MOD_EXPR>: Do not recurse.
264 <ROUND_MOD_EXPR>: Likewise.
265
266 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
267
268 * cfgrtl.c (pass_free_cfg::execute): Adjust.
269 * final.c (dbr_sequence_length): Always define.
270 (shorten_branches): Adjust.
271 * genattr-common.c (main): Always define DELAY_SLOTS.
272 * genattr.c (main): Unconditionally declare functions and define
273 macros related to delay slots.
274 * genattrtab.c (write_eligible_delay): Adjust.
275 (main): Always write out delay slot functions.
276 * opts.c (default_options_table): Adjust.
277 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
278 (redirect_with_delay_list_safe_p): Likewise.
279 (fill_simple_delay_slots): Likewise.
280 (fill_slots_from_thread): Likewise.
281 (make_return_insns): Likewise.
282 (dbr_schedule): Likewise.
283 (rest_of_handle_delay_slots): Likewise.
284 (pass_delay_slots::gate): Likewise.
285 * toplev.c (process_options): Likewise.
286
287 2015-10-21 Richard Henderson <rth@redhat.com>
288
289 * targhooks.c (default_addr_space_pointer_mode): Remove check
290 for generic address space.
291 (default_addr_space_address_mode): Likewise.
292 (default_addr_space_valid_pointer_mode): Likewise.
293 (default_addr_space_legitimate_address_p): Likewise.
294 (default_addr_space_legitimize_address): Likewise.
295 * target.def (addr_space.pointer_mode): Update documentation
296 of default behavior.
297 (addr_space.address_mode): Likewise.
298 * tm.texi: Update.
299
300 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
301 address spaces.
302
303 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
304
305 * builtins.c (fold_builtin_cabs): Delete.
306 (fold_builtin_1): Update accordingly. Handle constant arguments here.
307 * match.pd: Add rules previously handled by fold_builtin_cabs.
308
309 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
310
311 * fold-const.h (fold_strip_sign_ops): Delete.
312 * fold-const.c (fold_strip_sign_ops): Likewise.
313 (fold_unary_loc, fold_binary_loc): Remove calls to it.
314 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
315 (fold_builtin_ccos): Delete.
316 (fold_builtin_pow): Don't call fold_strip_sign_ops.
317 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
318 Remove fndecl argument.
319 (fold_builtin_1): Update calls accordingly. Handle constant
320 cos, cosh, ccos and ccosh here.
321
322 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
323
324 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
325 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
326 * common.opt (fssa-backprop): New option.
327 * fold-const.h (negate_mathfn_p): Declare.
328 * fold-const.c (negate_mathfn_p): Make public.
329 * timevar.def (TV_TREE_BACKPROP): New.
330 * tree-pass.h (make_pass_backprop): Declare.
331 * passes.def (pass_backprop): Add.
332 * gimple-ssa-backprop.c: New file.
333
334 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
335 Sebastian Pop <s.pop@samsung.com>
336
337 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
338 Do not call create_empty_if_region_on_edge when cond_expr is true.
339 (translate_isl_ast_node_for): Check whether a guard has been generated.
340
341 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
342
343 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
344 (operator=): Removed.
345 (dr_info): Make alias_set number the last argument with default
346 value of invalid_alias_set.
347 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
348 of dr_info.
349 (rewrite_reductions_out_of_ssa): Iterate only through the
350 basic blocks which are inside region.
351 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
352 * sese.h (struct sese_l): Removed assignment operator.
353 (split_region_for_bb): Removed dead code.
354
355 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
356
357 * graphite-poly.h (struct dr_info): Removed conversion constructor.
358 (struct scop): Renamed scop::region to scop::scop_info
359 (scop_set_region): Same.
360 (SCOP_REGION): Removed
361 (SCOP_CONTEXT): Removed.
362 (POLY_SCOP_P): Removed.
363 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
364 Rename scop->region to scop->scop_info.
365 (add_parameters_to_ivs_params): Same.
366 (graphite_regenerate_ast_isl): Same.
367 * graphite-poly.c (new_scop): Same.
368 (free_scop): Same.
369 (print_scop_params): Same.
370 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
371 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
372 (dot_all_scops_1): Rename scop->region to scop->scop_info.
373 (scop_detection::nb_pbbs_in_loops): Same.
374 (find_scop_parameters): Same.
375 (try_generate_gimple_bb): Same.
376 (gather_bbs::before_dom_children): Same.
377 (gather_bbs::after_dom_children): Same.
378 (build_scops): Same.
379 * graphite-sese-to-poly.c (build_scop_scattering): Same.
380 (extract_affine_chrec): Same.
381 (extract_affine): Same.
382 (set_scop_parameter_dim): Same.
383 (build_loop_iteration_domains): Same.
384 (create_pw_aff_from_tree): Same.
385 (add_param_constraints): Same.
386 (build_scop_iteration_domain): Same.
387 (build_scop_drs): Same.
388 (analyze_drs_in_stmts): Same.
389 (insert_out_of_ssa_copy_on_edge): Same.
390 (rewrite_close_phi_out_of_ssa):Same.
391 (rewrite_reductions_out_of_ssa):Same.
392 (handle_scalar_deps_crossing_scop_limits):Same.
393 (rewrite_cross_bb_scalar_deps):Same.
394 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
395 (build_poly_scop):Same.
396 (build_alias_set): Use pointer to dr_info.
397 * graphite.c (print_graphite_scop_statistics):
398 (graphite_transform_loops):
399 * sese.h (struct sese_l): Remove conversion constructor.
400
401 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
402
403 PR middle-end/67966
404 * tree.c (verify_type): Verify that TYPE_MODE match
405 between TYPE_CANONICAL and type.
406 * expr.c (store_expr_with_bounds): Revert my previous change.
407 * expmed.c (store_bit_field_1): Revert prevoius change.
408 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
409 to match for all types.
410
411 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
412
413 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
414 nesting.
415
416 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
417
418 * doc/tm.texi: Regenerated.
419 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
420 * stor-layout.c (layout_type): Use mode to get vector mask size.
421 * target.def (get_mask_mode): New.
422 * targhooks.c (default_get_mask_mode): New.
423 * targhooks.h (default_get_mask_mode): New.
424 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
425 for boolean vector.
426 * tree.c (MAX_BOOL_CACHED_PREC): New.
427 (nonstandard_boolean_type_cache): New.
428 (build_nonstandard_boolean_type): New.
429 (make_vector_type): Vector mask has no canonical type.
430 (build_truth_vector_type): New.
431 (build_same_sized_truth_vector_type): New.
432 (truth_type_for): Support vector masks.
433 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
434 (build_truth_vector_type): New.
435 (build_same_sized_truth_vector_type): New.
436 (build_nonstandard_boolean_type): New.
437 * tree-cfg.c (verify_gimple_comparison) Require boolean
438 vector type for vector comparison.
439 (verify_gimple_assign_ternary): Likewise.
440 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
441 condition operand.
442 * tree-vect-stmts.c (vectorizable_condition): Use boolean
443 vector type for vector comparison.
444 * tree-vect-generic.c (elem_op_func): Add new operand to hold
445 vector type.
446 (do_unop): Adjust to modified function type.
447 (do_binop): Likewise.
448 (do_plus_minus): Likewise.
449 (do_negate); Likewise.
450 (expand_vector_piecewise): Likewise.
451 (do_cond): Likewise.
452 (do_compare): Use comparison instead of condition.
453 (expand_vector_divmod): Use boolean vector type for comparison.
454 (expand_vector_operations_1): Skip scalar mask operations.
455
456 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
457
458 * omp-low.c (simd_clone_create): Set in_other_partition
459 for created clones.
460
461 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
462
463 * doc/extend.exp (Local Register Variables): Rewrite.
464
465 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
466
467 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
468 and x*x in cases where the operands are sign ops. Extend these
469 rules to handle copysign as a sign op (including for cos, cosh
470 and pow, which already treated negate and abs as sign ops).
471
472 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
473
474 PR target/68018
475 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
476 for 64-bit MS_ABI targets also when default incoming stack boundary
477 is overriden.
478
479 2015-10-21 Richard Biener <rguenther@suse.de>
480
481 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
482 cond stmts, enhanced and split out from ...
483 (vn_phi_eq): ... here.
484
485 2015-10-21 Richard Biener <rguenther@suse.de>
486
487 PR middle-end/68031
488 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
489 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
490 (tree_single_nonnegative_warnv_p): ... here. For SSA names
491 make sure they are not registered for update.
492
493 2015-10-21 Richard Biener <rguenther@suse.de>
494
495 PR tree-optimization/68026
496 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
497 unsigned VARYING values.
498
499 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
500
501 * asan.c (asan_emit_stack_protection): Don't pass local stack to
502 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
503 NULL and use local stack than.
504 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
505 in addition to __asan_init.
506 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
507 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
508 * asan.h (asan_intercepted_p): Handle new string builtins.
509 * ubsan.c (ubsan_use_new_style_p): New function.
510 (ubsan_instrument_float_cast): If location is unknown, assign
511 input_location to loc. Propagate loc to ubsan_create_data if
512 ubsan_use_new_style_p returned true.
513
514 2015-10-21 Jeff Law <law@redhat.com>
515
516 * Makefile.in (OBJS): Remove sched-vis.c
517 * sched-vis.c: Removed. Code moved into...
518 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
519 * rtl.h: Remove prototypes for functions now living in print-rtl.c
520 * print-rtl.h Add prototypes for new functions in print-rtl.c.
521 * auto-inc-dec.c: Include print-rtl.h
522 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
523 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
524
525 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
526 ATTRIBUTE_UNUSED.
527
528 2015-10-21 Richard Biener <rguenther@suse.de>
529 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
530
531 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
532 to match.pd.
533 Move (a * (1 << b)) is (a << b) to match.pd.
534 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
535 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
536 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
537
538 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
539 New simplifier.
540 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
541 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
542 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
543 : New simplifier.
544 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
545 New simplifier.
546 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
547
548 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
549 Szabolcs Nagy <szabolcs.nagy@arm.com>
550 Alan Modra <amodra@gmail.com>
551
552 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
553 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
554 (LINK_SPEC): Add %(link_secure_plt).
555 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
556 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
557
558 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
559 Szabolcs Nagy <szabolcs.nagy@arm.com>
560
561 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
562 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
563
564 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
565
566 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
567 New function.
568 (fusion_load_store): Use it.
569 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
570 ldp and stp in VD modes.
571 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
572 (store_pair<mode>, VD): Likewise.
573
574 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
575
576 PR rtl-optimization/67609
577 * lra-splill.c (lra_final_code_change): Don't remove all
578 sub-registers.
579
580 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
581
582 * simplify-rtx.c (simplify_binary_operation): If either operand was
583 a constant pool reference use them if all other simplifications failed.
584
585 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
586
587 * config/aarch64/aarch64.md
588 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
589 * config/aarch64/aarch64-simd.md
590 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
591 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
592 (aarch64_fpconst_pow_of_2): New function.
593 (aarch64_vec_fpconst_pow_of_2): Likewise.
594 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
595 prototype.
596 (aarch64_vec_fpconst_pow_of_2): Likewise.
597 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
598 (aarch64_fp_vec_pow2): Likewise.
599
600 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
601
602 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
603 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
604 * config/alpha/alpha.c (alpha_function_arg_advance): Update
605 ALPHA_ARG_SIZE usage.
606 (alpha_arg_partial_bytes): Ditto.
607
608 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR target/66810
611 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
612 error_mark_node decls.
613
614 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR target/67963
617 PR target/67985
618 * common/config/i386/i386-common.c (ix86_handle_option): Remove
619 OPT_miamcu handling.
620 * config/i386/i386.c (PTA_NO_80387): New macro.
621 (processor_alias_table): Add PTA_NO_80387 to lakemont.
622 (ix86_option_override_internal): Update MASK_80387 from
623 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
624 SSE math only if 80387 is supported. Don't change
625 MASK_FLOAT_RETURNS.
626 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
627 80387 is supported.
628 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
629 if TARGET_80387 is true and TARGET_IAMCU is false.
630 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
631 is true and TARGET_IAMCU_P is false.
632
633 2015-10-20 Richard Biener <rguenther@suse.de>
634
635 PR tree-optimization/68017
636 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
637
638 2015-10-20 Martin Liska <mliska@suse.cz>
639
640 * cgraphclones.c (cgraph_node::create_virtual_clone):
641 Verify cgraph_node.local.versionable instead of calling
642 tree_versionable_function_p.
643 * ipa-cp.c (determine_versionability): Save the information
644 to ipa_node_params summary.
645 (ipcp_versionable_function_p): Use it.
646 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
647 (ipcp_generate_summary): Do not compute cgraph_node
648 versionability.
649 * ipa-inline-analysis.c (inline_generate_summary): Compute
650 versionability for all cgraph nodes.
651 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
652 ipa_node_params::versionability.
653 * ipa-prop.h (struct ipa_node_params): Declare it.
654
655 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
656
657 PR other/67868
658 * varasm.c (assemble_variable): Move special vtv handling to..
659 (handle_vtv_comdat_sections): .. here. New function.
660 (output_object_block): Handle vtv sections.
661
662 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
663
664 PR target/66912
665 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
666
667 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
668
669 * doc/extend.texi: Update documentation WRT inline functions.
670
671 2015-10-20 Alan Modra <amodra@gmail.com>
672
673 PR go/66870
674 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
675 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
676 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
677
678 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
679
680 PR rtl-optimization/66790
681 * df.h (DF_MIR): New macro.
682 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
683 (DF_MIR_INFO_BB): New macro.
684 (DF_MIR_IN, DF_MIR_OUT): New macros.
685 (struct df_mir_bb_info): New.
686 (df_mir): New macro.
687 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
688 declarations.
689 (df_mir_get_bb_info): New.
690 * df-problems.c (struct df_mir_problem_data): New.
691 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
692 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
693 df_mir_confluence_0, df_mir_confluence_n,
694 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
695 df_mir_bottom_dump, df_mir_verify_solution_start,
696 df_mir_verify_solution_end): New.
697 (problem_MIR): New.
698 (df_mir_add_problem, df_mir_simulate_one_insn): New.
699 * timevar.def (TV_DF_MIR): New.
700 * ree.c: Include bitmap.h
701 (add_removable_extension): Add an INIT_REGS parameter. Use it
702 to skip zero-extensions that may get an uninitialized register.
703 (find_removable_extensions): Compute must-initialized registers
704 using the MIR dataflow problem. Update the call to
705 add_removable_extension.
706 (find_and_remove_re): Call df_mir_add_problem.
707
708 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
709
710 * common/config/mn10300/mn10300-common.c
711 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
712 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
713
714 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
715
716 * doc/extend.texi (Explicit Register Variables): Simplify and
717 avoid unnecessary and confusion abbreviations. Update cross
718 references.
719 doc/implement-c.tex: Update cross reference.
720
721 2015-10-19 Jeff Law <law@redhat.com>
722
723 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
724 that create irreducible loops unless the path elimiantes a multiway
725 branch.
726
727 2015-10-19 Richard Biener <rguenther@suse.de>
728
729 PR tree-optimization/67975
730 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
731 * tree-cfg.c (extract_true_false_controlled_edges): Split out
732 core worker from ...
733 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
734 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
735 instead of block number for PHIs with two or one args.
736 (vn_phi_eq): Compare edge predicates of PHIs that are in different
737 blocks.
738
739 2015-10-19 Richard Biener <rguenther@suse.de>
740
741 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
742 (gimple_stmt_nonnegative_warnv_p): Use it.
743 * match.pd (CPROJ): New operator list.
744 (cproj (complex ...)): Move simplifications from ...
745 * builtins.c (fold_builtin_cproj): ... here.
746
747 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
748
749 * config/i386/i386.c (ix86_expand_vector_move): Use
750 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
751 alignment.
752
753 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
754
755 * doc/invoke.texi: Replace @optindex with @opindex.
756
757 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
758
759 PR target/67995
760 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
761 arch= is set, clear all bits in x_ix86_isa_flags, except for
762 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
763
764 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
765
766 PR middle-end/68002
767 * common.opt (fkeep-static-functions): New option.
768 * doc/invoke.texi: Document it.
769 * cgraphunit.c (cgraph_node::finalize_function): Use it.
770
771 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
772
773 * sched-int.h (struct autopref_multipass_data_): Remove offset
774 field. Add min_offset, max_offset, multi_mem_insn_p fields.
775 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
776 (autopref_multipass_init): Use it. Handle PARALLEL sets.
777 (autopref_rank_data): New function.
778 (autopref_rank_for_schedule): Use it.
779 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
780
781 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
782
783 PR other/65800
784 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
785
786 2015-10-18 Iain Sandoe <iain@codesourcery.com>
787
788 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
789 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
790 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
791 (STANDARD_STARTFILE_PREFIX_1): New.
792 (STANDARD_STARTFILE_PREFIX_2): New.
793
794 2015-10-18 Iain Sandoe <iain@codesourcery.com>
795
796 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
797 (darwin_driver_init): Note a version-min when provided on the c/l.
798 * config/darwin.h (%darwin_minversion): Remove.
799 * config/i386/darwin.h: Likewise.
800 * config/rs6000/darwin.h: Likewise.
801 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
802 rather than an arbitrary constant.
803
804 2015-10-18 Iain Sandoe <iain@codesourcery.com>
805
806 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
807 PPC, detect conflicts between -arch and multilib settings. Detect
808 and warn about conflicts between multiple -arch definitions.
809
810 2015-10-18 Iain Sandoe <iain@codesourcery.com>
811
812 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
813
814 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
815
816 * lra-constraints.c (add_next_usage_insn): Change argument type
817 from rtx to rtx_insn *.
818
819 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
820
821 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
822 for Lakemont.
823
824 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
825
826 * config/tilepro/gen-mul-tables.cc: Adjust include files.
827 * config/tilegx/mul-tables.c: Regenerate.
828 * config/tilepro/mul-tables.c: Regenerate.
829
830 * config/tilegx/tilegx-c.c: Adjust include files.
831 * config/tilegx/tilegx.c: Likewise.
832 * config/tilepro/tilepro-c.c: Likewise.
833 * config/tilepro/tilepro.c: Likewise.
834 * config/aarch64/aarch64-builtins.c: Likewise.
835 * config/aarch64/aarch64.c: Likewise.
836 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
837 * config/alpha/alpha.c: Likewise.
838 * config/arc/arc.c: Likewise.
839 * config/arm/aarch-common.c: Likewise.
840 * config/arm/arm-builtins.c: Likewise.
841 * config/arm/arm-c.c: Likewise.
842 * config/arm/arm.c: Likewise.
843 * config/avr/avr-c.c: Likewise.
844 * config/avr/avr-devices.c: Likewise.
845 * config/avr/avr-log.c: Likewise.
846 * config/avr/avr.c: Likewise.
847 * config/bfin/bfin.c: Likewise.
848 * config/c6x/c6x.c: Likewise.
849 * config/cr16/cr16.c: Likewise.
850 * config/cris/cris.c: Likewise.
851 * config/darwin-c.c: Likewise.
852 * config/darwin-driver.c: Likewise.
853 * config/darwin.c: Likewise.
854 * config/default-c.c: Likewise.
855 * config/epiphany/epiphany.c: Likewise.
856 * config/epiphany/mode-switch-use.c: Likewise.
857 * config/epiphany/resolve-sw-modes.c: Likewise.
858 * config/fr30/fr30.c: Likewise.
859 * config/frv/frv.c: Likewise.
860 * config/ft32/ft32.c: Likewise.
861 * config/glibc-c.c: Likewise.
862 * config/h8300/h8300.c: Likewise.
863 * config/i386/host-cygwin.c: Likewise.
864 * config/i386/host-mingw32.c: Likewise.
865 * config/i386/i386-c.c: Likewise.
866 * config/i386/i386.c: Likewise.
867 * config/i386/msformat-c.c: Likewise.
868 * config/i386/winnt-cxx.c: Likewise.
869 * config/i386/winnt-stubs.c: Likewise.
870 * config/i386/winnt.c: Likewise.
871 * config/ia64/ia64-c.c: Likewise.
872 * config/ia64/ia64.c: Likewise.
873 * config/iq2000/iq2000.c: Likewise.
874 * config/lm32/lm32.c: Likewise.
875 * config/m32c/m32c-pragma.c: Likewise.
876 * config/m32c/m32c.c: Likewise.
877 * config/m32r/m32r.c: Likewise.
878 * config/mcore/mcore.c: Likewise.
879 * config/mep/mep-pragma.c: Likewise.
880 * config/mep/mep.c: Likewise.
881 * config/microblaze/microblaze-c.c: Likewise.
882 * config/microblaze/microblaze.c: Likewise.
883 * config/mips/mips-tables.opt
884 * config/mips/mips.c: Likewise.
885 * config/mmix/mmix.c: Likewise.
886 * config/mn10300/mn10300.c: Likewise.
887 * config/moxie/moxie.c: Likewise.
888 * config/msp430/msp430-c.c: Likewise.
889 * config/msp430/msp430.c: Likewise.
890 * config/nds32/nds32-cost.c: Likewise.
891 * config/nds32/nds32-fp-as-gp.c: Likewise.
892 * config/nds32/nds32-intrinsic.c: Likewise.
893 * config/nds32/nds32-isr.c: Likewise.
894 * config/nds32/nds32-md-auxiliary.c: Likewise.
895 * config/nds32/nds32-memory-manipulation.c: Likewise.
896 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
897 * config/nds32/nds32-predicates.c: Likewise.
898 * config/nds32/nds32.c: Likewise.
899 * config/nios2/nios2.c: Likewise.
900 * config/nvptx/mkoffload.c: Likewise.
901 * config/nvptx/nvptx.c: Likewise.
902 * config/pa/pa.c: Likewise.
903 * config/pdp11/pdp11.c: Likewise.
904 * config/rl78/rl78-c.c: Likewise.
905 * config/rl78/rl78.c: Likewise.
906 * config/rs6000/host-darwin.c: Likewise.
907 * config/rs6000/rs6000-c.c: Likewise.
908 * config/rs6000/rs6000-linux.c: Likewise.
909 * config/rs6000/rs6000.c: Likewise.
910 * config/rx/rx.c: Likewise.
911 * config/s390/s390-c.c: Likewise.
912 * config/s390/s390.c: Likewise.
913 * config/sh/sh-c.c: Likewise.
914 * config/sh/sh-mem.cc: Likewise.
915 * config/sh/sh.c: Likewise.
916 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
917 * config/sh/sh_treg_combine.cc: Likewise.
918 * config/sol2-c.c: Likewise.
919 * config/sol2-cxx.c: Likewise.
920 * config/sol2-stubs.c: Likewise.
921 * config/sol2.c: Likewise.
922 * config/sparc/sparc-c.c: Likewise.
923 * config/sparc/sparc.c: Likewise.
924 * config/spu/spu-c.c: Likewise.
925 * config/spu/spu.c: Likewise.
926 * config/stormy16/stormy16.c: Likewise.
927 * config/v850/v850-c.c: Likewise.
928 * config/v850/v850.c: Likewise.
929 * config/vax/vax.c: Likewise.
930 * config/visium/visium.c: Likewise.
931 * config/vms/vms-c.c: Likewise.
932 * config/vms/vms.c: Likewise.
933 * config/vxworks.c: Likewise.
934 * config/winnt-c.c: Likewise.
935 * config/xtensa/xtensa.c: Likewise.
936
937 2015-10-16 Christian Bruel <christian.bruel@st.com>
938
939 PR target/67745
940 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
941 (FUNCTION_BOUNDARY_P): New macro:
942 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
943 New hook.
944 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
945 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
946 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
947 * gcc/function.c (allocate_struct_function): Call
948 relayout_function hook.
949 * gcc/passes.c (rest_of_decl_compilation): Likewise.
950
951 2015-10-16 Christian Bruel <christian.bruel@st.com>
952
953 PR target/67745
954 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
955 * config/arm/arm.c (arm_option_override_internal): Call
956 arm_override_options_after_change_1.
957 (arm_override_options_after_change): New function.
958 (arm_override_options_after_change_1): Likewise.
959 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
960
961 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
962
963 Revert:
964 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
965 empty constructors.
966
967 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
968
969 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
970 argument is an ADDR_EXPR.
971
972 2015-10-16 Richard Biener <rguenther@suse.de>
973
974 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
975 and get rid of force_gimple_operand_gsi.
976 (gimple_fold_builtin_memory_chk): Likewise.
977 (gimple_fold_builtin_stxcpy_chk): Likewise.
978 (rewrite_to_defined_overflow): Likewise.
979 (gimple_convert_to_ptrofftype): New function.
980 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
981
982 2015-10-16 Richard Biener <rguenther@suse.de>
983
984 * tree-nested.h (build_addr): Adjust prototype.
985 * tree-nested.c (build_addr): Remove context argument and use
986 mark_addressable.
987 (get_static_chain): Adjust calls to build_addr.
988 (convert_nl_goto_reference): Likewise.
989 (convert_tramp_reference_op): Likewise.
990 (finalize_nesting_tree_1): Likewise.
991 * value-prof.c (gimple_ic): Likewise.
992 * gimple-low.c (lower_builtin_setjmp): Likewise.
993 * tree-parloops.c (take_address_of): Likewise.
994 (create_call_for_reduction_1): Likewise.
995 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
996 (gimple_gen_ic_func_profiler): Likewise.
997
998 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
999
1000 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1001 empty constructors.
1002
1003 2015-10-16 Michael Collison <michael.collison@linaro.org>
1004 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1005
1006 * match.pd ((x < y) && (x < z) -> x < min (y,z),
1007 (x > y) and (x > z) -> x > max (y,z))
1008
1009 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1010 Szabolcs Nagy <szabolcs.nagy@arm.com>
1011
1012 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1013 (DYNAMIC_LINKER): Renamed to ...
1014 (GLIBC_DYNAMIC_LINKER): This.
1015 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1016
1017 2015-10-15 Marek Polacek <polacek@redhat.com>
1018
1019 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1020 gimple_call_builtin instead of is_gimple_call.
1021
1022 2015-10-15 Richard Biener <rguenther@suse.de>
1023
1024 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1025
1026 2015-10-15 Richard Biener <rguenther@suse.de>
1027
1028 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1029 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1030 * tree-vect-loop.c (get_initial_def_for_induction): Drop
1031 use of force_gimple_operand in favor of gimple_build.
1032 Use vect_get_new_ssa_name.
1033 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1034 (vectorizable_mask_load_store): Likewise.
1035 (vectorizable_call): Likewise.
1036 (vectorizable_store): Likewise.
1037 (vectorizable_load): Likewise.
1038 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1039
1040 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
1041
1042 PR tree-optimization/67945
1043 * tree-pass.h (PROP_gimple_opt_math): New property flag.
1044 * generic-match-head.c (canonicalize_math_p): New function.
1045 * gimple-match-head.c: Include tree-pass.h.
1046 (canonicalize_math_p): New function.
1047 * match.pd: Group math built-in rules into simplifications
1048 and canonicalizations. Guard the latter with canonicalize_math_p.
1049 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1050 PROP_gimple_opt_math property.
1051
1052 2015-10-15 Marek Polacek <polacek@redhat.com>
1053
1054 PR tree-optimization/67953
1055 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1056
1057 2015-10-15 Jiong Wang <jiong.wang@arm.com>
1058
1059 * config.gcc: Recognize "." in architecture base name for AArch64.
1060
1061 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1062
1063 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1064 ROUND_UP macro.
1065 * config/mips/mips.c (mips_setup_incoming_varargs): Use
1066 ROUND_DOWN to calculate off.
1067 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1068 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1069 rounded_size.
1070
1071 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
1072
1073 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1074
1075 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
1076 Torvald Riegel <triegel@redhat.com>
1077
1078 PR target/67281
1079 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1080 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1081 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1082 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1083 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
1084 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1085 trechkpt, treclaim, tsr, ttest): New define_expands.
1086 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1087 __TM_FENCE__ for htm.
1088 * doc/extend.texi: Update documentation for htm builtins.
1089
1090 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1091
1092 PR target/67967
1093 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1094 REG_CFA_EXPRESSION to aligned SSE stores.
1095
1096 2015-10-14 Jeff Law <law@redhat.com>
1097
1098 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1099 num_threaded_edges for successful FSM threads too.
1100
1101 2015-10-14 Richard Biener <rguenther@suse.de>
1102
1103 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1104 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
1105 (vect_get_vec_def_for_operand): Remove unused parameter.
1106 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1107 (vect_create_epilog_for_reduction): Likewise.
1108 (vectorizable_reduction): Likewise.
1109 (vectorizable_live_operation): Likewise.
1110 * tree-vect-patterns.c (type_conversion_p): Likewise.
1111 (vect_recog_vector_vector_shift_pattern): Likewise.
1112 (check_bool_pattern): Likewise.
1113 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1114 (vect_analyze_slp_cost_1): Likewise.
1115 * tree-vect-stmts.c (process_use): Likewise.
1116 (vect_get_vec_def_for_operand): Do not handle reductions.
1117 (vect_get_vec_defs): Adjust.
1118 (vectorizable_mask_load_store): Likewise.
1119 (vectorizable_call): Likewise.
1120 (vectorizable_simd_clone_call): Likewise.
1121 (vect_get_loop_based_defs): Likewise.
1122 (vectorizable_conversion): Likewise.
1123 (vectorizable_assignment): Likewise.
1124 (vectorizable_shift): Likewise.
1125 (vectorizable_operation): Likewise.
1126 (vectorizable_store): Likewise.
1127 (vectorizable_load): Likewise.
1128 (vect_is_simple_cond): Likewise.
1129 (vectorizable_condition): Likewise.
1130 (vect_is_simple_use): Remove unused parameters.
1131 (vect_is_simple_use_1): Adjust and rename.
1132
1133 2015-10-14 Richard Biener <rguenther@suse.de>
1134
1135 PR tree-optimization/67915
1136 * match.pd: Handle comparisons of addresses of STRING_CSTs.
1137 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1138 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1139 stmt folding in favor of GIMPLE one.
1140
1141 2015-10-14 Marek Polacek <polacek@redhat.com>
1142
1143 PR tree-optimization/67815
1144 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1145 (reassociate_bb): Call it.
1146
1147 2015-10-14 Richard Biener <rguenther@suse.de>
1148
1149 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1150 Reset info at start.
1151 (vect_analyze_group_access_1): Add debug print.
1152 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1153 (vect_compute_single_scalar_iteration_cost): ... to this.
1154 (vect_analyze_loop_2): Adjust.
1155 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1156 * tree-vectorizer.h: ... here.
1157 (add_stmt_info_to_vec): Remove.
1158 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1159
1160 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
1161
1162 * targhooks.c (default_target_option_pragma_parse): Do not warn if
1163 called on behalf of "#pragma GCC pop_options".
1164
1165 2015-10-14 Tom de Vries <tom@codesourcery.com>
1166
1167 * cfganal.c (verify_no_unreachable_blocks): New function.
1168 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1169 verify_no_unreachable_blocks.
1170 cfganal.h (verify_no_unreachable_blocks): Declare.
1171
1172 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
1173
1174 * common.opt: Add flag_checking.
1175 * system.h (CHECKING_P): Define.
1176
1177 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1178 Aldy Hernandez <aldyh@redhat.com>
1179 Ilya Verbin <ilya.verbin@intel.com>
1180
1181 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1182 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1183 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1184 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1185 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1186 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1187 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1188 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1189 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1190 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1191 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1192 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1193 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1194 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1195 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1196 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1197 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1198 (struct cgraph_simd_clone_arg): Adjust comment.
1199 * coretypes.h (struct gomp_ordered): New forward decl.
1200 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1201 set critical clauses to it.
1202 (gimple_build_omp_ordered): Return gomp_ordered * instead of
1203 gimple *. Add CLAUSES argument, set ordered clauses to it.
1204 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1205 GIMPLE_OMP_ORDERED.
1206 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1207 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1208 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
1209 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1210 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
1211 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1212 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
1213 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1214 renumber
1215 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1216 (gomp_critical): Add clauses field.
1217 (gomp_ordered): New struct.
1218 (is_a_helper <gomp_ordered *>::test): New inline.
1219 (gimple_build_omp_critical): Add CLAUSES argument.
1220 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
1221 instead of gimple *.
1222 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1223 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1224 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1225 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1226 inline functions.
1227 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1228 (dump_gimple_omp_target): Handle enter data and exit data.
1229 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1230 (dump_gimple_omp_critical): Print clauses.
1231 (dump_gimple_omp_ordered): New function.
1232 (dump_gimple_omp_task): Handle taskloop.
1233 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1234 GIMPLE_OMP_ORDERED.
1235 * gimple-walk.c (walk_gimple_op): Walk clauses on
1236 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1237 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1238 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1239 (struct gimplify_omp_ctx): Add loop_iter_var,
1240 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1241 and target_firstprivatize_array_bases fields.
1242 (delete_omp_context): Release loop_iter_var.
1243 (gimplify_bind_expr): Handle ORT_NONE.
1244 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1245 ORT_COMBINED_TARGET.
1246 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1247 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1248 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
1249 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
1250 ctx->target_map_scalars_firstprivate.
1251 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
1252 data sharing clauses. For data sharing clause with VLA decl
1253 on omp target/target data don't add firstprivate for the pointer.
1254 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1255 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1256 the addition of ORT_COMBINED_TARGET.
1257 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
1258 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
1259 pointers as zero length array sections and
1260 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1261 data sharing.
1262 (omp_check_private): Handle omp_member_access_dummy_var vars.
1263 (find_decl_expr): New function.
1264 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
1265 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1266 Handle OMP_CLAUSE_GANG separately. Handle
1267 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1268 clauses. Diagnose linear clause on combined
1269 distribute {, parallel for} simd construct, unless it is the loop
1270 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1271 Handle map clauses with COMPONENT_REF. Initialize
1272 ctx->target_map_scalars_firstprivate,
1273 ctx->target_firstprivatize_array_bases and
1274 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
1275 linear clause even to target region if combined. Remove
1276 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1277 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
1278 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1279 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
1280 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1281 For linear clause on worksharing loop combined with parallel add
1282 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
1283 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
1284 omp_member_access_dummy_var vars. Add lastprivate clause to outer
1285 taskloop if needed.
1286 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1287 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1288 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1289 GOMP_MAP_POINTER.
1290 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
1291 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1292 in target body. Handle removal of struct mapping if struct is not
1293 seen in target body. Remove GOMP_MAP_STRUCT map clause on
1294 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
1295 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
1296 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1297 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1298 clause appear together. Handle
1299 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
1300 clause if it has map-type-modifier always. Handle
1301 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1302 clauses.
1303 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1304 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1305 callers.
1306 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
1307 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
1308 iterators in doacross loops.
1309 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1310 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
1311 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
1312 for the addition of ORT_COMBINED_TARGET.
1313 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1314 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
1315 and OMP_TARGET_EXIT_DATA.
1316 (gimplify_omp_ordered): New function.
1317 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1318 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
1319 Gimplify clauses on OMP_CRITICAL.
1320 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1321 expand_GOMP_SIMD_ORDERED_END): New functions.
1322 * internal-fn.def (GOMP_SIMD_ORDERED_START,
1323 GOMP_SIMD_ORDERED_END): New internal functions.
1324 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1325 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1326 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1327 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1328 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1329 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1330 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1331 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1332 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1333 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1334 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1335 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1336 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1337 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1338 adjust type.
1339 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1340 GOMP_target_data_41, adjust type.
1341 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1342 GOMP_target_update_41, adjust type.
1343 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1344 field.
1345 (struct omp_for_data): Add ordered and simd_schedule fields.
1346 (omp_member_access_dummy_var, unshare_and_remap_1,
1347 unshare_and_remap, is_taskloop_ctx): New functions.
1348 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1349 (extract_omp_for_data): Handle taskloops and doacross loops
1350 and simd schedule modifier.
1351 (omp_adjust_chunk_size): New function.
1352 (get_ws_args_for): Use it.
1353 (lookup_sfield): Change first argument to splay_tree_key,
1354 add overload with first argument tree.
1355 (maybe_lookup_field): Likewise.
1356 (use_pointer_for_field): Handle omp_member_access_dummy_var.
1357 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1358 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1359 (build_outer_var_ref): Add LASTPRIVATE argument, handle
1360 taskloops and omp_member_access_dummy_var vars.
1361 (build_sender_ref): Change first argument to splay_tree_key,
1362 add overload with first argument tree.
1363 (install_var_field): For mask & 8 use &DECL_UID as key instead
1364 of the tree itself.
1365 (fixup_child_record_type): Const qualify *.omp_data_i.
1366 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1367 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1368 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1369 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1370 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1371 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1372 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1373 kinds.
1374 (add_taskreg_looptemp_clauses): New function.
1375 (scan_omp_parallel): Use it.
1376 (scan_omp_task): Likewise.
1377 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1378 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1379 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1380 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
1381 sandwiched taskloop constructs. Type check
1382 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
1383 region. Diagnose depend(source) or depend(sink:...) on
1384 target constructs or task/taskloop.
1385 (handle_simd_reference): Use get_name.
1386 (lower_rec_input_clauses): Likewise. Ignore all
1387 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1388 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
1389 before passing it to omp_clause_{default,copy}_ctor. Handle
1390 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
1391 lastprivate_firstprivate flag for linear that needs copyin and
1392 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1393 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1394 on taskloop lookup decl in outer context. Pass true to
1395 build_outer_var_ref lastprivate argument. Handle
1396 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1397 outside of outer taskloop for.
1398 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1399 OMP_CLAUSE_DECL.
1400 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1401 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
1402 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
1403 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
1404 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1405 abstract origin. Handle omp_member_access_dummy_var vars.
1406 (expand_parallel_call): Use expand_omp_build_assign.
1407 (expand_task_call): Handle taskloop construct expansion. Add
1408 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
1409 integers. Add priority argument to GOMP_task* calls. Or in
1410 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1411 GOMP_task call.
1412 (expand_omp_build_assign): Add prototype. Add AFTER
1413 argument, if true emit statements after *GSI_P and continue linking.
1414 (expand_omp_taskreg): Adjust expand_task_call caller.
1415 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1416 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1417 zero_iter2_bb and first_zero_iter2 arguments, handle computation
1418 of counts even for ordered loops.
1419 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1420 (expand_omp_ordered_source, expand_omp_ordered_sink,
1421 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1422 functions.
1423 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
1424 clauses on worksharing loop. Handle DOACROSS loop expansion.
1425 (expand_omp_for_static_nochunk): Handle linear clauses on
1426 worksharing loop. Adjust expand_omp_for_init_counts
1427 callers.
1428 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
1429 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
1430 expand_omp_for_init_counts callers.
1431 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1432 functions.
1433 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1434 Handle doacross loops.
1435 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1436 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
1437 GOMP_target_{41,update_41,enter_exit_data} libcalls.
1438 (expand_omp): Don't expand ordered depend constructs here, record
1439 ord_stmt instead for later expand_omp_for_generic.
1440 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1441 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1442 clause as stand-alone directive.
1443 (lower_omp_ordered_clauses): New function.
1444 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1445 don't lower anything.
1446 (lower_omp_for_lastprivate): Use last _looptemp_ clause
1447 on taskloop for comparison.
1448 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
1449 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1450 expansion for linear adjustments.
1451 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1452 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1453 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
1454 to tree * pointing to the stmt's clauses.
1455 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1456 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1457 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1458 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1459 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1460 clauses. Always use short kind and 8-bit align shift.
1461 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1462 (struct lower_omp_regimplify_operands_data): New type.
1463 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1464 New functions.
1465 (lower_omp_1): Use lower_omp_regimplify_operands instead of
1466 gimple_regimplify_operands.
1467 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1468 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1469 clause as stand-alone directive.
1470 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1471 (simd_clone_mangle): Mangle the various linear kinds
1472 per the new ABI.
1473 (simd_clone_adjust_argument_types): Handle
1474 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1475 (simd_clone_init_simd_arrays): Don't do anything for uval.
1476 (simd_clone_adjust): Handle
1477 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1478 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1479 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1480 * omp-low.h (omp_member_access_dummy_var): New prototype.
1481 * passes.def (pass_simduid_cleanup): Schedule another copy of the
1482 pass after all optimizations.
1483 * tree.c (omp_clause_code_name): Add entries for
1484 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1485 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1486 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
1487 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1488 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1489 OMP_CLAUSE_REDUCTION 5 arguments. Handle
1490 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1491 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1492 clauses.
1493 * tree-core.h (enum omp_clause_linear_kind): New.
1494 (struct tree_omp_clause): Change type of map_kind
1495 from unsigned char to unsigned int. Add subcode.if_modifier
1496 and subcode.linear_kind fields.
1497 (enum omp_clause_code): Add
1498 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1499 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1500 (OMP_CLAUSE_REDUCTION): Document
1501 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1502 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1503 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1504 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
1505 operand.
1506 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
1507 operand.
1508 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1509 codes.
1510 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1511 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1512 char.
1513 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1514 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1515 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1516 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1517 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1518 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1519 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1520 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1521 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1522 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1523 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1524 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1525 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1526 * tree-inline.c (remap_gimple_stmt): Handle clauses on
1527 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
1528 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1529 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1530 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1531 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1532 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1533 (convert_local_omp_clauses): Likewise.
1534 * tree-pretty-print.c (dump_omp_clause): Handle
1535 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1536 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1537 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1538 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1539 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
1540 GOMP_MAP_FORCE_DEALLOC. Handle
1541 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1542 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1543 and clauses on OMP_ORDERED and OMP_CRITICAL.
1544 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1545 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1546 (vectorize_loops): Adjust comments.
1547 (pass_simduid_cleanup::execute): Likewise.
1548 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1549 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1550 * wide-int.h (wi::gcd): New.
1551
1552 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1553
1554 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1555 (ix86_function_arg_advance): Ditto.
1556 (ix86_function_arg): Ditto.
1557 (ix86_gimplify_va_arg): Ditto.
1558 (ix86_class_max_nregs): Ditto.
1559 (inline_memory_move_cost): Ditto.
1560 (ix86_set_reg_reg_cost): Ditto.
1561 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1562
1563 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
1564
1565 PR middle-end/67912
1566 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1567
1568 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1569
1570 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1571 ROUND_UP macro and UNITS_PER_WORD * 2.
1572 * config/sparc/sparc.c (sparc_compute_frame_size):
1573 Use ROUND_UP and ROUND_DOWN macros where applicable.
1574 (function_arg_record_value, function_arg_record_value_1)
1575 (function_arg_record_value_1): Ditto.
1576 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1577 alignment to double-word.
1578 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1579 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1580 rounded_size.
1581
1582 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
1583
1584 * gcc/rtl.h (print_insn): Fix prototype.
1585
1586 2015-10-13 Tom de Vries <tom@codesourcery.com>
1587
1588 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1589 -1. Add assert that returned entry matches phi argument.
1590 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1591 free_stmt_vec_info_vec ...
1592 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
1593 with -1.
1594
1595 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1596
1597 PR tree-optimization/67909, 67947
1598 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1599 really skip the inner loop.
1600
1601 2015-10-13 Jeff Law <law@redhat.com>
1602
1603 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1604 Allow single block jump threading paths.
1605
1606 2015-10-13 Tom de Vries <tom@codesourcery.com>
1607
1608 PR tree-optimization/67476
1609 * doc/invoke.texi (@item parloops-schedule): New item.
1610 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1611 * tree-parloops.c: Include params-enum.h.
1612 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1613
1614 2015-10-13 Tom de Vries <tom@codesourcery.com>
1615
1616 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1617 * params-enum.h: New file.
1618 * opts.c (handle_param): Handle case that param arg is a string.
1619 * params-list.h: Handle DEFPARAMENUM5 in params.def.
1620 * params.c (find_param): New function, factored out of ...
1621 (set_param_value): ... here.
1622 (param_string_value_p): New function.
1623 * params.h (struct param_info): Add value_names field.
1624 (find_param, param_string_value_p): Declare.
1625
1626 2015-10-13 Tom de Vries <tom@codesourcery.com>
1627
1628 PR tree-optimization/67476
1629 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1630
1631 2015-10-13 Richard Biener <rguenther@suse.de>
1632
1633 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1634 the data dependence vector.
1635 (vect_peeling_hash_insert): Get the peeling hash table as argument.
1636 (vect_peeling_hash_get_lowest_cost): Likewise.
1637 (vect_enhance_data_refs_alignment): Adjust.
1638 (struct _vect_peel_info, struct _vect_peel_extended_info,
1639 struct peel_info_hasher): Move from ...
1640 * tree-vectorizer.h: ... here.
1641 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1642 (LOOP_VINFO_PEELING_HTAB): Likewise.
1643 (struct _loop_vec_info): Remove min_profitable_iters and
1644 peeling_htab members.
1645 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1646 here.
1647 (destroy_loop_vec_info): Adjust.
1648 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1649 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1650 to estimate alias versioning cost.
1651 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1652
1653 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
1654
1655 * real.h (real_isinteger): Declare.
1656 * real.c (real_isinteger): New function.
1657 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1658 if y is an even integer.
1659
1660 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1661
1662 revert:
1663 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1664 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1665 counts when these are more informative.
1666
1667 2015-10-12 Jeff Law <law@redhat.com>
1668
1669 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1670 (fsm_find_control_stmt_paths): Change name of first argument to
1671 more accurately relfect what it really is. Handle simplification
1672 of GIMPLE_COND after finding a thread path for NAME.
1673 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1674 nontrivial conditions to be handled by FSM threader.
1675 (thread_through_normal_block): Extract the name to looup via
1676 FSM threader from COND_EXPR.
1677
1678 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1679 restriction that traced SSA_NAME is a user variable.
1680
1681 2015-10-12 Tom de Vries <tom@codesourcery.com>
1682
1683 PR tree-optimization/67476
1684 * omp-low.c (expand_omp_for_generic): Add missing phis.
1685
1686 2015-10-12 Tom de Vries <tom@codesourcery.com>
1687
1688 PR tree-optimization/67476
1689 * omp-low.c (expand_omp_for_generic): Handle simple latch.
1690
1691 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1692
1693 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1694 tables: add tbl3 and tbx4.
1695 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1696 (aarch64_tbx4v8qi): New.
1697 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1698 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1699 Rewrite using builtin functions.
1700 * config/aarch64/iterators.md (UNSPEC_TBX): New.
1701
1702 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1703
1704 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1705 ROUND_UP macro.
1706 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1707 Use ROUND_UP and ROUND_DOWN macros where applicable.
1708 (rs6000_darwin64_record_arg_flush): Ditto.
1709 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1710 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1711 rounded_size.
1712
1713 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1714
1715 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1716 (AARCH64_ROUND_DOWN): Ditto.
1717 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1718
1719 2015-10-12 Richard Biener <rguenther@suse.de>
1720
1721 PR ipa/67783
1722 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1723 code that analyzes IVs on each stmt but in a cheaper way avoiding
1724 quadratic behavior.
1725
1726 2015-10-12 Nick Clifton <nickc@redhat.com>
1727
1728 * config/msp430/msp430.c (msp430_mcu_names): Rename to
1729 msp430_mcu_data, add fields for ISA and hardware multiply
1730 support. Import latest data from the devices.csv file.
1731 (msp430_override_option): Use the data from the new array.
1732 (msp430_use_f5_series_hwmult): Likewise.
1733 (use_32bit_hwmult): Likewise.
1734 (msp430_no_hwmult): Likewise.
1735 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
1736 MCU names.
1737 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
1738 not recognised then no hardware multiply support is assumed and
1739 that only the MSP430 ISA is allowed.
1740
1741 2015-10-12 Richard Biener <rguenther@suse.de>
1742
1743 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
1744 related code ...
1745 (vect_analyze_loop_2): ... here.
1746
1747 2015-10-11 Jason Merrill <jason@redhat.com>
1748
1749 PR c++/67557
1750 * expr.c (store_field): Call store_constructor directly when
1751 storing a CONSTRUCTOR into a target smaller than its type.
1752 Guard against unsafe bitwise copy.
1753
1754 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1755
1756 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1757 counts when these are more informative.
1758
1759 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1760
1761 * tree-profile.c (tree_profiling): Do not clear
1762 pure/const when not instrumenting.
1763 (pass tree_profile): Add dump of symtab.
1764
1765 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1766
1767 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
1768 addresses.
1769 (fold_addr_of_array_ref_difference): Likewise.
1770
1771 2015-10-11 Jeff Law <law@redhat.com>
1772
1773 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
1774 tree-ssa-threadbackward.c.
1775 (fsm_find_control_statement_thread_paths): Likewise.
1776 (thread_through_normal_block): Break out FSM bits and move them
1777 into a new function in tree-ssa-threadbackward.c. Call new function
1778 instead.
1779 Minimize header file usage.
1780 * tree-ssa-threadbackward.h: New file.
1781 * tree-ssa-threadbackward.c: Likewise.
1782 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
1783
1784 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
1785
1786 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
1787
1788 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
1789
1790 PR rtl-optimization/67864
1791 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
1792 fallthrough edges for conditional jumps. Don't sort candidate
1793 edges if not optimizing for speed.
1794
1795 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1796
1797 * defaults.h (REVERSE_CONDITION): New default definition.
1798 * jump.c (reversed_comparison_code_parts): Adjust.
1799
1800 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1801
1802 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
1803 check HARD_FRAME_POINTER_IS_ARG_POINTER.
1804
1805 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1806
1807 * defaults.h (FRAME_ADDR_RTX): New default definition.
1808 * builtins.c (expand_builtin_return_addr): Adjust.
1809
1810 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1811
1812 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
1813 * builtins.c (expand_builtin_return_addr): Adjust.
1814
1815 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1816
1817 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
1818 * builtins.c (expand_builtin_return_addr): Adjust.
1819 * doc/tm.texi: Likewise.
1820 * doc/tm.texi.in: Likewise.
1821 * except.c (expand_builtin_unwind_init): Likewise.
1822
1823 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1824
1825 * builtins.c (expand_builtin_return_addr): Adjust.
1826 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
1827
1828 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1829
1830 * tree.c (type_with_interoperable_signedness): New.
1831 (gimple_canonical_types_compatible_p): Use it.
1832 * tree.h (type_with_interoperable_signedness): Declare
1833
1834 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1835
1836 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
1837 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
1838 when OEP_ADDRESS_OF is se.
1839
1840 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1841 Sebastian Pop <s.pop@samsung.com>
1842
1843 * graphite-dependences.c (scop_get_dependences): Add dump of the
1844 data dependence graph.
1845 * graphite-poly.c (print_isl_union_map): New.
1846 (debug_isl_union_map): New.
1847 * graphite-poly.h (print_isl_union_map): Declare.
1848 (debug_isl_union_map): Declare.
1849
1850 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
1851 Sebastian Pop <s.pop@samsung.com>
1852
1853 * graphite-poly.c (print_iteration_domain): Remove verbosity.
1854 Remove OpenScop formatting.
1855 (print_iteration_domains): Same.
1856 (debug_iteration_domain): Same.
1857 (debug_iteration_domains): Same.
1858 (print_pdr): Same.
1859 (debug_pdr): Same.
1860 (dump_gbb_cases): Same.
1861 (dump_gbb_conditions): Same.
1862 (print_pdrs): Same.
1863 (debug_pdrs): Same.
1864 (print_pbb_body): Same.
1865 (print_pbb): Same.
1866 (print_scop_params): Same.
1867 (print_scop_context): Same.
1868 (print_scop): Same.
1869 (debug_pbb_domain): Same.
1870 (debug_pbb): Same.
1871 (debug_scop_context): Same.
1872 (debug_scop): Same.
1873 (debug_scop_params): Same.
1874 * graphite-poly.h: Same.
1875 * graphite.c (graphite_transform_loops): Same.
1876
1877 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1878
1879 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
1880 call that isn't needed.
1881
1882 2015-10-09 Jeff Law <law@redhat.com>
1883
1884 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
1885 rather than moving each name to the freelist individually.
1886
1887 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
1888
1889 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
1890 * frame-header-opt.c: New file.
1891 * config/mips/mips-proto.h (mips_register_frame_header_opt):
1892 Add prototype.
1893 * config/mips/mips.c (mips_compute_frame_info): Check
1894 optimize_call_stack flag.
1895 (mips_option_override): Register new frame_header_opt pass.
1896 (mips_frame_info, mips_int_mask, mips_shadow_set,
1897 machine_function): Move these types to...
1898 * config/mips/mips.h: here.
1899 (machine_function): Add does_not_use_frame_header and
1900 optimize_call_stack fields.
1901 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
1902 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
1903 Document new flags.
1904 * config/mips/mips.opt (mframe-header-opt): Add new option.
1905
1906 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
1907
1908 * config/i386/i386.c
1909 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
1910 ROUND_DOWN where applicable.
1911
1912 2015-10-09 Jeff Law <law@redhat.com>
1913
1914 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
1915 correct statement.
1916
1917 2015-10-09 Renlin Li <renlin.li@arm.com>
1918
1919 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
1920 operands[0] and operands[2].
1921 (neon_vtrn<mode>_insn): Likewise.
1922 (neon_vzip<mode>_insn): Likewise.
1923
1924 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1925
1926 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
1927 ((X & C2) << C1): Expand to...
1928 (X {&,^,|} C2 << C1): ...This.
1929 ((X & C2) >> C1): Expand to...
1930 (X {&,^,|} C2 >> C1): ...This.
1931
1932 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
1933
1934 PR target/67895
1935 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
1936 Adjust embedded rounding/SAE specifier position.
1937 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
1938 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
1939 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
1940 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
1941 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
1942 Likewise.
1943 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
1944
1945 2015-10-09 Martin Jambor <mjambor@suse.cz>
1946
1947 tree-optimization/67794
1948 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
1949 between types of state,ents but accept original definitions as a
1950 parameter.
1951 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
1952 iterate over definitions.
1953
1954 2015-10-09 James Norris <jnorris@codesourcery.com>
1955
1956 * config/rs6000/rs6000.c (rs6000_offload_options): New.
1957 (TARGET_OFFLOAD_OPTIONS): New.
1958
1959 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
1960
1961 PR middle-end/67891
1962 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
1963
1964 PR middle-end/67766
1965 * function.c (expand_function_end): Move return value
1966 promotion past the handling of PARALLELs and CONCATs.
1967
1968 PR rtl-optimization/67828
1969 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
1970 (tree_may_unswitch_on): Don't unswitch on expressions
1971 involving undefined values.
1972
1973 2015-10-09 Richard Biener <rguenther@suse.de>
1974
1975 * genmatch.c (print_operand): Fix formatting.
1976 (dt_node::append_simplify): Warn for multiple simplifiers
1977 that match the same pattern.
1978 * match.pd (log (exp @0)): Remove duplicates.
1979
1980 2015-10-09 Richard Biener <rguenth@suse.de>
1981
1982 PR target/67366
1983 * gimple-fold.c (optabs-query.h): Include
1984 (gimple_fold_builtin_memory_op): Allow unaligned stores
1985 when movmisalign_optabs are available.
1986
1987 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1988
1989 PR target/67366
1990 * config/arm/arm.md (movmisalign<mode>): New.
1991 * config/arm/iterators.md (HSI): New.
1992
1993 2015-10-09 Richard Biener <rguenther@suse.de>
1994
1995 PR tree-optimization/67891
1996 * gimple-match.h (gimple_simplified_result_is_gimple_val):
1997 New helper.
1998 (gimple_resimplify1): Declare.
1999 (gimple_resimplify2): Likewise.
2000 (gimple_resimplify3): Likewise.
2001 * gimple-match-head.c (gimple_resimplify1): Export.
2002 (gimple_resimplify2): Likewise.
2003 (gimple_resimplify3): Likewise.
2004 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2005 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2006 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2007 to avoid creating stmts without VN info.
2008
2009 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
2010
2011 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2012 of availability.
2013
2014 2015-10-08 Jeff Law <law@redhat.com>
2015
2016 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2017 and release_ssa_name in two places.
2018 (gimple_stringop_fixed_value): Similarly.
2019
2020 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2021 release_defs.
2022
2023 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2024 unlink_stmt_vdef and release_ssa_name_fn.
2025
2026 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2027 release_defs.
2028
2029 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2032 SSE register save area to 16 bytes only if the incoming stack
2033 boundary is no less than 16 bytes.
2034
2035 2015-10-08 Jeff Law <law@redhat.com>
2036
2037 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2038 release_ssa_name. Fix typo in comment.
2039
2040 2015-10-08 Nathan Sidwell <nathan@acm.org>
2041
2042 * config/nvptx/nvptx.h (struct machine_function): Add comment.
2043 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2044 may return pointer as well as in memory.
2045 (nvptx_output_return): Likewise.
2046
2047 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2048
2049 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2050 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2051 * match.pd: Add rules previously handled by fold_builtin_sqrt
2052 and fold_builtin_cbrt.
2053
2054 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2055
2056 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2057 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2058 * fold-const.h (tree_unary_nonnegative_warnv_p)
2059 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2060 (tree_expr_nonnegative_warnv_p): Add depth parameters.
2061 * fold-const.c: Include gimple-fold.h and params.h.
2062 (tree_ssa_name_nonnegative_warnv_p): New function.
2063 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2064 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2065 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2066 Add a depth parameter and increment it for recursive calls to
2067 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
2068 to handle SSA names.
2069 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2070 (gimple_stmt_nonnegative_warnv_p): Declare.
2071 * tree-vrp.c (remove_range_assertions): Remove assert that condition
2072 cannot be proven false.
2073 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2074 (gimple_stmt_nonnegative_warnv_p): Move to...
2075 * gimple-fold.c: ...here. Add depth parameters and pass them
2076 down to the tree routines. Accept statements that aren't
2077 assignments or calls but just return false for them.
2078 (gimple_val_nonnegative_real_p): Delete.
2079 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2080 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2081 Check HONOR_NANs first.
2082
2083 2015-10-08 Martin Jambor <mjambor@suse.cz>
2084
2085 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
2086 unnecessary MIN.
2087
2088 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2089
2090 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2091 in the tail of outer-loop.
2092
2093 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
2094
2095 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2096 return UI_NONE.
2097
2098 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2099
2100 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2101 "cfghooks.h", add prototypes for introduced new functions.
2102 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2103 checks on ability of loop unswitching to tree_unswitch_single_loop;
2104 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2105 on innermost loop check.
2106 (tree_unswitch_single_loop): Add all required checks on ability of
2107 loop unswitching under zero recursive level guard.
2108 (tree_unswitch_outer_loop): New function.
2109 (find_loop_guard): Likewise.
2110 (empty_bb_without_guard_p): Likewise.
2111 (used_outside_loop_p): Likewise.
2112 (get_vop_from_header): Likewise.
2113 (hoist_guard): Likewise.
2114 (check_exit_phi): Likewise.
2115
2116 2015-10-08 Marek Polacek <polacek@redhat.com>
2117
2118 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2119 ops element.
2120
2121 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2122
2123 PR c/65345
2124 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2125 create_tmp_var_raw instead of create_tmp_var.
2126
2127 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
2128
2129 * expr.c (store_expr_with_bounds): Handle aggregate moves from
2130 BLKmode.
2131 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2132 to define gimple type system; compare aggregates only by size.
2133
2134 2015-10-07 Jeff Law <law@redhat.com>
2135
2136 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2137 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2138 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
2139 unnecessarily.
2140
2141 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2142 Sebastian Pop <s.pop@samsung.com>
2143
2144 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2145 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2146 (generate_isl_schedule): Same.
2147 * graphite-optimize-isl.c (scop_get_domains): Same.
2148 (apply_schedule_map_to_scop): Same.
2149 * graphite-poly.c (print_iteration_domains): Same.
2150 (remove_gbbs_in_scop): Same.
2151 (new_scop): Same.
2152 (free_scop): Same.
2153 (print_scop): Same.
2154 * graphite-poly.h (struct scop): Rename bbs to pbbs.
2155 (SCOP_BBS): Remove.
2156 * graphite-scop-detection.c (compare_bb_depths): Remove.
2157 (graphite_sort_dominated_info): Remove.
2158 (try_generate_gimple_bb): Move out of scop_detection.
2159 (all_non_dominated_preds_marked_p): Remove.
2160 (build_scop_bbs_1): Remove.
2161 (build_scop_bbs): Remove.
2162 (nb_pbbs_in_loops): Do not use SCOP_BBS.
2163 (find_scop_parameters): Same.
2164 (sese_dom_walker): Rename gather_bbs.
2165 (before_dom_children): Call try_generate_gimple_bb and collect gbb
2166 and pbb.
2167 (build_scops): Call gather_bbs.
2168 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2169 (add_conditions_to_constraints): Same.
2170 (build_scop_iteration_domain): Same.
2171 (build_scop_drs): Same.
2172 (new_pbb_from_pbb): Same.
2173 * sese.c (new_sese_info): Create bbs.
2174 * sese.h (struct sese_info_t): Add bbs.
2175
2176 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
2177
2178 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2179 encoding in 64-bit mode.
2180
2181 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
2182
2183 PR target/66697
2184 * config/i386/i386.c (ix86_option_override_internal): Always use
2185 8-byte minimum stack boundary in 64-bit mode.
2186 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2187 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2188 Add a REG_CFA_EXPRESSION note if needed.
2189 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2190 (ix86_handle_force_align_arg_pointer_attribute): New.
2191 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2192 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2193 with ix86_handle_force_align_arg_pointer_attribute.
2194 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2195
2196 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2197 Sebastian Pop <s.pop@samsung.com>
2198
2199 * graphite-scop-detection.c (parameter_index_in_region): Remove
2200 use of SESE_ADD_PARAMS.
2201 (find_scop_parameters): Same.
2202 * sese.c (new_sese_info): Same.
2203 * sese.h (struct sese_info_t): Remove add_params.
2204 (SESE_ADD_PARAMS): Remove.
2205
2206 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2207 Sebastian Pop <s.pop@samsung.com>
2208
2209 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2210 an sese_info_p.
2211 (copy_def): Same.
2212 (copy_internal_parameters): Same.
2213 (translate_isl_ast_to_gimple): Use an sese_l.
2214 (build_iv_mapping): Same.
2215 * graphite-poly.c (new_sese): Rename new_sese_info.
2216 (free_sese): Rename free_sese_info.
2217 * graphite-poly.h (struct scop): Use an sese_info_p.
2218 (scop_set_region): Same.
2219 * graphite-scop-detection.c (struct sese_l): Moved...
2220 (get_entry_bb): Moved...
2221 (get_exit_bb): Moved...
2222 (parameter_index_in_region_1): Use an sese_info_p.
2223 (parameter_index_in_region): Same.
2224 (scan_tree_for_params): Same.
2225 (find_params_in_bb): Same.
2226 (sese_dom_walker): Use an sese_l.
2227 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2228 (reduction_phi_p): Same.
2229 (parameter_index_in_region_1): Use an sese_info_p.
2230 (propagate_expr_outside_region): Use an sese_l.
2231 * graphite.c: Replace uses of SCOP_REGION.
2232 * sese.c (sese_record_loop): Use an sese_info_p.
2233 (build_sese_loop_nests): Same.
2234 (sese_build_liveouts_use): Same.
2235 (sese_build_liveouts_bb): Same.
2236 (sese_build_liveouts_bb): Same.
2237 (sese_bad_liveouts_use): Same.
2238 (sese_reset_debug_liveouts_bb): Same.
2239 (sese_build_liveouts): Same.
2240 (new_sese): Renamed new_sese_info.
2241 (free_sese): Renamed free_sese_info.
2242 (set_rename): Use an sese_info_p.
2243 (graphite_copy_stmts_from_block): Same.
2244 (copy_bb_and_scalar_dependences): Same.
2245 (outermost_loop_in_sese_1): Use an sese_l.
2246 (outermost_loop_in_sese): Same.
2247 (if_region_set_false_region): Use an sese_info_p.
2248 (move_sese_in_condition): Same.
2249 (scalar_evolution_in_region): Use an sese_l.
2250 * sese.h (struct sese_l): ... here.
2251 (SESE_ENTRY): Remove.
2252 (SESE_ENTRY_BB): Remove.
2253 (SESE_EXIT): Remove.
2254 (SESE_EXIT_BB): Remove.
2255 (sese_contains_loop): Use an sese_info_p.
2256 (sese_nb_params): Same.
2257 (bb_in_sese_p): Use an sese_l.
2258 (stmt_in_sese_p): Same.
2259 (defined_in_sese_p): Same.
2260 (loop_in_sese_p): Same.
2261 (sese_loop_depth): Same.
2262 (struct ifsese_s): Use an sese_info_p.
2263 (gbb_loop_at_index): Use an sese_l.
2264 (nb_common_loops): Same.
2265 (scev_analyzable_p): Same.
2266
2267 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2268
2269 * config/i386/i386.c (ix86_conditional_register_usage): Use
2270 CALL_USED_REGISTERS_MASK.
2271 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2272
2273 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2274
2275 PR bootstrap/67385
2276 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2277 * configure: Regenerated.
2278
2279 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2280
2281 PR target/67850
2282 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2283 (ix86_set_current_function): This.
2284 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2285
2286 2015-10-07 Richard Biener <rguenther@suse.de>
2287
2288 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2289 (vinfo_for_stmt): Adjust.
2290 (set_vinfo_for_stmt): Likewise.
2291 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2292 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2293 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2294 of inner loop.
2295 (vect_analyze_loop_1): Remove.
2296 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2297 inner loop when vectorizing an outer loop by splitting out from ...
2298 (vect_analyze_loop_form): ... here.
2299
2300 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2301
2302 PR c/65345
2303 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2304 Use create_tmp_var_raw instead of create_tmp_var.
2305
2306 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
2307
2308 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2309 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2310 * real.c (CACHED_FRACTION): New helper macro.
2311 (dconst_third_ptr): Use it.
2312 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2313 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2314 dconst_sixth.
2315 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2316
2317 2015-10-06 Jeff Law <law@redhat.com>
2318
2319 PR tree-optimization/67816
2320 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2321 from remove_jump_threads_starting_at. Accept an edge rather than
2322 a basic block.
2323 * tree-ssa-threadupdate.c (removed_edges): New hash table.
2324 (remove_jump_threads_including): Note edges that get removed from
2325 the CFG for later pruning of jump threading paths including them.
2326 (thread_through_all_blocks): Remove paths which include edges that
2327 have been removed.
2328 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2329 on each outgoing edges when optimizing away a control statement.
2330
2331 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2332
2333 * reorg.c (emit_delay_sequence): Store list of delay slot insns
2334 in a vector instead of rtx_insn_list.
2335 (add_to_delay_list): Likewise.
2336 (delete_from_delay_slot): Likewise.
2337 (optimize_skip): Likewise.
2338 (redirect_with_delay_list_safe_p): Likewise.
2339 (check_annul_list_true_false): Likewise.
2340 (steal_delay_list_from_target): Likewise.
2341 (steal_delay_list_from_fallthrough): Likewise.
2342 (redundant_insn): Likewise.
2343 (fill_simple_delay_slots): Likewise.
2344 (fill_slots_from_thread): Likewise.
2345 (fill_eager_delay_slots): Likewise.
2346 (relax_delay_slots): Likewise.
2347
2348 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
2349
2350 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2351 For -mgpopt=local, also exclude unintialized common symbols.
2352 * doc/invoke.texi (Nios II Options): Document the change.
2353
2354 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2355
2356 * config/aarch64/iterators.md (vwcore): Add missing cases for
2357 V4HF/V8HF modes.
2358
2359 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2360 Sebastian Pop <s.pop@samsung.com>
2361
2362 * graphite-poly.c (new_scop): Initialize drs.
2363 * graphite-poly.h (struct dr_info): New.
2364 (struct scop): Add drs.
2365 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2366 (pdr_add_memory_accesses): Same.
2367 (build_poly_dr): Same.
2368 (build_alias_set): Same.
2369 (build_scop_drs): Same.
2370 (build_pbb_drs): Remove.
2371 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2372 * tree-data-ref.h (data_reference): Remove alias_set.
2373
2374 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2375 Sebastian Pop <s.pop@samsung.com>
2376
2377 * graphite-poly.c (free_data_refs_aux): Remove.
2378 (free_gimple_poly_bb): Do not call free_data_refs_aux.
2379 * graphite-poly.h (struct base_alias_pair): Remove.
2380 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2381 base_alias_pair and dr->aux.
2382 (build_alias_set): Same.
2383 * tree-data-ref.c (create_data_ref): Initialize alias_set.
2384 * tree-data-ref.h (data_reference): Add alias_set.
2385
2386 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2387 Sebastian Pop <s.pop@samsung.com>
2388
2389 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2390 Do not set PDR_BASE_OBJECT_SET.
2391 * graphite-poly.h (poly_dr): Same.
2392 (PDR_BASE_OBJECT_SET): Remove.
2393 (new_poly_dr): Update decl.
2394 * graphite-sese-to-poly.c (build_poly_dr): Update call to
2395 new_poly_dr.
2396 (write_alias_graph_to_ascii_dimacs): Remove.
2397 (write_alias_graph_to_ascii_dot): Remove.
2398 (write_alias_graph_to_ascii_ecc): Remove.
2399 (dr_same_base_object_p): Remove.
2400 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
2401 code.
2402 (build_base_obj_set_for_drs): Remove.
2403 (dump_alias_graphs): Remove.
2404 (build_scop_drs): Remove dead code.
2405
2406 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2407 Peter Bergner <bergner@vnet.ibm.com>
2408
2409 PR target/67808
2410 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2411 allow registers, but provide insns for the combiner to create for
2412 loads from memory. Separate VSX code from non-VSX code. For
2413 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2414 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2415 so that registers come before memory operations. Drop support from
2416 converting DFmode to TFmode, if the DFmode value is in a GPR
2417 register.
2418 (extenddftf2_fprs): Likewise.
2419 (extenddftf2_internal): Likewise.
2420 (extenddftf2_vsx): Likewise.
2421 (extendsftf2): In the expander, only allow registers, but provide
2422 insns for the combiner to create for stores and loads.
2423
2424 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2425
2426 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2427 from the decl parameter.
2428
2429 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
2430
2431 PR 67861
2432 * gimple-fold.c (gimple_fold_builtin): Add break after
2433 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2434
2435 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
2436
2437 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2438 to scop->isl_context.
2439
2440 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2441
2442 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2443 (output_probe_stack_range): Rotate the loop and simplify.
2444 (thumb1_expand_prologue): Tweak sorry message.
2445 * config/arm/arm.md (probe_stack): Use bare string.
2446
2447 2015-10-06 Nick Clifton <nickc@redhat.com>
2448
2449 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2450
2451 2015-10-06 Nick Clifton <nickc@redhat.com>
2452
2453 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2454 (ATTR_PERSIST): New constant.
2455 (msp430_data_attr): New function - verifies an attribute that only
2456 applies to variables.
2457 (msp430_attributes): Add noinit and persistent attributes.
2458 (noinit_section): New variable.
2459 (presis_section): New variable.
2460 (TARGET_ASM_INIT_SECTIONS): Define.
2461 (msp430_init_sections): New function - initialises the noinit and
2462 persist section variables.
2463 (msp430_select_section): Add support for noinit and persist
2464 attributes.
2465 (msp430_section_type_flags): Likewise.
2466 * doc/extend.texi: Document the reent, critical, wakeup, noinit
2467 and persistent attributes.
2468
2469 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2470 Sebastian Pop <s.pop@samsung.com>
2471
2472 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2473 (no_violations): Remove.
2474 (subtract_commutative_associative_deps): Remove.
2475 (compute_deps): Do not call subtract_commutative_associative_deps.
2476 (transform_is_safe): Remove.
2477 (graphite_legal_transform): Remove.
2478 * graphite-poly.h (graphite_legal_transform): Remove.
2479
2480 2015-10-05 Aditya Kumar <hiraditya@msn.com>
2481
2482 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2483 which are in this region are passed so gcc_assert and remove redundant
2484 computation.
2485 * sese.c (sese_build_liveouts): Pass only those bbs which are not
2486 in region.
2487 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2488 gcc_assert on that and remove unnecessary computation.
2489 (sese_build_liveouts_use): Same.
2490
2491 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2492
2493 * graphite-dependences.c (scop_get_reads): Renamed scop->context
2494 to scop->param_context.
2495 (scop_get_must_writes): Same.
2496 (scop_get_may_writes): Same.
2497 (scop_get_original_schedule): Same.
2498 (scop_get_transformed_schedule): Same.
2499 (subtract_commutative_associative_deps): Same.
2500 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2501 (generate_isl_context): Same.
2502 (generate_isl_schedule): Same.
2503 (scop_to_isl_ast): Same.
2504 (graphite_regenerate_ast_isl): Same.
2505 * graphite-optimize-isl.c (scop_get_domains): Same.
2506 (optimize_isl): Renamed scop->context to scop->param_context.
2507 * graphite-poly.c (new_poly_bb): Change the type of argument to
2508 gimple_poly_bb_p.
2509 (new_scop): Renamed scop->context to scop->param_context.
2510 (free_scop): Same.
2511 (print_scop_context): Same.
2512 * graphite-poly.h (new_poly_dr): Change the type of argument from
2513 void* to data_reference_p.
2514 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2515 (new_poly_bb): Change the type of argument from void* to
2516 gimple_poly_bb_p.
2517 (pbb_set_black_box): Same.
2518 (struct scop): Rename context to param_context, ctx to isl_context.
2519 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2520 Move declarations closer to assignment.
2521 (find_params_in_bb): Same.
2522 (find_scop_parameters): Same.
2523 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2524 Global to be used for statement IDs.
2525 (isl_id_for_pbb): Use ssa_name_version_typesize.
2526 (simple_copy_phi_p): Move declarations closer to assignment.
2527 (build_pbb_scattering_polyhedrons): Same.
2528 (build_scop_scattering): Same.
2529 (isl_id_for_ssa_name): Same.
2530 (extract_affine_name): Same.
2531 (extract_affine_int): Same.
2532 (extract_affine): Same.
2533 (set_scop_parameter_dim): Use renamed member.
2534 (build_loop_iteration_domains): Same.
2535 (add_param_constraints): Same.
2536 (build_scop_iteration_domain): Same.
2537 (pdr_add_data_dimensions): Same.
2538 (build_poly_dr): Same.
2539 (build_scop_drs): Move declarations closer to assignment.
2540 (analyze_drs_in_stmts): Same.
2541 (insert_out_of_ssa_copy): Same.
2542 (insert_out_of_ssa_copy_on_edge): Same.
2543 (propagate_expr_outside_region): Same.
2544 (rewrite_phi_out_of_ssa): Same.
2545 (rewrite_degenerate_phi): Same.
2546 (rewrite_reductions_out_of_ssa): Same.
2547 (rewrite_cross_bb_scalar_dependence): Same.
2548 (handle_scalar_deps_crossing_scop_limits): Same.
2549 (rewrite_cross_bb_scalar_deps): Same.
2550 * graphite.c (graphite_transform_loops): Use renamed member.
2551
2552 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
2553
2554 PR c/65345
2555 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2556 create_tmp_var_raw instead of create_tmp_var.
2557
2558 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2559
2560 PR c/65345
2561 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2562 Use create_tmp_var_raw instead of create_tmp_var.
2563
2564 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
2565
2566 PR target/67849
2567 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2568 split for upper-bank registers when target does not support
2569 AVX512VL.
2570 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2571 split when target does not support AVX512VL.
2572
2573 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
2574
2575 PR c/65345
2576 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2577 Adjust to use create_tmp_var_raw instead of create_tmp_var.
2578
2579 2015-10-06 Nick Clifton <nickc@redhat.com>
2580
2581 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2582 multiplication.
2583
2584 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2585
2586 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2587 (case ${target}): Add znver1.
2588 * config/i386/cpuid.h(bit_CLZERO): Define.
2589 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2590 -march=native recognize znver1 processors.
2591 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2592 znver1, clzero def_and_undef.
2593 * config/i386/i386.c (struct processor_costs znver1_cost): New.
2594 (m_znver1): New definition.
2595 (m_AMD_MULTIPLE): Includes m_znver1.
2596 (processor_target_table): Add znver1 entry.
2597 (ix86_target_string) : Add clzero entry.
2598 (static const char *const cpu_names): Add znver1 entry.
2599 (ix86_option_override_internal): Add znver1 instruction sets.
2600 (PTA_CLZERO) : New definition.
2601 (ix86_option_override_internal): Handle new clzerooption.
2602 (ix86_issue_rate): Add znver1.
2603 (ix86_adjust_cost): Add znver1.
2604 (ia32_multipass_dfa_lookahead): Add znver1.
2605 (has_dispatch): Add znver1.
2606 * config/i386/i386.h (TARGET_znver1): New definition.
2607 (TARGET_CLZERO): Define.
2608 (TARGET_CLZERO_P): Define.
2609 (struct ix86_size_cost): Add TARGET_ZNVER1.
2610 (enum processor_type): Add PROCESSOR_znver1.
2611 * config/i386/i386.md (define_attr "cpu"): Add znver1.
2612 (set_attr znver1_decode): New definitions for znver1.
2613 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2614 (mclzero): New.
2615 * config/i386/mmx.md (set_attr znver1_decode): New definitions
2616 for znver1.
2617 * config/i386/sse.md (set_attr znver1_decode): Likewise.
2618 * config/i386/x86-tune.def: Add znver1 tunings.
2619 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2620 * gcc/doc/invoke.texi: Add details about znver1
2621
2622 2015-10-06 Richard Biener <rguenther@suse.de>
2623
2624 PR tree-optimization/67859
2625 * tree-ssa-pre.c (create_expression_by_pieces): Properly
2626 discard not inserted stmts.
2627
2628 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
2629
2630 * doc/extend.texi (Template Instantiation): Reorder options and
2631 de-emphasize -frepo.
2632 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2633 example instead of -frepo.
2634
2635 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2636
2637 PR c/65345
2638 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2639 use create_tmp_var_raw rather than create_tmp_var.
2640
2641 2015-10-06 Richard Biener <rguenther@suse.de>
2642
2643 * tree-vectorizer.h (vec_info): New base class for...
2644 (_loop_vec_info): ... this and ...
2645 (_bb_vec_info): ... this.
2646 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2647 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2648 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2649 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2650 vect_destroy_datarefs): Adjust interface to take a vec_info *
2651 rather than both a loop_vec_info and a bb_vec_info argument.
2652 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2653 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2654 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2655 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2656 accordingly.
2657 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2658 (destroy_loop_vec_info, vect_analyze_loop_2,
2659 vect_is_simple_reduction_1, get_initial_def_for_induction,
2660 vect_create_epilog_for_reduction, vectorizable_reduction,
2661 vectorizable_live_operation, vect_transform_loop): Adjust.
2662 * tree-vect-patterns.c (type_conversion_p,
2663 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2664 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2665 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2666 check_bool_pattern, vect_recog_bool_pattern,
2667 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2668 * tree-vect-slp.c (vect_get_and_check_slp_defs,
2669 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2670 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2671 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2672 (new_bb_vec_info): Initialize base classs.
2673 * tree-vect-stmts.c (record_stmt_cost, process_use,
2674 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2675 vectorizable_mask_load_store, vectorizable_call,
2676 vectorizable_simd_clone_call, vectorizable_conversion,
2677 vectorizable_assignment, vectorizable_shift,
2678 vectorizable_operation, vectorizable_store,
2679 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2680 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2681 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2682
2683 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
2684
2685 PR c/65345
2686 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2687 create_tmp_var_raw rather than create_tmp_var.
2688
2689 2015-10-05 Marek Polacek <polacek@redhat.com>
2690
2691 * tree-ssa-loop-im.c
2692 (move_computations_dom_walker::before_dom_children): Don't set
2693 SSA_NAME_ANTI_RANGE_P.
2694 * tree-ssa-phiopt.c (value_replacement): Likewise.
2695
2696 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2697 Sebastian Pop <s.pop@samsung.com>
2698
2699 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2700
2701 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2702 Sebastian Pop <s.pop@samsung.com>
2703
2704 * graphite-poly.c (new_gimple_poly_bb): ... here.
2705 (free_data_refs_aux): ... here.
2706 (free_gimple_poly_bb): ... here.
2707 (remove_gbbs_in_scop): ... here.
2708 (new_scop): Call new_sese.
2709 (free_scop): Call remove_gbbs_in_scop and free_sese.
2710 * graphite-poly.h (base_alias_pair): ... here.
2711 (new_gimple_poly_bb): Declare.
2712 (free_gimple_poly_bb): Declare.
2713 * graphite-scop-detection.c (parameter_index_in_region_1):
2714 (parameter_index_in_region): ... here.
2715 (scan_tree_for_params): ... here.
2716 (find_params_in_bb): ... here.
2717 (find_scop_parameters): ... here.
2718 (build_scops): Call find_scop_parameters.
2719 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2720 (free_scops): Move...
2721 (single_pred_cond_non_loop_exit): Move...
2722 (sese_dom_walker::before_dom_children): Move...
2723 (sese_dom_walker::after_dom_children): Move...
2724 (build_poly_scop): Move...
2725 * graphite-sese-to-poly.h (base_alias_pair): Move...
2726 * graphite.c (free_scops): ... here.
2727
2728 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2729 Sebastian Pop <s.pop@samsung.com>
2730
2731 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2732 (trivially_empty_bb_p): Move...
2733 (same_close_phi_node): Move...
2734 (new_gimple_poly_bb): Move...
2735 (compare_bb_depths): Move...
2736 (graphite_sort_dominated_info): Move...
2737 (remove_duplicate_close_phi): Move...
2738 (make_close_phi_nodes_unique): Move...
2739 (canonicalize_loop_closed_ssa): Move...
2740 (canonicalize_loop_closed_ssa_form): Move...
2741 (loop_ivs_can_be_represented): Move...
2742 (single_pred_cond_non_loop_exit): Move...
2743 (graphite_can_represent_init): Move...
2744 (graphite_can_represent_scev): Move...
2745 (stmt_has_simple_data_refs_p): Move...
2746 (stmt_has_side_effects): Move...
2747 (graphite_can_represent_stmt): Move...
2748 (scop_detection): ... here.
2749 (sese_dom_walker): ... and here.
2750 (build_scops): Call all moved functions.
2751 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
2752 (all_non_dominated_preds_marked_p): Move...
2753 (build_scop_bbs_1): Move...
2754 (build_scop_bbs): Move...
2755 (set_scop_parameter_dim): Move...
2756 (nb_pbbs_in_loops): Move...
2757 (build_poly_scop): Do not call all the moved functions.
2758
2759 2015-10-05 Martin Jambor <mjambor@suse.cz>
2760 Jan Hubicka <hubicka@ucw.cz>
2761
2762 * ipa-cp.c (ipcp_alignment_lattice): New type.
2763 (ipcp_param_lattices): Use the above to represent alignment.
2764 (ipcp_alignment_lattice::print): New function.
2765 (print_all_lattices): Use it to print alignment information.
2766 (ipcp_alignment_lattice::top_p): New function.
2767 (ipcp_alignment_lattice::bottom_p): Likewise.
2768 (ipcp_alignment_lattice::set_to_bottom): Likewise.
2769 (ipcp_alignment_lattice::meet_with_1): Likewise.
2770 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
2771 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
2772 (initialize_node_lattices): Likewise.
2773 (propagate_alignment_accross_jump_function): Work with the new class
2774 for alignment lattices.
2775 (propagate_constants_accross_call): Pass only the alignment lattice to
2776 propagate_alignment_accross_jump_function.
2777 (ipcp_store_alignment_results): Work with the new class for alignment
2778 lattices.
2779
2780 2015-10-05 Marek Polacek <polacek@redhat.com>
2781
2782 PR tree-optimization/67821
2783 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2784
2785 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
2786
2787 PR other/65021
2788 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
2789 function to...
2790 (mkoffload_cleanup): ... this. Adjust all users.
2791 (maybe_unlink): Look at save_temps and verbose flags instead of
2792 debug flag.
2793 (main): Parse "-save-temps" flag.
2794 (generate_target_descr_file, generate_target_offloadend_file)
2795 (generate_host_descr_file, prepare_target_image): Pass it on.
2796 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
2797 (mkoffload_cleanup): New function.
2798 (maybe_unlink): Look at save_temps and verbose flags instead of
2799 debug flag.
2800 (main): Instead of calling utils_cleanup, register atexit handler
2801 for mkoffload_cleanup.
2802 (main): Parse "-save-temps" flag.
2803 (compile_native, main): Pass it on.
2804 * lto-wrapper.c (compile_offload_image): Likewise.
2805
2806 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2807
2808 * gimple.h (gimple_op_ptr): Require a non const gimple *.
2809 (gimple_assign_lhs_ptr): Likewise.
2810 (gimple_assign_rhs1_ptr): Likewise.
2811 (gimple_assign_rhs2_ptr): Likewise.
2812 (gimple_assign_rhs3_ptr): Likewise.
2813 (gimple_call_lhs_ptr): Likewise.
2814 (gimple_call_fn_ptr): Likewise.
2815 (gimple_call_chain_ptr): Likewise.
2816 (gimple_call_arg_ptr): Likewise.
2817 (gimple_cond_lhs_ptr): Likewise.
2818 (gimple_cond_rhs_ptr): Likewise.
2819 (gimple_switch_index_ptr): Likewise.
2820 (gimple_return_retval_ptr): Likewise.
2821
2822 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2823
2824 * gimple.h (gimple_asm_input_op_ptr): Remove.
2825 (gimple_asm_output_op_ptr): Likewise.
2826
2827 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2828
2829 * gimple.h (gimple_location_ptr): Remove.
2830 * tree-vrp.c (check_all_array_refs): Adjust.
2831
2832 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2833
2834 * tree-ssa-operands.c (build_uses): store tree * instead of
2835 tree.
2836 (finalize_ssa_uses): Adjust.
2837 (append_use): Likewise.
2838 (verify_ssa_operands): Likewise.
2839
2840 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2841
2842 * real.h (build_real_truncate): Declare.
2843 * tree.c (build_real_truncate): New function.
2844 (strip_float_extensions): Use it.
2845 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
2846 (fold_builtin_hypot, fold_builtin_pow): Likewise.
2847 * match.pd: Likewise.
2848
2849 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
2850 Jiong Wang <jiong.wang@arm.com>
2851
2852 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
2853
2854 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2855
2856 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
2857 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
2858 (aarch64_print_operand, aarch64_float_const_representable_p)
2859 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
2860 instead of REAL_VALUE_FROM_CONST_DOUBLE.
2861 * config/arc/arc.c (arc_print_operand): Likewise.
2862 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
2863 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
2864 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
2865 Likewise.
2866 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
2867 (consttable_16): Likewise.
2868 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
2869 * config/avr/avr.c (avr_print_operand): Likewise.
2870 * config/bfin/bfin.md: Likewise (in a define_split).
2871 * config/c6x/c6x.md: Likewise (in a define_split).
2872 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
2873 (cr16_print_operand): Likewise.
2874 * config/cris/cris.c (cris_print_operand): Likewise.
2875 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
2876 * config/fr30/fr30.c (fr30_print_operand): Likewise.
2877 (fr30_const_double_is_zero): Likewise.
2878 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
2879 * config/frv/frv.md: Likewise (in a define_split).
2880 * config/frv/predicates.md (int_2word_operand): Likewise.
2881 * config/h8300/h8300.c (h8300_print_operand): Likewise.
2882 * config/i386/i386.c (standard_80387_constant_p): Likewise.
2883 (ix86_print_operand, ix86_split_to_parts): Likewise.
2884 * config/i386/i386.md: Likewise (in a define_split).
2885 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
2886 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
2887 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
2888 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
2889 (print_operand): Likewise.
2890 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
2891 * config/mep/mep.md: Likewise (in define_split).
2892 * config/microblaze/microblaze.c (microblaze_const_double_ok)
2893 (print_operand): Likewise.
2894 * config/mips/mips.md (consttable_float): Likewise.
2895 * config/mmix/mmix.c (mmix_intval): Likewise.
2896 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
2897 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
2898 * config/pa/pa.c (pa_singlemove_string): Likewise.
2899 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
2900 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
2901 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
2902 (output_toc): Likewise.
2903 * config/rs6000/rs6000.md: Likewise (in define_splits).
2904 * config/rx/rx.c (rx_print_operand): Likewise.
2905 * config/s390/s390.c (s390_output_pool_entry): Likewise.
2906 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
2907 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
2908 (and also in define_splits).
2909 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
2910 (fp_high_losum_p): Likewise.
2911 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
2912 (*movsf_high): Likewise.
2913 * config/spu/spu.c (const_double_to_hwint): Likewise.
2914 * config/v850/v850.c (const_double_split): Likewise.
2915 * config/vax/vax.c (vax_float_literal): Likewise.
2916 * config/visium/visium.c (visium_expand_copysign): Likewise.
2917 * config/visium/visium.md: Likewise (in define_split).
2918 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
2919 * config/xtensa/xtensa.c (print_operand): Likewise.
2920 (xtensa_output_literal): Likewise.
2921 * cprop.c (implicit_set_cond_p): Likewise.
2922 * dwarf2out.c (insert_float): Likewise.
2923 * expmed.c (expand_mult, make_tree): Likewise.
2924 * expr.c (compress_float_constant): Likewise.
2925 * rtlanal.c (split_double): Likewise.
2926 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2927 (simplify_const_unary_operation, simplify_binary_operation_1)
2928 (simplify_const_binary_operation): Likewise.
2929 (simplify_const_relational_operation): Likewise.
2930 * varasm.c (output_constant_pool_2): Likewise.
2931
2932 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2933
2934 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
2935 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2936 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
2937 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
2938 instead of CONST_DOUBLE_FROM_REAL_VALUE.
2939 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
2940 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
2941 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
2942 (ix86_emit_swsqrtsf): Likewise.
2943 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
2944 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
2945 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2946 * config/pa/pa.c (pa_expand_builtin): Likewise.
2947 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
2948 (rs6000_scale_v2df): Likewise.
2949 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
2950 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
2951 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
2952 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
2953 (vec_ctul): Likewise.
2954 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
2955 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
2956 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
2957 * cse.c (fold_rtx): Likewise.
2958 * emit-rtl.c (immed_double_const): Likewise (in comments).
2959 (init_emit_once): Likewise.
2960 * expr.c (compress_float_constant, expand_expr_real_1)
2961 (const_vector_from_tree): Likewise.
2962 * optabs.c (expand_float, expand_fix): Likewise.
2963 * reg-stack.c (reg_to_stack): Likewise.
2964 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
2965 (simplify_const_unary_operation, simplify_binary_operation_1)
2966 (simplify_const_binary_operation, simplify_relational_operation)
2967 (simplify_immed_subreg): Likewise.
2968
2969 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2970
2971 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
2972 * doc/tm.texi: Regenerate.
2973 * real.h (REAL_ARITHMETIC): Delete.
2974 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
2975 (ix86_expand_round_sse4): Use real_arithmetic instead of
2976 REAL_ARITHMETIC.
2977 * config/i386/sse.md (round<mode>2): Likewise.
2978 * rtl.h (rtx_to_tree_code): Likewise (in comment).
2979 * explow.c (rtx_to_tree_code): Likewise (in comment).
2980 * match.pd: Likewise.
2981 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2982 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
2983 (expand_pow_as_sqrts): Likewise.
2984 * tree-pretty-print.c (dump_generic_node): Remove code that
2985 was conditional on REAL_ARITHMETIC being undefined.
2986
2987 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2988
2989 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
2990 * doc/tm.texi: Regenerate.
2991 * real.h (real_less): Declare.
2992 (REAL_VALUES_LESS): Delete.
2993 * real.c (real_less): New function.
2994 (real_compare): Use it.
2995 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
2996 of REAL_VALUES_LESS.
2997 * config/microblaze/microblaze.c (microblaze_const_double_ok):
2998 Likewise.
2999 * fold-const.c (fold_convert_const_int_from_real): Likewise.
3000 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3001 (simplify_const_relational_operation): Likewise.
3002 * tree-call-cdce.c (check_pow): Likewise.
3003 (gen_conditions_for_pow_cst_base): Likewise.
3004
3005 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3006
3007 * real.h (REAL_VALUES_IDENTICAL): Delete.
3008 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3009 instead of REAL_VALUES_IDENTICAL.
3010 * fold-const.c (operand_equal_p): Likewise.
3011 * ipa-icf.c (sem_variable::equals): Likewise.
3012 * tree-complex.c (some_nonzerop): Likewise.
3013 (expand_complex_multiplication): Likewise.
3014 * tree.c (simple_cst_equal): Likewise.
3015 * varasm.c (compare_constant): Likewise.
3016
3017 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3018
3019 * real.h (real_equal): Declare.
3020 (REAL_VALUES_EQUAL): Delete.
3021 * real.c (real_equal): New function.
3022 (real_compare): Use it.
3023 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3024 * doc/tm.texi: Regenerate.
3025 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3026 real_equal instead of REAL_VALUES_EQUAL.
3027 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3028 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3029 (fp_const_from_val): Likewise.
3030 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3031 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3032 (floating_exact_log2): Likewise.
3033 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3034 * config/vax/vax.c (vax_float_literal): Likewise.
3035 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3036 * cprop.c (implicit_set_cond_p): Likewise.
3037 * expmed.c (expand_mult): Likewise.
3038 * fold-const.c (const_binop): Likewise.
3039 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3040 (simplify_const_binary_operation): Likewise.
3041 (simplify_const_relational_operation): Likewise.
3042 * tree-call-cdce.c (check_pow): Likewise.
3043 (gen_conditions_for_pow_cst_base): Likewise.
3044 * tree-inline.c (estimate_num_insns): Likewise.
3045 * tree-ssa-dom.c (record_equality): Likewise.
3046 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3047 (gimple_expand_builtin_pow): Likewise.
3048 (pass_optimize_widening_mul::execute): Likewise.
3049 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3050 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3051 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3052
3053 2015-10-05 Richard Biener <rguenther@suse.de>
3054
3055 PR ipa/67783
3056 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3057 consider loop header PHI defs as IVs.
3058
3059 2015-10-05 Richard Biener <rguenther@suse.de>
3060
3061 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3062 call handling ...
3063 (create_expression_by_pieces): ... here and build GIMPLE
3064 calls directly. Use gimple_build API and avoid force_gimple_operand.
3065 (insert_into_preds_of_block): Simplify.
3066 (do_regular_insertion): Add comment.
3067
3068 2015-10-04 Jason Merrill <jason@redhat.com>
3069
3070 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3071
3072 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
3073
3074 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3075 check for general register.
3076 (ix86_emit_save_regs): Ditto.
3077 (ix86_emit_save_regs_using_mov): Ditto.
3078 (ix86_emit_restore_regs_using_pop): Ditto.
3079 (ix86_emit_restore_regs_using_mov): Ditto.
3080
3081 2015-10-03 Marek Polacek <polacek@redhat.com>
3082
3083 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3084 (insn-dfatab.o): Likewise.
3085
3086 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
3087
3088 * config.gcc (xtensa*-*-uclinux*): New configuration.
3089 * config/xtensa/uclinux.h: New file.
3090 * config/xtensa/uclinux.opt: New file.
3091
3092 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
3093
3094 * doc/cpp.texi (Standard Predefined Macros): Document value of
3095 __cplusplus for C++14.
3096
3097 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
3098
3099 * gcc.c (process_command): Use spec_machine rather than
3100 spec_host_machine to build tooldir_prefix2.
3101
3102 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3103 Bernd Schmidt <bernds@codesourcery.com>
3104
3105 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3106 (Token, Stmt): Remove structs.
3107 (decls, vars, fns): Remove variables.
3108 (alloc_comment, append_stmt, is_keyword): Remove macros.
3109 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3110 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3111 (parse_init, parse_file): Remove functions.
3112 (read_file): Accept a pointer to a length and store into it.
3113 (process): Don't try to parse the input file, just write it out as
3114 a string, but looking for maps. Also write out the length.
3115 (main): Don't use "-S" to compile PTX code.
3116
3117 2015-10-02 Jeff Law <law@redhat.com>
3118
3119 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3120 fixups.
3121
3122 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3123
3124 PR target/67822
3125 * config/nvptx/mkoffload.c (main): Scan the argument vector for
3126 -fopenmp, and skip generating an offloading image if specified.
3127
3128 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
3129
3130 * system.h (ROUND_UP): New macro definition.
3131 (ROUND_DOWN): Ditto.
3132 * ggc-page.c (ROUND_UP): Remove local macro definition.
3133 (PAGE_ALIGN): Implement using ROUND_UP macro.
3134
3135 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3136 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3137 to align values.
3138 (ix86_compute_frame_layout): Ditto.
3139 (ix86_expand_prologue): Ditto.
3140 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3141 to round down values.
3142 (expand_set_or_movmem_via_rep): Ditto.
3143
3144 2015-10-02 Marek Polacek <polacek@redhat.com>
3145
3146 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3147
3148 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
3149
3150 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3151 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3152 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3153 (free_gimple_bb): Renamed free_gimple_poly_bb.
3154 (try_generate_gimple_bb): Hoist loop invariant code.
3155 (analyze_drs_in_stmts): Same.
3156 (build_scop_drs): Call renamed functions.
3157 (new_pbb_from_pbb): Same.
3158 (scop_ivs_can_be_represented): Delete as functionality now moved to
3159 graphite-scop-detection.c
3160 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3161
3162 2015-10-02 Aditya Kumar <hiraditya@msn.com>
3163
3164 * graphite-scop-detection.c (stmt_has_side_effects): New function
3165 outlined from stmt_simple_for_scop_p.
3166 (graphite_can_represent_stmt): Same.
3167 (stmt_simple_for_scop_p): Moved code out of this function for better
3168 readability.
3169
3170 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3171
3172 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3173 F_AVX512IFMA.
3174 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3175
3176 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3177
3178 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3179
3180 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
3181
3182 PR rtl-optimization/67756
3183 * lra-constraints.c (match_reload): Add a new parameter. Use it
3184 for creating a pseudo with the same value.
3185 (curr_insn_transform): Pass a new argument to match_reload.
3186
3187 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3188
3189 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3190 (expand_vec_perm_even_odd_1): Handle V64QImode.
3191 (ix86_expand_vec_perm_const_1): Try expansion with
3192 expand_vec_perm_even_odd_trunc as well.
3193 * config/i386/sse.md (VI124_AVX512F): Rename to ...
3194 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3195 to V54QI.
3196 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3197 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3198 to V32HI and V16SI.
3199 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3200 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3201 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3202 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3203 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3204 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3205
3206 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3207
3208 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3209 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3210
3211 2015-10-02 Jason Merrill <jason@redhat.com>
3212
3213 PR c/59218
3214 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3215 (diagnose_tm_1_op): Also diagnose volatile accesses in
3216 transaction_safe function.
3217
3218 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
3219
3220 * system.h (malloc.h): Don't include obsolete header.
3221
3222 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3223
3224 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3225 (TLS_SECTION_ASM_FLAG): Delete.
3226
3227 2015-10-02 Marek Polacek <polacek@redhat.com>
3228
3229 PR c/64249
3230 * doc/invoke.texi: Document -Wduplicated-cond.
3231 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3232 (insn-dfatab.o): Likewise.
3233 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3234 warning.
3235
3236 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
3237
3238 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3239 sequences.
3240
3241 2015-10-02 Renlin Li <renlin.li@arm.com>
3242
3243 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3244
3245 2015-10-02 Renlin Li <renlin.li@arm.com>
3246
3247 PR target/66776
3248 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3249
3250 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3251
3252 PR rtl-optimization/67786
3253 PR rtl-optimization/67787
3254 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3255 it modifies a reg used in the condition calculation.
3256
3257 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
3258
3259 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3260 alternatives for reads from memory and moves from general-purpose
3261 registers.
3262 (*aarch64_combinez_be<mode>): Likewise.
3263
3264 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
3265
3266 PR target/51726
3267 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3268 selectany within this function without need to keep attribute.
3269 (i386_pe_encode_section_info): Remove selectany-code.
3270
3271 2015-10-02 Richard Biener <rguenther@suse.de>
3272
3273 * tree-ssa-sccvn.c (has_VN_INFO): New function.
3274 (free_scc_vn): Use it.
3275 (visit_use): Remove dead code and refactor to use gassign
3276 and use less indentation.
3277
3278 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3279
3280 PR target/67788
3281 PR target/67789
3282 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3283 (rs6000_cannot_copy_insn_p): New function.
3284 * config/rs6000/rs6000.md (cannot_copy): New attribute.
3285 (load_toc_v4_PIC_1_normal): Set cannot_copy.
3286 (load_toc_v4_PIC_1_476): Ditto.
3287
3288 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3289
3290 * graphite-scop-detection.c (struct sese_l): New conversion constructor
3291 so that this type can be pushed into a vec.
3292 (class scop_builder): use sese_l to collect scops.
3293 (get_scops): New getter function.
3294 (remove_intersecting_scops): Use sese_l instead of scops_p.
3295 (intersects): Same.
3296 (add_scop): Same.
3297 (subsumes): Same.
3298 (remove_subscops): Same.
3299 (build_scops): Add scops to vec<scops_p> once all the scops have been
3300 detected.
3301
3302 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3303
3304 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3305 Renamed type from gimple_bb_p to gimple_poly_bb_p.
3306 (translate_isl_ast_node_user): Same.
3307 * graphite-poly.c (new_poly_bb): Same.
3308 * graphite-poly.h (gbb_from_bb): Same.
3309 * sese.h: Same.
3310 * graphite-sese-to-poly.c (new_gimple_bb):
3311 gimple_bb_p -> gimple_poly_bb_p
3312 (build_scop_scattering): Same.
3313 (find_params_in_bb): Same.
3314 (add_conditions_to_domain): Same.
3315 (sese_dom_walker::before_dom_children): Same.
3316 (analyze_drs_in_stmts): Same.
3317 (new_pbb_from_pbb): Same.
3318 (free_data_refs_aux): New pointer to type base_alias_pair.
3319 * graphite-sese-to-poly.h: Same.
3320 * sese.c (if_region_set_false_region): Fixed Indentation.
3321 (move_sese_in_condition): Same.
3322
3323 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3324 Aditya Kumar <aditya.k7@samsung.com>
3325
3326 PR tree-optimization/66980
3327 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3328 when data reference analysis has failed.
3329
3330 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3331 Aditya Kumar <aditya.k7@samsung.com>
3332
3333 PR tree-optimization/67754
3334 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3335 scev analysis on the same loop nest as analyze_drs_in_stmts.
3336 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3337 renamed...
3338 (try_generate_gimple_bb): Call outermost_loop_in_sese.
3339 (analyze_drs_in_stmts): Same.
3340 * sese.c (outermost_loop_in_sese): ...here.
3341
3342 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3343 Aditya Kumar <aditya.k7@samsung.com>
3344
3345 PR tree-optimization/67754
3346 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3347 recursion on the inner loops.
3348
3349 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3350
3351 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3352 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3353 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3354 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3355 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3356
3357 2015-10-01 Marek Polacek <polacek@redhat.com>
3358
3359 PR c/65345
3360 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3361 create_tmp_var_raw rather than create_tmp_var.
3362
3363 2015-10-01 Marek Polacek <polacek@redhat.com>
3364
3365 PR tree-optimization/67769
3366 * tree-ssa-phiopt.c (conditional_replacement): Call
3367 reset_flow_sensitive_info_in_bb.
3368 (minmax_replacement): Likewise.
3369 (abs_replacement): Likewise.
3370
3371 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
3372
3373 * builtins.c: Don't include gomp-constants.h.
3374 (fold_builtin_1): Don't fold acc_on_device here.
3375 * gimple-fold.c: Include gomp-constants.h.
3376 (gimple_fold_builtin_acc_on_device): New.
3377 (gimple_fold_builtin): Call it.
3378
3379 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
3380
3381 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3382 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3383
3384 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
3385
3386 * config/arm/aarch-common-protos.h
3387 (aarch_accumulator_forwarding): New.
3388 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3389 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3390 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3391 * config/arm/cortex-a53.md: Rewrite.
3392
3393 2015-10-01 Richard Biener <rguenther@suse.de>
3394
3395 * gimple-match.h (mprts_hook): Declare.
3396 * gimple-match.head.c (mprts_hook): Define.
3397 (maybe_push_res_to_seq): Use new hook.
3398 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3399 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3400 (vn_ssa_aux::has_constants): Remove.
3401 * tree-ssa-sccvn.c: Include gimple-match.h.
3402 (VN_INFO_GET): Assert we don't re-use SSA names.
3403 (vn_get_expr_for): Remove.
3404 (expr_has_constants): Likewise.
3405 (stmt_has_constants): Likewise.
3406 (simplify_binary_expression): Likewise.
3407 (simplify_unary_expression): Likewise.
3408 (vn_lookup_simplify_result): New hook.
3409 (visit_copy): Adjust.
3410 (visit_reference_op_call): Likewise.
3411 (visit_phi): Likewise.
3412 (visit_use): Likewise.
3413 (process_scc): Likewise.
3414 (init_scc_vn): Likewise.
3415 (visit_reference_op_load): Likewise. Use match-and-simplify and
3416 a gimple seq for inserted expressions.
3417 (try_to_simplify): Remove GENERIC stmt combining code.
3418 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3419 * tree-ssa-pre.c (eliminate_insert): Adjust.
3420 (eliminate_dom_walker::before_dom_children): Likewise.
3421
3422 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3423
3424 * doc/invoke.texi (Optimization Options): Add
3425 -freorder-blocks-algorithm=.
3426 (Optimize Options) <-O>: Add -freorder-blocks.
3427 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
3428 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3429 <-freorder-blocks>: Also enabled at levels -O and -Os.
3430 <-freorder-blocks-algorithm=>: Document new option.
3431
3432 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3433
3434 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3435 with flag_reorder_blocks_algorithm.
3436 * common.opt (freorder-blocks-algorithm=): New flag.
3437 (reorder_blocks_algorithm): New enum.
3438 * flag-types.h (reorder_blocks_algorithm): New enum.
3439 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3440 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3441
3442 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3443
3444 * bb-reorder.c: Add intro comment.
3445 (reorder_basic_blocks_software_trace_cache): Print a header to
3446 the dump file.
3447 (edge_order): New function.
3448 (reorder_basic_blocks_simple): New function.
3449 (reorder_basic_blocks): Choose between the STC and the simple
3450 algorithms (always choose the former).
3451
3452 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3453
3454 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3455 function, factored out from ...
3456 (reorder_basic_blocks): ... here.
3457
3458 2015-10-01 Tom de Vries <tom@codesourcery.com>
3459
3460 * tree-cfg.c (dump_function_to_file): Dump function attributes using
3461 __attribute__(()) string. Move dumping of function attributes to before
3462 function name.
3463
3464 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
3465
3466 PR target/66870
3467 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3468 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3469 based on gold linker version.
3470 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3471 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3472 * configure, config.in: Regenerate.
3473
3474 2015-10-01 Alan Modra <amodra@gmail.com>
3475
3476 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3477 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3478 (rs6000_output_mi_thunk): Likewise.
3479
3480 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3481
3482 * config/nvptx/mkoffload.c (process): Change offload data format.
3483
3484 2015-09-30 Jeff Law <law@redhat.com>
3485
3486 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3487 with constant conditions.
3488 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3489 (remove_ctrl_stmt_and_useless_edges): No longer static.
3490 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3491 (remove_ctrl_stmt_and_useless_edges): Likewise.
3492
3493 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3494 Cesar Philippidis <cesar@codesourcery.com>
3495
3496 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3497 (TARGET_GOACC_VALIDATE_DIMS): Override.
3498 * target.def (TARGET_GOACC): New target hook prefix.
3499 (validate_dims): New hook.
3500 * targhooks.h (default_goacc_validate_dims): New.
3501 * omp-low.c (oacc_validate_dims): New.
3502 (execute_oacc_device_lower): New.
3503 (default_goacc_validate_dims): New.
3504 (pass_data_oacc_device_lower): New.
3505 (pass_oacc_device_lower): New pass.
3506 (make_pass_oacc_device_lower): New.
3507 * tree-pass.h (make_pass_oacc_device_lower): Declare.
3508 * passes.def (pass_oacc_device_lower): Add it.
3509 * doc/tm.texi: Rebuilt.
3510 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3511 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3512
3513 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3514
3515 PR rtl-optimization/67037
3516 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3517
3518 2015-09-30 Bernd Schmidt <bernds@redhat.com>
3519
3520 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3521 * passes.c: Include tree-ssanames.h.
3522 (execute_function_todo): Flush the pending free SSA_NAMEs after
3523 eliminating unreachable basic blocks.
3524 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3525 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3526 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3527 (flush_ssanames_freelist): New function.
3528 (release_ssaname_fn): Put released names on the queue.
3529 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3530 * tree-ssanames.h (flush_ssanames_freelist): Declare.
3531
3532 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3533
3534 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3535 (generate_target_descr_file, generate_target_offloadend_file)
3536 (generate_host_descr_file, prepare_target_image): Pass it on.
3537 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3538 (compile_native, main): Pass it on.
3539 * lto-wrapper.c (compile_offload_image): Likewise.
3540
3541 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3542 Ilya Verbin <ilya.verbin@intel.com>
3543 Andrey Turetskiy <andrey.turetskiy@intel.com>
3544
3545 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3546 (prepare_target_image, main): Refactor argv building to use
3547 obstacks.
3548
3549 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3550
3551 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3552 * config/spu/spu.c (spu_expand_atomic_op): New function.
3553 * config/spu/spu.md (AINT): New mode iterator.
3554 (ATOMIC): New code iterator.
3555 (atomic_name, atomic_pred): New code predicates.
3556 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3557 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3558 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3559 "atomic_<atomic_name>_fetch<mode>"): Likewise.
3560
3561 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
3562
3563 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3564 debug insns.
3565 (scalar_chain::convert_reg): Likewise.
3566
3567 2015-09-30 Richard Biener <rguenther@suse.de>
3568
3569 * builtins.c: Add comment that no new simplifications should
3570 be added here.
3571
3572 2015-09-30 Marek Polacek <polacek@redhat.com>
3573
3574 PR tree-optimization/67690
3575 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3576 reset_flow_sensitive_info_in_bb.
3577 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3578 * tree-ssanames.c: Include "gimple-iterator.h".
3579 (reset_flow_sensitive_info_in_bb): New function.
3580 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3581
3582 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3583
3584 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3585 variable, replacing it with...
3586 (offload_abi): ... this new variable. Adjust all users.
3587 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3588
3589 2015-09-30 Matthias Klose <doko@ubuntu.com>
3590
3591 * configure.ac: Remove extraneous ;;.
3592 * configure: Regenerate.
3593
3594 2015-09-29 James Bowman <james.bowman@ftdichip.com>
3595
3596 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3597 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3598 predicate, disallow register for operand 2.
3599
3600 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
3601
3602 * graphite-dependences.c (scop_get_dependences): Moved in down
3603 in order to be visible to its caller.
3604 * graphite-poly.h: Removed compute_deps, and extend_schedule.
3605
3606 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3607 Aditya Kumar <aditya.k7@samsung.com>
3608
3609 PR tree-optimization/67754
3610 * graphite-optimize-isl.c (optimize_isl): Call
3611 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3612
3613 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
3614
3615 * builtins.c (expand_builtin_acc_on_device): Delete.
3616 (expand_builtin): Don't call it.
3617 (fold_builtin_1): Fold acc_on_device.
3618
3619 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
3620
3621 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3622 (ix86_nsaved_sseregs): Likewise.
3623
3624 2015-09-29 Jeff Law <law@redhat.com>
3625
3626 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3627 computation of unused value.
3628
3629 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3630 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3631 inline macro expansion.
3632
3633 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3634
3635 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3636 (gen_shl_sext): Likewise.
3637 * config/sh/sh.md (divsi3): Likewise.
3638 (imm->ext_dest_operand splitter): Likewise.
3639
3640 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3641 Aditya Kumar <aditya.k7@samsung.com>
3642
3643 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3644 (nb_data_writes_in_bb): Remove.
3645 (split_pbb): Remove.
3646 (split_reduction_stmt): Remove.
3647 (is_reduction_operation_p): Remove.
3648 (phi_contains_arg): Remove.
3649 (follow_ssa_with_commutative_ops): Remove.
3650 (detect_commutative_reduction_arg): Remove.
3651 (detect_commutative_reduction_assign): Remove.
3652 (follow_inital_value_to_phi): Remove.
3653 (edge_initial_value_for_loop_phi): Remove.
3654 (initial_value_for_loop_phi): Remove.
3655 (used_outside_reduction): Remove.
3656 (detect_commutative_reduction): Remove.
3657 (translate_scalar_reduction_to_array_for_stmt): Remove.
3658 (remove_phi): Remove.
3659 (dr_indices_valid_in_loop): Remove.
3660 (close_phi_written_to_memory): Remove.
3661 (translate_scalar_reduction_to_array): Remove.
3662 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3663 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3664 (rewrite_commutative_reductions_out_of_ssa): Remove.
3665 (build_poly_scop): Remove call to
3666 rewrite_commutative_reductions_out_of_ssa.
3667
3668 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
3669
3670 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3671 Add new insn types for vector load and store pairs.
3672 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3673 types "neon_ldp{,_q}".
3674 * config/arm/cortex-a57.md (neon_load_c): Add insn types
3675 "neon_ldp{,_q}".
3676 (neon_store_complex): Add insn types "neon_stp{,_q}".
3677 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3678 "neon_{ldp,stp}_q".
3679
3680 2015-09-29 Jeff Law <law@redhat.com>
3681
3682 * config/rx/constraints.md (Int08): Fix undefined left shift
3683 behaviour.
3684 (Sint08, Sint16, Sint24): Likewise.
3685 * config/rx/rx.c (rx_get_stack_layout): Likewise.
3686
3687 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3688 behaviour.
3689
3690 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3691 left shift behaviour.
3692 * config/msp430/constraints.md ('L' constraint): Similarly.
3693 ('Ys' constraint): Similarly.
3694
3695 2015-09-29 Richard Biener <rguenther@suse.de>
3696
3697 PR tree-optimization/67170
3698 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3699 the translate function pointer parameter to get the
3700 bool whether to disambiguate only by reference.
3701 (walk_non_aliased_vuses): Likewise.
3702 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3703 (get_continuation_for_phi_1): Likewise.
3704 (get_continuation_for_phi): Likewise.
3705 (walk_non_aliased_vuses): Likewise.
3706 * tree-ssa-sccvn.c (const_parms): New bitmap.
3707 (vn_reference_lookup_3): Adjust for interface change.
3708 Disambiguate parameters pointing to readonly memory.
3709 (free_scc_vn): Free const_parms.
3710 (run_scc_vn): Initialize const_parms from a fn spec attribute.
3711
3712 2015-09-29 Richard Biener <rguenther@suse.de>
3713
3714 PR tree-optimization/67741
3715 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3716 builtin calls with correct signature.
3717
3718 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
3719
3720 PR target/65105
3721 * config/i386/i386.c: Include dbgcnt.h.
3722 (has_non_address_hard_reg): New.
3723 (convertible_comparison_p): New.
3724 (scalar_to_vector_candidate_p): New.
3725 (remove_non_convertible_regs): New.
3726 (scalar_chain): New.
3727 (scalar_chain::scalar_chain): New.
3728 (scalar_chain::~scalar_chain): New.
3729 (scalar_chain::add_to_queue): New.
3730 (scalar_chain::mark_dual_mode_def): New.
3731 (scalar_chain::analyze_register_chain): New.
3732 (scalar_chain::add_insn): New.
3733 (scalar_chain::build): New.
3734 (scalar_chain::compute_convert_gain): New.
3735 (scalar_chain::replace_with_subreg): New.
3736 (scalar_chain::replace_with_subreg_in_insn): New.
3737 (scalar_chain::emit_conversion_insns): New.
3738 (scalar_chain::make_vector_copies): New.
3739 (scalar_chain::convert_reg): New.
3740 (scalar_chain::convert_op): New.
3741 (scalar_chain::convert_insn): New.
3742 (scalar_chain::convert): New.
3743 (convert_scalars_to_vector): New.
3744 (pass_data_stv): New.
3745 (pass_stv): New.
3746 (make_pass_stv): New.
3747 (ix86_option_override): Created and register stv pass.
3748 (flag_opts): Add -mstv.
3749 (ix86_option_override_internal): Likewise.
3750 * config/i386/i386.md (SWIM1248x): New.
3751 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
3752 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
3753 (*anddi3_doubleword): New.
3754 (*zext<mode>_doubleword): New.
3755 (*zextsi_doubleword): New.
3756 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
3757 (*<code>di3_doubleword): New.
3758 * config/i386/i386.opt (mstv): New.
3759 * dbgcnt.def (stv_conversion): New.
3760
3761 2015-09-29 Tom de Vries <tom@codesourcery.com>
3762
3763 * tree-cfg.c (dump_function_to_file): Dump function attributes.
3764
3765 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3766
3767 PR target/67716
3768 * config/sh/sh.c (sh_override_options_after_change): New.
3769 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3770 (sh_option_override): Move align_loops, align_jumps and
3771 align_functions handling into sh_override_options_after_change.
3772
3773 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3774
3775 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
3776 (nvptx_record_offload_symbol): Record function execution geometry.
3777 * config/nvptx/mkoffload.c (process): Include launch geometry in
3778 function data.
3779 * omp-low.c (oacc_launch_pack): New.
3780 (replace_oacc_fn_attrib): New.
3781 (set_oacc_fn_attrib): New.
3782 (get_oacc_fn_attrib): New.
3783 (expand_omp_target): Create keyed varargs for GOACC_parallel call
3784 generation.
3785 * omp-low.h (get_oacc_fn_attrib): Declare.
3786 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
3787 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3788 * tree.h (OMP_CLAUSE_EXPR): New.
3789 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
3790
3791 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3792 Sebastian Pop <s.pop@samsung.com>
3793
3794 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
3795
3796 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3797 Sebastian Pop <s.pop@samsung.com>
3798
3799 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
3800 * graphite-scop-detection.c (struct sese_l): New type.
3801 (get_entry_bb): API for getting entry bb of SESE.
3802 (get_exit_bb): API for getting exit bb of SESE.
3803 (class debug_printer): New type. Simple printer in debug mode.
3804 (trivially_empty_bb_p): New. Return true when BB is empty or
3805 contains only debug instructions.
3806 (graphite_can_represent_expr): Call scalar_evoution_in_region
3807 instead of analyze_scalar_evolution. Pass in scop instead of only
3808 the scop entry.
3809 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
3810 scop entry.
3811 (stmt_simple_for_scop_p): Same.
3812 (harmful_stmt_in_bb): Same.
3813 (graphite_can_represent_loop): Deleted.
3814 (struct scopdet_info): Deleted.
3815 (scopdet_basic_block_info): Deleted.
3816 (build_scops_1): Deleted.
3817 (bb_in_sd_region): Deleted.
3818 (find_single_entry_edge): Deleted.
3819 (find_single_exit_edge): Deleted.
3820 (create_single_entry_edge): Deleted.
3821 (sd_region_without_exit): Deleted.
3822 (create_single_exit_edge): Deleted.
3823 (unmark_exit_edges): Deleted.
3824 (mark_exit_edges): Deleted.
3825 (create_sese_edges): Deleted.
3826 (build_graphite_scops): Deleted.
3827 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
3828 (build_scops): Use the new scop_builder to build scops.
3829 (dot_all_scops_1): Use the new pretty printer. Print loop father
3830 as well.
3831 (loop_body_is_valid_scop): New. Return true if loop body is a
3832 valid scop.
3833 (class scop_builder): New. Builds SCoPs for polyhedral
3834 optimizations.
3835 (scop_builder): New constructor.
3836 (static sese_l invalid_sese): sese_l with invalid edges.
3837 (get_sese): Get an sese (from a loop) if possible, invalid_sese
3838 otherwise.
3839 (get_nearest_dom_with_single_entry): Get nearest dominator of a
3840 basic_block with single entry. Return NULL if we get to the
3841 beginning of a function.
3842 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
3843 a basic_block with single exit. Return NULL if we get to the
3844 beginning of a function.
3845 (print_sese): Pretty-print SESE.
3846 (merge_sese): Merge two SESEs if possible and return the new SESE.
3847 (build_scop_depth): Start building the SCoP within a loop nest.
3848 (build_scop_breadth): Start building the SCoP at a single loop
3849 depth. Merge adjacent SESEs if valid.
3850 (can_represent_loop_1): Returns true if Graphite can represent
3851 loop inside SCoP. Helper for can_represent_loop.
3852 (can_represent_loop): Returns true if Graphite can represent LOOP
3853 and all its nested loops in SCoP.
3854 (loop_is_valid_scop): Returns true if LOOP and all its nests
3855 constitute a valid SCoP.
3856 (region_has_one_loop): Returns true of a region has only one loop.
3857 (add_scop): Add SCoP to the list of valid scops. Removes an
3858 already existing scop if it intersects with or subsumed by this one.
3859 (harmful_stmt_in_region): Returns true if SCoP has any statment
3860 which cannot be represented by Graphite.
3861 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
3862 (remove_subscops): Remove any SCoP from the list of already found
3863 SCoPs, if subsumed by S1.
3864 (intersects): Return true if region bounded by SCoPs S1 and S2
3865 intersect.
3866 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
3867 * graphite.c (print_graphite_scop_statistics):
3868 (print_graphite_statistics): Print SCoP info while debugging.
3869 (graphite_initialize): Early exit in case number of loops in a
3870 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
3871 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3872 (graphite_finalize):
3873 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
3874 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
3875 (recompute_all_dominators): Recalculate POST_DOMINATORS.
3876 * tree-cfg.c (print_loops): Print the function name while printing
3877 loops.
3878
3879 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
3880 Sebastian Pop <s.pop@samsung.com>
3881
3882 PR tree-optimization/67700
3883 * graphite-sese-to-poly.c (parameter_index_in_region): Call
3884 invariant_in_sese_p_rec.
3885 (extract_affine): Same.
3886 (rewrite_cross_bb_scalar_deps): Call update_ssa.
3887 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
3888 * sese.h (invariant_in_sese_p_rec): Declare.
3889
3890 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
3891
3892 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
3893
3894 2015-09-28 Jiong Wang <jiong.wang@arm.com>
3895
3896 Revert:
3897 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3898 Jiong Wang <jiong.wang@arm.com>
3899
3900 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3901 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3902 (REG_CLASS_NAMES): Likewise.
3903 (REG_CLASS_CONTENTS): Likewise.
3904 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3905 (aarch64_register_move_cost): Likewise.
3906 (aarch64_load_symref_appropriately): Invoke the new added pattern if
3907 possible.
3908 * config/aarch64/constraints.md (Uc0): New constraint.
3909
3910 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
3911
3912 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
3913
3914 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
3915
3916 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
3917 SECTION_EXCLUDE in XO mapping class.
3918
3919 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
3920
3921 PR target/54236
3922 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
3923 and handle ne and eq codes.
3924 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
3925 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
3926 CONST_INT_P. Use reverse_condition.
3927 (sh_split_treg_set_expr): Likewise.
3928
3929 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
3930
3931 * config/arm/types.md (type): Add rotate_imm.
3932 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
3933 ROR immediate case.
3934 (*rorsi3_insn_uxtw): Likewise.
3935 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
3936 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
3937 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
3938
3939 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3940
3941 PR rtl-optimization/67481
3942 * ifcvt.c (contains_ccmode_rtx_p): New function.
3943 (insn_valid_noce_process_p): Use it.
3944
3945 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3946
3947 PR rtl-optimization/67456
3948 PR rtl-optimization/67464
3949 PR rtl-optimization/67465
3950 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
3951 move in the mode of x. Handle combination of complex and simple
3952 block pairs as well as the case when one is empty.
3953
3954 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3955
3956 * doc/gimple.texi: Update references to gimple_statement_base.
3957 * gdbhooks.py: Likewise.
3958 * gimple.h: Likewise.
3959
3960 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3961
3962 * config/sparc/driver-sparc.c: map LEON to leon3
3963
3964 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3965
3966 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
3967 and make it inverse to change default
3968 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
3969 supervisor mode
3970 * doc/invoke.texi: Document change of default
3971
3972 2015-09-28 Daniel Cederman <cederman@gaisler.com>
3973
3974 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
3975 true on %f0 for a target without FPU.
3976 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
3977 without FPU.
3978 (untyped_return): Do not load %f0 for a target without FPU.
3979
3980 2015-09-28 Andrew Pinski <apinski@cavium.com>
3981
3982 * config/aarch64/aarch64.md (prefetch):
3983 Change the predicate of operand 0 to register_operand.
3984
3985 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
3986
3987 * config/i386/predicates.md (register_sse4nonimm_operand): New
3988 predicate.
3989 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
3990 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
3991 Use register_sse4nonimm_operand as operand 0 predicate.
3992 (*vec_extractv8hi_sse2): Remove insn pattern.
3993 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
3994 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
3995
3996 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
3997 Kaz Kojima <kkojima@gcc.gnu.org>
3998
3999 PR target/67391
4000 * config/sh/sh-protos.h (sh_lra_p): Declare.
4001 * config/sh/sh.c (sh_lra_p): Make non-static.
4002 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4003 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
4004 Expand into addsi3_scr if operands[2] if needed.
4005 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
4006 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
4007 (addsi3_scr, *addsi3): New insn_and_split patterns.
4008
4009 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
4010
4011 PR rtl-optimization/64164
4012 PR tree-optimization/67312
4013 PR middle-end/67340
4014 PR middle-end/67490
4015 PR bootstrap/67597
4016 * cfgexpand.c (parm_in_stack_slot_p): Remove.
4017 (ssa_default_def_partition): Remove.
4018 (get_rtl_for_parm_ssa_default_def): Remove.
4019 (set_rtl): Check that RTL assignments match expectations.
4020 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
4021 default def location for params and results. Record SSA names
4022 or types in REG and MEM attrs, respectively.
4023 (set_parm_rtl): New.
4024 (expand_one_ssa_partition): Drop logic that assigned MEMs with
4025 unassigned addresses.
4026 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4027 deferred stack alloc vars.
4028 (expand_used_vars): Skip partitions holding parm default defs.
4029 Move adjust_one_expanded_partition_var loop...
4030 (pass_expand::execute): ... here. Drop redundant assert.
4031 Adjust comments before the final loop over all ssa names.
4032 Require assigned rtl of parms and results to match exactly.
4033 Reset its attributes to match them, not any other variables in
4034 the same partition.
4035 (expand_debug_expr): Use entry value for PARM's default defs
4036 only iff they have zero nondebug uses.
4037 * cfgexpand.h (parm_in_stack_slot_p): Remove.
4038 (get_rtl_for_parm_ssa_default_def): Remove.
4039 (set_parm_rtl): Declare.
4040 * doc/invoke.texi: Improve wording.
4041 * explow.c (promote_decl_mode): Fix promote_function_mode for
4042 result decls not by reference.
4043 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4044 bypass TYPE_MODE to get the actual vector mode.
4045 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
4046 2015-08-19's changes as follows. Drop include of
4047 basic-block.h and df.h.
4048 (rtl_for_parm): Remove.
4049 (maybe_reset_rtl_for_parm): Remove.
4050 (parm_in_unassigned_mem_p): Remove.
4051 (use_register_for_decl): Add logic for RESULT_DECLs matching
4052 assign_parms' behavior.
4053 (split_complex_args): Revert.
4054 (assign_parms_augmented_arg_list): Revert. Add comment
4055 referencing the logic above.
4056 (assign_parm_adjust_stack_rtl): Revert.
4057 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
4058 of SET_DECL_RTL. Set up a REG if the parm demands so.
4059 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
4060 calls into a single set_parm_rtl. Set up a temporary RTL
4061 temporarily for expand_assignment.
4062 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
4063 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
4064 (assign_bounds): Revert.
4065 (assign_parms): Revert. Use set_parm_rtl.
4066 (allocate_struct_function): Relayout result and parms of
4067 non-abstruct functions.
4068 (expand_function_start): Revert. Use set_parm_rtl. If the
4069 result is not a hard reg, create a pseudo from the promoted
4070 mode of the default def. Promote static chain mode.
4071 * tree-outof-ssa.c (remove_ssa_form): Drop unused
4072 partition_has_default_def. Set up
4073 partitions_for_parm_default_defs.
4074 (finish_out_of_ssa): Remove partition_has_default_def.
4075 Release partitions_for_parm_default_defs.
4076 * tree-outof-ssa.h (struct ssaexpand): Remove
4077 partition_has_default_def. Add
4078 partitions_for_parm_default_defs.
4079 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4080 stor-layout.h.
4081 (build_ssa_conflict_graph): Fix conflict-detection of default
4082 defs of even unused default defs of params and results.
4083 (for_all_parms): New.
4084 (create_default_def): New.
4085 (register_default_def): New.
4086 (coalesce_with_default): New.
4087 (create_outofssa_var_map): Create default defs for all parms
4088 and results, and register their partitions. Add GIMPLE_RETURN
4089 operands as coalesce candidates with results. Add default
4090 defs of each parm or result as coalesce candidates with its
4091 other defs. Mark each result def, and each default def of
4092 parms, as used_in_copy.
4093 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
4094 with the ssa names, even anonymous ones. Drop
4095 parm_in_stack_slot_p calls. Require same signedness and
4096 alignment.
4097 (coalesce_ssa_name): Add coalesce candidates for all defs of
4098 each parm and result, even unused ones.
4099 (parm_default_def_partition_arg): New type.
4100 (set_parm_default_def_partition): New.
4101 (get_parm_default_def_partitions): New.
4102 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4103 * tree-ssa-live.c (partition_view_init): Regard unused defs of
4104 parms and results as used.
4105 (verify_live_on_entry): Don't error out just because they're
4106 not live.
4107
4108 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
4109
4110 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4111 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4112 (output_fde): Don't output length for debug_frame on AIX.
4113 (output_call_frame_info): Don't output length for debug_frame on AIX.
4114 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4115 HAVE_XCOFF_DWARF_EXTRAS.
4116 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4117 HAVE_XCOFF_DWARF_EXTRAS.
4118 (output_compilation_unit_header): Don't output length on AIX.
4119 (output_pubnames): Don't output length on AIX.
4120 (output_aranges): Delete argument. Compute length locally. Don't
4121 output length on AIX.
4122 (output_line_info): Don't output length on AIX.
4123 (dwarf2out_finish): Don't compute aranges_length.
4124 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4125 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4126 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4127 symbol decoration for AIX.
4128 (rs6000_xcoff_debug_unwind_info): New.
4129 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4130 for SECTION_DEBUG.
4131 (rs6000_xcoff_declare_function_name): Emit different
4132 .function pseudo-op when DWARF2_DEBUG. Don't call
4133 xcoffout_declare_function for DWARF2_DEBUG.
4134 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4135 Redefine.
4136 * config/rs6000/aix71.h: New.
4137 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4138 locations support.
4139 * configure: Regenerate.
4140 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4141 DWARF support.
4142
4143 2015-09-26 Jeff Law <law@redhat.com>
4144
4145 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4146 behaviour.
4147 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4148 behaviour.
4149
4150 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4151 behaviour
4152
4153 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4154 undefined behaviour.
4155
4156 * config/cris/cris.md (asrandb): Fix left shift undefined
4157 behaviour.
4158 (asrandw): Likewise.
4159
4160 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
4161
4162 PR target/61578
4163 * lra-constarints.c (match_reload): Check presence of the input pseudo
4164 in the output operand.
4165
4166 2015-09-25 Tobias Burnus <burnus@net-b.de>
4167
4168 * doc/invoke.texi (-fsanitize): Minor wording tweak.
4169
4170 2015-09-25 Tobias Burnus <burnus@net-b.de>
4171
4172 * doc/invoke.texi (-fsanitize): Update URLs.
4173
4174 2015-09-25 Teresa Johnson <tejohnson@google.com>
4175
4176 * opts.c (finish_options): Unset -freorder-blocks-and-partition
4177 if not using profile.
4178
4179 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4180
4181 PR pretty-print/67567
4182 * pretty-print.c (pp_string): Add gcc_checking_assert.
4183 * pretty-print.h (output_buffer_append_r): Likewise.
4184
4185 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4186
4187 PR target/67675
4188 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4189 addr2 individually. Don't emit logical or insn if one is known to
4190 be aligned approriately.
4191 (sh_expand_cmpnstr): Likewise.
4192
4193 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
4194
4195 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4196 __builtin_aarch64_fp[sc]r arguments into a register.
4197
4198 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
4199
4200 * config.gcc (x86_archs): Replace lakemount with lakemont.
4201 (with_cpu): Likewise.
4202 (with_arch): Likewise.
4203 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4204 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
4205 __tune_lakemount__ with __tune_lakemont__.
4206 * config/i386/i386.c (lakemount_cost): Renamed to ...
4207 (lakemont_cost): This.
4208 (m_LAKEMOUNT): Renamed to ...
4209 (m_LAKEMONT): This.
4210 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4211 (processor_target_table): Replace "lakemount" with "lakemont".
4212 (processor_alias_table): Likewise.
4213 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4214 PROCESSOR_LAKEMONT.
4215 (ix86_adjust_cost): Likewise.
4216 (ia32_multipass_dfa_lookahead): Likewise.
4217 * config/i386/i386.h (processor_type): Likewise.
4218 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4219 * doc/invoke.texi: Replace lakemount with lakemont. Replace
4220 Lakemount with Lakemont.
4221
4222 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
4223
4224 * config.gcc (x86_archs): Replace iamcu with lakemount.
4225 (with_cpu): Likewise.
4226 (with_arch): Likewise.
4227 * doc/invoke.texi: Likewise.
4228 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4229 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
4230 __tune_iamcu__ with __tune_lakemount__.
4231 * config/i386/i386.c (iamcu_cost): Renamed to ...
4232 (lakemount_cost): This.
4233 (m_IAMCU): Renamed to ...
4234 (m_LAKEMOUNT): This.
4235 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4236 (processor_target_table): Replace "iamcu" with "lakemount".
4237 (processor_alias_table): Likewise.
4238 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4239 PROCESSOR_LAKEMOUNT.
4240 (ix86_adjust_cost): Likewise.
4241 (ia32_multipass_dfa_lookahead): Likewise.
4242 * config/i386/i386.h (processor_type): Likewise.
4243 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4244
4245 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
4246
4247 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4248 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4249 Declare.
4250 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4251 (pa_expand_compare_and_swap_loop): New.
4252 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4253 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4254 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4255 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4256 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4257 Revise.
4258
4259 2015-09-24 Michael Collison <michael.collison@linaro.org>
4260
4261 PR other/57195
4262 * read-md.c (read_name): Allow mode iterators inside angle
4263 brackets in rtl expressions.
4264
4265 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
4266
4267 PR target/61578
4268 * ira-color.c (update_allocno_cost): Add parameter.
4269 (update_costs_from_allocno): Decrease conflict cost. Pass the new
4270 parameter.
4271
4272 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
4273
4274 PR driver/67640
4275 * opts-common.c (prune_options): Discard all -fdiagnostics-color
4276 but the last one, which is moved to the front to be processed
4277 first.
4278 * opts.c (enable_warning_as_error): Reject options that do not
4279 control warnings.
4280
4281 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4282
4283 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4284
4285 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4286
4287 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4288 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4289 (aarch64_cannot_force_const_mem): Likewise.
4290 (aarch64_classify_address): Likewise.
4291 (aarch64_classify_symbolic_expression): Likewise.
4292 (aarch64_print_operand): Likewise.
4293 (aarch64_classify_symbol): Likewise.
4294 (aarch64_mov_operand_p): Likewise.
4295 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4296 (aarch64_mov_operand): Likewise.
4297
4298 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
4299
4300 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4301 for info->spe_gp_size.
4302
4303 2015-09-24 Richard Biener <rguenther@suse.de>
4304
4305 PR lto/67699
4306 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4307 abstract origins.
4308
4309 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
4310
4311 * tree-object-size.c (plus_stmt_object_size)
4312 (cond_expr_object_size): Change the formal parameters from gimple
4313 to gimple *.
4314 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4315 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4316 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4317
4318 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4319
4320 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4321 Check for ld -type pie on Solaris 11.x and 12.
4322 * configure: Regenerate.
4323 * config.in: Regenerate.
4324
4325 * gcc.c (LD_PIE_SPEC): Allow redefinition.
4326
4327 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4328 (STARTFILE_SPEC): Use it.
4329 (ENDFILE_CRTEND_SPEC): Define.
4330 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4331 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4332 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4333 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4334 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4335 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4336 (ENDFILE_ARCH_SPEC): Define.
4337 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4338
4339 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4340
4341 * configure.ac (gcc_cv_solaris_crts): New test.
4342 * configure. Regenerate.
4343 * config.in: Regenerate.
4344 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4345 HAVE_SOLARIS_CRTS variant.
4346
4347 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4348
4349 * tree-inline.h (count_insns_seq): Delete prototype.
4350 (estimate_num_insns_seq): Define prototype.
4351 * tree-inline.c (count_insns_seq): Delete.
4352 (estimate_num_insns_seq): Remove static qualifier.
4353 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4354 with estimate_num_insns_seq.
4355
4356 2015-09-24 Richard Biener <rguenther@suse.de>
4357
4358 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4359 members.
4360 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4361 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
4362 offset.
4363 (ao_ref_init_from_vn_reference): Record clique and base in the
4364 built base.
4365 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4366
4367 2015-09-24 Richard Biener <rguenther@suse.de>
4368
4369 PR tree-optimization/48885
4370 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4371 as not including any restrict tags from other pointers.
4372
4373 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4374
4375 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4376 character when appending to offload_targets.
4377
4378 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4379 offload targets by commas, not colons.
4380 * config.in: Regenerate.
4381 * configure: Likewise.
4382 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4383 instead of setting up the default offload targets here...
4384 (process_command): ..., do it here.
4385 libgomp/
4386 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4387 targets are separated by commas.
4388 * config.h.in: Regenerate.
4389
4390 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4391 Nathan Sidwell <nathan@codesourcery.com>
4392
4393 * omp-low.h (omp_reduction_init_op): Declare.
4394 * omp-low.c (omp_reduction_init_op): New, broken out of ...
4395 (omp_reduction_init): ... here. Call it.
4396 * tree-parloops.c (initialize_reductions): Use
4397 omp_reduction_init_op.
4398
4399 2015-09-23 Richard Biener <rguenther@suse.de>
4400
4401 PR middle-end/67662
4402 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4403 undefined overflow unless they will cancel out.
4404
4405 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4406
4407 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4408 insn emit.
4409
4410 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4411
4412 PR c/49655
4413 * opts.h (write_langs): Declare.
4414 * opts-global.c (write_langs): Make it extern.
4415
4416 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
4417
4418 PR target/67391
4419 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4420 overlapping regs when matching the pattern.
4421
4422 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4423
4424 * config/aarch64/aarch64-simd.md
4425 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4426 (aarch64_float_truncate_hi_v4sf_le): New.
4427 (aarch64_float_truncate_hi_v4sf_be): Likewise.
4428
4429 2015-09-23 Richard Biener <rguenther@suse.de>
4430
4431 * tree-ssa-structalias.c (intra_create_variable_infos): Build
4432 representatives for all restrict qualified pointer destinations.
4433
4434 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4435
4436 * config/i386/i386.md (define_code_attr mshift): New.
4437 (define_mode_iterator SWI1248_AVX512BW): Rename ...
4438 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4439 only.
4440 (define_insn "*k<logic><mode>"): Use new iterator name.
4441 (define_insn "*<mshift><mode>3"): New.
4442
4443 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
4444
4445 PR middle-end/67649
4446 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4447 mark the block as accessible.
4448
4449 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
4450
4451 * function.c (thread_prologue_and_epilogue_insns): Delete
4452 orig_entry_edge argument to try_shrink_wrapping.
4453 * shrink-wrap.c (can_get_prologue): New function.
4454 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4455 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
4456 can_get_prologue where needed. Remove code that finds a single
4457 edge for the prologue. Remove code that tests if any reg clobbered
4458 by the prologue is live on the prologue edge. Remove code that finds
4459 the new prologue edge after duplicating blocks. Make a new prologue
4460 block and edge.
4461 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4462
4463 2015-09-22 Jeff Law <law@redhat.com>
4464
4465 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4466 behavior.
4467
4468 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
4469
4470 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
4471 -Wtemplates, -Wnamespaces): Document.
4472
4473 2015-09-22 Tom de Vries <tom@codesourcery.com>
4474
4475 PR tree-optimization/67671
4476 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4477 pointer references as restrict.
4478
4479 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4480
4481 * config/nios2/nios2.c (nios2_legitimize_address): When handling
4482 'reg + reloc' cases, allow first operand to be non-REG, and use
4483 force_reg() to enforce address pattern.
4484
4485 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
4486
4487 PR target/67480
4488 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4489 (define_mode_iterator VI12_AVX_AVX512F): New.
4490 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4491 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4492 (define_insn "*<code><mode>3"): ... Into new pattern using
4493 VI12_AVX_AVX512F iterators without masking.
4494
4495 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4496
4497 * config.gcc: Support "skylake-avx512".
4498 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4499 PROCESSOR_SKYLAKE_AVX512.
4500 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4501 (processor_target_table): Add "skylake-avx512".
4502 (PTA_SKYLAKE_AVX512): Define.
4503 (ix86_option_override_internal): Add "skylake_avx512".
4504 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4505 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4506 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4507 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4508 * doc/invoke.texi (skylake-avx512): New.
4509
4510 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4511
4512 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4513 operand in pattern.
4514 (define_insn "kunpcksi"): Ditto.
4515 (define_insn "kunpckdi"): Ditto.
4516
4517 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4518
4519 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4520 iterator instead of fixed modes.
4521
4522 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4523
4524 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4525 Adjust declaration.
4526 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4527 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
4528 out_result. Update to support update-fetch operations.
4529 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4530 Adjust for change to aarch64_gen_atomic_ldop.
4531 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4532 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4533 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4534 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4535 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4536
4537 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4538
4539 * config/aarch64/aarch64-protos.h
4540 (aarch64_atomic_ldop_supported_p): Declare.
4541 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4542 (enum aarch64_atomic_load_op_code): New.
4543 (aarch64_emit_atomic_load_op): New.
4544 (aarch64_gen_atomic_ldop): Update to support load-operate
4545 patterns.
4546 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4547 to an expander.
4548 (aarch64_atomic_<atomic_optab><mode>): New.
4549 (aarch64_atomic_<atomic_optab><mode>_lse): New.
4550 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4551 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4552 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4553
4554 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4555
4556 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4557 (UNSPECV_ATOMIC_LDOP_OR): New.
4558 (UNSPECV_ATOMIC_LDOP_BIC): New.
4559 (UNSPECV_ATOMIC_LDOP_XOR): New.
4560 (UNSPECV_ATOMIC_LDOP_PLUS): New.
4561 (ATOMIC_LDOP): New.
4562 (atomic_ldop): New.
4563 (aarch64_atomic_load<atomic_ldop><mode>): New.
4564
4565 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4566
4567 * config/aarch64/aarch64.md
4568 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4569 pattern.
4570
4571 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4572
4573 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4574 Declare.
4575 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4576 (aarch64_gen_atomic_ldop): New.
4577 (aarch64_split_atomic_op): Fix whitespace and add a comment.
4578 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4579 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4580 (atomic_exchange<mode>): Replace with an expander.
4581 (aarch64_atomic_exchange<mode>): New.
4582 (aarch64_atomic_exchange<mode>_lse): New.
4583 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4584 (aarch64_atomic_swp<mode>): New.
4585
4586 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4587
4588 * tree-inline.c (expand_call_inline): Use inform for extra note.
4589 Do not give a note with UNKNOWN_LOCATION.
4590 Replace input_location with gimple_location (stmt).
4591 Use true/false instead of TRUE/FALSE.
4592
4593 2015-09-22 Tom de Vries <tom@codesourcery.com>
4594
4595 PR tree-optimization/67666
4596 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4597 with single field non-conservative.
4598
4599 2015-09-21 David S. Miller <davem@davemloft.net>
4600
4601 PR/67622
4602 Revert:
4603 2015-09-11 David S. Miller <davem@davemloft.net>
4604
4605 * config/sparc/constraints.md: Make "U" constraint a real register
4606 constraint.
4607 * config/sparc/sparc.c (TARGET_LRA_P): Define.
4608 (D_MODES, DF_MODES): Add missing cast.
4609 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4610 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4611 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4612 cost to 8.
4613 * config/sparc/sparc.h (PROMOTE_MODE): Define.
4614 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4615 provide these insn when flag_pic.
4616
4617 2015-09-17 David S. Miller <davem@davemloft.net>
4618
4619 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4620 Declare.
4621 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4622 function.
4623 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4624 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4625 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4626 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4627 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4628 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4629 provide when flag_pic.
4630
4631 2015-09-21 Jeff Law <law@redhat.com>
4632
4633 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4634 behavior.
4635
4636 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4637
4638 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4639
4640 2015-09-21 Richard Biener <rguenther@suse.de>
4641
4642 * passes.c (rest_of_decl_compilation): Do not call
4643 dwarf2out_early_global_decl for aliases.
4644
4645 2015-09-21 Richard Biener <rguenther@suse.de>
4646
4647 PR debug/67664
4648 * dwarf2out.c (add_location_or_const_value_attribute): Remove
4649 attribute parameter. Early exit if either DW_AT_const_value
4650 or DW_AT_location are present already.
4651 (gen_variable_die): Adjust caller.
4652 (dwarf2out_late_global_decl): Likewise.
4653
4654 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4655
4656 PR target/67657
4657 * config/sh/sh.c (sh_remove_overlapping_post_inc,
4658 sh_peephole_emit_move_insn): Add new functions.
4659 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4660 sh_peephole_emit_move_insn): Declere them.
4661 * config/sh/sh.md: Use them in various peephole2 patterns.
4662
4663 2015-09-21 Richard Biener <rguenther@suse.de>
4664
4665 PR middle-end/67651
4666 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4667 address with -fno-delete-null-pointer-checks.
4668
4669 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
4670
4671 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4672 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4673 (reduc_uplus_v16qi): Remove.
4674
4675 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4676 (reduc_<VEC_reduc_name>_v2df): Remove.
4677 (reduc_<VEC_reduc_name>_v4sf): Remove.
4678 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4679
4680 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4681 gen_ function by removing * prefix.
4682 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4683
4684 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4685
4686 PR middle-end/60832
4687 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4688 Print i_bound without converting it to a tree.
4689
4690 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
4691
4692 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4693 operands[4] operands[5] swap with std::swap, removed tmp variable.
4694 (arm_evpc_neon_vzip): Replaced in0/in1 and
4695 out0/out1 swaps with std::swap, removed x variable.
4696 (arm_evpc_neon_vtrn): Replaced in0/int1 and
4697 out0/out1 swaos with std::swap, removed x variable.
4698 (arm_expand_vec_perm_const_1): Replaced
4699 d->op0/d->op1 swap with std::swap, removed x variable.
4700 (arm_evpc_neon_vuzp): Replaced in0/in1 and
4701 out0/out1 swaps with std::swap, removed x variable.
4702
4703 2015-09-21 Jonathan Yong <10walls@gmail.com>
4704
4705 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4706 sysroot/usr/lib/32api for additional win32 libraries,
4707 fixes failing Cygwin bootstrapping.
4708
4709 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4710
4711 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4712
4713 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4714
4715 PR target/67126
4716 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4717 (*mov_t_msb_neg): Rewrite negc pattern.
4718
4719 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4720
4721 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4722 immediate generation code.
4723
4724 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4725
4726 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4727 redundant immediate generation code.
4728
4729 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4730
4731 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4732 (AARCH64_NUM_BITMASKS): Remove.
4733 (aarch64_bitmasks_cmp): Remove.
4734 (aarch64_build_bitmask_table): Remove.
4735
4736 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4737
4738 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
4739 slow immediate matching loops with a faster algorithm.
4740
4741 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4742
4743 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
4744 faster algorithm.
4745
4746 2015-09-20 Jeff Law <law@redhat.com>
4747
4748 PR tree-optimization/47679
4749 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
4750 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
4751 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
4752 (thread_through_normal_block): Use record_temporary_equivalences.
4753
4754 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
4755
4756 * coretypes.h (gimple): Change typedef to be a forward declaration.
4757 * gimple.h (gimple_statement_base): rename to gimple.
4758 * (all functions and types using gimple): Adjust.
4759 * *.[ch]: Likewise.
4760
4761 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
4762 David Edelsohn <dje.gcc@gmail.com>
4763
4764 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
4765 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4766 (EH_FRAME_THROUGH_COLLECT2): Define.
4767 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4768 (ASM_OUTPUT_DWARF_PCREL): Define.
4769 (ASM_OUTPUT_DWARF_DATAREL): Define.
4770
4771 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
4772
4773 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
4774 of TARGET_ELF32.
4775
4776 2015-09-18 Jeff Law <law@redhat.com>
4777
4778 PR tree-optimization/47679
4779 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
4780 it here ...
4781 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
4782 object. Update constructor.
4783 (pass_dominator::execute): Corresponding chagnes to declaration
4784 and initialization of avail_exprs_stack. Update constructor call
4785 for dom_opt_dom_walker object.
4786 (lookup_avail_expr, record_cond): Accept additional argument. Pass
4787 it down to children as needed.
4788 (record_equivalences_from_incoming_edge): Likewise.
4789 (eliminate_redundant_computations): Likewise.
4790 (record_equivalences_from_stmt): Likewise.
4791 (simplify_stmt_for_jump_threading): Likewise.
4792 (record_temporary_equivalences): Likewise.
4793 (optimize_stmt): Likewise.
4794 (dom_opt_dom_walker::thread_across_edge): Update access to
4795 avail_exprs_stack object and pass it to children as needed.
4796 (dom_opt_dom_walker::before_dom_children): Similarly.
4797 (dom_opt_dom_walker::after_dom_children): Similarly.
4798 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
4799 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
4800 Add avail_expr_stack argument. Pass it to children as needed.
4801 (dummy_simplify): Likewise.
4802 (simplify_control_stmt_condition): Likewise.
4803 (thread_around_empty_blocks): Likewise.
4804 (thread_through_normal_block): Likewise.
4805 (thread_across_edge): Likewise.
4806 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4807 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
4808
4809 PR tree-optimization/47679
4810 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
4811 it here ...
4812 (dom_opt_dom_walker): New private member holding the const_and_copies
4813 object. Update constructor.
4814 (pass_dominator::execute): Corresponding changes to declaration
4815 and initialization of const_and_copies. Update constructor call
4816 for the dom_opt_dom_walker object.
4817 (record_temporary_equivalences): Accept const_and_copies argument
4818 pass it down to children as needed.
4819 (record_equality): Likewise.
4820 (record_equivalences_from_incoming_edge): Likewise.
4821 (cprop_into_successor_phis, optimize_stmt): Likewise.
4822 (eliminate_redundant_computations): Likewise.
4823 (dom_opt_dom_walker::thread_across_edge): Update access to
4824 const_and_copies object and pass it to children as needed.
4825 (dom_opt_dom_walker::before_dom_children): Similarly.
4826 (dom_opt_dom_walker::after_dom_children): Similarly.
4827
4828 PR tree-optimization/47679
4829 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
4830 it into the avail_exprs_stack class.
4831 (pass_dominator::execute): Corresponding changes to declaration
4832 and initialization of avail_exprs. Pass avail_exprs to
4833 dump_dominator_optimization_stats.
4834 (record_cond): Extract avail_exprs from avail_exprs_stack.
4835 (lookup_avail_expr): Similarly.
4836 (htab_staticstics): Remove unnecessary prototype. Move to earlier
4837 position in file.
4838 (dump_dominator_optimization_stats): Make static and prototype.
4839 Add argument for the hash table to dump.
4840 (debug_dominator_optimization_stats): Remove.
4841 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
4842 prototype.
4843 (debug_dominator_optimization_stats): Similarly.
4844 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
4845 "void" in prototype for pop_to_marker method. Add accessor method
4846 for the underlying avail_exprs table.
4847
4848 * tree-ssa-threadedge.c: Remove trailing whitespace.
4849
4850 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
4851
4852 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
4853 unsigned.
4854 (pa_ldil_cint_p): Likewise.
4855 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
4856 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
4857 Update callers.
4858 * config/pa/pa.md: Likewise.
4859
4860 2015-09-18 David Malcolm <dmalcolm@redhat.com>
4861
4862 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
4863 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
4864 (diagnostic_show_locus): Likewise.
4865 (diagnostic_print_caret_line): Likewise.
4866 * diagnostic-show-locus.c: New file.
4867
4868 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
4869
4870 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
4871 "back" parameter. Declare label in #if block.
4872
4873 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
4874
4875 PR middle-end/67619
4876 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
4877 the address to a register.
4878
4879 2015-09-18 Jeff Law <law@redhat.com>
4880
4881 PR tree-optimization/47679
4882 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
4883 * tree-ssa-dom.c: Remove unnecessary header includes.
4884 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
4885 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
4886 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
4887 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
4888 (pass_phi_only_cprop::execute): Likewise.
4889 (make_pass_phi_only_cprop): Likewise.
4890 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
4891 uses of file scoped statics by passing the required objects
4892 as parameters wherever needed.
4893
4894 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
4895 David Edelsohn <dje.gcc@gmail.com>
4896
4897 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
4898 EH_FRAME_THROUGH_COLLECT2.
4899 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
4900 DW_EH_PE_datarel.
4901 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
4902 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
4903 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
4904 * except.c (switch_to_exception_section): Use a read-only section
4905 even if EH_FRAME_SECTION_NAME is undefined.
4906 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
4907 * collect2.c (write_c_file_stat): Provide dbase on AIX.
4908 (scan_prog_file): Don't export __dso_handle nor
4909 __gcc_unwind_dbase.
4910 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4911 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4912 (ASM_OUTPUT_DWARF_PCREL): Define.
4913 (ASM_OUTPUT_DWARF_DATAREL): Define.
4914 (EH_FRAME_THROUGH_COLLECT2): Define.
4915 (EH_FRAME_IN_DATA_SECTION): Delete.
4916 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
4917 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
4918 Declare.
4919 (rs6000_asm_output_dwarf_datarel): Declare.
4920 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
4921 (rs6000_aix_asm_output_dwarf_datarel): New.
4922 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
4923 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
4924 (EH_FRAME_THROUGH_COLLECT2): Define.
4925 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
4926 (EH_FRAME_THROUGH_COLLECT2): Define.
4927 (EH_TABLES_CAN_BE_READ_ONLY): Define.
4928 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
4929 (EH_FRAME_THROUGH_COLLECT2): New.
4930 (ASM_OUTPUT_DWARF_DATAREL): New.
4931 * doc/tm.texi: Regenerate.
4932
4933 2015-09-18 Richard Biener <rguenther@suse.de>
4934
4935 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
4936 we're in early phase.
4937 (schedule_generic_params_dies_gen): Likewise.
4938 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
4939 work as possible, retaining unhandled cases.
4940 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
4941 clear out generic_type_instances at the end.
4942 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
4943 (dwarf2out_early_finish): ... here. Do most of
4944 gen_remaining_tmpl_value_param_die_attribute here.
4945
4946 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
4947
4948 PR tree-optimization/67283
4949 * tree-sra.c (type_consists_of_records_p): Rename to...
4950 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4951 (completely_scalarize_record): Rename to...
4952 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4953 (scalarize_elem): New.
4954 (analyze_all_variable_accesses): Follow renamings.
4955
4956 2015-09-18 Richard Biener <rguenther@suse.de>
4957
4958 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
4959 in early-dwarf.
4960
4961 2015-09-18 Richard Biener <rguenther@suse.de>
4962
4963 PR tree-optimization/66142
4964 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
4965 treat MEM[&x] and x the same.
4966 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
4967 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
4968 when we simplified sth.
4969 (vn_reference_maybe_forwprop_address): Likewise.
4970 (valueize_refs_1): When we simplified through
4971 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
4972 set valueized_anything to true.
4973 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
4974 one ref kills the other instead of just a offset-based test.
4975 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
4976 for the operand_equal_p test to compare bases and also compare
4977 sizes.
4978
4979 2015-09-17 Christian Bruel <christian.bruel@st.com>
4980
4981 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
4982
4983 2015-09-17 Richard Henderson <rth@redhat.com>
4984
4985 PR libstdc++/65913
4986 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
4987 pointers that encode the alignment of the object.
4988
4989 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
4990
4991 PR rtl-optimization/66790
4992 * df-problems.c (LIVE): Amend documentation.
4993
4994 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
4995
4996 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
4997 and optabs-tree.o.
4998 (GTFILES): Replace optabs.c with optabs-libfunc.c.
4999 * genopinit.c (main): Add an include guard to insn-opinit.h.
5000 Protect the rtx_code parts with NUM_RTX_CODE.
5001 * optabs.h: Split parts out to...
5002 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5003 * optabs.c: Split parts out to...
5004 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5005 * cilk-common.c: Include optabs-query.h rather than optabs.h.
5006 * fold-const.c: Likewise.
5007 * target-globals.c: Likewise.
5008 * tree-if-conv.c: Likewise.
5009 * tree-ssa-forwprop.c: Likewise.
5010 * tree-ssa-loop-prefetch.c: Likewise.
5011 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5012 Remove unncessary include files.
5013 * tree-ssa-phiopt.c: Likewise.
5014 * tree-ssa-reassoc.c: Likewise.
5015 * tree-switch-conversion.c: Likewise.
5016 * tree-vect-data-refs.c: Likewise.
5017 * tree-vect-generic.c: Likewise.
5018 * tree-vect-loop.c: Likewise.
5019 * tree-vect-patterns.c: Likewise.
5020 * tree-vect-slp.c: Likewise.
5021 * tree-vect-stmts.c: Likewise.
5022 * tree-vrp.c: Likewise.
5023 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5024 rather than optabs.h.
5025 * expr.c: Include optabs-tree.h.
5026 * function.c: Likewise.
5027
5028 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5029
5030 PR middle-end/65958
5031 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5032 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5033 * config/arm/arm.c: Include common/common-target.h.
5034 (use_return_insn): Return 0 if the static chain register was saved
5035 above a non-APCS frame.
5036 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5037 (struct scratch_reg): New.
5038 (get_scratch_register_on_entry): New function.
5039 (release_scratch_register_on_entry): Likewise.
5040 (arm_emit_probe_stack_range): Likewise.
5041 (output_probe_stack_range): Likewise.
5042 (arm_expand_prologue): Factor out code dealing with the IP register
5043 for nested function and adjust it for stack checking.
5044 Invoke arm_emit_probe_stack_range if static builtin stack checking
5045 is enabled.
5046 (thumb1_expand_prologue): Sorry out if static builtin stack checking
5047 is enabled.
5048 (arm_expand_epilogue): Add the saved static chain register, if any, to
5049 the amount of pre-pushed registers to pop.
5050 (arm_frame_pointer_required): Return true if static stack checking is
5051 enabled and we want to catch the exception with the EABI unwinder.
5052 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5053 (UNSPEC_PROBE_STACK_RANGE): Likewise.
5054 * config/arm/arm.md (probe_stack): New insn.
5055 (probe_stack_range): Likewise.
5056
5057 2015-09-17 Richard Biener <rguenther@suse.de>
5058
5059 * genmatch.c (parser::parse_expr): Improve error message
5060 for mis-placed flags.
5061
5062 2015-09-17 Richard Biener <rguenther@suse.de>
5063
5064 * passes.c (rest_of_decl_compilation): Always call early_global_decl
5065 debug hook when we created a varpool node.
5066 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5067 dwarf2out_early_global_decl, when not just add location or
5068 value attributes to existing DIEs.
5069
5070 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
5071
5072 * config/aarch64/aarch64.md (copysigndf3): New.
5073 (copysignsf3): Likewise.
5074
5075 2015-09-17 David S. Miller <davem@davemloft.net>
5076
5077 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5078 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5079 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5080 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5081 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5082 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5083 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5084 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5085 provide when flag_pic.
5086
5087 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
5088
5089 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5090 object_allocator change.
5091
5092 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5093
5094 PR tree-optimization/66388
5095 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5096 (dump_iv): Dump no_overflow information.
5097 (alloc_iv): Initialize new field for struct iv.
5098 (mark_bivs): Count number of no_overflow bivs.
5099 (find_deriving_biv_for_expr, record_biv_for_address_use): New
5100 functions.
5101 (idx_find_step): Call new functions above.
5102 (add_candidate_1, add_candidate): New paramter.
5103 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5104 (get_computation_aff): Simplify convertion of cand for BIV.
5105 (get_computation_cost_at): Step cand's base if necessary.
5106
5107 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5108
5109 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5110 parameter.
5111 (tree_simplify_using_condition): Ditto.
5112 (simplify_using_initial_conditions): Ditto.
5113 (loop_exits_before_overflow): Pass new argument to function
5114 simplify_using_initial_conditions. Remove case for type conversions
5115 simplification.
5116 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5117 parameter.
5118 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5119 in iv base using loop initial conditions.
5120
5121 2015-09-16 Jeff Law <law@redhat.com>
5122
5123 PR tree-optimization/47679
5124 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5125 (free_all_edge_infos): Use it.
5126 (allocate_edge_info): Free preexisting edge info data.
5127 (pass_dominator::execute): Set up initial edge info structures.
5128 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5129 thread_across_edge.
5130 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5131 If non-null, then push/pop markers appropriately.
5132 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5133 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5134 thread-across_edge.
5135
5136 2015-09-16 James Bowman <james.bowman@ftdichip.com>
5137
5138 * config/ft32/ft32.c: Fix the memory address space predicate.
5139
5140 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
5141
5142 PR target/67573
5143 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5144 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5145
5146 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5147
5148 * toplev.h (check_global_declaration): Remove declaration.
5149 * toplev.c (check_global_declaration): Move to ...
5150 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5151 (analyze_functions): Update call.
5152
5153 2015-09-16 David S. Miller <davem@davemloft.net>
5154
5155 * lra-constraints.c (simplify_operand_subreg): Do not assume that
5156 lowpart of a SUBREG has offset zero.
5157
5158 2015-09-16 Jeff Law <law@redhat.com>
5159
5160 PR tree-optimization/47679
5161 * tree-ssa-dom.c (enum expr_kind): Moved from here to
5162 tree-ssa-scopedtables.h.
5163 (struct hashable_expr, class expr_hash_elt): Likewise.
5164 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5165 Move associated methods into tree-ssa-scopedtables.c.
5166 (avail_expr_hash, initialize_expr_from_cond): Similarly.
5167 (hashable_expr_equal_p, add_expr_commutative): Likewise.
5168 (add_hashable_expr): Likewise.
5169 (record_cond): Delete element directly.
5170 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5171 private copy ctor and assignment operator methods.
5172 (expr_elt_hasher): Inline trivial methods.
5173 (initialize_expr_from_cond): Prototype.
5174 * tree-ssa-scopedtables.c: Add necessary includes, functions and
5175 methods that were previously in tree-ssa-dom.c. Improve various
5176 comments.
5177
5178 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
5179
5180 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5181
5182 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
5183
5184 PR bootstrap/67587
5185 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5186 fixup_partitions.
5187
5188 2015-09-16 Richard Biener <rguenther@suse.de>
5189
5190 PR middle-end/67253
5191 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5192 location of possibly shared trees.
5193
5194 2015-09-16 Richard Biener <rguenther@suse.de>
5195
5196 PR middle-end/67271
5197 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5198
5199 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
5200
5201 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5202 offset and size computations instead of HOST_WIDE_INT.
5203
5204 2015-09-16 Richard Biener <rguenther@suse.de>
5205
5206 PR middle-end/67442
5207 * fold-const.c (extract_muldiv_1): Properly extend multiplication
5208 result before builting a tree via wide_int_to_tree.
5209
5210 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5211
5212 * Makefile.in: Add memory-block.cc
5213 (pool_allocator::initialize): Use fixed block size.
5214 (pool_allocator::release): Use memory_block_pool.
5215 (pool_allocator::allocate): Likewise.
5216 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5217 object pools.
5218 * cfg.c (initialize_original_copy_tables): Likewise.
5219 * cselib.c (elt_list_pool, elt_loc_list_pool,
5220 cselib_val_pool): Likewise.
5221 * df-problems.c (df_chain_alloc): Likewise.
5222 * df-scan.c (df_scan_alloc): Likewise.
5223 * dse.c (cse_store_info_pool, rtx_store_info_pool,
5224 read_info_type_pool, insn_info_type_pool, bb_info_pool,
5225 group_info_pool, deferred_change_pool): Likewise.
5226 * et-forest.c (et_nodes, et_occurrences): Likewise.
5227 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5228 ipcp_agg_lattice_pool): Likewise.
5229 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5230 * ipa-profile.c (histogram_pool): Likewise.
5231 * ipa-prop.c (ipa_refdesc_pool): Likewise.
5232 * ira-build.c (live_range_pool, allocno_pool, object_pool,
5233 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5234 * ira-color.c (update_cost_record_pool): Likewise.
5235 * lra-lives.c (lra_live_range_pool): Likewise.
5236 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5237 * memory-block.cc: New file.
5238 * memory-block.h: New file.
5239 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5240 * sched-deps.c (sched_deps_init): Likewise.
5241 * sel-sched-ir.c (sched_lists_pool): Likewise.
5242 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5243 * tree-sra.c (access_pool): Likewise.
5244 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5245 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5246 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5247 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5248 * tree-ssa-strlen.c (strinfo_pool): Likewise.
5249 * tree-ssa-structalias.c (variable_info_pool): Likewise.
5250 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5251 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5252
5253 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5254
5255 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5256 definition.
5257 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5258 call0 ABI.
5259
5260 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5261
5262 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5263 to pass TLS call argument, according to current ABI.
5264 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5265 callx0 for TLS call, according to current ABI.
5266
5267 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5268
5269 * tree-eh.c (lower_try_finally_dup_block): Clear location information
5270 on stack restore statements.
5271 (decide_copy_try_finally): Do not consider a stack restore statement as
5272 coming from sources.
5273
5274 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
5275
5276 * config/alpha/alpha.c (alpha_expand_block_clear): Use
5277 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5278
5279 2015-09-15 Jeff Law <law@redhat.com>
5280
5281 PR tree-optimization/47679
5282 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5283 methods and private members.
5284 (avail_exprs_stack): Similarly. Change type of global
5285 from a pair of expr_hash_elt_t to the new class.
5286 (expr_elt_hasher::hash): Corresponding changes.
5287 (expr_elt_hasher::equal): Similarly.
5288 (avail_expr_hash): Similarly.
5289 (pass_dominator::execute): Similarly.
5290 (dom_opt_dom_walker::thread_across_edge): Similarly.
5291 (record_cond): Similarly.
5292 (dom_opt_dom_walker::before_dom_children): Similarly.
5293 (dom_opt_dom_walker::after_dom_children): Similarly.
5294 (lookup_avail_expr): Likewise.
5295 (initialize_hash_element): Now a expr_hash_elt constructor.
5296 (initialize_hash_element_from_expr): Similarly.
5297 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5298 (free_expr_hash_elt): Call dtor for the element.
5299 (remove_local_expressions_from_table): Now the "pop_to_marker"
5300 method in the available_exprs_stack class.
5301 (avail_expr_stack::record_expr): Method factored out.
5302 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5303 Fix formatting.
5304 (hashable_expr_equal_p): Fix formatting.
5305
5306 2015-09-15 David Malcolm <dmalcolm@redhat.com>
5307
5308 * input.h (location_get_source_line): Drop "expanded_location"
5309 param in favor of a file and line number.
5310 * input.c (location_get_source_line): Likewise.
5311 (dump_location_info): Update for change in signature of
5312 location_get_source_line.
5313 * diagnostic.c (diagnostic_print_caret_line): Likewise.
5314
5315 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5316
5317 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5318 Bump to 4KB for SJLJ exceptions.
5319 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
5320 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5321 * doc/tm.texi: Regenerate.
5322
5323 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5324
5325 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5326 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
5327 Update prototype.
5328
5329 2015-09-15 Richard Biener <rguenther@suse.de>
5330
5331 PR tree-optimization/67470
5332 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5333 structure for PHI hoisting by inserting a forwarder block
5334 if appropriate.
5335
5336 2015-09-15 Christian Bruel <christian.bruel@st.com>
5337
5338 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5339 (arm_option_print): New function.
5340
5341 2015-09-15 Christian Bruel <christian.bruel@st.com>
5342
5343 PR target/52144
5344 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5345 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5346 Remove flags parameter.
5347 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5348 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5349 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5350 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5351 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5352 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5353 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5354 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5355
5356 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5357
5358 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5359
5360 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5361 AARCH64_VALID_SIMD_DREG_MODE.
5362
5363 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5364
5365 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5366 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5367 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5368 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5369 aarch64_ld4_lane<mode>): Combine together, making...
5370 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5371 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5372 aarch64_st4_lane<mode>): Combine together, making...
5373 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5374 * config/aarch64/iterators.md (nregs): Add comment.
5375
5376 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5377
5378 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5379 Change operand mode from <V_TWO_ELEM> to BLK.
5380 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5381 (aarch64_vec_store_lanesoi_lane<mode): Likewise
5382 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5383 (aarch64_ld2_lane<mode>): Likewise.
5384 (aarch64_st2_lane<VQ:mode>): Likewise.
5385 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5386
5387 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5388
5389 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5390 Change operand mode from <V_FOUR_ELEM> to BLK.
5391 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5392 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5393 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5394 (aarch64_ld4_lane<mode>): Likewise.
5395 (aarch64_st4_lane<mode>): Likewise.
5396 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5397
5398 2015-09-15 Richard Biener <rguenther@suse.de>
5399
5400 PR middle-end/67563
5401 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5402 transfer EH info from old to new stmt.
5403 (replace_call_with_value): Likewise.
5404 (replace_call_with_call_and_fold): Likewise.
5405 (gimple_fold_builtin_memory_op): Likewise.
5406 (gimple_fold_builtin_memset): Likewise.
5407 (gimple_fold_builtin_stpcpy): Likewise.
5408 (gimple_fold_call): Likewise.
5409
5410 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5411
5412 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5413 comment.
5414 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5415 (aarch64_simd_intEI_type_node): Likewise.
5416 (aarch64_simd_builtin_std_type): Remove EImode case.
5417 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5418 * config/aarch64/aarch64-modes.def: Remove EImode.
5419
5420 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5421
5422 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5423 Change operand mode from <V_THREE_ELEM> to BLK.
5424 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5425 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5426 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5427 (aarch64_ld3_lane<mode>): Likewise.
5428 (aarch64_st3_lane<mode>): Likewise.
5429 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5430
5431 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5432
5433 * config/aarch64/aarch64-simd.md
5434 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5435 Change all TImode operands to BLKmode.
5436 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5437 Change all EImode operands to BLKmode.
5438 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5439 Change all OImode operands to BLKmode.
5440
5441 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5442 and call set_mem_size.
5443 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5444
5445 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5446
5447 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5448
5449 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5450 to...
5451 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5452
5453 (vec_store_lanesci_lane<mode>): Rename to...
5454 (aarch64_vec_store_lanesci_lane<mode>): ...this.
5455
5456 (vec_store_lanesxi_lane<mode>): Rename to...
5457 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5458
5459 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5460 aarch64_st4_lane<mode>): Follow renaming.
5461
5462 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5463
5464 * config/s390/s390.c (s390_const_operand_ok): Add missing
5465 brackets.
5466
5467 2015-09-15 Richard Biener <rguenther@suse.de>
5468
5469 PR lto/67568
5470 * lto-streamer.h (lto_location_cache::current_sysp): Properly
5471 initialize.
5472 * lto-streamer-out.c (clear_line_info): Likewise.
5473
5474 2015-09-15 Richard Biener <rguenther@suse.de>
5475
5476 * doc/match-and-simplify.texi: Fix wording.
5477
5478 2015-09-15 Bin Cheng <bin.cheng@arm.com>
5479
5480 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5481 unnecessary type conversion in op1.
5482
5483 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5484
5485 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5486 (dup_block_and_redirect): Delete function.
5487 (can_dup_for_shrink_wrapping): New function.
5488 (fix_fake_fallthrough_edge): New function.
5489 (try_shrink_wrapping): Rewrite function.
5490 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5491
5492 2015-09-14 Rich Felker <dalias@libc.org>
5493
5494 * configure.ac: Change target pattern for sh TLS support
5495 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5496 * configure: Regenerate.
5497
5498 2015-09-14 Jeff Law <law@redhat.com>
5499
5500 PR tree-optimization/47679
5501 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5502 type rather than void *.
5503
5504 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5505
5506 PR fortran/67460
5507 * diagnostic.c (diagnostic_initialize): Do not set
5508 some_warnings_are_errors.
5509 (diagnostic_finish): Use DK_WERROR count instead.
5510 (diagnostic_report_diagnostic): Do not set
5511 some_warnings_are_errors.
5512 * diagnostic.h (struct diagnostic_context): Remove
5513 some_warnings_are_errors.
5514
5515 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
5516
5517 * config/sparc/predicates.md (const_all_ones_operand): Use
5518 CONSTM1_RTX to simplify definition.
5519
5520 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
5521
5522 PR target/67061
5523 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5524 Handle call insns.
5525
5526 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
5527
5528 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5529 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5530 OPT_fshow_column to handled saved option cases.
5531 (append_compiler_options): Do not skip the above added options.
5532
5533 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5534
5535 PR target/63304
5536 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5537 nopcrelative_literal_loads.
5538 (aarch64_classify_address): Likewise.
5539 (aarch64_constant_pool_reload_icode): Define.
5540 (aarch64_secondary_reload): Handle secondary reloads for
5541 literal pools.
5542 (aarch64_override_options): Handle nopcrelative_literal_loads.
5543 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5544 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5545 Define.
5546 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5547 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5548 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5549 predicate.
5550 * doc/invoke.texi (mpc-relative-literal-loads): Document.
5551
5552 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
5553
5554 PR middle-end/67401
5555 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5556 sync_compare_and_swap_optab libcall to target_oval.
5557
5558 2015-09-14 Marek Polacek <polacek@redhat.com>
5559
5560 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5561 value.
5562 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5563
5564 2015-09-11 Mark Wielaard <mjw@redhat.com>
5565
5566 PR c/28901
5567 * toplev.c (check_global_declaration): Check and use
5568 warn_unused_const_variable.
5569 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5570 (-Wunused-variable): Remove non-constant. For C implies
5571 -Wunused-const-variable.
5572 (-Wunused-const-variable): New.
5573
5574 2015-09-14 Richard Biener <rguenther@suse.de>
5575
5576 * doc/match-and-simplify.texi: Update for changed syntax
5577 of inner ifs and the new switch expression.
5578
5579 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
5580
5581 * config/i386/haswell.md: New file describing Haswell pipeline.
5582 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5583 haswell-like processors.
5584 (ix86_reassociation_width): Increase reassociation width for 64-bit
5585 Haswell processor family.
5586 * config/i386/i386.md: Introduce haswell cpu and include new md file.
5587
5588 2015-09-14 Richard Biener <rguenther@suse.de>
5589
5590 * doc/match-and-simplify.texi: Fixup some formatting issues
5591 and document the 's' flag.
5592
5593 2015-09-13 Olivier Hainque <hainque@adacore.com>
5594 Eric Botcazou <ebotcazou@adacore.com>
5595
5596 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5597 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
5598 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5599 (TARGET_CPU_gr5): Likewise.
5600 (TARGET_CPU_gr6): Likewise.
5601 (MULTILIB_DEFAULTS): Likewise.
5602 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5603 for mcpu=gr5 and mcpu=gr6.
5604 (MULTILIB_DIRNAMES): Adjust accordingly.
5605
5606 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5607
5608 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5609 (mem_ref_p): Likewise.
5610 (outermost_indep_loop): Adjust.
5611 (mem_ref_in_stmt): Likewise.
5612 (determine_max_movement): Likewise.
5613 (mem_ref_alloc): Likewise.
5614 (record_mem_ref_loc): Likewise.
5615 (set_ref_stored_in_loop): Likewise.
5616 (mark_ref_stored): Likewise.
5617 (gather_mem_refs_stmt): Likewise.
5618 (mem_refs_may_alias_p): Likewise.
5619 (for_all_locs_in_loop): Likewise.
5620 (struct rewrite_mem_ref_loc): Likewise.
5621 (rewrite_mem_refs): Likewise.
5622 (struct first_mem_ref_loc_1): Likewise.
5623 (first_mem_ref_loc): Likewise.
5624 (struct sm_set_flag_if_changed): Likewise.
5625 (execute_sm_if_changed_flag_set): Likewise.
5626 (execute_sm): Likewise.
5627 (hoist_memory_references):
5628 (struct ref_always_accessed): Likewise.
5629 (ref_always_accessed_p): Likewise.
5630 (refs_independent_p): Likewise.
5631 (record_dep_loop): Likewise.
5632 (ref_indep_loop_p_1): Likewise.
5633 (ref_indep_loop_p_2): Likewise.
5634 (ref_indep_loop_p): Likewise.
5635 (can_sm_ref_p): Likewise.
5636 (find_refs_for_sm): Likewise.
5637 (tree_ssa_lim_finalize): Likewise.
5638
5639 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5640
5641 * dwarf2out.c (dw_attr_ref): Remove typedef.
5642 (dw_line_info_ref): Likewise.
5643 (pubname_ref): Likewise.
5644 (dw_ranges_ref): Likewise.
5645 (dw_ranges_by_label_ref): Likewise.
5646 (comdat_type_node_ref): Likewise.
5647 (get_AT): Adjust.
5648 (get_AT_low_pc): Likewise.
5649 (get_AT_hi_pc): Likewise.
5650 (get_AT_string): Likewise.
5651 (get_AT_flag): Likewise.
5652 (get_AT_unsigned): Likewise.
5653 (get_AT_ref): Likewise.
5654 (get_AT_file): Likewise.
5655 (remove_AT): Likewise.
5656 (print_die): Likewise.
5657 (check_die): Likewise.
5658 (die_checksum): Likewise.
5659 (attr_checksum_ordered): Likewise.
5660 (struct checksum_attributes): Likewise.
5661 (collect_checksum_attributes): Likewise.
5662 (die_checksum_ordered): Likewise.
5663 (same_die_p): Likewise.
5664 (is_declaration_die): Likewise.
5665 (clone_die): Likewise.
5666 (clone_as_declaration): Likewise.
5667 (copy_declaration_context): Likewise.
5668 (break_out_comdat_types): Likewise.
5669 (copy_decls_walk): Likewise.
5670 (output_location_lists): Likewise.
5671 (external_ref_hasher::hash): Likewise.
5672 (optimize_external_refs_1): Likewise.
5673 (build_abbrev_table): Likewise.
5674 (size_of_die): Likewise.
5675 (unmark_all_dies): Likewise.
5676 (size_of_pubnames): Likewise.
5677 (output_die_abbrevs): Likewise.
5678 (output_die): Likewise.
5679 (output_pubnames): Likewise.
5680 (add_ranges_num): Likewise.
5681 (add_ranges_by_labels): Likewise.
5682 (add_high_low_attributes): Likewise.
5683 (gen_producer_string): Likewise.
5684 (dwarf2out_set_name): Likewise.
5685 (new_line_info_table): Likewise.
5686 (prune_unused_types_walk_attribs): Likewise.
5687 (prune_unused_types_update_strings): Likewise.
5688 (prune_unused_types): Likewise.
5689 (resolve_addr): Likewise.
5690 (optimize_location_lists_1): Likewise.
5691 (index_location_lists): Likewise.
5692 (dwarf2out_finish): Likewise.
5693
5694 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5695
5696 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5697
5698 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5699
5700 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5701 (dump_asserts_for): Adjust.
5702 (register_new_assert_for): Likewise.
5703 (process_assert_insertions): Likewise.
5704 (insert_range_assertions): Likewise.
5705
5706 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5707
5708 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5709 and remove typedef.
5710 (new_temp_expr_table): Adjust.
5711 (free_temp_expr_table): Likewise.
5712 (version_to_be_replaced_p): Likewise.
5713 (make_dependent_on_partition): Likewise.
5714 (add_to_partition_kill_list): Likewise.
5715 (remove_from_partition_kill_list): Likewise.
5716 (add_dependence): Likewise.
5717 (finished_with_expr): Likewise.
5718 (process_replaceable): Likewise.
5719 (kill_expr): Likewise.
5720 (kill_virtual_exprs): Likewise.
5721 (mark_replaceable): Likewise.
5722 (find_replaceable_in_bb): Likewise.
5723 (find_replaceable_exprs): Likewise.
5724 (debug_ter): Likewise.
5725
5726 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5727
5728 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5729 (struct btr_user): Rename from btr_user_s.
5730 (struct btr_def): Rename from btr_def_s.
5731 (find_btr_def_group): Adjust.
5732 (add_btr_def): Likewise.
5733 (new_btr_user): Likewise.
5734 (note_other_use_this_block): Likewise.
5735 (compute_defs_uses_and_gen): Likewise.
5736 (link_btr_uses): Likewise.
5737 (build_btr_def_use_webs): Likewise.
5738 (block_at_edge_of_live_range_p): Likewise.
5739 (btr_def_live_range): Likewise.
5740 (combine_btr_defs): Likewise.
5741 (move_btr_def): Likewise.
5742 (migrate_btr_def): Likewise.
5743 (migrate_btr_defs): Likewise.
5744
5745 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5746
5747 * var-tracking.c (shared_hash_def): Rename to shared_hash.
5748 (shared_hash): Remove typedef.
5749 (struct dataflow_set): Adjust.
5750 (shared_hash_unshare): Likewise.
5751 (dataflow_set_merge): Likewise.
5752 (vt_initialize): Likewise.
5753 (vt_finalize): Likewise.
5754
5755 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5756
5757 * var-tracking.c (struct location_chain): Rename from
5758 location_chain_def.
5759 (struct variable_part): Adjust.
5760 (variable_htab_free): Likewise.
5761 (unshare_variable): Likewise.
5762 (get_init_value): Likewise.
5763 (get_addr_from_local_cache): Likewise.
5764 (drop_overlapping_mem_locs): Likewise.
5765 (val_reset): Likewise.
5766 (struct variable_union_info): Likewise.
5767 (variable_union): Likewise.
5768 (find_loc_in_1pdv): Likewise.
5769 (insert_into_intersection): Likewise.
5770 (intersect_loc_chains): Likewise.
5771 (canonicalize_loc_order_check): Likewise.
5772 (canonicalize_values_mark): Likewise.
5773 (canonicalize_values_star): Likewise.
5774 (canonicalize_vars_star): Likewise.
5775 (variable_merge_over_cur): Likewise.
5776 (remove_duplicate_values): Likewise.
5777 (variable_post_merge_new_vals): Likewise.
5778 (variable_post_merge_perm_vals): Likewise.
5779 (find_mem_expr_in_1pdv): Likewise.
5780 (dataflow_set_preserve_mem_locs): Likewise.
5781 (dataflow_set_remove_mem_locs): Likewise.
5782 (variable_part_different_p): Likewise.
5783 (onepart_variable_different_p): Likewise.
5784 (find_src_set_src): Likewise.
5785 (dump_var): Likewise.
5786 (set_slot_part): Likewise.
5787 (clobber_slot_part): Likewise.
5788 (delete_slot_part): Likewise.
5789 (vt_expand_var_loc_chain): Likewise.
5790 (emit_note_insn_var_location): Likewise.
5791 (vt_finalize): Likewise.
5792
5793 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5794
5795 * dse.c (store_info_t): Remove typedef.
5796 (group_info_t): Likewise.
5797 (const_group_info_t): Likewise.
5798 (deferred_change_t): Likewise.
5799 (get_group_info): Adjust.
5800 (free_store_info): Likewise.
5801 (canon_address): Likewise.
5802 (clear_rhs_from_active_local_stores): Likewise.
5803 (record_store): Likewise.
5804 (replace_read): Likewise.
5805 (check_mem_read_rtx): Likewise.
5806 (scan_insn): Likewise.
5807 (remove_useless_values): Likewise.
5808 (dse_step1): Likewise.
5809 (dse_step2_init): Likewise.
5810 (dse_step2_nospill): Likewise.
5811 (scan_stores_nospill): Likewise.
5812 (scan_reads_nospill): Likewise.
5813 (dse_step3_exit_block_scan): Likewise.
5814 (dse_step3): Likewise.
5815 (dse_step5_nospill): Likewise.
5816 (dse_step6): Likewise.
5817
5818 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5819
5820 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
5821 (alias_set_entry): Remove typedef.
5822 (alias_set_subset_of): Adjust.
5823 (alias_sets_conflict_p): Likewise.
5824 (init_alias_set_entry): Likewise.
5825 (get_alias_set): Likewise.
5826 (new_alias_set): Likewise.
5827 (record_alias_subset): Likewise.
5828
5829 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
5830
5831 * doc/install.texi (Downloading the source): Mark up
5832 contrib/download_prerequisites properly and drop leading "./".
5833
5834 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5835
5836 * config/arc/arc.h: Remove define of STRUCT_VALUE.
5837 * config/lm32/lm32.h: Likewise.
5838 * config/mep/mep.h: Likewise.
5839 * config/visium/visium.h: Likewise.
5840 * system.h: Poison STRUCT_VALUE macro.
5841
5842 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
5843
5844 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
5845 CONSTANT_P operands.
5846
5847 2015-09-11 David S. Miller <davem@davemloft.net>
5848
5849 * config/sparc/constraints.md: Make "U" constraint a real register
5850 constraint.
5851 * config/sparc/sparc.c (TARGET_LRA_P): Define.
5852 (D_MODES, DF_MODES): Add missing cast.
5853 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
5854 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
5855 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
5856 cost to 8.
5857 * config/sparc/sparc.h (PROMOTE_MODE): Define.
5858 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
5859 provide these insn when flag_pic.
5860
5861 2015-09-11 Jeff Law <law@redhat.com>
5862
5863 PR tree-optimization/47679
5864 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
5865 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
5866 member with m_. Update inline member functions as necessary. Add
5867 toplevel comment.
5868 * tree-ssa-scopedtables.c: Update const_and_copies's member
5869 functions to use m_ prefix to access the stack.
5870
5871 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5872
5873 * graphite-optimize-isl.c (disable_tiling): Remove.
5874 (get_schedule_for_band): Do not use disable_tiling.
5875 (get_prevector_map): Delete function.
5876 (enable_polly_vector): Remove.
5877 (get_schedule_for_band_list): Remove dead code.
5878
5879 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
5880
5881 * graphite-optimize-isl.c (get_tile_map): Refactor.
5882 (get_schedule_for_band): Same.
5883 (getScheduleForBand): Same.
5884 (get_prevector_map): Same.
5885 (get_schedule_for_band_list): Same.
5886 (get_schedule_map): Same.
5887 (get_single_map): Same.
5888 (apply_schedule_map_to_scop): Same.
5889 (optimize_isl): Same.
5890
5891 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5892
5893 PR target/63304
5894 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
5895 (movtf): Delete.
5896 * config/aarch64/iterators.md (GPF_TF_F16): New.
5897 (GPF_F16): Delete.
5898
5899 2015-09-10 Nathan Sidwell <nathan@acm.org>
5900
5901 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
5902 (nvptx_reorg): Adjust comments.
5903
5904 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
5905
5906 PR bootstrap/67363
5907 * configure.ac: Check if setenv and unsetenv are declared.
5908 * configure: Rebuild.
5909 * config.in: Rebuild.
5910 * system.h: Declare setenv and unsetenv if not declared.
5911
5912 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5913
5914 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
5915 commentary to simplify permute mask adjustment equation.
5916 (special_handling_values): Add SH_VPERM.
5917 (const_load_sequence_p): New function.
5918 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
5919 the mask loaded from the constant pool.
5920 (adjust_vperm): New function.
5921 (handle_special_swappables): Call adjust_vperm.
5922 (dump_swap_insn_table): Handle SH_VPERM.
5923
5924 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
5925
5926 * shrink-wrap.c (requires_stack_frame_p): Remove static.
5927 * shrink-wrap.h (requires_stack_frame_p): Put back.
5928
5929 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
5930
5931 * reload1.c (elimination_costs_in_insn): Locally turn
5932 -Wmaybe-uninitialized into a warning.
5933
5934 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
5935
5936 * shrink-wrap.c (requires_stack_frame_p): Make static.
5937 (prepare_shrink_wrap): Likewise.
5938 (dup_block_and_redirect): Likewise.
5939 * shrink-wrap.h: Remove declarations of those functions.
5940
5941 2015-09-10 Mark Wielaard <mjw@redhat.com>
5942
5943 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
5944
5945 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
5946
5947 PR target/67506
5948 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
5949 missing simplify_gen_subreg.
5950
5951 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5952
5953 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
5954 the vector element is bigger than 64 bit.
5955
5956 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5957
5958 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
5959 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
5960
5961 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5962
5963 * config/s390/s390.c: Add V1TImode to constant pool modes.
5964
5965 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5966
5967 PR target/67439
5968 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
5969 predicate. Set predicable_short_it attr to "no".
5970
5971 2015-09-10 Jiong Wang <jiong.wang@arm.com>
5972
5973 PR rtl-optimization/67421
5974 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
5975 left wide shift tranformation.
5976
5977 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5978
5979 * common/config/arc/arc-common.c: Remove references to A5.
5980 * config/arc/arc-opts.h: Likewise.
5981 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
5982 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
5983 * config/arc/t-arc-newlib: Likewise.
5984
5985 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
5986
5987 * config/arc/arc.md (length): Fix attribute length for conditional
5988 executed instructions with long immediate.
5989
5990 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5991
5992 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
5993 type for second alternative.
5994
5995 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
5996
5997 * doc/invoke.texi (Downloading GCC): Mention
5998 contrib/download_prerequisites script.
5999
6000 2015-09-10 Jakub Jelinek <jakub@redhat.com>
6001
6002 PR c++/67523
6003 * gimplify.c (gimplify_omp_for): If inner stmt is not found
6004 for combined loop, assert seen_error () and return GS_ERROR.
6005
6006 PR middle-end/67521
6007 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6008 if decl is already in outer->variables.
6009
6010 PR middle-end/67517
6011 * gimplify.c (gimplify_scan_omp_clauses): Instead of
6012 asserting that decl is not specified in octx->variables,
6013 break out of the loop if it is.
6014
6015 PR c++/67514
6016 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6017 iterator is not explicitly determined, but is defined inside
6018 of the combined workshare region, handle it like if it has
6019 DECL_EXPR in OMP_FOR_PRE_BODY.
6020
6021 2015-09-09 Nathan Sidwell <nathan@acm.org>
6022
6023 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6024 (*cmp<mode>): Add assembler spacing.
6025 (setcc_int<mode>, set_cc_float<mode>): Likewise.
6026 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6027 level.
6028 (write_func_decl_from_insn): Refactor argument loops & comma emission.
6029 (nvptx_expand_call): Likewise.
6030 (nvptx_output_call_insn): Likewise.
6031 (nvptx_reorg_subreg): Add spacing.
6032
6033 2015-09-09 Marek Polacek <polacek@redhat.com>
6034
6035 PR middle-end/67512
6036 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6037 for comparisons.
6038
6039 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6040
6041 PR c++/53184
6042 * doc/invoke.texi ([Wsubobject-linkage]): Document.
6043
6044 2015-09-09 Tom de Vries <tom@codesourcery.com>
6045
6046 * params-list.h: Add missing copyright notice.
6047
6048 2015-09-09 Nathan Sidwell <nathan@acm.org>
6049
6050 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6051 sel_truesi, not andsi.
6052
6053 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6054
6055 * config/arm/arm.md (*subsi3_compare0): Rename to...
6056 (subsi3_compare0): ... This.
6057 (modsi3): New define_expand.
6058 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6059 when operand is power of 2.
6060
6061 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6062
6063 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6064 (*neg<mode>2_compare0): Rename to...
6065 (neg<mode>2_compare0): ... This.
6066 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6067 Move check for speed inside the if-then-elses. Reflect
6068 CSNEG sequence in MOD by power of 2 case.
6069
6070 2015-09-09 Alan Modra <amodra@gmail.com>
6071
6072 PR target/67378
6073 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6074 reload replacement for PRE_MODIFY address reg.
6075
6076 2015-09-09 Sebastian Pop <s.pop@samsung.com>
6077
6078 PR tree-optimization/53852
6079 * config.in: Regenerate.
6080 * configure: Regenerate.
6081 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6082 * graphite-optimize-isl.c (optimize_isl): Stop computation when
6083 PARAM_MAX_ISL_OPERATIONS is reached.
6084 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6085 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6086 result equal to isl_stat_ok as the status now can be isl_error_quota.
6087 (subtract_commutative_associative_deps): Same.
6088 (compute_deps): Same.
6089
6090 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6091 Sebastian Pop <s.pop@samsung.com>
6092
6093 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6094 Return the parameter if it was saved in corresponding
6095 parameter_rename_map of the region.
6096 (copy_def): Copy def from sese region to the newly created region.
6097 (copy_internal_parameters): Copy all the internal parameters defined
6098 within a region to the newly created region.
6099 (graphite_regenerate_ast_isl): Copy parameters to the new region before
6100 translating isl to gimple.
6101 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6102 the loop-nest does not have any data-references.
6103 (build_graphite_scops): Create a scop only when there is at least one
6104 loop inside it.
6105 (contains_only_close_phi_nodes): Deleted.
6106 (print_graphite_scop_statistics): Deleted
6107 (print_graphite_statistics): Deleted
6108 (limit_scops): Deleted.
6109 (build_scops): Removed call to limit_scops.
6110 * sese.c (new_sese): Construct.
6111 (free_sese): Destruct.
6112 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6113 added.
6114 (set_rename): Pass sese region so that parameters inside the region can
6115 be added to its parameter_rename_map.
6116 (rename_uses): Pass sese region.
6117 (graphite_copy_stmts_from_block): Do not copy parameters that have been
6118 generated in the header of the scop. For each SSA_NAME in the
6119 parameter_rename_map rename its usage.
6120 (invariant_in_sese_p_rec): Return false if tree t is defined outside
6121 sese region.
6122 (scalar_evolution_in_region): If the tree t is invariant just return t.
6123 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6124 struct sese to keep track of all the parameters which need renaming.
6125 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6126 any data-refs.
6127 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6128
6129 2015-09-08 Tom de Vries <tom@codesourcery.com>
6130
6131 * Makefile.in (generated_files): Add params.list.
6132 (params.list, s-params.list): Add rule.
6133 * params.h (enum compiler_param): Include params-list.h. Move define
6134 DEFPARAM, include params.def and undef DEFPARAM ...
6135 * params-list.h: ... here. New file.
6136
6137 2015-09-08 David Malcolm <dmalcolm@redhat.com>
6138
6139 * pretty-print.h (printer_fn): Fix typo in comment.
6140
6141 2015-09-07 Jeff Law <law@redhat.com>
6142
6143 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6144
6145 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6146
6147 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6148 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6149 (arm_neon_fp16_hw): New.
6150
6151 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6152
6153 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6154 UNITS_PER_WORD >= 4.
6155
6156 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6157
6158 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6159 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6160 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6161 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6162 (aarch64_float_extend_lo_v2df): Rename to...
6163 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6164
6165 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6166 (float_extend_lo): Add v4sf.
6167
6168 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6169 * config/aarch64/iterators.md (VQ_HSF): New iterator.
6170 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6171 (Vwide): New mode_attr.
6172
6173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6174
6175 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6176 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6177 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6178 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6179 V4HF and V8HF variants to iterator.
6180
6181 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6182
6183 * config/aarch64/iterators.md (VDQF_F16): New.
6184 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6185
6186 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6187
6188 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6189 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6190 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6191 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6192 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6193 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6194 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6195 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6196 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6197 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6198 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6199 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6200 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6201 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6202 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6203 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6204 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6205 vld1q_dup_f16): New.
6206
6207 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6208
6209 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6210 Reparameterize to...
6211 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6212 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6213 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6214
6215 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6216 v8hf variant.
6217 (float_truncate_lo_): Use BUILTIN_VDF iterator.
6218
6219 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6220
6221 * config/aarch64/iterators.md (VDF, Vdtype): New.
6222 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6223
6224 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6225
6226 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6227 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6228 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6229 Add __builtin_aarch64_simd_hf.
6230 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6231 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6232 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6233 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6234 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6235 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6236 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6237 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6238 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6239
6240 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6241 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6242 (VDC, Vdbl): Add V4HF.
6243
6244 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6245
6246 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6247 V4HFmode and V8HFmode.
6248 (aarch64_split_simd_move): Add case for V8HFmode.
6249 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6250 (aarch64_simd_builtin_std_type): Handle HFmode.
6251 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6252
6253 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6254 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6255 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6256
6257 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6258 Float16x8_t.
6259
6260 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6261 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6262 New typedefs.
6263 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6264 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6265 vst1q_lane_f16): New.
6266 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6267 (VALLDI_F16, VALL_F16): New.
6268 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6269 Add cases for V4HF and V8HF.
6270 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6271
6272 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6273
6274 * config/arm/arm-builtins.c (VAR11, VAR12): New.
6275 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6276 vld4_dup): Add v4hf variant.
6277 (vget_high, vget_low): Add v8hf variant.
6278 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6279 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6280 v4hf and v8hf variants.
6281
6282 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6283 (VDX): Add V4HF.
6284 (V_DOUBLE): Add case for V4HF.
6285 (VQX): Add V8HF.
6286 (V_HALF): Add case for V8HF.
6287 (VDQX): Add V4HF, V8HF.
6288 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6289 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6290
6291 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6292 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6293 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6294 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6295 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6296 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6297 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6298 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6299 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6300
6301 (neon_vcreate, neon_vreinterpretv8qi<mode>,
6302 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6303 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6304 Change VDX to VD_RE.
6305
6306 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6307 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6308 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6309
6310 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6311 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6312 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6313 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6314 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6315 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6316 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6317 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6318 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6319
6320 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6321
6322 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6323 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6324 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6325 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6326 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6327 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6328 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6329 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6330 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6331 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6332 New.
6333
6334 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6335
6336 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6337
6338 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6339
6340 * config/arm/arm-builtins.c (v8hf_UP): New.
6341 (arm_init_simd_builtin_types): Initialise Float16x8_t.
6342
6343 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6344
6345 * config/arm/arm_neon.h (float16x8_t): New typedef.
6346
6347 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6348
6349 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6350 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6351 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6352 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6353 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6354 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6355 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6356 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6357 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6358 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6359
6360 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
6361
6362 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6363 non-alphanumeric characters in the symbol name.
6364
6365 2015-09-07 Marek Polacek <polacek@redhat.com>
6366
6367 PR inline-asm/67448
6368 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6369 a memory input.
6370
6371 2015-09-07 Marek Polacek <polacek@redhat.com>
6372
6373 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6374
6375 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
6376
6377 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6378 not warn.
6379
6380 2015-09-04 Jakub Jelinek <jakub@redhat.com>
6381
6382 PR middle-end/67452
6383 * tree-ssa-live.c: Include cfgloop.h.
6384 (remove_unused_locals): Clear loop->simduid if simduid is about
6385 to be removed from cfun->local_decls.
6386
6387 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6388
6389 PR target/65210
6390 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6391 attribute as well.
6392
6393 2015-09-04 Tom de Vries <tom@codesourcery.com>
6394
6395 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6396
6397 2015-09-04 Jeff Law <law@redhat.com>
6398
6399 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6400 unnecessary constructor. It's now trivial and implemented inside...
6401 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6402 constructor. Add comments to various methods. Remove unused
6403 private fields.
6404 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6405 * tree-vrp.c (identify_jump_threads): Likewise.
6406 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6407 indentation issues.
6408 (thread_across_edge): Similarly.
6409 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6410 arguments in constructor call.
6411
6412 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6413
6414 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6415 temp path contains a '-'.
6416
6417 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6418 Petr Murzin <petr.murzin@intel.com>
6419 Kirill Yukhin <kirill.yukhin@intel.com>
6420
6421 * config/i386/i386-builtin-types.def
6422 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6423 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6424 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6425 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6426 * config/i386/i386.c
6427 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6428 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6429 IX86_BUILTIN_SCATTERALTDIV16SI.
6430 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6431 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6432 __builtin_ia32_scatteraltdiv8si.
6433 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6434 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6435 IX86_BUILTIN_SCATTERALTDIV16SI.
6436 (ix86_vectorize_builtin_scatter): New.
6437 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6438 ix86_vectorize_builtin_scatter.
6439
6440 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6441 Petr Murzin <petr.murzin@intel.com>
6442 Kirill Yukhin <kirill.yukhin@intel.com>
6443
6444 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6445 * doc/tm.texi: Regenerate.
6446 * target.def: Add scatter builtin.
6447 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6448 for loads/stores in case of gather/scatter accordingly.
6449 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6450 STMT_VINFO_GATHER_P(S).
6451 (vect_check_gather): Rename to ...
6452 (vect_check_gather_scatter): this.
6453 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6454 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6455 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6456 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6457 variable and new checkings for it accordingly.
6458 * tree-vect-stmts.c
6459 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6460 STMT_VINFO_GATHER_P(S).
6461 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6462 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6463
6464 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6465
6466 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6467 define_insn.
6468 (mulv16qi3): New define_expand.
6469
6470 2015-09-03 Martin Sebor <msebor@redhat.com>
6471
6472 PR c/66516
6473 * doc/extend.texi (Other Builtins): Document when the address
6474 of a built-in function can be taken.
6475
6476 2015-09-03 Richard Biener <rguenther@suse.de>
6477
6478 * dwarf2out.c (flush_limbo_die_list): Split out from ...
6479 (dwarf2out_early_finish): ... here.
6480 (dwarf2out_finish): Do not call dwarf2out_early_finish but
6481 flush_limbo_die_list. Assert we have no deferred asm names.
6482
6483 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6484
6485 * optabs.c (expand_binop): Don't create a broadcast vector with a
6486 source element wider than the inner mode.
6487
6488 2015-09-03 Richard Biener <rguenther@suse.de>
6489
6490 * varasm.c (output_constant): Use fold_convert instead of
6491 wide_int_to_tree.
6492
6493 2015-09-03 Tom de Vries <tom@codesourcery.com>
6494
6495 PR tree-optimization/65637
6496 * omp-low.c (expand_omp_for_static_chunk): Handle case that
6497 fin_bb has 2 predecessors.
6498
6499 2015-09-03 Tom de Vries <tom@codesourcery.com>
6500
6501 PR tree-optimization/65637
6502 * omp-low.c (find_phi_with_arg_on_edge): New function.
6503 (expand_omp_for_static_chunk): Fix inner loop phi.
6504
6505 2015-09-03 Tom de Vries <tom@codesourcery.com>
6506
6507 PR tree-optimization/65637
6508 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6509 that head is NULL.
6510
6511 2015-09-03 Tom de Vries <tom@codesourcery.com>
6512
6513 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6514
6515 2015-09-03 Tom de Vries <tom@codesourcery.com>
6516
6517 * doc/invoke.texi (parloops-chunk-size): Add item.
6518 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6519 * tree-parloops.c: Include params.h.
6520 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6521 param parloops-chunk-size is used.
6522
6523 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6524
6525 PR middle-end/67351
6526 * fold-const.c (fold_binary_loc) : Move
6527 Transform (x >> c) << c into x & (-1<<c) or
6528 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6529 types using simplify and match.
6530 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6531 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6532
6533 2015-09-03 Richard Biener <rguenther@suse.de>
6534
6535 PR ipa/66705
6536 * tree-ssa-structalias.c (ctor_for_analysis): New function.
6537 (create_variable_info_for_1): Use ctor_for_analysis instead
6538 of get_constructor.
6539 (create_variable_info_for): Likewise.
6540
6541 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
6542
6543 PR ipa/67280
6544 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6545 in new callgraph edge.
6546
6547 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
6548
6549 PR target/59810
6550 PR target/63652
6551 PR target/63653
6552 * config/aarch64/aarch64-simd.md
6553 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6554 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6555 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6556 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6557
6558 2015-09-02 Alan Modra <amodra@gmail.com>
6559
6560 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6561 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6562 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6563
6564 2015-09-02 Alan Modra <amodra@gmail.com>
6565
6566 PR target/67417
6567 * config/rs6000/predicates.md (current_file_function_operand): Don't
6568 return true for weak symbols.
6569 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6570
6571 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
6572 Andrew Bennett <andrew.bennett@imgtec.com>
6573
6574 * config/mips/mips-opts.h (mips_cb_setting): New enum.
6575 * config/mips/mips-protos.h: Add definitions for
6576 mips_output_jump and mips_output_equal_conditional_branch
6577 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6578 JIC instruction.
6579 (mips_emit_compare): Add support for the MIPS R6 conditional
6580 compact branches.
6581 (mips_process_sync_loop): Likewise.
6582 (mips_output_order_conditional_branch): Likewise.
6583 (mips16_build_call_stub): Change MIPS_CALL to
6584 mips_output_jump.
6585 (mips_print_operand_punctuation): Update 's' case to only
6586 apply to micromips r2.
6587 (mips_adjust_insn_length): Add support for forbidden slot
6588 hazards.
6589 (mips_avoid_hazard): Likewise.
6590 (mips_reorg_process_insns): Likewise.
6591 (mips_output_jump): New function.
6592 (mips_output_equal_conditional_branch): Likewise.
6593 (mips_output_conditional_branch): Use jrc/bc if compact
6594 branch support is enabled. Ensure the forbidden slots
6595 between the two branch instructions is filled with a nop.
6596 (mips_option_override): Add support to process the compact
6597 branch option and set the correct defaults. Prevent
6598 non-explict relocs being using for MIPS R6.
6599 (mips_trampoline_init): Add compact branch support.
6600 (mips_mult_zero_zero_cost): Allow zero initialisation of
6601 accumulators with TARGET_DSP.
6602 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6603 (TARGET_CB_MAYBE): New define.
6604 (TARGET_CB_ALWAYS): New define.
6605 (ISA_HAS_DELAY_SLOTS): New define.
6606 (ISA_HAS_COMPACT_BRANCHES): New define.
6607 (ISA_HAS_JRC): New define.
6608 (MIPS_BRANCH_C): New define.
6609 (MIPS_CALL): Removed.
6610 (MICROMIPS_J): Removed.
6611 * config/mips/mips.md (compact_form): New attr.
6612 (hazard): Add support for forbidden slots.
6613 (define_delay): Add support for compact branches.
6614 (*branch_order<mode>): Likewise.
6615 (*branch_order<mode>_inverted): Likewise.
6616 (*branch_equality<mode>): Likewise.
6617 (*branch_equality<mode>_inverted): Likewise.
6618 (*jump_absolute): Likewise.
6619 (*jump_pic): Likewise.
6620 (indirect_jump): Use mips_output_jump to produce assembly output.
6621 (tablejump_<mode>"): Likewise.
6622 (*<optab>"): Likewise.
6623 (<optab>_internal): Likewise.
6624 (sibcall_internal): Likewise.
6625 (sibcall_value_internal): Likewise.
6626 (sibcall_value_multiple_internal): Likewise.
6627 (call_internal): Likewise.
6628 (call_split): Likewise.
6629 (call_internal_direct): Likewise.
6630 (call_direct_split): Likewise.
6631 (call_value_internal): Likewise.
6632 (call_value_split): Likewise.
6633 (call_value_internal_direct): Likewise.
6634 (call_value_direct_split): Likewise.
6635 (call_value_multiple_internal): Likewise.
6636 (call_value_multiple_split): Likewise.
6637 (mips_get_fcsr_mips16_<mode>): Likewise.
6638 (mips_set_fcsr_mips16_<mode>): Likewise.
6639 (tls_get_tp_mips16_<mode>): Likewise.
6640 * config/mips/mips.opt: Add -mcompact-branches option.
6641 * config/mips/predicates.md (order_operator): Ensure the
6642 conditional compact branches are only used if the ISA them.
6643 * doc/invoke.texi: Document -mcompact-branches option.
6644
6645 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
6646
6647 PR target/61578
6648 * lra-lives.c (process_bb_lives): Process move pseudos with the
6649 same value for copies and preferences
6650 * lra-constraints.c (match_reload): Create match reload pseudo
6651 with the same value from single dying input pseudo.
6652
6653 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6654
6655 PR target/67405
6656 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6657
6658 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
6659
6660 * trans-mem.c: Add contributed-by.
6661 * trans-mem.h: Same.
6662
6663 2015-09-01 Richard Biener <rguenther@suse.de>
6664
6665 * expr.c (expand_expr_real_1): For expanding TERed defs
6666 set the current location to that of the def if not UNKNOWN.
6667
6668 2015-09-01 David Sherwood <david.sherwood@arm.com>
6669
6670 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6671
6672 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6673
6674 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6675 then_cost, else_cost fields. Change branch_cost field to unsigned int.
6676 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6677 Include rtl-iter.h.
6678 (noce_simple_bbs): New function.
6679 (noce_try_move): Bail if basic blocks are not simple.
6680 (noce_try_store_flag): Likewise.
6681 (noce_try_store_flag_constants): Likewise.
6682 (noce_try_addcc): Likewise.
6683 (noce_try_store_flag_mask): Likewise.
6684 (noce_try_cmove): Likewise.
6685 (noce_try_minmax): Likewise.
6686 (noce_try_abs): Likewise.
6687 (noce_try_sign_mask): Likewise.
6688 (noce_try_bitop): Likewise.
6689 (bbs_ok_for_cmove_arith): New function.
6690 (noce_emit_all_but_last): Likewise.
6691 (noce_emit_insn): Likewise.
6692 (noce_emit_bb): Likewise.
6693 (noce_try_cmove_arith): Handle non-simple basic blocks.
6694 (insn_valid_noce_process_p): New function.
6695 (contains_mem_rtx_p): Likewise.
6696 (bb_valid_for_noce_process_p): Likewise.
6697 (noce_process_if_block): Allow non-simple basic blocks
6698 where appropriate.
6699
6700 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
6701
6702 * tree-ssa-dom.c (record_equivalences_from_phis,
6703 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6704 (lookup_avail_expr): Likewise, and remove comment and unused temp.
6705
6706 2015-09-01 Nick Clifton <nickc@redhat.com>
6707
6708 * config/msp430/msp430.opt (mcpu): Fix typo.
6709
6710 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6711
6712 * config/aarch64/aarch64.c (aarch64_set_current_function):
6713 Re-layout any vector parameters have non-simd layout.
6714 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6715 Delete.
6716 (aarch64_simd_expand_args): Delete call to the above.
6717
6718 2015-08-31 Mike Frysinger <vapier@gentoo.org>
6719
6720 * doc/invoke.texi (asan-stack): Add space before option.
6721
6722 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6723
6724 * tree.h (zerop): New function.
6725 * tree.c (zerop): Likewise.
6726 (element_precision): Handle expressions.
6727 * match.pd (define_predicates): Add zerop.
6728 (x <= +Inf): Fix comment.
6729 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6730 * fold-const.c (fold_binary_loc): ... here. Remove.
6731
6732 2015-08-31 Richard Biener <rguenther@suse.de>
6733
6734 PR middle-end/67381
6735 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
6736
6737 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6738
6739 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
6740 (CEXPI): New operator list.
6741 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
6742 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
6743 Converted from ...
6744 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
6745
6746 2015-08-31 Tom de Vries <tom@codesourcery.com>
6747
6748 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
6749 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
6750 parameter.
6751 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
6752 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
6753 (rewrite_into_loop_closed_ssa): ... here.
6754 (replace_uses_in_dominated_bbs): Remove function.
6755 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
6756 rewrite_into_loop_closed_ssa_1.
6757
6758 2015-08-31 Michael Matz <matz@suse.de>
6759
6760 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
6761 enter entry and exit blocks for reverse post order.
6762
6763 2015-08-31 Richard Biener <rguenther@suse.de>
6764
6765 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
6766 (lto_location_cache::current_sysp): Likewise.
6767 (output_block::current_sysp): Likewise.
6768 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
6769 (lto_location_cache::apply_location_cache): Properly record
6770 system header locations.
6771 (lto_location_cache::input_location): Input whether a file
6772 is a system header.
6773 * lto-streamer-out.c (lto_output_location): Stream whether a file
6774 is a system header.
6775
6776 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6777
6778 PR bootstrap/67363
6779 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
6780
6781 2015-08-31 Tom de Vries <tom@codesourcery.com>
6782
6783 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
6784 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
6785 Improve function header comments.
6786
6787 2015-08-30 Michael Collison <michael.collison@linaro.org>
6788
6789 PR other/67320
6790 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
6791 standard names
6792
6793 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6794
6795 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
6796 special_handling bitfield.
6797 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
6798 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
6799 that represents a general xxpermdi.
6800 (insn_is_swappable_p): Add handling for vec_concat of two
6801 doublewords, which maps to a specific xxpermdi.
6802 (adjust_xxpermdi): New function.
6803 (adjust_concat): Likewise.
6804 (handle_special_swappables): Call adjust_xxpermdi and
6805 adjust_concat.
6806 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
6807
6808 2015-08-30 Rich Felker <dalias@libc.org>
6809
6810 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
6811 case instead of sh[123456ble]-*-*.
6812
6813 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6814
6815 * ira.c (print_unform_and_important_classes,
6816 print_translated_classes): Remove reg_class_names static array.
6817 (print_unform_and_important_classes): Rename to ...
6818 (print_uniform_and_important_classes): ... this.
6819 (ira_debug_allocno_classes): Update accordingly.
6820
6821 2015-08-29 Tom de Vries <tom@codesourcery.com>
6822
6823 PR tree-optimization/46193
6824 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
6825 clause.
6826
6827 2015-08-28 Jeff Law <law@redhat.com>
6828
6829 PR lto/66752
6830 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6831 unable to find X NE 0 in the tables, return X as the simplified
6832 condition.
6833 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6834 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
6835 to VISISTED_BBS.
6836 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6837 after removing the control flow statement and unnecessary edges.
6838
6839 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
6840
6841 Revert:
6842 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
6843
6844 PR tree-optimization/67283
6845 * tree-sra.c (type_consists_of_records_p): Rename to...
6846 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
6847
6848 (completely_scalarize_record): Rename to...
6849 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
6850 code to:
6851 (scalarize_elem): New.
6852
6853 2015-08-28 Jiong Wang <jiong.wang@arm.com>
6854
6855 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
6856 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
6857 (aarch64_symbol_type): Likewise.
6858 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6859 Likewise.
6860 (aarch64_expand_mov_immediate): Likewise.
6861 (aarch64_print_operand): Likewise.
6862 (aarch64_classify_tls_symbol): Likewise.
6863
6864 2015-08-28 Richard Biener <rguenther@suse.de>
6865
6866 * cgraphunit.c (symbol_table::compile): Move early debug generation
6867 and finish...
6868 (symbol_table::finalize_compilation_unit): ... back here and
6869 add a !seen_error () guard.
6870
6871 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6872
6873 * toplev.c (process_options): Do not use flag_loop_block,
6874 flag_loop_interchange, and flag_loop_strip_mine. Add check for
6875 flag_loop_optimize_isl.
6876
6877 2015-08-27 Sebastian Pop <s.pop@samsung.com>
6878
6879 * Makefile.in (OBJS): Remove graphite-blocking.o and
6880 graphite-interchange.o.
6881 * common.opt (floop-strip-mine, floop-interchange, floop-block):
6882 Alias of floop-nest-optimize.
6883 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
6884 Document as alias of -floop-nest-optimize.
6885 * graphite-blocking.c: Remove.
6886 * graphite-interchange.c: Remove.
6887 * graphite-optimize-isl.c: Include dumpfile.h.
6888 (getScheduleForBand): Add dump for tiled loops. Use
6889 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
6890 * graphite-poly.c (scop_max_loop_depth): Remove.
6891 (print_scattering_function_1): Remove.
6892 (print_scattering_function): Remove.
6893 (print_scattering_functions): Remove.
6894 (debug_scattering_function): Remove.
6895 (debug_scattering_functions): Remove.
6896 (apply_poly_transforms): Remove use of flag_loop_block,
6897 flag_loop_strip_mine, and flag_loop_interchange.
6898 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
6899 PBB_ORIGINAL.
6900 (print_pdr_access_layout): Remove.
6901 (print_pdr): Print ISL representation.
6902 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
6903 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
6904 (free_scop): Same.
6905 (openscop_print_pbb_domain): Remove.
6906 (print_pbb): Remove call to print_scattering_function.
6907 (openscop_print_scop_context): Remove.
6908 (print_scop_context): Do not print matrices anymore.
6909 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
6910 SCOP_TRANSFORMED_SCHEDULE.
6911 (print_isl_set): Add printing of a new line.
6912 (print_isl_map): Same.
6913 (print_isl_aff): Same.
6914 (print_isl_constraint): Same.
6915 (loop_to_lst): Remove.
6916 (scop_to_lst): Remove.
6917 (lst_indent_to): Remove.
6918 (print_lst): Remove.
6919 (debug_lst): Remove.
6920 (dot_lst_1): Remove.
6921 (dot_lst): Remove.
6922 (reverse_loop_at_level): Remove.
6923 (reverse_loop_for_pbbs): Remove.
6924 * graphite-poly.h (pdr_dim_iter_domain): Remove.
6925 (pdr_nb_params): Remove.
6926 (pdr_alias_set_dim): Remove.
6927 (pdr_subscript_dim): Remove.
6928 (pdr_iterator_dim): Remove.
6929 (pdr_parameter_dim): Remove.
6930 (same_pdr_p): Remove.
6931 (struct poly_scattering): Remove.
6932 (struct poly_bb): Remove _original, _transformed, _saved.
6933 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
6934 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
6935 (PBB_NB_LOCAL_VARIABLES): Remove.
6936 (PBB_NB_SCATTERING_TRANSFORM): Remove.
6937 (schedule_to_scattering): Remove.
6938 (number_of_write_pdrs): Remove.
6939 (pbb_dim_iter_domain): Remove.
6940 (pbb_nb_params): Remove.
6941 (pbb_nb_scattering_orig): Remove.
6942 (pbb_nb_scattering_transform): Remove.
6943 (pbb_nb_dynamic_scattering_transform): Remove.
6944 (pbb_nb_local_vars): Remove.
6945 (pbb_iterator_dim): Remove.
6946 (pbb_parameter_dim): Remove.
6947 (psco_scattering_dim): Remove.
6948 (psct_scattering_dim): Remove.
6949 (psct_local_var_dim): Remove.
6950 (psco_iterator_dim): Remove.
6951 (psct_iterator_dim): Remove.
6952 (psco_parameter_dim): Remove.
6953 (psct_parameter_dim): Remove.
6954 (psct_dynamic_dim): Remove.
6955 (psct_static_dim): Remove.
6956 (psct_add_local_variable): Remove.
6957 (new_lst_loop): Remove.
6958 (new_lst_stmt): Remove.
6959 (free_lst): Remove.
6960 (copy_lst): Remove.
6961 (lst_add_loop_under_loop): Remove.
6962 (lst_depth): Remove.
6963 (lst_dewey_number): Remove.
6964 (lst_dewey_number_at_depth): Remove.
6965 (lst_pred): Remove.
6966 (lst_succ): Remove.
6967 (lst_find_pbb): Remove.
6968 (find_lst_loop): Remove.
6969 (lst_find_first_pbb): Remove.
6970 (lst_empty_p): Remove.
6971 (lst_find_last_pbb): Remove.
6972 (lst_contains_p): Remove.
6973 (lst_contains_pbb): Remove.
6974 (lst_create_nest): Remove.
6975 (lst_remove_from_sequence): Remove.
6976 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
6977 (lst_niter_for_loop): Remove.
6978 (pbb_update_scattering): Remove.
6979 (lst_update_scattering_under): Remove.
6980 (lst_update_scattering): Remove.
6981 (lst_insert_in_sequence): Remove.
6982 (lst_replace): Remove.
6983 (lst_substitute_3): Remove.
6984 (lst_distribute_lst): Remove.
6985 (lst_remove_all_before_including_pbb): Remove.
6986 (lst_remove_all_before_excluding_pbb): Remove.
6987 (struct scop): Remove original_schedule, transformed_schedule, and
6988 saved_schedule.
6989 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
6990 (SCOP_SAVED_SCHEDULE): Remove.
6991 (poly_scattering_new): Remove.
6992 (poly_scattering_free): Remove.
6993 (poly_scattering_copy): Remove.
6994 (store_scattering_pbb): Remove.
6995 (store_lst_schedule): Remove.
6996 (restore_lst_schedule): Remove.
6997 (store_scattering): Remove.
6998 (restore_scattering_pbb): Remove.
6999 (restore_scattering): Remove.
7000 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7001 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
7002 compute the scattering polyhedron dimension from the dimension of
7003 pbb->domain.
7004 (build_scop_scattering): Update call to
7005 build_pbb_scattering_polyhedrons.
7006 (build_poly_scop): Remove call to scop_to_lst.
7007 * graphite.c (graphite_transform_loops): Add call to print_scop.
7008 (gate_graphite_transforms): Remove use of flag_loop_block,
7009 flag_loop_interchange, and flag_loop_strip_mine.
7010
7011 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7012
7013 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7014 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7015 -floop-nest-optimize.
7016 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7017 (generate_luj_sepclass): Remove.
7018 (generate_luj_options): Remove.
7019 (set_options): Remove opt_luj.
7020 (scop_to_isl_ast): Remove opt_luj.
7021 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7022 flag_loop_unroll_jam.
7023 (getPrevectorMap_full): Remove.
7024 (getScheduleForBandList): Remove map_sepcl.
7025 (getScheduleMap): Same.
7026 (apply_schedule_map_to_scop): Remove sepcl.
7027 (optimize_isl): Same.
7028 * graphite-poly.c (apply_poly_transforms): Remove check for
7029 flag_loop_unroll_jam.
7030 (new_poly_bb): Remove map_sepclass.
7031 * graphite-poly.h (struct poly_bb): Same.
7032 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7033 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7034 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7035 * toplev.c (process_options): Remove flag_loop_unroll_jam.
7036
7037 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
7038
7039 PR target/67317
7040 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7041 (addqi3_cc): Ditto.
7042 (UNSPEC_ADD_CARRY): Remove.
7043 (addqi3_cconly_overflow): New expander.
7044 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7045 Adjust for changed add<mode>3_carry.
7046 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7047 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7048 (<plusminus_insn><mode>3_carry): Remove expander.
7049 (*<plusminus_insn><mode>3_carry): Split insn pattern to
7050 add<mode>3_carry and sub<mode>3_carry.
7051 (plusminus_carry_mnemonic): Remove code attribute.
7052 (add<mode>3_carry): Canonicalize insn pattern.
7053 (*addsi3_carry_zext): Ditto.
7054 (sub<mode>3_carry): Ditto.
7055 (*subsi3_carry_zext): Ditto.
7056 (adcx<mode>3): Remove insn pattern.
7057 (addcarry<mode>): New insn pattern.
7058 (subborrow<mode>): Ditto.
7059 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7060 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7061 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7062 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7063 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7064 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7065 Rewrite expander to not clobber carry flag chains.
7066
7067 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
7068
7069 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7070 instead of a rotate.
7071
7072 2015-08-27 Marek Polacek <polacek@redhat.com>
7073
7074 PR middle-end/67005
7075 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7076 an entry into an irreducible region.
7077
7078 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7079
7080 * configure: Regenerate.
7081
7082 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7083
7084 PR tree-optimization/67283
7085 * tree-sra.c (type_consists_of_records_p): Rename to...
7086 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7087
7088 (completely_scalarize_record): Rename to...
7089 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7090 (scalarize_elem): New.
7091
7092 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7093
7094 * tree-sra.c (completely_scalarize_var): Rename to...
7095 (create_total_scalarization_access): ... Here. Drop call to
7096 completely_scalarize_record.
7097
7098 (analyze_all_variable_accesses): Replace completely_scalarize_var
7099 with create_total_scalarization_access and completely_scalarize_record.
7100
7101 2015-08-27 Alan Modra <amodra@gmail.com>
7102
7103 PR target/67356
7104 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7105 for operand 1.
7106
7107 2015-08-27 Richard Biener <rguenther@suse.de>
7108
7109 * passes.c (rest_of_decl_compilation): Guard early_global_decl
7110 call with !seen_error ().
7111 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7112 early debug generation and finish...
7113 (symbol_table::compile): ... here to put it after a !seen_error ()
7114 guard.
7115
7116 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7117
7118 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7119 Solaris 12+.
7120
7121 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7122 Andre Vieira <andre.simoesdiasvieira@arm.com>
7123
7124 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7125 (*cb<optab><mode>1): Likewise.
7126 (*tb<optab><mode>1): Likewise.
7127 (*cb<optab><mode>1): Likewise.
7128 * config/aarch64/iterators.md (inv_cb): New code attribute.
7129 (inv_tb): Likewise.
7130 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7131 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7132
7133 2015-08-27 Richard Biener <rguenther@suse.de>
7134
7135 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7136
7137 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
7138
7139 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7140 trap to fix ICE.
7141
7142 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7143
7144 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7145 Add declaration.
7146
7147 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7148 comment.
7149 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7150 floating point in VSX registers.
7151 (rs6000_output_move_128bit): Always print out the set insn if we
7152 can't generate an appropriate 128-bit move.
7153 (rs6000_generate_compare): Add support for IEEE 128-bit floating
7154 point in VSX registers comparisons.
7155 (rs6000_expand_float128_convert): Likewise.
7156
7157 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7158 predicate for only GPR hard registers.
7159
7160 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7161 modes to iterators. Add new iterators for moving 128-bit values in
7162 scalar FPR registers and VSX registers.
7163 (FMOVE128): Likewise.
7164 (FMOVE128_FPR): Likewise.
7165 (FMOVE128_GPR): Likewise.
7166 (FMOVE128_VSX): Likewise.
7167 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7168 in VSX registers.
7169 (IFKF): Likewise.
7170 (IBM128): Likewise.
7171 (TFIFKF): Likewise.
7172 (RELOAD): Add IEEE 128-bit floating point modes.
7173 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7174 floating point in VSX registers modes.
7175 (signbit<mode>2, IBM128 iterator): Likewise.
7176 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7177 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7178 (negtf2): Likewise.
7179 (neg<mode>2, TFIFKF iterator): Likewise.
7180 (negtf2_internal): Likewise.
7181 (abstf2): Likewise.
7182 (abs<mode>2, TFIFKF iterator): Likewise.
7183 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7184 VSX insn support for negate, absolute value, and negative absolute
7185 value.
7186 (ieee_128bit_vsx_neg<mode>2): Likewise.
7187 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7188 (ieee_128bit_vsx_abs<mode>2): Likewise.
7189 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7190 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7191 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7192 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7193 floating point in VSX registers.
7194 (unpack<mode>_dm): Likewise.
7195 (unpack<mode>_nodm): Likewise.
7196 (pack<mode>): Likewise.
7197 (unpackv1ti): Likewise.
7198 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7199 (packv1ti): Likewise.
7200 (pack<mode>, FMOVE128_VSX iterator): Likewise.
7201 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7202 registers.
7203 (extenddftf2_internal): Likewise.
7204 (trunctfdf2): Likewise.
7205 (trunctfdf2_internal2): Likewise.
7206 (fix_trunc_helper): Likewise.
7207 (fix_trunctfdi2"): Likewise.
7208 (floatditf2): Likewise.
7209 (floatuns<mode>tf2): Likewise.
7210 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7211 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7212 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7213 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7214 (float<SDI:mode><IFKF:mode>2): Likewise.
7215 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7216
7217 2015-08-26 Renlin Li <renlin.li@arm.com>
7218
7219 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7220
7221 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7222 Jiong Wang <jiong.wang@arm.com>
7223
7224 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7225 (tlsie_tiny_<mode>): New define_insn.
7226 (tlsie_tiny_sidi): Likewise.
7227 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7228 SYMBOL_TINY_TLSIE.
7229 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7230 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7231 SYMBOL_TINY_TLSIE.
7232 (aarch64_expand_mov_immediate): Likewise.
7233 (aarch64_print_operand): Likewise.
7234 (arch64_classify_tls_symbol): Likewise.
7235
7236 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7237
7238 * config/arm/arm-arches.def: Replace single value flags with
7239 an initializer built from ARM_FSET_MAKE_CPU1.
7240 * config/arm/arm-cores.def: Likewise.
7241 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7242 derivation from the ARM_CORE macro definition, use the given value
7243 instead.
7244 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7245 ARM_ARCH macro definition, use the given value instead.
7246
7247 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7248
7249 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7250 feature set.
7251 (struct builtin_description): Replace field mask with field
7252 features.
7253 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7254 (IWMMXT2_BUILTIN): Likewise.
7255 (IWMMXT2_BUILTIN2): Likewise.
7256 (FP_BUILTIN): Likewise.
7257 (CRC32_BUILTIN): Likewise.
7258 (CRYPTO_BUILTIN): Likewise.
7259 (iwmmx_mbuiltin): Likewise.
7260 (iwmmx2_mbuiltin): Likewise.
7261 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7262 struct builtin_description.
7263
7264 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7265
7266 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7267 (struct builtin_description): Change type of mask to unsigned
7268 long.
7269 * config/arm/arm-protos.h (insn_flags): Declare as type
7270 arm_feature_set.
7271 (tune_flags): Likewise.
7272 * config/arm/arm.c (feature_count): New.
7273 (insn_flags): Define as type arm_feature_set.
7274 (tune_flags): Likewise.
7275 (struct processors): Define field flags as type arm_feature_set.
7276 (all_cores): Update for change to struct processors.
7277 (all_architectures): Likewise.
7278 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7279 macros.
7280 (arm_option_override_internal): Likewise.
7281 (arm_option_override): Likewise.
7282
7283 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7284 Jiong Wang <jiong.wang@arm.com>
7285
7286 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7287 tls size for tiny, small, large memory model.
7288 (aarch64_load_symref_appropriately): Support new symbol types.
7289 (aarch64_expand_mov_immediate): Likewise.
7290 (aarch64_print_operand): Likewise.
7291 (aarch64_classify_tls_symbol): Likewise.
7292 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7293 (aarch64_symbol_type): Likewise.
7294 * config/aarch64/aarch64.md (tlsle): Deleted.
7295 (tlsle12_<mode>): New define_insn.
7296 (tlsle24_<mode>): Likewise.
7297 (tlsle32_<mode>): Likewise.
7298 (tlsle48_<mode>): Likewise.
7299 * doc/sourcebuild.texi (AArch64-specific attributes): Document
7300 "aarch64_tlsle32".
7301
7302 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7303
7304 * config/arm/arm-protos.h (FL_NONE): New.
7305 (FL_ANY): New.
7306 (arm_feature_set): New.
7307 (ARM_FSET_MAKE): New.
7308 (ARM_FSET_MAKE_CPU1): New.
7309 (ARM_FSET_MAKE_CPU2): New.
7310 (ARM_FSET_CPU1): New.
7311 (ARM_FSET_CPU2): New.
7312 (ARM_FSET_EMPTY): New.
7313 (ARM_FSET_ANY): New.
7314 (ARM_FSET_HAS_CPU1): New.
7315 (ARM_FSET_HAS_CPU2): New.
7316 (ARM_FSET_HAS_CPU): New.
7317 (ARM_FSET_ADD_CPU1): New.
7318 (ARM_FSET_ADD_CPU2): New.
7319 (ARM_FSET_DEL_CPU1): New.
7320 (ARM_FSET_DEL_CPU2): New.
7321 (ARM_FSET_UNION): New.
7322 (ARM_FSET_INTER): New.
7323 (ARM_FSET_XOR): New.
7324 (ARM_FSET_EXCLUDE): New.
7325 (AFM_FSET_IS_EMPTY): New.
7326 (ARM_FSET_CPU_SUBSET): New.
7327
7328 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7329
7330 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7331 SYMBOL_TLSLE to SYMBOL_TLSLE24.
7332 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7333 Likewise.
7334 (aarch64_expand_mov_immediate): Likewise.
7335 (aarch64_print_operand): Likewise.
7336 (aarch64_classify_symbol): Likewise.
7337
7338 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7339
7340 * config/aarch64/aarch64.opt (mtls-size): New entry.
7341 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7342 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7343 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7344
7345 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7346
7347 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7348 ARM_CORE entry. Fix some white-space.
7349 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7350 ARM_CORE definition.
7351
7352 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7353
7354 * fold-const.c (fold_binary_loc) : Move Optimize
7355 root(x)*root(y) as root(x*y) to match.pd.
7356 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7357 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7358 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7359 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7360 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7361 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7362 (mult (exps:s @0) (exps:s @1)) : New simplifier.
7363 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7364 (rdiv @0 (exps:s @1)) : New simplifier.
7365
7366 2015-08-25 Joseph Myers <joseph@codesourcery.com>
7367
7368 * gcc.c (driver::finalize): Only assign to extra_specs if
7369 [EXTRA_SPECS].
7370
7371 2015-08-25 Marek Polacek <polacek@redhat.com>
7372
7373 PR middle-end/67330
7374 * varasm.c (declare_weak): Return after giving an error.
7375
7376 2015-08-25 David Malcolm <dmalcolm@redhat.com>
7377
7378 * gcc-main.c (main): Add params to driver ctor.
7379 * gcc.c (class env_manager): New.
7380 (env): New global.
7381 (env_manager::init): New.
7382 (env_manager::get): New.
7383 (env_manager::xput): New.
7384 (env_manager::restore): New.
7385 Poison getenv and putenv.
7386 (DEFAULT_TARGET_SYSTEM_ROOT): New.
7387 (target_system_root): Update initialization to use
7388 DEFAULT_TARGET_SYSTEM_ROOT.
7389 (struct spec_list): Add field "default_ptr".
7390 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7391 (init_spec): Likewise.
7392 (set_spec): Clear field "default_ptr".
7393 (read_specs): Free "spec" and "buffer".
7394 (xputenv): Reimplement in terms of env_manager.
7395 (process_command): Replace ::getenv calls with calls to the
7396 env_manager singleton.
7397 (process_brace_body): Free string in three places.
7398 (driver::driver): New.
7399 (driver::~driver): New.
7400 (used_arg): Convert from a function to...
7401 (class used_arg_t): ...this class, and...
7402 (used_arg): ...this new global instance.
7403 (used_arg_t::finalize): New function.
7404 (getenv_spec_function): Add "const" to local "value". Replace
7405 ::getenv call with call to the env_manager singleton.
7406 (path_prefix_reset): New function.
7407 (driver::finalize): New function.
7408 * gcc.h (driver::driver): New.
7409 (driver::~driver): New.
7410 (driver::finalize): New.
7411
7412 2015-08-25 Nathan Sidwell <nathan@acm.org>
7413
7414 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7415 target doesn't have one.
7416
7417 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7418
7419 PR target/67346
7420 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7421
7422 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7423
7424 PR target/67344
7425 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7426 a define_insn, remove second alternative.
7427
7428 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
7429 Joseph Myers <joseph@codesourcery.com>
7430
7431 * gcc.c (struct switchstr): Expand comment.
7432
7433 2015-08-25 Nathan Sidwell <nathan@acm.org>
7434
7435 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7436 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7437
7438 2015-08-25 Richard Biener <rguenther@suse.de>
7439
7440 PR middle-end/67306
7441 * genmatch.c (expr::gen_transform): Verify the result of
7442 builtin_decl_implicit.
7443 (dt_simplify::gen_1): Likewise.
7444
7445 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7446
7447 * config/arm/constraints.md: Also list Cs and US ARM-specific
7448 constraints as used.
7449
7450 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
7451
7452 PR target/66609
7453 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7454 UNSPEC_PCREL.
7455 (nonpic_symbol_mentioned_p): Likewise.
7456 (sh_delegitimize_address): Likewise.
7457 (sh_function_ok_for_sibcall): Take into account weak symbols.
7458 (sh_expand_sym_label2reg): New.
7459 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7460 * config/sh/sh.md (UNSPEC_PCREL): New enum.
7461 (call_pcrel): Use sh_expand_sym_label2reg.
7462 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7463 (symPCREL_label2reg) New expand.
7464
7465 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7466
7467 * graphite-poly.c: Change type of region from void* to sese.
7468 * graphite-poly.h (struct scop): Changing the type of scop::region
7469 from void* to sese. Change accessor macro accordingly.
7470 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7471
7472 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7473
7474 * graphite-scop-detection.c (stmt_simple_for_scop_p):
7475 Constrain only on INTEGER_TYPE.
7476
7477 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7478
7479 PR target/67211
7480 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7481 -mefficient-unaligned-vsx on ISA 2.7.
7482
7483 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7484 option to a masked option.
7485
7486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7487 logic for -mefficient-unaligned-vsx so that it is set via an arch
7488 ISA option, instead of being set if -mtune=power8 is set. Move
7489 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7490 near other default option handling.
7491
7492 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * genflags.c (gen_macro): Delete.
7495 (gen_proto): Don't create GEN.*CALL.* macros.
7496 * gensupport.h (get_file_location): Declare.
7497 * gensupport.c (rtx_locs): New variable.
7498 (read_md_rtx): Record rtx locations.
7499 (get_file_location): New function.
7500 * target-insns.def (call, call_pop, call_value, call_value_pop)
7501 (sibcall, sibcall_value): New patterns.
7502 * gentarget-def.c (parse_argument): New function.
7503 (def_target_insn): Use it. Handle optional operands. Raise an
7504 error if an .md pattern has the wrong number of operands for the
7505 pattern name. Remove the names of unused operands from the prototype.
7506 * builtins.c (expand_builtin_apply): Use targetm functions
7507 instead of HAVE_call_value and GEN_CALL_VALUE.
7508 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
7509 and sibcall_value_pop.
7510 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7511 of GEN_CALL.
7512 * config/alpha/alpha.md (untyped_call): Likewise.
7513 * config/iq2000/iq2000.md (untyped_call): Likewise.
7514 * config/m68k/m68k.md (untyped_call): Likewise.
7515 * config/mips/mips.md (untyped_call): Likewise.
7516 * config/pa/pa.md (untyped_call): Likewise.
7517 * config/rs6000/rs6000.md (untyped_call): Likewise.
7518 * config/sparc/sparc.md (untyped_call): Likewise.
7519 * config/tilegx/tilegx.md (untyped_call): Likewise.
7520 * config/tilepro/tilepro.md (untyped_call): Likewise.
7521 * config/visium/visium.md (untyped_call): Likewise.
7522 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7523 gen_call_value instead of GEN_CALL_VALUE.
7524 * config/arm/arm.md (untyped_call): Likewise.
7525 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7526 GEN_CALL.
7527
7528 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7529
7530 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7531 (have_cbranchcc4): New variable.
7532 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7533 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7534 (if_convert): Initialize have_cbranchcc4.
7535
7536 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * builtins.c (expand_cmpstrn): Rename to...
7539 (expand_cmpstrn_or_cmpmem): ...this.
7540 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7541 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7542 Remove mode argument.
7543 (expand_builtin): Update accordingly.
7544
7545 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7546
7547 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7548 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
7549 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7550 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7551 Add predicates for operands 0 and 3.
7552 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7553 operand.
7554 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7555 immediate_operand to nonmemory_operand.
7556
7557 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7558
7559 * df-scan.c (df_insn_info_init_fields): New function, split out
7560 from...
7561 (df_insn_create_insn_record): ...here.
7562 (df_insn_info_free_fields): New function, split out from...
7563 (df_insn_info_delete): ...here.
7564 (df_insn_rescan): Use the new functions instead of freeing and
7565 reallocating the df_insn_info.
7566
7567 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7568
7569 * doc/install.texi (Binaries): Remove links no longer valid.
7570
7571 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7572
7573 * config/nvptx/mkoffload.c (process): Replace
7574 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7575
7576 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
7577
7578 PR target/67329
7579 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7580
7581 2015-08-24 Renlin Li <renlin.li@arm.com>
7582
7583 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7584 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7585 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7586 * config/arm/constraints.md ("j"): Add check for high code.
7587
7588 2015-08-24 Tom de Vries <tom@codesourcery.com>
7589
7590 PR tree-optimization/65468
7591 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7592 chunk_size is one.
7593
7594 2015-08-24 Nathan Sidwell <nathan@acm.org>
7595
7596 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7597 change to nvptx_type_from_mode call. Use arg_promotion for both
7598 split and non-split args.
7599
7600 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7601
7602 * target-insns.def (movstr): New pattern.
7603 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7604 (expand_movstr): Use targetm rather than HAVE_movstr/
7605 CODE_FOR_movstr.
7606
7607 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7608
7609 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7610 cast syntax.
7611
7612 2015-08-24 Andrew Pinski <apinski@cavium.com>
7613
7614 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7615 AARCH64_EXTRA_TUNING_OPTION.
7616 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7617 New enum.
7618 (aarch64_extra_tuning_flags): Base the shifted value on the index
7619 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7620 * config/aarch64/aarch64.c: Remove the last argument to
7621 AARCH64_EXTRA_TUNING_OPTION.
7622
7623 2015-08-23 Nathan Sidwell <nathan@acm.org>
7624
7625 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7626 decls.
7627 (nvptx_declare_function_name): Insert formatting tabs for
7628 consistency.
7629
7630 2015-08-23 Tom de Vries <tom@codesourcery.com>
7631
7632 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7633 parm_decl, rather than generating a dummy default def in cfun.
7634 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
7635 ssa_name from cfun and child_fn do not share a stmt as def stmt.
7636 (move_stmt_op): Handle PARM_DECl.
7637 (gather_ssa_name_hash_map_from): New function.
7638 (move_sese_region_to_fn): Add default defs for function params, and add
7639 them to vars_map. Release copied ssa names.
7640 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7641
7642 2015-08-23 Tom de Vries <tom@codesourcery.com>
7643
7644 * doc/sourcebuild.texi: Rename vect_no_int_max with
7645 vect_no_int_min_max. Update description.
7646
7647 2015-08-22 Andrew Pinski <apinski@cavium.com>
7648
7649 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7650 * config/aarch64/aarch64-protos.h
7651 (aarch64_fusion_pairs_index): New enum.
7652 (aarch64_fusion_pairs): Base the shifted value on the index instead
7653 Rewrite AARCH64_FUSE_ALL to be based on the end index.
7654 of the argument to AARCH64_FUSION_PAIR.
7655 * config/aarch64/aarch64.c: Remove the last argument to
7656 AARCH64_FUSION_PAIR.
7657
7658 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
7659
7660 * dominance.c (new_zero_array): Define.
7661 (dom_info): Redefine as class with proper encapsulation.
7662 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7663 Add new members.
7664 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
7665 allocations/deallocations. Pass function as parameter (instead of
7666 using cfun).
7667 (dom_info::get_idom): Define accessor method.
7668 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7669 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
7670 (calculate_dominance_info): Adjust to use dom_info class.
7671 (verify_dominators): Likewise.
7672
7673 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
7674
7675 * print-rtl.c (print_rtx): Check the correct range for
7676 flag_dump_unnumbered_links to behave as documented.
7677
7678 PR rtl-optimization/67227
7679 PR rtl-optimization/64164
7680 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7681 (nonoverlapping_memrefs_p): Test offsets and sizes when given
7682 identical gimple_reg exprs.
7683
7684 2015-08-21 Nathan Sidwell <nathan@acm.org>
7685
7686 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7687 expansion.
7688 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7689 crtl->stack_alignment_needed to determine alignment.
7690 (nvptx_get_drap_rtx): New.
7691 (TARGET_GET_DRAP_RTX): Override.
7692 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7693
7694 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7695
7696 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7697
7698 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7699
7700 * configure.ac: Remove uwin* cases.
7701 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7702 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7703 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7704 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7705 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7706 i[34567]86-*-uwin*, powerpc-*-beos*.
7707
7708 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
7709
7710 * gencodes.c (gencodes): Print the comma for the preceding
7711 enum value rather than the current one. Use aliased enum values
7712 rather than #defines for compiled-out patterns.
7713 (main): Update accordingly. Replace LAST_INSN_CODE with
7714 NUM_INSN_CODES.
7715 * lra.c (insn_code_data): Update accordingly.
7716 (finish_insn_code_data_once, get_static_insn_data): Likewise.
7717 * recog.h (target_recog): Likewise.
7718 (preprocess_insn_constraints): Change parameter to unsigned int.
7719 * recog.c (preprocess_insn_constraints): Likewise.
7720 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7721 * tree-vect-stmts.c (vectorizable_operation): Simplify.
7722
7723 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
7724
7725 PR rtl-optimization/61657
7726 * loop-iv.c (iv_number_of_iterations): Declare up and down as
7727 unsigned. Remove superflous uint64_t cast.
7728
7729 2014-08-21 Felix Yang <felix.yang@huawei.com>
7730 Jiji Jiang <jiangjiji@huawei.com>
7731
7732 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7733 argument and get builtin function code directly from CALL.
7734 (gimple_stringop_fixed_value): Modified accordingly.
7735 (gimple_stringops_transform, gimple_stringops_values_to_profile):
7736 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
7737
7738 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
7739
7740 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
7741
7742 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7743
7744 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
7745 to match.pd.
7746 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
7747 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
7748 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
7749 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
7750 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
7751 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
7752 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
7753 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
7754 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
7755 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
7756
7757 * match.pd (SIN ) : New Operator.
7758 (TAN) : New Operator.
7759 (mult (SQRT@1 @0) @1) : New simplifier.
7760 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
7761 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7762 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
7763 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
7764 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
7765 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
7766 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
7767 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
7768 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
7769 (rdiv @0 (POW:s @1 @2)) : New simplifier.
7770
7771 2015-08-21 Bin Cheng <bin.cheng@arm.com>
7772
7773 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
7774 loop if EXPR is simplified to const value.
7775
7776 2015-08-21 Yury Gribov <y.gribov@samsung.com>
7777
7778 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
7779 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
7780
7781 2015-08-21 Richard Biener <rguenther@suse.de>
7782
7783 PR middle-end/67285
7784 * gimple-fold.c (replace_stmt_with_simplification): Assert
7785 seq is empty when replacing a call with itself but different
7786 arguments.
7787 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
7788 a call require that it is const.
7789
7790 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7791
7792 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
7793 * builtins.c (get_object_alignment_2): Adjust.
7794 * varasm.c (align_variable): Likewise.
7795 (get_variable_align): Likewise.
7796 (build_constant_desc): Likewise.
7797 (force_const_mem): Likewise.
7798 * doc/tm.texi.in: Likewise.
7799 * doc/tm.texi: Regenerate.
7800
7801 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7802
7803 * genconfig.c (main): Always define HAVE_cc0.
7804 * recog.c (rest_of_handle_peephole2): Adjust.
7805
7806 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7807
7808 * reorg.c (relax_delay_slots): Don't use #if to check value of
7809 HAVE_cc0.
7810
7811 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7812
7813 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
7814 * targhooks.c (default_have_conditional_execution): Adjust.
7815
7816 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7817
7818 * rtl.h (rtvec_all_equal_p): Declare.
7819 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
7820 * rtl.c (rtvec_all_equal_p): New function.
7821 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
7822 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
7823 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
7824 * config/arm/arm.c (neon_vdup_constant): Likewise.
7825 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
7826 * config/tilegx/constraints.md (W, Y): Likewise.
7827 * config/tilepro/constraints.md (W, Y): Likewise.
7828 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
7829 (classify_immediate): Use unwrap_const_vec_duplicate.
7830 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
7831 (reg_or_v2s8bit_operand): Likewise.
7832 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
7833 (reg_or_v4s8bit_operand): Likewise.
7834
7835 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7836
7837 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
7838 (vec_shasigma_be): New #define.
7839 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
7840 (VPMSUMH): Likewise.
7841 (VPMSUMW): Likewise.
7842 (VPMSUMD): Likewise.
7843 (VPMSUM): New BU_P8V_OVERLOAD_2.
7844 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
7845 entries for VEC_MADD and VEC_VPMSUM.
7846
7847 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
7848
7849 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
7850 Multiply argument avr_n_flash by 64 to match unit of "KiB".
7851 (avr_pgm_check_var_decl): Same.
7852
7853 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
7854
7855 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
7856 initialization of HFmode scalar type (float16_t) to...
7857 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
7858 code.
7859
7860 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
7861
7862 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
7863 having an -mfp16-format.
7864
7865 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
7866
7867 * config/i386/predicates.md (vector_all_ones_operand): Use
7868 CONSTM1_RTX to simplify definition.
7869
7870 2015-08-20 Richard Biener <rguenther@suse.de>
7871
7872 * toplev.c (compile_file): Remove loop calling late_global_decl
7873 on all symbols.
7874 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
7875 on decls we assembled.
7876
7877 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
7878
7879 * common/config/aarch64/aarch64-common.c
7880 (AARCH64_CPU_NAME_LENGTH): Delete.
7881 (aarch64_option_extension): New.
7882 (all_extensions): Likewise.
7883 (processor_name_to_arch): Likewise.
7884 (arch_to_arch_name): Likewise.
7885 (all_cores): New.
7886 (all_architectures): Likewise.
7887 (aarch64_get_extension_string_for_isa_flags): Likewise.
7888 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
7889 architecture names.
7890 * config/aarch64/aarch64-protos.h
7891 (aarch64_get_extension_string_for_isa_flags): New.
7892 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
7893 (aarch64_option_print): Get the string to print from
7894 aarch64_get_extension_string_for_isa_flags.
7895 (aarch64_declare_function_name): Likewise.
7896 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
7897 (MCPU_TO_MARCH_SPEC): This.
7898 (ASM_CPU_SPEC): Use it.
7899 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
7900 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
7901 (EXTRA_SPEC_FUNCTIONS): Use it.
7902
7903 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
7904
7905 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
7906 expansion when !ISA_HAS_LWL_LWR.
7907 (mips_block_move_straight): Update the size of elements copied to
7908 account for alignment when !ISA_HAS_LWL_LWR.
7909 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
7910
7911 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7912
7913 * expr.c (expand_expr_real_2): Check gimple statement during
7914 LSHIFT_EXPR expand.
7915
7916 2015-08-19 Magnus Granberg <zorry@gentoo.org>
7917
7918 * common.opt (fstack-protector): Initialize to -1.
7919 (fstack-protector-all): Likewise.
7920 (fstack-protector-strong): Likewise.
7921 (fstack-protector-explicit): Likewise.
7922 * configure.ac: Add --enable-default-ssp.
7923 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
7924 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
7925 -1.
7926 * doc/install.texi: Document --enable-default-ssp.
7927 * config.in: Regenerated.
7928 * configure: Likewise.
7929
7930 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
7931
7932 PR rtl-optimization/64164
7933 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
7934 (parm_in_stack_slot_p): ... this. Disregard mode, what
7935 matters is whether the parm will live in a pseudo or a stack
7936 slot.
7937 (expand_one_ssa_partition): Deal with params without a default
7938 def. Disregard mode.
7939 * cfgexpand.h: Renamed function declaration.
7940 * tree-ssa-coalesce.c: Adjust.
7941 * function.c (split_complex_args): Allocate stack slot for
7942 unassigned parms before splitting.
7943 (parm_in_unassigned_mem_p): New. Use it instead of
7944 parm_maybe_byref_p throughout this file.
7945 (assign_parm_setup_block): Use it. Accept pseudos in the
7946 expand-assigned rtl.
7947 (assign_parm_setup_reg): Drop BLKmode requirement.
7948 (assign_parm_setup_stack): Allocate and fill in the address of
7949 unassigned MEM parms.
7950
7951 2015-08-19 David Sherwood <david.sherwood@arm.com>
7952
7953 * genmodes.c (emit_mode_unit_size_inline): New function.
7954 (emit_mode_unit_precision_inline): New function.
7955 (emit_insn_modes_h): Emit new #define. Emit new functions.
7956 (emit_mode_unit_size): New function.
7957 (emit_mode_unit_precision): New function.
7958 (emit_mode_adjustments): Add mode_unit_size adjustments.
7959 (emit_insn_modes_c): Emit new arrays.
7960 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
7961 use new inline methods.
7962
7963 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7964
7965 * config/aarch64/aarch64.c (bit_count): Delete prototype
7966 and definition.
7967 (aarch64_print_operand): Use popcount_hwi instead of the above.
7968
7969 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7970
7971 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
7972 comment.
7973
7974 2015-08-19 Marek Polacek <polacek@redhat.com>
7975
7976 PR middle-end/67133
7977 * gimple-ssa-isolate-paths.c
7978 (insert_trap_and_remove_trailing_statements): Rename to ...
7979 (insert_trap): ... this. Don't remove trailing statements; split
7980 block instead.
7981 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
7982
7983 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
7984
7985 PR other/67042
7986 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
7987 conditionalize the whole on __GNUC__. Add fallback code
7988 depending neither on undefined nor implementation-defined behaviour.
7989
7990 2015-08-19 Jiong Wang <jiong.wang@arm.com>
7991
7992 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
7993 whitespaces with tab.
7994
7995 2015-08-19 Florian Weimer <fweimer@redhat.com>
7996
7997 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
7998 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
7999 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8000 Move Name_Ids instantiation to the Prj.Proc package, to avoid
8001 trampolines.
8002
8003 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8004
8005 * config/arm/arm.c (bounds_check): Use %wd print format
8006 for HOST_WIDE_INT arguments.
8007
8008 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
8009
8010 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8011 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8012 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8013 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8014 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8015 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8016 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8017 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8018 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8019 typedefs.
8020
8021 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
8022
8023 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8024 function.c, graphite-scop-detection.c, haifa-sched.c,
8025 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8026 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8027 varasm.c: Remove typedefs of structs.
8028
8029 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8030
8031 * config/rs6000/altivec.h (vec_adde): New define.
8032 (vec_addec): Likewise.
8033 (vec_double): Likewise.
8034 (vec_bperm): Likewise.
8035 (vec_gb): Likewise.
8036 * config/rs6000/rs6000-builtin.def (ADDE): New
8037 BU_ALTIVEC_OVERLOAD_3.
8038 (ADDEC): Likewise.
8039 (DOUBLE): New BU_VSX_OVERLOAD_1.
8040 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8041 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8042 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8043 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8044 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8045 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8046 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8047 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8048 and P8V_BUILTIN_VEC_VBPERMQ.
8049
8050 2015-08-18 Jason Merrill <jason@redhat.com>
8051
8052 * print-tree.c (print_node): Handle TREE_BINFO.
8053
8054 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8055
8056 PR middle-end/36757
8057 * builtins.c (expand_builtin_signbit): Add asserts to make sure
8058 we can expand BUILT_IN_SIGNBIT inline.
8059 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8060 * doc/extend.texi: Document the type-generic __builtin_signbit.
8061
8062 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
8063
8064 PR rtl-optimization/67218
8065 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8066 (simplify_unary_operation_1): Use it.
8067
8068 2015-08-18 Marek Polacek <polacek@redhat.com>
8069
8070 PR middle-end/67222
8071 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8072 if the call isn't valid.
8073 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8074 gimple_call_builtin_p.
8075 (call_may_clobber_ref_p_1): Likewise.
8076 (stmt_kills_ref_p): Likewise.
8077
8078 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
8079
8080 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8081 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8082 (mips_hard_regno_scratch_ok): Likewise.
8083 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8084 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8085
8086 2015-08-18 Bin Cheng <bin.cheng@arm.com>
8087
8088 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8089 (determine_value_range): Call refine_value_range_using_guard for
8090 each loop initial condition to improve value range.
8091
8092 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
8093
8094 * config/i386/i386.c: Remove include of fibheap.h.
8095
8096 2015-08-17 Richard Biener <rguenther@suse.de>
8097
8098 PR tree-optimization/67221
8099 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8100 (sccvn_dom_walker::before_dom_children): Mark backedges of
8101 non-executable blocks as not executable.
8102
8103 2015-08-17 David Sherwood <david.sherwood@arm.com>
8104
8105 * config/arm/arm.c (neon_element_bits): Replace call to
8106 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8107 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8108 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8109 (neon_vdup_lane<mode>): Likewise.
8110 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8111 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8112 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8113 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8114 * config/spu/spu.c (arith_immediate_p): Likewise.
8115 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8116 * expr.c (expand_expr_real_2): Likewise.
8117 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8118 * simplify-rtx.c (simplify_immed_subreg): Likewise.
8119 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8120 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8121 New variable.
8122 * fold-const.c (fold_binary_loc): Replace call to
8123 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8124 GET_MODE_UNIT_PRECISION (m).
8125
8126 2015-08-17 Mike Stump <mikestump@comcast.net>
8127
8128 * config/arm/arm.c (arm_block_move_unaligned_straight):
8129 Emit normal move instead of unaligned load when source or destination
8130 are appropriately aligned.
8131
8132 2015-08-17 Richard Biener <rguenther@suse.de>
8133 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8134
8135 PR middle-end/16107
8136 * match.pd (div (coss (op @0) : New simplifier.
8137
8138 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
8139
8140 PR rtl-optimization/64164
8141 PR bootstrap/66978
8142 PR middle-end/66983
8143 PR rtl-optimization/67000
8144 PR middle-end/67034
8145 PR middle-end/67035
8146 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8147 * tree-ssa-copyrename.c: Removed.
8148 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8149 -ftree-coalesce-vars.
8150 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8151 * common.opt (ftree-copyrename): Ignore.
8152 (ftree-coalesce-inlined-vars): Likewise.
8153 * doc/invoke.texi: Remove the ignored options above.
8154 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8155 * tree-ssa-coalesce.h: ... here.
8156 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8157 headers required by it.
8158 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8159 across variables when flag_tree_coalesce_vars. Check register
8160 use and promoted modes to allow coalescing. Do not coalesce
8161 maybe-byref parms with SSA_NAMEs of other variables, or
8162 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
8163 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8164 with its member functions to tree-ssa-coalesce.c.
8165 (var_map_base_init): Likewise. Renamed to
8166 compute_samebase_partition_bases.
8167 (partition_view_normal): Drop want_bases parameter.
8168 (partition_view_bitmap): Likewise.
8169 * tree-ssa-live.h: Adjust declarations.
8170 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8171 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8172 default defs at the entry point.
8173 (dump_part_var_map): New.
8174 (compute_optimized_partition_bases): New, called by...
8175 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8176 of compute_samebase_partition_bases. Adjust.
8177 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8178 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8179 (ssa_default_def_partition): New.
8180 (get_rtl_for_parm_ssa_default_def): New.
8181 (align_local_variable, add_stack_var): Support anonymous SSA
8182 names.
8183 (defer_stack_allocation): Likewise. Declare earlier.
8184 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8185 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8186 Do no record deferred-allocation marker in
8187 SA.partition_to_pseudo.
8188 (expand_stack_vars): Adjust check for the marker in it.
8189 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8190 redundant MEM attr setting.
8191 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8192 from...
8193 (expand_one_stack_var): ... this. New wrapper to check and
8194 skip already expanded SSA partitions.
8195 (record_alignment_for_reg_var): New, factored out of...
8196 (expand_one_var): ... this.
8197 (expand_one_ssa_partition): New.
8198 (adjust_one_expanded_partition_var): New.
8199 (expand_one_register_var): Check and skip already expanded SSA
8200 partitions.
8201 (expand_used_vars): Don't create DECLs for anonymous SSA
8202 names. Expand all SSA partitions, then adjust all SSA names.
8203 (pass::execute): Replace the loops that set
8204 SA.partition_to_pseudo from partition leaders and cleared
8205 DECL_RTL for multi-location variables, and that which used to
8206 rename vars and set attrs, with one that clears DECL_RTL and
8207 checks that PARMs and RESULTs default_defs match DECL_RTL.
8208 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8209 * emit-rtl.c: Include stor-layout.h.
8210 (set_reg_attrs_for_parm): Handle NULL decl.
8211 (set_reg_attrs_for_decl_rtl): Take mode from expression if
8212 it's not a DECL.
8213 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8214 rather than its possibly-NULL DECL.
8215 * explow.c (promote_ssa_mode): New.
8216 * explow.h (promote_ssa_mode): Declare.
8217 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8218 (read_complex_part): Export.
8219 * expr.h (read_complex_part): Declare.
8220 * cfgexpand.h (parm_maybe_byref_p): Declare.
8221 * function.c: Include cfgexpand.h.
8222 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8223 (use_register_for_parm_decl): Wrapper for the above to
8224 special-case the result_ptr.
8225 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8226 (split_complex_args): Take assign_parm_data_all argument.
8227 Pass it to rtl_for_parm. Set up rtl and context for split
8228 args. Reset complex parm before fetching its default decl
8229 rtl.
8230 (assign_parms_unsplit_complex): Use the default-def complex
8231 parm rtl if it matches the components.
8232 (assign_parms_augmented_arg_list): Adjust.
8233 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8234 multiple locations. Recognize split complex args.
8235 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8236 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8237 (assign_parm_setup_block): Prefer SSA-assigned location, and
8238 fill in its address if the memory location of a maybe-byref
8239 parm was not assigned by cfgexpand.
8240 (assign_parm_setup_reg): Likewise. Adjust its mode as
8241 needed. Use entry_parm for equiv if stack_parm is NULL. Make
8242 sure passed_pointer parms don't need conversion. Copy address
8243 or value as needed.
8244 (assign_parm_setup_stack): Prefer SSA-assigned location.
8245 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8246 rtl before testing for pointer bounds. Special-case result_ptr.
8247 (expand_function_start): Maybe reset DECL_RTL of result.
8248 Prefer SSA-assigned location for result and static chain.
8249 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
8250 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
8251 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8252 anonymous SSA names. Use promote_ssa_mode.
8253 (get_temp_reg): Likewise.
8254 (remove_ssa_form): Adjust.
8255 * stor-layout.c (layout_decl): Don't set mem attributes of
8256 non-MEMs.
8257 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8258 and get its reg_usage for reg invalidation.
8259 (compute_bb_dataflow): Pass it insn.
8260 (emit_notes_in_bb): Likewise.
8261
8262 2015-08-14 Marek Polacek <polacek@redhat.com>
8263
8264 * tree-core.h (tree_base): Fix typo.
8265
8266 2015-08-14 Marek Polacek <polacek@redhat.com>
8267
8268 PR middle-end/67133
8269 * gimple.c (infer_nonnull_range_by_attribute): Check that the
8270 nonnull argument position is not outside function arguments.
8271
8272 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
8273
8274 PR target/67143
8275 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8276 'lconst_atomic' with 'const_atomic'.
8277 (atomic_fetch_<optab><mode>): Likewise.
8278 (atomic_<optab>_fetch<mode>): Likewise.
8279 * config/aarch64/iterators.md (lconst-atomic): Move below
8280 'const_atomic'.
8281 (const_atomic): New.
8282
8283 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
8284 Bernd Schmidt <bernds@codesourcery.com>
8285
8286 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8287 debug options.
8288 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8289 (DWARF2_DEBUGGING_INFO): Don't define.
8290 * debug.h (dwarf2_lineno_debug_hooks): Declare.
8291 * toplev.c (process_options): Add a case for it.
8292 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8293 (dwarf2out_init): Skip most initializations if
8294 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8295 case.
8296 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8297 DWARF2_LINENO_DEBUGGING_INFO.
8298 * opts.c (set_debug_level): Likewise.
8299
8300 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
8301
8302 * config/arm/types.md (is_neon_type): Add missing types.
8303
8304 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8305
8306 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8307 for skylake.
8308 * config/i386/i386.c (PTA_SKYLAKE): New macros.
8309 (processor_alias_table): Add skylake description.
8310 (enum processor_model): Add skylake processor.
8311 (arch_names_table): Add skylake record.
8312 * doc/invoke.texi: Add skylake item.
8313
8314 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
8315
8316 * ira-int.h: Include recog.h.
8317 * ira-build.c: Don't include recog.h.
8318 * ira-color.c: Likewise.
8319 * ira-conflicts.c: Likewise.
8320 * ira-costs.c: Likewise.
8321 * ira-emit.c: Likewise.
8322 * ira-lives.c: Likewise.
8323 * ira.c: Likewise.
8324 * sched-deps.c: Likewise.
8325 * sel-sched.c: Likewise.
8326 * target-globals.c: Likewise.
8327
8328 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
8329
8330 PR bootstrap/55035
8331 * reload1.c (elimination_costs_in_insn): Make it obvious to the
8332 compiler that the n_dups and n_operands loop bounds are invariant.
8333
8334 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8335
8336 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8337 expressions in A and B.
8338
8339 2015-08-13 Richard Biener <rguenther@suse.de>
8340
8341 * tree.c (nonnull_arg_p): Move from ...
8342 * tree-vrp.c (nonnull_arg_p): ... here.
8343 * tree.h (nonnull_arg_p): Declare.
8344 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8345 here, register ptr != 0 for nonnull_arg_p pointer arguments.
8346 Properly initialize static chain and by-reference result pointer.
8347 (run_scc_vn): Adjust.
8348
8349 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8350
8351 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8352 TUNE_I6400.
8353
8354 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8355
8356 * config/aarch64/aarch64-protos.h
8357 (aarch64_gen_atomic_cas): Declare.
8358 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8359 Choose appropriate instruction pattern for the target.
8360 (aarch64_gen_atomic_cas): New.
8361 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8362 (atomic_compare_and_swap<mode>_1): Rename to
8363 aarch64_compare_and_swap<mode>. Fix some indentation.
8364 (aarch64_compare_and_swap<mode>_lse): New.
8365 (aarch64_atomic_cas<mode>): New.
8366
8367 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8368
8369 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8370 (TARGET_LSE): New.
8371
8372 2015-08-13 Richard Biener <rguenther@suse.de>
8373
8374 PR tree-optimization/67191
8375 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8376 assert we value-numbered last stmts operand because it can validly
8377 trigger for unreachable code.
8378
8379 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8380
8381 PR rtl-optimization/67103
8382 * ifcvt.c (noce_try_store_flag_constants): Move
8383 x = (-(test != 0) & (b - a)) + a transformation to...
8384 (noce_try_cmove): ... Here. Try it if normal conditional
8385 move fails.
8386
8387 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8388
8389 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8390 pseudo-processors.
8391 * config/mips/mips.md (processor): Remove w32 and w64.
8392
8393 2015-08-13 Richard Biener <rguenther@suse.de>
8394
8395 PR tree-optimization/66502
8396 PR tree-optimization/67167
8397 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8398 backedge arguments.
8399 (vn_phi_lookup): Adjust.
8400 (vn_phi_insert): Likewise.
8401 (visit_phi): Prefer to value-number to another PHI node
8402 over value-numbering to a PHI argument.
8403 (init_scc_vn): Mark DFS back edges.
8404
8405 2015-08-13 Richard Biener <rguenther@suse.de>
8406
8407 * gimple.h (gcall::code_): New constant static member.
8408 (gcond::code_): Likewise.
8409 * gimple.c (gcall::code_): Define.
8410 (gcond::code_): Likewise.
8411 (is_a_helper <const gcond *>): Add.
8412 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8413 and forward to a new gcall overload with less checking and a
8414 cheaper way to access the operand.
8415 (gimple_call_lhs_ptr): Likewise.
8416 (gimple_call_set_lhs): Likewise.
8417 (gimple_call_internal_p): Likewise.
8418 (gimple_call_with_bounds_p): Likewise.
8419 (gimple_call_set_with_bounds): Likewise.
8420 (gimple_call_internal_fn): Likewise.
8421 (gimple_call_set_ctrl_altering): Likewise.
8422 (gimple_call_ctrl_altering_p): Likewise.
8423 (gimple_call_fntype): Likewise.
8424 (gimple_call_fn): Likewise.
8425 (gimple_call_fn_ptr): Likewise.
8426 (gimple_call_set_fndecl): Likewise.
8427 (gimple_call_fndecl): Likewise.
8428 (gimple_call_chain): Likewise.
8429 (gimple_call_num_args): Likewise.
8430 (gimple_call_arg): Likewise.
8431 (gimple_call_arg_ptr): Likewise.
8432 (gimple_call_set_arg): Likewise.
8433 (gimple_call_noreturn_p): Likewise.
8434 (gimple_cond_code): Likewise.
8435 (gimple_cond_lhs): Likewise.
8436 (gimple_cond_rhs): Likewise.
8437 (gimple_has_lhs): Reduce checking.
8438
8439 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8440
8441 PR middle-end/25529
8442 * match.pd (div (mult @0 @1) @1) : New simplifier.
8443
8444 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8445
8446 PR target/67071
8447 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8448 predicate to allow construction of vector constants using the
8449 VSLDOI vector shift instruction.
8450
8451 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8452 declaration.
8453
8454 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8455 the number of bytes to be shifted left and filled in with either
8456 all zero or all one bits.
8457 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8458 methods exist.
8459 (output_vec_const_move): On power8, generate XXLORC to generate
8460 a vector constant with all 1's. Do a split if we need to use a
8461 VSLDOI instruction.
8462
8463 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8464 properly test for the MSB.
8465
8466 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8467 vector constants that can be created with VSLDOI.
8468
8469 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8470
8471 revert:
8472 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8473 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8474 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8475 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8476 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8477 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8478 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8479 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8480 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8481
8482 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
8483
8484 * config/xtensa/constraints.md (define_constraint "Y"): New
8485 constraint.
8486 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8487 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8488 * config/xtensa/predicates.md (move_operand): Match constants
8489 and symbols in the presence of TARGET_AUTO_LITPOOLS.
8490 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8491 immediate references to TLS data.
8492 (xtensa_emit_move_sequence): Don't force constants to memory in
8493 the presence of TARGET_AUTO_LITPOOLS.
8494 (print_operand): Add 'y' format, same as default, but capable of
8495 printing SF mode constants as well.
8496 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8497 (movsf_internal): Add movi pattern that loads literal.
8498 (movsf, movdf): Don't force constants to memory in the presence
8499 of TARGET_AUTO_LITPOOLS.
8500 (movdf_internal): Add 'Y' constraint.
8501 * config/xtensa/xtensa.opt (mauto-litpools): New option.
8502 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8503
8504 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8505
8506 * config/arm/arm-fpus.def: Replace booleans with feature flags.
8507 Update comment.
8508 * config/arm/arm.c (ARM_FPU): Update macro.
8509 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8510 (TARGET_FP16): Likewise.
8511 (TARGET_CRYPTO): Likewise.
8512 (TARGET_NEON): Likewise.
8513 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
8514 field features.
8515
8516 2015-08-12 Tom de Vries <tom@codesourcery.com>
8517
8518 PR other/67092
8519 PR other/67098
8520 * doc/install.texi: Remove --with_host_libstdcxx item. Update
8521 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8522 accordingly. Mention default for --with-stage1-ldflags.
8523
8524 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8525
8526 * config/arm/arm.h (arm_fpu_feature_set): New.
8527 (ARM_FPU_FSET_HAS): New.
8528 (FPU_FL_NONE): New.
8529 (FPU_FL_NEON): New.
8530 (FPU_FL_FP16): New.
8531 (FPU_FL_CRYPTO): New.
8532
8533 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8534
8535 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8536 after -mcmodel=large -fPIC sorry.
8537
8538 2015-08-12 Richard Biener <rguenther@suse.de>
8539
8540 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8541 comparison operand order and commutative ternary op operand order.
8542 (sccvn_dom_walker::cond_stack): New state to track temporary
8543 expressions.
8544 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8545 no longer valid.
8546 (sccvn_dom_walker::record_cond): Add a single temporary conditional
8547 expression.
8548 (sccvn_dom_walker::record_conds): Add a temporary conditional
8549 expressions and all related expressions also true/false.
8550 (sccvn_dom_walker::before_dom_children): Record temporary
8551 expressions based on the controlling condition of a single
8552 predecessor. When trying to simplify a conditional statement
8553 lookup expressions we might have inserted earlier.
8554
8555 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
8556
8557 PR target/67127
8558 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8559 to ARM core registers.
8560
8561 2015-08-12 Nathan Sidwell <nathan@acm.org>
8562
8563 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8564 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8565
8566 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
8567
8568 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8569 line with comments.
8570 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8571
8572 2015-08-12 Richard Biener <rguenther@suse.de>
8573
8574 * gimple.h (remove_pointer): New trait.
8575 (GIMPLE_CHECK2): New inline template function.
8576 (gassign::code_): New constant static member.
8577 (is_a_helper<const gassign *>): Add.
8578 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8579 and forward to a new gassign overload with less checking and a
8580 cheaper way to access the operand.
8581 (gimple_assign_lhs_ptr): Likewise.
8582 (gimple_assign_set_lhs): Likewise.
8583 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8584 Likewise.
8585 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8586 Likewise.
8587 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8588 Likewise.
8589 (gimple_assign_rhs_code): Likewise.
8590 * gimple.c (gassign::code_): Define.
8591
8592 2015-08-12 Richard Biener <rguenther@suse.de>
8593
8594 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8595 Eliminate edges marked as not executable by SCCVN.
8596 * tree-ssa-sccvn.c: Include gimple-iterator.h.
8597 (cond_dom_walker): Rename to sccvn_dom_walker.
8598 (sccvn_dom_walker::before_dom_children): Value-number defs
8599 of all stmts.
8600 (run_scc_vn): Remove loop value-numbering all SSA names.
8601 Drop not visited SSA names to varying.
8602
8603 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8604
8605 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8606 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8607 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8608 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8609 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8610 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8611 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8612 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8613 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8614
8615 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
8616
8617 PR target/66954
8618 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8619 to enum feature_priority and feature_list.
8620 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8621 and isa_names_table.
8622
8623 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8624
8625 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8626 vect_induction_def.
8627
8628 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8629
8630 PR c/66098
8631 PR c/66711
8632 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8633 account when deciding what was the command-line status.
8634
8635 2015-08-11 Nathan Sidwell <nathan@acm.org>
8636
8637 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8638
8639 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8640 we're not the only contributor to target phi.
8641
8642 2015-08-11 Jiong Wang <jiong.wang@arm.com>
8643
8644 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8645 FIXED_REG0.
8646
8647 2015-08-11 Tom de Vries <tom@codesourcery.com>
8648
8649 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8650
8651 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
8652
8653 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8654 with CPU_SLM.
8655 * config/i386/i386.md (cpu): Remove knl.
8656
8657 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8658
8659 PR libgomp/65742
8660 PR middle-end/66332
8661 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8662 open-coded sequence.
8663 * omp-low.c (oacc_process_reduction_data): Remove handline of
8664 GOMP_DEVICE_HOST_NONSHM.
8665
8666 * lto-streamer-in.c (lto_input_mode_table): Adjust to
8667 GET_MODE_INNER changes.
8668
8669 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8670 Ilya Verbin <ilya.verbin@intel.com>
8671
8672 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8673
8674 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8675
8676 * doc/options.texi (EnabledBy): Document that the argument must be
8677 a Common option.
8678 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8679 Not enabled by -Wall.
8680 * optc-gen.awk: Give nicer error messages. Detect if the argument
8681 of EnabledBy is not a Common option.
8682 * common.opt (Wnull-dereference): Not enabled by -Wall.
8683 * opt-functions.awk (lang_enabled_by): Nicer error messages.
8684
8685 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
8686
8687 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8688 model == 0x4f as Broadwell.
8689
8690 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8691
8692 PR rtl-optimization/67028
8693 * combine.c (simplify_comparison): Fix comment. Rearrange code.
8694 Add test to see if a const_int fits in the new mode.
8695
8696 2015-08-07 DJ Delorie <dj@redhat.com>
8697
8698 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8699
8700 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
8701
8702 PR rtl-optimization/67029
8703 * ira-color.c: Include "recog.h" before including "ira-int.h".
8704 * target-globals.c: Likewise.
8705 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8706 adds an alternative_mask argument and use it instead of
8707 preferred_alternatives.
8708 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8709 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8710 * sched-deps.c: Include "ira-int.h" after including "ira.h".
8711 (sched_analyze_insn): Update call to
8712 ira_implicitly_set_insn_hard_regs.
8713 * sel-sched.c: Include "ira-int.h" after including "ira.h".
8714 (implicit_clobber_conflict_p): Update call to
8715 ira_implicitly_set_insn_hard_regs.
8716
8717 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8718
8719 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8720
8721 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
8722
8723 PR target/67002
8724 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8725 currently_expanding_to_rtl is set.
8726
8727 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
8728
8729 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8730 * configure: Regenerate.
8731
8732 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8733 Jiong Wang <jiong.wang@arm.com>
8734
8735 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8736 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
8737 (REG_CLASS_NAMES): Likewise.
8738 (REG_CLASS_CONTENTS): Likewise.
8739 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
8740 (aarch64_register_move_cost): Likewise.
8741 (aarch64_load_symref_appropriately): Invoke the new added pattern if
8742 possible.
8743 * config/aarch64/constraints.md (Uc0): New constraint.
8744
8745 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8746
8747 * config/aarch64/constraints.md (Usf): Add the test of
8748 aarch64_is_noplt_call_p.
8749
8750 2015-08-06 Jiong Wang <jiong.wang@arm.com>
8751
8752 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
8753 declaration.
8754 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
8755 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
8756 (call_symbol): Likewise.
8757
8758 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8759
8760 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
8761 for vectorizing multiplication patterns.
8762 * tree-vectorizer.h: Adjust the number of patterns.
8763
8764 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8765
8766 * config/i386/sse.md (*vec_concatv2df): Declare added
8767 alternatives as sselog type.
8768
8769 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8770
8771 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
8772 all GPRs.
8773
8774 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8775
8776 * config/s390/s390.c (s390_expand_tbegin): Expand either
8777 tbegin_1_z13 or tbegin_1 depending on VX flag.
8778 * config/s390/s390.md ("tbegin_1_z13"): New expander.
8779
8780 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8781
8782 * config/s390/s390.opt: Clarify description for -mzvector
8783 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
8784 -mzvector.
8785
8786 2015-08-06 Richard Biener <rguenther@suse.de>
8787
8788 * gimple.h (gimple_call_set_fn): Access op member directly.
8789 (gimple_call_chain_ptr): Likewise.
8790 (gimple_call_set_chain): Likewise.
8791 (gimple_cond_lhs_ptr): Likewise.
8792 (gimple_cond_set_lhs): Likewise.
8793 (gimple_cond_rhs_ptr): Likewise.
8794 (gimple_cond_set_rhs): Likewise.
8795 (gimple_cond_true_label): Likewise.
8796 (gimple_cond_set_true_label): Likewise.
8797 (gimple_cond_set_false_label): Likewise.
8798 (gimple_cond_false_label): Likewise.
8799 (gimple_label_label): Likewise.
8800 (gimple_label_set_label): Likewise.
8801 (gimple_goto_set_dest): Likewise.
8802 (gimple_asm_input_op): Likewise.
8803 (gimple_asm_input_op_ptr): Likewise.
8804 (gimple_asm_set_input_op): Likewise.
8805 (gimple_asm_output_op): Likewise.
8806 (gimple_asm_output_op_ptr): Likewise.
8807 (gimple_asm_set_output_op): Likewise.
8808 (gimple_asm_clobber_op): Likewise.
8809 (gimple_asm_set_clobber_op): Likewise.
8810 (gimple_asm_label_op): Likewise.
8811 (gimple_asm_set_label_op): Likewise.
8812 (gimple_switch_index): Likewise.
8813 (gimple_switch_index_ptr): Likewise.
8814 (gimple_return_retval_ptr): Likewise.
8815 (gimple_return_retval): Likewise.
8816 (gimple_return_set_retval): Likewise.
8817 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
8818 (gimple_switch_label): Likewise.
8819 (gimple_switch_set_label): Likewise.
8820
8821 2015-08-06 Richard Biener <rguenther@suse.de>
8822
8823 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
8824 bool comparison canonicalization and restrict to integers.
8825
8826 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
8827
8828 * coretypes.h (enum symbol_visibility): Relocate here.
8829 * flag-types.h (enum symbol_visibility): Remove.
8830 * tree-core.h (enum symbol_visibility): Remove.
8831
8832 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
8833
8834 PR target/66870
8835 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
8836 for no_split_stack function attribute along with
8837 flag_split_stack.
8838 (rs6000_expand_split_stack_prologue): Likewise.
8839
8840 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
8841 Jeff Law <law@redhat.com>
8842
8843 PR c/16351
8844 * doc/invoke.texi (Wnull-dereference): New.
8845 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
8846 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
8847 Warn for potential NULL dereferences.
8848 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
8849 * ubsan.c (instrument_nonnull_arg): Call
8850 infer_nonnull_range_by_attribute.
8851 (instrument_nonnull_return): Likewise.
8852 * common.opt (Wnull-dereference); New.
8853 * gimple.c (infer_nonnull_range): Remove bool arguments.
8854 (infer_nonnull_range_by_dereference): New.
8855 (infer_nonnull_range_by_attribute): New.
8856 * gimple.h: Update declarations.
8857
8858 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8859
8860 * gensupport.c (sequence_num): Replace with...
8861 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
8862 ...these new variables.
8863 (init_rtx_reader_args_cb): Update accordingly.
8864 (get_num_code_insns): Likewise.
8865 (read_md_rtx): Rework to use a while loop and get_c_test.
8866 Use the new counters. Remove redundant DEFINE_SUBST case.
8867 * genoutput.c (gen_split): Delete.
8868 (main): Don't call it.
8869
8870 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8871
8872 * gensupport.h (get_c_test): Declare.
8873 * gensupport.c (get_c_test): New function.
8874 * genconditions.c (main): Use it.
8875 * genrecog.c (validate_pattern): Likewise.
8876 (match_pattern_1): Likewise. Remove c_test argument.
8877 (match_pattern): Update accordingly and remove c_test argument.
8878 (main): Update accordingly.
8879
8880 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8881
8882 * gensupport.h (get_num_insn_codes): Declare.
8883 * gensupport.c (get_num_insn_codes): New function.
8884 * genattrtab.c (optimize_attrs): Rename max_insn_code to
8885 num_insn_codes.
8886 (main): Likewise. Use get_num_insn_codes.
8887 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
8888
8889 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8890
8891 PR middle-end/66311
8892 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
8893 is zero- rather than sign-extended.
8894
8895 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
8896
8897 * target-insns.def (can_extend): Delete.
8898
8899 2015-08-05 Richard Biener <rguenther@suse.de>
8900
8901 PR tree-optimization/67121
8902 * tree-if-conv.c (combine_blocks): Clear range-info produced
8903 by stmts no longer executed conditionally.
8904
8905 2015-08-05 Nick Clifton <nickc@redhat.com>
8906
8907 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
8908 to allow identical far pointers to remain.
8909
8910 2015-08-05 Richard Biener <rguenther@suse.de>
8911
8912 PR middle-end/67120
8913 * match.pd: Compare address bases with == if they are decls
8914 or SSA names, not operand_equal_p. Otherwise fail.
8915
8916 2015-08-05 Richard Biener <rguenther@suse.de>
8917
8918 PR tree-optimization/67055
8919 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
8920 NULL gimple_block.
8921
8922 * g++.dg/torture/pr67055.C: New testcase.
8923
8924 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8925
8926 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
8927 noavx512vl.
8928 (define_attr "enabled"): Handle avx521vl and noavx512vl.
8929 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
8930 AVX-512 alternative out of SSE.
8931 (define_insn "*vec_concatv2df"): Ditto.
8932
8933 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
8934
8935 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
8936 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
8937 CODE_FOR_avx_ptestv4di.
8938 * config/i386/sse.md (define_mode_iterator V_AVX): New.
8939 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
8940 (define_insn "avx_ptest256"): Merge this ...
8941 (define_insn "sse4_1_ptest"): And this ...
8942 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
8943
8944 2015-08-05 Richard Biener <rguenther@suse.de>
8945
8946 PR tree-optimization/67109
8947 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
8948 against too big groups. Print whether this is a load or store
8949 group. Rename from ...
8950 (vect_analyze_group_access): ... this which is now a wrapper
8951 dissolving an invalid group.
8952 (vect_analyze_data_ref_accesses): Print whether this is a load
8953 or store group.
8954
8955 2015-08-05 Richard Biener <rguenther@suse.de>
8956
8957 PR middle-end/67107
8958 * match.pd: Guard const_binop result checking against NULL_TREE
8959 result.
8960
8961 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
8962
8963 * cse.c (cse_insn): Restoring old behaviour for src_eqv
8964 when dest and value in the REG_EQUAL are same and dest
8965 is STRICT_LOW_PART.
8966
8967 2015-08-04 Anatoly Sokolov <aesok@post.ru>
8968
8969 * config/moxie/moxie.h (PRINT_OPERAND,
8970 PRINT_OPERAND_ADDRESS): Remove macros.
8971 * config/moxie/moxie-protos.h (moxie_print_operand,
8972 moxie_print_operand_address): Remove declaration.
8973 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
8974 TARGET_PRINT_OPERAND_ADDRESS): Define.
8975 (moxie_print_operand, moxie_print_operand_address): Make static.
8976
8977 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8978
8979 PR target/66731
8980 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
8981 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
8982
8983 2015-08-04 Richard Biener <rguenther@suse.de>
8984
8985 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
8986 generated code.
8987 (dt_operand::gen_gimple_expr): Adjust.
8988
8989 2015-08-04 Richard Biener <rguenther@suse.de>
8990
8991 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
8992 bool compares on RHS.
8993 * match.pd: Add X ==/!= !X is false/true pattern.
8994
8995 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
8996
8997 * config/aarch64/aarch64.c: Change inner loop statement cost
8998 to be consistent with other targets.
8999
9000 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
9001
9002 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9003 targets.
9004
9005 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
9006
9007 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9008 (machine_function): Remove pseudos field.
9009
9010 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9011
9012 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9013 Exit early and use target_option_current_node if processing current
9014 pragma.
9015
9016 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9017
9018 * doc/extend.texi (AArch64 Function Attributes): New node.
9019 (AArch64 Pragmas): Likewise.
9020
9021 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9022
9023 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9024 Initialize simd builtins if TARGET_SIMD.
9025 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9026 Make sure that the builtins are initialized only once no matter how
9027 many times the function is called.
9028 (aarch64_init_builtins): Unconditionally initialize crc builtins.
9029 (aarch64_relayout_simd_param): New function.
9030 (aarch64_simd_expand_args): Use above during argument expansion.
9031 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9032 simd builtins if TARGET_SIMD.
9033 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9034 prototype.
9035 (aarch64_relayout_simd_types): Likewise.
9036
9037 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9038
9039 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9040 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9041 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9042 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9043 static keyword.
9044 (aarch64_reset_previous_fndecl): New function.
9045 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9046 the string.
9047 * config/aarch64/aarch64-c.c: New file.
9048 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9049 Push and pop options at beginning and end. Remove ifdef
9050 __ARM_FEATURE_CRC32.
9051 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9052 Add pragma +nothing+simd and +nothing+crypto where appropriate.
9053 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9054 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9055 Define prototype.
9056 (aarch64_register_pragmas): Likewise.
9057 (aarch64_reset_previous_fndecl): Likewise.
9058 (aarch64_process_target_attr): Likewise.
9059 (aarch64_override_options_internal): Likewise.
9060
9061 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9062
9063 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9064 New function.
9065 (aarch64_can_inline_p): Likewise.
9066 (TARGET_CAN_INLINE_P): Define.
9067
9068 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9069
9070 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9071 Remove static. Handle OPT_mgeneral_regs_only,
9072 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9073 OPT_momit_leaf_frame_pointer.
9074 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9075 (aarch64_attr_opt_type): New enum.
9076 (aarch64_attribute_info): New struct.
9077 (aarch64_handle_attr_arch): New function.
9078 (aarch64_handle_attr_cpu): Likewise.
9079 (aarch64_handle_attr_tune): Likewise.
9080 (aarch64_handle_attr_isa_flags): Likewise.
9081 (aarch64_attributes): New table.
9082 (aarch64_process_one_target_attr): New function.
9083 (num_occurences_in_str): Likewise.
9084 (aarch64_process_target_attr): Likewise.
9085 (aarch64_option_valid_attribute_p): Likewise.
9086 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9087 * config/aarch64/aarch64-protos.h: Include input.h
9088 (aarch64_handle_option): Declare prototype.
9089
9090 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9091
9092 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9093 * config/aarch64/aarch64.c: Include target-globals.h
9094 (aarch64_previous_fndecl): New variable.
9095 (aarch64_set_current_function): New function.
9096 (TARGET_SET_CURRENT_FUNCTION): Define.
9097
9098 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9099
9100 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9101 (explicit_arch): Likewise.
9102 (x_aarch64_isa_flags): Likewise.
9103 (mgeneral-regs-only): Mark as Save.
9104 (mfix-cortex-a53-835769): Likewise.
9105 (mcmodel=): Likewise.
9106 (mstrict-align): Likewise.
9107 (momit-leaf-frame-pointer): Likewise.
9108 (mtls-dialect): Likewise.
9109 (master=): Likewise.
9110 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9111 (aarch64_isa_flags): Remove extern declaration.
9112 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9113 to indicate success or failure.
9114 (aarch64_validate_march): Likewise.
9115 (aarch64_validate_mtune): Likewise.
9116 (aarch64_isa_flags): Delete.
9117 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9118 instead of aarch64_isa_flags.
9119 (aarch64_get_tune_cpu): New function.
9120 (aarch64_get_arch): Likewise.
9121 (aarch64_override_options): Use above and set up explicit_tune_core
9122 and explicit_arch.
9123 (aarch64_print_extension): Move earlier in file. Add isa_flags
9124 argument and use that instead of the global aarch64_isa_flags.
9125 (aarch64_option_save): New function.
9126 (aarch64_option_restore): Likewise.
9127 (aarch64_option_print): Likewise.
9128 (aarch64_declare_function_name): Likewise.
9129 (aarch64_start_file): Delete.
9130 (TARGET_ASM_FILE_START): Do not define.
9131 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9132 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9133 Declare prototype.
9134
9135 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9136
9137 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9138 flag_omit_leaf_frame_pointer to 2.
9139
9140 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9141
9142 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9143 define to 0 or 1.
9144 (TARGET_FIX_ERR_A53_835769): New macro.
9145 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9146 handling of opts->x_aarch64_fix_a53_err835769.
9147 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9148 than aarch64_fix_a53_err835769.
9149 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9150 * config/aarch64/aarch64-linux.h: Likewise.
9151
9152 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
9153
9154 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9155 ix86_expand_int_movcc as boolean.
9156
9157 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9158
9159 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9160 (aarch64_cpu_string): Likewise.
9161 (aarch64_tune_string): Likewise.
9162 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9163 (aarch64_parse_extension): Return aarch64_parse_opt_result.
9164 Add extra argument to put result into.
9165 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
9166 (aarch64_parse_cpu): Add arguments to put results into. Return
9167 aarch64_parse_opt_result.
9168 (aarch64_parse_tune): Likewise.
9169 (aarch64_override_options_after_change_1): New function.
9170 (aarch64_override_options_internal): New function.
9171 (aarch64_validate_mcpu): Likewise.
9172 (aarch64_validate_march): Likewise.
9173 (aarch64_validate_mtune): Likewise.
9174 (aarch64_override_options): Update to reflect above changes.
9175 Move some logic into aarch64_override_options_internal.
9176 Initialize target_option_default_node and target_option_current_node.
9177 (aarch64_override_options_after_change): Move logic into
9178 aarch64_override_options_after_change_1 and call it with global_options.
9179 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9180 flag values from that.
9181
9182 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9183
9184 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9185 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9186 * config/aarch64/aarch64.c (struct processor): Add arch field.
9187 (all_architectures): Handle above, move above all_cores.
9188 (all_cores): Handle above.
9189 (aarch64_parse_arch): Handle above changes.
9190 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9191 above. Update comments.
9192 (armv8.1-a): Likewise.
9193 * config/aarch64/aarch64-cores.def: Update according to above.
9194 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9195 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9196 aarch64_arch_driver_info.
9197
9198 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9199
9200 * config/aarch64/aarch64.c (struct processor): Add ident field.
9201 Rename core sched_core.
9202 (all_cores): Handle above changes.
9203 (all_architectures): Likewise.
9204 (aarch64_parse_arch): Likewise.
9205 (aarch64_override_options): Likewise.
9206
9207 2015-08-04 Richard Biener <rguenther@suse.de>
9208
9209 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9210 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9211 comparisons embedded in [VEC_]COND_EXPRs.
9212
9213 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
9214
9215 * tree-if-conv.c: Fix various typos in comments.
9216 * tree-vect-stmts.c: Likewise.
9217
9218 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9219
9220 PR tree-optimization/67043
9221 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9222 preheader after hoisting invariant in it.
9223 (find_defs): Force recomputation of all luids.
9224
9225 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
9226
9227 * config/rs6000/htm.md (tabort.): Restrict the source operand to
9228 using a base register.
9229
9230 2015-08-03 David Malcolm <dmalcolm@redhat.com>
9231
9232 * main.c (main): Pass in NULL for toplev's external_timer.
9233 * timevar.c: Include coretypes.h.
9234 (class timer::named_items): New.
9235 (timer::named_items::named_items): New.
9236 (timer::named_items::~named_items): New.
9237 (timer::named_items::push): New.
9238 (timer::named_items::pop): New.
9239 (timer::named_items::print): New.
9240 (timer::timer): Initialize field "m_jit_client_items".
9241 (timer::~timer): New.
9242 (timer::push): Move bulk of implementation to...
9243 (timer::push_internal): ...here. New function.
9244 (timer::pop): Move bulk of implementation to...
9245 (timer::pop_internal): ...here. New function.
9246 (timer::push_client_item): New.
9247 (timer::pop_client_item): New.
9248 (timer::print_row): New function, taken from timer::print.
9249 (timer::print): Print "GCC items" header if we also have client
9250 items. Move row-printing to timer::print_row. Print any client
9251 items.
9252 (timer::get_topmost_item_name): New method.
9253 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9254 (TV_JIT_CLIENT_CODE): New.
9255 * timevar.h (timer::push_client_item): New declaration.
9256 (timer::pop_client_item): New declaration.
9257 (timer::get_topmost_item_name): New method.
9258 (timer::push_internal): New declaration.
9259 (timer::pop_internal): New declaration.
9260 (timer::print_row): New declaration.
9261 (timer::named_items): New declaration.
9262 (timer::m_jit_client_items): New field.
9263 (timer): Add friend class named_items.
9264 (auto_timevar::auto_timevar): Add timer param.
9265 (auto_timevar::~auto_timevar): Use field "m_timer".
9266 (auto_timevar::m_timer): New field.
9267 * toplev.c (initialize_rtl): Add g_timer as param when
9268 constructing auto_timevar instance.
9269 (toplev::toplev): Add "external_timer" param, and use it to
9270 initialize the "g_timer" global if non-NULL.
9271 (toplev::~toplev): If this created "g_timer", delete it.
9272 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9273 with "external_timer" timer *.
9274
9275 2015-08-03 Alexander Basov <coohpt@gmail.com>
9276
9277 PR middle-end/64744
9278 PR middle-end/48470
9279 PR middle-end/43404
9280 * cfgexpand.c (expand_one_var): Add check if stack is going to
9281 be used in naked function.
9282 * expr.c (expand_expr_addr_expr_1): Remove excess checking
9283 whether expression should not reside in MEM.
9284 * function.c (use_register_for_decl): Do not use registers for
9285 non-register things (volatile, float, BLKMode) in naked functions.
9286
9287 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
9288
9289 PR target/67060
9290 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9291 Adjust splits to match new pattern.
9292
9293 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9294
9295 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9296 (VEC_M): Likewise.
9297 (VEC_N): Likewise.
9298 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9299 point in VSX registers.
9300
9301 * config/rs6000/constraints.md (wb constraint): Document unused
9302 w<x> constraint.
9303 (we constraint): Likewise.
9304 (wo constraint): Likewise.
9305 (wp constraint): New constraint for IEEE 128-bit floating point in
9306 VSX registers.
9307 (wq constraint): Likewise.
9308
9309 * config/rs6000/predicates.md (easy_fp_constant): Add support for
9310 IEEE 128-bit floating point in VSX registers.
9311 (easy_scalar_constant): Likewise.
9312
9313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9314 constraints (wp, wq) for IEEE 128-bit floating point in VSX
9315 registers.
9316 (rs6000_init_hard_regno_mode_ok): Likewise.
9317
9318 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9319 floating point in VSX registers.
9320 (VSX_L): Likewise.
9321 (VSX_M): Likewise.
9322 (VSX_M2): Likewise.
9323 (VSm): Likewise.
9324 (VSs): Likewise.
9325 (VSr): Likewise.
9326 (VSa): Likewise.
9327 (VSv): Likewise.
9328 (vsx_le_permute_<mode>): Add support to properly swap bytes for
9329 IEEE 128-bit floating point in VSX registers on little endian.
9330 (vsx_le_undo_permute_<mode>): Likewise.
9331 (vsx_le_perm_load_<mode>): Likewise.
9332 (vsx_le_perm_store_<mode>): Likewise.
9333 (splitters for IEEE 128-bit fp moves): Likewise.
9334
9335 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9336 wq constraints.
9337
9338 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9339 floating point in VSX registers.
9340 (VM2): Likewise.
9341
9342 * doc/md.text (Machine Constraints): Document wp and wq
9343 constraints on PowerPC.
9344
9345 2015-08-03 Jeff Law <law@redhat.com>
9346
9347 PR middle-end/66314
9348 PR gcov-profile/66899
9349 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9350 iterate over the jump threading paths when an element in the
9351 jump threading paths array is eliminated.
9352
9353 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9354
9355 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9356
9357 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
9358
9359 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9360 is_use_properly_guarded the variable def_preds. Free its
9361 contents before returning.
9362 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9363 (is_use_properly_guarded): Replace local variable def_preds with
9364 a parameter. Adjust accordingly. Only update *def_preds if it's
9365 the empty vector.
9366
9367 2015-08-03 Richard Biener <rguenther@suse.de>
9368
9369 * genmatch.c (simplify::for_subst_vec): New member.
9370 (binary_ok): New helper for for lowering.
9371 (lower_for): Delay substituting operators into result expressions
9372 if we can merge the results eventually again.
9373 (capture_info::walk_result): Adjust for user_id appearing as
9374 result expression operator.
9375 (expr::gen_transform): Likewise.
9376 (dt_simplify::gen_1): Likewise.
9377 (dt_simplify::gen): Pass not substituted operators to tail
9378 functions or initialize local variable with it.
9379 (decision_tree::gen): Adjust function signature.
9380 * match.pd: Fix tests against global code and add default
9381 cases to switch stmts.
9382
9383 2015-08-03 Richard Biener <rguenther@suse.de>
9384
9385 * genmatch.c (dt_simplify::gen): Create captures array
9386 with an initializer.
9387
9388 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9389
9390 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9391 the host compiler is affected by placement new aliasing bug.
9392 * configure: Regenerate.
9393 * Makefile.in (ALIASING_FLAGS): New variable.
9394 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9395
9396 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9397
9398 PR target/66731
9399 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9400 (negmulsf3_vfp): Likewise.
9401 (muldf3negdf_vfp): Disable for -frounding-math.
9402 (mulsf3negsf_vfp): Likewise.
9403 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9404 fix MULT cost with -frounding-math.
9405
9406 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9407
9408 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9409 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9410 explicit. Prefer to add the flag whenever possible.
9411 (noce_process_if_block): Try noce_try_store_flag_constants before
9412 noce_try_cmove.
9413
9414 2015-08-03 Richard Biener <rguenther@suse.de>
9415
9416 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9417 New hash-map to record equivalent transforms.
9418 (dt_node::analyze): Populate the equivalent transforms hash-map.
9419 (dt_simplify::info): Add reference to hash-map entry.
9420 (dt_simplify::gen): If we have split out a function for the
9421 transform, generate a call to it.
9422 (sinfo_hashmap_traits::hash): New function.
9423 (compare_op): New helper function for ...
9424 (sinfo_hashmap_traits::equal_keys): ... this new function.
9425 (decision_tree::gen): Split out common equivalent transforms
9426 into functions.
9427
9428 2015-08-03 Richard Biener <rguenther@suse.de>
9429
9430 * gimple-fold.c (fold_gimple_assign): Remove folding of
9431 the comparison in COND_EXPRs.
9432
9433 2015-08-03 Richard Biener <rguenther@suse.de>
9434
9435 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9436 on the rhs of assignments first simplify the embedded
9437 GENERIC condition.
9438
9439 2015-08-03 Richard Biener <rguenther@suse.de>
9440
9441 PR tree-optimization/66917
9442 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9443 field.
9444 (DR_VECT_AUX): New macro.
9445 (set_dr_misalignment): Adjust.
9446 (dr_misalignment): Likewise.
9447 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9448 Compute whether the base is at least element aligned.
9449 * tree-vect-stmts.c (ensure_base_align): Adjust.
9450 (vectorizable_store): If the base is not element aligned
9451 preserve alignment of the original access if misalignment is unknown.
9452 (vectorizable_load): Likewise.
9453
9454 2015-08-02 Martin Sebor <msebor@redhat.com>
9455
9456 * c-family/c.opt (-Wframe-address): New warning option.
9457 * doc/invoke.texi (Wframe-address): Document it.
9458 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9459 Clarify possible effects of calling the functions with non-zero
9460 arguments and mention -Wframe-address.
9461 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9462
9463 2015-08-01 Michael Collison <michael.collison@linaro.org
9464 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9465
9466 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9467 (*arm_umin_cmp): Likewise.
9468
9469 2015-08-01 Caroline Tice <cmtice@google.com>
9470
9471 PR 66521
9472 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9473 global variables.
9474 (vtbl_find_mangled_name): New function.
9475 (vtbl_register_mangled_name): New function.
9476 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
9477 mangled name in mangled name vectors.
9478 (find_or_create_vtbl_map_node): Ditto.
9479 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
9480 update recursion_depth on function entry; pass it to every recursive
9481 call; automatically exit if depth > 25 (give up looking at that point).
9482 (verify_bb_vtables): Initialize recursion_depth and pass it to
9483 var_is_used_for_virtual_call_p.
9484 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9485 global variable decls.
9486 (vtbl_register_mangled_name): New extern function decl.
9487
9488 2015-08-01 Tom de Vries <tom@codesourcery.com>
9489
9490 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9491 function.
9492 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9493 Declare.
9494 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9495 operation_no_trapping_overflow. Allow non-overflow operations.
9496 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9497 operations.
9498
9499 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
9500
9501 PR target/67049
9502 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9503
9504 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9505
9506 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9507 Enable for TARGET_32BIT.
9508 (*if_move_neg): Likewise.
9509
9510 2015-07-31 Nick Clifton <nickc@redhat.com>
9511
9512 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9513 Returns true for __model__.
9514 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9515
9516 2015-07-31 Alan Modra <amodra@gmail.com>
9517
9518 PR target/66870
9519 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9520 (rs6000_emit_prologue): Set it.
9521 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9522
9523 2015-07-31 Richard Biener <rguenther@suse.de>
9524
9525 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9526 -> X == (C1 ^ C2) which is already implemented in match.pd.
9527 Remove redundant dispatching to fold_relational_const.
9528 Move unordered self and NaN compares ...
9529 * match.pd: ... as patterns here. Remove some stray captures
9530 and add a comment.
9531
9532 2015-07-31 Petr Murzin <petr.murzin@intel.com>
9533
9534 * config/i386/i386.c
9535 (bdesc_special_args): Convert mask type from signed to unsigned for
9536 masked builtins.
9537 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9538 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9539 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9540 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9541 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9542 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9543 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9544 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9545 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9546 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9547 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9548 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9549 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9550 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9551 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9552 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9553 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9554 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9555 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9556 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9557 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9558 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9559 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9560 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9561 * config/i386/i386-builtin-types.def
9562 (V16QI_FTYPE_V16SI): Remove.
9563 (V8DF_FTYPE_V8SI): Ditto.
9564 (V8HI_FTYPE_V8DI): Ditto.
9565 (V8SI_FTYPE_V8DI): Ditto.
9566 (V8SF_FTYPE_V8DF): Ditto.
9567 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9568 (V16HI_FTYPE_V16SI): Ditto.
9569 (V16SF_FTYPE_V16HI): Ditto.
9570 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9571 (V16SF_FTYPE_V16SI): Ditto.
9572 (V4DI_FTYPE_V4DI): Ditto.
9573 (V16SI_FTYPE_V16SF): Ditto.
9574 (V16SF_FTYPE_FLOAT): Ditto.
9575 (V8DF_FTYPE_DOUBLE): Ditto.
9576 (V8DI_FTYPE_INT64): Ditto.
9577 (V8DI_FTYPE_V4DI): Ditto.
9578 (V16QI_FTYPE_V8DI): Ditto.
9579 (UINT_FTYPE_V4SF): Ditto.
9580 (UINT64_FTYPE_V4SF): Ditto.
9581 (UINT_FTYPE_V2DF): Ditto.
9582 (UINT64_FTYPE_V2DF): Ditto.
9583 (V16SI_FTYPE_V16SI): Ditto.
9584 (V8DI_FTYPE_V8DI): Ditto.
9585 (V16SI_FTYPE_PV4SI): Ditto.
9586 (V16SF_FTYPE_PV4SF): Ditto.
9587 (V8DI_FTYPE_PV2DI): Ditto.
9588 (V8DF_FTYPE_PV2DF): Ditto.
9589 (V4DI_FTYPE_PV2DI): Ditto.
9590 (V4DF_FTYPE_PV2DF): Ditto.
9591 (V16SI_FTYPE_PV2SI): Ditto.
9592 (V16SF_FTYPE_PV2SF): Ditto.
9593 (V8DI_FTYPE_PV4DI): Ditto.
9594 (V8DF_FTYPE_PV4DF): Ditto.
9595 (V8SF_FTYPE_FLOAT): Ditto.
9596 (V4SF_FTYPE_FLOAT): Ditto.
9597 (V4DF_FTYPE_DOUBLE): Ditto.
9598 (V8SF_FTYPE_PV4SF): Ditto.
9599 (V8SI_FTYPE_PV4SI): Ditto.
9600 (V4SI_FTYPE_PV2SI): Ditto.
9601 (V8SF_FTYPE_PV2SF): Ditto.
9602 (V8SI_FTYPE_PV2SI): Ditto.
9603 (V16SF_FTYPE_PV8SF): Ditto.
9604 (V16SI_FTYPE_PV8SI): Ditto.
9605 (V8DI_FTYPE_V8SF): Ditto.
9606 (V4DI_FTYPE_V4SF): Ditto.
9607 (V2DI_FTYPE_V4SF): Ditto.
9608 (V64QI_FTYPE_QI): Ditto.
9609 (V32HI_FTYPE_HI): Ditto.
9610 (V8UHI_FTYPE_V8UHI): Ditto.
9611 (V16UHI_FTYPE_V16UHI): Ditto.
9612 (V32UHI_FTYPE_V32UHI): Ditto.
9613 (V2UDI_FTYPE_V2UDI): Ditto.
9614 (V4UDI_FTYPE_V4UDI): Ditto.
9615 (V8UDI_FTYPE_V8UDI): Ditto.
9616 (V4USI_FTYPE_V4USI): Ditto.
9617 (V8USI_FTYPE_V8USI): Ditto.
9618 (V16USI_FTYPE_V16USI): Ditto.
9619 (V2DF_FTYPE_V2DF_UINT64): Ditto.
9620 (V2DI_FTYPE_V2DF_V2DF): Ditto.
9621 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9622 (V8DF_FTYPE_V8DF_V8DI): Ditto.
9623 (V4SF_FTYPE_V4SF_UINT64): Ditto.
9624 (V4SI_FTYPE_V4SF_V4SF): Ditto.
9625 (V16SF_FTYPE_V16SF_V16SI): Ditto.
9626 (V64QI_FTYPE_V32HI_V32HI): Ditto.
9627 (V32HI_FTYPE_V16SI_V16SI): Ditto.
9628 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9629 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9630 (V32HI_FTYPE_V64QI_V64QI): Ditto.
9631 (V32HI_FTYPE_V32HI_V32HI): Ditto.
9632 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9633 (V16SI_FTYPE_V16SI_V4SI): Ditto.
9634 (V16SI_FTYPE_V16SI_V16SI): Ditto.
9635 (V16SI_FTYPE_V32HI_V32HI): Ditto.
9636 (V16SI_FTYPE_V16SI_SI): Ditto.
9637 (V8DI_FTYPE_V8DI_V8DI): Ditto.
9638 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9639 (V8DI_FTYPE_V16SI_V16SI): Ditto.
9640 (V8DI_FTYPE_V8DI_V2DI): Ditto.
9641 (QI_FTYPE_QI): Ditto.
9642 (SI_FTYPE_SI): Ditto.
9643 (DI_FTYPE_DI): Ditto.
9644 (QI_FTYPE_QI_QI): Ditto.
9645 (QI_FTYPE_QI_INT): Ditto.
9646 (HI_FTYPE_HI_INT): Ditto.
9647 (SI_FTYPE_SI_INT): Ditto.
9648 (DI_FTYPE_DI_INT): Ditto.
9649 (HI_FTYPE_V16QI_V16QI): Ditto.
9650 (SI_FTYPE_V32QI_V32QI): Ditto.
9651 (DI_FTYPE_V64QI_V64QI): Ditto.
9652 (QI_FTYPE_V8HI_V8HI): Ditto.
9653 (HI_FTYPE_V16HI_V16HI): Ditto.
9654 (SI_FTYPE_V32HI_V32HI): Ditto.
9655 (QI_FTYPE_V4SI_V4SI): Ditto.
9656 (QI_FTYPE_V8SI_V8SI): Ditto.
9657 (QI_FTYPE_V2DI_V2DI): Ditto.
9658 (QI_FTYPE_V4DI_V4DI): Ditto.
9659 (QI_FTYPE_V8DI_V8DI): Ditto.
9660 (HI_FTYPE_V16SI_V16SI): Ditto.
9661 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9662 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9663 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9664 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9665 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9666 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9667 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9668 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9669 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9670 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9671 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9672 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9673 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9674 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9675 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9676 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9677 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9678 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9679 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9680 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9681 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9682 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9683 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9684 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9685 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9686 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9687 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9688 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9689 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9690 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9691 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9692 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9693 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9694 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9695 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9696 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9697 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9698 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9699 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9700 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9701 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9702 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9703 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9704 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9705 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9706 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9707 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9708 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9709 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9710 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9711 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9712 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9713 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9714 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9715 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9716 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9717 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9718 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9719 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9720 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9721 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9722 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9723 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9724 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9725 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9726 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9727 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9728 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9729 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9730 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9731 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9732 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9733 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9734 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9735 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9736 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
9737 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
9738 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
9739 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
9740 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
9741 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
9742 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
9743 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
9744 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
9745 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
9746 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
9747 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
9748 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
9749 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
9750 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
9751 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
9752 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
9753 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
9754 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
9755 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
9756 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
9757 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
9758 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
9759 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
9760 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
9761 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
9762 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
9763 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
9764 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
9765 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
9766 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
9767 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
9768 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
9769 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
9770 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
9771 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
9772 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
9773 (HI_FTYPE_HI): Ditto.
9774 (HI_FTYPE_V16QI): Ditto.
9775 (SI_FTYPE_V32QI): Ditto.
9776 (DI_FTYPE_V64QI): Ditto.
9777 (QI_FTYPE_V8HI): Ditto.
9778 (HI_FTYPE_V16HI): Ditto.
9779 (SI_FTYPE_V32HI): Ditto.
9780 (QI_FTYPE_V4SI): Ditto.
9781 (QI_FTYPE_V8SI): Ditto.
9782 (HI_FTYPE_V16SI): Ditto.
9783 (QI_FTYPE_V2DI): Ditto.
9784 (QI_FTYPE_V4DI): Ditto.
9785 (QI_FTYPE_V8DI): Ditto.
9786 (V16QI_FTYPE_HI): Ditto.
9787 (V32QI_FTYPE_SI): Ditto.
9788 (V64QI_FTYPE_DI): Ditto.
9789 (V8HI_FTYPE_QI): Ditto.
9790 (V16HI_FTYPE_HI): Ditto.
9791 (V32HI_FTYPE_SI): Ditto.
9792 (V4SI_FTYPE_QI): Ditto.
9793 (V4SI_FTYPE_HI): Ditto.
9794 (V8SI_FTYPE_QI): Ditto.
9795 (V8SI_FTYPE_HI): Ditto.
9796 (V2DI_FTYPE_QI): Ditto.
9797 (V4DI_FTYPE_QI): Ditto.
9798 (HI_FTYPE_HI_HI): Ditto.
9799 (SI_FTYPE_SI_SI): Ditto.
9800 (DI_FTYPE_DI_DI): Ditto.
9801 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
9802 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
9803 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
9804 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
9805 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
9806 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
9807 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
9808 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
9809 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
9810 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
9811 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
9812 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
9813 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
9814 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
9815 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
9816 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
9817 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
9818 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
9819 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
9820 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
9821 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
9822 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
9823 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
9824 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
9825 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
9826 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
9827 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
9828 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
9829 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
9830 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
9831 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
9832 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
9833 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
9834 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
9835 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
9836 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
9837 (V16SI_FTYPE_HI): Ditto.
9838 (V8DI_FTYPE_QI): Ditto.
9839 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
9840 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
9841 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
9842 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
9843 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
9844 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
9845 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
9846 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
9847 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
9848 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
9849 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
9850 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
9851 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
9852 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
9853 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
9854 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
9855 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
9856 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
9857 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
9858 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
9859 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
9860 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
9861 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
9862 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
9863 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
9864 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
9865 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
9866 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
9867 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
9868 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
9869 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
9870 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
9871 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
9872 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
9873 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
9874 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
9875 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
9876 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
9877 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
9878 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
9879 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
9880 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
9881 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
9882 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
9883 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
9884 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
9885 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
9886 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
9887 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
9888 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
9889 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
9890 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
9891 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
9892 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
9893 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
9894 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
9895 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
9896 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
9897 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
9898 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
9899 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
9900 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
9901 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
9902 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
9903 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
9904 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
9905 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
9906 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
9907 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
9908 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
9909 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
9910 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
9911 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
9912 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
9913 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
9914 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
9915 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
9916 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
9917 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
9918 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
9919 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
9920 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
9921 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
9922 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
9923 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
9924 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
9925 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
9926 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
9927 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
9928 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
9929 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
9930 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
9931 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
9932 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
9933 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
9934 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
9935 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
9936 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
9937 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
9938 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
9939 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
9940 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
9941 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
9942 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
9943 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
9944 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
9945 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
9946 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
9947 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
9948 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
9949 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
9950 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
9951 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
9952 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
9953 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
9954 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
9955 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
9956 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
9957 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
9958 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
9959 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
9960 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
9961 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
9962 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
9963 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
9964 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
9965 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
9966 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
9967 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
9968 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
9969 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
9970 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
9971 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
9972 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
9973 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
9974 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
9975 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
9976 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
9977 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
9978 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
9979 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
9980 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
9981 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
9982 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
9983 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
9984 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
9985 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
9986 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
9987 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
9988 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
9989 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
9990 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
9991 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
9992 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
9993 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
9994 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
9995 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
9996 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
9997 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
9998 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
9999 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10000 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10001 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10002 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10003 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10004 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10005 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10006 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10007 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10008 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10009 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10010 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10011 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10012 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10013 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10014 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10015 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10016 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10017 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10018 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10019 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10020 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10021 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10022 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10023 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10024 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10025 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10026 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10027 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10028 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10029 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10030 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10031 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10032 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10033 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10034 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10035 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10036 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10037 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10038 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10039 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10040 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10041 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10042 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10043 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10044 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10045 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10046 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10047 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10048 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10049 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10050 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10051 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10052 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10053 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10054 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10055 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10056 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10057 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10058 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10059 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10060 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10061 (QI_FTYPE_V8DF_INT_QI): Ditto.
10062 (QI_FTYPE_V4DF_INT_QI): Ditto.
10063 (QI_FTYPE_V2DF_INT_QI): Ditto.
10064 (HI_FTYPE_V16SF_INT_HI): Ditto.
10065 (QI_FTYPE_V8SF_INT_QI): Ditto.
10066 (QI_FTYPE_V4SF_INT_QI): Ditto.
10067 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10068
10069 2015-07-31 Richard Biener <rguenther@suse.de>
10070
10071 * gimple-fold.c (fold_gimple_assign): Remove folding of
10072 GIMPLE_BINARY_RHS.
10073
10074 2015-07-31 Tom de Vries <tom@codesourcery.com>
10075
10076 PR tree-optimization/66846
10077 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10078 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10079 (expand_omp_target) [ENABLE_CHECKING]: Same.
10080 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10081 cfun if !LOOPS_NEED_FIXUP.
10082 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
10083 that omp_for already has its own loop struct.
10084 * tree-parloops.c (create_phi_for_local_result)
10085 (create_call_for_reduction): Handle simple latch bb.
10086 (create_parallel_loop): Add simple latch bb to preserve
10087 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
10088 (gen_parallel_loop): Remove call to cancel_loop_tree.
10089 (parallelize_loops): Skip loops that are inner loops of parallelized
10090 loops.
10091 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10092 verify_loop_structure.
10093
10094 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10095
10096 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10097 * config/v850/v850.md (RV_REGNUM): New constants.
10098 * config/v850/v850.c (v850_libcall_value): New functions.
10099 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10100 (TARGET_LIBCALL_VALUE): Define.
10101
10102 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10103
10104 * rtl.h (lowpart_subreg): Move in file.
10105 * loop-iv.c (lowpart_subreg): Move to...
10106 * simplify-rtx.c (lowpart_subreg): ...here.
10107 (simplify_binary_operation_1): Use lowpart_subreg instead of
10108 simplify_gen_subreg.
10109 * expr.c (expand_expr_real_2): Ditto.
10110 * emit-rtl.c (gen_lowpart_common): Ditto.
10111 * combine.c (gen_lowpart_for_combine): Ditto.
10112 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10113 expand_debug_source_expr): Ditto.
10114
10115 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
10116
10117 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10118 (expand_builtin_atomic_clear): Remove support for atomic_clear
10119 pattern.
10120
10121 2015-07-30 Richard Biener <rguenther@suse.de>
10122
10123 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10124 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10125 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
10126 redundant operand canonicalization.
10127
10128 2015-07-30 David Sherwood <david.sherwood@arm.com>
10129
10130 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10131 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10132 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10133 * config/arm/arm.c (neon_valid_immediate): Likewise.
10134 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10135 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10136 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10137 (expand_vec_perm_vpshufb2_vpermq): Likewise.
10138 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10139 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10140 * config/i386/sse.md
10141 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10142 (*ssse3_palignr<mode>_perm): Likewise.
10143 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10144 * config/spu/spu.c (arith_immediate_p): Likewise.
10145 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10146 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10147
10148 2015-07-30 Richard Biener <rguenther@suse.de>
10149
10150 * genmatch.c (decision_tree::gen_gimple): Merge with ...
10151 (decision_tree::gen_generic): ... this into ...
10152 (decision_tree::gen): ... this.
10153 (main): Adjust callers.
10154
10155 2015-07-30 Richard Biener <rguenther@suse.de>
10156
10157 * genmatch.c (verbose): New global.
10158 (warning_at): Add overload with source_location.
10159 (capture_info::capture_info): Add bool whether generating gimple
10160 or generic. Add gimple member.
10161 (capture_info::cinfo): Add capture member.
10162 (capture_info::walk_match): Record capture. Warn on
10163 non-captured leafs.
10164 (capture_info::walk_c_expr): Add more fragments captures cannot
10165 escape through. Warn on escaped captures.
10166 (dt_simplify::gen_1): Warn on operands we force to have no
10167 side-effects.
10168 (main): Initialize verbose.
10169 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10170
10171 2015-07-30 Richard Biener <rguenther@suse.de>
10172
10173 PR middle-end/67053
10174 * match.pd: Allow both operands to independently have conversion
10175 when simplifying compares of addresses.
10176
10177 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
10178
10179 PR target/66217
10180 PR target/67045
10181 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10182 around those cases that need one.
10183
10184 2015-07-29 Aditya Kumar <hiraditya@msn.com>
10185
10186 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10187
10188 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
10189
10190 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10191 New. Copied from config/i386/gnu-user.h.
10192 (ASM_COMMENT_START): Likewise.
10193 (DBX_REGISTER_NUMBER): Likewise.
10194
10195 2015-07-29 Richard Biener <rguenther@suse.de>
10196
10197 * gimple-fold.c (fold_gimple_cond): Remove.
10198 (fold_stmt_1): Do not call it.
10199
10200 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
10201
10202 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10203 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10204
10205 * config/aarch64/aarch64-modes.def: Add HFmode.
10206
10207 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10208 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10209
10210 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10211 aarch64_promoted_type): New.
10212
10213 (aarch64_float_const_representable_p): Disable HFmode.
10214 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10215 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10216 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10217
10218 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10219 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10220
10221 * config/aarch64/iterators.md (GPF_F16): New.
10222
10223 2015-07-29 Richard Biener <rguenther@suse.de>
10224
10225 * match.pd: Merge address comparison patterns and make them
10226 handle some more cases.
10227
10228 2015-07-29 Richard Biener <rguenther@suse.de>
10229
10230 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10231 (parser::parse_capture): Add bool argument on whether to reject
10232 unknown captures.
10233 (parser::parse_expr): Adjust.
10234 (parser::parse_op): Likewise.
10235 (parser::parse_pattern): Likewise.
10236
10237 2015-07-29 Richard Biener <rguenther@suse.de>
10238
10239 * gimple-fold.c (has_use_on_stmt): New function.
10240 (replace_stmt_with_simplification): Use it to allow
10241 abnormals originally referenced in the stmt.
10242 (fold_stmt_1): Canonicalize operand order.
10243
10244 2015-07-28 David Sherwood <david.sherwood@arm.com>
10245
10246 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10247 GET_MODE_INNER unconditionally.
10248 * config/spu/spu.c (arith_immediate_p): Likewise.
10249 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10250 * expmed.c (synth_mult): Remove check for VOIDmode result from
10251 GET_MODE_INNER.
10252 (expand_mult_const): Likewise.
10253 * fold-const.c (fold_binary_loc): Replace call to element_precision
10254 with call to GET_MODE_PRECISION.
10255 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10256 m->name.
10257 (emit_mode_inner): Likewise.
10258 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10259 result check.
10260 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10261 (GET_MODE_UNIT_PRECISION): Likewise.
10262 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10263 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10264 * stor-layout.c (bitwise_type_for_mode): Update assert.
10265 (element_precision): Remove.
10266
10267 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10268
10269 * target-insns.def (reload_load_address): New targetm instruction
10270 pattern.
10271 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10272
10273 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10274
10275 * target-insns.def (atomic_test_and_set): New targetm instruction
10276 pattern.
10277 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10278 HAVE_*/gen_* interface.
10279
10280 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10281
10282 * target-insns.def (can_extend, ptr_extend): New targetm instruction
10283 patterns.
10284 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10285 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10286 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10287 * rtlanal.c (nonzero_bits1): Likewise.
10288 (num_sign_bit_copies1): Likewise.
10289
10290 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10291
10292 * target-insns.def (eh_return): New targetm instruction pattern.
10293 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10294 interface.
10295 * function.c (thread_prologue_and_epilogue_insns): Remove
10296 preprocessor condition.
10297
10298 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10299
10300 * target-insns.def (indirect_jump): New targetm instruction pattern.
10301 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10302 interface.
10303
10304 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10305
10306 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10307 instead of nonimmediate_operand. Remove C condiition.
10308
10309 2015-07-28 Richard Biener <rguenther@suse.de>
10310
10311 * match.pd: Add more simplification of address comparisons.
10312
10313 2015-07-28 Richard Biener <rguenther@suse.de>
10314
10315 * match.pd: Re-order two cases in comparison with max/min
10316 value simplification to make it apply for bools.
10317
10318 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10319
10320 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10321 Handle simple SIGN_EXTEND or ZERO_EXTEND.
10322 (aarch64_rtx_costs): Properly strip extend or extract before
10323 passing down to rtx costs again.
10324
10325 2015-07-28 Nick Clifton <nickc@redhat.com>
10326
10327 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10328 Optimizes the case where -mes0 is active and a constant symbolic
10329 address is used.
10330 * config/rl78/rl78-protos.h: Prototype the new function.
10331 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10332
10333 2015-07-28 Tom de Vries <tom@codesourcery.com>
10334
10335 * tree-parloops.c (reduc_stmt_res): New function.
10336 (initialize_reductions, add_field_for_reduction)
10337 (create_phi_for_local_result, create_loads_for_reductions)
10338 (create_stores_for_reduction, build_new_reduction): Handle case that
10339 reduc_stmt is a phi.
10340 (gather_scalar_reductions): Allow double_reduc reductions.
10341
10342 2015-07-28 Richard Biener <rguenther@suse.de>
10343
10344 * fold-const.c (fold_comparison): Remove equality folding
10345 of decl addresses ...
10346 * match.pd: ... here and merge with existing pattern.
10347
10348 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10349
10350 PR tree-optimization/66828
10351 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10352 from int64_t to uint64_t.
10353
10354 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10355
10356 * opts-common.c (read_cmdline_option): List DriverOnly enum values
10357 as valid only in the error message of the driver, not in the
10358 messages of the language compilers.
10359
10360 2015-07-27 Tom de Vries <tom@codesourcery.com>
10361
10362 * tree-parloops.c (gather_scalar_reductions): Simplify function
10363 structure.
10364
10365 2015-07-27 Marek Polacek <polacek@redhat.com>
10366
10367 * ipa-devirt.c (types_same_for_odr): Fix typo.
10368
10369 2015-07-27 Jason Merrill <jason@redhat.com>
10370
10371 PR debug/66468
10372 * dwarf2out.c (gen_inlined_subroutine_die): Check
10373 cgraph_function_possibly_inlined_p.
10374
10375 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10376
10377 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10378 Place integer variant first.
10379 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10380
10381 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10382
10383 PR/63870
10384 * config/arm/arm-builtins.c (enum arm_builtins):
10385 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10386 (ARM_BUILTIN_NEON_BASE): Rename macro to....
10387 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10388 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10389 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10390
10391 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10392
10393 PR/63870
10394 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10395 Add qualifier_lane_index.
10396 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10397 (arm_getlane_qualifiers): Use qualifier_lane_index.
10398 (arm_lanemac_qualifiers): Rename to...
10399 (arm_mac_n_qualifiers): ...this.
10400 (LANEMAC_QUALIFIERS): Rename to...
10401 (MAC_N_QUALIFIERS): ...this.
10402 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10403 (arm_setlane_qualifiers): Use qualifier_lane_index.
10404 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10405 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10406 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10407 (arm_expand_neon_builtin): Handle qualifier_lane_index.
10408
10409 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10410 * config/arm/arm.c (bounds_check): Likewise, improve error message.
10411 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10412 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10413 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10414 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10415 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10416 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10417 qualifiers to TERNOP_IMM.
10418 (vdup_lane): Change qualifiers to GETLANE.
10419 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10420 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10421 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10422 vqdmlsl_n): Change qualifiers to MAC_N.
10423
10424 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10425 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10426 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10427 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10428 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10429 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10430 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10431 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10432 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10433 Remove call to neon_lane_bounds.
10434
10435 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10436
10437 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10438 Place integer variant first.
10439
10440 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
10441
10442 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10443 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10444 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10445 for armv6kz targets.
10446 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10447 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10448 (FL_FOR_ARCH6ZK): Remove.
10449 (FL_FOR_ARCH6KZ): New.
10450 (arm_arch6zk): New declaration.
10451 * config/arm/arm-tables.opt: Regenerate.
10452 * config/arm/arm.c (arm_arch6kz): New.
10453 (arm_option_override): Set arm_arch6kz.
10454 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10455 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10456 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10457
10458 2015-07-27 Marek Polacek <polacek@redhat.com>
10459
10460 PR c++/66555
10461 PR c/54979
10462 * doc/invoke.texi: Document -Wtautological-compare.
10463
10464 2015-07-27 Richard Biener <rguenther@suse.de>
10465
10466 * genmatch.c (decision_tree::gen_gimple): Split out large
10467 subtrees into separate functions.
10468 (decision_tree::gen_generic): Likewise.
10469
10470 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
10471
10472 * config/alpha/alpha.c: Use SUBREG_P predicate.
10473 * config/alpha/predicates.md: Ditto.
10474
10475 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10476
10477 * config.host (s390*-*-*): Include driver-native.c only when
10478 building with s390* as host *and* target.
10479
10480 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
10481
10482 PR target/66930
10483 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10484 T bit register modified_between_p check.
10485
10486 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10487
10488 * config/i386/i386.c: Use SUBREG_P predicate.
10489 * config/i386/i386.md: Ditto.
10490 * config/i386/sse.md: Ditto.
10491 * config/i386/predicates.md: Ditto.
10492
10493 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10494
10495 PR target/67004
10496 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10497 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10498
10499 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10500
10501 * Makefile.in: Remove use of TREEBROWSER.
10502 * config.in: Regenerated.
10503 * configure: Regenerated.
10504 * configure.ac: Remove definition of TREEBROWSER.
10505 * tree-browser.c: Removed.
10506 * tree-browser.def: Removed.
10507
10508 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10509
10510 * graphite-scop-detection.c: Include gimple-pretty-print.h.
10511 (stmt_simple_for_scop_p): Print when a stmt is not handled in
10512 Graphite.
10513 (scopdet_basic_block_info): Print when a loop or bb cannot be
10514 represented in Graphite.
10515
10516 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10517
10518 PR target/66648
10519 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10520 execution guard when min_size is less than size_needed.
10521
10522 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10523
10524 * doc/install.texi: Document supported versions of ISL.
10525
10526 2015-07-25 Jeff Law <law@redhat.com>
10527
10528 Revert:
10529 PR lto/66752
10530 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10531 unable to find X NE 0 in the tables, return X as the simplified
10532 condition.
10533 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10534 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10535 to VISISTED_BBS. */
10536 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10537 after removing the control flow statement and unnecessary edges.
10538
10539 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
10540
10541 Revert:
10542 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10543
10544 PR rtl-optimization/64164
10545 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10546 * tree-ssa-copyrename.c: Removed.
10547 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10548 -ftree-coalesce-vars.
10549 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10550 * common.opt (ftree-copyrename): Ignore.
10551 (ftree-coalesce-inlined-vars): Likewise.
10552 * doc/invoke.texi: Remove the ignored options above.
10553 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10554 * tree-ssa-coalesce.h: ... here.
10555 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10556 headers required by it.
10557 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10558 across variables when flag_tree_coalesce_vars. Check register
10559 use and promoted modes to allow coalescing. Moved to
10560 tree-ssa-coalesce.c.
10561 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10562 with its member functions to tree-ssa-coalesce.c.
10563 (var_map_base_init): Likewise. Renamed to
10564 compute_samebase_partition_bases.
10565 (partition_view_normal): Drop want_bases parameter.
10566 (partition_view_bitmap): Likewise.
10567 * tree-ssa-live.h: Adjust declarations.
10568 * tree-ssa-coalesce.c: Include explow.h.
10569 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10570 default defs at the entry point.
10571 (dump_part_var_map): New.
10572 (compute_optimized_partition_bases): New, called by...
10573 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10574 of compute_samebase_partition_bases. Adjust.
10575 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10576 * cfgexpand.c (leader_merge): New.
10577 (get_rtl_for_parm_ssa_default_def): New.
10578 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10579 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10580 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10581 redundant MEM attr setting.
10582 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10583 from...
10584 (expand_one_stack_var): ... this. New wrapper to check and
10585 skip already expanded SSA partitions.
10586 (record_alignment_for_reg_var): New, factored out of...
10587 (expand_one_var): ... this.
10588 (expand_one_ssa_partition): New.
10589 (adjust_one_expanded_partition_var): New.
10590 (expand_one_register_var): Check and skip already expanded SSA
10591 partitions.
10592 (expand_used_vars): Don't create DECLs for anonymous SSA
10593 names. Expand all SSA partitions, then adjust all SSA names.
10594 (pass::execute): Replace the loops that set
10595 SA.partition_to_pseudo from partition leaders and cleared
10596 DECL_RTL for multi-location variables, and that which used to
10597 rename vars and set attrs, with one that clears DECL_RTL and
10598 checks that PARMs and RESULTs default_defs match DECL_RTL.
10599 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10600 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10601 * explow.c (promote_ssa_mode): New.
10602 * explow.h (promote_ssa_mode): Declare.
10603 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10604 * function.c: Include cfgexpand.h.
10605 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10606 (use_register_for_parm_decl): Wrapper for the above to
10607 special-case the result_ptr.
10608 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10609 (split_complex_args): Take assign_parm_data_all argument.
10610 Pass it to rtl_for_parm. Set up rtl and context for split
10611 args.
10612 (assign_parms_augmented_arg_list): Adjust.
10613 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10614 multiple locations. Recognize split complex args.
10615 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10616 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10617 (assign_parm_setup_block): Prefer SSA-assigned location.
10618 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10619 if stack_parm is NULL.
10620 (assign_parm_setup_stack): Prefer SSA-assigned location.
10621 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10622 rtl before testing for pointer bounds. Special-case result_ptr.
10623 (expand_function_start): Maybe reset DECL_RTL of result.
10624 Prefer SSA-assigned location for result and static chain.
10625 Factor out DECL_RESULT and SET_DECL_RTL.
10626 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10627 anonymous SSA names. Use promote_ssa_mode.
10628 (get_temp_reg): Likewise.
10629 (remove_ssa_form): Adjust.
10630 * stor-layout.c (layout_decl): Don't set mem attributes of
10631 non-MEMs.
10632 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10633 and get its reg_usage for reg invalidation.
10634 (compute_bb_dataflow): Pass it insn.
10635 (emit_notes_in_bb): Likewise.
10636
10637 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10638
10639 * config/i386/i386.c (ix86_va_start): Remove
10640 unneeded !TARGET_64BIT check.
10641 (ix86_gimplify_va_arg): Ditto.
10642
10643 2015-07-24 Tom de Vries <tom@codesourcery.com>
10644
10645 * graphite-sese-to-poly.c (build_poly_scop): Always call
10646 rewrite_commutative_reductions_out_of_ssa.
10647
10648 2015-07-24 Tom de Vries <tom@codesourcery.com>
10649
10650 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10651 flag_associative_math to FLOAT_TYPE_P. Honour
10652 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10653
10654 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10655
10656 PR c++/64079
10657 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10658 and "%qD" in warning_at instead of "%q+D" in warning.
10659
10660 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10661
10662 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10663 (ix86_function_abi): Cleanup.
10664
10665 2015-07-24 Michael Darling <darlingm@gmail.com>
10666
10667 PR other/66259
10668 * acinclude.m4: Reflects renaming of configure.in to configure.ac
10669 * configure: Likewise
10670 * configure.ac: Likewise
10671 * doc/install.texi: Likewise
10672 * doc/tm.texi: Likewise
10673 * doc/tm.texi.in: Likewise
10674
10675 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10676
10677 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10678 manually swapping values.
10679 * cse.c (fold_rtx): Likewise.
10680 * lra-eliminations.c (form_sum): Likewise.
10681
10682 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10683
10684 PR target/64003
10685 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10686 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10687 (*jcc_1, *jcc_2, jump, simple_return_internal)
10688 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10689 Set length_nobnd attribute instead of length attribute.
10690 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10691 (length_nobnd): Remove attribute.
10692 (length): Remove length_nobnd processing.
10693
10694 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
10695
10696 * gimplify.c (omp_default_clause): New function. Reorganize flow
10697 for clarity. Broken out of ...
10698 (omp_notice_variable): ... here.
10699
10700 2015-07-24 Gary Funck <gary@intrepid.com>
10701
10702 PR middle-end/66984
10703 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10704 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10705
10706 2015-07-24 Tom de Vries <tom@codesourcery.com>
10707
10708 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10709 exit-first loop transform.
10710
10711 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10712
10713 PR 66714
10714 * tree-cfg.c (struct replace_decls_d): New struct.
10715 (replace_block_vars_by_duplicates_1): New function.
10716 (replace_block_vars_by_duplicates): Use it to replace the decls
10717 in the value exprs by duplicates.
10718
10719 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10720
10721 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10722 -shared, -symbolic, -rdynamic.
10723
10724 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10725
10726 PR target/65711
10727 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10728 -dynamic-linker within %{!static %{!shared, and -rdynamic within
10729 %{!static.
10730
10731 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10732
10733 PR ipa/66566
10734 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10735 edge summary is available.
10736
10737 2015-07-24 Richard Biener <rguenther@suse.de>
10738
10739 * genmatch.c (struct dt_node): Add statistic fields.
10740 (dt_node::analyze): New method.
10741 (decision_tree::gen_gimple): Call analyze on the root node
10742 and print statistics to stderr.
10743 (decision_tree::gen_generic): Likewise.
10744
10745 2015-07-24 Richard Biener <rguenther@suse.de>
10746
10747 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
10748 against the highest or lowest possible integer ...
10749 * match.pd: ... as patterns here.
10750
10751 2015-07-24 Richard Biener <rguenther@suse.de>
10752
10753 * genmatch.c (struct capture_info): Add same_as field.
10754 (capture_info::capture_info): Initialize same_as.
10755 (capture_info::walk_match): Compute same_as.
10756 (capture_info::walk_result): Compute stuff for the leader.
10757 (capture_info::walk_c_expr): Likewise.
10758 (dt_simplify::gen_1): Only look at leaders when deciding
10759 to force no side-effects or emit side-effects of omitted operands.
10760
10761 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10762
10763 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
10764 reg note to the GPR -> FPR save instructions.
10765
10766 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10767
10768 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
10769 cheaper.
10770 (s390_expand_insv): Don't generate risbg pattern for constant zero
10771 sources.
10772 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
10773 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
10774 splitters.
10775
10776 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10777
10778 * config/s390/s390.c (s390_reorg): Clean up handling of processors
10779 with
10780 -mtune=
10781 (s390_issue_rate): Likewise.
10782 (s390_sched_reorder): Likewise.
10783 (s390_sched_variable_issue): Likewise.
10784 (s390_loop_unroll_adjust): Likewise.
10785 (s390_option_override): Likewise.
10786
10787 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10788
10789 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
10790 processor capabilities with -march=native.
10791 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
10792 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
10793 (S390_TARGET_BITS_STRING): Macro to simplify specs.
10794
10795 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10796
10797 * config/s390/s390.c (s390_issue_rate): Handle
10798 PROCESSOR_2094_Z9_EC.
10799 (s390_option_override): Likewise.
10800 (s390_adjust_priority): Likewise.
10801
10802 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
10803
10804 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
10805 when cross compiling.
10806
10807 2015-07-24 Richard Biener <rguenther@suse.de>
10808
10809 * fold-const.c (maybe_canonicalize_comparison_1): Move
10810 A code CST canonicalization ...
10811 * match.pd: ... to a pattern here.
10812
10813 2015-07-24 Jiong Wang <jiong.wang@arm.com>
10814
10815 Revert:
10816 2015-07-22 Jiong Wang <jiong.wang@arm.com>
10817 PR target/63521
10818 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
10819 (HONOR_REG_ALLOC_ORDER): Define.
10820
10821 2015-07-24 Richard Biener <rguenther@suse.de>
10822
10823 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
10824 * fold-const.c (fold_comparison): Move parameter does not
10825 alias &local simplification ...
10826 * match.pd: ... as a pattern here.
10827
10828 2015-07-24 Richard Biener <rguenther@suse.de>
10829
10830 * gimple-fold.c (replace_stmt_with_simplification): Special-case
10831 valueizing call operands.
10832 * gimple-match-head.c (maybe_push_res_to_seq): Take
10833 number of call arguments from ops array.
10834 (do_valueize): New function.
10835 (gimple_simplify): Return true if valueization changed
10836 any operand even if the result didn't simplify further.
10837
10838 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10839
10840 PR middle-end/25530
10841 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
10842
10843 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10844
10845 PR middle-end/25529
10846 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
10847
10848 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10849
10850 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
10851 instruction.
10852
10853 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10854
10855 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
10856 clean up.
10857
10858 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
10859
10860 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
10861 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
10862 targets here.
10863 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
10864 ms_va_list_type_node initialization.
10865
10866 2015-07-23 Jeff Law <law@redhat.com>
10867
10868 PR lto/66752
10869 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10870 unable to find X NE 0 in the tables, return X as the simplified
10871 condition.
10872 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10873 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10874 to VISISTED_BBS. */
10875 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10876 after removing the control flow statement and unnecessary edges.
10877
10878 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10879
10880 * tree-pass.h (get_current_pass_name): Removed.
10881
10882 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10883
10884 PR rtl-optimization/64164
10885 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10886 * tree-ssa-copyrename.c: Removed.
10887 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10888 -ftree-coalesce-vars.
10889 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10890 * common.opt (ftree-copyrename): Ignore.
10891 (ftree-coalesce-inlined-vars): Likewise.
10892 * doc/invoke.texi: Remove the ignored options above.
10893 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10894 * tree-ssa-coalesce.h: ... here.
10895 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10896 headers required by it.
10897 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10898 across variables when flag_tree_coalesce_vars. Check register
10899 use and promoted modes to allow coalescing. Moved to
10900 tree-ssa-coalesce.c.
10901 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10902 with its member functions to tree-ssa-coalesce.c.
10903 (var_map_base_init): Likewise. Renamed to
10904 compute_samebase_partition_bases.
10905 (partition_view_normal): Drop want_bases parameter.
10906 (partition_view_bitmap): Likewise.
10907 * tree-ssa-live.h: Adjust declarations.
10908 * tree-ssa-coalesce.c: Include explow.h.
10909 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10910 default defs at the entry point.
10911 (dump_part_var_map): New.
10912 (compute_optimized_partition_bases): New, called by...
10913 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10914 of compute_samebase_partition_bases. Adjust.
10915 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10916 * cfgexpand.c (leader_merge): New.
10917 (get_rtl_for_parm_ssa_default_def): New.
10918 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10919 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10920 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10921 redundant MEM attr setting.
10922 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10923 from...
10924 (expand_one_stack_var): ... this. New wrapper to check and
10925 skip already expanded SSA partitions.
10926 (record_alignment_for_reg_var): New, factored out of...
10927 (expand_one_var): ... this.
10928 (expand_one_ssa_partition): New.
10929 (adjust_one_expanded_partition_var): New.
10930 (expand_one_register_var): Check and skip already expanded SSA
10931 partitions.
10932 (expand_used_vars): Don't create DECLs for anonymous SSA
10933 names. Expand all SSA partitions, then adjust all SSA names.
10934 (pass::execute): Replace the loops that set
10935 SA.partition_to_pseudo from partition leaders and cleared
10936 DECL_RTL for multi-location variables, and that which used to
10937 rename vars and set attrs, with one that clears DECL_RTL and
10938 checks that PARMs and RESULTs default_defs match DECL_RTL.
10939 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10940 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10941 * explow.c (promote_ssa_mode): New.
10942 * explow.h (promote_ssa_mode): Declare.
10943 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10944 * function.c: Include cfgexpand.h.
10945 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10946 (use_register_for_parm_decl): Wrapper for the above to
10947 special-case the result_ptr.
10948 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10949 (split_complex_args): Take assign_parm_data_all argument.
10950 Pass it to rtl_for_parm. Set up rtl and context for split
10951 args.
10952 (assign_parms_augmented_arg_list): Adjust.
10953 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10954 multiple locations. Recognize split complex args.
10955 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10956 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10957 (assign_parm_setup_block): Prefer SSA-assigned location.
10958 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10959 if stack_parm is NULL.
10960 (assign_parm_setup_stack): Prefer SSA-assigned location.
10961 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10962 rtl before testing for pointer bounds. Special-case result_ptr.
10963 (expand_function_start): Maybe reset DECL_RTL of result.
10964 Prefer SSA-assigned location for result and static chain.
10965 Factor out DECL_RESULT and SET_DECL_RTL.
10966 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10967 anonymous SSA names. Use promote_ssa_mode.
10968 (get_temp_reg): Likewise.
10969 (remove_ssa_form): Adjust.
10970 * stor-layout.c (layout_decl): Don't set mem attributes of
10971 non-MEMs.
10972 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10973 and get its reg_usage for reg invalidation.
10974 (compute_bb_dataflow): Pass it insn.
10975 (emit_notes_in_bb): Likewise.
10976
10977 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
10978
10979 PR target/66217
10980 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
10981 prototype.
10982 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
10983 (rs6000_emit_2insn_and): Handle dot forms.
10984 * config/rs6000/rs6000.md (and<mode>3): Adjust.
10985 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
10986 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
10987
10988 2015-07-23 Richard Biener <rguenther@suse.de>
10989
10990 * generic-match-head.c: Include cgraph.h.
10991 * gimple-match-head.c: Likewise.
10992 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
10993 SSA names.
10994 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
10995 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
10996 pattern.
10997
10998 2015-07-23 Richard Biener <rguenther@suse.de>
10999
11000 * gimple-fold.c (fold_gimple_cond): Do not require folding
11001 results to pass valid_gimple_rhs_p.
11002 * tree-cfg.h (fold_cond_expr_cond): Remove.
11003 * tree-cfg.c (fold_cond_expr_cond): Likewise.
11004 (make_edges): Do not call it.
11005 * tree-inline.c (tree_function_versioning): Likewise.
11006
11007 2015-07-23 Tom de Vries <tom@codesourcery.com>
11008
11009 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11010 vect_force_simple_reduction.
11011 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11012 (vect_is_simple_reduction_1): Add and handle
11013 need_wrapping_integral_overflow parameter.
11014 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11015 need_wrapping_integral_overflow parameter.
11016 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11017 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11018 decl.
11019
11020 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
11021
11022 PR tree-optimization/66926,66951
11023 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11024 INNER_LOOP and fix up condition for renaming virtual operands.
11025
11026 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11027
11028 * combine.c (try_combine): Use std::swap instead of manually
11029 swapping.
11030
11031 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
11032
11033 * config/mips/i6400.md: New file.
11034 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11035 (mips64r6): Likewise.
11036 (i6400): Define.
11037 * config/mips/mips-tables.opt: Regenerate.
11038 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11039 (mips_issue_rate): Add support for i6400.
11040 (mips_multipass_dfa_lookahead): Likewise.
11041 * config/mips/mips.h (TUNE_I6400): Define.
11042 * config/mips/mips.md: Include i6400.md.
11043 (processor): Add i6400.
11044 * doc/invoke.texi (-march=@var{arch}): Add i6400.
11045
11046 2015-07-23 Richard Biener <rguenther@suse.de>
11047
11048 PR middle-end/66916
11049 * match.pd: Guard widen and sign-change comparison simplification
11050 with single_use.
11051
11052 2015-07-23 Richard Biener <rguenther@suse.de>
11053
11054 PR tree-optimization/66945
11055 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11056 ::before_dom_children): Force the propagators idea of
11057 non-executable edges to materialize, not what the folder
11058 chooses.
11059
11060 2015-07-23 Richard Biener <rguenther@suse.de>
11061
11062 * gimple.h (gimple_cond_make_false): Use 0 != 0.
11063 (gimple_cond_make_true): Use 1 != 0.
11064
11065 2015-07-22 DJ Delorie <dj@redhat.com>
11066
11067 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11068 slashes.
11069
11070 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11071 (ashrhi3): Likewise.
11072 (lshrhi3): Likewise.
11073 (movhi): Take advantage of zero-extend to load small constants.
11074 (movpsi): Likewise.
11075 (and<mode>3): Likewise.
11076 (zero_extendqihi2): Likewise.
11077 (zero_extendqisi2): New.
11078 * config/msp430/constraints.md (N,O): New.
11079 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11080
11081 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
11082
11083 PR target/66954
11084 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11085 to enum feature_priority and feature_list.
11086 (fold_builtin_cpu): Add F_AES to enum processor_features
11087 and isa_names_table.
11088
11089 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
11090
11091 PR driver/66737
11092 * config/i386/linux-common.h (MPX_SPEC): Use linker option
11093 for 64bit target only.
11094
11095 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
11096
11097 * config/nvptx/nvptx.c: Expand some comments.
11098
11099 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
11100
11101 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11102 (cortex_a53_advsimd): ...This.
11103
11104 2015-07-22 Richard Biener <rguenther@suse.de>
11105
11106 * genmatch.c (expr::gen_transform): Clarify error message
11107 and display location.
11108
11109 2015-07-22 Richard Biener <rguenther@suse.de>
11110
11111 * genmatch.c (struct operand): Add location member.
11112 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11113 constructors.
11114 (struct simplify): Remove match_location and result_location
11115 members.
11116 (elsehwere): Adjust.
11117
11118 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
11119
11120 * config/mips/m5100.md: New file.
11121 * config/mips/mips-cpus.def (m5100, m5101): Define.
11122 * config/mips/mips-tables.opt: Regenerate.
11123 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11124 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11125 -march=m5101 to -mips32r5.
11126 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11127 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11128 !-msoft-float.
11129 * config/mips/mips.md: Include m5100.md.
11130 (processor): Add m5100.
11131 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11132
11133 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
11134
11135 * config/mips/mips-cpus.def (interaptiv): Define.
11136 * config/mips/mips-tables.opt: Regenerate.
11137 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11138 -mips32r2.
11139 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11140 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11141
11142 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11143
11144 PR target/63521
11145 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11146 (HONOR_REG_ALLOC_ORDER): Define.
11147
11148 2015-07-22 Richard Biener <rguenther@suse.de>
11149
11150 PR tree-optimization/66952
11151 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11152 blocks we end up executing unconditionally reset all SSA
11153 info such as range and alignment.
11154 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11155 * tree-ssanames.c (reset_flow_sensitive_info): New function.
11156
11157 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11158
11159 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11160 typo in attribute.
11161
11162 2015-07-22 Richard Biener <rguenther@suse.de>
11163
11164 * genmatch.c (parser::parse_result): Properly handle
11165 match with result operands and conditions.
11166
11167 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11168
11169 PR target/63870
11170 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11171 Add qualifier_struct_load_store_lane_index.
11172 (aarch64_types_loadstruct_lane_qualifiers): Use
11173 qualifier_struct_load_store_lane_index for lane index argument for
11174 last argument.
11175 (aarch64_types_storestruct_lane_qualifiers): Ditto.
11176 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11177 (aarch64_simd_expand_args): Add new argument describing mode of
11178 builtin. Check lane bounds for arguments with
11179 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11180 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11181 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11182 (aarch64_simd_expand_builtin): Handle arguments with
11183 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11184 aarch64_simd_expand_args.
11185 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11186 vst[234]_lane with BUILTIN_VALLDIF.
11187 * config/aarch64/aarch64-simd.md:
11188 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11189 endianness reversal on lane index.
11190 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11191 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11192 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11193 (vec_store_lanesci_lane<mode>): Ditto.
11194 (vec_store_lanesxi_lane<mode>): Ditto.
11195 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11196 reversal of lane index.
11197 (aarch64_ld3_lane<mode>): Ditto.
11198 (aarch64_ld4_lane<mode>): Ditto.
11199 (aarch64_st2_lane<mode>): Ditto.
11200 (aarch64_st3_lane<mode>): Ditto.
11201 (aarch64_st4_lane<mode>): Ditto.
11202 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11203 to qmode. Add new mode parameter. Update uses.
11204 (__LD3_LANE_FUNC): Ditto.
11205 (__LD4_LANE_FUNC): Ditto.
11206 (__ST2_LANE_FUNC): Ditto.
11207 (__ST3_LANE_FUNC): Ditto.
11208 (__ST4_LANE_FUNC): Ditto.
11209
11210 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
11211
11212 * doc/invoke.texi (Language Independent Options): Rename node to
11213 Diagnostic Message Formatting Options.
11214
11215 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
11216
11217 PR ipa/66424.
11218 * lra-remat.c (operand_to_remat): Prevent using insns with input
11219 subregs processed separately by IRA.
11220
11221 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
11222
11223 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11224 straight loops.
11225 (single_imm_use): Check for iterator node.
11226 (num_imm_uses): Likewise.
11227 * tree-ssa-operands.c (has_zero_uses_1): Delete.
11228 (single_imm_use_1): Check for iterator node.
11229
11230 2015-07-21 Mike Frysinger <vapier@gentoo.org>
11231 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11232
11233 * configure.ac: Add check for new options in isl-0.15.
11234 * config.in, configure: Rebuilt.
11235 * graphite-blocking.c: Include <isl/constraint.h>
11236 * graphite-interchange.c, graphite-poly.c: Likewise.
11237 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11238 * graphite.c: Likewise.
11239 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11240 <isl/union_set.h>.
11241 * graphite-dependences.c: Include <isl/constraint.h>.
11242 (max_number_of_out_dimensions): Returns isl_stat.
11243 (extend_schedule_1): Likewise
11244 (extend_schedule): Corresponding changes.
11245 * graphite-optimize-isl.c: Include <isl/constraint.h> and
11246 <isl/union_set.h>.
11247 (getSingleMap): Change return type of isl_stat.
11248 (optimize_isl): Conditionally use
11249 isl_options_set_schedule_serialize_sccs.
11250 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11251 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11252
11253 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
11254
11255 PR target/66956
11256 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11257 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11258
11259 2015-07-21 Richard Biener <rguenther@suse.de>
11260
11261 PR tree-optimization/66948
11262 * genmatch.c (capture_info::walk_match): Also recurse to
11263 captures. Properly compute expr state from captures of
11264 captures.
11265 * match.pd: Add single-use guards to
11266 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11267
11268 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
11269
11270 * config/nvptx/mkoffload.c (process): Add static destructor call.
11271
11272 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11273
11274 PR middle-end/66915
11275 * match.pd (A - B -> A + (-B)): Don't allow folding
11276 when type if a fixed-point type.
11277
11278 2015-07-20 DJ Delorie <dj@redhat.com>
11279
11280 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11281 (iorqi3_real): Likewise for set1.
11282
11283 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
11284
11285 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11286 for !TARGET_64BIT.
11287
11288 2015-07-20 Aditya Kumar <hiraditya@msn.com>
11289
11290 * graphite-isl-ast-to-gimple.c:
11291 Refactor so that each function can access 'region'. This will help
11292 maintain a parameter rename_map within a region.
11293
11294 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11295
11296 * config/rs6000/rs6000.md (*lt0_disi): New.
11297
11298 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11299
11300 PR target/66217
11301 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
11302 "available letters" comment.
11303 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11304 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11305 and_2rld_operand): Delete.
11306 (and_operand): Adjust.
11307 (rotate_mask_operator): New.
11308 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11309 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11310 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11311 extract_ME): Delete.
11312 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11313 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11314 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11315 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11316 rs6000_emit_2insn_and): New.
11317 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11318 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11319 includes_rldic_lshift_p, includes_rldicr_lshift_p,
11320 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11321 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11322 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11323 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11324 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11325 rs6000_emit_2insn_and): New.
11326 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11327 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11328 handling.
11329 <NOT>: Don't fall through to next case.
11330 <AND>: Handle the various rotate-and-mask cases directly.
11331 <IOR>: Always cost as one insn.
11332 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11333 (and<mode>3): Adjust expander for the new patterns.
11334 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11335 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11336 (*and<mode>3_imm_dot_shifted): New.
11337 (*and<mode>3_mask): Delete, rewrite as ...
11338 (and<mode>3_mask): ... New.
11339 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11340 (andsi3_internal0_nomc): Delete.
11341 (*andsi3_internal6): Delete.
11342 (*and<mode>3_2insn): New.
11343 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11344 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11345 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11346 *insvdi_internal3): Delete.
11347 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11348 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11349 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11350 *ior<mode>_mask): New.
11351 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11352 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11353 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11354 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11355 Delete.
11356 (ashr<mode>3): Delete expander.
11357 (*ashr<mode>3): Rename to ...
11358 (ashr<mode>3): ... This.
11359 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11360 (*rotldi3_internal4, *rotldi3_internal5 and split,
11361 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11362 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11363 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11364 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11365 (splitter for loading a mask): Adjust.
11366 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11367
11368 2015-07-20 Marek Polacek <polacek@redhat.com>
11369
11370 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11371 output_add_clobbers, output_added_clobbers_hard_reg_p,
11372 gen_rtx_scratch): Remove declarations.
11373
11374 2015-07-20 Marek Polacek <polacek@redhat.com>
11375
11376 PR c++/55095
11377 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11378
11379 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11380
11381 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11382 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11383
11384 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11385
11386 * combine.c (combine_simplify_rtx): Move simplification step
11387 before various transformations/substitutions.
11388
11389 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
11390
11391 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11392 (struct int_traits): Likewise.
11393
11394 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11395
11396 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11397 function to vmsdbgout_function_decl.
11398
11399 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11400
11401 PR target/66922
11402 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11403 from misaligned positions.
11404 (ix86_expand_pinsr): Reject insertions to misaligned positions.
11405
11406 2015-07-18 Sebastian Pop <s.pop@samsung.com>
11407
11408 PR middle-end/46851
11409 PR middle-end/60340
11410 * Makefile.in: Removed omega.o.
11411 * common.opt: Document flag fcheck-data-deps as deprecated.
11412 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11413 its associated params: omega-max-vars, omega-max-geqs,
11414 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11415 omega-max-keys, omega-eliminate-redundant-constraints.
11416 * doc/loop.texi: Remove all the section on Omega.
11417 * graphite-blocking.c: Include missing params.h: it used to be
11418 included through tree-data-ref.h and omega.h.
11419 * graphite-isl-ast-to-gimple.c: Same.
11420 * graphite-optimize-isl.c: Same.
11421 * graphite-sese-to-poly.c: Same.
11422 * graphite.c: Same.
11423 * omega.c: Remove.
11424 * omega.h: Remove.
11425 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11426 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11427 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11428 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11429 * passes.def: Remove pass_check_data_deps.
11430 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11431 (dump_conflict_function): Same.
11432 (dump_subscript): Same.
11433 (print_direction_vector): Same.
11434 (print_dir_vectors): Same.
11435 (print_lambda_vector): Same.
11436 (print_dist_vectors): Same.
11437 (dump_data_dependence_relation): Same.
11438 (dump_data_dependence_relations): Same.
11439 (dump_dist_dir_vectors): Same.
11440 (dump_ddrs): Same.
11441 (init_omega_eq_with_af): Removed.
11442 (omega_extract_distance_vectors): Removed.
11443 (omega_setup_subscript): Removed.
11444 (init_omega_for_ddr_1): Removed.
11445 (init_omega_for_ddr): Removed.
11446 (ddr_consistent_p): Removed.
11447 (compute_affine_dependence): Do not use omega to check data
11448 dependences.
11449 (compute_data_dependences_for_bb): Removed.
11450 (analyze_all_data_dependences): Removed.
11451 (tree_check_data_deps): Removed.
11452 * tree-data-ref.h: Do not include omega.h.
11453 (compute_data_dependences_for_bb): Removed.
11454 (tree_check_data_deps): Removed.
11455 * tree-ssa-loop.c (pass_check_data_deps): Removed.
11456 (make_pass_check_data_deps): Removed.
11457 * tree-ssa-phiopt.c: Include params.h.
11458 * tree-vect-data-refs.c: Same.
11459 * tree-vect-slp.c: Same.
11460
11461 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11462
11463 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11464 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
11465 (mem->fpreg splitters): Ditto.
11466 (general_operand->nonimmediate_operand splitter): Use explicit modes.
11467 Disable DFmode for TARGET_64BIT.
11468
11469 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
11470
11471 PR target/66906
11472 * config/i386/i386.c (ix86_expand_prologue): Replicate static
11473 chain on the stack.
11474
11475 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11476
11477 * config/nvptx/mkoffload.c (process): Constify host data.
11478 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11479 Constify host data.
11480 (generate_host_descr_file): Likewise.
11481
11482 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
11483 Sebastian Pop <s.pop@samsung.com>
11484
11485 PR middle-end/61929
11486 * graphite-dependences.c (add_pdr_constraints): Renamed
11487 pdr->extent to pdr->subscript_sizes.
11488 * graphite-interchange.c (build_linearized_memory_access): Add
11489 back all gcc_assert's that the "isl_int to isl_val conversion"
11490 patch has removed. Refactored.
11491 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11492 * graphite-poly.c (new_poly_dr): Same.
11493 (free_poly_dr): Same.
11494 * graphite-poly.h (struct poly_dr): Same.
11495 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11496 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11497 * graphite-scop-detection.h: Fix space.
11498 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11499 back all gcc_assert's removed by a previous patch.
11500 (wrap): Remove the_isl_ctx global variable that the same patch has
11501 added.
11502 (build_loop_iteration_domains): Same.
11503 (add_param_constraints): Same.
11504 (pdr_add_data_dimensions): Same. Refactored.
11505 (build_poly_dr): Renamed extent to subscript_sizes.
11506
11507 2015-07-17 Marek Polacek <polacek@redhat.com>
11508
11509 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11510 * match.pd: ... here.
11511
11512 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11513
11514 * config/nvptx/mkoffload.c (process): Constify target data.
11515 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11516 Constify target data.
11517 (generate_target_offloadend_file): Likewise.
11518
11519 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11520
11521 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11522 to allow renaming of PHI arguments on edges incoming from outer
11523 loop header, add corresponding check before start PHI iterator.
11524 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11525 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11526 with true force_vectorize. Set-up dominator for outer loop too.
11527 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11528 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11529 was marked with force_vectorize and has restricted cfg.
11530 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11531 inner loop.
11532 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11533 do peeling for outer loops.
11534
11535 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
11536 Matthias Klose <doko@ubuntu.com>
11537
11538 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11539 build-sysroot, sysroot from the `Miscenalleous configure options' to
11540 the `Directories' section and strip trailing `/' from with_sysroot.
11541 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11542 * configure: Regenerated.
11543
11544 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11545
11546 PR target/66824
11547 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11548 (TARGET_HARD_DF_REGS): Ditto.
11549 (TARGET_HARD_XF_REGS): Ditto.
11550 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11551 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11552 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11553 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11554 (*movsf_internal): Add alternatives 16 and 17. Enable
11555 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11556
11557 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11558
11559 PR rtl-optimization/66891
11560 * calls.c (expand_call): Wrap precompute_register_parameters with
11561 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11562
11563 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
11564
11565 * config/nvptx/mkoffload.c (process): Constify mapping variables.
11566 Define target data struct and initialize it.
11567
11568 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
11569
11570 PR rtl-optimization/66626
11571 * ira.h (emit-rtl.h): Include.
11572 (non_spilled_static_chain_regno_p): New.
11573 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11574 unless it is non spilled static chain pseudo.
11575 (assign_hard_rego): Spill memory profitable allocno unless it is
11576 non spilled static chain pseudo.
11577 (allocno_spill_priority_compare): Put non spilled static chain
11578 pseudo at the end of sorted array.
11579 (improve_allocation): Do nothing if we have static chain and
11580 non-local goto.
11581 (allocno__priority_compare_func): Put non spilled static chain
11582 pseudo at the beginning of sorted array.
11583 (move_spill_restore): Ignore non spilled static chain pseudo.
11584 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11585 to non spilled static chain pseudo.
11586 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11587 pseudo at the beginning of sorted array.
11588 (spill_for): Spill non spilled static chain pseudo last.
11589 * lra-constraints.c (lra_constraints): Remove static chain pseudo
11590 check for equivalence.
11591
11592 2015-07-16 Martin Liska <mliska@suse.cz>
11593
11594 PR ipa/66896.
11595 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11596 dst_ctx if it does not exist.
11597
11598 2015-07-16 Martin Liska <mliska@suse.cz>
11599
11600 * hash-set.h (remove): New function.
11601 (iterator): New iteration class for hash_set.
11602
11603 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11604
11605 * genattrtab.c (make_canonical): Add a file_location parameter.
11606 Use fatal_at rather than fatal.
11607 (get_attr_value): Likewise. Update call to make_canonical.
11608 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11609 (make_internal_attr): Update calls accordingly.
11610
11611 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11612
11613 * read-md.h (message_with_line, error_with_line): Delete.
11614 * read-md.c (message_with_line, error_with_line): Delete.
11615 * gensupport.h: Include read-md.h.
11616 (md_rtx_info): New structure.
11617 (read_md_rtx): Use it. Return a bool success value.
11618 * gensupport.c (read_md_rtx): Likewise.
11619 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11620 (main): Update after interface changes.
11621 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11622 (main): Update after interface changes.
11623 * genattrtab.c (insn_code_number): Delete.
11624 (optimize_attrs): Add a max_insn_code parameter and use it instead
11625 of insn_code_number.
11626 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11627 Use *_at rather than *_with_line functions.
11628 (gen_insn): Likewise.
11629 (gen_delay): Likewise.
11630 (gen_insn_reserv): Likewise.
11631 (gen_bypass): Take an md_rtx_info rather than an rtx.
11632 (main): Update after interface changes. Use a local max_insn_code
11633 variable instead of insn_code_number.
11634 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11635 an rtx. Use fatal_at rather than fatal.
11636 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11637 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11638 (gen_absence_set, gen_final_absence_set, gen_automaton)
11639 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11640 (main): Update after interface changes.
11641 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11642 and code number.
11643 (main): Update after interface changes.
11644 * genconditions.c (main): Use new read_md_rtx interface.
11645 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11646 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11647 (main): Update after interface changes.
11648 * genemit.c (insn_code_number, insn_index_number): Delete.
11649 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11650 Use fatal_at rather than fatal.
11651 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
11652 rather than fatal.
11653 (gen_split): Likewise.
11654 (main): Update after interface changes.
11655 * genextract.c (line_no): Delete.
11656 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11657 Update call to walk_rtx.
11658 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
11659 rather than message_with_line.
11660 (walk_rtx): Add an md_rtx_info argument. Update call to
11661 VEC_safe_set_locstr.
11662 (main): Update after interface changes.
11663 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11664 and lineno. Use error_at rather than separate message_with_line
11665 calls and have_error assignments.
11666 (main): Update after interface changes.
11667 * genmddump.c (main): Use new read_md_rtx interface.
11668 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11669 (main): Update after interface changes.
11670 * genoutput.c (next_code_number): Delete.
11671 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11672 (gen_peephole, gen_expand, gen_split): Likewise.
11673 (note_constraint): Likewise. Use *_at rather than *_with_line
11674 functions.
11675 (main): Update after interface changes.
11676 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11677 rtx and lineno.
11678 (main): Update after interface changes.
11679 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11680 than an rtx and lineno.
11681 (process_define_constraint): Likewise.
11682 (process_define_register_constraint): Likewise.
11683 (main): Update after interface changes.
11684 * genrecog.c (next_insn_code, pattern_lineno): Delete.
11685 (validate_pattern): Replace top-level rtx with an md_rtx_info.
11686 Use *_at rather than *_with_line functions.
11687 (match_pattern_2): Likewise.
11688 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11689 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11690 Use *_at rather than *_with_line functions.
11691 * gentarget-def.c (add_insn): New function.
11692 (main): Use it. Use new read_md_rtx interface.
11693
11694 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11695
11696 * gensupport.h (compute_test_codes): Take a file_location rather
11697 than a line number.
11698 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
11699 rather than *_with_line functions.
11700 (process_define_predicate): Update call to compute_test_codes.
11701 * genpreds.c (validate_exp): Take a file_location rather than a
11702 line number. Use *_at functions rather than *_with_line functions.
11703 (process_define_predicate): Update call to validate_exp.
11704 (constraint_data): Replace lineno field with a file_location.
11705 (add_constraint): Take a file_location rather than a line number.
11706 Use *_at functions rather than *_with_line functions. Fix error
11707 message for address constraints. Update after changes to
11708 validate_exp, constraint_data and compute_test_codes.
11709 (process_define_constraint): Update accordingly.
11710 (process_define_register_constraint): Likewise.
11711
11712 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11713
11714 * genoutput.c (data): Use a file_location to record the source
11715 position.
11716 (nothing): Delete.
11717 (idata, idata_end): Remove initialization.
11718 (constraint_data): Replace lineno with a file_location.
11719 (output_insn_data): Update after changes to data.
11720 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11721 (scan_operands): Likewise, using *_at rather than *_with_line
11722 functions.
11723 (process_template): Likewise.
11724 (validate_insn_alternatives): Likewise.
11725 (validate_insn_operands): Likewise.
11726 (validate_optab_operands): Likewise.
11727 (init_insn_for_nothing): Initialize idata and idata_end.
11728 (note_constraint): Update after changes to constraint_data,
11729 using at rather than with_line functions.
11730 (mdep_constraint_len): Take a file_location rather than a
11731 line number. Use at rather than with_line functions.
11732
11733 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11734
11735 * read-md.h (fatal_at): Declare.
11736 * read-md.c (fatal_at): New function.
11737 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
11738 to record the source position.
11739 (check_attr_test): Take a file_location instead of a line number.
11740 Use fatal_at instead of fatal.
11741 (check_attr_value): Update after above changes, using "at"
11742 rather than "with_line" reporting functions.
11743 (convert_set_attr_alternative): Likewise.
11744 (gen_attr): Likewise.
11745 (check_defs): Likewise. Don't assign to read_md_filename.
11746 (gen_insn): Update initialization after above changes.
11747 (gen_delay): Likewise.
11748 (write_insn_cases): Print the filename for a define_peephole.
11749 (gen_insn_reserv): Take a line number as argument and update
11750 the call to check_attr_test.
11751 (main): Pass a line number to gen_insn_reserv.
11752
11753 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11754
11755 * read-md.h (file_location): New structure.
11756 (directive_handler_t): Take a file_location rather than a line number.
11757 (message_at, error_at): Declare.
11758 (read_skip_construct): Delete.
11759 * read-md.c (message_with_line_1): Replace with...
11760 (message_at_1): ...this new function.
11761 (message_at, error_at): New functions.
11762 (message_with_line, error_with_line): Update to use message_at_1.
11763 (handle_enum): Take a file_location rather than a line number
11764 and use error_at for error reporting.
11765 (handle_include): Likewise.
11766 (read_skip_construct): Likewise. Make static.
11767 (handle_file): Update after above changes. Pass a file_location
11768 rather than a line number to handle_directive.
11769 * gensupport.c (queue_elem): Replace separate filename and lineno
11770 with a file_location.
11771 (queue_pattern): Replace filename and lineno arguments with a
11772 file_location. Update after change to queue_elem.
11773 (process_define_predicate): Replace lineno argument with a
11774 file_location and use error_at for error reporting. Update
11775 after above changes.
11776 (process_rtx): Likewise.
11777 (subst_pattern_match): Likewise.
11778 (get_alternatives_number): Likewise.
11779 (alter_predicate_for_insn): Likewise.
11780 (rtx_handle_directive): Likewise.
11781 (is_predicable): Update after above changes, using error_at rather
11782 than error_with_line.
11783 (has_subst_attribute): Likewise.
11784 (identify_predicable_attribute): Likewise.
11785 (alter_attrs_for_subst_insn): Likewise.
11786 (process_one_cond_exec): Likewise.
11787 (process_substs_on_one_elem): Likewise.
11788 (process_define_subst): Likewise.
11789 (check_define_attr_duplicates): Likewise.
11790 (read_md_rtx): Update after change to queue_elem.
11791
11792 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11793
11794 * genoutput.c (next_index_number): Delete.
11795 (data): Remove index_number.
11796 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
11797 (main): Remove manipulation of next_index_number.
11798
11799 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11800
11801 * genattrtab.c (check_attr_value): Remove handling of null attrs.
11802 (make_canonical): Likewise.
11803
11804 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
11805
11806 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
11807 instead of adjust_address_nv.
11808 (restore_stack_nonlocal): Likewise.
11809 (nonlocal_goto): Likewise.
11810
11811 2015-07-16 Tom de Vries <tom@codesourcery.com>
11812
11813 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
11814 not have a corresponding loop header phi.
11815
11816 2015-07-16 Tom de Vries <tom@codesourcery.com>
11817
11818 * tree-parloops.c (create_loads_for_reductions): Handle case that
11819 reduction is unused.
11820
11821 2015-07-16 Richard Biener <rguenther@suse.de>
11822
11823 PR tree-optimization/66894
11824 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
11825 about deriving NE_EXPR from truncated values.
11826
11827 2015-07-16 Martin Liska <mliska@suse.cz>
11828
11829 * alloc-pool.h
11830 (object_allocator): Add new class.
11831 (pool_allocator::initialize): Use the underlying class.
11832 (pool_allocator::allocate): Likewise.
11833 (pool_allocator::remove): Likewise.
11834 (operator new): A new generic allocator.
11835 * asan.c (struct asan_mem_ref): Remove unused members.
11836 (asan_mem_ref_new): Replace new operator with
11837 object_allocator::allocate.
11838 (free_mem_ref_resources): Change deallocation.
11839 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
11840 with object_allocator.
11841 * config/sh/sh.c (add_constant): Replace new operator with
11842 object_allocator::allocate.
11843 (sh_reorg): Change call to a release method.
11844 * cselib.c (struct elt_list): Remove unused members.
11845 (new_elt_list): Replace new operator with
11846 object_allocator::allocate.
11847 (new_elt_loc_list): Likewise.
11848 (new_cselib_val): Likewise.
11849 (unchain_one_elt_list): Change delete operator with remove method.
11850 (unchain_one_elt_loc_list): Likewise.
11851 (unchain_one_value): Likewise.
11852 (cselib_finish): Release newly added static allocators.
11853 * cselib.h (struct cselib_val): Remove unused members.
11854 (struct elt_loc_list): Likewise.
11855 * df-problems.c (df_chain_alloc): Replace pool_allocator with
11856 object_allocator.
11857 * df-scan.c (struct df_scan_problem_data): Likewise.
11858 (df_scan_alloc): Likewise.
11859 * df.h (struct dataflow): Likewise.
11860 * dse.c (struct read_info_type): Likewise.
11861 (struct insn_info_type): Likewise.
11862 (struct dse_bb_info_type): Likewise.
11863 (struct group_info): Likewise.
11864 (struct deferred_change): Likewise.
11865 (get_group_info): Likewise.
11866 (delete_dead_store_insn): Likewise.
11867 (free_read_records): Likewise.
11868 (replace_read): Likewise.
11869 (check_mem_read_rtx): Likewise.
11870 (scan_insn): Likewise.
11871 (dse_step1): Likewise.
11872 (dse_step7): Likewise.
11873 * et-forest.c (struct et_occ): Remove unused members.
11874 (et_new_occ): Use allocate instead of new operator.
11875 (et_new_tree): Likewise.
11876 (et_free_tree): Call release method explicitly.
11877 (et_free_tree_force): Likewise.
11878 (et_free_pools): Likewise.
11879 (et_split): Use remove instead of delete operator.
11880 * et-forest.h (struct et_node): Remove unused members.
11881 * ipa-cp.c: Change pool_allocator to object_allocator.
11882 * ipa-inline-analysis.c: Likewise.
11883 * ipa-profile.c: Likewise.
11884 * ipa-prop.c: Likewise.
11885 * ipa-prop.h: Likewise.
11886 * ira-build.c (initiate_cost_vectors): Cast return value.
11887 (ira_allocate_cost_vector): Likewise.
11888 * ira-color.c (struct update_cost_record): Remove unused members.
11889 * lra-int.h (struct lra_live_range): Likewise.
11890 (struct lra_copy): Likewise.
11891 (struct lra_insn_reg): Likewise.
11892 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
11893 * lra.c (new_insn_reg): Replace new operator with allocate method.
11894 (free_insn_regs): Same for operator delete.
11895 (finish_insn_regs): Release new static allocator.
11896 (finish_insn_recog_data): Likewise.
11897 (lra_free_copies): Replace delete operator with remove method.
11898 (lra_create_copy): Replace operator new with allocate method.
11899 (invalidate_insn_data_regno_info): Same for remove method.
11900 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
11901 (free_debug_insn_changes): Replace delete operator with remove method.
11902 (replace_oldest_value_reg): Replace operator new with allocate method.
11903 (pass_cprop_hardreg::execute): Release new static variable.
11904 * sched-deps.c (sched_deps_init): Change pool_allocator to
11905 object_allocator.
11906 * sel-sched-ir.c: Likewise.
11907 * sel-sched-ir.h: Likewise.
11908 * stmt.c (expand_case): Likewise.
11909 (expand_sjlj_dispatch_table): Likewise.
11910 * tree-sra.c (struct access): Remove unused members.
11911 (struct assign_link): Likewise.
11912 (sra_deinitialize): Release newly added static pools.
11913 (create_access_1):Replace operator new with allocate method.
11914 (build_accesses_from_assign): Likewise.
11915 (create_artificial_child_access): Likewise.
11916 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
11917 pool_allocator to object_allocator.
11918 * tree-ssa-pre.c: Likewise.
11919 * tree-ssa-reassoc.c: Likewise.
11920 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
11921 * tree-ssa-strlen.c: Likewise.
11922 * tree-ssa-structalias.c: Likewise.
11923 * var-tracking.c (onepart_pool_allocate): New function.
11924 (unshare_variable): Use the newly added function.
11925 (variable_merge_over_cur): Likewise.
11926 (variable_from_dropped): Likewise.
11927 (variable_was_changed): Likewise.
11928 (set_slot_part): Likewise.
11929 (emit_notes_for_differences_1): Likewise.
11930 (vt_finalize): Release newly added static pools.
11931
11932 2015-07-16 Martin Jambor <mjambor@suse.cz>
11933
11934 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
11935 all uses. Fix two typos in its general comment.
11936 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
11937
11938 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
11939
11940 * config/i386/linux-common.h (LINK_MPX): New.
11941 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
11942 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
11943 indicating '-z bndplt' support by linker.
11944 * configure: Regenerate.
11945 * config.in: Regenerate.
11946
11947 2015-07-16 Richard Biener <rguenther@suse.de>
11948
11949 * fold-const.c (fold_widened_comparison): Remove.
11950 (fold_sign_changed_comparison): Likewise.
11951 (fold_comparison): Move widened and sign-changed comparison
11952 simplification ...
11953 * match.pd: ... to patterns here.
11954 * generic-match-head.c: Include target.h.
11955 * gimple-match-head.c: Likewise.
11956
11957 2015-07-16 Richard Biener <rguenther@suse.de>
11958
11959 * tree-ssa-dom.c (dom_valueize): New function.
11960 (record_temporary_equivalences): Also record equivalences
11961 for dominating stmts that have uses of equivalences we are
11962 about to record.
11963
11964 2015-07-16 Bin Cheng <bin.cheng@arm.com>
11965
11966 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
11967 add_autoinc_candidates.
11968 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
11969 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
11970 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
11971 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
11972 Call new function.
11973 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
11974 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
11975 Remove parameter struct iv*. Call add_autoinc_candidates here.
11976 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
11977 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
11978 Call new function.
11979 (find_iv_candidates): Call new functions.
11980
11981 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
11982
11983 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
11984 uninitialized-variable warning.
11985
11986 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
11987
11988 PR target/65249
11989 * config/sh/sh.md (movdi): Split simple reg move to two movsi
11990 when the destination is R0.
11991
11992 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
11993
11994 PR target/66866
11995 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
11996 * config/i386/i386.c (ix86_expand_pextr): New function.
11997 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
11998 for non-lowpart subregs.
11999 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12000 (insv<mode>): Use SWI248 mode iterator.
12001 (insv<mode>_1): Ditto.
12002
12003 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12004 Sebastian Pop <s.pop@samsung.com>
12005
12006 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12007 iterator to use_stmt.
12008
12009 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12010 Sebastian Pop <s.pop@samsung.com>
12011
12012 * graphite-scop-detection.c (build_scops_1): Discard scops for
12013 which entry==exit.
12014
12015 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12016 Sebastian Pop <s.pop@samsung.com>
12017
12018 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12019 case of a return statement in scop.
12020
12021 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12022 Sebastian Pop <s.pop@samsung.com>
12023
12024 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12025 INTEGER_TYPE parameters.
12026 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12027 VECTOR_CST in scan_tree_for_params.
12028 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12029
12030 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12031
12032 * gimple-pretty-print.h: Don't include pretty-print.h.
12033 * tree-streamer.h: Don't include lto-streamer.h.
12034 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12035 * gimple-streamer-in.c: Remove redundant includes.
12036 * gimple-streamer-out.c: Likewise.
12037 * ipa-devirt.c: Likewise.
12038 * ipa-icf.c: Likewise.
12039 * ipa-inline-analysis.c: Likewise.
12040 * ipa-polymorphic-call.c: Likewise.
12041 * ipa-profile.c: Likewise.
12042 * ipa-prop.c: Likewise.
12043 * ipa-pure-const.c: Likewise.
12044 * lto-cgraph.c: Likewise.
12045 * lto-streamer-in.c: Likewise.
12046 * lto-streamer-out.c: Likewise.
12047 * lto-streamer.c: Likewise.
12048 * tree-streamer-in.c: Likewise.
12049 * tree-streamer-out.c: Likewise.
12050 * tree-streamer.c: Likewise.
12051
12052 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12053
12054 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12055 include input.h.
12056 * opts.c: Remove multiline #include comment.
12057
12058 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
12059
12060 * config/nvptx/mkoffload.c (process): Add C++ protection to
12061 emitted code.
12062
12063 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12064
12065 PR target/66854
12066 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12067 null before IEEE 128-bit floating point support patch.
12068
12069 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12070
12071 * simplify-rtx.c (simplify_ternary_operation): Add simplification
12072 for (!c) != {0,...,0} ? a : b for vector modes.
12073
12074 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
12075 Martin Jambor <mjambor@suse.cz>
12076
12077 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12078 struct func_body_info* instead of struct ipa_node_params*, expecting
12079 fbi->info to be filled in. Replace throughout. Adjust call to
12080 ipa_load_from_parm_agg.
12081 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12082 instead of struct ipa_node_params*. Adjust calls to other functions
12083 so that they pass either fbi or fbi->info.
12084 (set_switch_stmt_execution_predicate): Likewise.
12085 (will_be_nonconstant_predicate): Likewise.
12086 (compute_bb_predicates): Likewise.
12087 (estimate_function_body_sizes): Move asserts earlier. Fill in
12088 struct func_body_info, replace parms_info with fbi.info. Adjust
12089 calls to functions that now accept struct func_body_info.
12090 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12091 (struct func_body_info): Likewise.
12092 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12093 remove static. Adjust callers.
12094 (ipa_load_from_parm_agg): Remove.
12095 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12096 (func_body_info): Likewise.
12097 (ipa_load_from_parm_agg): Adjust prototype.
12098
12099 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12100
12101 * gensupport.c (rtx_handle_directive): Adjust.
12102 * read-rtl.c (apply_iterators): Take vector to add rtxs to
12103 instead of expr list rtx.
12104 (add_define_attr_for_define_subst): Likewise.
12105 (add_define_subst_attr): Likewise.
12106 (read_subst_mapping): Likewise.
12107 (read_rtx): Likewise.
12108 * rtl.h (read_rtx): Adjust.
12109
12110 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12111
12112 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12113
12114 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12115
12116 PR target/58066
12117 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12118 (*tls_local_dynamic_base_64_<mode>): Ditto.
12119 (*tls_local_dynamic_base_64_largepic): Ditto.
12120 (tls_global_dynamic_64_<mode>): Update expander pattern.
12121 (tls_local_dynamic_base_64_<mode>): Ditto.
12122
12123 2015-07-15 Richard Biener <rguenther@suse.de>
12124
12125 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12126 and bool_var == 1 -> bool_var simplifications ...
12127 * match.pd: ... to patterns here. Factor out negate_expr_p
12128 cases from the A - B -> A + (-B) patterns as negate_expr_p
12129 predicate and add a -(A + B) -> (-B) - A pattern.
12130
12131 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12132
12133 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12134
12135 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
12136 Robert Suchanek <robert.suchanek@imgtec.com>
12137
12138 * config/mips/mips.c (mips_int_mask): New enum.
12139 (mips_shadow_set): Likewise.
12140 (int_mask): New variable.
12141 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12142 (machine_function): Add int_mask and use_shadow_register_set.
12143 (mips_attribute_table): Add attribute handlers for interrupt and
12144 use_shadow_register_set.
12145 (mips_interrupt_mask): New static function.
12146 (mips_handle_interrupt_attr): Likewise.
12147 (mips_handle_use_shadow_register_set_attr): Likewise.
12148 (mips_use_shadow_register_set): Change return type to enum
12149 mips_shadow_set. Add argument handling for use_shadow_register_set
12150 attribute.
12151 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12152 compare with mips_shadow_set enum.
12153 (mips_compute_frame_info): Add interrupt mask and
12154 use_shadow_register_set to per-function information structure.
12155 Add a stack slot for EPC unconditionally.
12156 (mips_expand_prologue): Compare use_shadow_register_set value
12157 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
12158 masked interrupt register but in EIC mode use K0 and save Cause in K0.
12159 EPC saved and restored unconditionally. Use PMODE_INSN macro when
12160 copying the stack pointer from the shadow register set.
12161 * config/mips/mips.h (SR_IM0): New define.
12162 * config/mips/mips.md (mips_rdpgpr): Rename to...
12163 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
12164 * doc/extend.texi (Declaring Attributes of Functions): Document
12165 optional arguments for interrupt and use_shadow_register_set
12166 attributes.
12167
12168 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12169
12170 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12171 interrupt attribute.
12172 (mips_expand_prologue): Disable the floating point unit in an ISR.
12173 * config/mips/mips.h (SR_COP1): New define.
12174
12175 2015-07-15 Richard Biener <rguenther@suse.de>
12176
12177 * genmatch.c (parser::peek, parser::peek_ident): Add argument
12178 to tell how many tokens to peek ahead (default 1).
12179 (parser::eat_token, parser::eat_ident): Return token consumed.
12180 (parser::parse_result): Parse new switch statement.
12181 * match.pd: Use case statements where appropriate.
12182
12183 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12184
12185 PR rtl-optimization/58066
12186 * calls.c (expand_call): Precompute register parameters before stack
12187 alignment is performed.
12188
12189 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12190
12191 PR rtl-optimization/66838
12192 * postreload.c (reload_cse_move2add): Also process
12193 CALL_INSN_FUNCTION_USAGE when resetting information of
12194 call-clobbered registers.
12195
12196 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12197 Cesar Philippidis <cesar@codesourcery.com>
12198 Chung-Lin Tang <cltang@codesourcery.com>
12199
12200 * config/nios2/constraints.md (U, v): New constraints.
12201 * config/nios2/predicates.md (rdprs_dcache_operand): New.
12202 (ldstex_memory_operand): New.
12203 * config/nios2/sync.md: New file.
12204 * config/nios2/nios2.md (unspecv): Add new builtin function
12205 UNSPECV codes.
12206 (rdprs, flushd, flushda, wrpie, eni): New patterns.
12207 (top-level): Include sync.md.
12208 * config/nios2/nios2.c (N2_FTYPES): Add function types for
12209 new builtins.
12210 (N2_BUILTINS): Add arch field setting, add new builtins.
12211 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12212 for arch field.
12213 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12214 Also handle ldex/stex/ldsex/stsex builtins.
12215 (nios2_expand_rdprs_builtin): New function.
12216 (nios2_expand_cache_builtin): New function.
12217 (nios2_expand_wrpie_builtin): New function.
12218 (nios2_expand_eni_builtin): New function.
12219 (nios2_expand_builtin): Add arch field handling and new builtin
12220 cases.
12221 * doc/extend.texi (Altera Nios II Built-in Functions): Document
12222 new builtins.
12223 * doc/md.texi (Machine Constraints): Document U and v constraints.
12224
12225 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12226 Cesar Philippidis <cesar@codesourcery.com>
12227 Chung-Lin Tang <cltang@codesourcery.com>
12228
12229 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12230 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12231 callee_save_reg_size and uses_anonymous_args fields.
12232 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12233 (nios2_create_cfa_notes): New function.
12234 (nios2_adjust_stack): New function for adjusting stack.
12235 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12236 Use nios2_adjust_stack.
12237 (nios2_expand_epilogue): Likewise.
12238 (nios2_expand_return): New function.
12239 (nios2_can_use_return_insn): Update for CDX pop.n usage.
12240 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12241 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12242 * config/nios2/nios2.md (return): Use nios2_expand_return.
12243
12244 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12245 Cesar Philippidis <cesar@codesourcery.com>
12246 Chung-Lin Tang <cltang@codesourcery.com>
12247
12248 * config/nios2/predicates.md (pop_operation): New.
12249 (ldwm_operation, stwm_operation): New.
12250 (nios2_hard_register_operand): New.
12251 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12252 (ldstwm_operation_p): Declare.
12253 (gen_ldstwm_peep): Declare.
12254 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12255 (base_reg_adjustment_p): New.
12256 (pop_operation_p): New.
12257 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12258 (nios2_ldstwm_regset_p): New.
12259 (ldstwm_operation_p): New.
12260 (gen_ldst): New.
12261 (nios2_ldst_parallel): New.
12262 (struct ldswm_operand): Declare.
12263 (compare_ldstwm_operands): New.
12264 (can_use_cdx_ldstw): New.
12265 (gen_ldstwm_peep): New.
12266 * config/nios2/nios2-ldstwm.sml: New.
12267 * config/nios2/nios2.md: Include ldstwm.md.
12268 * config/nios2/ldstwm.md: Generated.
12269
12270 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12271 Cesar Philippidis <cesar@codesourcery.com>
12272 Chung-Lin Tang <cltang@codesourcery.com>
12273
12274 * config/nios2/nios2.h (LABEL_ALIGN): Define.
12275 (REG_ALLOC_ORDER): Define.
12276 (ADJUST_REG_ALLOC_ORDER): Define.
12277 (HONOR_REG_ALLOC_ORDER): Define.
12278 (CDX_REG_P): Define.
12279 (ANDCLEAR_INT): Define.
12280 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12281 (nios2_label_align): Declare.
12282 (nios2_cdx_narrow_form_p): Declare.
12283 (nios2_adjust_reg_alloc_order): Declare.
12284 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12285 operation.
12286 (nios2_large_unspec_reloc_p): New function, split from...
12287 (nios2_legitimate_pic_operand_p): ...here.
12288 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12289 (nios2_print_operand_punct_valid_p): New.
12290 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
12291 (split_mem_address): New.
12292 (split_alu_insn): New.
12293 (cdxreg): New.
12294 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12295 (enum nios2_add_insn_kind): New.
12296 (nios2_add_insn_names, nios2_add_insn_narrow): New.
12297 (nios2_add_insn_classify): New.
12298 (nios2_add_insn_asm): New.
12299 (nios2_cdx_narrow_form_p): New.
12300 (label_align, min_labelno, max_labelno): New.
12301 (nios2_reorg): New.
12302 (nios2_label_align): New.
12303 (nios2_adjust_reg_alloc_order): New.
12304 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12305 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12306 * config/nios2/constraints.md (P): New constraint.
12307 * config/nios2/predicates.md (const_and_operand): New.
12308 (and_operand): New.
12309 (stack_memory_operand): New.
12310 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12311 (length): Update to use nios2_cdx_narrow_form_p().
12312 (type): Add new insn type values.
12313 (control, alu, st, ld, shift): Update insn reservations with
12314 new insn type values.
12315 (*high, *lo_sum): Define new insn patterns for constant generation.
12316 (movqi_internal, movhi_internal, movsi_internal): Reduce
12317 alternatives, update asm template to handle CDX variants, update
12318 type attributes.
12319 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12320 template, update type attributes.
12321 (extendhisi2, extendqi<mode>2): Likewise.
12322 (addsi3): Change to use function for asm string.
12323 (subsi3): Add CDX notation to asm template, update type attributes.
12324 (negsi3, one_cmplsi3): Likewise.
12325 (andsi3): New pattern, specialized from logical patterns.
12326 (<code>si3): Remove and case, combine alternatives, update asm
12327 template.
12328 (<shift_op>si3): Add CDX notation, update type attributes.
12329 (rotrsi3): Update type attribute.
12330 (*merge, extzv, insv): New insn patterns.
12331 (return): Change to define_expand.
12332 (simple_return): Add CDX notation, update type attributes.
12333 (indirect_jump): Add CDX notation.
12334 (jump): Update asm cases, update length attribute expression.
12335 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12336 (nios2_cbranch): Update asm cases and length attribute expression
12337 to handle CDX variants.
12338 (nios2_cmp<code>): Update asm template.
12339 (nop): Add CDX notation, update type attributes.
12340 (trap): Add CDX notation.
12341 (ctrapsi4): Update asm cases and length attribute expression to
12342 handle CDX variant.
12343 * doc/md.texi (Machine Constraints): Document P constraint.
12344
12345 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12346 Cesar Philippidis <cesar@codesourcery.com>
12347 Chung-Lin Tang <cltang@codesourcery.com>
12348
12349 * config/nios2/nios2.h (SMALL_INT12): New macro.
12350 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12351 (nios2_valid_addr_expr_p): Use it.
12352 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12353 with implicit "io" instructions on R2.
12354 * config/nios2/constraints.md (w): New constraint.
12355 * config/nios2/predicates.md (ldstio_memory_operand): New.
12356 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12357 operand predicate and constraint.
12358 (ld<bh>io_signed, st<bhw>io>): Likewise.
12359 * doc/md.texi (Machine Constraints): Document w constraint.
12360
12361 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12362 Cesar Philippidis <cesar@codesourcery.com>
12363 Chung-Lin Tang <cltang@codesourcery.com>
12364
12365 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12366 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12367 Nios II architecture level.
12368 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12369 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12370 (OPTION_DEFAULT_SPECS): Define.
12371 (ASM_SPEC): Add -march= spec strings.
12372 * config/nios2/nios2.c (nios2_option_override): Check for
12373 conflicts involving new options.
12374 * config.gcc (nios2*-*-*): Support --with-arch=.
12375 * doc/invoke.texi (Option Summary, Nios II Options): Document
12376 -march=, -mbmx, and -mcdx.
12377
12378 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
12379
12380 PR rtl-optimization/66626
12381 * lra-constraints.c (lra_constraints): Prevent equivalence
12382 substitution for static chain pseudo in functions with nonlocal
12383 goto.
12384
12385 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12386
12387 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12388 (nios2_emit_stack_limit_check): Add size parameter. Handle
12389 -fstack-limit-symbol as well as -fstack-limit-register.
12390 (nios2_expand_prologue): Emit only a single stack limit check,
12391 even if multiple stack adjustments are required.
12392 (nios2_option_override): Diagnose unsupported combination of -fpic
12393 and -stack-limit-symbol.
12394
12395 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
12396
12397 * Makefile.in (top_srcdir): New.
12398 * configure.ac: Use AM_ZLIB.
12399 * configure: Regeneated.
12400
12401 2015-07-14 Matthias Klose <doko@ubuntu.com>
12402
12403 PR target/66840
12404 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12405
12406 2015-07-14 Richard Biener <rguenther@suse.de>
12407
12408 PR tree-optimization/66863
12409 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12410 what we record for conversion use stmt lhs inequalities.
12411
12412 2015-07-14 Richard Biener <rguenther@suse.de>
12413
12414 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12415 (decision_tree::gen_gimple): Likewise.
12416
12417 2015-07-14 Tom de Vries <tom@codesourcery.com>
12418
12419 * gcc.c (greater_than_spec_func): Declare forward.
12420 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12421 -ftree-parallelize-loops={0,1}.
12422 (static_spec_functions): Add greater_than_spec_func function with name
12423 "gt".
12424 (greater_than_spec_func): New function.
12425
12426 2015-07-14 Richard Biener <rguenther@suse.de>
12427
12428 * tree-ssa-dom.c (record_temporary_equivalences): Merge
12429 wideing type conversion case from record_equivalences_from_incoming_edge
12430 and use record_equality to record equivalences.
12431 (record_equivalences_from_incoming_edge): Call
12432 record_temporary_equivalences.
12433
12434 2015-07-14 Richard Biener <rguenther@suse.de>
12435
12436 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12437 (struct if_expr): New.
12438 (struct with_expr): Likewise.
12439 (is_a_helper): Add helpers for if_expr and with_expr.
12440 (struct simplify): Add simplify_kind enum and member. Remove
12441 ifexpr_vec member.
12442 (simplify::simplify): Adjust.
12443 (lower_commutative): Adjust.
12444 (lower_opt_convert): Likewise.
12445 (lower_cond): Likewise.
12446 (replace_id): Handle with_expr and if_expr.
12447 (lower_for): Adjust.
12448 (dt_simplify::gen_1): New recursive worker, split out from ...
12449 (dt_simplify::gen): ... here. Deal with if and with expansion
12450 recursively.
12451 (capture_info::capture_info): Take context argument
12452 (capture_info::walk_result): Only analyze specific result.
12453 (parser::parse_result): New function.
12454 (parser::parse_simplify): Adjust to parse ifs with then end
12455 else case.
12456 (parser::parse_if): Simplify.
12457 (parser::parse_pattern): Pass down simplify kind.
12458 * match.pd: Convert if structure to new syntax.
12459
12460 2015-07-13 Marek Polacek <polacek@redhat.com>
12461
12462 * rtl.c (rtx_equal_p_cb): Fix typo.
12463
12464 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
12465
12466 * omega.h: Don't include config.h, don't include params.h again if
12467 omega.h has already been included.
12468 * graphite-poly.h: Include sese.h.
12469 * graphite.c: Don't include sese.h, remove needless includes and
12470 minimize includes outside #ifdef HAVE_isl block.
12471 * graphite-blocking.c: Don't include sese.h, remove needless includes,
12472 and wrap entire file in #ifdef HAVE_isl
12473 * graphite-dependences.c: Likewise.
12474 * graphite-interchange.c: Likewise.
12475 * graphite-isl-ast-to-gimple.c: Likewise.
12476 * graphite-optimize-isl.c: Likewise.
12477 * graphite-poly.c: Likewise.
12478 * graphite-scop-detection.c: Likewise.
12479 * graphite-sese-to-poly.c: Likewise.
12480
12481 2015-07-13 Tom de Vries <tom@codesourcery.com>
12482
12483 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12484
12485 2015-07-13 Renlin Li <renlin.li@arm.com>
12486
12487 PR rtl/66556
12488 * simplify-rtx.c (simplify_const_relational_operation): Add
12489 side_effects_p checks.
12490
12491 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
12492
12493 * bitmap.h: Fix double word typos.
12494 * builtins.c: Same.
12495 * calls.c: Same.
12496 * cfgloopmanip.c: Same.
12497 * cgraph.c: Same.
12498 * cgraph.h: Same.
12499 * cgraphclones.c: Same.
12500 * combine.c: Same.
12501 * config/aarch64/aarch64-protos.h: Same.
12502 * config/aarch64/aarch64.c: Same.
12503 * config/aarch64/aarch64.md: Same.
12504 * config/arm/arm.md: Same.
12505 * config/arm/arm1020e.md: Same.
12506 * config/arm/arm1026ejs.md: Same.
12507 * config/arm/arm926ejs.md: Same.
12508 * config/arm/fa526.md: Same.
12509 * config/arm/fa606te.md: Same.
12510 * config/arm/fa626te.md: Same.
12511 * config/arm/fa726te.md: Same.
12512 * config/arm/fmp626.md: Same.
12513 * config/darwin.c: Same.
12514 * config/epiphany/epiphany.c: Same.
12515 * config/frv/frv.c: Same.
12516 * config/ft32/ft32.c: Same.
12517 * config/gnu-user.h: Same.
12518 * config/h8300/constraints.md: Same.
12519 * config/i386/i386.c: Same.
12520 * config/i386/i386.md: Same.
12521 * config/iq2000/iq2000.md: Same.
12522 * config/mips/mips.c: Same.
12523 * config/mmix/mmix.md: Same.
12524 * config/moxie/moxie.c: Same.
12525 * config/nds32/nds32.md: Same.
12526 * config/pa/pa.h: Same.
12527 * config/rs6000/aix.h: Same.
12528 * config/rs6000/rs6000.h: Same.
12529 * config/sh/sh.c: Same.
12530 * config/tilegx/tilegx.md: Same.
12531 * config/tilepro/gen-mul-tables.cc: Same.
12532 * cse.c: Same.
12533 * dbxout.c: Same.
12534 * doc/invoke.texi: Same.
12535 * dse.c: Same.
12536 * dwarf2out.c: Same.
12537 * final.c: Same.
12538 * gcc.c: Same.
12539 * genmatch.c: Same.
12540 * gimplify.c: Same.
12541 * hash-table.h: Same.
12542 * internal-fn.c: Same.
12543 * ipa-cp.c: Same.
12544 * ipa-devirt.c: Same.
12545 * ipa-icf.c: Same.
12546 * ipa-icf.h: Same.
12547 * ipa-profile.c: Same.
12548 * ipa-prop.c: Same.
12549 * ipa-prop.h: Same.
12550 * ira.c: Same.
12551 * omp-low.c: Same.
12552 * reg-stack.c: Same.
12553 * regcprop.c: Same.
12554 * reorg.c: Same.
12555 * rtl.h: Same.
12556 * sbitmap.h: Same.
12557 * tree-eh.c: Same.
12558 * tree-inline.c: Same.
12559 * tree-sra.c: Same.
12560 * tree-ssa-dom.c: Same.
12561 * tree-ssa-loop-ivopts.c: Same.
12562 * tree-ssa-structalias.c: Same.
12563 * tree-ssa-tail-merge.c: Same.
12564 * tree-ssa-ter.c: Same.
12565 * tree-ssa-threadupdate.c: Same.
12566 * tree-ssa-uninit.c: Same.
12567 * tree-ssanames.c: Same.
12568 * tree-vect-loop-manip.c: Same.
12569 * tree-vrp.c: Same.
12570 * tree.c: Same.
12571 * valtrack.c: Same.
12572 * vec.h: Same.
12573
12574 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12575
12576 PR middle-end/66726
12577 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12578 tree_ssa_phiopt_worker): Call it.
12579
12580 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12581
12582 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12583 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12584 REG_EQUAL note.
12585
12586 2015-07-11 Marek Polacek <polacek@redhat.com>
12587
12588 PR middle-end/66353
12589 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12590 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12591 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12592 rather than bb_has_abnormal_call_pred.
12593 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12594 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12595 rather than bb_has_abnormal_call_pred.
12596
12597 2015-07-10 Anatoly Sokolov <aesok@post.ru>
12598
12599 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12600 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12601 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12602 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12603 v850_legitimate_address_p): New functions.
12604 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12605
12606 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
12607
12608 PR target/66819
12609 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12610 indirect sibcall with register arguments if register available
12611 for argument passing.
12612 (init_cumulative_args): Set cfun->machine->arg_reg_available
12613 to (cum->nregs > 0) or to true if function has a variable
12614 argument list.
12615 (function_arg_advance_32): Set cfun->machine->arg_reg_available
12616 to false if cum->nregs <= 0.
12617 * config/i386/i386.h (machine_function): Add arg_reg_available.
12618
12619 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12620
12621 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12622 and gen_higpart instead of gen_rtx_SUBREG.
12623 * config/i386/i386.md
12624 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12625 (read-modify peephole2): Use gen_lowpart instead of
12626 gen_rtx_SUBREG for operand 5.
12627
12628 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12629
12630 * config/tilepro/gen-mul-tables.cc (main): Change include list for
12631 generated files.
12632 * config/tilepro/mul-tables.c: Regenerate.
12633 * config/tilegx/mul-tables.c: Regenerate.
12634
12635 2015-07-10 Richard Biener <rguenther@suse.de>
12636
12637 * fold-const.c (distribute_bit_expr): Remove.
12638 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12639 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12640 to A & (B | C) and simplifying A << C1 << C2 to ...
12641 * match.pd: ... patterns here.
12642
12643 2015-07-10 Jiong Wang <jiong.wang@arm.com>
12644
12645 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12646 Mark mem as READONLY and NOTRAP for PIC symbol.
12647
12648 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12649
12650 * gimple-predict.h: New file.
12651 (gimple_predict_predictor, gimple_predict_set_predictor,
12652 gimple_predict_outcome, gimple_predict_set_outcome,
12653 gimple_build_predict): Relocate here.
12654 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12655 gimple_predict_outcome, gimple_predict_set_outcome): Move to
12656 gimple-predict.h.
12657 * gimple.c (gimple_build_predict): Move to gimple-predict.h
12658 * basic-block.h: Don't include cfghooks.h.
12659 * backend.h: Don't include predict.h.
12660 * cfghooks.h: Include predict.h.
12661 * gimple-pretty-print.c: Include gimple-predict.h.
12662 * gimplify.c: Likwise.
12663 * predict.c: Adjust includes.
12664 * tree-inline.c: Likewise.
12665 * asan.c: Likewise.
12666 * auto-inc-dec.c: Likewise.
12667 * auto-profile.c: Likewise.
12668 * bb-reorder.c: Likewise.
12669 * builtins.c: Likewise.
12670 * caller-save.c: Likewise.
12671 * calls.c: Likewise.
12672 * cfganal.c: Likewise.
12673 * cfgbuild.c: Likewise.
12674 * cfg.c: Likewise.
12675 * cfgcleanup.c: Likewise.
12676 * cfgexpand.c: Likewise.
12677 * cfghooks.c: Likewise.
12678 * cfgloopanal.c: Likewise.
12679 * cfgloop.c: Likewise.
12680 * cfgloopmanip.c: Likewise.
12681 * cfgrtl.c: Likewise.
12682 * cgraph.c: Likewise.
12683 * cgraphunit.c: Likewise.
12684 * combine.c: Likewise.
12685 * cprop.c: Likewise.
12686 * cse.c: Likewise.
12687 * dce.c: Likewise.
12688 * dojump.c: Likewise.
12689 * dse.c: Likewise.
12690 * except.c: Likewise.
12691 * expmed.c: Likewise.
12692 * expr.c: Likewise.
12693 * final.c: Likewise.
12694 * fold-const.c: Likewise.
12695 * function.c: Likewise.
12696 * fwprop.c: Likewise.
12697 * gcc-plugin.h: Likewise.
12698 * gcse.c: Likewise.
12699 * genattrtab.c: Likewise.
12700 * genemit.c: Likewise.
12701 * gengtype.c: Likewise.
12702 * genopinit.c: Likewise.
12703 * genoutput.c: Likewise.
12704 * genpreds.c: Likewise.
12705 * genrecog.c: Likewise.
12706 * gimple-fold.c: Likewise.
12707 * gimple-iterator.c: Likewise.
12708 * gimple-ssa-isolate-paths.c: Likewise.
12709 * gimple-ssa-strength-reduction.c: Likewise.
12710 * graph.c: Likewise.
12711 * graphite-blocking.c: Likewise.
12712 * graphite.c: Likewise.
12713 * graphite-dependences.c: Likewise.
12714 * graphite-interchange.c: Likewise.
12715 * graphite-isl-ast-to-gimple.c: Likewise.
12716 * graphite-optimize-isl.c: Likewise.
12717 * graphite-poly.c: Likewise.
12718 * graphite-scop-detection.c: Likewise.
12719 * graphite-sese-to-poly.c: Likewise.
12720 * haifa-sched.c: Likewise.
12721 * ifcvt.c: Likewise.
12722 * internal-fn.c: Likewise.
12723 * ipa-cp.c: Likewise.
12724 * ipa-profile.c: Likewise.
12725 * ipa-split.c: Likewise.
12726 * ipa-utils.c: Likewise.
12727 * ira-build.c: Likewise.
12728 * ira-color.c: Likewise.
12729 * ira-conflicts.c: Likewise.
12730 * ira-costs.c: Likewise.
12731 * ira-emit.c: Likewise.
12732 * ira-lives.c: Likewise.
12733 * jump.c: Likewise.
12734 * loop-doloop.c: Likewise.
12735 * loop-init.c: Likewise.
12736 * loop-invariant.c: Likewise.
12737 * loop-unroll.c: Likewise.
12738 * lower-subreg.c: Likewise.
12739 * lra-assigns.c: Likewise.
12740 * lra.c: Likewise.
12741 * lra-coalesce.c: Likewise.
12742 * lra-constraints.c: Likewise.
12743 * lra-lives.c: Likewise.
12744 * lto-cgraph.c: Likewise.
12745 * lto-streamer-in.c: Likewise.
12746 * mode-switching.c: Likewise.
12747 * modulo-sched.c: Likewise.
12748 * omp-low.c: Likewise.
12749 * optabs.c: Likewise.
12750 * passes.c: Likewise.
12751 * postreload.c: Likewise.
12752 * postreload-gcse.c: Likewise.
12753 * profile.c: Likewise.
12754 * recog.c: Likewise.
12755 * regstat.c: Likewise.
12756 * reload1.c: Likewise.
12757 * reorg.c: Likewise.
12758 * rtlanal.c: Likewise.
12759 * sched-ebb.c: Likewise.
12760 * sel-sched-ir.c: Likewise.
12761 * sese.c: Likewise.
12762 * shrink-wrap.c: Likewise.
12763 * simplify-rtx.c: Likewise.
12764 * stmt.c: Likewise.
12765 * store-motion.c: Likewise.
12766 * tracer.c: Likewise.
12767 * trans-mem.c: Likewise.
12768 * tree-call-cdce.c: Likewise.
12769 * tree-cfg.c: Likewise.
12770 * tree-cfgcleanup.c: Likewise.
12771 * tree-chkp.c: Likewise.
12772 * tree-complex.c: Likewise.
12773 * tree-eh.c: Likewise.
12774 * tree-if-conv.c: Likewise.
12775 * tree-loop-distribution.c: Likewise.
12776 * tree-outof-ssa.c: Likewise.
12777 * tree-parloops.c: Likewise.
12778 * tree-predcom.c: Likewise.
12779 * tree-pretty-print.c: Likewise.
12780 * tree-profile.c: Likewise.
12781 * tree-sra.c: Likewise.
12782 * tree-ssa.c: Likewise.
12783 * tree-ssa-coalesce.c: Likewise.
12784 * tree-ssa-dce.c: Likewise.
12785 * tree-ssa-dom.c: Likewise.
12786 * tree-ssa-forwprop.c: Likewise.
12787 * tree-ssa-ifcombine.c: Likewise.
12788 * tree-ssa-loop-ch.c: Likewise.
12789 * tree-ssa-loop-im.c: Likewise.
12790 * tree-ssa-loop-ivcanon.c: Likewise.
12791 * tree-ssa-loop-ivopts.c: Likewise.
12792 * tree-ssa-loop-manip.c: Likewise.
12793 * tree-ssa-loop-prefetch.c: Likewise.
12794 * tree-ssa-loop-unswitch.c: Likewise.
12795 * tree-ssa-math-opts.c: Likewise.
12796 * tree-ssa-phiopt.c: Likewise.
12797 * tree-ssa-pre.c: Likewise.
12798 * tree-ssa-reassoc.c: Likewise.
12799 * tree-ssa-sink.c: Likewise.
12800 * tree-ssa-tail-merge.c: Likewise.
12801 * tree-ssa-threadedge.c: Likewise.
12802 * tree-ssa-threadupdate.c: Likewise.
12803 * tree-switch-conversion.c: Likewise.
12804 * tree-tailcall.c: Likewise.
12805 * tree-vect-data-refs.c: Likewise.
12806 * tree-vect-loop.c: Likewise.
12807 * tree-vect-loop-manip.c: Likewise.
12808 * tree-vectorizer.c: Likewise.
12809 * tree-vrp.c: Likewise.
12810 * ubsan.c: Likewise.
12811 * value-prof.c: Likewise.
12812 * varasm.c: Likewise.
12813 * var-tracking.c: Likewise.
12814 * config/aarch64/aarch64-builtins.c: Likewise.
12815 * config/aarch64/aarch64.c: Likewise.
12816 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12817 * config/alpha/alpha.c: Likewise.
12818 * config/arc/arc.c: Likewise.
12819 * config/arm/arm.c: Likewise.
12820 * config/avr/avr.c: Likewise.
12821 * config/bfin/bfin.c: Likewise.
12822 * config/c6x/c6x.c: Likewise.
12823 * config/cr16/cr16.c: Likewise.
12824 * config/cris/cris.c: Likewise.
12825 * config/darwin.c: Likewise.
12826 * config/darwin-c.c: Likewise.
12827 * config/epiphany/epiphany.c: Likewise.
12828 * config/epiphany/mode-switch-use.c: Likewise.
12829 * config/epiphany/resolve-sw-modes.c: Likewise.
12830 * config/fr30/fr30.c: Likewise.
12831 * config/frv/frv.c: Likewise.
12832 * config/ft32/ft32.c: Likewise.
12833 * config/h8300/h8300.c: Likewise.
12834 * config/i386/i386.c: Likewise.
12835 * config/i386/winnt.c: Likewise.
12836 * config/ia64/ia64.c: Likewise.
12837 * config/iq2000/iq2000.c: Likewise.
12838 * config/lm32/lm32.c: Likewise.
12839 * config/m32c/m32c.c: Likewise.
12840 * config/m32r/m32r.c: Likewise.
12841 * config/m68k/m68k.c: Likewise.
12842 * config/mcore/mcore.c: Likewise.
12843 * config/mep/mep.c: Likewise.
12844 * config/microblaze/microblaze.c: Likewise.
12845 * config/mips/mips.c: Likewise.
12846 * config/mmix/mmix.c: Likewise.
12847 * config/mn10300/mn10300.c: Likewise.
12848 * config/moxie/moxie.c: Likewise.
12849 * config/msp430/msp430.c: Likewise.
12850 * config/nds32/nds32.c: Likewise.
12851 * config/nds32/nds32-cost.c: Likewise.
12852 * config/nds32/nds32-fp-as-gp.c: Likewise.
12853 * config/nds32/nds32-intrinsic.c: Likewise.
12854 * config/nds32/nds32-isr.c: Likewise.
12855 * config/nds32/nds32-md-auxiliary.c: Likewise.
12856 * config/nds32/nds32-memory-manipulation.c: Likewise.
12857 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12858 * config/nds32/nds32-predicates.c: Likewise.
12859 * config/nios2/nios2.c: Likewise.
12860 * config/nvptx/nvptx.c: Likewise.
12861 * config/pa/pa.c: Likewise.
12862 * config/pdp11/pdp11.c: Likewise.
12863 * config/rl78/rl78.c: Likewise.
12864 * config/rs6000/rs6000.c: Likewise.
12865 * config/rx/rx.c: Likewise.
12866 * config/s390/s390.c: Likewise.
12867 * config/sh/sh.c: Likewise.
12868 * config/sh/sh-mem.cc: Likewise.
12869 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12870 * config/sh/sh_treg_combine.cc: Likewise.
12871 * config/sparc/sparc.c: Likewise.
12872 * config/spu/spu.c: Likewise.
12873 * config/stormy16/stormy16.c: Likewise.
12874 * config/tilegx/tilegx.c: Likewise.
12875 * config/tilepro/tilepro.c: Likewise.
12876 * config/v850/v850.c: Likewise.
12877 * config/vax/vax.c: Likewise.
12878 * config/visium/visium.c: Likewise.
12879 * config/xtensa/xtensa.c: Likewise.
12880
12881 2015-07-10 Richard Biener <rguenther@suse.de>
12882
12883 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
12884 (decision_tree::gen_gimple): Likewise.
12885 (decision_tree::gen_generic): Likewise.
12886
12887 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12888
12889 PR target/66813
12890 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
12891 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
12892
12893 2015-07-10 Jakub Jelinek <jakub@redhat.com>
12894
12895 PR middle-end/66820
12896 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
12897 or ORT_TASK contexts.
12898 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
12899 is non-zero.
12900
12901 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12902
12903 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
12904 above function.
12905
12906 2015-07-10 Tom de Vries <tom@codesourcery.com>
12907
12908 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
12909 insert nit + 1 bound.
12910
12911 2015-07-10 Richard Biener <rguenther@suse.de>
12912
12913 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
12914 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
12915 (if_convertible_loop_p_1): For this always compute bb predicates.
12916 (if_convertible_loop_p): And free them.
12917
12918 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12919
12920 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
12921 in dump message.
12922
12923 2015-07-10 Richard Biener <rguenther@suse.de>
12924
12925 PR tree-optimization/66823
12926 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
12927 inverted predicate.
12928
12929 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
12930
12931 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
12932 to handle mips[32|64]r3 and mips[32|64]r5.
12933
12934 2015-07-09 Jakub Jelinek <jakub@redhat.com>
12935
12936 PR middle-end/66633
12937 * tree-nested.c (get_static_chain): Or in a flag into
12938 info->static_chain_added.
12939 (get_frame_field, get_nonlocal_debug_decl): Likewise.
12940 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
12941 2015-07-01 changes.
12942 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
12943 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
12944 add it to clauses.
12945
12946 PR tree-optimization/66718
12947 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
12948 field.
12949 (vect_simd_lane_linear): New function.
12950 (vectorizable_simd_clone_call): Support using linear arguments for
12951 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
12952
12953 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
12954
12955 PR target/66821
12956 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
12957
12958 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12959
12960 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
12961 Use machine mode, not enum machine_mode in the prototype.
12962
12963 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
12964 classify 128-bit floating point support.
12965 (FLOAT128_IBM_P): Likewise.
12966 (FLOAT128_VECTOR_P): Likewise.
12967 (FLOAT128_2REG_P): Likewise.
12968 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
12969 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
12970 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
12971 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
12972
12973 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
12974 tests against TFmode/TDmode, since those modes do not use VSX
12975 addresses.
12976 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
12977 support.
12978 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
12979 tests against TFmode, etc.
12980 (invalid_e500_subreg): Add tests against IFmode/KFmode.
12981 (reg_offset_addressing_ok_p): Likewise.
12982 (rs6000_legitimate_offset_address_p): Likewise.
12983 (rs6000_legitimize_address): Likewise.
12984 (rs6000_legitimize_reload_address): Likewise.
12985 (rs6000_legitimate_address_p): Clean up tests against TFmode and
12986 TDmode to use the new helper macros, which will include IFmode and
12987 KFmode.
12988 (rs6000_emit_move): Likewise.
12989 (rs6000_darwin64_record_arg_recurse): Likewise.
12990 (print_operand): Likewise.
12991 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
12992 that uses a single vector register as a vector and not as a
12993 floating point register in terms of the calling sequence.
12994 (rs6000_discover_homogeneous_aggregate): Likewise.
12995 (rs6000_return_in_memory): Likewise.
12996 (init_cumulative_args): Likewise.
12997 (rs6000_function_arg_boundary): Likewise.
12998 (rs6000_function_arg_advance_1): Likewise.
12999 (rs6000_function_arg): Likewise.
13000 (rs6000_pass_by_reference): Likewise.
13001 (rs6000_gimplify_va_arg): Likewise.
13002 (rs6000_secondary_reload_memory): Use machine_mode not enum
13003 machine mode.
13004 (rs6000_split_multireg_move): Use new helper macros.
13005 (spe_func_has_64bit_regs_p): Likewise.
13006 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13007 (output_toc): Use new helper macros.
13008 (rs6000_register_move_cost): Likewise.
13009 (rs6000_function_value): Add IEEE 128-bit floating point calling
13010 sequence support.
13011 (rs6000_libcall_value): Likewise.
13012 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13013 floating point support.
13014 (rs6000_vector_mode_supported_p): Likewise.
13015
13016 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
13017
13018 PR rtl-optimization/66782
13019 * lra-int.h (struct lra_insn_recog_data): Add comment about
13020 clobbered hard regs for arg_hard_regs.
13021 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13022 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13023 Add condition for processing used hard regs.
13024 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13025 Process clobbered hard regs.
13026
13027 2015-07-09 Michael Matz <matz@suse.de>
13028
13029 * genmatch.c (fprintf_indent): New function.
13030 (operand::gen_transform): Add indent parameter.
13031 (expr::gen_transform, c_expr::gen_transform,
13032 capture::gen_transform): Ditto and use fprintf_indent.
13033 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13034 (dt_operand::gen, dt_operand::gen_predicate,
13035 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13036 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13037 (decision_tree::gen_gimple): Adjust calls and indent generated
13038 code.
13039 (decision_tree::gen_generic): Ditto.
13040 (write_predicate): Ditto.
13041
13042 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13043
13044 PR target/66814
13045 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13046 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13047 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13048 {GENERAL,SSE,MMX}_REG_P where appropriate.
13049
13050 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13051
13052 * lto-streamer.h: Don't include target.h and alloc-pool.h.
13053 * builtins.c: Adjust includes.
13054 * gimple.c: Likewise.
13055 * ipa-icf.c: Likewise.
13056 * lto-opts.c: Likewise.
13057 * ipa-reference.c: Likewise.
13058 * lto-section-out.c: Likewise.
13059 * lto-streamer-in.c: Likewise.
13060 * lto-streamer-out.c: Likewise.
13061 * opts-global.c: Likewise.
13062 * symtab.c: Likewise.
13063 * tree-chkp.c: Likewise.
13064 * tree-ssa-live.c: Likewise.
13065 * tree-streamer-in.c: Likewise.
13066 * tree-streamer-out.c: Likewise.
13067 * config/darwin.c: Likewise.
13068 * config/i386/winnt.c: Likewise.
13069
13070 2015-07-09 Richard Biener <rguenther@suse.de>
13071
13072 * genmatch.c (struct expr): Add force_single_use flag.
13073 (expr::expr): Add copy constructor.
13074 (capture_info::walk_match): Gather force_single_use captures.
13075 (expr::gen_transform): Use possibly NULLified sequence.
13076 (dt_simplify::gen): Apply single-use restrictions by NULLifying
13077 seq if any constrained expr is not single-use.
13078 (parser::parse_expr): Refactor to allow multiple flags. Handle
13079 's' flag to force an expression have a single-use if the pattern
13080 simplifies to more than one statement.
13081 * match.pd: Convert most single_use conditionals to :s flags.
13082
13083 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13084
13085 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13086 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13087 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13088
13089 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13090
13091 * flags.h: Don't include flag-types.h or options.h.
13092 * opts-common.c: Adjust includes.
13093 * opts-global.c: Likewise.
13094 * common/config/epiphany/epiphany-common.c: Likewise.
13095
13096 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13097
13098 PR target/66818
13099 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13100 for IA MCU.
13101
13102 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13103
13104 PR target/66817
13105 * config/i386/i386.c (ix86_return_in_memory): Return true
13106 if int_size_in_bytes returns negative for IA MCU.
13107
13108 2015-07-09 Marek Polacek <polacek@redhat.com>
13109
13110 PR tree-optimization/66718
13111 * Makefile.in (OBJS): Add gimple-laddress.o.
13112 * passes.def: Schedule pass_laddress.
13113 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13114 * tree-pass.h (make_pass_laddress): Declare.
13115 * gimple-laddress.c: New file.
13116
13117 2015-07-09 Richard Biener <rguenther@suse.de>
13118
13119 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13120
13121 2015-07-09 Richard Biener <rguenther@suse.de>
13122
13123 PR tree-optimization/66807
13124 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13125
13126 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
13127
13128 * function.c (stack_protect_epilogue): Use if rather than switch for
13129 check targetm.have_stack_protect_test.
13130
13131 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13132
13133 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13134 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13135 * config/arc/arc.h: Likewise.
13136 * config/arm/arm.h: Likewise.
13137 * config/bfin/bfin.h: Likewise.
13138 * config/epiphany/epiphany.h: Likewise.
13139 * config/frv/frv.h: Likewise.
13140 * config/ia64/ia64.h: Likewise.
13141 * config/iq2000/iq2000.h: Likewise.
13142 * config/lm32/lm32.h: Likewise.
13143 * config/m32r/m32r.h: Likewise.
13144 * config/mcore/mcore.h: Likewise.
13145 * config/mep/mep.h: Likewise.
13146 * config/microblaze/microblaze.h: Likewise.
13147 * config/mips/mips.h: Likewise.
13148 * config/mmix/mmix.h: Likewise.
13149 * config/mn10300/mn10300.h: Likewise.
13150 * config/nds32/nds32.h: Likewise.
13151 * config/nios2/nios2.h: Likewise.
13152 * config/pa/pa.h: Likewise.
13153 * config/rl78/rl78.h: Likewise.
13154 * config/sh/sh.h: Likewise.
13155 * config/sparc/sparc.h: Likewise.
13156 * config/stormy16/stormy16.h: Likewise.
13157 * config/tilegx/tilegx.h: Likewise.
13158 * config/tilepro/tilepro.h: Likewise.
13159 * config/v850/v850.h: Likewise.
13160 * config/xtensa/xtensa.h: Likewise.
13161 * doc/tm.texi: Regenerate.
13162 * doc/tm.texi.in: Adjust.
13163 * combine.c (simplify_set): Likewise.
13164 (simplify_comparison): Likewise.
13165 * expr.c (store_constructor): Likewise.
13166 * internal-fn.c (expand_arith_overflow): Likewise.
13167 * reload.c (push_reload): Likewise.
13168 (find_reloads): Likewise.
13169 (find_reloads_subreg_address): Likewise.
13170 * reload1.c (eliminate_regs_1): Likewise.
13171 * rtlanal.c (nonzero_bits1): Likewise.
13172 (num_sign_bit_copies1): Likewise.
13173 * simplify-rtx.c (simplify_truncation): Likewise.
13174
13175 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13176
13177 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13178 of AUTO_INC_DEC with the preprocessor.
13179 * combine.c (combine_instructions): Likewise.
13180 (can_combine_p): Likewise.
13181 (try_combine): Likewise.
13182 * emit-rtl.c (try_split): Likewise.
13183 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13184 * lower-subreg.c (resolve_simple_move): Likewise.
13185 * lra.c (update_inc_notes): Likewise.
13186 * recog.c (asm_operand_ok): Likewise.
13187 (constrain_operands): Likewise.
13188 * regrename.c (scan_rtx_address): Likewise.
13189 * reload.c (update_auto_inc_notes): Likewise.
13190 (reg_inc_found_and_valid_p): Likewise.
13191 * reload1.c (reload): Likewise.
13192 (emit_input_reload_insns): Likewise.
13193 (delete_output_reload): Likewise.
13194 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13195 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13196
13197 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13198
13199 * rtl.h: Always define AUTO_INC_DEC.
13200 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13201 * combine.c (combine_instructions): Likewise.
13202 (can_combine_p): Likewise.
13203 (try_combine): Likewise.
13204 * emit-rtl.c (try_split): Likewise.
13205 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13206 * lower-subreg.c (resolve_simple_move): Likewise.
13207 * lra.c (update_inc_notes): Likewise.
13208 * recog.c (asm_operand_ok): Likewise.
13209 (constrain_operands): Likewise.
13210 * regrename.c (scan_rtx_address): Likewise.
13211 * reload.c (update_auto_inc_notes): Likewise.
13212 (find_equiv_reg): Likewise.
13213 * reload1.c (reload): Likewise.
13214 (reload_as_needed): Likewise.
13215 (choose_reload_regs): Likewise.
13216 (emit_input_reload_insns): Likewise.
13217 (delete_output_reload): Likewise.
13218 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13219 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13220
13221 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13222
13223 * combine.c (can_combine_def_p): Don't check the value of
13224 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13225 (combinable_i3pat): Likewise.
13226 (mark_used_regs_combine): Likewise.
13227 * regrename.c (rename_chains): Likewise.
13228 * reload.c (find_reloads_address): Likewise.
13229 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13230
13231 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13232
13233 * combine.c (update_rsp_from_reg_equal): Don't check if
13234 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13235 (reg_nonzero_bits_for_combine): Likewise.
13236 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13237 1.
13238 * config/frv/frv.h: Likewise.
13239 * config/lm32/lm32.h: Likewise.
13240 * config/mep/mep.h: Likewise.
13241 * config/mips/mips.h: Likewise.
13242 * config/rs6000/rs6000.h: Likewise.
13243 * config/sh/sh.h: Likewise.
13244 * config/tilegx/tilegx.h (enum reg_class): Likewise.
13245 * config/tilepro/tilepro.h: Likewise.
13246 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13247 * doc/tm.texi: Regenerate.
13248 * doc/tm.texi.in: Adjust.
13249 * rtlanal.c (nonzero_bits1): Likewise.
13250
13251 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13252
13253 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13254 with the preprocessor.
13255 (combine_instructions): Likewise.
13256 (try_combine): Likewise.
13257 (subst): Likewise.
13258 (distribute_notes): Likewise.
13259
13260 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13261
13262 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13263 defined.
13264 (simplify_set): Likewise.
13265 * cse.c (cse_insn): Likewise.
13266 * fold-const.c (fold_single_bit_test): Likewise.
13267 (fold_unary_loc): Likewise.
13268 * postreload.c (reload_cse_simplify_set): Likewise.
13269 (reload_cse_simplify_operands): Likewise.
13270
13271 2015-07-08 Jiong Wang <jiong.wang@arm.com>
13272
13273 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13274 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13275
13276 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13277
13278 PR target/66746
13279 * config/i386/x86intrin.h: Include <adxintrin.h> even if
13280 __iamcu__ is defined.
13281
13282 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13283
13284 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13285
13286 2015-07-08 Iain Sandoe <iain@codesourcery.com>
13287
13288 PR target/66523
13289 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13290 names from preservation.
13291
13292 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13293
13294 PR target/66806
13295 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13296 change for IAMCU.
13297 (function_arg_advance_32): Don't pass vectors in registers for
13298 IAMCU.
13299 (function_arg_32): Likewise.
13300 (ix86_return_in_memory): Don't return vectors in registers for
13301 IAMCU.
13302
13303 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
13304
13305 PR middle-end/66334
13306 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13307 hard regno live at the start of BB with incoming abnormal edges.
13308 * lra-lives.c (process_bb_lives): Ditto.
13309
13310 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13311
13312 PR libgomp/65099
13313 * config/nvptx/mkoffload.c (main): Create an offload image only in
13314 64-bit configurations.
13315
13316 2015-07-08 Martin Liska <mliska@suse.cz>
13317
13318 PR bootstrap/66744
13319 * tree-sra.c (create_access_1): Call ctor without brackets.
13320 (create_artificial_child_access): Likewise.
13321
13322 2015-07-08 Richard Biener <rguenther@suse.de>
13323
13324 PR tree-optimization/66793
13325 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13326 Properly split the block after stmts ending it.
13327
13328 2015-07-08 Richard Biener <rguenther@suse.de>
13329
13330 PR tree-optimization/66794
13331 * passes.c (execute_function_todo): Assert that post-dominators
13332 are not computed.
13333 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13334 Free post-dominators.
13335
13336 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13337
13338 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13339 with early exit.
13340
13341 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13342
13343 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13344 more than or equal 8 and less than 32 when optimizing for size.
13345
13346 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13347
13348 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13349 COSTS_N_INSNS (1) and increment it appropriately throughout the
13350 function.
13351
13352 2015-07-08 Richard Biener <rguenther@suse.de>
13353
13354 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13355
13356 2015-07-08 Alan Modra <amodra@gmail.com>
13357
13358 * target.def (rtx_costs): Remove "code" param, add "mode".
13359 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13360 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
13361 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13362 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
13363 call. Track mode when given in rtx.
13364 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
13365 (default_address_cost): Pass Pmode to rtx_cost.
13366 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13367 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13368 with NULL set.
13369 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
13370 (notreg_cost): Add mode param. Use it.
13371 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
13372 mode param and pass to set_src_cost. Update all calls.
13373 (hash_scan_set): Formatting.
13374 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13375 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13376 * hooks.h: Ditto.
13377 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13378 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13379 emit_store_flag): Update set_src_cost and rtx_cost calls.
13380 * auto-inc-dec.c (attempt_change): Likewise.
13381 * calls.c (precompute_register_parameters): Likewise.
13382 * combine.c (expand_compound_operation, make_extraction,
13383 force_to_mode, distribute_and_simplify_rtx): Likewise.
13384 * dojump.c (prefer_and_bit_test): Likewise.
13385 * dse.c (find_shift_sequence): Likewise.
13386 * expr.c (compress_float_constant): Likewise.
13387 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13388 * ifcvt.c (noce_try_sign_mask): Likewise.
13389 * loop-doloop.c (doloop_optimize): Likewise.
13390 * loop-invariant.c (create_new_invariant): Likewise.
13391 * lower-subreg.c (shift_cost, compute_costs): Likewise.
13392 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13393 lshift_cheap_p): Likewise.
13394 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13395 try_replace_in_use, reload_cse_move2add): Likewise.
13396 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13397 Likewise.
13398 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13399 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13400 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13401 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13402 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13403 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
13404 to rtx_cost calls.
13405 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13406 * config/arc/arc.c (arc_rtx_costs): Likewise.
13407 * config/arm/arm.c (arm_rtx_costs): Likewise.
13408 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13409 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13410 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13411 * config/cris/cris.c (cris_rtx_costs): Likewise.
13412 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13413 * config/frv/frv.c (frv_rtx_costs): Likewise.
13414 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13415 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13416 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13417 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13418 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13419 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13420 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13421 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13422 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13423 * config/mep/mep.c (mep_rtx_cost): Likewise.
13424 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13425 * config/mips/mips.c (mips_rtx_costs): Likewise.
13426 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13427 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13428 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13429 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13430 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13431 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13432 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13433 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13434 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13435 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13436 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13437 * config/s390/s390.c (s390_rtx_costs): Likewise.
13438 * config/sh/sh.c (sh_rtx_costs): Likewise.
13439 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13440 * config/spu/spu.c (spu_rtx_costs): Likewise.
13441 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13442 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13443 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13444 * config/v850/v850.c (v850_rtx_costs): Likewise.
13445 * config/vax/vax.c (vax_rtx_costs): Likewise.
13446 * config/visium/visium.c (visium_rtx_costs): Likewise.
13447 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13448 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13449 "code" param, and pass as outer_code to first rtx_cost call. Pass
13450 mode to rtx_cost calls.
13451 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13452 calls.
13453 (aarch64_rtx_costs_wrapper): Update.
13454 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13455 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13456 rtx_cost calls.
13457 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13458 and rtx_cost calls.
13459 (avr_operand_rtx_cost): Similarly.
13460 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13461 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13462 * config/mips/mips.c (mips_stack_address_p): Comment typo.
13463 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13464 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13465 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13466 rtx_cost.
13467 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13468 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13469 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13470 * doc/tm.texi: Regenerate.
13471
13472 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
13473
13474 * tree-core.h: Include symtab.h.
13475 * rtl.h: Include hard-reg-set.h but not flags.h.
13476 (HARD_CONST): Remove condition compilation involving HARD_CONST since
13477 hard-reg-set.h is always included.
13478 * regs.h: Don't include hard-reg-set.h or rtl.h.
13479 * cfg.h: Include dominance.h.
13480 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13481 * backend.h: New. Aggregate commonly used backend header files.
13482 * gimple-ssa.h: Don't include tree-hasher.h.
13483 * ssa.h: New. Aggregate commonly used SSA header files.
13484 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13485 * sel-sched-ir.h: Flatten includes.
13486 * lra-int.h: Flatten completely.
13487 * sel-sched-dump.h: Flatten includes.
13488 * ira-int.h: Flatten includes.
13489 * gimple-streamer.h: Remove all includes.
13490 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13491 * resource.h: Flatten hard-reg-set.h and df.h.
13492 * sched-int.h: Flatten insn-arrt.h and df.h.
13493 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13494 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13495 * genattrtab.c (write_header): Adjust generated includes.
13496 * genautomata.c (main): Likewise.
13497 * genconditions.c (write-header): Likewise.
13498 * genemit.c (main): Likewise.
13499 * gengtype.c (open_base_files): Likewise.
13500 * genopinit.c (main): Likewise.
13501 * genoutput.c (output_prologue): Likewise.
13502 * genpeep.c (main): Likewise.
13503 * genpreds.c (write_insn_preds_c): Likewise.
13504 * genrecog.c (write_header): Likewise.
13505 * alias.c: Adjust includes.
13506 * asan.c: Likewise.
13507 * attribs.c: Likewise.
13508 * auto-inc-dec.c: Likewise.
13509 * auto-profile.c: Likewise.
13510 * bb-reorder.c: Likewise.
13511 * bt-load.c: Likewise.
13512 * builtins.c: Likewise.
13513 * caller-save.c: Likewise.
13514 * calls.c: Likewise.
13515 * ccmp.c: Likewise.
13516 * cfg.c: Likewise.
13517 * cfganal.c: Likewise.
13518 * cfgbuild.c: Likewise.
13519 * cfgcleanup.c: Likewise.
13520 * cfgexpand.c: Likewise.
13521 * cfghooks.c: Likewise.
13522 * cfgloop.c: Likewise.
13523 * cfgloopanal.c: Likewise.
13524 * cfgloopmanip.c: Likewise.
13525 * cfgrtl.c: Likewise.
13526 * cgraph.c: Likewise.
13527 * cgraphbuild.c: Likewise.
13528 * cgraphclones.c: Likewise.
13529 * cgraphunit.c: Likewise.
13530 * cilk-common.c: Likewise.
13531 * combine-stack-adj.c: Likewise.
13532 * combine.c: Likewise.
13533 * compare-elim.c: Likewise.
13534 * convert.c: Likewise.
13535 * coverage.c: Likewise.
13536 * cppbuiltin.c: Likewise.
13537 * cprop.c: Likewise.
13538 * cse.c: Likewise.
13539 * cselib.c: Likewise.
13540 * data-streamer-in.c: Likewise.
13541 * data-streamer-out.c: Likewise.
13542 * data-streamer.c: Likewise.
13543 * dbxout.c: Likewise.
13544 * dce.c: Likewise.
13545 * ddg.c: Likewise.
13546 * debug.c: Likewise.
13547 * df-core.c: Likewise.
13548 * df-problems.c: Likewise.
13549 * df-scan.c: Likewise.
13550 * dfp.c: Likewise.
13551 * dojump.c: Likewise.
13552 * dominance.c: Likewise.
13553 * domwalk.c: Likewise.
13554 * double-int.c: Likewise.
13555 * dse.c: Likewise.
13556 * dumpfile.c: Likewise.
13557 * dwarf2asm.c: Likewise.
13558 * dwarf2cfi.c: Likewise.
13559 * dwarf2out.c: Likewise.
13560 * emit-rtl.c: Likewise.
13561 * et-forest.c: Likewise.
13562 * except.c: Likewise.
13563 * explow.c: Likewise.
13564 * expmed.c: Likewise.
13565 * expr.c: Likewise.
13566 * final.c: Likewise.
13567 * fixed-value.c: Likewise.
13568 * fold-const.c: Likewise.
13569 * function.c: Likewise.
13570 * fwprop.c: Likewise.
13571 * gcc-plugin.h: Likewise.
13572 * gcse-common.c: Likewise.
13573 * gcse.c: Likewise.
13574 * generic-match-head.c: Likewise.
13575 * ggc-page.c: Likewise.
13576 * gimple-builder.c: Likewise.
13577 * gimple-expr.c: Likewise.
13578 * gimple-fold.c: Likewise.
13579 * gimple-iterator.c: Likewise.
13580 * gimple-low.c: Likewise.
13581 * gimple-match-head.c: Likewise.
13582 * gimple-pretty-print.c: Likewise.
13583 * gimple-ssa-isolate-paths.c: Likewise.
13584 * gimple-ssa-strength-reduction.c: Likewise.
13585 * gimple-streamer-in.c: Likewise.
13586 * gimple-streamer-out.c: Likewise.
13587 * gimple-walk.c: Likewise.
13588 * gimple.c: Likewise.
13589 * gimplify-me.c: Likewise.
13590 * gimplify.c: Likewise.
13591 * godump.c: Likewise.
13592 * graph.c: Likewise.
13593 * graphite-blocking.c: Likewise.
13594 * graphite-dependences.c: Likewise.
13595 * graphite-interchange.c: Likewise.
13596 * graphite-isl-ast-to-gimple.c: Likewise.
13597 * graphite-optimize-isl.c: Likewise.
13598 * graphite-poly.c: Likewise.
13599 * graphite-scop-detection.c: Likewise.
13600 * graphite-sese-to-poly.c: Likewise.
13601 * graphite.c: Likewise.
13602 * haifa-sched.c: Likewise.
13603 * hw-doloop.c: Likewise.
13604 * ifcvt.c: Likewise.
13605 * init-regs.c: Likewise.
13606 * internal-fn.c: Likewise.
13607 * ipa-chkp.c: Likewise.
13608 * ipa-comdats.c: Likewise.
13609 * ipa-cp.c: Likewise.
13610 * ipa-devirt.c: Likewise.
13611 * ipa-icf-gimple.c: Likewise.
13612 * ipa-icf.c: Likewise.
13613 * ipa-inline-analysis.c: Likewise.
13614 * ipa-inline-transform.c: Likewise.
13615 * ipa-inline.c: Likewise.
13616 * ipa-polymorphic-call.c: Likewise.
13617 * ipa-profile.c: Likewise.
13618 * ipa-prop.c: Likewise.
13619 * ipa-pure-const.c: Likewise.
13620 * ipa-ref.c: Likewise.
13621 * ipa-reference.c: Likewise.
13622 * ipa-split.c: Likewise.
13623 * ipa-utils.c: Likewise.
13624 * ipa-visibility.c: Likewise.
13625 * ipa.c: Likewise.
13626 * ira-build.c: Likewise.
13627 * ira-color.c: Likewise.
13628 * ira-conflicts.c: Likewise.
13629 * ira-costs.c: Likewise.
13630 * ira-emit.c: Likewise.
13631 * ira-lives.c: Likewise.
13632 * ira.c: Likewise.
13633 * jump.c: Likewise.
13634 * langhooks.c: Likewise.
13635 * lcm.c: Likewise.
13636 * loop-doloop.c: Likewise.
13637 * loop-init.c: Likewise.
13638 * loop-invariant.c: Likewise.
13639 * loop-iv.c: Likewise.
13640 * loop-unroll.c: Likewise.
13641 * lower-subreg.c: Likewise.
13642 * lra-assigns.c: Likewise.
13643 * lra-coalesce.c: Likewise.
13644 * lra-constraints.c: Likewise.
13645 * lra-eliminations.c: Likewise.
13646 * lra-lives.c: Likewise.
13647 * lra-remat.c: Likewise.
13648 * lra-spills.c: Likewise.
13649 * lra.c: Likewise.
13650 * lto-cgraph.c: Likewise.
13651 * lto-compress.c: Likewise.
13652 * lto-opts.c: Likewise.
13653 * lto-section-in.c: Likewise.
13654 * lto-section-out.c: Likewise.
13655 * lto-streamer-in.c: Likewise.
13656 * lto-streamer-out.c: Likewise.
13657 * lto-streamer.c: Likewise.
13658 * mcf.c: Likewise.
13659 * mode-switching.c: Likewise.
13660 * modulo-sched.c: Likewise.
13661 * omega.c: Likewise.
13662 * omp-low.c: Likewise.
13663 * optabs.c: Likewise.
13664 * opts-global.c: Likewise.
13665 * passes.c: Likewise.
13666 * plugin.c: Likewise.
13667 * postreload-gcse.c: Likewise.
13668 * postreload.c: Likewise.
13669 * predict.c: Likewise.
13670 * print-rtl.c: Likewise.
13671 * print-tree.c: Likewise.
13672 * profile.c: Likewise.
13673 * real.c: Likewise.
13674 * realmpfr.c: Likewise.
13675 * recog.c: Likewise.
13676 * ree.c: Likewise.
13677 * reg-stack.c: Likewise.
13678 * regcprop.c: Likewise.
13679 * reginfo.c: Likewise.
13680 * regrename.c: Likewise.
13681 * regstat.c: Likewise.
13682 * reload.c: Likewise.
13683 * reload1.c: Likewise.
13684 * reorg.c: Likewise.
13685 * resource.c: Likewise.
13686 * rtl-chkp.c: Likewise.
13687 * rtlanal.c: Likewise.
13688 * rtlhooks.c: Likewise.
13689 * sanopt.c: Likewise.
13690 * sched-deps.c: Likewise.
13691 * sched-ebb.c: Likewise.
13692 * sched-rgn.c: Likewise.
13693 * sched-vis.c: Likewise.
13694 * sdbout.c: Likewise.
13695 * sel-sched-dump.c: Likewise.
13696 * sel-sched-ir.c: Likewise.
13697 * sel-sched.c: Likewise.
13698 * sese.c: Likewise.
13699 * shrink-wrap.c: Likewise.
13700 * simplify-rtx.c: Likewise.
13701 * stack-ptr-mod.c: Likewise.
13702 * stmt.c: Likewise.
13703 * stor-layout.c: Likewise.
13704 * store-motion.c: Likewise.
13705 * stringpool.c: Likewise.
13706 * symtab.c: Likewise.
13707 * target-globals.c: Likewise.
13708 * targhooks.c: Likewise.
13709 * toplev.c: Likewise.
13710 * tracer.c: Likewise.
13711 * trans-mem.c: Likewise.
13712 * tree-affine.c: Likewise.
13713 * tree-browser.c: Likewise.
13714 * tree-call-cdce.c: Likewise.
13715 * tree-cfg.c: Likewise.
13716 * tree-cfgcleanup.c: Likewise.
13717 * tree-chkp-opt.c: Likewise.
13718 * tree-chkp.c: Likewise.
13719 * tree-chrec.c: Likewise.
13720 * tree-complex.c: Likewise.
13721 * tree-data-ref.c: Likewise.
13722 * tree-dfa.c: Likewise.
13723 * tree-diagnostic.c: Likewise.
13724 * tree-dump.c: Likewise.
13725 * tree-eh.c: Likewise.
13726 * tree-emutls.c: Likewise.
13727 * tree-if-conv.c: Likewise.
13728 * tree-inline.c: Likewise.
13729 * tree-into-ssa.c: Likewise.
13730 * tree-iterator.c: Likewise.
13731 * tree-loop-distribution.c: Likewise.
13732 * tree-nested.c: Likewise.
13733 * tree-nrv.c: Likewise.
13734 * tree-object-size.c: Likewise.
13735 * tree-outof-ssa.c: Likewise.
13736 * tree-parloops.c: Likewise.
13737 * tree-phinodes.c: Likewise.
13738 * tree-predcom.c: Likewise.
13739 * tree-pretty-print.c: Likewise.
13740 * tree-profile.c: Likewise.
13741 * tree-scalar-evolution.c: Likewise.
13742 * tree-sra.c: Likewise.
13743 * tree-ssa-address.c: Likewise.
13744 * tree-ssa-alias.c: Likewise.
13745 * tree-ssa-ccp.c: Likewise.
13746 * tree-ssa-coalesce.c: Likewise.
13747 * tree-ssa-copy.c: Likewise.
13748 * tree-ssa-copyrename.c: Likewise.
13749 * tree-ssa-dce.c: Likewise.
13750 * tree-ssa-dom.c: Likewise.
13751 * tree-ssa-dse.c: Likewise.
13752 * tree-ssa-forwprop.c: Likewise.
13753 * tree-ssa-ifcombine.c: Likewise.
13754 * tree-ssa-live.c: Likewise.
13755 * tree-ssa-loop-ch.c: Likewise.
13756 * tree-ssa-loop-im.c: Likewise.
13757 * tree-ssa-loop-ivcanon.c: Likewise.
13758 * tree-ssa-loop-ivopts.c: Likewise.
13759 * tree-ssa-loop-manip.c: Likewise.
13760 * tree-ssa-loop-niter.c: Likewise.
13761 * tree-ssa-loop-prefetch.c: Likewise.
13762 * tree-ssa-loop-unswitch.c: Likewise.
13763 * tree-ssa-loop.c: Likewise.
13764 * tree-ssa-math-opts.c: Likewise.
13765 * tree-ssa-operands.c: Likewise.
13766 * tree-ssa-phiopt.c: Likewise.
13767 * tree-ssa-phiprop.c: Likewise.
13768 * tree-ssa-pre.c: Likewise.
13769 * tree-ssa-propagate.c: Likewise.
13770 * tree-ssa-reassoc.c: Likewise.
13771 * tree-ssa-sccvn.c: Likewise.
13772 * tree-ssa-scopedtables.c: Likewise.
13773 * tree-ssa-sink.c: Likewise.
13774 * tree-ssa-strlen.c: Likewise.
13775 * tree-ssa-structalias.c: Likewise.
13776 * tree-ssa-tail-merge.c: Likewise.
13777 * tree-ssa-ter.c: Likewise.
13778 * tree-ssa-threadedge.c: Likewise.
13779 * tree-ssa-threadupdate.c: Likewise.
13780 * tree-ssa-uncprop.c: Likewise.
13781 * tree-ssa-uninit.c: Likewise.
13782 * tree-ssa.c: Likewise.
13783 * tree-ssanames.c: Likewise.
13784 * tree-stdarg.c: Likewise.
13785 * tree-streamer-in.c: Likewise.
13786 * tree-streamer-out.c: Likewise.
13787 * tree-streamer.c: Likewise.
13788 * tree-switch-conversion.c: Likewise.
13789 * tree-tailcall.c: Likewise.
13790 * tree-vect-data-refs.c: Likewise.
13791 * tree-vect-generic.c: Likewise.
13792 * tree-vect-loop-manip.c: Likewise.
13793 * tree-vect-loop.c: Likewise.
13794 * tree-vect-patterns.c: Likewise.
13795 * tree-vect-slp.c: Likewise.
13796 * tree-vect-stmts.c: Likewise.
13797 * tree-vectorizer.c: Likewise.
13798 * tree-vrp.c: Likewise.
13799 * tree.c: Likewise.
13800 * tsan.c: Likewise.
13801 * ubsan.c: Likewise.
13802 * valtrack.c: Likewise.
13803 * value-prof.c: Likewise.
13804 * var-tracking.c: Likewise.
13805 * varasm.c: Likewise.
13806 * varpool.c: Likewise.
13807 * vmsdbgout.c: Likewise.
13808 * vtable-verify.c: Likewise.
13809 * web.c: Likewise.
13810 * wide-int.cc: Likewise.
13811 * xcoffout.c: Likewise.
13812 * config/aarch64/aarch64-builtins.c: Likewise.
13813 * config/aarch64/aarch64.c: Likewise.
13814 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13815 * config/alpha/alpha.c: Likewise.
13816 * config/arc/arc.c: Likewise.
13817 * config/arm/aarch-common.c: Likewise.
13818 * config/arm/arm-builtins.c: Likewise.
13819 * config/arm/arm-c.c: Likewise.
13820 * config/arm/arm.c: Likewise.
13821 * config/avr/avr-c.c: Likewise.
13822 * config/avr/avr-log.c: Likewise.
13823 * config/avr/avr.c: Likewise.
13824 * config/bfin/bfin.c: Likewise.
13825 * config/c6x/c6x.c: Likewise.
13826 * config/cr16/cr16.c: Likewise.
13827 * config/cris/cris.c: Likewise.
13828 * config/darwin-c.c: Likewise.
13829 * config/darwin.c: Likewise.
13830 * config/epiphany/epiphany.c: Likewise.
13831 * config/epiphany/mode-switch-use.c: Likewise.
13832 * config/epiphany/resolve-sw-modes.c: Likewise.
13833 * config/fr30/fr30.c: Likewise.
13834 * config/frv/frv.c: Likewise.
13835 * config/ft32/ft32.c: Likewise.
13836 * config/h8300/h8300.c: Likewise.
13837 * config/i386/i386-c.c: Likewise.
13838 * config/i386/i386.c: Likewise.
13839 * config/i386/msformat-c.c: Likewise.
13840 * config/i386/winnt-cxx.c: Likewise.
13841 * config/i386/winnt-stubs.c: Likewise.
13842 * config/i386/winnt.c: Likewise.
13843 * config/ia64/ia64-c.c: Likewise.
13844 * config/ia64/ia64.c: Likewise.
13845 * config/iq2000/iq2000.c: Likewise.
13846 * config/lm32/lm32.c: Likewise.
13847 * config/m32c/m32c-pragma.c: Likewise.
13848 * config/m32c/m32c.c: Likewise.
13849 * config/m32r/m32r.c: Likewise.
13850 * config/m68k/m68k.c: Likewise.
13851 * config/mcore/mcore.c: Likewise.
13852 * config/mep/mep-pragma.c: Likewise.
13853 * config/mep/mep.c: Likewise.
13854 * config/microblaze/microblaze-c.c: Likewise.
13855 * config/microblaze/microblaze.c: Likewise.
13856 * config/mips/mips.c: Likewise.
13857 * config/mmix/mmix.c: Likewise.
13858 * config/mn10300/mn10300.c: Likewise.
13859 * config/moxie/moxie.c: Likewise.
13860 * config/msp430/msp430-c.c: Likewise.
13861 * config/msp430/msp430.c: Likewise.
13862 * config/nds32/nds32-cost.c: Likewise.
13863 * config/nds32/nds32-fp-as-gp.c: Likewise.
13864 * config/nds32/nds32-intrinsic.c: Likewise.
13865 * config/nds32/nds32-isr.c: Likewise.
13866 * config/nds32/nds32-md-auxiliary.c: Likewise.
13867 * config/nds32/nds32-memory-manipulation.c: Likewise.
13868 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13869 * config/nds32/nds32-predicates.c: Likewise.
13870 * config/nds32/nds32.c: Likewise.
13871 * config/nios2/nios2.c: Likewise.
13872 * config/nvptx/nvptx.c: Likewise.
13873 * config/pa/pa.c: Likewise.
13874 * config/pdp11/pdp11.c: Likewise.
13875 * config/rl78/rl78-c.c: Likewise.
13876 * config/rl78/rl78.c: Likewise.
13877 * config/rs6000/rs6000-c.c: Likewise.
13878 * config/rs6000/rs6000.c: Likewise.
13879 * config/rx/rx.c: Likewise.
13880 * config/s390/s390-c.c: Likewise.
13881 * config/s390/s390.c: Likewise.
13882 * config/sh/sh-c.c: Likewise.
13883 * config/sh/sh-mem.cc: Likewise.
13884 * config/sh/sh.c: Likewise.
13885 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13886 * config/sh/sh_treg_combine.cc: Likewise.
13887 * config/sol2-c.c: Likewise.
13888 * config/sol2-cxx.c: Likewise.
13889 * config/sol2-stubs.c: Likewise.
13890 * config/sol2.c: Likewise.
13891 * config/sparc/sparc-c.c: Likewise.
13892 * config/sparc/sparc.c: Likewise.
13893 * config/spu/spu-c.c: Likewise.
13894 * config/spu/spu.c: Likewise.
13895 * config/stormy16/stormy16.c: Likewise.
13896 * config/tilegx/mul-tables.c: Likewise.
13897 * config/tilegx/tilegx-c.c: Likewise.
13898 * config/tilegx/tilegx.c: Likewise.
13899 * config/tilepro/mul-tables.c: Likewise.
13900 * config/tilepro/tilepro-c.c: Likewise.
13901 * config/tilepro/tilepro.c: Likewise.
13902 * config/v850/v850-c.c: Likewise.
13903 * config/v850/v850.c: Likewise.
13904 * config/vax/vax.c: Likewise.
13905 * config/visium/visium.c: Likewise.
13906 * config/vms/vms-c.c: Likewise.
13907 * config/vms/vms.c: Likewise.
13908 * config/vxworks.c: Likewise.
13909 * config/xtensa/xtensa.c: Likewise.
13910
13911 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
13912
13913 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
13914 Remove operand constraints. Change operand 2 predicate to
13915 nonmemory operand. Limit const_int values to mode bitsize. Only
13916 allow const_int values less than 32 when optimizing for size.
13917 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
13918 Remove operand constraints.
13919 (*bt<mode>): Use SImode for const_int values less than 32.
13920 (regmode): Remove mode attribute.
13921
13922 2015-07-07 Anatoly Sokolov <aesok@post.ru>
13923
13924 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13925 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
13926 moxie_legitimate_address_p): New functions.
13927 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
13928
13929 2015-07-07 Tom de Vries <tom@codesourcery.com>
13930
13931 PR tree-optimization/66642
13932 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
13933 header comment. Rename split_edge variable to edge_at_split. Split
13934 exit edge to create new loop exit bb. Insert loop exit phis in new
13935 loop exit bb.
13936
13937 2015-07-07 Tom de Vries <tom@codesourcery.com>
13938
13939 * tree-cfg.c (get_virtual_phi): New function.
13940 * tree-cfg.h (get_virtual_phi): Declare.
13941 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
13942 (rewrite_virtuals_into_loop_closed_ssa): New function.
13943 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
13944 Declare.
13945 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
13946 (transform_to_exit_first_loop_alt): Use
13947 rewrite_virtuals_into_loop_closed_ssa.
13948
13949 2015-07-07 Richard Biener <rguenther@suse.de>
13950
13951 * fold-const.c (fold_binary_loc): Move
13952 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
13953 * match.pd: ... here.
13954 Add (X * C1) % C2 -> 0 simplification pattern derived from
13955 extract_muldiv_1.
13956
13957 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
13958
13959 PR target/66780
13960 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
13961 change for target/65249.
13962
13963 2015-07-07 Paulo Matos <pmatos@broadcom.com>
13964
13965 * symtab.c (address_matters_1): Fix typo in comment above.
13966 (can_increase_alignment_p): Likewise.
13967
13968 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13969
13970 * function.c (free_after_compilation): Clear PROP_cfg in
13971 f->curr_properties.
13972
13973 2015-07-07 Richard Biener <rguenther@suse.de>
13974
13975 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
13976 add which use to.
13977 (add_control_edge): Remove excessive vertical space in dumping.
13978 (process_ssa_edge_worklist): Simulate at most one statement and
13979 return whether we did. Do not simulate PHIs if they are in a
13980 BB not yet simulated.
13981 (ssa_propagate): Adjust to always drain the BB worklist whenever
13982 a BB is available there, likewise the VARYING edges list before
13983 the interesting edge list.
13984
13985 2015-07-07 Christian Bruel <christian.bruel@st.com>
13986
13987 PR target/52144
13988 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
13989
13990 2015-07-07 Richard Biener <rguenther@suse.de>
13991
13992 PR middle-end/66739
13993 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
13994 A - B.
13995
13996 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
13997
13998 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
13999 modes for operands 0 and 3. Use SImode for operands 2 and 3.
14000 Copy operand 0 to a temporary if !ext_register_operand. Remove
14001 ancient extract_bit_field workaround.
14002 (insv<mode>_1): Rename from mov<mode>_insv_1.
14003 (*insvqi): Rename from *movqi_insv_2.
14004 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14005 for renamed insvsi_1.
14006 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14007
14008 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
14009
14010 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
14011 call to nvptx_reorg_subreg.
14012
14013 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
14014
14015 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14016 * graphite-dependencies.c, graphite-interchange.c,
14017 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14018 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14019 Likewise.
14020
14021 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
14022
14023 * match.pd: Remove element_mode inside HONOR_*.
14024 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14025 (~X | X -> -1, ~X ^ X -> -1): Merge.
14026 * tree.c (build_each_one_cst): New function.
14027 * tree.h (build_each_one_cst): Likewise.
14028
14029 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14030
14031 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14032 PROCESSOR_IAMCU.
14033
14034 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
14035
14036 * config.gcc <mips*-*-*>: Add fused-madd.opt.
14037 * config/mips/mips.opt (mfused-madd): Remove.
14038 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14039 * config/mips/mips.h (TARGET_MIPS8000): New.
14040 (ISA_HAS_FP_MADD4_MSUB4): Remove.
14041 (ISA_HAS_FP_MADDF_MSUBF): Remove.
14042 (ISA_HAS_FP_MADD3_MSUB3): Remove.
14043 (ISA_HAS_NMADD4_NMSUB4): Remove.
14044 (ISA_HAS_NMADD3_NMSUB3): Remove.
14045 (ISA_HAS_FUSED_MADD4): New.
14046 (ISA_HAS_UNFUSED_MADD4): New.
14047 (ISA_HAS_FUSED_MADDF): New.
14048 (ISA_HAS_FUSED_MADD3): New.
14049 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14050 (*fma<mode>4_madd3) New.
14051 (*fma<mode>4_madd4) New.
14052 (*fma<mode>4_maddf) New.
14053 (fms<mode>4) New.
14054 (*fms<mode>4_msub3) New.
14055 (*fms<mode>4_msub4) New.
14056 (fnma<mode>4) New.
14057 (*fnma<mode>4_nmadd3) New.
14058 (*fnma<mode>4_nmadd4) New.
14059 (fnms<mode>4) New.
14060 (*fnms<mode>4_nmsub3) New.
14061 (*fnms<mode>4_nmsub4) New.
14062 (*madd4<mode>) Modify to be unfused only.
14063 (*msub4<mode>) Modify to be unfused only.
14064 (*nmadd4<mode>) Modify to be unfused only.
14065 (*nmsub4<mode>) Modify to be unfused only.
14066 (*madd3<mode>) Remove.
14067 (*msub3<mode>) Remove.
14068 (*nmadd3<mode>) Remove.
14069 (*nmsub3<mode>) Remove.
14070 (*nmadd3<mode>_fastmath) Remove.
14071 (*nmsub3<mode>_fastmath) Remove.
14072 (*nmadd4<mode>_fastmath) Update condition.
14073 (*nmsub4<mode>_fastmath) Update condition.
14074
14075 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14076
14077 PR target/65956
14078 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14079 alignment attribute, exploring one level down for records and arrays.
14080
14081 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14082
14083 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
14084 modes for operands 0 and 1. Use SImode for operands 2 and 3.
14085 Copy operand 1 to a temporary if !ext_register_operand. Remove
14086 ancient extract_bit_field workaround.
14087 (*extv<mode>): Rename from *mov<mode>_extv_1.
14088 (*extvqi): Rename from *movqi_extv_1.
14089 (extzv<mode>): Rename from extzv. Use SWI248 modes for
14090 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
14091 to a temporary if !ext_register_operand. Remove ancient
14092 extract_bit_field workaround.
14093 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14094 (*extzvqi): Rename from *movqi_extzv_2.
14095 (*testqi_ext_3): Remove modes from const_int_operand predicated
14096 operands. Add "n" constraint.
14097 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14098 operand. Add "J" constraint.
14099 (*btsq, *btrq, *btcq peephole2s): Remove mode from
14100 const_0_to_63 predicated operand.
14101 (regmode): New insn attribute.
14102 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
14103 to nonmemory_operand. Use regmode insn attribute.
14104 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14105 (*jcc_bt<mode>_mask): Remove mode from operand 3.
14106 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14107 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14108 operands. Use "N" constraint instead of "n".
14109
14110 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14111
14112 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14113
14114 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14115
14116 PR target/66749
14117 * config/i386/i386.c (iamcu_cost): New.
14118 (m_IAMCU): Likewise.
14119 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14120 (processor_target_table): Add an entry for "iamcu".
14121 (processor_alias_table): Likewise.
14122 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14123 (ix86_adjust_cost): Likewise.
14124 (ia32_multipass_dfa_lookahead): Likewise.
14125 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14126 * config/i386/x86-tune.def: Updated for m_IAMCU.
14127
14128 2015-07-06 Richard Biener <rguenther@suse.de>
14129
14130 PR tree-optimization/66772
14131 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14132 values are available in the PHI node BB when there are
14133 still unexecutable edges.
14134
14135 2015-07-06 Richard Biener <rguenther@suse.de>
14136
14137 PR tree-optimization/66767
14138 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14139 Make sure to build the alignment test on a SSA name without
14140 final alignment info valid only if the alignment test
14141 evaluates to true.
14142
14143 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
14144
14145 PR target/66620
14146 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14147 loop start when inserting LSETUP.
14148
14149 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14150
14151 PR target/53383
14152 * config/i386/i386.c (ix86_option_override_internal): Allow
14153 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14154
14155 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14156
14157 * read-md.c (decimal_string): Rename to ...
14158 (md_decimal_string): ... this.
14159 (handle_enum): Reflect this.
14160
14161 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14162
14163 PR target/66731
14164 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14165
14166 2015-07-06 Richard Biener <rguenther@suse.de>
14167
14168 PR middle-end/66759
14169 * match.pd: Add missing constraint of y to REAL_CST in
14170 REAL_CST - x CMP y to y - CST CMP x simplification.
14171
14172 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
14173
14174 PR tree-optimization/66757
14175 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14176
14177 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
14178 Sandra Loosemore <sandra@codesourcery.com>
14179
14180 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14181 Delete extern declaration.
14182 (gprel_constant_p): Add extern declaration.
14183 * config/nios2/constraints.md ("S"): Use gprel_constant_p
14184 instead of nios2_symbol_ref_in_small_data_p.
14185 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14186 (nios2_symbol_ref_in_small_data_p): Make static.
14187 (gprel_constant_p): Make non-static.
14188
14189 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14190
14191 * doc/fragments.texi (Target Fragment): Convert debian.org
14192 link to use https.
14193 * doc/install.texi (Configuration): Ditto.
14194
14195 2015-07-05 Jakub Jelinek <jakub@redhat.com>
14196
14197 PR tree-optimization/66718
14198 * tree-vect-stmts.c (vectorizable_call): Replace uses of
14199 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14200
14201 PR tree-optimization/66718
14202 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14203 vectorizable_load, vectorizable_condition): Move vectype,
14204 nunits, ncopies computation after checking what kind of statement
14205 stmt is.
14206
14207 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14208
14209 * target-insns.def (extv, extzv, insv): New targetm instruction
14210 patterns.
14211 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14212 interface.
14213 * recog.c (simplify_while_replacing): Likewise.
14214
14215 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14216
14217 * target-insns.def (doloop_begin, doloop_end): New targetm
14218 instruction patterns.
14219 * loop-init.c: Include target.h.
14220 (pass_loop2::gate): Use the new targetm patterns instead of
14221 HAVE_*/gen_* interface.
14222 (pass_rtl_doloop::gate): Likewise.
14223 (pass_rtl_doloop::execute): Remove preprocessor condition.
14224 * hw-doloop.c: Build unconditionally.
14225 * loop-doloop.c: Likewise.
14226 (doloop_optimize): Use the new targetm patterns instead of
14227 HAVE_*/gen_* interface.
14228 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14229 * modulo-sched.c (doloop_register_get): Likewise.
14230
14231 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14232
14233 * target-insns.def (clear_cache): New targetm instruction pattern.
14234 * builtins.c (expand_builtin___clear_cache): Use it instead of
14235 HAVE_*/gen_* interface.
14236
14237 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14238
14239 * target-insns.def (allocate_stack, check_stack, probe_stack)
14240 (probe_stack_address, split_stack_prologue, split_stack_space_check):
14241 New targetm instruction patterns.
14242 * explow.c (allocate_dynamic_stack_space): Use them instead of
14243 HAVE_*/gen_* interface.
14244 (emit_stack_probe): Likewise.
14245 (probe_stack_range): Likewise.
14246 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14247
14248 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14249
14250 * target-insns.def (stack_protect_set, stack_protect_test): New
14251 targetm instruction patterns.
14252 * cfgexpand.c (stack_protect_prologue): Use them instead of
14253 HAVE_*/gen_* interface.
14254 * function.c (stack_protect_epilogue): Likewise.
14255
14256 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14257
14258 * expr.h (gen_move_insn_uncast): Delete.
14259 * expr.c (gen_move_insn_uncast): Delete.
14260
14261 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14262
14263 * target-insns.def (restore_stack_block, restore_stack_function)
14264 (restore_stack_nonlocal, save_stack_block, save_stack_function)
14265 (save_stack_nonlocal): New targetm instruction patterns.
14266 * builtins.c (expand_builtin_apply): Use them instead of
14267 HAVE_*/gen_* interface.
14268 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14269
14270 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14271
14272 * target-insns.def (trap): New targetm instruction pattern.
14273 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14274 interface.
14275 * explow.c (allocate_dynamic_stack_space): Likewise.
14276 * ifcvt.c (find_if_header): Likewise.
14277
14278 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14279
14280 * target-insns.def (prefetch): New targetm instruction pattern.
14281 * tree-ssa-loop-prefetch.c: Include targeth.
14282 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14283 of HAVE_*/gen_* interface.
14284 * builtins.c (expand_builtin_prefetch): Likewise.
14285 * toplev.c (process_options): Likewise.
14286
14287 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14288
14289 * target-insns.def (untyped_call, untyped_return): New targetm
14290 instruction patterns.
14291 * builtins.c (expand_builtin_apply): Use them instead of
14292 HAVE_*/gen_* interface.
14293 (result_vector): Define unconditionally.
14294
14295 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14296
14297 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14298 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14299 (nonlocal_goto_receiver): New targetm instruction patterns.
14300 * builtins.c (expand_builtin_setjmp_setup): Use them instead
14301 of HAVE_*/gen_* interface.
14302 (expand_builtin_setjmp_receiver): Likewise.
14303 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14304 * except.c (expand_dw2_landing_pad_for_region): Likewise.
14305
14306 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14307
14308 * target.def: Add code_for_* hooks.
14309 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14310 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14311 * target-insns.def (casesi, tablejump): New targetm instruction
14312 patterns.
14313 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14314 (do_tablejump): Likewise.
14315 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14316 (expand_sjlj_dispatch_table): Likewise.
14317 * targhooks.c (default_case_values_threshold): Likewise.
14318
14319 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
14320
14321 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14322 Use rtx_insn * instead of rtx.
14323 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14324 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14325 (nios2_call_tls_get_addr): Likewise.
14326 (nios2_emit_expensive_div): Likewise.
14327 (nios2_emit_move_sequence): Change return type to bool.
14328 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14329 Change return type to bool.
14330
14331 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14332
14333 PR target/66747
14334 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14335
14336 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
14337
14338 PR target/66114
14339 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14340 of register_operand. Remove constraint.
14341
14342 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
14343
14344 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14345 the first argument.
14346
14347 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
14348
14349 * attribs.c (decl_attributes): Guard inform with the return value
14350 of the preceding warning.
14351
14352 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14353
14354 * doc/invoke.texi (moverride): Move to correct section.
14355
14356 2015-07-03 Richard Biener <rguenther@suse.de>
14357
14358 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14359 Copy from tree.c
14360 (dt_operand::gen_gimple_expr): After valueizing operands
14361 re-canonicalize operand order for commutative tree codes.
14362
14363 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
14364
14365 PR target/66746.
14366 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14367 is defined.
14368 (__crc32w): Likewise.
14369 (__crc32d): Likewise.
14370 (__rdpmc): Likewise.
14371 (__rdtscp): Likewise.
14372 (_rdpmc): Likewise.
14373 (_rdtscp): Likewise.
14374 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14375 is defined.
14376
14377 2015-07-03 Richard Biener <rguenther@suse.de>
14378
14379 * fold-const.c (fold_mathfn_compare): Remove.
14380 (fold_inf_compare): Likewise.
14381 (fold_comparison): Move floating point comparison simplifications...
14382 * match.pd: ... to patterns here. Introduce simple_comparisons
14383 operator list and use it for patterns formerly in fold_comparison.
14384
14385 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14386
14387 PR tree-optimization/66119
14388 * toplev.c (process_options): Don't set up default values for
14389 the sra_max_scalarization_size_{speed,size} parameters.
14390 * tree-sra (analyze_all_variable_accesses): If no values
14391 have been set for the sra_max_scalarization_size_{speed,size}
14392 parameters, call get_move_ratio to get target defaults.
14393
14394 2015-07-03 Richard Biener <rguenther@suse.de>
14395
14396 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14397 * match.pd: ... here.
14398
14399 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
14400
14401 PR target/37072
14402 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14403 is not actually the default on FreeBSD.
14404
14405 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14406
14407 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14408 definition.
14409 (CMPGE_8HI): Likewise.
14410 (CMPGE_4SI): Likewise.
14411 (CMPGE_2DI): Likewise.
14412 (CMPGE_U16QI): Likewise.
14413 (CMPGE_U8HI): Likewise.
14414 (CMPGE_U4SI): Likewise.
14415 (CMPGE_U2DI): Likewise.
14416 (CMPLE_16QI): Likewise.
14417 (CMPLE_8HI): Likewise.
14418 (CMPLE_4SI): Likewise.
14419 (CMPLE_2DI): Likewise.
14420 (CMPLE_U16QI): Likewise.
14421 (CMPLE_U8HI): Likewise.
14422 (CMPLE_U4SI): Likewise.
14423 (CMPLE_U2DI): Likewise.
14424 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14425 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14426 ALTIVEC_BUILTIN_VEC_CMPLE.
14427 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14428 floating-point vector modes.
14429 (vector_nlt<mode>): New define_expand.
14430 (vector_nltu<mode>): Likewise.
14431 (vector_ngt<mode>): Likewise.
14432 (vector_ngtu<mode>): Likewise.
14433
14434 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14435
14436 PR rtl-optimization/66706
14437 * combine.c (make_compound_operation): If an AND of SUBREG of
14438 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14439
14440 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
14441
14442 * tree-pass.h (make_pass_ch_vect): New.
14443 * passes.def: Add pass_ch_vect just before pass_if_conversion.
14444
14445 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14446 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14447 make_pass_ch_vect): New.
14448 (pass_ch): Extend ch_base.
14449
14450 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14451 (ch_base::copy_headers): ...here.
14452
14453 2015-07-02 Richard Biener <rguenther@suse.de>
14454
14455 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14456 * fold-const.c (get_pointer_modulus_and_residue): Remove.
14457 (fold_binary_loc): Implement (T)ptr & CST in terms of
14458 get_pointer_alignment_1.
14459 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14460 Make sure to build the alignment test on a SSA name without
14461 final alignment info valid only after the prologue.
14462
14463 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
14464
14465 * config/cris/cris.md ("epilogue"): Remove condition.
14466 ("prologue"): Ditto.
14467
14468 2015-07-02 Richard Biener <rguenther@suse.de>
14469
14470 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14471 parameter to record a condition that is false.
14472 (record_conditions): When recording an extra NE_EXPR that is
14473 true also record a EQ_EXPR that is false.
14474
14475 2015-07-02 Bin Cheng <bin.cheng@arm.com>
14476
14477 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14478 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14479 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
14480 (set_iv, find_interesting_uses_address, add_candidate_1): New
14481 argument to alloc_iv.
14482 (find_interesting_uses_op, find_interesting_uses_cond): Don't
14483 duplicate struct iv.
14484 (free_loop_data): Don't free struct iv explicitly.
14485 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14486
14487 2015-07-01 DJ Delorie <dj@redhat.com>
14488
14489 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14490 (LIB_SPEC): Add.
14491 (SUPPORTS_DISCRIMINATOR): Define.
14492
14493 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14494
14495 PR bootstrap/66685
14496 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14497 there are no CALLs in the same pattern.
14498
14499 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14500
14501 PR rtl-optimization/61047
14502 * rtlanal.c (get_initial_register_offset): New function.
14503 (rtx_addr_can_trap_p_1): Check offsets of stack references.
14504
14505 2015-07-01 Richard Biener <rguenther@suse.de>
14506
14507 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14508 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14509 ~X CMP C -> X CMP' ~C to ...
14510 * match.pd: ... patterns here.
14511
14512 2015-07-01 Nick Clifton <nickc@redhat.com>
14513
14514 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14515 a 16-bit value into a 20-bit memory slot.
14516
14517 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14518
14519 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14520 "aarch64_tiny", "aarch64_small", "aarch64_large",
14521 "aarch64_little_endian", "aarch64_big_endian".
14522
14523 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14524
14525 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14526 Document "aarch64_small_fpic".
14527
14528 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14529
14530 * configure.ac: Add check for aarch64 assembler -fpic relocation
14531 modifier support.
14532 * configure: Regenerate.
14533 * config.in: Regenerate.
14534 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14535 to -fPIC if not support of -fpic relocation modifier in assembler.
14536
14537 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14538
14539 PR bootstrap/66685
14540 * rtl.c (classify_insn): Handle returns in PARALLELs.
14541
14542 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
14543
14544 PR middle-end/66633
14545 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14546 to true if the function is nested and if not optimizing.
14547 (convert_local_omp_clauses): Initialize need_frame to true if the
14548 function contains nested functions and if not optimizing.
14549
14550 2015-07-01 Richard Biener <rguenther@suse.de>
14551
14552 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14553 (X & Y) ^ Y -> ~X & Y transforms to ...
14554 * match.pd: ... here.
14555
14556 2015-07-01 Richard Biener <rguenther@suse.de>
14557
14558 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14559 of converts to avoid uninteresting noise from the conversion
14560 simplifying patterns.
14561
14562 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
14563
14564 * config/c6x/c6x.c (try_rename_operands): Do not depend on
14565 gcc_assert evaluating its argument for side-effect.
14566
14567 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
14568
14569 PR target/64833
14570 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14571 flag_pic is set.
14572
14573 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14574
14575 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14576 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14577 (hash_scc): Add this_ref_p and ref_p parameters and pass them
14578 to the inner DFS walk.
14579
14580 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14581
14582 * target-insns.def (jump): New targetm instruction pattern.
14583 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14584 instead of gen_jump.
14585 (fix_up_crossing_landing_pad): Likewise.
14586 (add_labels_and_missing_jumps): Likewise.
14587 (fix_crossing_conditional_branches): Likewise.
14588 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14589 (force_nonfallthru_and_redirect): Likewise.
14590 * cse.c (cse_insn): Likewise.
14591 * expmed.c (expand_divmod): Likewise.
14592 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14593 * haifa-sched.c (init_before_recovery): Likewise.
14594 (sched_create_recovery_edges): Likewise.
14595 * ifcvt.c (find_cond_trap): Likewise.
14596 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14597 (expand_float, expand_fix): Likewise.
14598 * stmt.c (emit_jump): Likewise.
14599
14600 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14601
14602 * defaults.h (HAVE_load_multiple, gen_load_multiple)
14603 (HAVE_store_multiple, gen_store_multiple): Delete.
14604 * target-insns.def (load_multiple, store_multiple): New targetm
14605 instruction patterns.
14606 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14607 of HAVE_*/gen_* interface.
14608
14609 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14610
14611 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14612 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14613 (gen_mem_signal_fence): Delete.
14614 * target-insns.def (mem_signal_fence, mem_thread_fence)
14615 (memory_barrier): New targetm instruction patterns.
14616 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14617 interface.
14618 (expand_mem_signal_fence): Likewise.
14619
14620 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14621
14622 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14623 * target-insns.def (epilogue, prologue, sibcall_prologue): New
14624 targetm instruction patterns.
14625 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14626 interface.
14627 * calls.c (expand_call): Likewise.
14628 * cfgrtl.c (cfg_layout_finalize): Likewise.
14629 * df-scan.c (df_get_entry_block_def_set): Likewise.
14630 (df_get_exit_block_use_set): Likewise.
14631 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14632 * final.c (final_start_function): Likewise.
14633 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14634 (reposition_prologue_and_epilogue_notes): Likewise.
14635 * reorg.c (find_end_label): Likewise.
14636 * toplev.c (process_options): Likewise.
14637
14638 2015-06-30 David Malcolm <dmalcolm@redhat.com>
14639
14640 * typed-splay-tree.h: New file.
14641
14642 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
14643
14644 PR debug/66691
14645 * lra-int.h (lra_substitute_pseudo): Add a parameter.
14646 (lra_substitute_pseudo_within_insn): Ditto.
14647 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
14648 of constant.
14649 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
14650 to lra_substitute_pseudo.
14651 * lra-lives.c (process_bb_lives): Add an argument to
14652 lra_substitute_pseudo_within_insn call.
14653 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14654 argument to lra_substitute_pseudo and
14655 lra_substitute_pseudo_within_insn calls.
14656 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14657
14658 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14659
14660 * configure: Regenerated.
14661
14662 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14663
14664 * config.gcc: Support i[34567]86-*-elfiamcu target.
14665 * config/i386/iamcu.h: New.
14666 * config/i386/i386.opt: Add -miamcu.
14667 * doc/invoke.texi: Document -miamcu.
14668 * common/config/i386/i386-common.c (ix86_handle_option): Turn
14669 off x87/MMX/SSE/AVX codegen for -miamcu.
14670 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14671 __iamcu/__iamcu__ for -miamcu.
14672 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14673 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14674 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14675 * config/i386/i386.c (ix86_option_override_internal): Ignore and
14676 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
14677 MCU by default. Default long double to 64-bit for Intel MCU.
14678 Turn on -freg-struct-return for Intel MCU. Issue an error when
14679 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14680 AVX is turned on.
14681 (function_arg_advance_32): Pass value whose size is no larger
14682 than 8 bytes in registers for Intel MCU.
14683 (function_arg_32): Likewise.
14684 (ix86_return_in_memory): Return value whose size is no larger
14685 than 8 bytes in registers for Intel MCU.
14686 (iamcu_alignment): New function.
14687 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14688 true.
14689 (ix86_local_alignment): Don't increase alignment for Intel MCU.
14690 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14691 true.
14692
14693 2015-06-30 Marek Polacek <polacek@redhat.com>
14694
14695 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
14696 both operands of the resulting expression.
14697
14698 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
14699 the final expression with the operand's type and then convert
14700 it to the type of the expression.
14701
14702 2015-06-30 Richard Biener <rguenther@suse.de>
14703
14704 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14705 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14706 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14707 * match.pd: ... to patterns here.
14708
14709 2015-06-30 Richard Biener <rguenther@suse.de>
14710
14711 PR tree-optimization/66704
14712 * tree-vect-data-refs.c (vect_setup_realignment): Use
14713 make_ssa_name for non-SSA name source.
14714
14715 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14716
14717 PR middle-end/66702
14718 * omp-low.c (simd_clone_adjust): Handle addressable linear
14719 or uniform parameters or non-gimple type uniform parameters.
14720
14721 2015-06-30 Richard Biener <rguenther@suse.de>
14722
14723 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14724 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14725 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14726 * match.pd: ... here.
14727 Add a few cases of A - B -> A + (-B) when B "easily" negates.
14728 Move (x & y) | x -> x and friends before
14729 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14730
14731 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14732
14733 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14734 -mfix-ut699 is not specified.
14735 (leon3_load): Rename into...
14736 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
14737 is specified.
14738
14739 2015-06-30 Marek Polacek <polacek@redhat.com>
14740
14741 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
14742 * match.pd: ... here.
14743
14744 2015-06-30 Richard Biener <rguenther@suse.de>
14745
14746 * target-insns.def (canonicalize_funcptr_for_compare): Add.
14747 * fold-const.c (build_range_check): Replace uses of
14748 HAVE_canonicalize_funcptr_for_compare.
14749 (fold_widened_comparison): Likewise.
14750 (fold_sign_changed_comparison): Likewise.
14751 * dojump.c: Include "target.h".
14752 (do_compare_and_jump): Replace uses of
14753 HAVE_canonicalize_funcptr_for_compare and
14754 gen_canonicalize_funcptr_for_compare.
14755 * expr.c (do_store_flag): Likewise.
14756
14757 2015-06-30 Tom de Vries <tom@codesourcery.com>
14758
14759 PR tree-optimization/66652
14760 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
14761 max_loop_iterations to determine if nit + 1 overflows.
14762
14763 2015-06-30 Richard Biener <rguenther@suse.de>
14764
14765 * tree-vrp.c (register_edge_assert_for_2): Also register
14766 asserts for dominating conversion results.
14767
14768 2015-06-30 Bin Cheng <bin.cheng@arm.com>
14769
14770 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
14771 field in struct iv.
14772
14773 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
14774
14775 PR target/66509
14776 * configure.ac: Fix filds and fildq test for 64-bit.
14777 * configure: Regenerated.
14778
14779 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
14780
14781 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
14782 (nvptx_reorg): Here. Keep the non-subreg pieces.
14783
14784 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
14785
14786 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
14787 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14788
14789 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
14790
14791 * config/i386/i386.md (*jcc_1): Use %! in asm template.
14792 Set attribute "length_nobnd" instead of "length".
14793 (*jcc_2): Ditto.
14794 (jump): Ditto.
14795 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
14796
14797 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
14798
14799 * config/nios2/nios2.c (nios2_delegitimize_address): Make
14800 assert less restrictive.
14801
14802 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
14803
14804 PR fortran/66605
14805 * cgraphunit.c (cgraph_node::finalize_function): Do not call
14806 do_warn_unused_parameter.
14807 * function.c (do_warn_unused_parameter): Move from here.
14808 * function.h (do_warn_unused_parameter): Do not declare.
14809
14810 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14811
14812 PR target/65697
14813 * gcc.target/arm/armv-sync-comp-swap.c: New.
14814 * gcc.target/arm/armv-sync-op-acquire.c: New.
14815 * gcc.target/arm/armv-sync-op-full.c: New.
14816 * gcc.target/arm/armv-sync-op-release.c: New.
14817
14818 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14819
14820 PR target/65697
14821 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
14822 initial acquire barrier with final barrier.
14823
14824 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14825
14826 PR target/65697
14827 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
14828 initial acquire barrier with final barrier.
14829
14830 2015-06-29 Richard Henderson <rth@redhat.com>
14831
14832 * config/i386/constraints.md (Bf): New constraint.
14833 * config/i386/i386-c.c (ix86_target_macros): Define
14834 __GCC_ASM_FLAG_OUTPUTS__.
14835 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
14836 as flags outputs.
14837 * doc/extend.texi (FlagOutputOperands): Document them.
14838
14839 2015-06-29 Jiong Wang <jiong.wang@arm.com>
14840
14841 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
14842 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
14843 unspec name.
14844 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
14845 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
14846 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
14847 (aarch64_symbol_context): Ditto.
14848 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
14849 and use new pattern name.
14850 (aarch64_expand_mov_immediate): Ditto.
14851 (aarch64_print_operand): Ditto.
14852 (aarch64_classify_tls_symbol): Ditto.
14853
14854 2015-06-29 Marek Polacek <polacek@redhat.com>
14855 Marc Glisse <marc.glisse@inria.fr>
14856
14857 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
14858 * match.pd: ... pattern here.
14859
14860 2015-06-29 Tom de Vries <tom@codesourcery.com>
14861
14862 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
14863 function structure.
14864
14865 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
14866
14867 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
14868 feature description, split out the native option, add a link to
14869 the feature documentation, rearrange and slightly rewrite text.
14870 (Aarch64 options, -mcpu): Likewise.
14871 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
14872 +rdma implies Adv. SIMD.
14873
14874 2015-06-29 Marek Polacek <polacek@redhat.com>
14875
14876 PR c/66322
14877 * function.c (stack_protect_epilogue): Remove a cast to int.
14878 * doc/invoke.texi: Update -Wswitch-bool description.
14879
14880 2015-06-29 Richard Biener <rguenther@suse.de>
14881
14882 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
14883 * fold-const.c (fold_binary_loc): Move &A - &B simplification
14884 via ptr_difference_const ...
14885 * match.pd: ... here.
14886 When matching (X ^ Y) == Y also match with swapped operands.
14887
14888 2015-06-29 Richard Biener <rguenther@suse.de>
14889
14890 * lto-streamer.h (LTO_major_version): Bump to 5.
14891
14892 2015-06-29 Richard Biener <rguenther@suse.de>
14893
14894 PR tree-optimization/66677
14895 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
14896 STMT_VINFO_VEC_STMT clobbering less strict.
14897
14898 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14899
14900 PR middle-end/64130
14901 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
14902 division, compute max and min when value ranges for dividend and
14903 divisor are available.
14904
14905 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
14906 Sandra Loosemore <sandra@codesourcery.com>
14907
14908 * regrename.h (regrename_do_replace): Change to return bool.
14909 * regrename.c (rename_chains): Check return value of
14910 regname_do_replace.
14911 (regrename_do_replace): Re-validate the modified insns and
14912 return bool status.
14913 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14914 Update to match rename_chains changes.
14915 * config/c6x/c6x.c (try_rename_operands): Assert that
14916 regrename_do_replace returns true.
14917
14918 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
14919
14920 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
14921 operand 2 here. Use copy_addr_to_reg to copy non-index
14922 register operand 2 to a temporary.
14923 (<mode>_stx): Ditto for operand 1.
14924 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
14925 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
14926 (ix86_store_bounds): Ditto.
14927
14928 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
14929
14930 * print-tree.c (print_node) [TREE_VEC]: Print its length.
14931
14932 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
14933
14934 * gimple.c (gimple_call_set_fndecl): Remove.
14935 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
14936 build1_loc directly instead of build_fold_addr_expr_loc.
14937
14938 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
14939
14940 * hash-map.h (hash_map::traverse): Use the definition of the
14941 Key typedef rather than the typedef itself.
14942
14943 2015-06-26 Martin Jambor <mjambor@suse.cz>
14944
14945 PR debug/66301
14946 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
14947 NULL instead of calling dump_enabled_p.
14948
14949 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14950
14951 * config/aarch64/aarch64.opt: (override): New.
14952 * doc/invoke.texi (override): Document.
14953 * config/aarch64/aarch64.c (aarch64_flag_desc): New
14954 (aarch64_fusible_pairs): Likewise.
14955 (aarch64_tuning_flags): Likewise.
14956 (aarch64_tuning_override_function): Likewise.
14957 (aarch64_tuning_override_functions): Likewise.
14958 (aarch64_parse_one_option_token): Likewise.
14959 (aarch64_parse_boolean_options): Likewise.
14960 (aarch64_parse_fuse_string): Likewise.
14961 (aarch64_parse_tune_string): Likewise.
14962 (aarch64_parse_one_override_token): Likewise.
14963 (aarch64_parse_override_string): Likewise.
14964 (aarch64_override_options): Parse the -override string if it
14965 is present.
14966
14967 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14968
14969 * config/aarch64/aarch64-protos.h (tune_params): Remove
14970 const from members.
14971 (aarch64_tune_params): Remove const, change to no longer be
14972 a pointer.
14973 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
14974 change to no longer be a pointer, initialize to generic_tunings.
14975 (aarch64_min_divisions_for_recip_mul): Change dereference of
14976 aarch64_tune_params to member access.
14977 (aarch64_reassociation_width): Likewise.
14978 (aarch64_rtx_mult_cost): Likewise.
14979 (aarch64_address_cost): Likewise.
14980 (aarch64_branch_cost): Likewise.
14981 (aarch64_rtx_costs): Likewise.
14982 (aarch64_register_move_cost): Likewise.
14983 (aarch64_memory_move_cost): Likewise.
14984 (aarch64_sched_issue_rate): Likewise.
14985 (aarch64_builtin_vectorization_cost): Likewise.
14986 (aarch64_override_options): Take a copy of the selected tuning
14987 struct in to aarch64_tune_params, rather than just setting
14988 a pointer, change dereferences of aarch64_tune_params to member
14989 accesses.
14990 (aarch64_override_options_after_change): Change dereferences of
14991 aarch64_tune_params to member access.
14992 (aarch64_macro_fusion_p): Likewise.
14993 (aarch_macro_fusion_pair_p): Likewise.
14994 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
14995
14996 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14997
14998 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
14999 (aarch64_tune_flags): Likewise.
15000 (AARCH64_TUNE_FMA_STEERING): Likewise.
15001 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15002 to AARCH64_FL_USE_FMA_STEERING_PASS.
15003 (cortex-a57.cortex-a53): Likewise.
15004 (cortex-a72): Use cortexa72_tunings.
15005 (cortex-a72.cortex-a53): Likewise.
15006 (exynos-m1): Likewise.
15007 * config/aarch64/aarch64-protos.h (tune_params): Add
15008 a field: extra_tuning_flags.
15009 * config/aarch64/aarch64-tuning-flags.def: New.
15010 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15011 (aarch64_extra_tuning_flags): Likewise.
15012 (aarch64_tune_params): Declare here.
15013 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15014 (cortexa53_tunings): Likewise.
15015 (cortexa57_tunings): Likewise.
15016 (thunderx_tunings): Likewise.
15017 (xgene1_tunings): Likewise.
15018 (cortexa72_tunings): New.
15019 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15020 (gate): Check against aarch64_tune_params.
15021 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15022 aarch64-protos.h.
15023
15024 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15025
15026 * config/aarch64/aarch64-fusion-pairs.def: New.
15027 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15028 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15029 aarch64_fusion_pairs.
15030 (AARCH64_FUSE_MOV_MOVK): Likewise.
15031 (AARCH64_FUSE_ADRP_ADD): Likewise.
15032 (AARCH64_FUSE_MOVK_MOVK): Likewise.
15033 (AARCH64_FUSE_ADRP_LDR): Likewise.
15034 (AARCH64_FUSE_CMP_BRANCH): Likewise.
15035
15036 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15037
15038 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15039 SYMBOL_SMALL_GOT_28K.
15040 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15041 relocation modifiers.
15042 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15043 (ldr_got_small_28k_<mode>): New.
15044 (ldr_got_small_28k_sidi): New.
15045 * config/aarch64/iterators.md (got_modifier): New mode iterator.
15046 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15047 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15048 SYMBOL_SMALL_GOT_28K.
15049 (aarch64_rtx_costs): Add costs for new instruction sequences.
15050 (initialize_aarch64_code_model): Initialize new model.
15051 (aarch64_classify_symbol): Recognize new model and new symbol classification.
15052 (aarch64_asm_preferred_eh_data_format): Support new model.
15053 (aarch64_load_symref_appropriately): Generate new instruction
15054 sequences for -fpic.
15055 (TARGET_USE_PSEUDO_PIC_REG): New definition.
15056 (aarch64_use_pseudo_pic_reg): New function.
15057
15058 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15059
15060 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15061 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15062 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15063 (aarch64_expand_mov_immediate): Ditto.
15064 (aarch64_print_operand): Ditto.
15065 (aarch64_classify_symbol): Ditto.
15066
15067 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
15068
15069 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15070
15071 2015-06-26 Bin Cheng <bin.cheng@arm.com>
15072
15073 PR bootstrap/66638
15074 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15075 assertion failed. Remove assertion itself.
15076
15077 2015-06-26 Richard Biener <rguenther@suse.de>
15078
15079 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15080 and -A CMP CST -> A CMP -CST which is redundant with a pattern
15081 in match.pd.
15082 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15083 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15084 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15085 * match.pd: ... patterns here.
15086
15087 2015-06-26 Marek Polacek <polacek@redhat.com>
15088
15089 * match.pd ((x | y) & ~(x & y) -> x ^ y,
15090 (x | y) & (~x ^ y) -> x & y): New patterns.
15091
15092 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15093
15094 * rtl.h (emit): Add an optional boolean parameter to control
15095 whether barriers are emitted.
15096 * emit-rtl.c (emit): Likewise.
15097 * gensupport.c (get_emit_function): Return null rather than "emit".
15098 * genemit.c (gen_emit_seq): Handle the null return value.
15099 Don't emit barriers after the final instruction in the sequence.
15100 * gentarget-def.c (main): Don't emit barriers after the instruction.
15101
15102 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15103
15104 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15105 TARGET_UNIFIED_ASM.
15106
15107 2015-06-26 Richard Biener <rguenther@suse.de>
15108
15109 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15110
15111 2015-06-26 Richard Biener <rguenther@suse.de>
15112
15113 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15114 irrespective on whether the inner operation has a single use
15115 of both off are constant.
15116
15117 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
15118 Segher Boessenkool <segher@kernel.crashing.org>
15119
15120 PR target/66412
15121 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15122 before doing PUT_MODE or PUT_CODE on operands to avoid
15123 in-place RTX modification.
15124
15125 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15126
15127 * gentarget-def.c (def_target_insn): Cast return of strtol to
15128 unsigned int.
15129
15130 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15131
15132 * gimple.h (gimple_call_set_fn): Move inline function.
15133 * gimple.c (gimple_call_set_fn): Relocate here.
15134
15135 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
15136
15137 PR target/65979
15138 PR target/66611
15139 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15140 the replacement insn will work.
15141
15142 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15143
15144 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15145 by default.
15146
15147 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15148
15149 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15150 * cgraph.h: Include ipa-ref.h and plugin-api.h.
15151 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15152 (symtab_node::address_can_be_compared_p): Move function.
15153 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15154 definition here.
15155 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15156 * auto-profile.c: Likewise.
15157 * bb-reorder.c: Likewise.
15158 * builtins.c: Likewise.
15159 * calls.c: Likewise.
15160 * cfgexpand.c: Likewise.
15161 * cgraphbuild.c: Likewise.
15162 * cgraphclones.c: Likewise.
15163 * cgraphunit.c: Likewise.
15164 * combine.c: Likewise.
15165 * coverage.c: Likewise.
15166 * data-streamer-in.c: Likewise.
15167 * data-streamer-out.c: Likewise.
15168 * data-streamer.c: Likewise.
15169 * dbxout.c: Likewise.
15170 * dwarf2out.c: Likewise.
15171 * except.c: Likewise.
15172 * expr.c: Likewise.
15173 * final.c: Likewise.
15174 * fold-const.c: Likewise.
15175 * ggc-page.c: Likewise.
15176 * gimple-fold.c: Likewise.
15177 * gimple-iterator.c: Likewise.
15178 * gimple-pretty-print.c: Likewise.
15179 * gimple-streamer-in.c: Likewise.
15180 * gimple-streamer-out.c: Likewise.
15181 * gimple.c: Likewise.
15182 * gimplify.c: Likewise.
15183 * ipa-chkp.c: Likewise.
15184 * ipa-comdats.c: Likewise.
15185 * ipa-cp.c: Likewise.
15186 * ipa-devirt.c: Likewise.
15187 * ipa-icf-gimple.c: Likewise.
15188 * ipa-icf.c: Likewise.
15189 * ipa-inline-analysis.c: Likewise.
15190 * ipa-inline-transform.c: Likewise.
15191 * ipa-inline.c: Likewise.
15192 * ipa-polymorphic-call.c: Likewise.
15193 * ipa-profile.c: Likewise.
15194 * ipa-prop.c: Likewise.
15195 * ipa-pure-const.c: Likewise.
15196 * ipa-ref.c: Likewise.
15197 * ipa-reference.c: Likewise.
15198 * ipa-split.c: Likewise.
15199 * ipa-utils.c: Likewise.
15200 * ipa-visibility.c: Likewise.
15201 * ipa.c: Likewise.
15202 * langhooks.c: Likewise.
15203 * lto-cgraph.c: Likewise.
15204 * lto-compress.c: Likewise.
15205 * lto-opts.c: Likewise.
15206 * lto-section-in.c: Likewise.
15207 * lto-section-out.c: Likewise.
15208 * lto-streamer-in.c: Likewise.
15209 * lto-streamer-out.c: Likewise.
15210 * lto-streamer.c: Likewise.
15211 * omp-low.c: Likewise.
15212 * opts-global.c: Likewise.
15213 * passes.c: Likewise.
15214 * predict.c: Likewise.
15215 * print-tree.c: Likewise.
15216 * profile.c: Likewise.
15217 * ree.c: Likewise.
15218 * sanopt.c: Likewise.
15219 * stor-layout.c: Likewise.
15220 * symtab.c: Likewise.
15221 * toplev.c: Likewise.
15222 * trans-mem.c: Likewise.
15223 * tree-cfg.c: Likewise.
15224 * tree-chkp.c: Likewise.
15225 * tree-eh.c: Likewise.
15226 * tree-emutls.c: Likewise.
15227 * tree-inline.c: Likewise.
15228 * tree-nested.c: Likewise.
15229 * tree-parloops.c: Likewise.
15230 * tree-pretty-print.c: Likewise.
15231 * tree-profile.c: Likewise.
15232 * tree-sra.c: Likewise.
15233 * tree-ssa-alias.c: Likewise.
15234 * tree-ssa-live.c: Likewise.
15235 * tree-ssa-loop-ivcanon.c: Likewise.
15236 * tree-ssa-loop-ivopts.c: Likewise.
15237 * tree-ssa-pre.c: Likewise.
15238 * tree-ssa-sccvn.c: Likewise.
15239 * tree-ssa-strlen.c: Likewise.
15240 * tree-ssa-structalias.c: Likewise.
15241 * tree-streamer-in.c: Likewise.
15242 * tree-streamer-out.c: Likewise.
15243 * tree-streamer.c: Likewise.
15244 * tree-switch-conversion.c: Likewise.
15245 * tree-tailcall.c: Likewise.
15246 * tree-vect-data-refs.c: Likewise.
15247 * tree-vect-stmts.c: Likewise.
15248 * tree-vectorizer.c: Likewise.
15249 * tree.c: Likewise.
15250 * tsan.c: Likewise.
15251 * ubsan.c: Likewise.
15252 * value-prof.c: Likewise.
15253 * varasm.c: Likewise.
15254 * varpool.c: Likewise.
15255 * config/arm/arm.c: Likewise.
15256 * config/bfin/bfin.c: Likewise.
15257 * config/c6x/c6x.c: Likewise.
15258 * config/cris/cris.c: Likewise.
15259 * config/darwin-c.c: Likewise.
15260 * config/darwin.c: Likewise.
15261 * config/i386/i386.c: Likewise.
15262 * config/i386/winnt.c: Likewise.
15263 * config/microblaze/microblaze.c: Likewise.
15264 * config/mips/mips.c: Likewise.
15265 * config/rs6000/rs6000.c: Likewise.
15266 * config/rx/rx.c: Likewise.
15267 * config/s390/s390.c: Likewise.
15268 * config/tilegx/mul-tables.c: Likewise.
15269
15270 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15271
15272 * config/aarch64/aarch64.c, config/alpha/alpha.c,
15273 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15274 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15275 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15276 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15277 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15278 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15279 config/microblaze/microblaze.c, config/mips/mips.c,
15280 config/mmix/mmix.c, config/mn10300/mn10300.c,
15281 config/moxie/moxie.c, config/msp430/msp430.c,
15282 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15283 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15284 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15285 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15286 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15287 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15288 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15289 target-def.h include.
15290 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
15291
15292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15293
15294 * Makefile.in (TARGET_DEF): Add target-insns.def.
15295 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15296 (build/gentarget-def.o): New rule.
15297 (genprogrtl): Add target-def.
15298 * target-insns.def, gentarget-def.c: New files.
15299 * target.def: Add targetm.have_* and targetm.gen_* hooks,
15300 based on the contents of target-insns.def.
15301 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15302 (HAVE_return, gen_return): Delete.
15303 * target-def.h: Include insn-target-def.h.
15304 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15305 instead of direct calls. Rely on them to do the appropriate assertions.
15306 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
15307 (convert_jumps_to_returns): Use targetm interface instead of
15308 direct calls.
15309 (thread_prologue_and_epilogue_insns): Likewise.
15310 * reorg.c (find_end_label, dbr_schedule): Likewise.
15311 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15312 * shrink-wrap.c (convert_to_simple_return): Likewise.
15313 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15314
15315 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15316
15317 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15318 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15319 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15320 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15321 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15322 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15323 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15324 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15325 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15326 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15327 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15328 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15329 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15330 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15331 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15332 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15333 includes to end.
15334
15335 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15336
15337 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15338 (unbounded_int_hashmap_traits::key_type): Likewise.
15339 * hash-map.h (hash_map): Get the key type from the traits.
15340 * hash-traits.h (default_hash_traits): By default, inherit from the
15341 template parameter.
15342 * alias.c (alias_set_traits): Delete.
15343 (alias_set_entry_d::children): Use alias_set_hash as the first
15344 template parameter.
15345 (record_alias_subset): Update accordingly.
15346 * except.c (tree_hash_traits): Delete.
15347 (type_to_runtime_map): Use tree_hash as the first template parameter.
15348 (init_eh): Update accordingly.
15349 * genmatch.c (capture_id_map_hasher): Delete.
15350 (cid_map_t): Use nofree_string_hash as first template parameter.
15351 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15352 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15353 Use symbol_compare_hash as the first template parameter in
15354 subdivide_hash_map.
15355 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15356 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15357 template parameter.
15358 * passes.c (pass_registry_hasher): Delete.
15359 (name_to_pass_map): Use nofree_string_hash as the first template
15360 parameter.
15361 (register_pass_name): Update accordingly.
15362 * sanopt.c (sanopt_tree_map_traits): Delete.
15363 (sanopt_tree_triplet_map_traits): Delete.
15364 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15365 template parameter.
15366 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15367 the first template parameter.
15368 * sese.c (rename_map_hasher): Delete.
15369 (rename_map_type): Use tree_ssa_name_hash as the first template
15370 parameter.
15371 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15372 (function_summary::m_map): Use map_hash as the first template
15373 parameter.
15374 (function_summary::release): Update accordingly.
15375 * tree-if-conv.c (phi_args_hash_traits): Delete.
15376 (predicate_scalar_phi): Use tree_operand_hash as the first template
15377 parameter to phi_arg_map.
15378 * tree-inline.h (dependence_hasher): Delete.
15379 (copy_body_data::dependence_map): Use dependence_hash as the first
15380 template parameter.
15381 * tree-inline.c (remap_dependence_clique): Update accordingly.
15382 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15383 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15384 parameter.
15385 (addr_stridxptr): Update accordingly.
15386 * value-prof.c (profile_id_traits): Delete.
15387 (cgraph_node_map): Use profile_id_hash as the first template
15388 parameter.
15389 (init_node_map): Update accordingly.
15390 * config/alpha/alpha.c (string_traits): Delete.
15391 (machine_function::links): Use nofree_string_hash as the first
15392 template parameter.
15393 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15394 * config/m32c/m32c.c (pragma_traits): Delete.
15395 (pragma_htab): Use nofree_string_hash as the first template parameter.
15396 (m32c_note_pragma_address): Update accordingly.
15397 * config/mep/mep.c (pragma_traits): Delete.
15398 (pragma_htab): Use nofree_string_hash as the first template parameter.
15399 (mep_note_pragma_flag): Update accordingly.
15400 * config/mips/mips.c (mips16_flip_traits): Delete.
15401 (mflip_mips16_htab): Use nofree_string_hash as the first template
15402 parameter.
15403 (mflip_mips16_use_mips16_p): Update accordingly.
15404 (local_alias_traits): Delete.
15405 (mips16_local_aliases): Use nofree_string_hash as the first template
15406 parameter.
15407 (mips16_local_alias): Update accordingly.
15408
15409 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15410
15411 * hash-map-traits.h (default_hashmap_traits): Delete.
15412
15413 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15414
15415 * hash-map-traits.h (unbounded_hashmap_traits): New class.
15416 (unbounded_int_hashmap_traits): Likewise.
15417 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15418
15419 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15420
15421 * ipa-icf.h (symbol_compare_hash): New class.
15422 (symbol_compare_hashmap_traits): Use it.
15423 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15424 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15425 (mem_alloc_description::reverse_mem_map_t): Remove redundant
15426 default_hashmap_traits.
15427 * sanopt.c (sanopt_tree_triplet_hash): New class.
15428 (sanopt_tree_triplet_map_traits): Use it.
15429
15430 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15431
15432 * gengtype-parse.c (require_template_declaration): Allow '+' in
15433 template parameters. Consolidate cases.
15434 * hash-traits.h (int_hash): New class.
15435 * alias.c (alias_set_hash): New structure.
15436 (alias_set_traits): Use it.
15437 * symbol-summary.h (function_summary::map_hash): New class.
15438 (function_summary::summary_hashmap_traits): Use it.
15439 * tree-inline.h (dependence_hash): New class.
15440 (dependence_hasher): Use it.
15441 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15442 * value-prof.c (profile_id_hash): New class.
15443 (profile_id_traits): Use it.
15444
15445 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15446
15447 * config/mips/mips.c (mips16_flip_traits): Use it.
15448 (local_alias_traits, mips16_local_aliases): Convert from a map of
15449 rtxes to a map of symbol names.
15450 (mips16_local_alias): Update accordingly.
15451
15452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15453
15454 * hash-traits.h (string_hash, nofree_string_hash): New classes.
15455 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15456 * passes.c (pass_registry_hasher): Likewise.
15457 * config/alpha/alpha.c (string_traits): Likewise.
15458 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15459 * config/m32c/m32c.c (pragma_traits): Likewise.
15460 * config/mep/mep.c (pragma_traits): Likewise.
15461
15462 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15463
15464 * tree-hash-traits.h (tree_hash): New class.
15465 * except.c: Include tree-hash-traits.h.
15466 (tree_hash_traits): Use tree_hash.
15467
15468 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15469
15470 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15471 * sese.c: Include tree-hash-traits.h.
15472 (rename_map_hasher): Use tree_ssa_name_hasher.
15473
15474 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15475
15476 * tree-hash-traits.h (tree_decl_hash): New class.
15477 * tree-ssa-strlen.c: Include tree-hash-traits.h.
15478 (stridxlist_hash_traits): Use tree_decl_hash.
15479
15480 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15481
15482 * tree-hash-traits.h: New file.
15483 (tree_operand_hash): New class.
15484 * sanopt.c: Include tree-hash-traits.h.
15485 (sanopt_tree_map_traits): Use tree_operand_hash.
15486 * tree-if-conv.c: Include tree-hash-traits.h.
15487 (phi_args_hash_traits): Use tree_operand_hash.
15488 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15489 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15490
15491 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15492
15493 * hash-map-traits.h: Include hash-traits.h.
15494 (simple_hashmap_traits): New class.
15495 * mem-stats.h (hash_map): Change the default traits to
15496 simple_hashmap_traits<default_hash_traits<Key> >.
15497
15498 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15499
15500 * hash-table.h: Update comments.
15501
15502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15503
15504 * hash-traits.h (default_hash_traits): New structure.
15505 * hash-set.h (default_hashset_traits): Delete.
15506 (hash_set): Use default_hash_traits<Key> instead of
15507 default_hashset_traits. Delete hash_entry type and use Key directly.
15508 * ipa-devirt.c (pair_traits): Delete.
15509 (default_hash_traits <type_pair>): Override.
15510 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15511 (odr_types_equivalent_p, add_type_duplicate): Likewise.
15512
15513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15514
15515 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15516
15517 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15518
15519 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15520 (has_is_empty, is_empty_helper): Delete.
15521 (has_mark_deleted, mark_deleted_helper): Delete.
15522 (has_mark_empty, mark_empty_helper): Delete.
15523 (hash_table::is_deleted): Call the Descriptor unconditionally.
15524 (hash_table::is_empty): Likewise.
15525 (hash_table::mark_deleted): Likewise.
15526 (hash_table::mark_empty): Likewise.
15527
15528 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15529
15530 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
15531 redundant typedefs and members.
15532 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
15533 redundant typedefs.
15534 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15535 * ipa-devirt.c (odr_name_hasher): Likewise.
15536 (polymorphic_call_target_hasher): Likewise.
15537 * ira-costs.c (cost_classes_hasher): Likewise.
15538 * statistics.c (stats_counter_hasher): Likewise.
15539 * trans-mem.c (log_entry_hasher): Likewise.
15540 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15541 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15542 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15543 * var-tracking.c (variable_hasher): Likewise.
15544 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15545 Remove redundant typedefs and members.
15546
15547 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15548
15549 * hash-traits.h (ggc_cache_hasher): Rename to...
15550 (ggc_cache_remove): ...this and remove typedefs.
15551 (ggc_cache_ptr_hash): New class.
15552 * hash-table.h: Update commentary.
15553 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15554 rather than ggc_cache_hasher.
15555 (const_wide_int_hasher, reg_attr_hasher): Likewise.
15556 (const_double_hasher, const_fixed_hasher): Likewise.
15557 * function.c (insn_cache_hasher): Likewise.
15558 * trans-mem.c (tm_wrapper_hasher): Likewise.
15559 * tree.h (tree_decl_map_cache_hasher): Likewise.
15560 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15561 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15562 * ubsan.c (tree_type_map_cache_hasher): Likewise.
15563 * varasm.c (tm_clone_hasher): Likewise.
15564 * config/i386/i386.c (dllimport_hasher): Likewise.
15565 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15566 (tree_hasher): Likewise.
15567
15568 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15569
15570 * hash-traits.h (ggc_hasher): Rename to...
15571 (ggc_remover): ...this and remove typedefs.
15572 (ggc_cache_hasher): Update accordingly. Add typedefs.
15573 (ggc_ptr_hash): New class.
15574 * hash-table.h: Update comment.
15575 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15576 ggc_hasher.
15577 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15578 (tree_descriptor_hasher): Likewise.
15579 * cgraph.c (function_version_hasher): Likewise.
15580 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15581 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15582 (dw_loc_list_hasher, addr_hasher): Likewise.
15583 * function.h (used_type_hasher): Likewise.
15584 * function.c (temp_address_hasher): Likewise.
15585 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15586 * libfuncs.h (libfunc_hasher): Likewise.
15587 * lto-streamer.h (decl_state_hasher): Likewise.
15588 * optabs.c (libfunc_decl_hasher): Likewise.
15589 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15590 * varasm.c (section_hasher, object_block_hasher): Likewise.
15591 (const_rtx_desc_hasher): Likewise.
15592 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15593 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15594
15595 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15596
15597 * hash-traits.h (free_ptr_hash): New class.
15598 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15599 rather than typed_free_remove. Remove redudant typedefs.
15600 (external_ref_hasher): Likewise.
15601 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15602 (ehspec_hasher): Likewise.
15603 * ggc-common.c (saving_hasher): Likewise.
15604 * gimplify.c (gimplify_hasher): Likewise.
15605 * haifa-sched.c (delay_i2_hasher): Likewise.
15606 * loop-invariant.c (invariant_expr_hasher): Likewise.
15607 * loop-iv.c (biv_entry_hasher): Likewise.
15608 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15609 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15610 * tree-cfg.c (locus_discrim_hasher): Likewise.
15611 * tree-eh.c (finally_tree_hasher): Likewise.
15612 * tree-into-ssa.c (var_info_hasher): Likewise.
15613 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15614 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15615 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15616 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15617 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15618 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15619 (shared_bitmap_hasher): Likewise.
15620 * tree-ssa-threadupdate.c (redirection_data): Likewise.
15621 * tree-vectorizer.h (peel_info_hasher): Likewise.
15622 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15623 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15624
15625 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15626
15627 * hash-table.h: Update comments.
15628 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15629 (nofree_ptr_hash): New class.
15630 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15631 than typed_noop_remove. Remove redudant typedefs.
15632 * attribs.c (attribute_hasher): Likewise.
15633 * cfg.c (bb_copy_hasher): Likewise.
15634 * cselib.c (cselib_hasher): Likewise.
15635 * dse.c (invariant_group_base_hasher): Likewise.
15636 * dwarf2cfi.c (trace_info_hasher): Likewise.
15637 * dwarf2out.c (macinfo_entry_hasher): Likewise.
15638 (comdat_type_hasher, loc_list_hasher): Likewise.
15639 * gcse.c (pre_ldst_expr_hasher): Likewise.
15640 * genmatch.c (id_base): Likewise.
15641 * genrecog.c (test_pattern_hasher): Likewise.
15642 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15643 * haifa-sched.c (delay_i1_hasher): Likewise.
15644 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15645 * ipa-icf.h (congruence_class_group_hash): Likewise.
15646 * ipa-profile.c (histogram_hash): Likewise.
15647 * ira-color.c (allocno_hard_regs_hasher): Likewise.
15648 * lto-streamer.h (string_slot_hasher): Likewise.
15649 * lto-streamer.c (tree_entry_hasher): Likewise.
15650 * plugin.c (event_hasher): Likewise.
15651 * postreload-gcse.c (expr_hasher): Likewise.
15652 * store-motion.c (st_expr_hasher): Likewise.
15653 * tree-sra.c (uid_decl_hasher): Likewise.
15654 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15655 (ssa_name_var_hash): Likewise.
15656 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15657 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15658 * tree-ssa-pre.c (pre_expr_d): Likewise.
15659 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15660 * vtable-verify.h (registration_hasher): Likewise.
15661 * vtable-verify.c (vtbl_map_hasher): Likewise.
15662 * config/arm/arm.c (libcall_hasher): Likewise.
15663 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15664 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15665 * config/sol2.c (comdat_entry_hasher): Likewise.
15666 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15667 (print_fold_checksum, fold_checksum_tree): Likewise.
15668 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15669 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15670 (fold_build_call_array_loc): Likewise.
15671 * tree-ssa-ccp.c (gimple_htab): Likewise.
15672 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15673 rather than pointer_type.
15674
15675 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15676
15677 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15678 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15679
15680 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15681
15682 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15683 (ggc_hasher::ggc_mx): Likewise.
15684 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
15685 that duplicate ggc_hasher ones.
15686
15687 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15688
15689 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15690 (gt_cleare_cache): Check here for deleted and empty entries.
15691 Replace handle_cache_entry with a call to keep_cache_entry.
15692 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15693 (ggc_cache_hasher::keep_cache_entry): New function.
15694 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15695 (tm_wrapper_hasher::keep_cache_entry): New function.
15696 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15697 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15698 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15699 (type_cache_hasher::keep_cache_entry): New function.
15700 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15701 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15702 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15703 (tree_type_map_cache_hasher::keep_cache_entry): New function.
15704 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15705 (tm_clone_hasher::keep_cache_entry): New function.
15706 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15707 (dllimport_hasher::keep_cache_entry): New function.
15708
15709 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15710
15711 * hash-table.h: Include hash-traits.h.
15712 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15713 (ggc_cache_hasher): Move to...
15714 * hash-traits.h: ...this new file.
15715
15716 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15717
15718 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15719 struct cl_optimization.
15720 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15721 * tree.c (make_node_stat): Allocate cl_optimization struct.
15722 (copy_node_stat): Allocate and copy cl_optimization struct.
15723
15724 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15725
15726 * function.h (struct incoming_args): Move struct.
15727 (pass_by_reference, reference_callee_copied): Remove prototypes.
15728 * emit-rtl.h (struct incoming_args): Relocate struct here.
15729 * calls.h (pass_by_reference, reference_callee_copied): Relocate
15730 prototypes here.
15731 * function.c (pass_by_reference, reference_callee_copied): Move.
15732 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15733 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15734 * ipa-chkp.c: Include calls.h.
15735
15736 2015-06-25 Andrew Macleod <amacleod@redhat.com>
15737
15738 * alias.h (alias_set_type): Move typedef.
15739 * coretypes.h (alias_set_type): Relocate typedef here.
15740 * rtl.h: Don't include alias.h.
15741
15742 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15743
15744 * cgraph.h (cgraph_rtl_info): Move to rtl.h
15745 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
15746 and instance.
15747 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
15748 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
15749 doesn't exist.
15750 * calls.c: Include hard-reg-set.h before rtl.h.
15751 * ira.c: Likewise.
15752
15753 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15754 Vladimir Makarov <vmakarov@redhat.com>
15755
15756 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
15757 Add assert.
15758
15759 2015-06-25 Richard Biener <rguenther@suse.de>
15760
15761 * fold-const.c (fold_binary_loc): Move simplification of
15762 (X <<>> C1) & C2 ...
15763 * match.pd: ... here.
15764
15765 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
15766
15767 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
15768
15769 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15770
15771 * match.pd: Add patterns for vec_conds between 1 and 0.
15772
15773 2015-06-25 Richard Biener <rguenther@suse.de>
15774
15775 * tree-vect-stmts.c (vectorizable_conversion): Do not set
15776 STMT_VINFO_VEC_STMT for SLP.
15777 (vectorizable_store): Likewise.
15778 (vectorizable_load): Likewise.
15779 (vect_transform_stmt): Catch SLP vectorization clobbering
15780 STMT_VINFO_VEC_STMT.
15781
15782 2015-06-25 Richard Biener <rguenther@suse.de>
15783
15784 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
15785 dumping.
15786 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
15787 cleanup resulting dead code and parameters.
15788 (vect_transform_slp_perm_load): Adjust.
15789
15790 2015-06-25 Nick Clifton <nickc@redhat.com>
15791
15792 * config/bfin/bfin.c (bfin_expand_prologue): Set
15793 current_function_static_stack_size if flag_stack_usage_info is set.
15794 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
15795 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
15796 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15797 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
15798
15799 2015-06-25 Tom de Vries <tom@codesourcery.com>
15800
15801 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
15802 comment that the generated IV is unsigned.
15803
15804 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15805
15806 PR target/29693
15807 * config/arm/arm.c (arm_dbx_register_number): Return
15808 DWARF_FRAME_REGISTERS by default.
15809
15810 2015-06-25 Tom de Vries <tom@codesourcery.com>
15811
15812 * dominance.c (calculate_dominance_info): Fix verify_dominators call
15813 argument. Call verify_dominator when reusing dominator info.
15814
15815 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
15816
15817 PR target/66563
15818 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
15819 an additional element of the unspec vector. Modify indices
15820 of operands.
15821 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
15822 * config/sh/sh.c (prepare_move_operands): Pass incremented
15823 const_int to gen_GOTaddr2picreg.
15824 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
15825
15826 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15827
15828 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
15829 Condition on TARGET_FLOAT.
15830
15831 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15832
15833 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
15834 and (no)crypto.
15835
15836 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
15837
15838 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15839
15840 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
15841 aarch64_err_no_fpadvsimd.
15842
15843 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
15844 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
15845 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
15846 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
15847 Turn error into assert, test TARGET_FLOAT.
15848 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
15849 TARGET_FLOAT.
15850
15851 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
15852
15853 PR debug/66482
15854 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
15855
15856 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15857
15858 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
15859
15860 2015-06-24 Renlin Li <renlin.li@arm.com>
15861
15862 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
15863 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
15864
15865 2015-06-24 Richard Biener <rguenther@suse.de>
15866
15867 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
15868 (main): Likewise.
15869 (lower_opt_convert): Support lowering of conditional view_convert.
15870 (parser::parse_operation): Likewise.
15871 (parser::parse_for): Likewise.
15872
15873 2015-06-24 Renlin Li <renlin.li@arm.com>
15874
15875 * varasm.c (emit_local): Use unsigned int for align variable.
15876
15877 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15878
15879 PR target/63408
15880 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
15881 for negative numbers.
15882
15883 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15884
15885 PR rtl-optimization/66306
15886 * reload.c (find_reloads): Swap the match_dup info for
15887 commutative operands.
15888
15889 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15890
15891 * config/s390/vx-builtins.md
15892 ("vec_scatter_element<mode>_<non_vec_int>")
15893 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
15894 attribute with bhfgq.
15895
15896 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15897
15898 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
15899
15900 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15901
15902 * config/s390/s390-builtin-types.def: Add flag to indicate the
15903 options under which the function type is needed.
15904 * config/s390/s390-builtins.def: Add flag to indicate the options
15905 under which the builtin is enabled.
15906 * config/s390/s390-builtins.h: Add flags parameter to macro
15907 definitions.
15908 (bflags_for_builtin): New function.
15909 (flags_for_builtin): Renamed to ...
15910 (opflags_for_builtin): ... this.
15911 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
15912 flags_for_builtin to bflags_for_builtin and
15913 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
15914 * config/s390/s390.c: Add initialization of bflags_builtin and
15915 opflags_builtin arrays.
15916 Remove code for flags_builtin.
15917 (s390_init_builtins): Only create builtin function types if one of
15918 their flags is active.
15919 Only create builtins if all of their flags are active.
15920 (s390_expand_builtin): Rename flags_for_builtin to
15921 opflags_for_builtin.
15922
15923 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15924
15925 * config/s390/vecintrin.h: Remove internal builtins.
15926
15927 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15928
15929 * config/s390/s390.c (s390_secondary_reload): Fix check for
15930 GENERAL_REGS register class.
15931
15932 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15933
15934 * config/s390/s390.c (s390_support_vector_misalignment): Call
15935 default implementation for !TARGET_VX.
15936
15937 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15938
15939 * config/s390/s390.c (s390_legitimate_constant_p): Add
15940 TARGET_VX check.
15941
15942 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15943
15944 * config/s390/s390.c (s390_vector_abi): New variable definition.
15945 (s390_check_type_for_vector_abi): New function.
15946 (TARGET_ASM_FILE_END): New macro definition.
15947 (s390_asm_file_end): New function.
15948 (s390_function_arg): Call s390_check_type_for_vector_abi.
15949 (s390_gimplify_va_arg): Likewise.
15950 * configure: Regenerate.
15951 * configure.ac: Check for .gnu_attribute Binutils feature.
15952
15953 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
15954
15955 PR target/65803
15956 * config/bfin/bfin.c (hwloop_optimize): Initialize
15957 JUMP_LABEL for newly created jump.
15958
15959 2015-06-23 Tristan Gingold <gingold@adacore.com>
15960
15961 * collect-utils.c (collect_wait): Unlink the response file here
15962 instead of...
15963 (do_wait): ...here.
15964 (utils_cleanup): ...and here.
15965
15966 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
15967
15968 * df-scan.c: Don't include target-def.h.
15969 * targhooks.c: Likewise.
15970 * config/arm/arm-c.c: Likewise.
15971 * config/i386/i386-c.c: Likewise.
15972 * config/nds32/nds32-cost.c: Likewise.
15973 * config/nds32/nds32-fp-as-gp.c: Likewise.
15974 * config/nds32/nds32-intrinsic.c: Likewise.
15975 * config/nds32/nds32-isr.c: Likewise.
15976 * config/nds32/nds32-md-auxiliary.c: Likewise.
15977 * config/nds32/nds32-memory-manipulation.c: Likewise.
15978 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15979 * config/nds32/nds32-predicates.c: Likewise.
15980
15981 2015-06-23 Richard Biener <rguenther@suse.de>
15982
15983 PR tree-optimization/66636
15984 * tree-vect-stmts.c (vectorizable_store): Properly compute the
15985 def type for further defs for strided stores.
15986
15987 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
15988
15989 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
15990 conditional selects.
15991 (setcc_int<mode>, setcc_float<mode>): Reformat.
15992
15993 2015-06-23 Marek Polacek <polacek@redhat.com>
15994
15995 * match.pd ((x + y) - (x | y) -> x & y,
15996 (x + y) - (x & y) -> x | y): New patterns.
15997
15998 2015-06-23 Ludovic Courtès <ludo@gnu.org>
15999
16000 PR 65711
16001 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16002 '-dynamic-linker' within %{!shared: ...}.
16003
16004 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
16005
16006 PR target/66560
16007 * config/i386/predicates.md (addsub_vm_operator): New predicate.
16008 (addsub_vs_operator): Ditto.
16009 (addsub_vs_parallel): Ditto.
16010 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16011 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16012 Put minus RTX before plus and adjust vec_merge selector.
16013 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16014 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16015 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16016 (addsub vec_merge splitters): New combiner splitters.
16017 (addsub vec_select/vec_concat splitters): Ditto.
16018
16019 2015-06-23 Bin Cheng <bin.cheng@arm.com>
16020
16021 PR tree-optimization/66449
16022 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16023 POINTER_PLUS_EXPR for pointers.
16024
16025 2015-06-23 Alan Modra <amodra@gmail.com>
16026
16027 * rtlanal.c (commutative_operand_precedence): Correct comments.
16028 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16029 declaration. Return an int. Distinguish REG,REG return from
16030 others.
16031 (struct simplify_plus_minus_op_data): Make local to function.
16032 (simplify_plus_minus): Don't set canonicalized if merely sorting
16033 registers. Avoid packing ops if nothing changes. White space fixes.
16034
16035 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
16036
16037 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16038 -fdump-ada-spec is passed but not if -fsyntax-only is.
16039
16040 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
16041
16042 PR bootstrap/63740
16043 * lra-lives.c (process_bb_lives): Check insn copying the same
16044 reload pseudo and don't create a copy for it.
16045
16046 2015-06-22 Tom de Vries <tom@codesourcery.com>
16047
16048 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16049 for cond_stmt.
16050
16051 2015-06-22 Tom de Vries <tom@codesourcery.com>
16052
16053 * builtins.def (DEF_GOMP_BUILTIN): Test
16054 'flag_tree_parallelize_loops > 1' instead of
16055 'flag_tree_parallelize_loops'. Test flag_cilkplus.
16056
16057 2015-06-22 Tom de Vries <tom@codesourcery.com>
16058
16059 * dominance.c (calculate_dominance_info): Verify dominators if
16060 early-out.
16061
16062 2015-06-22 Marek Polacek <polacek@redhat.com>
16063
16064 * match.pd ((x ^ y) ^ (x | y) -> x & y,
16065 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16066 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16067 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16068
16069 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
16070
16071 PR target/65871
16072 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16073 cost of embedded comparison.
16074
16075 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16076
16077 PR target/65914
16078 * config/rs6000/predicates.md (altivec_register_operand): Permit
16079 virtual stack registers.
16080 (vsx_register_operand): Likewise.
16081 (vfloat_operand): Likewise.
16082 (vint_operand): Likewise.
16083 (vlogical_operand): Likewise.
16084
16085 2015-06-22 Richard Biener <rguenther@suse.de>
16086
16087 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16088 and single_scalar_iteration_cost members.
16089 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16090 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16091 (vect_get_single_scalar_iteration_cost): Remove.
16092 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16093 Use LOOP_VINFO_SCALAR_ITERATION_COST.
16094 * tree-vect-loop.c (destroy_loop_vec_info): Free
16095 scalar_cost_vec.
16096 (vect_get_single_scalar_iteration_cost): Compute result into
16097 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16098 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
16099 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16100 (vect_estimate_min_profitable_iters): Use them.
16101
16102 2015-06-22 Christian Bruel <christian.bruel@st.com>
16103
16104 PR target/52144
16105 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16106 (TARGET_INSERT_ATTRIBUTES): Define.
16107 (thumb_flipper): New var.
16108 * config/arm/arm.opt (-mflip-thumb): New switch.
16109
16110 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16111 Martin Liska <mliska@suse.cz>
16112
16113 PR ipa/65908
16114 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16115 construction of arg_types.
16116 (sem_function::sem_function): Likewise.
16117 (sem_function::~sem_function): Remove destruction of arg_types.
16118 (sem_function::compatible_parm_types_p): New function.
16119 (sem_function::equals_wpa): Reorg matching of return values
16120 and parameter types.
16121 (sem_function::equals_private): Reorg mathcing of argument types.
16122 (sem_function::parse_tree_args): Remove.
16123 * ipa-icf.h (init_wpa): Do not call it.
16124 (parse_tree_args): Remove.
16125 (compatible_parm_types_p): Declare.
16126 (result_type): Remove.
16127 (arg_types): Remove.
16128
16129 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16130
16131 PR ipa/66351
16132 * ipa-polymorphic-call.c
16133 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16134 initializing alias oracle; fix formating; set base_alias_set if it
16135 is known.
16136
16137 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
16138
16139 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16140 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16141 (find_inc): Likewise.
16142 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16143 swapping.
16144 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16145 * df-scan.c (df_swap_refs): Remove.
16146 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16147 * dominance.c (link_roots): Use std::swap instead of manually swapping.
16148 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16149 * fold-const.c (fold_relational_const): Likewise.
16150 * genattrtab.c (simplify_test_exp): Likewise.
16151 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16152 gimple_simplify): Likewise.
16153 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16154 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16155 * ipa-devirt.c (add_type_duplicate): Likewise.
16156 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16157 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16158 * lra.c (lra_create_copy): Likewise.
16159 * lto-streamer-out.c (DFS::DFS): Likewise.
16160 * modulo-sched.c (get_sched_window): Likewise.
16161 * omega.c (omega_pretty_print_problem): Likewise.
16162 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16163 * reload1.c (reloads_unique_chain_p): Likewise.
16164 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16165 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16166 use std::swap.
16167 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16168 manually swapping.
16169 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16170 predicate_mem_writes): Likewise.
16171 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16172 * tree-predcom.c (combine_chains): Likewise.
16173 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16174 refs_may_alias_p_1): Likewise.
16175 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16176 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16177 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16178 number_of_iterations_cond): Likewise.
16179 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16180 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16181 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16182 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16183 * tree-vrp.c (extract_range_from_binary_expr_1,
16184 extract_range_from_unary_expr_1): Likewise.
16185
16186 2015-06-20 Marek Polacek <polacek@redhat.com>
16187
16188 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16189
16190 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
16191
16192 PR target/66591
16193 * config/sh/sh.c (prepare_move_operands): Replace subreg
16194 index term with R0 for base and index addressing.
16195
16196 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
16197
16198 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16199 op1 is an fp zero.
16200 (movsf_aarch64): Change condition from register_operand to
16201 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
16202 load1. Change type for alternative 7 to store1.
16203 (movdf_aarch64): Likewise.
16204
16205 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
16206
16207 * config/vax/vax.md: Adjust sign/zero extend patterns to
16208 handle SUBREGs in operands[1].
16209
16210 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16211
16212 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16213 of manually swapping.
16214 (expand_vec_perm_interleave2): Likewise.
16215
16216 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
16217
16218 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16219 reuse bounds created for abnormal ssa names.
16220
16221 2015-06-19 Jakub Jelinek <jakub@redhat.com>
16222
16223 * config/nvptx/nvptx.md (allocate_stack): Rename to...
16224 (allocate_stack_<mode>): ... this, and add :P on both
16225 match_operand and unspec.
16226 (allocate_stack): New expander.
16227
16228 2015-06-19 Christian Bruel <christian.bruel@st.com>
16229
16230 PR target/66541
16231 PR target/52144
16232 * config/arm/arm.c (arm_set_current_function): Handle
16233 explicit default options.
16234
16235 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16236
16237 * config/i386/i386.md (*movsicc_noc_zext): New insn.
16238 (zero-extended cmove with mem peephole2): New pattern.
16239 (cmove with mem peephole2): Merge patterns.
16240
16241 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
16242
16243 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16244
16245 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
16246
16247 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16248 * config/mips/mips.md (*madd4<mode>): Ditto.
16249 (*nmadd3<mode>) Ditto.
16250 (*nmadd4<mode>_fastmath): Ditto.
16251 (*nmadd3<mode>_fastmath): Ditto.
16252 (*nmsub4<mode>): Ditto.
16253 (*nmsub3<mode>): Ditto.
16254 (*nmsub4<mode>_fastmath): Ditto.
16255 (*nmsub3<mode>_fastmath): Ditto.
16256
16257 2015-06-18 Michael Matz <matz@suse.de>
16258
16259 PR middle-end/66253
16260 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16261 grouped strided stores.
16262 (vectorizable_load): Don't use the DR from first_stmt in
16263 the non-SLP grouped strided case.
16264
16265 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16266
16267 PR target/66569
16268 * function.c (assign_bounds): Add arguments assign_regs,
16269 assign_special, assign_bt.
16270 (assign_parms): For vararg functions handle bounds in BT
16271 and special slots after incoming vararg bounds.
16272
16273 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16274
16275 PR middle-end/66568
16276 * cfgexpand.c (expand_return): Handle missing bounds.
16277 (expand_gimple_stmt_1): Likewise.
16278 * tree-chkp.c (chkp_expand_zero_bounds): New.
16279 * tree-chkp.h (chkp_expand_zero_bounds): New.
16280
16281 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16282
16283 PR middle-end/66567
16284 * ipa-chkp.c (chkp_maybe_create_clone): Require
16285 functions to be instrumentable.
16286 * tree-chkp.c (chkp_replace_function_pointer): Use
16287 chkp_instrumentable_p instead of attribute check.
16288
16289 2015-06-18 Richard Biener <rguenther@suse.de>
16290
16291 PR tree-optimization/66510
16292 * tree-vect-stmts.c (vectorizable_load): Properly compute the
16293 number of vector loads for SLP permuted loads.
16294 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16295 check the stride for loop vectorization.
16296 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16297 vectorization factor.
16298 (vect_analyze_group_access): If the group size is not a power
16299 of two require a epilogue loop.
16300 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16301 compute and optimizing and alias test pruning after final
16302 vectorization factor computation.
16303 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16304 vector alignment.
16305 (vect_transform_slp_perm_load): Properly compute the original
16306 number of vector load stmts.
16307
16308 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16309
16310 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16311 "unlikely character , in @var" warning.
16312
16313 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
16314
16315 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16316 (ix86_function_arg_advance): Ditto.
16317 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
16318
16319 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16320
16321 * function.h (struct rtl_data): Remove struct and accessor macros.
16322 * emit-rtl.h (struct rtl_data): Relocate to here.
16323 * Makefile.in (GTFILES): Add emit-rtl.h.
16324 * df-core.c: Include emit-rtl.h.
16325 * genattrtab.c: Likewise.
16326 * genconditions.c: Likewise.
16327 * genpreds.c: Likewise.
16328 * genrecog.c: Likewise.
16329 * regcprop.c: Likewise.
16330 * resource.c: Likewise.
16331 * sched-rgn.c: Likewise.
16332 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16333 * config/i386/winnt.c: Likewise.
16334
16335 2015-06-17 Jakub Jelinek <jakub@redhat.com>
16336
16337 PR middle-end/66429
16338 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16339 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
16340 and has_force_vectorize_loops flags from cfun into
16341 child_cfun.
16342 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16343 if simduid is non-NULL.
16344 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16345 * passes.def (pass_simduid_cleanup): Add new pass after loop
16346 passes.
16347 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16348 indirection from htab argument's type.
16349 (shrink_simd_arrays): New function.
16350 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
16351 Don't call adjust_simduid_builtins if there are no loops.
16352 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16353 (pass_simduid_cleanup::execute): New method.
16354 (make_pass_simduid_cleanup): New function.
16355
16356 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
16357
16358 * tree-core.h (tree_target_option): Make opts field a pointer to a
16359 cl_target_option instead of an instance of the struct.
16360 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16361 the structure.
16362 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16363 TARGET_OPTION_NODE.
16364 (copy_node_stat): Allocate and copy struct cl_target_option.
16365
16366 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16367
16368 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16369 Remove conditional exposure of prototypes.
16370 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16371 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
16372 definitions in tree.h with functions.
16373 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16374 anon_aggrname_p.
16375 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16376
16377 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
16378
16379 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16380 (*cmp<mode>_signed): ... this.
16381 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16382 (*cmp<mode>_unsigned): ... this. Remove %b.
16383
16384 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16385
16386 * coretypes.h: Include input.h and as-a.h.
16387 * rtl.h: Include input.h and as-a.h for generator files.
16388 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16389 * vec.c: Don't include diagnostic-core.h.
16390 * alias.c: Do not include input.h, line-map.h or is-a.h.
16391 * asan.c: Likewise.
16392 * attribs.c: Likewise.
16393 * auto-inc-dec.c: Likewise.
16394 * auto-profile.c: Likewise.
16395 * bb-reorder.c: Likewise.
16396 * bt-load.c: Likewise.
16397 * builtins.c: Likewise.
16398 * caller-save.c: Likewise.
16399 * calls.c: Likewise.
16400 * ccmp.c: Likewise.
16401 * cfg.c: Likewise.
16402 * cfganal.c: Likewise.
16403 * cfgbuild.c: Likewise.
16404 * cfgcleanup.c: Likewise.
16405 * cfgexpand.c: Likewise.
16406 * cfghooks.c: Likewise.
16407 * cfgloop.c: Likewise.
16408 * cfgloop.h: Likewise.
16409 * cfgloopanal.c: Likewise.
16410 * cfgloopmanip.c: Likewise.
16411 * cfgrtl.c: Likewise.
16412 * cgraph.c: Likewise.
16413 * cgraphbuild.c: Likewise.
16414 * cgraphclones.c: Likewise.
16415 * cgraphunit.c: Likewise.
16416 * cilk-common.c: Likewise.
16417 * combine-stack-adj.c: Likewise.
16418 * combine.c: Likewise.
16419 * compare-elim.c: Likewise.
16420 * convert.c: Likewise.
16421 * coverage.c: Likewise.
16422 * cppbuiltin.c: Likewise.
16423 * cprop.c: Likewise.
16424 * cse.c: Likewise.
16425 * cselib.c: Likewise.
16426 * data-streamer-in.c: Likewise.
16427 * data-streamer-out.c: Likewise.
16428 * data-streamer.c: Likewise.
16429 * dbxout.c: Likewise.
16430 * dce.c: Likewise.
16431 * ddg.c: Likewise.
16432 * debug.c: Likewise.
16433 * df-core.c: Likewise.
16434 * df-problems.c: Likewise.
16435 * df-scan.c: Likewise.
16436 * df.h: Likewise.
16437 * dfp.c: Likewise.
16438 * diagnostic-core.h: Likewise.
16439 * diagnostic.c: Likewise.
16440 * dojump.c: Likewise.
16441 * dominance.c: Likewise.
16442 * domwalk.c: Likewise.
16443 * double-int.c: Likewise.
16444 * dse.c: Likewise.
16445 * dumpfile.c: Likewise.
16446 * dumpfile.h: Likewise.
16447 * dwarf2asm.c: Likewise.
16448 * dwarf2cfi.c: Likewise.
16449 * dwarf2out.c: Likewise.
16450 * emit-rtl.c: Likewise.
16451 * et-forest.c: Likewise.
16452 * except.c: Likewise.
16453 * explow.c: Likewise.
16454 * expmed.c: Likewise.
16455 * expr.c: Likewise.
16456 * final.c: Likewise.
16457 * fixed-value.c: Likewise.
16458 * fold-const.c: Likewise.
16459 * function.c: Likewise.
16460 * fwprop.c: Likewise.
16461 * gcc-plugin.h: Likewise.
16462 * gcse.c: Likewise.
16463 * generic-match-head.c: Likewise.
16464 * ggc-page.c: Likewise.
16465 * gimple-builder.c: Likewise.
16466 * gimple-expr.c: Likewise.
16467 * gimple-fold.c: Likewise.
16468 * gimple-iterator.c: Likewise.
16469 * gimple-low.c: Likewise.
16470 * gimple-match-head.c: Likewise.
16471 * gimple-pretty-print.c: Likewise.
16472 * gimple-ssa-isolate-paths.c: Likewise.
16473 * gimple-ssa-strength-reduction.c: Likewise.
16474 * gimple-streamer-in.c: Likewise.
16475 * gimple-streamer-out.c: Likewise.
16476 * gimple-streamer.h: Likewise.
16477 * gimple-walk.c: Likewise.
16478 * gimple.c: Likewise.
16479 * gimplify-me.c: Likewise.
16480 * gimplify.c: Likewise.
16481 * godump.c: Likewise.
16482 * graph.c: Likewise.
16483 * graphite-blocking.c: Likewise.
16484 * graphite-dependences.c: Likewise.
16485 * graphite-interchange.c: Likewise.
16486 * graphite-isl-ast-to-gimple.c: Likewise.
16487 * graphite-optimize-isl.c: Likewise.
16488 * graphite-poly.c: Likewise.
16489 * graphite-scop-detection.c: Likewise.
16490 * graphite-sese-to-poly.c: Likewise.
16491 * graphite.c: Likewise.
16492 * haifa-sched.c: Likewise.
16493 * hw-doloop.c: Likewise.
16494 * ifcvt.c: Likewise.
16495 * init-regs.c: Likewise.
16496 * input.c: Likewise.
16497 * internal-fn.c: Likewise.
16498 * ipa-chkp.c: Likewise.
16499 * ipa-comdats.c: Likewise.
16500 * ipa-cp.c: Likewise.
16501 * ipa-devirt.c: Likewise.
16502 * ipa-icf-gimple.c: Likewise.
16503 * ipa-icf.c: Likewise.
16504 * ipa-inline-analysis.c: Likewise.
16505 * ipa-inline-transform.c: Likewise.
16506 * ipa-inline.c: Likewise.
16507 * ipa-polymorphic-call.c: Likewise.
16508 * ipa-profile.c: Likewise.
16509 * ipa-prop.c: Likewise.
16510 * ipa-pure-const.c: Likewise.
16511 * ipa-ref.c: Likewise.
16512 * ipa-reference.c: Likewise.
16513 * ipa-split.c: Likewise.
16514 * ipa-utils.c: Likewise.
16515 * ipa-visibility.c: Likewise.
16516 * ipa.c: Likewise.
16517 * ira-build.c: Likewise.
16518 * ira-color.c: Likewise.
16519 * ira-conflicts.c: Likewise.
16520 * ira-costs.c: Likewise.
16521 * ira-emit.c: Likewise.
16522 * ira-lives.c: Likewise.
16523 * ira.c: Likewise.
16524 * jump.c: Likewise.
16525 * langhooks.c: Likewise.
16526 * lcm.c: Likewise.
16527 * loop-doloop.c: Likewise.
16528 * loop-init.c: Likewise.
16529 * loop-invariant.c: Likewise.
16530 * loop-iv.c: Likewise.
16531 * loop-unroll.c: Likewise.
16532 * lower-subreg.c: Likewise.
16533 * lra-assigns.c: Likewise.
16534 * lra-coalesce.c: Likewise.
16535 * lra-constraints.c: Likewise.
16536 * lra-eliminations.c: Likewise.
16537 * lra-lives.c: Likewise.
16538 * lra-remat.c: Likewise.
16539 * lra-spills.c: Likewise.
16540 * lra.c: Likewise.
16541 * lto-cgraph.c: Likewise.
16542 * lto-compress.c: Likewise.
16543 * lto-opts.c: Likewise.
16544 * lto-section-in.c: Likewise.
16545 * lto-section-out.c: Likewise.
16546 * lto-streamer-in.c: Likewise.
16547 * lto-streamer-out.c: Likewise.
16548 * lto-streamer.c: Likewise.
16549 * mcf.c: Likewise.
16550 * mode-switching.c: Likewise.
16551 * modulo-sched.c: Likewise.
16552 * omega.c: Likewise.
16553 * omp-low.c: Likewise.
16554 * optabs.c: Likewise.
16555 * opts-global.c: Likewise.
16556 * opts.h: Likewise.
16557 * passes.c: Likewise.
16558 * plugin.c: Likewise.
16559 * postreload-gcse.c: Likewise.
16560 * postreload.c: Likewise.
16561 * predict.c: Likewise.
16562 * pretty-print.h: Likewise.
16563 * print-rtl.c: Likewise.
16564 * print-tree.c: Likewise.
16565 * profile.c: Likewise.
16566 * real.c: Likewise.
16567 * realmpfr.c: Likewise.
16568 * recog.c: Likewise.
16569 * ree.c: Likewise.
16570 * reg-stack.c: Likewise.
16571 * regcprop.c: Likewise.
16572 * reginfo.c: Likewise.
16573 * regrename.c: Likewise.
16574 * regstat.c: Likewise.
16575 * reload.c: Likewise.
16576 * reload1.c: Likewise.
16577 * reorg.c: Likewise.
16578 * resource.c: Likewise.
16579 * rtl-chkp.c: Likewise.
16580 * rtl-error.c: Likewise.
16581 * rtlanal.c: Likewise.
16582 * rtlhooks.c: Likewise.
16583 * sanopt.c: Likewise.
16584 * sched-deps.c: Likewise.
16585 * sched-ebb.c: Likewise.
16586 * sched-rgn.c: Likewise.
16587 * sched-vis.c: Likewise.
16588 * sdbout.c: Likewise.
16589 * sel-sched-dump.c: Likewise.
16590 * sel-sched-ir.c: Likewise.
16591 * sel-sched.c: Likewise.
16592 * sese.c: Likewise.
16593 * shrink-wrap.c: Likewise.
16594 * simplify-rtx.c: Likewise.
16595 * stack-ptr-mod.c: Likewise.
16596 * statistics.c: Likewise.
16597 * stmt.c: Likewise.
16598 * stor-layout.c: Likewise.
16599 * store-motion.c: Likewise.
16600 * streamer-hooks.c: Likewise.
16601 * stringpool.c: Likewise.
16602 * symtab.c: Likewise.
16603 * target-globals.c: Likewise.
16604 * targhooks.c: Likewise.
16605 * toplev.c: Likewise.
16606 * tracer.c: Likewise.
16607 * trans-mem.c: Likewise.
16608 * tree-affine.c: Likewise.
16609 * tree-browser.c: Likewise.
16610 * tree-call-cdce.c: Likewise.
16611 * tree-cfg.c: Likewise.
16612 * tree-cfgcleanup.c: Likewise.
16613 * tree-chkp-opt.c: Likewise.
16614 * tree-chkp.c: Likewise.
16615 * tree-chrec.c: Likewise.
16616 * tree-complex.c: Likewise.
16617 * tree-data-ref.c: Likewise.
16618 * tree-dfa.c: Likewise.
16619 * tree-diagnostic.c: Likewise.
16620 * tree-dump.c: Likewise.
16621 * tree-eh.c: Likewise.
16622 * tree-emutls.c: Likewise.
16623 * tree-if-conv.c: Likewise.
16624 * tree-inline.c: Likewise.
16625 * tree-into-ssa.c: Likewise.
16626 * tree-iterator.c: Likewise.
16627 * tree-loop-distribution.c: Likewise.
16628 * tree-nested.c: Likewise.
16629 * tree-nrv.c: Likewise.
16630 * tree-object-size.c: Likewise.
16631 * tree-outof-ssa.c: Likewise.
16632 * tree-parloops.c: Likewise.
16633 * tree-phinodes.c: Likewise.
16634 * tree-predcom.c: Likewise.
16635 * tree-pretty-print.c: Likewise.
16636 * tree-profile.c: Likewise.
16637 * tree-scalar-evolution.c: Likewise.
16638 * tree-sra.c: Likewise.
16639 * tree-ssa-address.c: Likewise.
16640 * tree-ssa-alias.c: Likewise.
16641 * tree-ssa-ccp.c: Likewise.
16642 * tree-ssa-coalesce.c: Likewise.
16643 * tree-ssa-copy.c: Likewise.
16644 * tree-ssa-copyrename.c: Likewise.
16645 * tree-ssa-dce.c: Likewise.
16646 * tree-ssa-dom.c: Likewise.
16647 * tree-ssa-dse.c: Likewise.
16648 * tree-ssa-forwprop.c: Likewise.
16649 * tree-ssa-ifcombine.c: Likewise.
16650 * tree-ssa-live.c: Likewise.
16651 * tree-ssa-loop-ch.c: Likewise.
16652 * tree-ssa-loop-im.c: Likewise.
16653 * tree-ssa-loop-ivcanon.c: Likewise.
16654 * tree-ssa-loop-ivopts.c: Likewise.
16655 * tree-ssa-loop-manip.c: Likewise.
16656 * tree-ssa-loop-niter.c: Likewise.
16657 * tree-ssa-loop-prefetch.c: Likewise.
16658 * tree-ssa-loop-unswitch.c: Likewise.
16659 * tree-ssa-loop.c: Likewise.
16660 * tree-ssa-math-opts.c: Likewise.
16661 * tree-ssa-operands.c: Likewise.
16662 * tree-ssa-phiopt.c: Likewise.
16663 * tree-ssa-phiprop.c: Likewise.
16664 * tree-ssa-pre.c: Likewise.
16665 * tree-ssa-propagate.c: Likewise.
16666 * tree-ssa-reassoc.c: Likewise.
16667 * tree-ssa-sccvn.c: Likewise.
16668 * tree-ssa-scopedtables.c: Likewise.
16669 * tree-ssa-sink.c: Likewise.
16670 * tree-ssa-strlen.c: Likewise.
16671 * tree-ssa-structalias.c: Likewise.
16672 * tree-ssa-tail-merge.c: Likewise.
16673 * tree-ssa-ter.c: Likewise.
16674 * tree-ssa-threadedge.c: Likewise.
16675 * tree-ssa-threadupdate.c: Likewise.
16676 * tree-ssa-uncprop.c: Likewise.
16677 * tree-ssa-uninit.c: Likewise.
16678 * tree-ssa.c: Likewise.
16679 * tree-ssanames.c: Likewise.
16680 * tree-stdarg.c: Likewise.
16681 * tree-streamer-in.c: Likewise.
16682 * tree-streamer-out.c: Likewise.
16683 * tree-streamer.c: Likewise.
16684 * tree-switch-conversion.c: Likewise.
16685 * tree-tailcall.c: Likewise.
16686 * tree-vect-data-refs.c: Likewise.
16687 * tree-vect-generic.c: Likewise.
16688 * tree-vect-loop-manip.c: Likewise.
16689 * tree-vect-loop.c: Likewise.
16690 * tree-vect-patterns.c: Likewise.
16691 * tree-vect-slp.c: Likewise.
16692 * tree-vect-stmts.c: Likewise.
16693 * tree-vectorizer.c: Likewise.
16694 * tree-vrp.c: Likewise.
16695 * tree.c: Likewise.
16696 * tsan.c: Likewise.
16697 * ubsan.c: Likewise.
16698 * valtrack.c: Likewise.
16699 * value-prof.c: Likewise.
16700 * var-tracking.c: Likewise.
16701 * varasm.c: Likewise.
16702 * varpool.c: Likewise.
16703 * vmsdbgout.c: Likewise.
16704 * vtable-verify.c: Likewise.
16705 * web.c: Likewise.
16706 * wide-int.cc: Likewise.
16707 * xcoffout.c: Likewise.
16708 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16709 * common/common-targhooks.c: Likewise.
16710 * config/aarch64/aarch64-builtins.c: Likewise.
16711 * config/aarch64/aarch64.c: Likewise.
16712 * config/alpha/alpha.c: Likewise.
16713 * config/arc/arc.c: Likewise.
16714 * config/arm/aarch-common.c: Likewise.
16715 * config/arm/arm-builtins.c: Likewise.
16716 * config/arm/arm-c.c: Likewise.
16717 * config/arm/arm.c: Likewise.
16718 * config/avr/avr-c.c: Likewise.
16719 * config/avr/avr-log.c: Likewise.
16720 * config/avr/avr.c: Likewise.
16721 * config/bfin/bfin.c: Likewise.
16722 * config/c6x/c6x.c: Likewise.
16723 * config/cr16/cr16.c: Likewise.
16724 * config/cris/cris.c: Likewise.
16725 * config/darwin-c.c: Likewise.
16726 * config/darwin.c: Likewise.
16727 * config/default-c.c: Likewise.
16728 * config/epiphany/epiphany.c: Likewise.
16729 * config/epiphany/mode-switch-use.c: Likewise.
16730 * config/epiphany/resolve-sw-modes.c: Likewise.
16731 * config/fr30/fr30.c: Likewise.
16732 * config/frv/frv.c: Likewise.
16733 * config/ft32/ft32.c: Likewise.
16734 * config/glibc-c.c: Likewise.
16735 * config/h8300/h8300.c: Likewise.
16736 * config/i386/i386-c.c: Likewise.
16737 * config/i386/i386.c: Likewise.
16738 * config/i386/msformat-c.c: Likewise.
16739 * config/i386/winnt-cxx.c: Likewise.
16740 * config/i386/winnt-stubs.c: Likewise.
16741 * config/i386/winnt.c: Likewise.
16742 * config/ia64/ia64-c.c: Likewise.
16743 * config/ia64/ia64.c: Likewise.
16744 * config/iq2000/iq2000.c: Likewise.
16745 * config/lm32/lm32.c: Likewise.
16746 * config/m32c/m32c-pragma.c: Likewise.
16747 * config/m32c/m32c.c: Likewise.
16748 * config/m32r/m32r.c: Likewise.
16749 * config/m68k/m68k.c: Likewise.
16750 * config/mcore/mcore.c: Likewise.
16751 * config/mep/mep-pragma.c: Likewise.
16752 * config/mep/mep.c: Likewise.
16753 * config/microblaze/microblaze-c.c: Likewise.
16754 * config/microblaze/microblaze.c: Likewise.
16755 * config/mips/mips.c: Likewise.
16756 * config/mmix/mmix.c: Likewise.
16757 * config/mn10300/mn10300.c: Likewise.
16758 * config/moxie/moxie.c: Likewise.
16759 * config/msp430/msp430-c.c: Likewise.
16760 * config/msp430/msp430.c: Likewise.
16761 * config/nds32/nds32-cost.c: Likewise.
16762 * config/nds32/nds32-fp-as-gp.c: Likewise.
16763 * config/nds32/nds32-intrinsic.c: Likewise.
16764 * config/nds32/nds32-isr.c: Likewise.
16765 * config/nds32/nds32-md-auxiliary.c: Likewise.
16766 * config/nds32/nds32-memory-manipulation.c: Likewise.
16767 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16768 * config/nds32/nds32-predicates.c: Likewise.
16769 * config/nds32/nds32.c: Likewise.
16770 * config/nios2/nios2.c: Likewise.
16771 * config/nvptx/nvptx.c: Likewise.
16772 * config/pa/pa.c: Likewise.
16773 * config/pdp11/pdp11.c: Likewise.
16774 * config/rl78/rl78-c.c: Likewise.
16775 * config/rl78/rl78.c: Likewise.
16776 * config/rs6000/rs6000-c.c: Likewise.
16777 * config/rs6000/rs6000.c: Likewise.
16778 * config/rx/rx.c: Likewise.
16779 * config/s390/s390-c.c: Likewise.
16780 * config/s390/s390.c: Likewise.
16781 * config/sh/sh-c.c: Likewise.
16782 * config/sh/sh-mem.cc: Likewise.
16783 * config/sh/sh.c: Likewise.
16784 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16785 * config/sh/sh_treg_combine.cc: Likewise.
16786 * config/sol2-c.c: Likewise.
16787 * config/sol2-cxx.c: Likewise.
16788 * config/sol2-stubs.c: Likewise.
16789 * config/sol2.c: Likewise.
16790 * config/sparc/sparc-c.c: Likewise.
16791 * config/sparc/sparc.c: Likewise.
16792 * config/spu/spu-c.c: Likewise.
16793 * config/spu/spu.c: Likewise.
16794 * config/stormy16/stormy16.c: Likewise.
16795 * config/tilegx/mul-tables.c: Likewise.
16796 * config/tilegx/tilegx-c.c: Likewise.
16797 * config/tilegx/tilegx.c: Likewise.
16798 * config/tilepro/mul-tables.c: Likewise.
16799 * config/tilepro/tilepro-c.c: Likewise.
16800 * config/tilepro/tilepro.c: Likewise.
16801 * config/v850/v850-c.c: Likewise.
16802 * config/v850/v850.c: Likewise.
16803 * config/vax/vax.c: Likewise.
16804 * config/visium/visium.c: Likewise.
16805 * config/vms/vms-c.c: Likewise.
16806 * config/vms/vms.c: Likewise.
16807 * config/vxworks.c: Likewise.
16808 * config/winnt-c.c: Likewise.
16809 * config/xtensa/xtensa.c: Likewise.
16810
16811 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
16812
16813 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
16814 function.
16815 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
16816
16817 2015-06-17 Richard Biener <rguenther@suse.de>
16818
16819 PR tree-optimization/66251
16820 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
16821 stmts for SLP strided stores.
16822
16823 Revert
16824 2015-05-22 Richard Biener <rguenther@suse.de>
16825
16826 PR tree-optimization/66251
16827 * tree-vect-stmts.c (vectorizable_conversion): Properly
16828 set STMT_VINFO_VEC_STMT even for the SLP case.
16829
16830 2015-05-26 Michael Matz <matz@suse.de>
16831
16832 PR middle-end/66251
16833 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
16834 STMT_VINFO_VEC_STMT, also with SLP.
16835
16836 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
16837
16838 PR target/56766
16839 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
16840 (*avx_addsubv4df3_1s): Ditto.
16841 (*sse3_addsubv2df3_1): Ditto.
16842 (*sse3_addsubv2df3_1s): Ditto.
16843 (*avx_addsubv8sf3_1): Ditto.
16844 (*avx_addsubv8sf3_1s): Ditto.
16845 (*sse3_addsubv4sf3_1): Ditto.
16846 (*sse3_addsubv4sf3_1s): Ditto.
16847
16848 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
16849
16850 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
16851 (SYSROOT_SUFFIX_SPEC): Update.
16852 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
16853 (STARTFILE_PREFIX_SPEC): Update.
16854 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
16855 (MULTILIB_REQUIRED): New.
16856 (MULTILIB_OSDIRNAMES): New.
16857 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
16858 (MULTILIB_REQUIRED): New.
16859 (MULTILIB_OSDIRNAMES): New.
16860
16861 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
16862
16863 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
16864 * config/aarch64/aarch64-options-extensions.def: Update "fP",
16865 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
16866 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
16867 (AARCH64_FL_PAN): New.
16868 (AARCH64_FL_LOR): New.
16869 (AARCH64_FL_RDMA): New.
16870 (AARCH64_FL_FOR_ARCH8_1): New.
16871 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
16872 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
16873
16874 2015-06-16 Martin Liska <mliska@suse.cz>
16875
16876 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
16877 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
16878 guard.
16879
16880 2015-06-16 Richard Biener <rguenther@suse.de>
16881
16882 * tree-vect-stmts.c (vectorizable_store): Adjust.
16883 (vectorizable_load): Likewise.
16884 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16885 Simplify.
16886 (vect_create_data_ref_ptr): Likewise.
16887 (bump_vector_ptr): Adjust.
16888
16889 2015-06-16 Richard Biener <rguenther@suse.de>
16890
16891 * tree-vect-stmts.c (vectorizable_load): Properly start loads
16892 with the first element if this is grouped loads.
16893
16894 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
16895
16896 * config/arm/arm-protos.h (struct tune_params): Rename
16897 log_op_non_sc to log_op_non_short_circuit, and rename enum
16898 values to expand SC to SHORT_CIRCUIT.
16899 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
16900 to LOG_OP_NON_SHORT_CIRCUIT.
16901 (arm_fastmul_tune):Likewise
16902 (arm_strongarm_tune): Likewise.
16903 (arm_xscale_tune): Likewise.
16904 (arm_9e_tune): Likewise.
16905 (arm_marvell_pj4_tune): Likewise.
16906 (arm_v6t2_tune): Likewise.
16907 (arm_cortex_tune): Likewise.
16908 (arm_cortex_a8_tune): Likewise.
16909 (arm_cortex_a7_tune): Likewise.
16910 (arm_cortex_a15_tune): Likewise.
16911 (arm_cortex_a53_tune): Likewise.
16912 (arm_cortex_a57_tune): Likewise.
16913 (arm_xgene1_tune): Likewise.
16914 (arm_cortex_a5_tune): Likewise.
16915 (arm_cortex_a9_tune): Likewise.
16916 (arm_cortex_a12_tune): Likewise.
16917 (arm_v7m_tune): Likewise.
16918 (arm_cortex_m7_tune): Likewise.
16919 (arm_v6m_tune): Likewise.
16920 (arm_fa726te_tune): Likewise.
16921
16922 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
16923
16924 * altivec.md: Delete UNSPEC_VMLADDUHM.
16925 (mulv4si3_p8): New pattern.
16926 (mulv4si3): Use it for POWER8.
16927 (mulv8hi3): Use vmladduhm with zero addend.
16928 (altivec_vmladduhm): Descriptive RTL.
16929
16930 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
16931
16932 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
16933 to use neon_move instead of mov_imm.
16934 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
16935 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
16936
16937 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
16938 aarch64_float_const_zero_rtx_p check before TFmode check.
16939 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
16940 an fp zero.
16941 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
16942 code and attributes to match. Change condition from register_operand
16943 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
16944 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
16945 to store2.
16946
16947 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
16948
16949 PR debug/66535
16950 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
16951 there is no parent.
16952
16953 2015-06-14 Shiva Chen <shiva0217@gmail.com>
16954
16955 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
16956 HOST_WIDE_INT parameter.
16957
16958 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
16959
16960 PR ipa/66181
16961 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
16962 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
16963 TYPE_NO_FORCE_BLK.
16964 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
16965
16966 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
16967
16968 * rtl.h (classify_insn): Declare.
16969 * emit-rtl.c (classify_insn): Move to...
16970 * rtl.c: ...here and add generator support.
16971 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
16972 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
16973 * genemit.c (gen_emit_seq): New function.
16974 (gen_expand, gen_split): Use it.
16975
16976 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
16977
16978 * tree.c (make_vector_stat): Fix comment to state that the
16979 function returns a VECTOR_CST.
16980
16981 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
16982
16983 * gensupport.h (add_implicit_parallel): Declare.
16984 * genrecog.c (add_implicit_parallel): Move to...
16985 * gensupport.c (add_implicit_parallel): ...here.
16986 (process_one_cond_exec): Use it.
16987 * genemit.c (gen_insn): Likewise.
16988
16989 2015-06-13 Iain Sandoe <iain@codesourcery.com>
16990
16991 PR bootstrap/66448
16992 * passes.c (rest_of_decl_compilation): Do not register globals for
16993 early debug if they are declared in built-ins.
16994
16995 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
16996
16997 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
16998
16999 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17000
17001 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17002 manually swapping.
17003 (noce_try_cmove_arith): Likewise.
17004 (noce_get_alt_condition): Likewise.
17005
17006 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17007
17008 * common/config/i386/i386-common.c
17009 (OPTION_MASK_ISA_MWAITX_SET): New.
17010 (ix86_handle_option): Handle mwaitx.
17011 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17012 (x86_64-*-*): Likewise.
17013 * config/i386/mwaitxintrin.h: New header.
17014 * config/i386/cpuid.h (bit_MWAITX): Define.
17015 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17016 MWAITX support.
17017 * config/i386/i386.opt (mwaitx): New.
17018 * config/i386/i386-builtin-types.def
17019 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17020 * config/i386/i386-c.c: Define __MWAITX__ if needed.
17021 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17022 (PTA_MWAITX): New.
17023 (ix86_option_override_internal): Handle new option.
17024 (processor_alias_table): Added PTA_MWAITX.
17025 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17026 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17027 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17028 IX86_BUILTIN_MONITORX built-ins.
17029 * config/i386/i386.h (TARGET_MWAITX): New.
17030 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17031 UNSPEC_MONITORX.
17032 (mwaitx): New pattern.
17033 (monitorx_<mode>): New pattern.
17034 * config/i386/x86intrin.h: Include mwaitxintrin.h.
17035 * doc/extend.texi: Document monitorx and mwaitx builtins.
17036 * doc/invoke.texi: Document -mmwaitx option.
17037
17038 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
17039
17040 * emit-rtl.c (need_atomic_barrier_p): Mask model with
17041 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
17042
17043 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17044
17045 * dbxout.c (xcoff_debug_hooks): Provide a function for
17046 register_main_translation_unit hook.
17047
17048 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17049
17050 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17051 variants cases from switch.
17052 (rs6000_post_atomic_barrier): Same.
17053 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17054 (rs6000_expand_atomic_exchange): Same.
17055 (rs6000_expand_atomic_op): Same.
17056 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17057 SYNC variants cases from switch.
17058 (atomic_load): Same.
17059 (atomic_store): Same.
17060
17061 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
17062
17063 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17064 CONST_INT for goto.
17065
17066 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
17067
17068 PR bootstrap/66448
17069 * dwarf2out.c (check_die): Check for common duplicate attributes.
17070 (add_location_or_const_value_attribute): Do not add duplicate
17071 attributes.
17072 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17073 time around.
17074 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17075 (gen_type_die_with_usage): Call check_die.
17076 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17077
17078 2015-06-11 Jason Merrill <jason@redhat.com>
17079
17080 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17081 dies.
17082
17083 2015-06-11 Marek Polacek <polacek@redhat.com>
17084
17085 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17086
17087 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
17088
17089 PR bootstrap/66252
17090 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17091 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17092 (*addx_extend_sp32): Fix pasto.
17093 (*subx_extend): Rename into...
17094 (*subx_extend_sp32): ...this.
17095 (*adddi3_extend_sp32): Add earlyclobber.
17096 (*subdi3_insn_sp32): Likewise.
17097 (*subdi3_extend_sp32): Likewise.
17098 (*and_not_di_sp32): Likewise.
17099 (*or_not_di_sp32): Likewise.
17100 (*xor_not_di_sp32): Likewise.
17101 (*negdi2_sp32): Likewise.
17102 (*one_cmpldi2_sp32): Likewise.
17103
17104 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
17105
17106 * debug.h (struct gcc_debug_hooks): Add a
17107 register_main_translation_unit hook.
17108 * debug.c (do_nothing_debug_hooks): Provide a function for this
17109 new hook.
17110 * dbxout.c (dbx_debug_hooks): Likewise.
17111 * sdbout.c (sdb_debug_hooks): Likewise.
17112 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17113 * dwarf2out.c (main_translation_unit): New global variable.
17114 (dwarf2out_register_main_translation_unit): New function
17115 implementing the new hook.
17116 (dwarf2_debug_hooks): Assign
17117 dwarf2out_register_main_translation_unit to this new hook.
17118 (dwarf2out_init): Associate any main translation unit to
17119 comp_unit_die ().
17120
17121 2015-06-11 Marek Polacek <polacek@redhat.com>
17122
17123 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17124
17125 2015-06-11 Marek Polacek <polacek@redhat.com>
17126
17127 * match.pd: Use single_use throughout.
17128
17129 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17130
17131 * config/arm/arm.c (arm_option_params_internal): When optimising
17132 for speed set max_insns_skipped when arm_restrict_it.
17133
17134 2015-06-11 Christian Bruel <christian.bruel@st.com>
17135
17136 PR target/52144
17137 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17138 macros in ...
17139 (arm_cpu_builtins): New function.
17140 (arm_pragma_target_parse): Call arm_cpu_builtins.
17141 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17142 (arm_register_target_pragmas): Likewise.
17143 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17144 Call arm_register_target_pragmas.
17145 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17146 (arm_pragma_target_parse): Likewise.
17147
17148 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
17149
17150 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17151 of the second operand.
17152
17153 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
17154
17155 PR target/66473
17156 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17157 to prepare mask operand for AVX512 modes.
17158
17159 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
17160
17161 PR target/66474
17162 * doc/md.texi (Machine Constraints): Document that on the PowerPC
17163 if you use a constraint that targets a VSX register, you must use
17164 %x<n> in the template.
17165
17166 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
17167
17168 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17169 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17170 (define_insn "trap"): New definition.
17171
17172 2015-06-10 Richard Biener <rguenther@suse.de>
17173
17174 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17175 out from ...
17176 (vect_supported_load_permutation_p): ... here. Handle
17177 supportable permutations in reductions.
17178 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17179 for vectorizing strided group loads.
17180
17181 2015-06-10 Jakub Jelinek <jakub@redhat.com>
17182
17183 PR target/66470
17184 * config/i386/i386.c (ix86_split_long_move): For collisions
17185 involving direct tls segment refs, move the UNSPEC_TP possibly
17186 wrapped in ZERO_EXTEND out of the address for lea, to each of
17187 the memory loads.
17188
17189 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17190
17191 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17192 dmb sy. Adjust tabs.
17193
17194 2015-06-10 Tom de Vries <tom@codesourcery.com>
17195
17196 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17197
17198 2015-06-10 Martin Liska <mliska@suse.cz>
17199
17200 PR bootstrap/66471
17201 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17202 all enum values in mem_alloc_origin.
17203 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17204 name.
17205 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17206 * bitmap.c (bitmap_register): Likewise.
17207 (dump_bitmap_statistics): Likewise.
17208 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17209 (ggc_record_overhead): Likewise.
17210 * hash-map.h: Likewise.
17211 * hash-set.h: Likewise.
17212 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17213 * hash-table.h: Likewise.
17214 * vec.c (vec_prefix::register_overhead): Likewise.
17215 (vec_prefix::release_overhead): Likewise.
17216 (dump_vec_loc_statistics): Likewise.
17217
17218 2015-06-09 Christian Bruel <christian.bruel@st.com>
17219
17220 PR target/52144
17221 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17222 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17223 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17224 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17225 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17226 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17227 (arm_valid_target_attribute_p): Likewise.
17228 (arm_set_current_function, arm_can_inline_p): Likewise.
17229 (arm_valid_target_attribute_rec): Likewise.
17230 (arm_previous_fndecl): New variable.
17231 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17232 (TARGET_CAN_INLINE_P): Define.
17233 (arm_asm_trampoline_template): Emit mode.
17234 (arm_file_start): Don't set unified syntax.
17235 (arm_declare_function_name): Set unified syntax and mode.
17236 (arm_option_override): Init target_option_default_node.
17237 and target_option_current_node.
17238 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17239 (*call_symbol): Likewise.
17240 * doc/extend.texi: Document ARM/Thumb target attribute.
17241 * doc/invoke.texi: Likewise.
17242
17243 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17244
17245 Revert:
17246 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17247 PR rtl-optimization/64164
17248 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17249 * tree-ssa-copyrename.c: Removed.
17250 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17251 -ftree-coalesce-vars.
17252 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17253 * common.opt (ftree-copyrename): Ignore.
17254 (ftree-coalesce-inlined-vars): Likewise.
17255 * doc/invoke.texi: Remove the ignored options above.
17256 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17257 * tree-ssa-coalesce.h: ... here.
17258 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17259 headers required by it.
17260 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17261 across variables when flag_tree_coalesce_vars. Check register
17262 use and promoted modes to allow coalescing. Moved to
17263 tree-ssa-coalesce.c.
17264 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17265 with its member functions to tree-ssa-coalesce.c.
17266 (var_map_base_init): Likewise. Renamed to
17267 compute_samebase_partition_bases.
17268 (partition_view_normal): Drop want_bases parameter.
17269 (partition_view_bitmap): Likewise.
17270 * tree-ssa-live.h: Adjust declarations.
17271 * tree-ssa-coalesce.c: Include explow.h.
17272 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17273 default defs at the entry point.
17274 (dump_part_var_map): New.
17275 (compute_optimized_partition_bases): New, called by...
17276 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17277 of compute_samebase_partition_bases. Adjust.
17278 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17279 * cfgexpand.c (leader_merge): New.
17280 (get_rtl_for_parm_ssa_default_def): New.
17281 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17282 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17283 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17284 redundant MEM attr setting.
17285 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17286 from...
17287 (expand_one_stack_var): ... this. New wrapper to check and
17288 skip already expanded SSA partitions.
17289 (record_alignment_for_reg_var): New, factored out of...
17290 (expand_one_var): ... this.
17291 (expand_one_ssa_partition): New.
17292 (adjust_one_expanded_partition_var): New.
17293 (expand_one_register_var): Check and skip already expanded SSA
17294 partitions.
17295 (expand_used_vars): Don't create DECLs for anonymous SSA
17296 names. Expand all SSA partitions, then adjust all SSA names.
17297 (pass::execute): Replace the loops that set
17298 SA.partition_to_pseudo from partition leaders and cleared
17299 DECL_RTL for multi-location variables, and that which used to
17300 rename vars and set attrs, with one that clears DECL_RTL and
17301 checks that PARMs and RESULTs default_defs match DECL_RTL.
17302 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17303 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17304 * explow.c (promote_ssa_mode): New.
17305 * explow.h (promote_ssa_mode): Declare.
17306 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17307 * function.c: Include cfgexpand.h.
17308 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17309 (use_register_for_parm_decl): Wrapper for the above to
17310 special-case the result_ptr.
17311 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17312 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17313 multiple locations.
17314 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17315 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17316 (assign_parm_setup_block): Prefer SSA-assigned location.
17317 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17318 if stack_parm is NULL.
17319 (assign_parm_setup_stack): Prefer SSA-assigned location.
17320 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17321 rtl before testing for pointer bounds. Special-case result_ptr.
17322 (expand_function_start): Maybe reset DECL_RTL of result.
17323 Prefer SSA-assigned location for result and static chain.
17324 Factor out DECL_RESULT and SET_DECL_RTL.
17325 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17326 anonymous SSA names. Use promote_ssa_mode.
17327 (get_temp_reg): Likewise.
17328 (remove_ssa_form): Adjust.
17329 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17330 and get its reg_usage for reg invalidation.
17331 (compute_bb_dataflow): Pass it insn.
17332 (emit_notes_in_bb): Likewise.
17333 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17334 fail assert on conversion between unsigned types.
17335
17336 2015-06-09 Tom de Vries <tom@codesourcery.com>
17337
17338 PR tree-optimization/65460
17339 * omp-low.c (expand_omp_target): Set parallelized_function on
17340 cgraph_node for child_fn.
17341
17342 2015-06-09 Tom de Vries <tom@codesourcery.com>
17343
17344 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17345 parallelized_function before add_new_function.
17346
17347 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
17348
17349 * gcc-plugin.h: Move decls to plugin.h and include it.
17350 * plugin.h: Relocate decls from gcc-plugin.h
17351 * ggc-page.c: Include required header files.
17352 * passes.c: Likewise.
17353 * cgraphunit.c: Likewise.
17354
17355 2015-06-09 Tom de Vries <tom@codesourcery.com>
17356
17357 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17358
17359 2015-06-09 Jason Merrill <jason@redhat.com>
17360
17361 PR bootstrap/66448
17362 * toplev.c (check_global_declaration): Don't warn about a clone.
17363
17364 2015-06-09 Marek Polacek <polacek@redhat.com>
17365
17366 PR tree-optimization/66299
17367 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17368 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17369 patterns.
17370
17371 2015-06-09 Richard Biener <rguenther@suse.de>
17372
17373 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17374 (vect_analyze_slp_instance): Instead do not falsely drop
17375 load permutations.
17376
17377 2015-06-09 Richard Biener <rguenther@suse.de>
17378
17379 PR middle-end/66423
17380 * match.pd: Handle A % (unsigned)(1 << B).
17381
17382 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
17383
17384 * varasm.c (output_object_block_htab): Remove.
17385 (output_object_block_compare): New.
17386 (output_object_blocks): Sort named object_blocks before outputting
17387 them.
17388
17389 2015-06-09 Richard Biener <rguenther@suse.de>
17390
17391 PR tree-optimization/66419
17392 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17393 consider GROUP_GAP when detecting a perfect subchain.
17394
17395 2015-06-09 Nick Clifton <nickc@redhat.com>
17396
17397 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17398 place read only data in the .frodata section.
17399
17400 2015-06-09 Shiva Chen <shiva0217@gmail.com>
17401
17402 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17403 (atomic_store<mode>): Likewise.
17404
17405 2015-06-09 Richard Biener <rguenther@suse.de>
17406
17407 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17408
17409 2015-06-09 Richard Biener <rguenther@suse.de>
17410
17411 PR middle-end/66413
17412 * tree-inline.c (insert_init_debug_bind): Unshare value.
17413
17414 2015-06-09 Richard Biener <rguenther@suse.de>
17415
17416 PR tree-optimization/66396
17417 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17418 Rename virtual operands.
17419
17420 2015-06-09 Tom de Vries <tom@codesourcery.com>
17421
17422 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17423 always return false.
17424
17425 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17426
17427 PR rtl-optimization/64164
17428 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17429 * tree-ssa-copyrename.c: Removed.
17430 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17431 -ftree-coalesce-vars.
17432 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17433 * common.opt (ftree-copyrename): Ignore.
17434 (ftree-coalesce-inlined-vars): Likewise.
17435 * doc/invoke.texi: Remove the ignored options above.
17436 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17437 * tree-ssa-coalesce.h: ... here.
17438 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17439 headers required by it.
17440 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17441 across variables when flag_tree_coalesce_vars. Check register
17442 use and promoted modes to allow coalescing. Moved to
17443 tree-ssa-coalesce.c.
17444 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17445 with its member functions to tree-ssa-coalesce.c.
17446 (var_map_base_init): Likewise. Renamed to
17447 compute_samebase_partition_bases.
17448 (partition_view_normal): Drop want_bases parameter.
17449 (partition_view_bitmap): Likewise.
17450 * tree-ssa-live.h: Adjust declarations.
17451 * tree-ssa-coalesce.c: Include explow.h.
17452 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17453 default defs at the entry point.
17454 (dump_part_var_map): New.
17455 (compute_optimized_partition_bases): New, called by...
17456 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17457 of compute_samebase_partition_bases. Adjust.
17458 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17459 * cfgexpand.c (leader_merge): New.
17460 (get_rtl_for_parm_ssa_default_def): New.
17461 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17462 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17463 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17464 redundant MEM attr setting.
17465 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17466 from...
17467 (expand_one_stack_var): ... this. New wrapper to check and
17468 skip already expanded SSA partitions.
17469 (record_alignment_for_reg_var): New, factored out of...
17470 (expand_one_var): ... this.
17471 (expand_one_ssa_partition): New.
17472 (adjust_one_expanded_partition_var): New.
17473 (expand_one_register_var): Check and skip already expanded SSA
17474 partitions.
17475 (expand_used_vars): Don't create DECLs for anonymous SSA
17476 names. Expand all SSA partitions, then adjust all SSA names.
17477 (pass::execute): Replace the loops that set
17478 SA.partition_to_pseudo from partition leaders and cleared
17479 DECL_RTL for multi-location variables, and that which used to
17480 rename vars and set attrs, with one that clears DECL_RTL and
17481 checks that PARMs and RESULTs default_defs match DECL_RTL.
17482 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17483 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17484 * explow.c (promote_ssa_mode): New.
17485 * explow.h (promote_ssa_mode): Declare.
17486 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17487 * function.c: Include cfgexpand.h.
17488 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17489 (use_register_for_parm_decl): Wrapper for the above to
17490 special-case the result_ptr.
17491 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17492 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17493 multiple locations.
17494 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17495 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17496 (assign_parm_setup_block): Prefer SSA-assigned location.
17497 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17498 if stack_parm is NULL.
17499 (assign_parm_setup_stack): Prefer SSA-assigned location.
17500 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17501 rtl before testing for pointer bounds. Special-case result_ptr.
17502 (expand_function_start): Maybe reset DECL_RTL of result.
17503 Prefer SSA-assigned location for result and static chain.
17504 Factor out DECL_RESULT and SET_DECL_RTL.
17505 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17506 anonymous SSA names. Use promote_ssa_mode.
17507 (get_temp_reg): Likewise.
17508 (remove_ssa_form): Adjust.
17509 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17510 and get its reg_usage for reg invalidation.
17511 (compute_bb_dataflow): Pass it insn.
17512 (emit_notes_in_bb): Likewise.
17513 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17514 fail assert on conversion between unsigned types.
17515
17516 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17517
17518 PR debug/58315
17519 * tree-inline.c (reset_debug_binding): New.
17520 (reset_debug_bindings): Likewise.
17521 (expand_call_inline): Call it.
17522
17523 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17524
17525 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17526 TYPE_STRING_FLAG.
17527
17528 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17529
17530 * lto-streamer-out.c (lto_output_location): Stream
17531 reserved locations correctly.
17532 * lto-streamer-in.c (lto_output_location): Likewise.
17533
17534 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
17535
17536 * coretypes.h: Include hash-table.h and hash-set.h for host files.
17537 * ggc.h: Don't include statistics.h>
17538 * hash-map.h: Remove all includes.
17539 * hash-set.h: Likewise.
17540 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17541 the include list. Remove <new>.
17542 * inchash.h: Remove all includes.
17543 * mem-stats.h: Likewise.
17544 * vec.h: No special processing for generators or ggc.
17545 * alias.c : Adjust include files.
17546 * alloc-pool.c : Likewise.
17547 * alloc-pool.h : Likewise.
17548 * asan.c : Likewise.
17549 * attribs.c : Likewise.
17550 * auto-inc-dec.c : Likewise.
17551 * auto-profile.c : Likewise.
17552 * bb-reorder.c : Likewise.
17553 * bitmap.c : Likewise.
17554 * bitmap.h : Likewise.
17555 * bt-load.c : Likewise.
17556 * builtins.c : Likewise.
17557 * caller-save.c : Likewise.
17558 * calls.c : Likewise.
17559 * ccmp.c : Likewise.
17560 * cfg.c : Likewise.
17561 * cfganal.c : Likewise.
17562 * cfgbuild.c : Likewise.
17563 * cfgcleanup.c : Likewise.
17564 * cfgexpand.c : Likewise.
17565 * cfghooks.c : Likewise.
17566 * cfgloop.c : Likewise.
17567 * cfgloop.h : Likewise.
17568 * cfgloopanal.c : Likewise.
17569 * cfgloopmanip.c : Likewise.
17570 * cfgrtl.c : Likewise.
17571 * cgraph.c : Likewise.
17572 * cgraphbuild.c : Likewise.
17573 * cgraphclones.c : Likewise.
17574 * cgraphunit.c : Likewise.
17575 * cilk-common.c : Likewise.
17576 * combine-stack-adj.c : Likewise.
17577 * combine.c : Likewise.
17578 * compare-elim.c : Likewise.
17579 * context.c : Likewise.
17580 * convert.c : Likewise.
17581 * coverage.c : Likewise.
17582 * cppbuiltin.c : Likewise.
17583 * cprop.c : Likewise.
17584 * cse.c : Likewise.
17585 * cselib.c : Likewise.
17586 * data-streamer-in.c : Likewise.
17587 * data-streamer-out.c : Likewise.
17588 * data-streamer.c : Likewise.
17589 * data-streamer.h : Likewise.
17590 * dbxout.c : Likewise.
17591 * dce.c : Likewise.
17592 * ddg.c : Likewise.
17593 * debug.c : Likewise.
17594 * df-core.c : Likewise.
17595 * df-problems.c : Likewise.
17596 * df-scan.c : Likewise.
17597 * df.h : Likewise.
17598 * dfp.c : Likewise.
17599 * dojump.c : Likewise.
17600 * dominance.c : Likewise.
17601 * domwalk.c : Likewise.
17602 * double-int.c : Likewise.
17603 * dse.c : Likewise.
17604 * dumpfile.c : Likewise.
17605 * dwarf2asm.c : Likewise.
17606 * dwarf2cfi.c : Likewise.
17607 * dwarf2out.c : Likewise.
17608 * emit-rtl.c : Likewise.
17609 * et-forest.c : Likewise.
17610 * except.c : Likewise.
17611 * except.h : Likewise.
17612 * explow.c : Likewise.
17613 * expmed.c : Likewise.
17614 * expr.c : Likewise.
17615 * final.c : Likewise.
17616 * fixed-value.c : Likewise.
17617 * fold-const.c : Likewise.
17618 * function.c : Likewise.
17619 * fwprop.c : Likewise.
17620 * gcc-plugin.h : Likewise.
17621 * gcc.c : Likewise.
17622 * gcse-common.c : Likewise.
17623 * gcse.c : Likewise.
17624 * genattrtab.c : Likewise.
17625 * genautomata.c : Likewise.
17626 * genconditions.c : Likewise.
17627 * genemit.c : Likewise.
17628 * generic-match-head.c : Likewise.
17629 * genextract.c : Likewise.
17630 * gengtype-state.c : Likewise.
17631 * gengtype.c : Likewise.
17632 * genhooks.c : Likewise.
17633 * genmatch.c : Likewise.
17634 * genmodes.c : Likewise.
17635 * genrecog.c : Likewise.
17636 * gensupport.c : Likewise.
17637 * ggc-common.c : Likewise.
17638 * ggc-internal.h : Likewise.
17639 * ggc-none.c : Likewise.
17640 * ggc-page.c : Likewise.
17641 * gimple-builder.c : Likewise.
17642 * gimple-expr.c : Likewise.
17643 * gimple-fold.c : Likewise.
17644 * gimple-iterator.c : Likewise.
17645 * gimple-low.c : Likewise.
17646 * gimple-match-head.c : Likewise.
17647 * gimple-pretty-print.c : Likewise.
17648 * gimple-ssa-isolate-paths.c : Likewise.
17649 * gimple-ssa-strength-reduction.c : Likewise.
17650 * gimple-ssa.h : Likewise.
17651 * gimple-streamer-in.c : Likewise.
17652 * gimple-streamer-out.c : Likewise.
17653 * gimple-streamer.h : Likewise.
17654 * gimple-walk.c : Likewise.
17655 * gimple.c : Likewise.
17656 * gimplify-me.c : Likewise.
17657 * gimplify.c : Likewise.
17658 * godump.c : Likewise.
17659 * graph.c : Likewise.
17660 * graphds.c : Likewise.
17661 * graphite-blocking.c : Likewise.
17662 * graphite-dependences.c : Likewise.
17663 * graphite-interchange.c : Likewise.
17664 * graphite-isl-ast-to-gimple.c : Likewise.
17665 * graphite-optimize-isl.c : Likewise.
17666 * graphite-poly.c : Likewise.
17667 * graphite-scop-detection.c : Likewise.
17668 * graphite-sese-to-poly.c : Likewise.
17669 * graphite.c : Likewise.
17670 * haifa-sched.c : Likewise.
17671 * hard-reg-set.h : Likewise.
17672 * hw-doloop.c : Likewise.
17673 * ifcvt.c : Likewise.
17674 * inchash.c : Likewise.
17675 * incpath.c : Likewise.
17676 * init-regs.c : Likewise.
17677 * input.c : Likewise.
17678 * internal-fn.c : Likewise.
17679 * ipa-chkp.c : Likewise.
17680 * ipa-comdats.c : Likewise.
17681 * ipa-cp.c : Likewise.
17682 * ipa-devirt.c : Likewise.
17683 * ipa-icf-gimple.c : Likewise.
17684 * ipa-icf.c : Likewise.
17685 * ipa-inline-analysis.c : Likewise.
17686 * ipa-inline-transform.c : Likewise.
17687 * ipa-inline.c : Likewise.
17688 * ipa-polymorphic-call.c : Likewise.
17689 * ipa-profile.c : Likewise.
17690 * ipa-prop.c : Likewise.
17691 * ipa-pure-const.c : Likewise.
17692 * ipa-ref.c : Likewise.
17693 * ipa-reference.c : Likewise.
17694 * ipa-split.c : Likewise.
17695 * ipa-utils.c : Likewise.
17696 * ipa-visibility.c : Likewise.
17697 * ipa.c : Likewise.
17698 * ira-build.c : Likewise.
17699 * ira-color.c : Likewise.
17700 * ira-conflicts.c : Likewise.
17701 * ira-costs.c : Likewise.
17702 * ira-emit.c : Likewise.
17703 * ira-lives.c : Likewise.
17704 * ira.c : Likewise.
17705 * jump.c : Likewise.
17706 * langhooks.c : Likewise.
17707 * lcm.c : Likewise.
17708 * libfuncs.h : Likewise.
17709 * lists.c : Likewise.
17710 * loop-doloop.c : Likewise.
17711 * loop-init.c : Likewise.
17712 * loop-invariant.c : Likewise.
17713 * loop-iv.c : Likewise.
17714 * loop-unroll.c : Likewise.
17715 * lower-subreg.c : Likewise.
17716 * lra-assigns.c : Likewise.
17717 * lra-coalesce.c : Likewise.
17718 * lra-constraints.c : Likewise.
17719 * lra-eliminations.c : Likewise.
17720 * lra-lives.c : Likewise.
17721 * lra-remat.c : Likewise.
17722 * lra-spills.c : Likewise.
17723 * lra.c : Likewise.
17724 * lto-cgraph.c : Likewise.
17725 * lto-compress.c : Likewise.
17726 * lto-opts.c : Likewise.
17727 * lto-section-in.c : Likewise.
17728 * lto-section-out.c : Likewise.
17729 * lto-streamer-in.c : Likewise.
17730 * lto-streamer-out.c : Likewise.
17731 * lto-streamer.c : Likewise.
17732 * lto-streamer.h : Likewise.
17733 * mcf.c : Likewise.
17734 * mode-switching.c : Likewise.
17735 * modulo-sched.c : Likewise.
17736 * omega.c : Likewise.
17737 * omp-low.c : Likewise.
17738 * optabs.c : Likewise.
17739 * opts-global.c : Likewise.
17740 * opts.h : Likewise.
17741 * passes.c : Likewise.
17742 * plugin.c : Likewise.
17743 * postreload-gcse.c : Likewise.
17744 * postreload.c : Likewise.
17745 * predict.c : Likewise.
17746 * print-rtl.c : Likewise.
17747 * print-tree.c : Likewise.
17748 * profile.c : Likewise.
17749 * read-md.c : Likewise.
17750 * read-md.h : Likewise.
17751 * read-rtl.c : Likewise.
17752 * real.c : Likewise.
17753 * realmpfr.c : Likewise.
17754 * recog.c : Likewise.
17755 * ree.c : Likewise.
17756 * reg-stack.c : Likewise.
17757 * regcprop.c : Likewise.
17758 * reginfo.c : Likewise.
17759 * regrename.c : Likewise.
17760 * regstat.c : Likewise.
17761 * reload.c : Likewise.
17762 * reload1.c : Likewise.
17763 * reorg.c : Likewise.
17764 * resource.c : Likewise.
17765 * rtl-chkp.c : Likewise.
17766 * rtl.c : Likewise.
17767 * rtl.h : Likewise.
17768 * rtlanal.c : Likewise.
17769 * rtlhash.c : Likewise.
17770 * rtlhash.h : Likewise.
17771 * rtlhooks.c : Likewise.
17772 * sanopt.c : Likewise.
17773 * sched-deps.c : Likewise.
17774 * sched-ebb.c : Likewise.
17775 * sched-rgn.c : Likewise.
17776 * sched-vis.c : Likewise.
17777 * sdbout.c : Likewise.
17778 * sel-sched-dump.c : Likewise.
17779 * sel-sched-ir.c : Likewise.
17780 * sel-sched-ir.h : Likewise.
17781 * sel-sched.c : Likewise.
17782 * sese.c : Likewise.
17783 * shrink-wrap.c : Likewise.
17784 * shrink-wrap.h : Likewise.
17785 * simplify-rtx.c : Likewise.
17786 * stack-ptr-mod.c : Likewise.
17787 * statistics.c : Likewise.
17788 * stmt.c : Likewise.
17789 * stor-layout.c : Likewise.
17790 * store-motion.c : Likewise.
17791 * stringpool.c : Likewise.
17792 * symtab.c : Likewise.
17793 * target-globals.c : Likewise.
17794 * targhooks.c : Likewise.
17795 * tlink.c : Likewise.
17796 * toplev.c : Likewise.
17797 * tracer.c : Likewise.
17798 * trans-mem.c : Likewise.
17799 * tree-affine.c : Likewise.
17800 * tree-affine.h : Likewise.
17801 * tree-browser.c : Likewise.
17802 * tree-call-cdce.c : Likewise.
17803 * tree-cfg.c : Likewise.
17804 * tree-cfgcleanup.c : Likewise.
17805 * tree-chkp-opt.c : Likewise.
17806 * tree-chkp.c : Likewise.
17807 * tree-chrec.c : Likewise.
17808 * tree-complex.c : Likewise.
17809 * tree-data-ref.c : Likewise.
17810 * tree-dfa.c : Likewise.
17811 * tree-diagnostic.c : Likewise.
17812 * tree-dump.c : Likewise.
17813 * tree-eh.c : Likewise.
17814 * tree-eh.h : Likewise.
17815 * tree-emutls.c : Likewise.
17816 * tree-hasher.h : Likewise.
17817 * tree-if-conv.c : Likewise.
17818 * tree-inline.c : Likewise.
17819 * tree-inline.h : Likewise.
17820 * tree-into-ssa.c : Likewise.
17821 * tree-iterator.c : Likewise.
17822 * tree-loop-distribution.c : Likewise.
17823 * tree-nested.c : Likewise.
17824 * tree-nrv.c : Likewise.
17825 * tree-object-size.c : Likewise.
17826 * tree-outof-ssa.c : Likewise.
17827 * tree-parloops.c : Likewise.
17828 * tree-phinodes.c : Likewise.
17829 * tree-predcom.c : Likewise.
17830 * tree-pretty-print.c : Likewise.
17831 * tree-profile.c : Likewise.
17832 * tree-scalar-evolution.c : Likewise.
17833 * tree-sra.c : Likewise.
17834 * tree-ssa-address.c : Likewise.
17835 * tree-ssa-alias.c : Likewise.
17836 * tree-ssa-ccp.c : Likewise.
17837 * tree-ssa-coalesce.c : Likewise.
17838 * tree-ssa-copy.c : Likewise.
17839 * tree-ssa-copyrename.c : Likewise.
17840 * tree-ssa-dce.c : Likewise.
17841 * tree-ssa-dom.c : Likewise.
17842 * tree-ssa-dse.c : Likewise.
17843 * tree-ssa-forwprop.c : Likewise.
17844 * tree-ssa-ifcombine.c : Likewise.
17845 * tree-ssa-live.c : Likewise.
17846 * tree-ssa-loop-ch.c : Likewise.
17847 * tree-ssa-loop-im.c : Likewise.
17848 * tree-ssa-loop-ivcanon.c : Likewise.
17849 * tree-ssa-loop-ivopts.c : Likewise.
17850 * tree-ssa-loop-manip.c : Likewise.
17851 * tree-ssa-loop-niter.c : Likewise.
17852 * tree-ssa-loop-prefetch.c : Likewise.
17853 * tree-ssa-loop-unswitch.c : Likewise.
17854 * tree-ssa-loop.c : Likewise.
17855 * tree-ssa-math-opts.c : Likewise.
17856 * tree-ssa-operands.c : Likewise.
17857 * tree-ssa-phiopt.c : Likewise.
17858 * tree-ssa-phiprop.c : Likewise.
17859 * tree-ssa-pre.c : Likewise.
17860 * tree-ssa-propagate.c : Likewise.
17861 * tree-ssa-reassoc.c : Likewise.
17862 * tree-ssa-sccvn.c : Likewise.
17863 * tree-ssa-scopedtables.c : Likewise.
17864 * tree-ssa-sink.c : Likewise.
17865 * tree-ssa-strlen.c : Likewise.
17866 * tree-ssa-structalias.c : Likewise.
17867 * tree-ssa-tail-merge.c : Likewise.
17868 * tree-ssa-ter.c : Likewise.
17869 * tree-ssa-threadedge.c : Likewise.
17870 * tree-ssa-threadupdate.c : Likewise.
17871 * tree-ssa-uncprop.c : Likewise.
17872 * tree-ssa-uninit.c : Likewise.
17873 * tree-ssa.c : Likewise.
17874 * tree-ssanames.c : Likewise.
17875 * tree-stdarg.c : Likewise.
17876 * tree-streamer-in.c : Likewise.
17877 * tree-streamer-out.c : Likewise.
17878 * tree-streamer.c : Likewise.
17879 * tree-streamer.h : Likewise.
17880 * tree-switch-conversion.c : Likewise.
17881 * tree-tailcall.c : Likewise.
17882 * tree-vect-data-refs.c : Likewise.
17883 * tree-vect-generic.c : Likewise.
17884 * tree-vect-loop-manip.c : Likewise.
17885 * tree-vect-loop.c : Likewise.
17886 * tree-vect-patterns.c : Likewise.
17887 * tree-vect-slp.c : Likewise.
17888 * tree-vect-stmts.c : Likewise.
17889 * tree-vectorizer.c : Likewise.
17890 * tree-vectorizer.h : Likewise.
17891 * tree-vrp.c : Likewise.
17892 * tree.c : Likewise.
17893 * tsan.c : Likewise.
17894 * ubsan.c : Likewise.
17895 * valtrack.c : Likewise.
17896 * valtrack.h : Likewise.
17897 * value-prof.c : Likewise.
17898 * var-tracking.c : Likewise.
17899 * varasm.c : Likewise.
17900 * varpool.c : Likewise.
17901 * vec.c: Likewise.
17902 * vmsdbgout.c : Likewise.
17903 * vtable-verify.c : Likewise.
17904 * vtable-verify.h : Likewise.
17905 * web.c : Likewise.
17906 * wide-int.cc : Likewise.
17907 * xcoffout.c : Likewise.
17908 * config/aarch64/aarch64-builtins.c : Likewise.
17909 * config/aarch64/aarch64.c : Likewise.
17910 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
17911 * config/alpha/alpha.c : Likewise.
17912 * config/arc/arc.c : Likewise.
17913 * config/arm/aarch-common.c : Likewise.
17914 * config/arm/arm-builtins.c : Likewise.
17915 * config/arm/arm-c.c : Likewise.
17916 * config/arm/arm.c : Likewise.
17917 * config/avr/avr-c.c : Likewise.
17918 * config/avr/avr-log.c : Likewise.
17919 * config/avr/avr.c : Likewise.
17920 * config/bfin/bfin.c : Likewise.
17921 * config/c6x/c6x.c : Likewise.
17922 * config/cr16/cr16.c : Likewise.
17923 * config/cris/cris.c : Likewise.
17924 * config/darwin-c.c : Likewise.
17925 * config/darwin.c : Likewise.
17926 * config/default-c.c : Likewise.
17927 * config/epiphany/epiphany.c : Likewise.
17928 * config/epiphany/mode-switch-use.c : Likewise.
17929 * config/epiphany/resolve-sw-modes.c : Likewise.
17930 * config/fr30/fr30.c : Likewise.
17931 * config/frv/frv.c : Likewise.
17932 * config/ft32/ft32.c : Likewise.
17933 * config/glibc-c.c : Likewise.
17934 * config/h8300/h8300.c : Likewise.
17935 * config/i386/i386-c.c : Likewise.
17936 * config/i386/i386.c : Likewise.
17937 * config/i386/msformat-c.c : Likewise.
17938 * config/i386/winnt-cxx.c : Likewise.
17939 * config/i386/winnt-stubs.c : Likewise.
17940 * config/i386/winnt.c : Likewise.
17941 * config/ia64/ia64-c.c : Likewise.
17942 * config/ia64/ia64.c : Likewise.
17943 * config/iq2000/iq2000.c : Likewise.
17944 * config/lm32/lm32.c : Likewise.
17945 * config/m32c/m32c-pragma.c : Likewise.
17946 * config/m32c/m32c.c : Likewise.
17947 * config/m32r/m32r.c : Likewise.
17948 * config/m68k/m68k.c : Likewise.
17949 * config/mcore/mcore.c : Likewise.
17950 * config/mep/mep-pragma.c : Likewise.
17951 * config/mep/mep.c : Likewise.
17952 * config/microblaze/microblaze-c.c : Likewise.
17953 * config/microblaze/microblaze.c : Likewise.
17954 * config/mips/mips.c : Likewise.
17955 * config/mmix/mmix.c : Likewise.
17956 * config/mn10300/mn10300.c : Likewise.
17957 * config/moxie/moxie.c : Likewise.
17958 * config/msp430/msp430-c.c : Likewise.
17959 * config/msp430/msp430.c : Likewise.
17960 * config/nds32/nds32-cost.c : Likewise.
17961 * config/nds32/nds32-fp-as-gp.c : Likewise.
17962 * config/nds32/nds32-intrinsic.c : Likewise.
17963 * config/nds32/nds32-isr.c : Likewise.
17964 * config/nds32/nds32-md-auxiliary.c : Likewise.
17965 * config/nds32/nds32-memory-manipulation.c : Likewise.
17966 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
17967 * config/nds32/nds32-predicates.c : Likewise.
17968 * config/nds32/nds32.c : Likewise.
17969 * config/nios2/nios2.c : Likewise.
17970 * config/nvptx/nvptx.c : Likewise.
17971 * config/pa/pa.c : Likewise.
17972 * config/pdp11/pdp11.c : Likewise.
17973 * config/rl78/rl78-c.c : Likewise.
17974 * config/rl78/rl78.c : Likewise.
17975 * config/rs6000/rs6000-c.c : Likewise.
17976 * config/rs6000/rs6000.c : Likewise.
17977 * config/rx/rx.c : Likewise.
17978 * config/s390/s390-c.c : Likewise.
17979 * config/s390/s390.c : Likewise.
17980 * config/sh/sh-c.c : Likewise.
17981 * config/sh/sh-mem.cc : Likewise.
17982 * config/sh/sh.c : Likewise.
17983 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
17984 * config/sh/sh_treg_combine.cc : Likewise.
17985 * config/sol2-c.c : Likewise.
17986 * config/sol2-cxx.c : Likewise.
17987 * config/sol2-stubs.c : Likewise.
17988 * config/sol2.c : Likewise.
17989 * config/sparc/sparc-c.c : Likewise.
17990 * config/sparc/sparc.c : Likewise.
17991 * config/spu/spu-c.c : Likewise.
17992 * config/spu/spu.c : Likewise.
17993 * config/stormy16/stormy16.c : Likewise.
17994 * config/tilegx/mul-tables.c : Likewise.
17995 * config/tilegx/tilegx-c.c : Likewise.
17996 * config/tilegx/tilegx.c : Likewise.
17997 * config/tilepro/mul-tables.c : Likewise.
17998 * config/tilepro/tilepro-c.c : Likewise.
17999 * config/tilepro/tilepro.c : Likewise.
18000 * config/v850/v850-c.c : Likewise.
18001 * config/v850/v850.c : Likewise.
18002 * config/vax/vax.c : Likewise.
18003 * config/visium/visium.c : Likewise.
18004 * config/vms/vms-c.c : Likewise.
18005 * config/vms/vms.c : Likewise.
18006 * config/vxworks.c : Likewise.
18007 * config/winnt-c.c : Likewise.
18008 * config/xtensa/xtensa.c : Likewise.
18009
18010 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18011
18012 PR lto/65378
18013 * ipa-utils.h (warn_types_mismatch): Update prototype.
18014 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18015 parameters.
18016 (type_mismatch_p): New function.
18017 (warn_types_mismatch): Reorg to work better on non-C++ types.
18018 (odr_types_equivalent_p): Add loc1/loc2 parameters.
18019 (add_type_duplicate): Update.
18020
18021 2015-06-08 Tom de Vries <tom@codesourcery.com>
18022
18023 PR rtl-optimization/66444
18024 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18025 call_used_regs.
18026
18027 2015-06-08 Richard Biener <rguenther@suse.de>
18028
18029 PR tree-optimization/66422
18030 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18031 block after inserted gcc_unreachable.
18032
18033 2015-06-08 Nick Clifton <nickc@redhat.com>
18034
18035 * config/rx/rx.c (rx_function_value): Do not promote vector types.
18036 (rx_promote_function_mode): Likewise.
18037 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18038
18039 2015-06-08 Jakub Jelinek <jakub@redhat.com>
18040
18041 * genattrtab.c (insn_alternatives): Change type from int *
18042 to uint64_t *.
18043 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18044 (get_attr_value): Change type of num_alt to uint64_t.
18045 (compute_alternative_mask): Change return type from
18046 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18047 (make_alternative_compare, mk_attr_alt): Change argument type
18048 from int to uint64_t.
18049 (simplify_test_exp): Change type of i from int to uint64_t.
18050 Shift ((uint64_t) 1) instead of 1 up.
18051 (main): Adjust oballocvec first argument from int to uint64_t.
18052 Shift ((uint64_t) 1) instead of 1 up.
18053
18054 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
18055
18056 PR other/65366
18057 * gdbhooks.py: Import sys.
18058 (intptr): New function. Replace int(...) by intptr(...).
18059
18060 2015-06-08 Richard Biener <rguenther@suse.de>
18061
18062 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18063 adjustment for gaps at the end of a SLP load group properly.
18064 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18065 all permutations we can generate.
18066 (vect_transform_slp_perm_load): Use the correct group-size.
18067
18068 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
18069
18070 * genmatch.c (expr::gen_transform): For conditions, guess the type
18071 from the second operand.
18072
18073 2015-06-08 Tom de Vries <tom@codesourcery.com>
18074
18075 PR tree-optimization/66442
18076 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18077 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18078 if the loop latch is not a singleton. Use
18079 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18080
18081 2015-06-08 Marek Polacek <polacek@redhat.com>
18082
18083 PR sanitizer/66452
18084 * toplev.c (check_global_declaration): Don't warn about artificial
18085 decls.
18086
18087 2015-06-08 Tom de Vries <tom@codesourcery.com>
18088
18089 PR tree-optimization/66436
18090 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18091 dump file.
18092 * gimplify.c: Add tree-dump.h include.
18093 (gimplify_function_tree): Dump function to gimple dump file.
18094 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18095 dump file.
18096
18097 2015-06-08 Tom de Vries <tom@codesourcery.com>
18098
18099 PR tree-optimization/66435
18100 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18101 function.
18102
18103 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
18104
18105 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18106 of ptr_type_node to not be ptr_to_node.
18107 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18108 TREE_TYPE of pointers.
18109 * gimple-expr.c (useless_type_conversion): Reorder the check for
18110 function pointers and TYPE_CANONICAL.
18111
18112 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
18113
18114 PR bootstrap/66319
18115 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18116 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18117 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18118 later.
18119 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18120 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18121 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18122 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18123 and non iso if unix2003.
18124
18125 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
18126
18127 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18128
18129 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
18130
18131 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18132 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18133 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18134 except.c, final.c, function.c, gcse-common.c, genemit.c,
18135 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18136 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18137 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18138 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18139 more derived ones.
18140
18141 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
18142
18143 * combine.c (combine_split_insns): Remove cast.
18144 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18145 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18146 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18147 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18148 * genemit.c (gen_split): Change return type of generated functions to
18149 rtx_insn.
18150 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18151 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18152 gen_peephole2_* functions.
18153 (print_subroutine, main): Likewise.
18154 * recog.c (peephole2_optimize): Remove cast.
18155 (peep2_next_insn): Promote return type to rtx_insn.
18156 * recog.h (peep2_next_insn): Fix prototype.
18157 * rtl.h (try_split, split_insns): Likewise.
18158
18159 2015-06-06 DJ Delorie <dj@redhat.com>
18160
18161 * config/msp430/msp430.c (msp430_asm_integer): Support addition
18162 and subtraction too.
18163
18164 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
18165
18166 PR target/66410
18167 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18168 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18169 instead of Snd. Disparage Sid/z alternative with '^'.
18170
18171 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
18172
18173 * dwarf2out.c: Remove deferred_locations*.
18174 (dwarf2_debug_hooks): Add early_finish hook.
18175 Remove global_decl hook.
18176 Add early_global_decl and late_global_decl hook.
18177 New global early_dwarf.
18178 New structure set_early_dwarf.
18179 (output_die): Indicate whether a DIE was generated early
18180 when generating assembly with -dA.
18181 (struct limbo_die_struct): Document created_for field.
18182 Remove file_table_last_lookup.
18183 (remove_AT): Return TRUE if successful.
18184 (remove_child_TAG): Clear die_parent.
18185 (reparent_child): New function abstracted from...
18186 (splice_child_die): ...here.
18187 (new_die): ICE if a DIE ends up in limbo too late.
18188 (check_die): New.
18189 (defer_location): Remove.
18190 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18191 (fill_variable_array_bounds): New.
18192 (decl_start_label): Call fill_variable_array_bounds.
18193 (gen_formal_parameter_die): Rewrite to reuse previously generated
18194 DIEs.
18195 (gen_subprogram_die): Same.
18196 (gen_variable_die): Same.
18197 (gen_const_die): Same.
18198 (gen_label_die): Same.
18199 (gen_lexical_block_die): Same.
18200 (decl_will_get_specification_p): New.
18201 (local_function_static): New.
18202 (gen_struct_or_union_type_die): Fill in variable-length fields.
18203 (gen_typedef_die): Fill in variable-length typedefs.
18204 (gen_tagged_type_die): Gracefully return on error_mark_node.
18205 Handle re-entrancy.
18206 (gen_type_die_with_usage): Handle variable-length types.
18207 Remove duplicate code for ARRAY_TYPE case.
18208 (process_scope_var): Only process imported modules during early
18209 dwarf.
18210 (dwarf2out_early_global_decl): New.
18211 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18212 (dwarf2out_type_decl): Set early_dwarf while calling
18213 dwarf2out_decl.
18214 (dwarf2out_decl): Verify that we did not recreate a previously
18215 generated DIE.
18216 Do not return on DECL_EXTERNALs in VAR_DECLs.
18217 Abstract some code to local_function_static.
18218 (lookup_filename): Remove use of file_table_last_lookup.
18219 Gracefully exit on missing file_name.
18220 (dwarf2out_finish): Verify limbo list.
18221 Remove deferred_locations_list use.
18222 Move deferred_asm_name and limbo flushing to...
18223 (dwarf2out_early_finish): ...here. New.
18224 (dwarf2out_c_finalize): Remove set of deferred_location_list,
18225 deferred_asm_name, and file_table_last_lookup.
18226 * cgraph.h (referred_to_p): Add default argument.
18227 * cgraphunit.c (referred_to_p): Add and handle include_self
18228 argument.
18229 (analyze_functions): Add first_time argument.
18230 Call check_global_declaration for all symbols.
18231 Call late_global_decl for nodes for moribund nodes.
18232 (finalize_compilation_unit): Add new argument to
18233 analyze_functions.
18234 Call early_global_decl for functions.
18235 Call early_finish debug hook.
18236 * dbxout.c (dbxout_early_global_decl): New.
18237 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
18238 (dbx_debug_hooks): Add new hooks.
18239 (xcoff_debug_hooks): Same.
18240 * debug.c (do_nothing_debug_hooks): Add early_finish field.
18241 Add early and late debug hooks.
18242 Remove global_decl hook.
18243 * debug.h (struct gcc_debug_hooks): Add early_finish,
18244 early_global_decl, and late_global_decl fields.
18245 Remove global_decl field.
18246 Document gcc_debug_hooks.
18247 * gengtype.c (output_typename): Remove.
18248 * godump.c (go_early_global_decl): New.
18249 (go_late_global_decl): New.
18250 (go_global_decl): Remove.
18251 (dump_go_spec_init): Remove global_decl. Add
18252 {early,late}_global_decl.
18253 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18254 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18255 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18256 (write_global_declarations): Remove.
18257 (global_decl_processing): New.
18258 * langhooks.h (struct lang_hooks_for_decls): Remove
18259 final_write_globals field.
18260 Add post_compilation_parsing_cleanups field.
18261 * passes.c (rest_of_decl_compilation): Call early_global_decl.
18262 * sdbout.c: Add early and late_global_decl hooks. Remove
18263 sdbout_global_decl hook.
18264 Add early_finish field for sdb_debug_hooks.
18265 (sdbout_global_decl): Remove.
18266 (sdbout_early_global_decl): New.
18267 (sdbout_late_global_decl): New.
18268 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18269 * toplev.c (check_global_declaration): Rename from
18270 check_global_declaration_1.
18271 Adapt to use symtab infrastructure.
18272 (check_global_declarations): Remove.
18273 (emit_debug_global_declarations): Remove.
18274 (compile_file): Remove call to final_write_globals langhook.
18275 Run the actual compilation process.
18276 Perform any post compilation parser cleanups.
18277 Generate late debug info.
18278 * toplev.h (check_global_declaration): New.
18279 (check_global_declaration_1): Remove.
18280 (check_global_declarations): Remove.
18281 (write_global_declarations): Remove.
18282 (emit_debug_global_declarations): Remove.
18283 (global_decl_processing): New.
18284 * tree-core.h (struct tree_block): Add DIE field.
18285 * tree.h (BLOCK_DIE): New.
18286 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18287 throughout.
18288 (vmsdbgout_early_global_decl): New.
18289 (vmsdbgout_late_global_decl): New.
18290 Add early_finish debug hook field to vmsdbg_debug_hooks.
18291 Remove vmsdbgout_decl to vmsdbgout_function_decl.
18292 Add early and late_global_decl debug hooks.
18293
18294 2015-06-05 Julian Brown <julian@codesourcery.com>
18295 Sandra Loosemore <sandra@codesourcery.com>
18296
18297 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18298 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18299 to print-sysroot-suffix.sh script.
18300
18301 2015-06-05 Tom de Vries <tom@codesourcery.com>
18302
18303 merge from gomp4 branch:
18304 2015-05-28 Tom de Vries <tom@codesourcery.com>
18305
18306 PR tree-optimization/65443
18307 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18308 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18309 (try_transform_to_exit_first_loop_alt): New function.
18310 (transform_to_exit_first_loop): Use
18311 try_transform_to_exit_first_loop_alt.
18312
18313 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
18314
18315 * builtins.c (expand_builtin_atomic_compare_exchange): Call
18316 emit_cmp_and_jump_insns with the mode of target.
18317
18318 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18319
18320 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18321
18322 2015-06-04 DJ Delorie <dj@redhat.com>
18323
18324 * config/msp430/msp430.md (movsi_s): New. Special case for
18325 storing a 20-bit symbol into a 32-bit register.
18326 * config/msp430/msp430.c (msp430_subreg): Add support for it.
18327 * config/msp430/predicates.md (msp430_symbol_operand): New.
18328
18329 2015-06-04 Sriraman Tallam <tmsriram@google.com>
18330
18331 * c-family/c-common.c (noplt): New attribute.
18332 (handle_noplt_attribute): New handler.
18333 * calls.c (prepare_call_address): Check for noplt
18334 attribute.
18335 * config/i386/i386.c (ix86_expand_call): Check
18336 for noplt attribute.
18337 (ix86_nopic_noplt_attribute_p): New function.
18338 (ix86_output_call_insn): Output indirect call for non-pic
18339 no plt calls.
18340 * doc/extend.texi (noplt): Document new attribute.
18341 * doc/invoke.texi: Document new attribute.
18342
18343 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
18344
18345 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18346 real.h, and fixed-value.h when included in host source files.
18347 * double-int.h: Remove redundant #includes listed above.
18348 * fixed-value.h: Likewise.
18349 * real.h: Likewise.
18350 * wide-int.h: Likewise.
18351 * inchash.h: Likewise.
18352 * rtl.h: Add some include files When included from a generator file.
18353 * target.h: Remove wide-int.h and insn-modes.h from the include list.
18354 * internal-fn.h: Don't include coretypes.h.
18355 * alias.c: Adjust includes for restructured coretypes.h.
18356 * asan.c: Likewise.
18357 * attribs.c: Likewise.
18358 * auto-inc-dec.c: Likewise.
18359 * auto-profile.c: Likewise.
18360 * bb-reorder.c: Likewise.
18361 * bt-load.c: Likewise.
18362 * builtins.c: Likewise.
18363 * caller-save.c: Likewise.
18364 * calls.c: Likewise.
18365 * ccmp.c: Likewise.
18366 * cfg.c: Likewise.
18367 * cfganal.c: Likewise.
18368 * cfgbuild.c: Likewise.
18369 * cfgcleanup.c: Likewise.
18370 * cfgexpand.c: Likewise.
18371 * cfghooks.c: Likewise.
18372 * cfgloop.c: Likewise.
18373 * cfgloop.h: Likewise.
18374 * cfgloopanal.c: Likewise.
18375 * cfgloopmanip.c: Likewise.
18376 * cfgrtl.c: Likewise.
18377 * cgraph.c: Likewise.
18378 * cgraphbuild.c: Likewise.
18379 * cgraphclones.c: Likewise.
18380 * cgraphunit.c: Likewise.
18381 * cilk-common.c: Likewise.
18382 * combine-stack-adj.c: Likewise.
18383 * combine.c: Likewise.
18384 * compare-elim.c: Likewise.
18385 * convert.c: Likewise.
18386 * coverage.c: Likewise.
18387 * cppbuiltin.c: Likewise.
18388 * cprop.c: Likewise.
18389 * cse.c: Likewise.
18390 * cselib.c: Likewise.
18391 * data-streamer-in.c: Likewise.
18392 * data-streamer-out.c: Likewise.
18393 * data-streamer.c: Likewise.
18394 * dbxout.c: Likewise.
18395 * dce.c: Likewise.
18396 * ddg.c: Likewise.
18397 * debug.c: Likewise.
18398 * df-core.c: Likewise.
18399 * df-problems.c: Likewise.
18400 * df-scan.c: Likewise.
18401 * df.h: Likewise.
18402 * dfp.c: Likewise.
18403 * dojump.c: Likewise.
18404 * dominance.c: Likewise.
18405 * domwalk.c: Likewise.
18406 * double-int.c: Likewise.
18407 * dse.c: Likewise.
18408 * dumpfile.c: Likewise.
18409 * dwarf2asm.c: Likewise.
18410 * dwarf2cfi.c: Likewise.
18411 * dwarf2out.c: Likewise.
18412 * dwarf2out.h: Likewise.
18413 * emit-rtl.c: Likewise.
18414 * et-forest.c: Likewise.
18415 * except.c: Likewise.
18416 * explow.c: Likewise.
18417 * expmed.c: Likewise.
18418 * expr.c: Likewise.
18419 * final.c: Likewise.
18420 * fixed-value.c: Likewise.
18421 * fold-const.c: Likewise.
18422 * function.c: Likewise.
18423 * fwprop.c: Likewise.
18424 * gcc-plugin.h: Likewise.
18425 * gcse.c: Likewise.
18426 * generic-match-head.c: Likewise.
18427 * ggc-page.c: Likewise.
18428 * gimple-builder.c: Likewise.
18429 * gimple-expr.c: Likewise.
18430 * gimple-fold.c: Likewise.
18431 * gimple-iterator.c: Likewise.
18432 * gimple-low.c: Likewise.
18433 * gimple-match-head.c: Likewise.
18434 * gimple-pretty-print.c: Likewise.
18435 * gimple-ssa-isolate-paths.c: Likewise.
18436 * gimple-ssa-strength-reduction.c: Likewise.
18437 * gimple-streamer-in.c: Likewise.
18438 * gimple-streamer-out.c: Likewise.
18439 * gimple-streamer.h: Likewise.
18440 * gimple-walk.c: Likewise.
18441 * gimple.c: Likewise.
18442 * gimplify-me.c: Likewise.
18443 * gimplify.c: Likewise.
18444 * godump.c: Likewise.
18445 * graph.c: Likewise.
18446 * graphite-blocking.c: Likewise.
18447 * graphite-dependences.c: Likewise.
18448 * graphite-interchange.c: Likewise.
18449 * graphite-isl-ast-to-gimple.c: Likewise.
18450 * graphite-optimize-isl.c: Likewise.
18451 * graphite-poly.c: Likewise.
18452 * graphite-scop-detection.c: Likewise.
18453 * graphite-sese-to-poly.c: Likewise.
18454 * graphite.c: Likewise.
18455 * haifa-sched.c: Likewise.
18456 * hooks.h: Likewise.
18457 * hw-doloop.c: Likewise.
18458 * ifcvt.c: Likewise.
18459 * incpath.c: Likewise.
18460 * init-regs.c: Likewise.
18461 * internal-fn.c: Likewise.
18462 * ipa-chkp.c: Likewise.
18463 * ipa-comdats.c: Likewise.
18464 * ipa-cp.c: Likewise.
18465 * ipa-devirt.c: Likewise.
18466 * ipa-icf-gimple.c: Likewise.
18467 * ipa-icf.c: Likewise.
18468 * ipa-inline-analysis.c: Likewise.
18469 * ipa-inline-transform.c: Likewise.
18470 * ipa-inline.c: Likewise.
18471 * ipa-polymorphic-call.c: Likewise.
18472 * ipa-profile.c: Likewise.
18473 * ipa-prop.c: Likewise.
18474 * ipa-pure-const.c: Likewise.
18475 * ipa-ref.c: Likewise.
18476 * ipa-reference.c: Likewise.
18477 * ipa-split.c: Likewise.
18478 * ipa-utils.c: Likewise.
18479 * ipa-visibility.c: Likewise.
18480 * ipa.c: Likewise.
18481 * ira-build.c: Likewise.
18482 * ira-color.c: Likewise.
18483 * ira-conflicts.c: Likewise.
18484 * ira-costs.c: Likewise.
18485 * ira-emit.c: Likewise.
18486 * ira-lives.c: Likewise.
18487 * ira.c: Likewise.
18488 * jump.c: Likewise.
18489 * langhooks.c: Likewise.
18490 * lcm.c: Likewise.
18491 * loop-doloop.c: Likewise.
18492 * loop-init.c: Likewise.
18493 * loop-invariant.c: Likewise.
18494 * loop-iv.c: Likewise.
18495 * loop-unroll.c: Likewise.
18496 * lower-subreg.c: Likewise.
18497 * lra-assigns.c: Likewise.
18498 * lra-coalesce.c: Likewise.
18499 * lra-constraints.c: Likewise.
18500 * lra-eliminations.c: Likewise.
18501 * lra-lives.c: Likewise.
18502 * lra-remat.c: Likewise.
18503 * lra-spills.c: Likewise.
18504 * lra.c: Likewise.
18505 * lto-cgraph.c: Likewise.
18506 * lto-compress.c: Likewise.
18507 * lto-opts.c: Likewise.
18508 * lto-section-in.c: Likewise.
18509 * lto-section-out.c: Likewise.
18510 * lto-streamer-in.c: Likewise.
18511 * lto-streamer-out.c: Likewise.
18512 * lto-streamer.c: Likewise.
18513 * mcf.c: Likewise.
18514 * mode-switching.c: Likewise.
18515 * modulo-sched.c: Likewise.
18516 * omega.c: Likewise.
18517 * omp-low.c: Likewise.
18518 * optabs.c: Likewise.
18519 * opts-global.c: Likewise.
18520 * passes.c: Likewise.
18521 * plugin.c: Likewise.
18522 * postreload-gcse.c: Likewise.
18523 * postreload.c: Likewise.
18524 * predict.c: Likewise.
18525 * print-rtl.c: Likewise.
18526 * print-tree.c: Likewise.
18527 * profile.c: Likewise.
18528 * real.c: Likewise.
18529 * realmpfr.c: Likewise.
18530 * realmpfr.h: Likewise.
18531 * recog.c: Likewise.
18532 * ree.c: Likewise.
18533 * reg-stack.c: Likewise.
18534 * regcprop.c: Likewise.
18535 * reginfo.c: Likewise.
18536 * regrename.c: Likewise.
18537 * regs.h: Likewise.
18538 * regstat.c: Likewise.
18539 * reload.c: Likewise.
18540 * reload1.c: Likewise.
18541 * reorg.c: Likewise.
18542 * resource.c: Likewise.
18543 * rtl-chkp.c: Likewise.
18544 * rtlanal.c: Likewise.
18545 * rtlhooks.c: Likewise.
18546 * sanopt.c: Likewise.
18547 * sched-deps.c: Likewise.
18548 * sched-ebb.c: Likewise.
18549 * sched-rgn.c: Likewise.
18550 * sched-vis.c: Likewise.
18551 * sdbout.c: Likewise.
18552 * sel-sched-dump.c: Likewise.
18553 * sel-sched-ir.c: Likewise.
18554 * sel-sched.c: Likewise.
18555 * sese.c: Likewise.
18556 * shrink-wrap.c: Likewise.
18557 * shrink-wrap.h: Likewise.
18558 * simplify-rtx.c: Likewise.
18559 * stack-ptr-mod.c: Likewise.
18560 * statistics.c: Likewise.
18561 * stmt.c: Likewise.
18562 * stor-layout.c: Likewise.
18563 * store-motion.c: Likewise.
18564 * stringpool.c: Likewise.
18565 * symtab.c: Likewise.
18566 * target-globals.c: Likewise.
18567 * targhooks.c: Likewise.
18568 * toplev.c: Likewise.
18569 * tracer.c: Likewise.
18570 * trans-mem.c: Likewise.
18571 * tree-affine.c: Likewise.
18572 * tree-affine.h: Likewise.
18573 * tree-browser.c: Likewise.
18574 * tree-call-cdce.c: Likewise.
18575 * tree-cfg.c: Likewise.
18576 * tree-cfgcleanup.c: Likewise.
18577 * tree-chkp-opt.c: Likewise.
18578 * tree-chkp.c: Likewise.
18579 * tree-chrec.c: Likewise.
18580 * tree-complex.c: Likewise.
18581 * tree-data-ref.c: Likewise.
18582 * tree-dfa.c: Likewise.
18583 * tree-diagnostic.c: Likewise.
18584 * tree-dump.c: Likewise.
18585 * tree-eh.c: Likewise.
18586 * tree-emutls.c: Likewise.
18587 * tree-if-conv.c: Likewise.
18588 * tree-inline.c: Likewise.
18589 * tree-into-ssa.c: Likewise.
18590 * tree-iterator.c: Likewise.
18591 * tree-loop-distribution.c: Likewise.
18592 * tree-nested.c: Likewise.
18593 * tree-nrv.c: Likewise.
18594 * tree-object-size.c: Likewise.
18595 * tree-outof-ssa.c: Likewise.
18596 * tree-parloops.c: Likewise.
18597 * tree-phinodes.c: Likewise.
18598 * tree-predcom.c: Likewise.
18599 * tree-pretty-print.c: Likewise.
18600 * tree-pretty-print.h: Likewise.
18601 * tree-profile.c: Likewise.
18602 * tree-scalar-evolution.c: Likewise.
18603 * tree-sra.c: Likewise.
18604 * tree-ssa-address.c: Likewise.
18605 * tree-ssa-alias.c: Likewise.
18606 * tree-ssa-ccp.c: Likewise.
18607 * tree-ssa-coalesce.c: Likewise.
18608 * tree-ssa-copy.c: Likewise.
18609 * tree-ssa-copyrename.c: Likewise.
18610 * tree-ssa-dce.c: Likewise.
18611 * tree-ssa-dom.c: Likewise.
18612 * tree-ssa-dse.c: Likewise.
18613 * tree-ssa-forwprop.c: Likewise.
18614 * tree-ssa-ifcombine.c: Likewise.
18615 * tree-ssa-live.c: Likewise.
18616 * tree-ssa-loop-ch.c: Likewise.
18617 * tree-ssa-loop-im.c: Likewise.
18618 * tree-ssa-loop-ivcanon.c: Likewise.
18619 * tree-ssa-loop-ivopts.c: Likewise.
18620 * tree-ssa-loop-manip.c: Likewise.
18621 * tree-ssa-loop-niter.c: Likewise.
18622 * tree-ssa-loop-prefetch.c: Likewise.
18623 * tree-ssa-loop-unswitch.c: Likewise.
18624 * tree-ssa-loop.c: Likewise.
18625 * tree-ssa-loop.h: Likewise.
18626 * tree-ssa-math-opts.c: Likewise.
18627 * tree-ssa-operands.c: Likewise.
18628 * tree-ssa-phiopt.c: Likewise.
18629 * tree-ssa-phiprop.c: Likewise.
18630 * tree-ssa-pre.c: Likewise.
18631 * tree-ssa-propagate.c: Likewise.
18632 * tree-ssa-reassoc.c: Likewise.
18633 * tree-ssa-sccvn.c: Likewise.
18634 * tree-ssa-scopedtables.c: Likewise.
18635 * tree-ssa-sink.c: Likewise.
18636 * tree-ssa-strlen.c: Likewise.
18637 * tree-ssa-structalias.c: Likewise.
18638 * tree-ssa-tail-merge.c: Likewise.
18639 * tree-ssa-ter.c: Likewise.
18640 * tree-ssa-threadedge.c: Likewise.
18641 * tree-ssa-threadupdate.c: Likewise.
18642 * tree-ssa-uncprop.c: Likewise.
18643 * tree-ssa-uninit.c: Likewise.
18644 * tree-ssa.c: Likewise.
18645 * tree-ssanames.c: Likewise.
18646 * tree-stdarg.c: Likewise.
18647 * tree-streamer-in.c: Likewise.
18648 * tree-streamer-out.c: Likewise.
18649 * tree-streamer.c: Likewise.
18650 * tree-switch-conversion.c: Likewise.
18651 * tree-tailcall.c: Likewise.
18652 * tree-vect-data-refs.c: Likewise.
18653 * tree-vect-generic.c: Likewise.
18654 * tree-vect-loop-manip.c: Likewise.
18655 * tree-vect-loop.c: Likewise.
18656 * tree-vect-patterns.c: Likewise.
18657 * tree-vect-slp.c: Likewise.
18658 * tree-vect-stmts.c: Likewise.
18659 * tree-vectorizer.c: Likewise.
18660 * tree-vrp.c: Likewise.
18661 * tree.c: Likewise.
18662 * tsan.c: Likewise.
18663 * ubsan.c: Likewise.
18664 * valtrack.c: Likewise.
18665 * value-prof.c: Likewise.
18666 * var-tracking.c: Likewise.
18667 * varasm.c: Likewise.
18668 * varpool.c: Likewise.
18669 * vmsdbgout.c: Likewise.
18670 * vtable-verify.c: Likewise.
18671 * web.c: Likewise.
18672 * wide-int-print.cc: Likewise.
18673 * wide-int-print.h: Likewise.
18674 * wide-int.cc: Likewise.
18675 * xcoffout.c: Likewise.
18676 * config/aarch64/aarch64-builtins.c: Likewise.
18677 * config/aarch64/aarch64.c: Likewise.
18678 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18679 * config/alpha/alpha.c: Likewise.
18680 * config/arc/arc.c: Likewise.
18681 * config/arm/aarch-common.c: Likewise.
18682 * config/arm/arm-builtins.c: Likewise.
18683 * config/arm/arm-c.c: Likewise.
18684 * config/arm/arm.c: Likewise.
18685 * config/avr/avr-c.c: Likewise.
18686 * config/avr/avr-log.c: Likewise.
18687 * config/avr/avr.c: Likewise.
18688 * config/bfin/bfin.c: Likewise.
18689 * config/c6x/c6x.c: Likewise.
18690 * config/cr16/cr16.c: Likewise.
18691 * config/cris/cris.c: Likewise.
18692 * config/darwin-c.c: Likewise.
18693 * config/darwin.c: Likewise.
18694 * config/default-c.c: Likewise.
18695 * config/epiphany/epiphany.c: Likewise.
18696 * config/epiphany/mode-switch-use.c: Likewise.
18697 * config/epiphany/resolve-sw-modes.c: Likewise.
18698 * config/fr30/fr30.c: Likewise.
18699 * config/frv/frv.c: Likewise.
18700 * config/ft32/ft32.c: Likewise.
18701 * config/glibc-c.c: Likewise.
18702 * config/h8300/h8300.c: Likewise.
18703 * config/i386/i386-c.c: Likewise.
18704 * config/i386/i386.c: Likewise.
18705 * config/i386/msformat-c.c: Likewise.
18706 * config/i386/winnt-cxx.c: Likewise.
18707 * config/i386/winnt-stubs.c: Likewise.
18708 * config/i386/winnt.c: Likewise.
18709 * config/ia64/ia64-c.c: Likewise.
18710 * config/ia64/ia64.c: Likewise.
18711 * config/iq2000/iq2000.c: Likewise.
18712 * config/lm32/lm32.c: Likewise.
18713 * config/m32c/m32c-pragma.c: Likewise.
18714 * config/m32c/m32c.c: Likewise.
18715 * config/m32r/m32r.c: Likewise.
18716 * config/m68k/m68k.c: Likewise.
18717 * config/mcore/mcore.c: Likewise.
18718 * config/mep/mep-pragma.c: Likewise.
18719 * config/mep/mep.c: Likewise.
18720 * config/microblaze/microblaze-c.c: Likewise.
18721 * config/microblaze/microblaze.c: Likewise.
18722 * config/mips/mips.c: Likewise.
18723 * config/mmix/mmix.c: Likewise.
18724 * config/mn10300/mn10300.c: Likewise.
18725 * config/moxie/moxie.c: Likewise.
18726 * config/msp430/msp430-c.c: Likewise.
18727 * config/msp430/msp430.c: Likewise.
18728 * config/nds32/nds32-cost.c: Likewise.
18729 * config/nds32/nds32-fp-as-gp.c: Likewise.
18730 * config/nds32/nds32-intrinsic.c: Likewise.
18731 * config/nds32/nds32-isr.c: Likewise.
18732 * config/nds32/nds32-md-auxiliary.c: Likewise.
18733 * config/nds32/nds32-memory-manipulation.c: Likewise.
18734 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18735 * config/nds32/nds32-predicates.c: Likewise.
18736 * config/nds32/nds32.c: Likewise.
18737 * config/nios2/nios2.c: Likewise.
18738 * config/nvptx/nvptx.c: Likewise.
18739 * config/pa/pa.c: Likewise.
18740 * config/pdp11/pdp11.c: Likewise.
18741 * config/rl78/rl78-c.c: Likewise.
18742 * config/rl78/rl78.c: Likewise.
18743 * config/rs6000/rs6000-c.c: Likewise.
18744 * config/rs6000/rs6000.c: Likewise.
18745 * config/rx/rx.c: Likewise.
18746 * config/s390/s390-c.c: Likewise.
18747 * config/s390/s390.c: Likewise.
18748 * config/sh/sh-c.c: Likewise.
18749 * config/sh/sh-mem.cc: Likewise.
18750 * config/sh/sh.c: Likewise.
18751 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18752 * config/sh/sh_treg_combine.cc: Likewise.
18753 * config/sol2-c.c: Likewise.
18754 * config/sol2-cxx.c: Likewise.
18755 * config/sol2-stubs.c: Likewise.
18756 * config/sol2.c: Likewise.
18757 * config/sparc/sparc-c.c: Likewise.
18758 * config/sparc/sparc.c: Likewise.
18759 * config/spu/spu-c.c: Likewise.
18760 * config/spu/spu.c: Likewise.
18761 * config/stormy16/stormy16.c: Likewise.
18762 * config/tilegx/mul-tables.c: Likewise.
18763 * config/tilegx/tilegx-c.c: Likewise.
18764 * config/tilegx/tilegx.c: Likewise.
18765 * config/tilepro/mul-tables.c: Likewise.
18766 * config/tilepro/tilepro-c.c: Likewise.
18767 * config/tilepro/tilepro.c: Likewise.
18768 * config/v850/v850-c.c: Likewise.
18769 * config/v850/v850.c: Likewise.
18770 * config/vax/vax.c: Likewise.
18771 * config/visium/visium.c: Likewise.
18772 * config/vms/vms-c.c: Likewise.
18773 * config/vms/vms.c: Likewise.
18774 * config/vxworks.c: Likewise.
18775 * config/winnt-c.c: Likewise.
18776 * config/xtensa/xtensa.c: Likewise.
18777 * common/config/bfin/bfin-common.c: Likewise.
18778
18779 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
18780
18781 * tree.h (tree_code_for_canonical_type_merging): New function.
18782 * tree.c (gimple_canonical_types_compatible_p): Use
18783 tree_code_for_canonical_type_merging..
18784
18785 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18786
18787 PR c++/66192
18788 PR target/66200
18789 * doc/tm.texi: Regenerate.
18790 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
18791 * target.def (TARGET_RELAXED_ORDERING): Likewise.
18792 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
18793 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
18794 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
18795 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
18796 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
18797 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
18798 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
18799
18800 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18801
18802 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
18803 register fma steering pass.
18804 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
18805 AARCH64_TUNE_FMA_STEERING.
18806
18807 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
18808
18809 * tree.c (verify_type_variant): Verify that type and variant is
18810 compatible.
18811 (gimple_canonical_types_compatible_p): Look for main variants.
18812
18813 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18814
18815 * config.gcc (powerpc*-*-*): Add support for a new configure
18816 option --with-advance-toolchain=<xxx> which overrides using the
18817 default header files, libraries and dynamic linker.
18818
18819 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
18820 specs to support the configure --with-advance-toolchain=<xxx>
18821 option.
18822 (INCLUDE_EXTRA_SPEC): Likewise.
18823 (LINK_OS_EXTRA_SPEC32): Likewise.
18824 (LINK_OK_EXTRA_SPEC64): Likewise.
18825 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
18826 (DYNAMIC_LINKER_PREFIX): Likewise.
18827 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
18828 toolchain support.
18829 (GLIBC_DYNAMIC_LINKER32): Likewise.
18830 (GLIBC_DYNAMIC_LINKER64): Likewise.
18831 (LINK_OS_LINUX_SPEC32): Likewise.
18832 (LINK_OS_LINUX_SPEC64): Likewise.
18833
18834 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
18835 configuration option.
18836
18837 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
18838
18839 PR target/66275
18840 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
18841 to determine current function ABI.
18842 (ix86_function_value_regno_p): Ditto.
18843
18844 2015-06-03 Martin Liska <mliska@suse.cz>
18845
18846 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
18847 * bitmap.h (struct bitmap_usage): Likewise.
18848 * ggc-common.c (struct ggc_usage): Likewise.
18849 * mem-stats.h (struct mem_location): Likewise.
18850 (struct mem_usage): Likewise.
18851 * vec.c (struct vec_usage): Likewise.
18852
18853 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
18854
18855 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
18856 -Bsymbolic.
18857
18858 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
18859
18860 * doc/plugins.texi (enum plugin_event): New event.
18861 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
18862 and PLUGIN_FINISH_FUNCTION.
18863 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
18864 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
18865
18866 2015-06-03 Richard Biener <rguenther@suse.de>
18867
18868 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18869 compute GROUP_GAP for the first element.
18870 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
18871 on in-group gaps.
18872
18873 2015-06-03 Nick Clifton <nickc@redhat.com>
18874
18875 * config/rl78/rl78-real.md: Add peepholes to avoid a register
18876 copy when calling a function.
18877 * config/rl78/rl78.c (need_to_save): Do not push the frame
18878 pointer in an interrupt handler prologue if it is never used.
18879
18880 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18881
18882 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
18883
18884 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18885
18886 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
18887 reference when cloning alias node.
18888
18889 2015-06-03 Martin Liska <mliska@suse.cz>
18890
18891 * alloc-pool.h (struct pool_usage): Correct space padding.
18892 * ggc-page.c (ggc_print_statistics): Align columns in a report.
18893 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
18894 * tree.c (dump_tree_statistics): Align columns in a report.
18895
18896 2015-06-03 Martin Liska <mliska@suse.cz>
18897
18898 * alloc-pool.c (allocate_pool_descriptor): Remove.
18899 (struct pool_output_info): Likewise.
18900 (print_alloc_pool_statistics): Likewise.
18901 (dump_alloc_pool_statistics): Likewise.
18902 * alloc-pool.h (struct pool_usage): New struct.
18903 (pool_allocator::initialize): Change usage of memory statistics
18904 to a new interface.
18905 (pool_allocator::release): Likewise.
18906 (pool_allocator::allocate): Likewise.
18907 (pool_allocator::remove): Likewise.
18908 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
18909 for a pool allocator.
18910 * mem-stats.h (struct mem_location): Add new ctor.
18911 (struct mem_usage): Add counter for number of
18912 instances.
18913 (mem_alloc_description::register_descriptor): New overload of
18914 * mem-stats.h (mem_location::to_string): New function.
18915 * bitmap.h (struct bitmap_usage): Use this new function.
18916 * ggc-common.c (struct ggc_usage): Likewise.
18917 the function.
18918
18919 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18920
18921 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
18922 of GCC_INSN_FLAGS_H block.
18923
18924 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
18925
18926 * explow.c (plus_constant): Update check after force_const_mem call
18927 to see if the value returned is not a NULL_RTX.
18928
18929 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
18930
18931 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
18932 remove instumentation thunks calling reachable functions.
18933 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
18934 * lto/lto-partition.c (privatize_symbol_name_1): New.
18935 (privatize_symbol_name): Privatize both decl and orig_decl
18936 names for instrumented functions.
18937 * cgraph.c (cgraph_node::verify_node): Add transparent
18938 alias chain check for instrumented node.
18939
18940 2015-06-03 Marek Polacek <polacek@redhat.com>
18941
18942 PR c/64223
18943 PR c/29358
18944 * tree.c (attribute_value_equal): Handle attribute format.
18945 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
18946
18947 2015-06-03 Richard Biener <rguenther@suse.de>
18948
18949 PR tree-optimization/63916
18950 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18951 Forward-propagate non-invariant addresses by splicing their
18952 reference ops if the result isn't going to be used by PRE.
18953 (vn_reference_lookup_3): Remove pointless assert.
18954
18955 2015-06-03 Richard Biener <rguenther@suse.de>
18956
18957 PR tree-optimization/66375
18958 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
18959 add to the evolution before following SSA edges.
18960
18961 2015-06-03 Bin Cheng <bin.cheng@arm.com>
18962
18963 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
18964 (dump_use, dump_cand, find_induction_variables): Pass new argument
18965 to dump_iv.
18966 (record_use): Preserve the ssa name information in IV.
18967
18968 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
18969
18970 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
18971 NO_MODE_TEST.
18972 (add_mode_tests): Don't add mode tests if the predicate only
18973 accepts scalar constant integers. Otherwise, allow the mode
18974 of "op" to be VOIDmode if the predicate does accept such integers.
18975
18976 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
18977
18978 PR target/66258
18979 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
18980 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
18981 (aarch64_secondary_reload): Likewise
18982 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
18983 to !TARGET_FLOAT.
18984 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
18985 Likewise.
18986
18987 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
18988 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18989
18990 PR target/65768
18991 * cprop.c (try_replace_reg): Check cost of constants before propagating.
18992
18993 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18994
18995 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
18996 provide access to the IBM extended double floating point mode if
18997 long double is IEEE 128-bit floating point.
18998 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
18999 point if long double is the IBM extended double type.
19000
19001 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19002 enable adding IEEE 128-bit floating point support.
19003 (-mfloat128-software): Likewise.
19004 (-mfloat128-sw): Likewise.
19005
19006 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19007 128-bit floating point types to occupy any register if
19008 -mlong-double-64. Do not allow use of IFmode/KFmode unless
19009 -mfloat128-software is enabled.
19010 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19011 support.
19012 (rs6000_option_override_internal): Add -mfloat128-* support.
19013 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19014
19015 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19016 and float128 type nodes.
19017 (ieee128_float_type_node): Likewise.
19018 (ibm128_float_type_node): Likewise.
19019
19020 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
19021
19022 PR target/66136
19023 * config/aarch64/geniterators.sh: Rewrite in awk.
19024
19025 2015-06-02 Martin Liska <mliska@suse.cz>
19026
19027 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19028 values to avoid -Wmaybe-uninitialized errors.
19029
19030 2015-06-02 Richard Biener <rguenther@suse.de>
19031
19032 PR debug/65549
19033 * dwarf2out.c (lookup_context_die): New function.
19034 (resolve_addr): Avoid forcing a full DIE for the
19035 target of a DW_TAG_GNU_call_site during late compilation.
19036 Instead create a stub DIE without a type if we have a
19037 context DIE present.
19038
19039 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
19040
19041 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19042
19043 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19044
19045 PR tree-optimization/48052
19046 * cfgloop.h (struct control_iv): New.
19047 (struct loop): New field control_ivs.
19048 * tree-ssa-loop-niter.c : Include "stor-layout.h".
19049 (number_of_iterations_lt): Set no_overflow information.
19050 (number_of_iterations_exit): Init control iv in niter struct.
19051 (record_control_iv): New.
19052 (estimate_numbers_of_iterations_loop): Call record_control_iv.
19053 (loop_exits_before_overflow): New. Interface factored out of
19054 scev_probably_wraps_p.
19055 (scev_probably_wraps_p): Factor loop niter related code into
19056 loop_exits_before_overflow.
19057 (free_numbers_of_iterations_estimates_loop): Free control ivs.
19058 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19059
19060 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
19061
19062 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19063 the target doesn't belong to the current function.
19064
19065 2015-06-02 Marek Polacek <polacek@redhat.com>
19066
19067 PR middle-end/66345
19068 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19069 get_maxval_strlen does not produce an INTEGER_CST.
19070
19071 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
19072
19073 * config/arc/constraints.md: Use lower-case names in match_code.
19074 * config/mmix/constraints.md: Likewise.
19075
19076 2015-06-02 Richard Biener <rguenther@suse.de>
19077
19078 PR tree-optimization/65961
19079 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19080 check and clarify dump message.
19081 (vect_build_slp_tree): If all children are built up from scalars
19082 build up the parent from scalars instead.
19083 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19084
19085 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
19086
19087 PR other/65366
19088 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
19089 instead of print ... .
19090
19091 2015-06-02 Alan Modra <amodra@gmail.com>
19092
19093 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19094 2014-08-11 change.
19095
19096 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19097
19098 PR tree-optimization/52563
19099 PR tree-optimization/62173
19100 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
19101 (alloc_iv, set_iv): New parameter.
19102 (determine_biv_step): Delete.
19103 (find_bivs): Inline original determine_biv_step. Pass new
19104 argument to set_iv.
19105 (idx_find_step): Use no_overflow information for conversion.
19106 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19107 resolve_mixers handle folded_casts.
19108 (instantiate_scev_name): Change bool parameter to bool pointer.
19109 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19110 (instantiate_array_ref, instantiate_scev_not): Ditto.
19111 (instantiate_scev_3, instantiate_scev_2): Ditto.
19112 (instantiate_scev_1, instantiate_scev_r): Ditto.
19113 (instantiate_scev_convert, ): Change parameter. Pass argument
19114 to chrec_convert_aggressive.
19115 (instantiate_scev): Change argument.
19116 (resolve_mixers): New parameter and set it.
19117 (scev_const_prop): New argument.
19118 * tree-scalar-evolution.h (resolve_mixers): New parameter.
19119 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19120 of chrec_conert_1.
19121 (chrec_convert): New parameter. Move definition below.
19122 (chrec_convert_aggressive): New parameter and set it. Call
19123 convert_affine_scev.
19124 * tree-chrec.h (chrec_convert): New parameter.
19125 (chrec_convert_aggressive): Ditto.
19126
19127 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19128
19129 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19130 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19131 the LHS of a no-return call if its type has variable size.
19132 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19133 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19134
19135 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
19136
19137 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19138 * config.in: Regenerate.
19139
19140 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19141
19142 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19143 consecutive accesses within outer-loop with force_vectorize
19144 for references with zero step in inner-loop.
19145
19146 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19147
19148 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19149 rather than from gcc/build directory.
19150
19151 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19152
19153 PR target/65697
19154 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19155 for __sync memory models, emit initial loads and final barriers as
19156 appropriate.
19157
19158 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19159
19160 PR target/65697
19161 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19162 (aarch64_split_atomic_op): Check for __sync memory models, emit
19163 appropriate initial loads and final barriers.
19164
19165 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19166
19167 * Makefile.in: Fix gcov dependencies that should
19168 not point to a build folder.
19169
19170 2015-06-01 Richard Biener <rguenther@suse.de>
19171
19172 Revert
19173 2015-05-29 Richard Biener <rguenther@suse.de>
19174
19175 PR tree-optimization/66314
19176 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19177 parameter that says which loop the new block belongs to.
19178 (ssa_create_duplicates): Blocks duplicated for the threaded
19179 path belong to the loop of the thread destination.
19180
19181 2015-06-01 Martin Liska <mliska@suse.cz>
19182
19183 * sched-deps.c: Include pool-alloc.h before
19184 cselib.h header file is included.
19185
19186 2015-06-01 Richard Biener <rguenther@suse.de>
19187
19188 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19189 functions.
19190
19191 2015-06-01 Martin Liska <mliska@suse.cz>
19192
19193 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19194 a function local variable.
19195
19196 2015-06-01 Martin Liska <mliska@suse.cz>
19197
19198 * alloc-pool.c (create_alloc_pool): Remove.
19199 (empty_alloc_pool): Likewise.
19200 (free_alloc_pool): Likewise.
19201 (free_alloc_pool_if_empty): Likewise.
19202 (pool_alloc): Likewise.
19203 (pool_free): Likewise.
19204 * alloc-pool.h: Remove old declarations.
19205
19206 2015-06-01 Martin Liska <mliska@suse.cz>
19207
19208 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19209 (ira_create_object): Likewise.
19210 (ira_create_allocno): Likewise.
19211 (ira_create_live_range): Likewise.
19212 (copy_live_range): Likewise.
19213 (ira_finish_live_range): Likewise.
19214 (ira_free_allocno_costs): Likewise.
19215 (finish_allocno): Likewise.
19216 (finish_allocnos): Likewise.
19217 (initiate_prefs): Likewise.
19218 (ira_create_pref): Likewise.
19219 (finish_pref): Likewise.
19220 (finish_prefs): Likewise.
19221 (initiate_copies): Likewise.
19222 (ira_create_copy): Likewise.
19223 (finish_copy): Likewise.
19224 (finish_copies): Likewise.
19225 (finish_prefs): Likewise.
19226
19227 2015-06-01 Martin Liska <mliska@suse.cz>
19228
19229 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19230 (allocate_and_init_ipcp_value): Likewise.
19231 (ipcp_lattice::add_value): Likewise.
19232 (merge_agg_lats_step): Likewise.
19233 (ipcp_driver): Likewise.
19234 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19235 (ipa_free_all_structures_after_iinln): Likewise.
19236 * ipa-prop.h: Likewise.
19237
19238 2015-06-01 Martin Liska <mliska@suse.cz>
19239
19240 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19241 pool allocator.
19242 (set_hint_predicate): Likewise.
19243 (inline_summary_alloc): Likewise.
19244 (reset_inline_edge_summary): Likewise.
19245 (reset_inline_summary): Likewise.
19246 (set_cond_stmt_execution_predicate): Likewise.
19247 (set_switch_stmt_execution_predicate): Likewise.
19248 (compute_bb_predicates): Likewise.
19249 (estimate_function_body_sizes): Likewise.
19250 (inline_free_summary): Likewise.
19251
19252 2015-06-01 Martin Liska <mliska@suse.cz>
19253
19254 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19255 (ipa_edge_duplication_hook): Likewise.
19256 (ipa_free_all_structures_after_ipa_cp): Likewise.
19257 (ipa_free_all_structures_after_iinln): Likewise.
19258
19259 2015-06-01 Martin Liska <mliska@suse.cz>
19260
19261 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19262 (ipa_profile_generate_summary): Likewise.
19263 (ipa_profile_read_summary): Likewise.
19264 (ipa_profile): Likewise.
19265
19266 2015-06-01 Martin Liska <mliska@suse.cz>
19267
19268 * tree-ssa-structalias.c (new_var_info): Use new type-based
19269 pool allocator.
19270 (new_constraint): Likewise.
19271 (init_alias_vars): Likewise.
19272 (delete_points_to_sets): Likewise.
19273
19274 2015-06-01 Martin Liska <mliska@suse.cz>
19275
19276 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19277 (free_strinfo): Likewise.
19278 (pass_strlen::execute): Likewise.
19279
19280 2015-06-01 Martin Liska <mliska@suse.cz>
19281
19282 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19283 pool allocator.
19284 (vn_reference_insert_pieces): Likewise.
19285 (vn_phi_insert): Likewise.
19286 (visit_reference_op_call): Likewise.
19287 (copy_phi): Likewise.
19288 (copy_reference): Likewise.
19289 (process_scc): Likewise.
19290 (allocate_vn_table): Likewise.
19291 (free_vn_table): Likewise.
19292
19293 2015-06-01 Martin Liska <mliska@suse.cz>
19294
19295 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19296 pool allocator.
19297 (add_repeat_to_ops_vec): Likewise.
19298 (get_ops): Likewise.
19299 (maybe_optimize_range_tests): Likewise.
19300 (init_reassoc): Likewise.
19301 (fini_reassoc): Likewise.
19302
19303 2015-06-01 Martin Liska <mliska@suse.cz>
19304
19305 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19306 pool allocator.
19307 (bitmap_set_new): Likewise.
19308 (get_or_alloc_expr_for_constant): Likewise.
19309 (get_or_alloc_expr_for): Likewise.
19310 (phi_translate_1): Likewise.
19311 (compute_avail): Likewise.
19312 (init_pre): Likewise.
19313 (fini_pre): Likewise.
19314
19315 2015-06-01 Martin Liska <mliska@suse.cz>
19316
19317 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19318 (delete_dep_node): Likewise.
19319 (create_deps_list): Likewise.
19320 (free_deps_list): Likewise.
19321 (sched_deps_init): Likewise.
19322 (sched_deps_finish): Likewise.
19323
19324 2015-06-01 Martin Liska <mliska@suse.cz>
19325
19326 * regcprop.c (free_debug_insn_changes): Use new type-based
19327 pool allocator.
19328 (replace_oldest_value_reg): Likewise.
19329 (pass_cprop_hardreg::execute): Likewise.
19330
19331 2015-06-01 Martin Liska <mliska@suse.cz>
19332
19333 * ira-build.c (initiate_cost_vectors): Use new type-based
19334 pool allocator.
19335 (ira_allocate_cost_vector): Likewise.
19336 (ira_free_cost_vector): Likewise.
19337 (finish_cost_vectors): Likewise.
19338
19339 2015-06-01 Martin Liska <mliska@suse.cz>
19340
19341 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19342 pool allocator.
19343 (free_sched_pools): Likewise.
19344 * sel-sched-ir.h (_list_alloc): Likewise.
19345 (_list_remove): Likewise.
19346
19347 2015-06-01 Martin Liska <mliska@suse.cz>
19348
19349 * stmt.c (add_case_node): Use new type-based pool allocator.
19350 (expand_case): Likewise.
19351 (expand_sjlj_dispatch_table): Likewise.
19352
19353 2015-06-01 Martin Liska <mliska@suse.cz>
19354
19355 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19356 (free_bb): Likewise.
19357 (pass_cse_reciprocals::execute): Likewise.
19358
19359 2015-06-01 Martin Liska <mliska@suse.cz>
19360
19361 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19362 (sra_deinitialize) Likewise.
19363 (create_access_1) Likewise.
19364 (build_accesses_from_assign) Likewise.
19365 (create_artificial_child_access) Likewise.
19366
19367 2015-06-01 Martin Liska <mliska@suse.cz>
19368
19369 * dse.c (get_group_info):Use new type-based pool allocator.
19370 (dse_step0) Likewise.
19371 (free_store_info) Likewise.
19372 (delete_dead_store_insn) Likewise.
19373 (free_read_records) Likewise.
19374 (record_store) Likewise.
19375 (replace_read) Likewise.
19376 (check_mem_read_rtx) Likewise.
19377 (scan_insn) Likewise.
19378 (dse_step1) Likewise.
19379 (dse_step7) Likewise.
19380
19381 2015-06-01 Martin Liska <mliska@suse.cz>
19382
19383 * df-scan.c (struct df_scan_problem_data):Use new type-based
19384 pool allocator.
19385 (df_scan_free_internal) Likewise.
19386 (df_scan_alloc) Likewise.
19387 (df_grow_reg_info) Likewise.
19388 (df_free_ref) Likewise.
19389 (df_insn_create_insn_record) Likewise.
19390 (df_mw_hardreg_chain_delete) Likewise.
19391 (df_insn_info_delete) Likewise.
19392 (df_free_collection_rec) Likewise.
19393 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19394 (df_sort_and_compress_mws) Likewise.
19395 (df_ref_create_structure) Likewise.
19396 (df_ref_record) Likewise.
19397
19398 2015-06-01 Martin Liska <mliska@suse.cz>
19399
19400 * df-problems.c (df_chain_create):Use new type-based pool allocator.
19401 (df_chain_unlink_1) Likewise.
19402 (df_chain_unlink) Likewise.
19403 (df_chain_remove_problem) Likewise.
19404 (df_chain_alloc) Likewise.
19405 (df_chain_free) Likewise.
19406 * df.h (struct dataflow) Likewise.
19407
19408 2015-06-01 Martin Liska <mliska@suse.cz>
19409
19410 * cselib.c (new_elt_list):Use new type-based pool allocator.
19411 (new_elt_loc_list) Likewise.
19412 (unchain_one_elt_list) Likewise.
19413 (unchain_one_elt_loc_list) Likewise.
19414 (unchain_one_value) Likewise.
19415 (new_cselib_val) Likewise.
19416 (cselib_init) Likewise.
19417 (cselib_finish) Likewise.
19418
19419 2015-06-01 Martin Liska <mliska@suse.cz>
19420
19421 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19422 (sh_reorg) Likewise.
19423
19424 2015-06-01 Martin Liska <mliska@suse.cz>
19425
19426 * cfg.c (initialize_original_copy_tables):Use new type-based
19427 pool allocator.
19428 (free_original_copy_tables) Likewise.
19429 (copy_original_table_clear) Likewise.
19430 (copy_original_table_set) Likewise.
19431
19432 2015-06-01 Martin Liska <mliska@suse.cz>
19433
19434 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19435 pool allocator.
19436 (asan_mem_ref_new) Likewise.
19437 (free_mem_ref_resources) Likewise.
19438
19439 2015-06-01 Martin Liska <mliska@suse.cz>
19440
19441 * var-tracking.c (variable_htab_free):Use new type-based
19442 pool allocator.
19443 (attrs_list_clear) Likewise.
19444 (attrs_list_insert) Likewise.
19445 (attrs_list_copy) Likewise.
19446 (shared_hash_unshare) Likewise.
19447 (shared_hash_destroy) Likewise.
19448 (unshare_variable) Likewise.
19449 (var_reg_delete_and_set) Likewise.
19450 (var_reg_delete) Likewise.
19451 (var_regno_delete) Likewise.
19452 (drop_overlapping_mem_locs) Likewise.
19453 (variable_union) Likewise.
19454 (insert_into_intersection) Likewise.
19455 (canonicalize_values_star) Likewise.
19456 (variable_merge_over_cur) Likewise.
19457 (dataflow_set_merge) Likewise.
19458 (remove_duplicate_values) Likewise.
19459 (variable_post_merge_new_vals) Likewise.
19460 (dataflow_set_preserve_mem_locs) Likewise.
19461 (dataflow_set_remove_mem_locs) Likewise.
19462 (variable_from_dropped) Likewise.
19463 (variable_was_changed) Likewise.
19464 (set_slot_part) Likewise.
19465 (clobber_slot_part) Likewise.
19466 (delete_slot_part) Likewise.
19467 (loc_exp_insert_dep) Likewise.
19468 (notify_dependents_of_changed_value) Likewise.
19469 (emit_notes_for_differences_1) Likewise.
19470 (vt_emit_notes) Likewise.
19471 (vt_initialize) Likewise.
19472 (vt_finalize) Likewise.
19473
19474 2015-06-01 Martin Liska <mliska@suse.cz>
19475
19476 * ira-color.c (init_update_cost_records):Use new type-based
19477 pool allocator.
19478 (get_update_cost_record) Likewise.
19479 (free_update_cost_record_list) Likewise.
19480 (finish_update_cost_records) Likewise.
19481 (initiate_cost_update) Likewise.
19482
19483 2015-06-01 Martin Liska <mliska@suse.cz>
19484
19485 * lra.c (init_insn_regs): Use new type-based pool allocator.
19486 (new_insn_reg) Likewise.
19487 (free_insn_reg) Likewise.
19488 (free_insn_regs) Likewise.
19489 (finish_insn_regs) Likewise.
19490 (init_insn_recog_data) Likewise.
19491 (init_reg_info) Likewise.
19492 (finish_reg_info) Likewise.
19493 (lra_free_copies) Likewise.
19494 (lra_create_copy) Likewise.
19495 (invalidate_insn_data_regno_info) Likewise.
19496
19497 2015-06-01 Martin Liska <mliska@suse.cz>
19498
19499 * lra-lives.c (free_live_range): Use new type-based pool allocator.
19500 (free_live_range_list) Likewise.
19501 (create_live_range) Likewise.
19502 (copy_live_range) Likewise.
19503 (lra_merge_live_ranges) Likewise.
19504 (remove_some_program_points_and_update_live_ranges) Likewise.
19505 (lra_live_ranges_init) Likewise.
19506 (lra_live_ranges_finish) Likewise.
19507
19508 2015-06-01 Martin Liska <mliska@suse.cz>
19509
19510 * et-forest.c (et_new_occ): Use new type-based pool allocator.
19511 (et_new_tree): Likewise.
19512 (et_free_tree): Likewise.
19513 (et_free_tree_force): Likewise.
19514 (et_free_pools): Likewise.
19515 (et_split): Likewise.
19516
19517 2015-06-01 Martin Liska <mliska@suse.cz>
19518
19519 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19520 to header file.
19521 * alloc-pool.h (pool_allocator::pool_allocator): New function.
19522 (pool_allocator::release): Likewise.
19523 (inline pool_allocator::release_if_empty): Likewise.
19524 (inline pool_allocator::~pool_allocator): Likewise.
19525 (pool_allocator::allocate): Likewise.
19526 (pool_allocator::remove): Likewise.
19527
19528 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19529
19530 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19531 in comment.
19532
19533 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19534
19535 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19536 to fusible_ops.
19537 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19538 (arm_macro_fusion_p): Likewise.
19539 (arm_macro_fusion_pair_p): Likewise.
19540
19541 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19542
19543 * config/aarch64/aarch64-protos.h (tune_params): Rename
19544 fuseable_ops to fusible_ops.
19545 * config/aarch64/aarch64.c (generic_tunings): Rename
19546 fuseable_ops to fusible_ops.
19547 (cortexa53_tunings): Likewise.
19548 (cortexa57_tunings): Likewise.
19549 (thunderx_tunings): Likewise.
19550 (xgene1_tunings): Likewise.
19551 (aarch64_macro_fusion_p): Likewise.
19552 (aarch64_macro_fusion_pair_p): Likewise.
19553
19554 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
19555
19556 * config/s390/driver-native.c: New file.
19557 * config/s390/x-native: New file.
19558 * config.host: Add new files for s390.
19559 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19560 and -march=native
19561 * config.gcc: Likewise.
19562 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19563 * config/s390/s390-opts.h (enum processor_type): Ditto.
19564 * config/s390/s390.c (s390_option_override): Catch unhandled
19565 PROCESSOR_NATIVE
19566
19567 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
19568
19569 PR target/65527
19570 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19571 redirection for instrumented calls.
19572 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19573 (append_compiler_options): Append -fcheck-pointer-bounds.
19574 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19575 (chkp_redirect_edge): New.
19576 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19577 (chkp_redirect_edge): New.
19578
19579 2015-06-01 Richard Biener <rguenther@suse.de>
19580
19581 PR tree-optimization/66280
19582 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19583 def-use walking.
19584
19585 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19586
19587 * config/aarch64/aarch64.md
19588 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19589 logic_shift_imm.
19590
19591 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19592
19593 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19594 Remove obsolete kludge.
19595
19596 2015-06-01 Richard Biener <rguenther@suse.de>
19597
19598 * tree-ssa-reassoc.c (get_rank): Simplify.
19599
19600 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
19601
19602 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19603 * configure: Regenerated.
19604
19605 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
19606
19607 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19608 issue (add space between string literal and macro).
19609 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19610
19611 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
19612
19613 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19614 implict or explicit -fPIE or -fpie.
19615
19616 2015-05-30 Mike Frysinger <vapier@gentoo.org>
19617
19618 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19619
19620 2015-05-28 DJ Delorie <dj@redhat.com>
19621
19622 * expmed.c (extract_bit_field_1): Avoid clobbering a
19623 yet-to-be-used base/index register.
19624
19625 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
19626
19627 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19628 (alias_stats): Add num_universal.
19629 (alias_set_subset_of): Special case pointers; be ready for NULL
19630 children.
19631 (alias_sets_conflict_p): Special case pointers; be ready for NULL
19632 children.
19633 (init_alias_set_entry): Break out from ...
19634 (record_alias_subset): ... here; propagate new fields;
19635 allocate children only when really needed.
19636 (get_alias_set): Do less generous pointer globbing.
19637 (dump_alias_stats_in_alias_c): Update statistics.
19638
19639 2015-05-30 Alan Modra <amodra@gmail.com>
19640
19641 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19642 correct block for use of r12.
19643 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19644
19645 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19646
19647 PR target/66215
19648 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19649 with -mhotpatch=.
19650
19651 2015-05-29 Jakub Jelinek <jakub@redhat.com>
19652
19653 PR tree-optimization/66142
19654 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19655 virtual phis that feed themselves.
19656
19657 2015-05-29 Richard Biener <rguenther@suse.de>
19658
19659 PR tree-optimization/66314
19660 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19661 parameter that says which loop the new block belongs to.
19662 (ssa_create_duplicates): Blocks duplicated for the threaded
19663 path belong to the loop of the thread destination.
19664
19665 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19666
19667 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19668 to cleanup-saved-temps.
19669 * doc/sourcebuild.texi (Clean up generated test files): Expand
19670 introduction.
19671 (dg-keep-saved-temps): Document new proc.
19672 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19673 cleanup-saved-temps): Remove.
19674
19675 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
19676
19677 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19678 gcc_AC_CHECK_DECLS.
19679 * configure: Regenerate.
19680
19681 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19682
19683 * config/nios2/linux.h (CPP_SPEC): Define.
19684
19685 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19686
19687 * config/microblaze/linux.h (CPP_SPEC): Define.
19688
19689 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19690
19691 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19692 -pthread is specified.
19693
19694 2015-05-28 Richard Biener <rguenther@suse.de>
19695
19696 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19697 (vect_fixup_scalar_cycles_with_patterns): Likewise.
19698 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19699 after pattern recog.
19700 (vect_create_epilog_for_reduction): Properly handle reductions
19701 with patterns.
19702 (vectorizable_reduction): Likewise.
19703 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19704 reduction chains.
19705 (vect_get_constant_vectors): Create the correct number of
19706 initial values for reductions.
19707 (vect_schedule_slp_instance): Handle reduction chains that are
19708 type changing properly.
19709 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19710
19711 2015-05-28 Richard Biener <rguenther@suse.de>
19712
19713 PR tree-optimization/66142
19714 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19715 values better in memcpy destination handling. Handle non-aliasing
19716 we discover here.
19717
19718 2015-05-28 Lawrence Velázquez <vq@larryv.me>
19719
19720 PR target/63810
19721 * config/darwin-c.c (version_components): New global enum.
19722 (parse_version, version_as_legacy_macro)
19723 (version_as_modern_macro, macosx_version_as_macro): New functions.
19724 (version_as_macro): Remove.
19725 (darwin_cpp_builtins): Use new function.
19726
19727 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
19728
19729 * builtins.c (expand_builtin_acc_on_device): Mark parameters
19730 with ATTRIBUTE_UNUSED.
19731
19732 2015-05-28 Julian Brown <julian@codesourcery.com>
19733
19734 PR libgomp/65742
19735
19736 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
19737 sequence for !ACCEL_COMPILER.
19738
19739 2015-05-28 Nick Clifton <nickc@redhat.com>
19740
19741 * config/rx/rx.c (push_regs): New function. Extracts code from...
19742 (rx_expand_prologue): ... here. Use push_regs to push even small
19743 spans of registers.
19744 (pop_regs): New function.
19745 (rx_expand_epilogue): Use pop_regs to pop even small spans of
19746 registers.
19747
19748 2015-05-28 Richard Biener <rguenther@suse.de>
19749
19750 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
19751 member.
19752 (SLP_INSTANCE_BODY_COST_VEC): Remove.
19753 (vect_update_slp_costs_according_to_vf): Likewise.
19754 (vect_slp_analyze_operations): Update prototype.
19755 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
19756 vect_update_slp_costs_according_to_vf, adjust.
19757 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
19758 (vect_analyze_slp_cost_1): Likewise.
19759 (vect_analyze_slp_cost): Likewise. Properly deal with
19760 widening reduction ops. Commit body costs.
19761 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
19762 cost for loops from here.
19763 (vect_slp_analyze_operations): But do it from here when
19764 the vectorization factor is known and stmts are analyzed.
19765 (vect_bb_vectorization_profitable_p): Simplify.
19766 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
19767 (vect_update_slp_costs_according_to_vf): Remove.
19768
19769 2015-05-27 Magnus Granberg <zorry@gentoo.org>
19770 H.J. Lu <hongjiu.lu@intel.com>
19771
19772 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
19773 (BUILD_CFLAGS): Likewise.
19774 (BUILD_CXXFLAGS): Likewise.
19775 (LINKER): Add @NO_PIE_FLAG@.
19776 (BUILD_LDFLAGS): Likewise.
19777 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
19778 --enable-default-pie.
19779 * common.opt (fPIE): Initialize to -1.
19780 (fpie): Likewise.
19781 (no-pie): New option.
19782 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
19783 * configure.ac: Add --enable-default-pie.
19784 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
19785 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
19786 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
19787 * gcc.c (NO_PIE_SPEC): New.
19788 (PIE_SPEC): Likewise.
19789 (NO_FPIE1_SPEC): Likewise.
19790 (FPIE1_SPEC): Likewise.
19791 (NO_FPIE2_SPEC): Likewise.
19792 (FPIE2_SPEC): Likewise.
19793 (NO_FPIE2_SPEC): Likewise.
19794 (FPIE_SPEC): Likewise.
19795 (NO_FPIE_SPEC): Likewise.
19796 (NO_FPIC1_SPEC): Likewise.
19797 (FPIC1_SPEC): Likewise.
19798 (NO_FPIC2_SPEC): Likewise.
19799 (FPIC2_SPEC): Likewise.
19800 (NO_FPIC2_SPEC): Likewise.
19801 (FPIC_SPEC): Likewise.
19802 (NO_FPIC_SPEC): Likewise.
19803 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
19804 (FPIE1_OR_FPIC1_SPEC): Likewise.
19805 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
19806 (FPIE2_OR_FPIC2_SPEC): Likewise.
19807 (NO_FPIE_AND_FPIC_SPEC): Likewise.
19808 (FPIE_OR_FPIC_SPEC): Likewise.
19809 (LD_PIE_SPEC): Likewise.
19810 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
19811 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
19812 * config/darwin.h (PIE_SPEC): Renamed to ...
19813 (DARWIN_PIE_SPEC): This.
19814 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
19815 * config/darwin9.h (PIE_SPEC): Renamed to ...
19816 (DARWIN_PIE_SPEC): This.
19817 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
19818 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
19819 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
19820 FPIE2_OR_FPIC2_SPEC.
19821 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19822 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19823 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
19824 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19825 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19826 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
19827 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
19828 * config/m32r/m32r.h (ASM_SPEC): Likewise.
19829 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
19830 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19831 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19832 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
19833 * config/sparc/linux.h (ASM_SPEC): Likewise.
19834 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19835 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
19836 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
19837 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19838 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19839 * config/sparc/sparc.h (ASM_SPEC): Likewise.
19840 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
19841 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
19842 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
19843 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
19844 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
19845 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
19846 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
19847 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
19848 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
19849 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
19850 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
19851 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
19852 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19853 * config/vax/linux.h (ASM_SPEC): Likewise.
19854 * doc/install.texi: Document --enable-default-pie.
19855 * doc/invoke.texi: Document -no-pie.
19856 * config.in: Regenerated.
19857 * configure: Likewise.
19858
19859 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19860
19861 PR rtl-optimization/66168
19862 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
19863 can_move_invariant_reg.
19864
19865 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
19866
19867 PR target/66148
19868 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
19869 REG_EQUAL note when doing insert.
19870
19871 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
19872 instead of "%d" for 'o' operand.
19873
19874 2015-05-27 Nathan Sidwell <nathan@acm.org>
19875
19876 PR c++/66270
19877 * tree.c (build_pointer_type_for_mode): Canonical type does not
19878 inherit can_alias_all.
19879 (build_reference_type_for_mode): Likewise.
19880
19881 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
19882
19883 * expr.h (array_at_struct_end_p): Move to...
19884 (array_ref_element_size): Likewise.
19885 (component_ref_field_offset): Likewise.
19886 * tree.h (array_ref_element_size): ...here.
19887 (array_at_struct_end_p): Likewise.
19888 (component_ref_field_offset): Likewise.
19889 * expr.c (array_ref_element_size): Move to...
19890 (array_ref_low_bound): Likewise.
19891 (array_at_struct_end_p): Likewise.
19892 (array_ref_up_bound): Likewise.
19893 (component_ref_field_offset): Likewise.
19894 * tree.c (array_ref_element_size): ...here.
19895 (array_ref_low_bound): Likewise.
19896 (array_ref_up_bound): Likewise.
19897 (array_at_struct_end_p): Likewise.
19898 (component_ref_field_offset): Likewise.
19899
19900 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19901 Szabolcs Nagy <szabolcs.nagy@arm.com>
19902
19903 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
19904
19905 2015-05-27 Jason Merrill <jason@redhat.com>
19906
19907 PR bootstrap/66304
19908 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
19909 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
19910 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
19911
19912 2015-05-22 Aditya Kumar <hiraditya@msn.com>
19913
19914 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
19915 is true.
19916
19917 * statistics.c (statistics_fini_pass): Print pass name.
19918
19919 2015-05-27 Richard Biener <rguenther@suse.de>
19920
19921 PR tree-optimization/66272
19922 Revert parts of
19923 2014-08-15 Richard Biener <rguenther@suse.de>
19924
19925 PR tree-optimization/62031
19926 * tree-data-ref.c (dr_analyze_indices): Do not set
19927 DR_UNCONSTRAINED_BASE.
19928 (dr_may_alias_p): All indirect accesses have to go the
19929 formerly DR_UNCONSTRAINED_BASE path.
19930 * tree-data-ref.h (struct indices): Remove
19931 unconstrained_base member.
19932 (DR_UNCONSTRAINED_BASE): Remove.
19933
19934 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
19935
19936 * dwarf2out.c: Remove block_map.
19937 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
19938 (gen_lexical_block_die): Same.
19939 (dwarf2out_function_decl): Remove block_map use.
19940 (dwarf2out_c_finalize): Same.
19941 * tree-core.h (struct tree_block): Add die field.
19942 * tree.h (BLOCK_DIE): New.
19943
19944 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19945
19946 PR target/65358
19947 * expr.c (memory_load_overlap): New function.
19948 (emit_push_insn): When pushing partial args to the stack would
19949 clobber the register part load the overlapping part into a pseudo
19950 and put it into the hard reg after pushing. Change return type
19951 to bool. Add bool argument.
19952 * expr.h (emit_push_insn): Change return type to bool.
19953 Add bool argument.
19954 * calls.c (expand_call): Cancel sibcall optimization when encountering
19955 partial argument on targets with ARGS_GROW_DOWNWARD and
19956 !STACK_GROWS_DOWNWARD.
19957 (emit_library_call_value_1): Update callsite of emit_push_insn.
19958 (store_one_arg): Likewise.
19959
19960 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
19961
19962 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
19963
19964 2015-05-27 Martin Liska <mliska@suse.cz>
19965
19966 * Makefile.in: Add additional dependencies related to memory report
19967 enhancement.
19968 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
19969 * bitmap.c (struct bitmap_descriptor_d): Remove.
19970 (struct loc): Likewise.
19971 (struct bitmap_desc_hasher): Likewise.
19972 (bitmap_desc_hasher::hash): Likewise.
19973 (bitmap_desc_hasher::equal): Likewise.
19974 (get_bitmap_descriptor): Likewise.
19975 (bitmap_register): User new memory descriptor API.
19976 (register_overhead): Likewise.
19977 (bitmap_find_bit): Register nsearches and search_iter statistics.
19978 (struct bitmap_output_info): Remove.
19979 (print_statistics): Likewise.
19980 (dump_bitmap_statistics): Use new memory descriptor.
19981 * bitmap.h (struct bitmap_usage): New class.
19982 * genmatch.c: Extend header file inclusion.
19983 * genpreds.c: Likewise.
19984 * ggc-common.c (struct ggc_usage): New class.
19985 (struct ggc_loc_desc_hasher): Remove.
19986 (ggc_loc_desc_hasher::hash): Likewise.
19987 (ggc_loc_desc_hasher::equal): Likewise.
19988 (struct ggc_ptr_hash_entry): Likewise.
19989 (struct ptr_hash_hasher): Likewise.
19990 (ptr_hash_hasher::hash): Likewise.
19991 (ptr_hash_hasher::equal): Likewise.
19992 (make_loc_descriptor): Likewise.
19993 (ggc_prune_ptr): Likewise.
19994 (dump_ggc_loc_statistics): Use new memory descriptor.
19995 (ggc_record_overhead): Likewise.
19996 (ggc_free_overhead): Likewise.
19997 (final_cmp_statistic): Remove.
19998 (cmp_statistic): Likewise.
19999 (ggc_add_statistics): Liekwise.
20000 (ggc_prune_overhead_list): Likewise.
20001 * hash-map-traits.h: New file.
20002 * hash-map.h (struct default_hashmap_traits): Move the traits to a
20003 separate header file.
20004 * hash-set.h: Pass memory statistics info to ctor.
20005 * hash-table.c (void dump_hash_table_loc_statistics): New function.
20006 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20007 (hash_table::~hash_table): Register memory release operation.
20008 (hash_table::alloc_entries): Handle memory allocation operation.
20009 (hash_table::expand): Likewise.
20010 * inchash.c (iterative_hash_hashval_t): Move implementation to header
20011 file.
20012 (iterative_hash_host_wide_int): Likewise.
20013 * inchash.h (class hash): Likewise.
20014 * mem-stats-traits.h: New file.
20015 * mem-stats.h: New file.
20016 (mem_location): Add new class.
20017 (mem_usage): Likewise.
20018 (mem_alloc_description): Likewise.
20019 * sese.c: Add new header file inclusision.
20020 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20021 and hash_set.
20022 * tree-sra.c: Add new header file inclusision.
20023 * vec.c (struct vec_descriptor): Remove.
20024 (hash_descriptor): Likewise.
20025 (struct vec_usage): Likewise.
20026 (struct ptr_hash_entry): Likewise.
20027 (hash_ptr): Likewise.
20028 (eq_ptr): Likewise.
20029 (vec_prefix::register_overhead): Use new memory descriptor API.
20030 (vec_prefix::release_overhead): Likewise.
20031 (add_statistics): Remove.
20032 (dump_vec_loc_statistics): Use new memory descriptor API.
20033 * vec.h (struct vec_prefix): Likewise.
20034 (va_heap::reserve): Likewise.
20035 (va_heap::release): Likewise.
20036 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20037
20038 2015-05-27 Richard Biener <rguenther@suse.de>
20039
20040 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20041 earlier and remove ??? comment.
20042 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20043 and got called from loop analysis bail out. Always pass the SLP
20044 node to the vectorizable_* functions.
20045 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20046 the premature SLP check here.
20047 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20048 detected SLP stmts.
20049 (vect_detect_hybrid_slp_1): Likewise.
20050
20051 2015-05-26 Jeff Law <law@redhat.com>
20052
20053 * combine.c (find_split_point): Verify that the shift count is a
20054 constant when choosing (plus (ashift ...)) as a split point.
20055
20056 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20057 No functional changes.
20058
20059 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
20060
20061 * ipa-polymorphic-call.c
20062 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20063 case when call target is already known.
20064
20065 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
20066
20067 PR target/65979
20068 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20069 take into account the case that operands[1] and operands[2]
20070 are the same register.
20071
20072 2015-05-26 Michael Matz <matz@suse.de>
20073
20074 PR middle-end/66251
20075
20076 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20077 stores.
20078 (vect_create_vectorized_demotion_stmts): Always set
20079 STMT_VINFO_VEC_STMT, also with SLP.
20080 (vectorizable_store): Handle strided group stores.
20081
20082 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20083
20084 PR target/66049
20085 * config/aarch64/aarch64.md
20086 (*adds_shift_imm_<mode>): New pattern.
20087 (*subs_shift_imm_<mode>): Likewise.
20088 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20089 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20090 (*add_uxt<mode>_shift2): Likewise.
20091 (*add_uxtsi_shift2_uxtw): Likewise.
20092 (*sub_uxt<mode>_shift2): Likewise.
20093 (*sub_uxtsi_shift2_uxtw): Likewise.
20094
20095 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
20096
20097 * config/rs6000/constraints.md (Y, U): Use match_test.
20098
20099 2015-05-26 Christian Bruel <christian.bruel@st.com>
20100
20101 PR target/52144
20102 * config/arm/arm.c (arm_option_check_internal)
20103 (arm_option_params_internal): Check opts->target_flags to set macros.
20104 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20105 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20106 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20107 (builtin_define): Replaced with def_or_undef_macro.
20108 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20109 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20110 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20111 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20112 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20113 (TARGET_ARM_FEATURE_LDREX_P)
20114 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20115 * config/arm/arm-c.c (def_or_undef_macro): New function.
20116 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20117
20118 2015-05-26 Christian Bruel <christian.bruel@st.com>
20119
20120 * c-common.h (builtin_define_with_int_value)
20121 (builtin_define_type_sizeof): Declare.
20122 * c-cppbuiltin.c (builtin_define_with_int_value)
20123 (builtin_define_type_sizeof): Externalize.
20124 (builtin_define_std): Cleanup declaration.
20125 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20126 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20127 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20128 (builtin_define, builtin_assert): New macros.
20129
20130 2015-05-26 Richard Biener <rguenther@suse.de>
20131
20132 PR tree-optimization/66142
20133 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20134 MEM_REFs for the same base address.
20135
20136 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20137
20138 PR ipa/66181
20139 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20140
20141 2015-05-26 Jason Merrill <jason@redhat.com>
20142
20143 * configure.ac: Set CXXFLAGS for ISL test.
20144 * configure: Regenerate.
20145
20146 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
20147 strstr and basename.
20148 * configure: Regenerate.
20149
20150 2015-05-26 Richard Biener <rguenther@suse.de>
20151
20152 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20153 X % C -> X & (C - 1) for C being a power-of two to ...
20154 * match.pd: ... patterns.
20155
20156 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
20157
20158 * match.pd (swapped_tcc_comparison): New operator list.
20159 (-A CMP -B): New simplification.
20160 * fold-const.c (fold_comparison): Remove corresponding code.
20161
20162 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20163
20164 * caller-save.c (init_caller_save): Base temporary register numbers
20165 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20166 * cfgloopanal.c (init_set_costs): Likewise.
20167 * dojump.c (prefer_and_bit_test): Likewise.
20168 * expr.c (init_expr_target): Likewise.
20169 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20170 * lower-subreg.c (init_lower_subreg): Likewise.
20171 * postreload.c (reload_cse_regs_1): Likewise.
20172
20173 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20174
20175 * gensupport.h (compute_test_codes): Declare.
20176 * gensupport.c (compute_predicate_codes): Rename to...
20177 (compute_test_codes): ...this. Generalize error message.
20178 (process_define_predicate): Update accordingly.
20179 * genpreds.c (compute_maybe_allows): Delete.
20180 (add_constraint): Use compute_test_codes to determine whether
20181 something can accept a SUBREG, REG or MEM.
20182
20183 2015-05-26 Torvald Riegel <triegel@redhat.com>
20184
20185 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20186 'memory model' to align with C++11; fix description of memory orders;
20187 fix a few typos.
20188
20189 2015-05-26 Richard Biener <rguenther@suse.de>
20190
20191 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20192 (vect_analyze_loop_operations): ... here. Remove slp parameter,
20193 detect whether we apply SLP. Remove call to
20194 vect_update_slp_costs_according_to_vf.
20195 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20196 vect_update_slp_costs_according_to_vf from here. Dispatch
20197 to vect_slp_analyze_operations to analyze SLP stmts.
20198 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20199 unused bb_vec_info parameter, adjust assert.
20200 (vect_slp_analyze_operations): Pass in the slp instance tree
20201 instead of bb_vec_info.
20202 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20203 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20204
20205 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20206
20207 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20208 Q_REGS. Expand comment.
20209 (REG_CLASS_NAMES): Ditto.
20210 (REG_CLASS_CONTENTS): Ditto.
20211
20212 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
20213
20214 PR target/66274
20215 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20216 when LEGACY_INT_REGNO_P is processed.
20217
20218 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20219
20220 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20221
20222 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20223
20224 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20225 register if not marked dead/unused, before return.
20226
20227 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20228
20229 PR lto/66180
20230 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20231 is set; check for assembler name at LTO time.
20232 (type_in_anonymous_namespace): Remove hacks, check that all
20233 anonymous types are called "<anon>"
20234 (odr_type_p): Simplify; add check for "<anon>"
20235 (odr_subtypes_equivalent): Add odr_type_p check.
20236 * tree.c (need_assembler_name_p): Even anonymous namespace needs
20237 assembler name.
20238
20239 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20240
20241 * ipa-utils.h (method_class_type): Remove.
20242 * cgraphunit.c (walk_polymorphic_call_targets): Use
20243 TYPE_METHOD_BASETYPE.
20244 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20245 on main variants only.
20246 (method_class_type): Remove.
20247 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20248 (build_type_inheritance_graph): Likewise.
20249 * ipa-icf.c (sem_function::equals_wpa): Likewise.
20250 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20251 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20252
20253 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20254
20255 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20256 is_typedef_decl, typedef_variant_p): Constify.
20257 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20258 is_typedef_decl, typedef_variant_p): Constify.
20259
20260 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20261
20262 * defaults.h (gen_tablejump): New function.
20263 (HAVE_tablejump): Add default value.
20264 * expr.c: Adjust.
20265 * stmt.c: Likewise.
20266
20267 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20268
20269 * defaults.h (gen_store_multiple): New function.
20270 (HAVE_store_multiple): Add default value.
20271 * expr.c (move_block_from_reg): Adjust.
20272
20273 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20274
20275 * defaults.h (gen_load_multiple): New function.
20276 (HAVE_load_multiple): Add default value.
20277 * expr.c (move_block_to_reg): Adjust.
20278
20279 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20280
20281 * defaults.h (gen_mem_signal_fence): New function.
20282 (HAVE_mem_signal_fence): Add default value.
20283 * optabs.c: Adjust.
20284
20285 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20286
20287 * defaults.h (gen_memory_barrier): New function.
20288 (HAVE_memory_barrier): Add default value.
20289 * optabs.c: Adjust.
20290
20291 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20292
20293 * defaults.h (gen_mem_thread_fence): New function.
20294 (HAVE_mem_thread_fence): Add default definition.
20295 * optabs.c: Adjust.
20296
20297 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20298
20299 * combine.c (find_split_point): Check the value of HAVE_lo_sum
20300 instead of if it is defined.
20301 (combine_simplify_rtx): Likewise.
20302 * lra-constraints.c (process_address_1): Likewise.
20303 * config/darwin.c: Adjust.
20304 * genconfig.c (main): Always define HAVE_lo_sum.
20305
20306 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20307
20308 * genmatch.c (parser::parse_operation): Reject expanding
20309 operator-list inside 'for'.
20310
20311 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20312
20313 * genmatch.c (parser::parse_for): Reject iterator if used as
20314 operator-list.
20315
20316 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20317
20318 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20319 after end of id-list.
20320
20321 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20322
20323 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20324 we do not try to compute canonical type for type that does not need
20325 alias set.
20326 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20327 FUNCITON_TYPE.
20328 * tree.h (type_with_alias_set_p): New.
20329
20330 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20331
20332 * tree.c (gimple_canonical_types_compatible_p): Do not compare
20333 function attributes.
20334 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20335
20336 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
20337
20338 * Makefile.in (check_gcc_parallelize): Delete.
20339 (lang_checks_parallelized): Update comment.
20340
20341 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
20342
20343 PR rtl-optimization/66237
20344 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20345 location of an "as_a" cast.
20346
20347 2015-05-22 Jeff Law <law@redhat.com>
20348
20349 * config/pa/pa.md (non-canonical shift-add insns): Remove.
20350 (peepholes with non-canonical RTL sources): Remove.
20351 (peepholes for indexed stores of FP regs in integer modes): Match and
20352 generate canonical RTL.
20353
20354 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20355
20356 PR tree-optimization/63387
20357 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20358 ((x ord x) & (y ord y) -> (x ord y),
20359 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20360 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20361 vectors like scalars.
20362
20363 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20364
20365 * convert.c (convert_to_integer, convert_to_vector): Include the
20366 types in the error message.
20367
20368 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20369
20370 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20371 simplifications.
20372
20373 2015-05-22 Jeff Law <law@redhat.com>
20374
20375 * config/pa/pa.md (integer_indexed_store splitters): Use
20376 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
20377 insns -- adjusting the constant 2nd operand accordingly.
20378
20379 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20380 (plus (ashift X log2) Y) if it is a split point.
20381
20382 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20383 out of hppa_legitimize_address to handle both forms of a multiply
20384 by 2, 4 or 8.
20385 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20386 Always generate the ASHIFT variant as the result is not directly
20387 used in a MEM. Update comments and refactor slightly to improve
20388 readability.
20389
20390 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20391
20392 PR target/65491
20393 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20394 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
20395 (aarch64_composite_type_p): Return false if given type and mode are
20396 for a short vector.
20397
20398 2015-05-22 Richard Biener <rguenther@suse.de>
20399
20400 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20401 member.
20402 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20403 patterns when determining whether SLP is pure.
20404 (vect_is_slp_reduction): Remove check for pattern stmts.
20405 (vect_is_simple_reduction_1): Remove dead code.
20406 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20407 (vect_get_and_check_slp_defs): Pass in the stmt number.
20408 Allow the first def in a reduction to be not a pattern stmt when
20409 the rest of the stmts def are patterns.
20410 (vect_build_slp_tree_1): Allow tcc_expression codes like
20411 SAD_EXPR and DOT_PROD_EXPR.
20412 (vect_build_slp_tree): Adjust.
20413 (vect_analyze_slp): Refactor and move BB vect error message ...
20414 (vect_slp_analyze_bb_1): ... here.
20415
20416 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
20417
20418 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20419 for CSWTCH temporary.
20420
20421 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20422
20423 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20424 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
20425 unknown unspecs.
20426
20427 2015-05-22 Richard Biener <rguenther@suse.de>
20428
20429 PR tree-optimization/66251
20430 * tree-vect-stmts.c (vectorizable_conversion): Properly
20431 set STMT_VINFO_VEC_STMT even for the SLP case.
20432
20433 2015-05-22 Marek Polacek <polacek@redhat.com>
20434
20435 * doc/extend.texi: Use @pxref instead of @xref.
20436
20437 2015-05-22 hiraditya <hiraditya@msn.com>
20438
20439 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20440 redundant if.
20441
20442 2015-05-22 Richard Biener <rguenther@suse.de>
20443
20444 PR tree-optimization/65701
20445 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20446 Move peeling cost models into one place. Peel for alignment
20447 for single loads only if an aligned load is cheaper than
20448 an unaligned load.
20449
20450 2015-05-22 Marek Polacek <polacek@redhat.com>
20451
20452 PR c/47043
20453 * doc/extend.texi (Enumerator Attributes): New section.
20454 Document syntax of enumerator attributes.
20455
20456 2015-05-22 Richard Biener <rguenther@suse.de>
20457
20458 * tree-vect-loop.c (get_reduction_op): New function.
20459 (vect_model_reduction_cost): Use it, add reduc_index parameter.
20460 Make ready for BB reductions.
20461 (vect_create_epilog_for_reduction): Use get_reduction_op.
20462 (vectorizable_reduction): Init reduc_index to a valid value.
20463 Adjust vect_model_reduction_cost call.
20464 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20465 operand for reduction defaults. Add SAD_EXPR support.
20466 Assert we have a neutral op for SLP reductions.
20467 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20468 walking pattern stmt ops only recurse to SSA names.
20469
20470 2015-05-22 Richard Biener <rguenther@suse.de>
20471
20472 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20473 assert with guard, remove check on detected reduction.
20474 (vect_recog_sad_pattern): Likewise.
20475 (vect_recog_widen_sum_pattern): Likewise.
20476
20477 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20478
20479 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20480 __always_inline__ attribute.
20481 (vaesdq_u8): Likewise.
20482 (vaesmcq_u8): Likewise.
20483 (vaesimcq_u8): Likewise.
20484 (vsha1cq_u32): Likewise.
20485 (vsha1mq_u32): Likewise.
20486 (vsha1pq_u32): Likewise.
20487 (vsha1h_u32): Likewise.
20488 (vsha1su0q_u32): Likewise.
20489 (vsha1su1q_u32): Likewise.
20490 (vsha256hq_u32): Likewise.
20491 (vsha256h2q_u32): Likewise.
20492 (vsha256su0q_u32): Likewise.
20493 (vsha256su1q_u32): Likewise.
20494 (vmull_p64): Likewise.
20495 (vmull_high_p64): Likewise.
20496
20497 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20498
20499 * final.c (final_scan_insn): Don't check HAVE_peephole with the
20500 preprocessor.
20501 * output.h: Likewise.
20502 * genconfig.c (main): Alwways define HAVE_peephole.
20503 * genpeep.c: Don't emit checks of HAVE_peephole.
20504
20505 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20506
20507 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20508 check HAVE_conditional_move with the preprocessor.
20509
20510 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20511
20512 * genconfig.c (main): Always define HAVE_conditional_move.
20513 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20514 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20515 is defined.
20516
20517 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20518
20519 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20520 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20521 and FRAME_POINTER_REGNUM with the preprocessor.
20522
20523 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20524
20525 * defaults.h: Add default for STACK_PUSH_CODE.
20526 * expr.c: Don't redefine STACK_PUSH_CODE.
20527 * recog.c: Likewise.
20528
20529 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20530
20531 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20532 sched-deps.c: Use if instead of preprocessor checks with
20533 STACK_GROWS_DOWNWARD.
20534
20535 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20536
20537 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20538 is defined.
20539 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20540 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20541 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20542 * doc/tm.texi: Regenerate.
20543
20544 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
20545
20546 PR target/66232
20547 * config/i386/constraints.md (Bg): New constraint for GOT memory
20548 operand.
20549 * config/i386/i386.md (*call_got_x32): New pattern.
20550 (*call_value_got_x32): Likewise.
20551 * config/i386/predicates.md (GOT_memory_operand): New predicate.
20552
20553 2015-05-21 Jakub Jelinek <jakub@redhat.com>
20554
20555 PR tree-optimization/66233
20556 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20557 Simplify.
20558
20559 2015-05-21 Jeff Law <law@redhat.com>
20560
20561 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20562 than MULT for shadd sequences.
20563
20564 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
20565
20566 * alias.c (alias_stats): New static var.
20567 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20568 (dump_alias_stats_in_alias_c): New function.
20569 * alias.h (dump_alias_stats_in_alias_c): Declare.
20570 * tree-ssa-alias.c (dump_alias_stats): Call it.
20571
20572 2015-05-08 Michael Matz <matz@suse.de>
20573
20574 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20575 to strided_p.
20576 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20577 (STMT_VINFO_STRIDED_P): ... this.
20578 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20579 (vect_verify_datarefs_alignment): Likewise.
20580 (vect_enhance_data_refs_alignment): Likewise.
20581 (vect_analyze_data_ref_access): Likewise.
20582 (vect_analyze_data_refs): Accept strided stores.
20583 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20584 (vect_model_load_cost): Adjust for macro rename.
20585 (vectorizable_mask_load_store): Likewise.
20586 (vectorizable_load): Likewise.
20587 (vectorizable_store): Open code strided stores.
20588
20589 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20590
20591 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20592 Document sqrt_insn.
20593
20594 2015-05-21 Richard Biener <rguenther@suse.de>
20595
20596 PR c++/66211
20597 * match.pd: Guard pattern optimzing (int)(float)int
20598 conversions to apply only on GIMPLE.
20599
20600 2015-05-21 Jeff Law <law@redhat.com>
20601
20602 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20603 multiply-accumulate/shift-add insn generation.
20604
20605 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
20606
20607 PR target/54236
20608 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20609 operands[1] are the same.
20610
20611 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
20612
20613 PR middle-end/66221
20614 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20615 build_distinct_type_copy to copy bounds.
20616
20617 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
20618
20619 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20620 Change to unsigned int.
20621
20622 2015-05-20 Jeff Law <law@redhat.com>
20623
20624 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20625 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20626 (pa_shadd_constant_p): Allow constants for shadd insns rather
20627 than valid scaling constants for memory addresses.
20628 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20629 * config/pa/predicates.md (mem_shadd_operand): New predicate.
20630 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20631 (shift-add insns using ASHIFT): New patterns.
20632
20633 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
20634
20635 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20636 feasible.
20637 (fix_up_fall_thru_edges): Likewise.
20638 (fix_crossing_conditional_branches): Likewise. Promote jump targets
20639 from to rtx_insn to rtx_code_label where feasible.
20640 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20641 gen_move_insn (returned type changed to rtx_insn).
20642 * builtins.c (expand_errno_check): Fix arguments of
20643 do_compare_rtx_and_jump (now expects rtx_code_label).
20644 (expand_builtin_acc_on_device): Likewise.
20645 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20646 invert_jump (now exprects rtx_jump_insn).
20647 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20648 (construct_init_block): Use rtx_code_label.
20649 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20650 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20651 calling redirect_jump.
20652 (patch_jump_insn): Likewise.
20653 (redirect_branch_edge): Likewise.
20654 (force_nonfallthru_and_redirect): Likewise.
20655 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20656 when suitable.
20657 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20658 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20659 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20660 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20661 to store the value retured by gen_label_rtx.
20662 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20663 rtx_jump_insn.
20664 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20665 (split_branches): Fix calls of redirect_jump.
20666 * dojump.c (jumpifnot): Promote argument type from rtx to
20667 rtx_code_label.
20668 (jumpifnot_1): Likewise.
20669 (jumpif): Likewise.
20670 (jumpif_1): Likewise.
20671 (do_jump_1): Likewise.
20672 (do_jump): Likewise. Use rtx_code_label when feasible.
20673 (do_jump_by_parts_greater_rtx): Likewise.
20674 (do_jump_by_parts_zero_rtx): Likewise.
20675 (do_jump_by_parts_equality_rtx): Likewise.
20676 (do_compare_rtx_and_jump): Likewise.
20677 * dojump.h: Update function prototypes.
20678 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20679 returns rtx_insn).
20680 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20681 rtx_jump_insn.
20682 (emit_label_before): Likewise.
20683 (emit_jump_insn_after_noloc): Likewise.
20684 (emit_jump_insn_after_setloc): Likewise.
20685 (emit_jump_insn_after): Likewise
20686 (emit_jump_insn_before_setloc): Likewise.
20687 (emit_jump_insn_before): Likewise.
20688 (emit_label_before): Promote return type to rtx_code_label.
20689 (emit_label): Likewise.
20690 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20691 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20692 gen_move_insn.
20693 (emit_stack_restore): Likewise.
20694 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20695 (do_cmp_and_jump): Likewise.
20696 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20697 from rtx to rtx_code_label.
20698 (gen_move_insn_uncast): New function.
20699 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20700 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20701 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20702 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20703 invert_jump_1 and redirect_jump_1.
20704 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20705 do_compare_rtx_and_jump.
20706 (expand_addsub_overflow): Likewise.
20707 (expand_neg_overflow): Likewise.
20708 (expand_mul_overflow): Likewise.
20709 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20710 return value of gen_move_insn.
20711 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20712 * loop-doloop.c (add_test): Use rtx_code_label.
20713 (doloop_modify): Likewise.
20714 (doloop_optimize): Likewise.
20715 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20716 * lra-constraints.c (emit_spill_move): Remove cast of value returned
20717 by gen_move_insn.
20718 (inherit_reload_reg): Add cast when calling dump_insn_slim.
20719 (split_reg): Likewise.
20720 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20721 gen_move_insn.
20722 * optabs.c (expand_binop_directly): Remove casts of values returned by
20723 maybe_gen_insn.
20724 (expand_unop_direct): Likewise.
20725 (expand_abs): Likewise.
20726 (maybe_emit_unop_insn): Likewise.
20727 (maybe_gen_insn): Promote return type to rtx_insn.
20728 * optabs.h: Update prototype of maybe_gen_insn.
20729 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20730 redundant cast.
20731 * recog.c (struct peep2_insn_data): Promote type of insn field to
20732 rtx_insn.
20733 (peep2_reinit_state): Use NULL instead of NULL_RTX.
20734 (peep2_attempt): Remove casts of insn in peep2_insn_data.
20735 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20736 * recog.h (struct insn_gen_fn): Promote return types of function
20737 pointers and operator ().from rtx to rtx_insn.
20738 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
20739 (fill_eager_delay_slots): Likewise.
20740 (relax_delay_slots): Likewise.
20741 (make_return_insns): Likewise.
20742 (dbr_schedule): Likewise.
20743 (optimize_skips): Likewise.
20744 (reorg_redirect_jump): Likewise.
20745 (fill_slots_from_thread): Likewise.
20746 * reorg.h: Update prototypes.
20747 * resource.c (find_dead_or_set_registers): Use dyn_cast to
20748 rtx_jump_insn instead of check. Use it's jump_target method.
20749 * rtl.h (rtx_jump_insn::jump_label): Define new method.
20750 (rtx_jump_insn::jump_target): Define new method.
20751 (rtx_jump_insn::set_jump_target): Define new method.
20752 * rtlanal.c (tablejump_p): Promote type of one local variable.
20753 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
20754 (sched_analyze_insn): Likewise.
20755 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
20756 (print_insn): Likewise.
20757 * stmt.c (label_rtx): Promote return type to rtx_insn.
20758 (force_label_rtx): Likewise.
20759 (jump_target_rtx): Define new function.
20760 (expand_label): Use it, get rid of one cast.
20761 (expand_naked_return): Promote rtx to rtx_code_label.
20762 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
20763 (expand_case): Use rtx_code_label instread of rtx where feasible.
20764 (expand_sjlj_dispatch_table): Likewise.
20765 (emit_case_nodes): Likewise.
20766 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
20767 * store-motion.c (insert_store): Make use of new return type of
20768 gen_move_insn and remove a cast.
20769 (replace_store_insn): Likewise.
20770
20771 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
20772
20773 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
20774 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
20775
20776 2015-05-20 Jeff Law <law@redhat.com>
20777
20778 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
20779 dispose of the jump thread path when the jump threading
20780 opportunity is cancelled.
20781
20782 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
20783
20784 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
20785 when printing the caret character.
20786
20787 2015-05-20 Marek Polacek <polacek@redhat.com>
20788
20789 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
20790
20791 2015-05-20 Marek Polacek <polacek@redhat.com>
20792
20793 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
20794 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
20795 * gimple-fold.c (canonicalize_bool): Likewise.
20796 (same_bool_result_p): Likewise.
20797 * tree-if-conv.c (parse_predicate): Likewise.
20798
20799 2015-05-20 Marek Polacek <polacek@redhat.com>
20800
20801 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
20802 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
20803
20804 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20805
20806 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
20807 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
20808 values.
20809
20810 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
20811
20812 * config/mips/mips.h (micromips_globals): Declare.
20813
20814 2015-05-20 David Malcolm <dmalcolm@redhat.com>
20815
20816 * timevar.def (TV_INITIALIZE_RTL): New.
20817 * toplev.c (initialize_rtl): Use an auto_timevar to account this
20818 function's time to TV_INITIALIZE_RTL.
20819
20820 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
20821
20822 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
20823 gimple_build_nop calls.
20824 (chkp_find_bounds_for_elem): Likewise.
20825 (chkp_get_zero_bounds): Likewise.
20826 (chkp_get_none_bounds): Likewise.
20827 (chkp_get_bounds_by_definition): Likewise.
20828 (chkp_generate_extern_var_bounds): Likewise.
20829 (chkp_get_bounds_for_decl_addr): Likewise.
20830 (chkp_get_bounds_for_string_cst): Likewise.
20831
20832 2015-05-20 Bin Cheng <bin.cheng@arm.com>
20833
20834 PR tree-optimization/65447
20835 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
20836 (dump_use, dump_uses): Support to dump sub use.
20837 (record_use): New parameters to support sub use. Remove call to
20838 dump_use.
20839 (record_sub_use, record_group_use): New functions.
20840 (compute_max_addr_offset, split_all_small_groups): New functions.
20841 (group_address_uses, rewrite_use_address): New functions.
20842 (strip_offset): New declaration.
20843 (find_interesting_uses_address): Call record_group_use.
20844 (add_candidate): New assertion.
20845 (infinite_cost_p): Move definition forward.
20846 (add_costs): Check INFTY cost and return immediately.
20847 (get_computation_cost_at): Clear setup cost and dependent bitmap
20848 for sub uses.
20849 (determine_use_iv_cost_address): Compute cost for sub uses.
20850 (rewrite_use_address_1): Rename from old rewrite_use_address.
20851 (free_loop_data): Free sub uses.
20852 (tree_ssa_iv_optimize_loop): Call group_address_uses.
20853
20854 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20855 Jim Wilson <jim.wilson@linaro.org>
20856
20857 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
20858 new fields loadv and storev.
20859 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
20860 Initialize loadv and storev.
20861 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
20862 (cortexa53_extra_costs): Likewise.
20863 (cortexa57_extra_costs): Likewise.
20864 (xgene1_extra_costs): Likewise.
20865 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
20866 rtx_costs.
20867
20868 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
20869
20870 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
20871 storev.
20872 (cortexa8_extra_costs): Likewise.
20873 (cortexa5_extra_costs): Likewise.
20874 (cortexa7_extra_costs): Likewise.
20875 (cortexa12_extra_costs): Likewise.
20876 (cortexa15_extra_costs): Likewise.
20877 (v7m_extra_costs): Likewise.
20878
20879 2015-05-20 Jeff Law <law@redhat.com>
20880
20881 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
20882 instead of open-coded version. Also delete the jump thread created
20883 within this function.
20884
20885 2015-05-20 Alan Modra <amodra@gmail.com>
20886
20887 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
20888 stack adjusting insn. Formatting.
20889 (rs6000_emit_prologue): Track stack adjusting insn, and use of
20890 r12. If possible, emit first -fsplit-stack arg pointer insn
20891 before stack adjust. Don't use r12 to save cr if split-stack.
20892
20893 2015-05-20 Alan Modra <amodra@gmail.com>
20894
20895 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
20896 Define.
20897 (rs6000_supports_split_stack): New function.
20898 * gcc/config/rs6000/rs6000.c (machine_function): Add
20899 split_stack_arg_pointer.
20900 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
20901 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
20902 rather than virtual_incoming_args_rtx.
20903 (rs6000_va_start): Likewise.
20904 (split_stack_arg_pointer_used_p): New function.
20905 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
20906 (morestack_ref): New var.
20907 (gen_add3_const, rs6000_expand_split_stack_prologue,
20908 rs6000_internal_arg_pointer, rs6000_live_on_entry,
20909 rs6000_split_stack_space_check): New functions.
20910 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
20911 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
20912 (UNSPECV_SPLIT_STACK_RETURN): Define.
20913 (split_stack_prologue, load_split_stack_limit,
20914 load_split_stack_limit_di, load_split_stack_limit_si,
20915 split_stack_return, split_stack_space_check): New expands and insns.
20916 * gcc/config/rs6000/rs6000-protos.h
20917 (rs6000_expand_split_stack_prologue): Declare.
20918 (rs6000_split_stack_space_check): Declare.
20919
20920 2015-05-20 Alan Modra <amodra@gmail.com>
20921
20922 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
20923 (direct_return): Test vrsave_size rather than vrsave_mask.
20924 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
20925 (rs6000_emit_epilogue): Likewise.
20926
20927 2015-05-20 Alan Modra <amodra@gmail.com>
20928
20929 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
20930 when not saving registers.
20931 (debug_stack_info): Adjust to omit printing unused offsets,
20932 as before.
20933 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
20934 expression.
20935
20936 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20937
20938 PR c++/65835
20939 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
20940 value_type to const char *.
20941
20942 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
20943
20944 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
20945 to build a biarch toolchain again.
20946
20947 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
20948
20949 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
20950 or implicit declarations.
20951 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
20952 into it.
20953 (get_odr_type): Check type has linkage before adding bases.
20954 (register_odr_type): Check that type has linkage before adding it.
20955 (type_known_to_have_no_deriavations_p): Rename to ..
20956 (type_known_to_have_no_derivations_p): This one.
20957 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
20958 (type_known_to_have_no_derivations_p): This one.
20959 * ipa-polymorphic-call.c
20960 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
20961 type has linkage.
20962
20963 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
20964
20965 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
20966 (layout_type): Use RECORD_OR_UNION_TYPE_P.
20967
20968 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20969
20970 * config/s390/s390.c (s390_vector_bool_type_p): New function.
20971 (s390_invalid_binary_op): New function.
20972 (TARGET_INVALID_BINARY_OP): Define macro.
20973
20974 2015-05-19 David Sherwood <david.sherwood@arm.com>
20975
20976 * loop-invariant.c (create_new_invariant): Don't calculate address cost
20977 if mode is not a scalar integer.
20978 (get_inv_cost): Increase computational cost for unused invariants.
20979
20980 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20981
20982 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
20983 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
20984 * config/s390/s390-builtin-types.def: New file.
20985 * config/s390/s390-builtins.def: New file.
20986 * config/s390/s390-builtins.h: New file.
20987 * config/s390/s390-c.c: New file.
20988 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
20989 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
20990 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
20991 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
20992 prototypes.
20993 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
20994 Include.
20995 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
20996 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
20997 variable definitions.
20998 (s390_const_operand_ok): New function.
20999 (s390_expand_builtin): Rewrite.
21000 (s390_init_builtins): New function.
21001 (s390_handle_vectorbool_attribute): New function.
21002 (s390_attribute_table): Add s390_vector_bool attribute.
21003 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21004 (s390_branch_condition_mask): Generate masks for new modes.
21005 (s390_expand_vec_compare_cc): New function.
21006 (s390_mangle_type): Add mangling for vector bool types.
21007 (enum s390_builtin): Remove.
21008 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21009 efpc builtins.
21010 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21011 s390_cpu_cpp_builtins.
21012 (REGISTER_TARGET_PRAGMAS): New macro.
21013 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21014 (insn_cmp mode attribute): Add new CC modes.
21015 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21016 (lcbb): New pattern definition.
21017 * config/s390/s390intrin.h: Include vecintrin.h.
21018 * config/s390/t-s390: New file.
21019 * config/s390/vecintrin.h: New file.
21020 * config/s390/vector.md: Include vx-builtins.md.
21021 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21022 support.
21023
21024 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21025
21026 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21027 CCVFHE.
21028 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21029 (s390_select_ccmode): Likewise.
21030 (s390_canonicalize_comparison): Swap operands if necessary.
21031 (s390_expand_vec_compare_scalar): Expand DFmode compare using
21032 single element vector instructions.
21033 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21034 (s390_branch_condition_mask): Generate CC masks for the new modes.
21035 * config/s390/s390.md (v0, vf, vd): New mode attributes.
21036 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21037 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21038 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21039 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21040 (*extend<DSF:mode><BFP:mode>2): New insn definition.
21041 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21042 (extend<DSF:mode><BFP:mode>2): Turn into expander.
21043 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21044 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21045 (sqrt<mode>2): Add vector instruction.
21046
21047 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21048
21049 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21050 constraints.
21051 * config/s390/predicates.md (const0_operand, constm1_operand)
21052 (constable_operand): Accept vector operands.
21053 * config/s390/s390-modes.def: Add supported vector modes.
21054 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21055 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21056 (s390_bytemask_vector_p, s390_expand_vec_strlen)
21057 (s390_expand_vec_compare, s390_expand_vcond)
21058 (s390_expand_vec_init): Add prototypes.
21059 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21060 (s390_vector_mode_supported_p): New function.
21061 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21062 (s390_contiguous_bitmask_vector_p): New function.
21063 (s390_bytemask_vector_p): New function.
21064 (s390_split_ok_p): Vector regs don't work either.
21065 (regclass_map): Add VEC_REGS.
21066 (s390_legitimate_constant_p): Handle vector constants.
21067 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21068 (legitimate_reload_vector_constant_p): New function.
21069 (s390_preferred_reload_class): Handle CONST_VECTOR.
21070 (s390_reload_symref_address): Likewise.
21071 (s390_secondary_reload): Vector memory instructions only support
21072 short displacements. Rename reload*_nonoffmem* to reload*_la*.
21073 (s390_emit_ccraw_jump): New function.
21074 (s390_expand_vec_strlen): New function.
21075 (s390_expand_vec_compare): New function.
21076 (s390_expand_vcond): New function.
21077 (s390_expand_vec_init): New function.
21078 (s390_dwarf_frame_reg_mode): New function.
21079 (print_operand): Handle addresses with 'O' and 'R' constraints.
21080 (NR_C_MODES, constant_modes): Add vector modes.
21081 (s390_output_pool_entry): Handle vector constants.
21082 (s390_hard_regno_mode_ok): Handle vector registers.
21083 (s390_class_max_nregs): Likewise.
21084 (s390_cannot_change_mode_class): New function.
21085 (s390_invalid_arg_for_unprototyped_fn): New function.
21086 (s390_function_arg_vector): New function.
21087 (s390_function_arg_float): Remove size variable.
21088 (s390_pass_by_reference): Handle vector arguments.
21089 (s390_function_arg_advance): Likewise.
21090 (s390_function_arg): Likewise.
21091 (s390_return_in_memory): Vector values are returned in a VR if
21092 possible.
21093 (s390_function_and_libcall_value): Handle vector arguments.
21094 (s390_gimplify_va_arg): Likewise.
21095 (s390_call_saved_register_used): Consider the arguments named.
21096 (s390_conditional_register_usage): Disable v16-v31 for non-vec
21097 targets.
21098 (s390_preferred_simd_mode): New function.
21099 (s390_support_vector_misalignment): New function.
21100 (s390_vector_alignment): New function.
21101 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21102 (TARGET_VECTOR_MODE_SUPPORTED_P)
21103 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21104 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21105 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21106 (TARGET_VECTOR_ALIGNMENT): Define target macro.
21107 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21108 (FIRST_PSEUDO_REGISTER): Increase value.
21109 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21110 (VECTOR_REG_P): Define macros.
21111 (FIXED_REGISTERS, CALL_USED_REGISTERS)
21112 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21113 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21114 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21115 Add vector registers.
21116 (CANNOT_CHANGE_MODE_CLASS): Call C function.
21117 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21118 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21119 memory.
21120 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21121 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21122 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21123 (VR*_REGNUM): New constants.
21124 (ALL): New mode iterator.
21125 (INTALL): Remove mode iterator.
21126 Include vector.md.
21127 (movti): Implement TImode moves for VRs.
21128 Disable TImode splitter for VR targets.
21129 Implement splitting TImode GPR<->VR moves.
21130 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21131 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21132 reload<mode>_la_in, reload<mode>_la_out.
21133 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21134 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21135 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21136 (mov<mode> SF SD): Prefer lder, lde for loading.
21137 Add lrl and strl instructions.
21138 Add vector instructions.
21139 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21140 Call s390_expand_vec_strlen on z13.
21141 (*cc_to_int): Change predicate to nonimmediate_operand.
21142 (addti3): Rename to *addti3. New expander.
21143 (subti3): Rename to *subti3. New expander.
21144 * config/s390/vector.md: New file.
21145
21146 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21147
21148 * common/config/s390/s390-common.c (processor_flags_table): Add
21149 z13.
21150 * config.gcc: Add z13.
21151 * config/s390/s390-opts.h (enum processor_type): Add
21152 PROCESSOR_2964_Z13.
21153 * config/s390/s390.c (s390_adjust_priority): Check for
21154 PROCESSOR_2964_Z13.
21155 (s390_reorg): Likewise.
21156 (s390_sched_reorder): Likewise.
21157 (s390_sched_variable_issue): Likewise.
21158 (s390_loop_unroll_adjust): Likewise.
21159 (s390_option_override): Likewise. Default to -mvx when available.
21160 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21161 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21162 (TARGET_VX_ABI): Define macros.
21163 macros.
21164 (TARGET_DEFAULT): Add MASK_OPT_VX.
21165 * config/s390/s390.md ("cpu" attribute): Add z13.
21166 ("cpu_facility" attribute): Add vec.
21167 * config/s390/s390.opt (processor_type): Add z13.
21168 (mvx): New options.
21169 * doc/invoke.texi: Add z13 option for -march.
21170
21171 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21172
21173 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21174 mode check to make sure that only scalar integer values are
21175 accepted.
21176
21177 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21178
21179 * tree.c (verify_type_variant): Fix #undef.
21180 (gimple_canonical_types_compatible_p): Move here from lto.c
21181 (verify_type): Verify TYPE_CANONICAL compatibility.
21182 * tree.h (gimple_canonical_types_compatible_p): Declare.
21183
21184 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21185
21186 PR middle-end/66199
21187 * tree.h (OMP_TEAMS_COMBINED): Define.
21188 * gimplify.c (enum gimplify_omp_var_data): Add
21189 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21190 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21191 (omp_notice_variable): Accept both ORT_TEAMS
21192 and ORT_COMBINED_TEAMS. Don't recurse if
21193 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21194 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21195 GOVD_FIRSTPRIVATE.
21196 (omp_no_lastprivate): New function.
21197 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21198 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21199 notice_outer and set appropriate bits, otherwise make
21200 sure default(none) combined constructs won't complain.
21201 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21202 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21203 omp_no_lastprivate either remove the clause or turn it
21204 into OMP_CLAUSE_PRIVATE.
21205 (gimplify_omp_for): Fix up handling of implicit
21206 lastprivate or linear iterators.
21207 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21208 ORT_COMBINED_TEAMS.
21209 * omp-low.c (lower_omp_for_lastprivate): For combined
21210 for simd use fd.loop.n2 from the for rather than simd.
21211
21212 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21213
21214 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21215 instead of gen_rtx_raw_REG.
21216 (cris_expand_epilogue): Likewise.
21217 * config/microblaze/microblaze.c (microblaze_classify_address):
21218 Likewise.
21219 * config/sparc/sparc.md: Likewise.
21220
21221 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
21222
21223 * config/alpha/alpha.c (alpha_legitimize_reload_address)
21224 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21225 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21226 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21227 Use CASE_CONST_SCALAR_INT.
21228 (print_operand) <case 'M'>: Use mode_width_operand to check the
21229 value of the constant.
21230 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21231 * config/alpha/predicates.md (input_operand): Use general_operand
21232 instead of match_code as operand check.
21233 (symbolic_operand): Use match_code with subexpression digits.
21234 * config/alpha/constraints.md (Q): Ditto.
21235
21236 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21237
21238 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21239
21240 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21241
21242 * config/s390/s390.c (s390_secondary_reload): Fix check for
21243 load/store relative.
21244
21245 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21246
21247 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
21248 alternative_mask to uint64_t.
21249
21250 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21251
21252 PR tree-optimization/66187
21253 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21254 Pass TYPE_SIGN to tree_int_cst_min_precision. If
21255 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21256
21257 2015-05-19 David Malcolm <dmalcolm@redhat.com>
21258
21259 * diagnostic.c (diagnostic_report_current_module): Strengthen
21260 local "new_map" from const line_map * to
21261 const line_map_ordinary *.
21262 * genmatch.c (error_cb): Likewise for local "map".
21263 (output_line_directive): Likewise for local "map".
21264 * input.c (expand_location_1): Likewise for local "map".
21265 Pass NULL rather than &map to
21266 linemap_unwind_to_first_non_reserved_loc, since the value is never
21267 read from there, and the value written back not read from here.
21268 (is_location_from_builtin_token): Strengthen local "map" from
21269 const line_map * to const line_map_ordinary *.
21270 (dump_location_info): Strengthen locals "map" from
21271 line_map *, one to const line_map_ordinary *, the other
21272 to const line_map_macro *.
21273 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21274 const line_map * to const line_map_macro *.
21275 (maybe_unwind_expanded_macro_loc): Add a call to
21276 linemap_check_macro when writing to the "map" field of the
21277 loc_map_pair.
21278 Introduce local const line_map_ordinary * "ord_map", using it in
21279 place of "map" in the part of the function where we know we have
21280 an ordinary map. Strengthen local "m" from const line_map * to
21281 const line_map_ordinary *.
21282
21283 2015-05-19 Nick Clifton <nickc@redhat.com>
21284
21285 PR target/66156
21286 * config/msp430/msp430.md (zero_extendhisi2): Add support for
21287 separate source and destination registers.
21288
21289 2015-05-19 Richard Biener <rguenther@suse.de>
21290
21291 PR tree-optimization/66165
21292 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21293 for no load permutation.
21294
21295 PR tree-optimization/66185
21296 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21297 when building the SLP node from scalars.
21298
21299 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21300 Tristan Gingold <gingold@adacore.com>
21301
21302 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21303 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21304 (expand_stack_restore): Call record_new_stack_level.
21305 (expand_stack_save): Do not call do_pending_stack_adjust.
21306 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21307 * calls.c (expand_call): Call record_new_stack_level for alloca.
21308 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21309 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21310 (update_sjlj_context): New global function.
21311 * except.h (update_sjlj_context): Declare.
21312 * explow.c (record_new_stack_level): New global function.
21313 (allocate_dynamic_stack_space): Call record_new_stack_level.
21314 * explow.h (record_new_stack_level): Declare.
21315 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21316 * cfgrtl.c (duplicate_insn_chain): Likewise.
21317
21318 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21319
21320 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21321 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21322 STACK_GROWS_DOWNWARD as normal if.
21323 (expand_call): Likewise.
21324
21325 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
21326
21327 PR target/54236
21328 * config/sh/sh.md (*round_int_even): New insn_and_split and
21329 accompanying new unnamed split.
21330
21331 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21332
21333 * bitmap.c (bitmap_set_range): Handle count==1 specially.
21334 (bitmap_clear_range): Likewise.
21335 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21336 bitmap_set_range unconditionally.
21337 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21338 * df-scan.c (df_mark_reg): Likewise.
21339 * haifa-sched.c (setup_ref_regs): Likewise.
21340 * sched-rgn.c (update_live_1): Likewise.
21341
21342 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21343
21344 * regs.h (END_HARD_REGNO): Delete.
21345 (END_REGNO): Move to...
21346 * rtl.h: ...here.
21347 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21348 * caller-save.c (mark_set_regs): Likewise.
21349 * combine.c (move_deaths, distribute_notes): Likewise.
21350 * cse.c (invalidate, invalidate_for_call): Likewise.
21351 * df-scan.c (df_ref_record): Likewise.
21352 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21353 (record_last_reg_set_info): Likewise.
21354 * reg-stack.c (convert_regs_exit): Likewise.
21355 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21356 * resource.c (update_live_status): Likewise.
21357 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21358
21359 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21360
21361 * rtl.h (reg_info): Add an nregs field.
21362 (REG_NREGS): Use it.
21363 (SET_REGNO_RAW): Delete.
21364 (set_regno_raw): New function.
21365 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21366 (END_REGNO): Redefine in terms of REG_NREGS.
21367 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21368 SET_REGNO_RAW.
21369 * emit-rtl.c (set_mode_and_regno): Likewise.
21370 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21371 instead of SET_REGNO_RAW.
21372
21373 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21374
21375 * rtl.h (PUT_MODE_RAW): New macro.
21376 (PUT_REG_NOTE_KIND): Use it.
21377 (set_mode_and_regno): Declare.
21378 (gen_raw_REG): Change regno to "unsigned int".
21379 (gen_rtx_REG): Change "unsigned" to "unsigned int".
21380 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21381 use set_mode_and_regno to change the mode of registers.
21382 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21383 * emit-rtl.c (set_mode_and_regno): New function.
21384 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
21385 * caller-save.c (reg_save_code): Use set_mode_and_regno.
21386 * expr.c (init_expr_target): Likewise.
21387 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21388 * postreload.c (reload_cse_simplify_operands): Likewise.
21389
21390 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21391
21392 * caller-save.c (init_caller_save): Use word_mode and
21393 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21394 * expr.c (init_expr_target): Likewise.
21395 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21396 * postreload.c (reload_cse_regs_1): Likewise.
21397
21398 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21399
21400 * rtl.def (REG): Change format to "r".
21401 * rtl.h (rtunion): Remove rt_reg.
21402 (reg_info): New structure.
21403 (rtx_def): Add reg field to main union.
21404 (X0REGATTR): Delete.
21405 (REG_CHECK): New macro.
21406 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21407 * rtl.c (rtx_format): Document "r".
21408 (rtx_code_size): Handle REG specially.
21409 * gengenrtl.c (special_format): Return true for formats
21410 that include 'r'.
21411 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21412 Deal with REG_ATTRS after the field loop.
21413 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21414 * expmed.c (init_expmed): Call gen_raw_REG instead of
21415 gen_rtx_raw_REG.
21416 * expr.c (init_expr_target): Likewise.
21417 * regcprop.c (maybe_mode_change): Likewise.
21418 * varasm.c (make_decl_rtl): Likewise.
21419 * final.c (leaf_renumber_regs_insn): Return early after
21420 handling REGs.
21421 * genemit.c (gen_exp): Handle 'r' fields.
21422 * genpeep.c (match_rtx): Likewise.
21423 * gensupport.c (subst_pattern_match): Likewise.
21424 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21425 (alter_constraints, subst_dup): Likewise.
21426 * read-rtl.c (read_rtx_code): Likewise.
21427 * print-rtl.c (print_rtx): Likewise.
21428 * genrecog.c (find_operand, find_matching_operand): Likewise.
21429 (validate_pattern, match_pattern_2): Likewise.
21430 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21431 (rtx_test::regno_field): New function.
21432 (operator ==, safe_to_hoist_p, transition_parameter_type)
21433 (parameter_type_string, print_parameter_value)
21434 (print_nonbool_test, print_test): Handle new enum values.
21435 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21436 * lra-constraints.c (operands_match_p): Likewise.
21437
21438 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21439
21440 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21441 Change type of new_regno to unsigned int.
21442 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21443 new_regno to unsigned int.
21444 (df_ref_change_reg_with_loc): Remove old_regno parameter.
21445 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
21446 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21447 (SET_REGNO_RAW): Add space after ",".
21448
21449 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21450
21451 * rtl.h (REG_NREGS): New macro
21452 * alias.c (record_set): Use it.
21453 * cfgcleanup.c (mark_effect): Likewise.
21454 * combine.c (likely_spilled_retval_1): Likewise.
21455 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21456 (move_deaths, distribute_notes): Likewise.
21457 * cselib.c (cselib_record_set): Likewise.
21458 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21459 * df-scan.c (df_mark_reg): Likewise.
21460 * dse.c (look_for_hardregs): Likewise.
21461 * dwarf2out.c (reg_loc_descriptor): Likewise.
21462 (multiple_reg_loc_descriptor): Likewise.
21463 * expr.c (write_complex_part, read_complex_part): Likewise.
21464 (emit_move_complex): Likewise.
21465 * haifa-sched.c (setup_ref_regs): Likewise.
21466 * ira-lives.c (mark_hard_reg_live): Likewise.
21467 * lra.c (lra_set_insn_recog_data): Likewise.
21468 * mode-switching.c (create_pre_exit): Likewise.
21469 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21470 (reload_combine_recognize_pattern): Likewise.
21471 (reload_combine_note_use, move2add_record_mode): Likewise.
21472 (reload_cse_move2add): Likewise.
21473 * reg-stack.c (subst_stack_regs_pat): Likewise.
21474 * regcprop.c (kill_value, copy_value): Likewise.
21475 (copyprop_hardreg_forward_1): Likewise.
21476 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21477 (build_def_use): Likewise.
21478 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21479 (deps_analyze_insn): Likewise.
21480 * sched-rgn.c (check_live_1, update_live_1): Likewise.
21481 * sel-sched.c (count_occurrences_equiv): Likewise.
21482 * valtrack.c (dead_debug_insert_temp): Likewise.
21483
21484 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21485
21486 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21487 * dse.c (note_add_store): Likewise.
21488 * ira-lives.c (mark_hard_reg_dead): Likewise.
21489 * loop-invariant.c (mark_reg_store): Likewise.
21490 (mark_reg_death): Likewise.
21491 * postreload.c (reload_combine): Likewise.
21492 (reload_combine_note_store): Likewise.
21493 (reload_combine_note_use): Likewise.
21494 * recog.c (peep2_reg_dead_p): Likewise.
21495
21496 2015-05-19 Alan Modra <amodra@gmail.com>
21497
21498 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21499 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21500 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21501 unused predicates.
21502 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21503 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
21504 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21505 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21506
21507 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
21508
21509 * config/mips/mips.md (JOIN_MODE): New mode iterator.
21510 (join2_load_Store<JOIN_MODE:mode>): New pattern.
21511 (join2_loadhi): Likewise.
21512 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21513 load-load and store-stores.
21514 * config/mips/mips.opt (mload-store-pairs): New option.
21515 (TARGET_LOAD_STORE_PAIRS): New macro.
21516 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21517 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21518 * config/mips/mips.c (mips_load_store_bonding_p): New function.
21519
21520 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
21521
21522 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21523 explicit swaps.
21524 * dojump.c (do_compare_rtx_and_jump): Likewise.
21525 * expmed.c (emit_store_flag_1): Likewise.
21526 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21527 * final.c (sprint_ul): Use std::reverse for reversing a string.
21528 * fold-const.c (extract_muldiv_1): Use std::swap.
21529 * genmodes.c (emit_mode_int_n): Likewise.
21530 * ifcvt.c (dead_or_predicable): Likewise.
21531 * ira-build.c (ira_merge_live_ranges): Likewise.
21532 (swap_allocno_copy_ends_if_necessary): Likewise.
21533 * ira.c (ira_setup_alts): Likewise.
21534 * loop-iv.c (iv_analyze_expr): Likewise.
21535 (implies_p): Likewise.
21536 (canon_condition): Likewise.
21537 * lra-constraints.c (swap_operands): Likewise.
21538 * lra-lives.c (lra_merge_live_ranges): Likewise.
21539 * omega.c (swap): Remove.
21540 (bswap): Remove.
21541 (omega_unprotect_1): Use std::swap.
21542 (omega_solve_geq): Likewise.
21543 * optabs.c (expand_binop_directly): Likewise.
21544 (expand_binop): Likewise.
21545 (emit_conditional_move): Likewise.
21546 (emit_conditional_add): Likewise.
21547 * postreload.c (reload_cse_simplify_operands): Likewise.
21548 * reg-stack.c (emit_swap_insn): Likewise.
21549 (swap_to_top): Likewise.
21550 (compare_for_stack_reg): Likewise.
21551 (subst_asm_stack_regs): Likewise.
21552 * reload.c (find_reloads): Likewise.
21553 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21554 * sel-sched.c (invoke_reorder_hooks): Likewise.
21555 (create_block_for_bookkeeping): Likewise.
21556 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21557 (lambda_matrix_right_hermite): Use std::swap.
21558 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21559 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21560 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21561 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21562 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21563 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21564 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21565 * tree-vrp.c (compare_ranges): Likewise.
21566 * var-tracking.c (add_with_sets): Likewise.
21567 (vt_find_locations): Likewise.
21568
21569 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
21570
21571 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21572 pie executables.
21573 (FBSD_ENDFILE_SPEC): Likewise.
21574 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21575 config/freebsd-spec.h.
21576 (ENDFILE_SPEC): Likewise.
21577
21578 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
21579 Richard Henderson <rth@redhat.com>
21580
21581 PR target/57032
21582 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21583 Check for a memory location that is not a reference (using an AND)
21584 to an unaligned location here.
21585 * config/alpha/predicates.md (normal_memory_operand): Remove.
21586
21587 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
21588
21589 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21590 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21591
21592 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
21593
21594 * config/mips/mips.c (micromips_globals): New variable.
21595 (mips_set_compression_mode): Save and reinitialize target-dependent
21596 state for microMIPS.
21597
21598 2015-05-18 Martin Liska <mliska@suse.cz>
21599
21600 * dbgcnt.def: Add new counter.
21601 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21602
21603 2015-05-18 Martin Liska <mliska@suse.cz>
21604
21605 * dbgcnt.def: Sort counters.
21606 * opts.c (common_handle_option): Do not compile if
21607 -fdbg-cnt-list is enabled.
21608
21609 2015-05-18 Tom de Vries <tom@codesourcery.com>
21610
21611 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21612 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
21613 address operator to va_list operand.
21614 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21615 unconditionally.
21616 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21617 operand.
21618 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21619 * config/s390/s390.c (s390_gimplify_va_arg): Same.
21620 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21621
21622 2015-05-18 Tom de Vries <tom@codesourcery.com>
21623
21624 * tree-ssa-tail-merge.c: Fix whitespace.
21625
21626 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
21627
21628 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21629 cortex-a17, and cortex-a17.cortex-a7.
21630
21631 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
21632
21633 PR target/54236
21634 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21635
21636 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
21637
21638 PR target/66174
21639 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21640 QImode inner modes for TARGET_AVX512BW. Force mask operand
21641 to a register for AVX512F modes.
21642
21643 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21644
21645 * toplev.c (emit_debug_global_declarations): Do not output debug info
21646 when doing slim LTO objects.
21647
21648 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21649
21650 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21651 odr_types_equivalent_p): Declare.
21652 (odr_type_p): Use gcc_checking_assert.
21653 (type_in_anonymous_namespace_p) Declare.
21654 (type_with_linkage_p): Declare.
21655 * common.opt (Wlto-type-mismatch): New warning.
21656 * ipa-devirt.c (compound_type_base): New function.
21657 (odr_or_derived_type_p): New function.
21658 (odr_types_equivalent_p): New function.
21659 (add_type_duplicate): Simplify.
21660 (type_with_linkage_p): Add hack to prevent false positives on C types
21661 (type_in_anonymous_namespace_p): Likewise.
21662 * tree.c (need_assembler_name_p): Use type_with_linkage.
21663 * tree.h (type_in_anonymous_namespace_p): Remove.
21664 * doc/invoke.texi (-Wlto-type-mismatch): Document
21665
21666 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21667
21668 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21669 (verify_type): Verify STRING_FLAG.
21670
21671 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
21672
21673 PR fortran/44054
21674 * tree-pretty-print.c (percent_K_format): Replace locus pointer
21675 with accessor function.
21676 * tree-diagnostic.c (diagnostic_report_current_function): Use
21677 diagnostic_location function.
21678 (maybe_unwind_expanded_macro_loc): Likewise.
21679 (virt_loc_aware_diagnostic_finalizer): Likewise.
21680 (default_tree_printer): Replace locus pointer with accessor function.
21681 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21682 (diagnostic_set_info_translated): Initialize second location.
21683 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21684 (diagnostic_show_locus): Handle two locations. Call
21685 diagnostic_print_caret_line.
21686 (diagnostic_print_caret_line): New.
21687 (default_diagnostic_starter): Use diagnostic_location function.
21688 (diagnostic_report_diagnostic): Use diagnostic_location function.
21689 (verbatim): Do not set text.locus.
21690 * diagnostic.h (struct diagnostic_info): Remove location field.
21691 (struct diagnostic_context): Make caret_chars an array of two.
21692 (diagnostic_location): New inline.
21693 (diagnostic_expand_location): Handle two locations.
21694 (diagnostic_same_line): New inline.
21695 (diagnostic_print_caret_line): Declare.
21696 (CARET_LINE_MARGIN): New constant.
21697 * pretty-print.c (pp_printf): Do not set text.locus.
21698 (pp_verbatim): Do not set text.locus.
21699 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21700 (struct text_info): Replace locus pointer with locations
21701 array. Add accessor functions.
21702
21703 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
21704 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21705
21706 PR target/65768
21707 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21708 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21709 large constants in register instead of splitting them.
21710
21711 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
21712
21713 PR target/66140
21714 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21715 replacements in memory addresses.
21716 (get_unaligned_address): Ditto.
21717
21718 2015-05-16 James Bowman <james.bowman@ftdichip.com>
21719
21720 * config/ft32/*: New files for FT32 port.
21721 * doc/install.texi: Add FT32 information.
21722 * doc/invoke.texi: Add FT32 information.
21723 * doc/md.texi: Add FT32 information.
21724 * doc/contrib.texi: Self added.
21725
21726 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
21727
21728 PR tree-optimization/64454
21729 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21730 (-1 - A -> ~A): Remove unnecessary condition.
21731
21732 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
21733
21734 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21735 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21736 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
21737
21738 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
21739
21740 * ipa-chkp.h (chkp_wrap_function): New.
21741 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
21742 (chkp_wrap_function_name): New.
21743 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
21744 to get wrapper name.
21745 * lto-cgraph.c: Include ipa-chkp.h.
21746 (input_cgraph_1): Avoid alias chain for wrappers.
21747
21748 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
21749
21750 PR middle-end/66134
21751 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
21752 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
21753
21754 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21755
21756 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
21757 (AARCH64_FL_SLOWMUL): Delete.
21758 (AARCH64_FL_CRC): Redefine to 1<<3.
21759 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
21760
21761 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21762
21763 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
21764 casting.
21765
21766 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21767
21768 * config/alpha/alpha.md (extendqidi2): Use general_operand
21769 instead of some_operand for operand[1] predicate.
21770 (extendhidi2): Ditto.
21771 (cbranchdi4): Use general_operand instead of some_operand
21772 for operand[1] and operands[2] predicates.
21773 (cstoredi4): Ditto.
21774 * config/alpha/predicates.md (some_operand): Remove unused predicate.
21775 (some_ni_operand): Ditto.
21776
21777 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
21778
21779 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
21780 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
21781 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
21782 low part of the constant using alpha_emit_set_const_1.
21783 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
21784
21785 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
21786
21787 * varasm.c (output_constant_pool_1): Pass down alignment from
21788 constant pool entry's descriptor to output_constant_pool_2.
21789 (output_object_block): Add comment prior to call to
21790 output_constant_pool_1.
21791
21792 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
21793
21794 PR rtl-optimization/65862
21795 * target.def (ira_change_pseudo_allocno_class): New hook.
21796 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
21797 value of the hook.
21798 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
21799 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
21800 hook.
21801 * ira-costs.c (find_costs_and_classes): Call the hook and change
21802 classes when it is necessary.
21803 * doc/tm.texi: Update.
21804
21805 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
21806
21807 * config/i386/i386.md (sibcall_memory): Check that register with
21808 callee address is not also used as one of the arguments, instead
21809 of checking that it is not live after the sibcall.
21810 (sibcall_pop_memory): Ditto.
21811 (sibcall_value_memory): Ditto.
21812 (sibcall_value_pop_memory): Ditto.
21813
21814 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
21815
21816 * generic-match-head.c (types_match): Handle non-types.
21817 * gimple-match-head.c (types_match): Likewise.
21818 * match.pd: Remove unnecessary TREE_TYPE for types_match.
21819
21820 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
21821
21822 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
21823 (csneg3<mode>_insn): Enable expansion of pattern.
21824
21825 2015-05-14 Nick Clifton <nickc@redhat.com>
21826
21827 * config/rl78/rl78.c (rl78_select_section): Select the correct
21828 default section based upon the category of the decl.
21829
21830 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21831
21832 PR rtl-optimization/30967
21833 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
21834 destination mode for the cost of scc patterns.
21835
21836 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21837
21838 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
21839 using SWIM248 mode iterator.
21840 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
21841 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
21842 for operand[2] constraint.
21843 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
21844
21845 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21846
21847 PR middle-end/66133
21848 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
21849 make sure it is never noreturn, even when the task body does not
21850 return.
21851 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
21852 right before GIMPLE_OMP_RETURN.
21853 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
21854 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
21855 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
21856
21857 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21858
21859 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
21860 * tree-ssa-math-opts.c: Include params.h
21861 (pow_synth_sqrt_info): New struct.
21862 (representable_as_half_series_p): New function.
21863 (get_fn_chain): Likewise.
21864 (print_nested_fn): Likewise.
21865 (dump_fractional_sqrt_sequence): Likewise.
21866 (dump_integer_part): Likewise.
21867 (expand_pow_as_sqrts): Likewise.
21868 (gimple_expand_builtin_pow): Use above to attempt to expand
21869 pow as series of square roots. Removed now unused variables.
21870
21871 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
21872
21873 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
21874 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
21875 Remove *p0 and *p1 arguments. Rewrite function.
21876 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
21877 (alpha_split_const_mov): Update calls to alpha_extract_integer and
21878 alpha_emit_set_long_const.
21879 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
21880 (alpha_output_mi_thunk_osf): Ditto.
21881 * config/alpha/alpha.md (movti): Do not check operands[1]
21882 for CONST_DOUBLE.
21883
21884 2015-05-13 Richard Biener <rguenther@suse.de>
21885
21886 PR tree-optimization/66129
21887 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
21888 commutative.
21889 (vect_schedule_slp_instance): Fix typo.
21890
21891 2015-05-13 David Malcolm <dmalcolm@redhat.com>
21892
21893 * common.opt (fdump-internal-locations): New option.
21894 * input.c: Include diagnostic-core.h.
21895 (get_end_location): New function.
21896 (write_digit): New function.
21897 (write_digit_row): New function.
21898 (dump_location_range): New function.
21899 (dump_labelled_location_range): New function.
21900 (dump_location_info): New function.
21901 * input.h (dump_location_info): New prototype.
21902 * toplev.c (compile_file): Handle flag_dump_locations.
21903
21904 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
21905
21906 * gimple-expr.h (is_gimple_constant): Reorder.
21907 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
21908
21909 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
21910
21911 * combine.c (simplify_set): When generating a CC set, if the
21912 source already is in the correct mode, do not wrap it in a
21913 compare. Simplify the rest of that code.
21914
21915 2015-05-13 Richard Biener <rguenther@suse.de>
21916
21917 PR tree-optimization/66123
21918 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
21919 a taken edge.
21920
21921 2015-05-13 Richard Biener <rguenther@suse.de>
21922
21923 PR middle-end/66110
21924 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
21925 specially.
21926 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
21927
21928 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21929
21930 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
21931 * aclocal.m4: Regenerated with automake-1.11.6.
21932
21933 2015-05-13 Tom de Vries <tom@codesourcery.com>
21934
21935 PR tree-optimization/66010
21936 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
21937 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
21938 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
21939 and rval based on do_deref.
21940
21941 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21942
21943 PR target/65103
21944 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
21945 link time constants into adress expressions and therefore set
21946 their cost to 0.
21947
21948 2015-05-13 Jakub Jelinek <jakub@redhat.com>
21949
21950 PR target/66112
21951 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
21952 Use SWI248 iterator instead of SWI.
21953 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
21954 Use eq_attr "alternative" "0" instead of match_test in
21955 length_immediate attribute computation.
21956 (*mulvhi4, *mulvhi4_1): New define_insns.
21957
21958 PR target/66112
21959 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
21960 SIGNED to get precision of non-negative value.
21961
21962 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21963
21964 PR target/66048
21965 * function.c (diddle_return_value_1): Process bounds first.
21966 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
21967 register.
21968
21969 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21970
21971 PR rtl-optimization/64616
21972 * loop-invariant.c (can_move_invariant_reg): New.
21973 (move_invariant_reg): Call above new function to decide whether
21974 instruction can just be moved, skipping creation of temporary
21975 register.
21976
21977 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21978
21979 PR target/pr66047.c
21980 * i386.c (ix86_function_sseregparm): Only return -1 if local function
21981 with implied regparm is called from -mno-sse function.
21982 (init_cumulative_args): Output error if ix86_function_sseregparm
21983 return -1 and SSE register would be needed.
21984 (function_arg_advance_32): Likewise.
21985 (function_arg_32): Likewise.
21986 * i386.h (ix86_args): Add decl field.
21987
21988 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
21989
21990 PR ipa/65873
21991 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
21992 inlines across optimization boundary.
21993
21994 2015-05-12 Jason Merrill <jason@redhat.com>
21995
21996 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
21997 string literal and macro name.
21998
21999 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
22000
22001 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22002 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22003 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22004
22005 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22006
22007 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22008 (-Wmisleading-indentation): New option.
22009 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22010
22011 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
22012
22013 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22014 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22015 (alpha_extract_integer): Ditto.
22016 (alpha_legitimate_constant_p): Ditto.
22017 (alpha_split_tmode_pair): Ditto.
22018 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22019 (alpha_expand_mov): Ditto.
22020 (print_operand): Remove handling of 'H' modifier.
22021 <case 'm'>: Remove CONST_DOUBLE handling.
22022 (summarize_insn): Handle CONST_WIDE_INT.
22023 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22024 (anddi3): Ditto.
22025 (movti): Handle CONST_WIDE_INT.
22026 * config/alpha/constraints.md ('H'): Remove constraint definition.
22027 ('G'): Do not match MODE_FLOAT class.
22028 * config/alpha/predicates.md (const0_operand): Also match
22029 const_wide_int.
22030 (non_add_const_operand): Ditto.
22031 (non_zero_const_operand): Ditto.
22032 (some_operand): Ditto.
22033 (input_operand): Ditto. Handle CONST_WIDE_INT.
22034 (and_operand): Do not match const_double.
22035 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22036
22037 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
22038
22039 PR target/65697
22040 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22041 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22042 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22043 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22044 is_mm_seq_cst, is_mm_sync): New accessor functions.
22045 * builtins.c (expand_builtin_sync_operation,
22046 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22047 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22048 (get_memmodel, expand_builtin_atomic_compare_exchange,
22049 expand_builtin_atomic_load, expand_builtin_atomic_store,
22050 expand_builtin_atomic_clear): Use new accessor routines.
22051 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22052 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22053 (maybe_emit_sync_lock_test_and_set): Use new accessors and
22054 MEMMODEL_SYNC_ACQUIRE.
22055 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22056 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22057 expand_atomic_store): Use new accessors.
22058 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22059 * tsan.c (instrument_builtin_call): Update check for memory model beyond
22060 final enum to use MEMMODEL_LAST.
22061 * c-family/c-common.c: Use new accessor for memmodel_base.
22062 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22063 accessors.
22064 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22065 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22066 mem_thread_fence, *dmb): Likewise.
22067 * config/alpha/alpha.c (alpha_split_compare_and_swap,
22068 alpha_split_compare_and_swap_12): Likewise.
22069 * config/arm/arm.c (arm_expand_compare_and_swap,
22070 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22071 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22072 atomic_loaddi): Likewise.
22073 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22074 Likewise.
22075 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22076 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22077 use new accessors.
22078 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22079 atomic_store<mode>, atomic_compare_and_swap<mode>,
22080 atomic_exchange<mode>): Use new accessors.
22081 * config/mips/mips.c (mips_process_sync_loop): Likewise.
22082 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22083 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22084 rs6000_post_atomic_barrier): Add new cases.
22085 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22086 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22087 (atomic_load<mode>): Add new cases and use new accessors.
22088 (store_quadpti): Add new cases.
22089 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22090 accessors.
22091 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22092 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22093 model, not 8.
22094
22095 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22096
22097 * ipa-devirt.c (type_with_linkage_p): New function.
22098 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22099 type has linkage.
22100 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22101 (can_be_name_hashed_p): Simplify.
22102 (hash_odr_name): Check that type has linkage before checking if it is
22103 anonymous.
22104 (types_same_for_odr): Likewise.
22105 (odr_name_hasher::equal): Likewise.
22106 (odr_subtypes_equivalent_p): Likewise.
22107 (warn_types_mismatch): Likewise.
22108 (get_odr_type): Likewise.
22109 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22110 * ipa-utils.h (odr_type_p): Move offline.
22111 * tree.c (need_assembler_name_p): Fix handling of types
22112 without linkages.
22113 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22114
22115 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22116
22117 * timevar.c (timevar_enable): Delete in favor of...
22118 (g_timer): New global.
22119 (struct timevar_def): Move to timevar.h inside class timer.
22120 (struct timevar_stack_def): Likewise.
22121 (timevars): Delete global in favor of field "m_timevars" within
22122 class timer in timevar.h
22123 (stack): Likewise, in favor of field "m_stack".
22124 (unused_stack_instances): Likewise, in favor of field
22125 "m_unused_stack_instances".
22126 (start_time): Likewise, in favor of field "m_start_time".
22127 (get_time): Eliminate check for timevar_enable.
22128 (timer::timer): New function, built from part of timevar_init.
22129 (timevar_init): Rewrite idempotency test from using
22130 "timevar_enable" bool to using dynamic allocation of "g_timer".
22131 Move rest of implementation into timer's constructor.
22132 (timevar_push_1): Rename to...
22133 (timer::push): ...this, adding "m_" prefixes to variables that
22134 are now fields of timer.
22135 (timevar_pop_1): Likewise, rename to...
22136 (timer::pop): ...this, and add "m_" prefixes.
22137 (timevar_start): Replace test for "timevar_enable" with one for
22138 "g_timer", and move bulk of implementation to...
22139 (timer::start): ...here, adding "m_" prefixes.
22140 (timevar_stop): Likewise, from here...
22141 (timer::stop): ...to here.
22142 (timevar_cond_start): Likewise, from here...
22143 (timer::cond_start): ...to here.
22144 (timevar_cond_stop): Likewise, from here...
22145 (timer::cond_stop): ...to here.
22146 (validate_phases): Rename to...
22147 (timer::validate_phases): ...this, and add "m_" prefixes. Make
22148 locals "total" and "tv" const.
22149 (timevar_print): Rename to...
22150 (timer::print): ...this, and add "m_" prefixes. Make locals
22151 "total" and "tv" const. Eliminate test for timevar_enable.
22152 * timevar.h (timevar_enable): Eliminate.
22153 (g_timer): New declaration.
22154 (timevar_push_1): Eliminate.
22155 (timevar_pop_1): Eliminate.
22156 (timevar_print): Eliminate.
22157 (class timer): New class.
22158 (timevar_push): Rewrite to use g_timer.
22159 (timevar_pop): Likewise.
22160 * toplev.c (toplev::~toplev): Likewise.
22161
22162 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
22163
22164 * arm-protos.h (arm_sched_autopref): Delete.
22165 (tune_params): Re-organize, use enums for flag values.
22166 (FUSE_OPS): New macro.
22167 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22168 (ARM_PREFETCH_BENEFICIAL): Likewise.
22169 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22170 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22171 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22172 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22173 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22174 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
22175 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22176 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22177 format.
22178 (arm_option_override, thumb2_reorg, arm_print_tune_info)
22179 (aarch_macro_fusion_pair_p): Update uses of current_tune.
22180 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22181
22182 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
22183
22184 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22185 "break".
22186
22187 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
22188 Sandra Loosemore <sandra@codesourcery.com>
22189
22190 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22191 value.
22192 (REG_CLASS_NAMES): Add "IJMP_REGS".
22193 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22194 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22195 use new "c" register constraint.
22196 * config/nios2/constraint.md (c): New register constraint
22197 corresponding to IJMP_REGS.
22198
22199 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22200
22201 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22202 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22203 define_splits): Delete, revamp, transmogrify into ...
22204 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22205 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22206 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22207 New.
22208
22209 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22210
22211 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22212 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22213
22214 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22215
22216 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22217 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22218 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22219 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22220 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22221 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22222 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22223 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22224 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22225 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22226 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22227 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22228 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22229 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22230 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22231 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22232 and 30 corresponding splitters): Delete.
22233
22234 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22235
22236 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22237 zero_extract.
22238
22239 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22240
22241 * combine.c (recog_for_combine_1): New function, factored out
22242 from recog_for_combine.
22243 (change_zero_ext): New function.
22244 (recog_for_combine): If recog fails, try again with the pattern
22245 modified by change_zero_ext; if that still fails, restore the
22246 pattern.
22247
22248 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22249
22250 * combine.c (get_undo_marker): New function.
22251 (undo_to_marker): New function, largely factored out from ...
22252 (undo_all): ... this. Adjust.
22253
22254 2015-05-12 Richard Biener <rguenther@suse.de>
22255
22256 PR tree-optimization/66101
22257 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22258 fixup if we turn a loop exit edge to a fallthru edge.
22259
22260 2015-05-12 Richard Biener <rguenther@suse.de>
22261
22262 PR tree-optimization/37021
22263 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22264 (SLP_TREE_TWO_OPERATORS): New define.
22265 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22266 SLP_TREE_TWO_OPERATORS.
22267 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22268 SLP node.
22269 (vect_build_slp_tree): Adjust.
22270 (vect_analyze_slp_cost_1): Likewise.
22271 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22272 emitting two vector stmts and mixing the results.
22273
22274 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22275
22276 * call.c (print_z_candidates): Remove dead code.
22277
22278 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22279
22280 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22281 and zEC12_simple_fp.
22282 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22283 to 1.
22284
22285 2015-05-12 Tom de Vries <tom@codesourcery.com>
22286
22287 PR tree-optimization/66010
22288 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22289 ifn_va_arg.
22290 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22291 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
22292 va_lists are passed, and remove corresponding handling.
22293 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
22294 do_deref argument to ifn_va_arg.
22295 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22296 ifn_va_arg.
22297
22298 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22299
22300 PR target/65955
22301 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22302 REG before taking its REGNO.
22303
22304 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22305
22306 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22307 rsp->sign_bit_copies and rsp->nonzero_bits into ...
22308 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
22309 present to get more accurate information about the number of sign bit
22310 copies and non zero bits.
22311
22312 2015-05-12 Richard Biener <rguenther@suse.de>
22313
22314 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22315 do not allow unrolling.
22316
22317 2015-05-11 Richard Henderson <rth@redhat.com>
22318
22319 * config/i386/i386-modes.def (CCP): New.
22320 * config/i386/i386.c (put_condition_code): Handle it.
22321 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22322
22323 2015-05-11 Richard Henderson <rth@redhat.com>
22324
22325 * target.def (md_asm_clobbers): Replace with...
22326 (md_asm_adjust): this.
22327 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22328 (TARGET_MD_ASM_ADJUST): New.
22329 * tm.texi: Rebuild.
22330 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22331 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22332 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22333
22334 * cfgexpand.c (check_operand_nalternatives): Accept vector of
22335 constraints instead of lists of outputs and inputs.
22336 (expand_asm_stmt): Save and restore input_location around the
22337 body of the function. Move asm data into vectors instead of
22338 building tree lists. Generate cleanup sequences as needed,
22339 rather than waiting til the end. Use new md_asm_adjust hook.
22340
22341 * config/vxworks.c: Include vec.h before target.h.
22342 * gimple.c: Likewise.
22343 * incpath.c: Likewise.
22344 * mode-switching.c: Likewise.
22345
22346 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22347 (cris_md_asm_adjust): this.
22348 (TARGET_MD_ASM_CLOBBERS): Remove.
22349 (TARGET_MD_ASM_ADJUST): New.
22350 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22351 (ix86_md_asm_adjust): this.
22352 (TARGET_MD_ASM_CLOBBERS): Remove.
22353 (TARGET_MD_ASM_ADJUST): New.
22354 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22355 (mn10300_md_asm_adjust): this.
22356 (TARGET_MD_ASM_CLOBBERS): Remove.
22357 (TARGET_MD_ASM_ADJUST): New.
22358 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22359 (rs6000_md_asm_adjust): this.
22360 (TARGET_MD_ASM_CLOBBERS): Remove.
22361 (TARGET_MD_ASM_ADJUST): New.
22362 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22363 (visium_md_asm_adjust): this.
22364 (TARGET_MD_ASM_CLOBBERS): Remove.
22365 (TARGET_MD_ASM_ADJUST): New.
22366
22367 2015-05-11 Richard Henderson <rth@redhat.com>
22368
22369 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22370 if noutputs is zero.
22371 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22372
22373 * cfgexpand.c (expand_asm_operands): Merge into...
22374 (expand_asm_stmt): ... here.
22375
22376 * cfgexpand.c (expand_asm_operands): Don't call
22377 resolve_asm_operand_names.
22378 * stmt.c (resolve_asm_operand_names): Clarify block comment.
22379
22380 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
22381
22382 * dwarf2out.c (gen_member_die): Sanity check that we access
22383 TYPE_MAIN_VARIANT for TYPE_METHODS.
22384 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22385 checking TYPE_METHODS.
22386 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22387 if non-null.
22388 (build_distinct_type_copy): Clear TYPE_METHODS.
22389 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22390 (verify_type): Allow TYPE_METHODS to be error_mark_node.
22391 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22392
22393 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
22394
22395 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22396 (emit_pattern_before_setloc): Likewise.
22397
22398 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22399
22400 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22401 for define_peephole2s.
22402 (get_peephole2_pattern): New function.
22403 (main): Use it. Call validate_pattern.
22404
22405 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22406
22407 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22408 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22409 (Last callee saved reg is different for AVR_TINY architecture)
22410
22411 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22412
22413 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22414 when looking for memory references.
22415
22416 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22417
22418 PR target/65753
22419 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22420 via function pointers.
22421
22422 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22423
22424 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22425 indirect call by forcing address into a pseudo with -fno-plt.
22426 * common.opt (flag_plt): New option.
22427 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22428 ([-fno-plt]): Document.
22429
22430 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
22431
22432 PR bootstrap/66105
22433 * config/rs6000/option-defaults.h: Add space between string literal
22434 and macro name.
22435
22436 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22437
22438 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22439 accross ARM targets.
22440
22441 2015-05-11 Christian Bruel <christian.bruel@st.com>
22442
22443 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22444 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22445
22446 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22447
22448 PR rtl-optimization/66076
22449 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22450 Don't grow the heap array if it is already big enough from a
22451 previous iteration.
22452
22453 2015-05-11 Christian Bruel <christian.bruel@st.com>
22454
22455 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22456 (is_called_in_ARM_mode): Remove.
22457 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22458 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22459 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22460 arm_declare_function_name.
22461
22462 2015-05-11 Christian Bruel <christian.bruel@st.com>
22463
22464 * config/arm/arm.c (arm_option_override): Reoganized and split into :
22465 (arm_option_params_internal); New function.
22466 (arm_option_check_internal): New function.
22467 (arm_option_override_internal): New function.
22468 (thumb_code, thumb1_code): Remove.
22469 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22470 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22471 (thumb_code, thumb1_code): Remove.
22472 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22473
22474 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22475
22476 * config/alpha/alpha.c (alpha_emit_set_const_1)
22477 (alpha_emit_set_long_const, alpha_extract_integer)
22478 (alpha_legitimate_constant_p, alpha_split_const_mov)
22479 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22480 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22481 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22482 HOST_WIDE_INT_1U.
22483 * config/alpha/predicates.md (mode_mask_operand): Do not match
22484 const_double RTX.
22485 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22486 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22487 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22488 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22489 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22490
22491 2015-05-11 Jakub Jelinek <jakub@redhat.com>
22492
22493 PR target/65780
22494 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22495 default_binds_local_p_2.
22496 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22497 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22498
22499 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22500
22501 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22502
22503 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22504
22505 Patch by Richard Biener
22506 * coverage.c (coverage_obj_init): Delay building of type variant
22507 until the type is finished.
22508
22509 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22510
22511 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22512 mismatch between C and C++ type; compoare correctly ARG_TYPES
22513 for non-prototypes and output correctly parameter index for METHOD_TYPE.
22514 (odr_types_equivalent_p): Fix wording of warning about attributes;
22515 it is OK to match prototype and non-prototype.
22516
22517 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22518
22519 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22520 TYPE_ARG_TYPES list.
22521 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22522 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22523
22524 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22525
22526 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22527 * tree.h (is_lang_specific): Constify.
22528
22529 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
22530
22531 PR tree-optimization/64454
22532 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22533 Rewrite.
22534
22535 2015-05-08 Jason Merrill <jason@redhat.com>
22536
22537 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22538 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22539 config/darwin.h, config/darwin9.h, config/elfos.h,
22540 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22541 config/microblaze/microblaze.h, config/mips/mips.h,
22542 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22543 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22544 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22545 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22546 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22547 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22548 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22549 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22550 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22551 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22552 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22553 between string literal and macro name.
22554
22555 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22556
22557 * jump.c: Change argument types to rtx_insn *.
22558 * rtl.h: Adjust.
22559
22560 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22561
22562 * lra-constraints.c: Change argument type to rtx_insn *.
22563
22564 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22565
22566 * df-problems.c: Change argument type to rtx_insn *.
22567
22568 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22569
22570 * combine.c: Change argument type to rtx_insn *.
22571
22572 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22573
22574 * rtl.h: Adjust.
22575 * rtlanal.c: Change argument type to rtx_insn *.
22576
22577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22578
22579 * sched-deps.c: Change argument types to rtx_insn *.
22580 * sched-int.h: Adjust.
22581
22582 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22583
22584 * dwarf2cfi.c: Change argument type to rtx_insn *.
22585
22586 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22587
22588 * ira.c (decrease_live_ranges_number): Changetype of local
22589 variable to rtx_insn *.
22590 * recog.c: Change argument types to rtx_insn *.
22591 * recog.h: Adjust.
22592
22593 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22594
22595 * reorg.c: Change argument types to rtx_insn *.
22596
22597 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22598
22599 * ira-color.c: Change argument types to rtx_insn *.
22600 * lra-eliminations.c: Likewise.
22601 * ira.h: Adjust.
22602
22603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22604
22605 * gcse.c: Change argument types to rtx_insn *.
22606
22607 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22608
22609 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22610
22611 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22612
22613 * emit-rtl.c (emit_debug_insn_before): Change argument type to
22614 rtx_insn *.
22615 * rtl.h: Adjust.
22616
22617 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22618
22619 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22620 * rtl.h: Adjust.
22621
22622 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22623
22624 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22625 * rtl.h: Adjust.
22626
22627 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22628
22629 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22630 * rtl.h: Adjust.
22631
22632 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22633
22634 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22635 * rtl.h: Adjust.
22636
22637 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22638
22639 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22640 to rtx_insn *.
22641 * rtl.h: Adjust.
22642
22643 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22644
22645 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22646 to rtx_insn *.
22647 * rtl.h: Likewise.
22648
22649 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22650
22651 * except.c (can_nonlocal_goto): Change type of argument to
22652 rtx_insn *.
22653 * rtl.h: Adjust.
22654
22655 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22656
22657 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22658 * rtl.h: Adjust.
22659
22660 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22661
22662 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22663 * cfgrtl.c (can_delete_label_p): Adjust.
22664 * rtl.h: likewise.
22665
22666 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22667
22668 * reorg.c (stop_search_p): Change argument to rtx_insn *.
22669
22670 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22671
22672 * except.c (make_reg_eh_region_note): Change argument to
22673 rtx_insn *.
22674 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22675 * except.h: Adjust.
22676
22677 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22678
22679 * mode-switching.c (commit_mode_sets): Change type of local
22680 variable from rtx to rtx_insn *.
22681
22682 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
22683
22684 * doc/install.texi (--enable-languages): Add missing jit and lto info.
22685 Add ^ to grep command.
22686 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22687 arg to last gimple_simplify declaration. Add missing gimple_build
22688 declaration for built-in function case with four tree args.
22689
22690 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22691 Szabolcs Nagy <szabolcs.nagy@arm.com>
22692
22693 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22694 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22695 (GNU_USER_DYNAMIC_LINKERN32): Update.
22696
22697 2015-05-08 Richard Biener <rguenther@suse.de>
22698
22699 PR tree-optimization/66036
22700 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22701 Handle strided group loads.
22702 (vect_verify_datarefs_alignment): Likewise.
22703 (vect_enhance_data_refs_alignment): Likewise.
22704 (vect_analyze_group_access): Likewise.
22705 (vect_analyze_data_ref_access): Likewise.
22706 (vect_analyze_data_ref_accesses): Likewise.
22707 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22708 (vectorizable_load): Likewise.
22709
22710 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
22711
22712 * config/rs6000/rs6000.md: Require operand inequality in one
22713 of the peepholes.
22714
22715 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
22716 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22717
22718 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22719 from (set ...).
22720 * config/rx/rx.md (movdi, movdf): Likewise.
22721 Likewise for define_peephole2s.
22722
22723 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22724
22725 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22726 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22727 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22728 vtst_u64): Rewrite using gcc vector extensions.
22729
22730 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22731
22732 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22733 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22734
22735 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22736
22737 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
22738
22739 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
22740
22741 * config/glibc-stdint.h (OPTION_MUSL): Define.
22742 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
22743 Change the definition based on OPTION_MUSL for 64 bit targets.
22744 * config/linux.h (OPTION_MUSL): Redefine.
22745 * config/alpha/linux.h (OPTION_MUSL): Redefine.
22746 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
22747 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
22748
22749 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22750 Szabolcs Nagy <szabolcs.nagy@arm.com>
22751
22752 * config.gcc (LIBC_MUSL): New tm_defines macro.
22753 * config/linux.h (OPTION_MUSL): Define.
22754 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
22755 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
22756 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22757 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22758 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22759 * config/linux.opt (mmusl): New option.
22760 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
22761 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22762 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22763 * configure: Regenerate.
22764
22765 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
22766 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22767
22768 PR target/48904
22769 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
22770 * config/i386/knetbsd-gnu64.h: New file.
22771
22772 2015-05-08 Marek Polacek <polacek@redhat.com>
22773
22774 PR c/64918
22775 * doc/invoke.texi: Document -Woverride-init-side-effects.
22776
22777 2015-05-07 Marek Polacek <polacek@redhat.com>
22778
22779 PR c/65179
22780 * doc/invoke.texi: Document -Wshift-negative-value.
22781
22782 2015-05-06 Aditya Kumar <hiraditya@msn.com>
22783
22784 * gcov-tool.c (do_merge): Refactore to remove int ret.
22785 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
22786 !type == FUNC to type != FUNC.
22787 * reload.h (struct target_reload): Changee to type of
22788 x_spill_indirect_levels from bool to unsigned char.
22789
22790 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
22791
22792 * rtl.h (always_void_p): New function.
22793 * gengenrtl.c (always_void_p): Likewise.
22794 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
22795 with code foo are always VOIDmode.
22796 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
22797 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
22798 compare-elim.c, config/aarch64/aarch64.c,
22799 config/aarch64/aarch64.md, config/alpha/alpha.c,
22800 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
22801 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
22802 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
22803 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22804 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
22805 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
22806 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
22807 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
22808 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
22809 config/ia64/vect.md, config/iq2000/iq2000.c,
22810 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
22811 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
22812 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
22813 config/mep/mep.c, config/microblaze/microblaze.c,
22814 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
22815 config/mn10300/mn10300.c, config/msp430/msp430.c,
22816 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
22817 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
22818 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
22819 config/rs6000/altivec.md, config/rs6000/rs6000.c,
22820 config/rs6000/rs6000.md, config/rs6000/vector.md,
22821 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
22822 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
22823 config/sh/sh.md, config/sh/sh_treg_combine.cc,
22824 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
22825 config/spu/spu.md, config/stormy16/stormy16.c,
22826 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
22827 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
22828 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
22829 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
22830 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
22831 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
22832 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
22833 var-tracking.c: Update calls accordingly.
22834
22835 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
22836
22837 PR middle-end/192
22838 PR middle-end/54303
22839 * varasm.c (function_mergeable_rodata_prefix): New function.
22840 (mergeable_string_section): Use it.
22841 (mergeable_constant_section): Use it.
22842
22843 2015-05-07 Jeff Law <law@redhat.com>
22844
22845 PR target/39726
22846 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
22847 simplifier to narrow arithmetic.
22848 * generic-match-head.c: (types_match, single_use): New functions.
22849 * gimple-match-head.c: (types_match, single_use): New functions.
22850
22851 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22852
22853 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
22854 rtx type.
22855
22856 2015-05-07 Richard Biener <rguenther@suse.de>
22857
22858 PR tree-optimization/66002
22859 * passes.def: Schedule another pass_merge_phi after ifcombine, right
22860 before phiopt.
22861
22862 2015-05-07 Marek Polacek <polacek@redhat.com>
22863 Martin Uecker <uecker@eecs.berkeley.edu>
22864
22865 * doc/invoke.texi: Document -fsanitize=bounds-strict.
22866 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
22867 into SANITIZE_NONDEFAULT.
22868 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
22869
22870 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
22871
22872 PR target/66015
22873 * config/alpha/alpha.c (alpha_override_options_after_change): New.
22874 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
22875 (alpha_override_options): Move align_loops, align_jumps and
22876 align_functions handling into alpha_override_options_after_change.
22877
22878 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
22879 Chris Jones <chrisj@nvidia.com>
22880 Joshua Conner <jconner@nvidia.com>
22881
22882 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
22883 linking of crtfastmath.o.
22884 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
22885
22886 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
22887
22888 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
22889 (cstore<mode>4_unsigned_imm): New expander.
22890 (cstore<mode>4): Remove empty constraint strings. Use the new
22891 expanders.
22892
22893 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
22894
22895 PR target/64208
22896 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
22897 alternatives.
22898
22899 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22900
22901 * config/aarch64/geniterators.sh: Use standard BRE in sed.
22902
22903 2015-05-06 Alan Modra <amodra@gmail.com>
22904
22905 PR target/66033
22906 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
22907 (UNSPEC_NOP): Define.
22908 (reload_vsx_from_gpr<mode>): Add missing DONE.
22909 (reload_gpr_from_vsx<mode>): Likewise.
22910 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
22911 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
22912
22913 2015-05-06 Christian Bruel <christian.bruel@st.com>
22914
22915 PR target/66015
22916 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
22917 align_jumps, align_functions into aarch64_override_options_after_change.
22918
22919 2015-05-06 Richard Biener <rguenther@suse.de>
22920
22921 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
22922 vect_transform_slp_perm_load to check if we support a permutation
22923 for basic-block vectorization.
22924
22925 2015-05-06 Nick Clifton <nickc@redhat.com>
22926
22927 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
22928 used, even if it is not being used as a frame pointer.
22929
22930 2015-05-05 Jason Merrill <jason@redhat.com>
22931
22932 * dwarf2out.c (gen_member_die): Don't emit anything for an
22933 anonymous class constructor.
22934
22935 2015-05-05 David Malcolm <dmalcolm@redhat.com>
22936
22937 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
22938 that it reflects the block structure.
22939 (afdo_propagate_edge): Likewise.
22940 (afdo_calculate_branch_prob): Likewise.
22941 (afdo_annotate_cfg): Likewise.
22942 * cfgcleanup.c (equal_different_set_p): Likewise.
22943 (try_crossjump_to_edge): Likewise.
22944 * cgraph.c (cgraph_node::verify_node): Likewise.
22945 * cgraphunit.c (expand_all_functions): Likewise.
22946 * config/i386/i386.c (ix86_expand_copysign): Likewise.
22947 (exact_dependency_1): Likewise.
22948 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
22949 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
22950 * gensupport.c (process_define_subst): Likewise.
22951 * lto-wrapper.c (merge_and_complain): Likewise.
22952 * tree-if-conv.c (if_convertible_bb_p): Likewise.
22953 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
22954 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
22955 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
22956 * tree-vect-loop.c (vectorizable_reduction): Likewise.
22957 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
22958 * tree-vect-stmts.c (vectorizable_shift): Likewise.
22959 * tree-vrp.c (vrp_finalize): Likewise.
22960 * tree.c (variably_modified_type_p): Likewise.
22961
22962 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
22963
22964 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
22965 on darwin12 and later.
22966 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
22967 file to pass -rdynamic on darwin12 and later.
22968 * config/darwin.opt (rdynamic): Add.
22969
22970 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22971
22972 * doc/extend.texi (C Extensions): Update menu for moved Variable
22973 Attributes and Type Attributes sections.
22974
22975 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
22976
22977 PR target/65990
22978 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
22979 if rep_8byte stringop strategy was specified for 32-bit target.
22980
22981 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
22982
22983 PR target/65915
22984 * config/i386/i386.md (vector convert to float spltiter): Check for
22985 xmm16+, when splitting scalar float conversion.
22986 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
22987
22988 2015-05-05 Nick Clifton <nickc@redhat.com>
22989
22990 * config/msp430/msp430-opts.h (enum msp430_regions): New.
22991 * config/msp430/msp430.c (msp430_override_options): Complain if
22992 -mcode-region or -mdata-region is used on a non MSP430X.
22993 (msp430_section_attr): New function. Checks lower, upper and
22994 either attributes.
22995 (msp430_attribute_table): Add lower, upper and either.
22996 (gen_prefix): New function. Generates a prefix for a section
22997 name.
22998 (msp430_select_section): New function - handles the choice of
22999 section for an object. Takes into account memory region
23000 attributes and options.
23001 (msp430_function_section): Use gen_prefix.
23002 (TARGET_SECTION_TYPE_FLAGS): Define.
23003 (msp430_section_type_flags): New function.
23004 (TARGET_ASM_UNIQUE_SECTION): Define.
23005 (msp430_unique_section): New function.
23006 (msp430_output_aligned_decl_common): New function.
23007 (msp430_do_not_relax_short_jumps): New function.
23008 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23009 Define.
23010 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23011 * config/msp430/msp430-protos.h
23012 (msp430_do_not_relax_short_jumps): New prototype.
23013 (msp430_output_aligned_decl_common): New prototype.
23014 * config/msp430/msp430.md (length): New attribute.
23015 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23016 then use a long code sequence for short jumps.
23017 * config/msp430/msp430.opt (mcode-region): New.
23018 (mdata-region): New.
23019 * doc/invoke.texi: Document new options.
23020 * doc/extend.texi: Document new attributes.
23021
23022 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23023
23024 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23025 (tune_params): Add field branch_costs.
23026 (aarch64_branch_cost): Declare.
23027 * gcc/config/aarch64.c (generic_branch_cost): New.
23028 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23029 (cortexa53_tunings): Likewise.
23030 (cortexa57_tunings): Likewise.
23031 (thunderx_tunings): Likewise.
23032 (xgene1_tunings): Likewise.
23033 (aarch64_branch_cost): Define.
23034 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23035
23036 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23037
23038 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23039 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23040 * config/i386/i386.md: Ditto.
23041 * config/i386/winnt.c: Ditto.
23042
23043 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23044
23045 * doc/extend.texi (__atomic Builtins): Move implementation details
23046 to the end of the description, rewrite opening paragraphs, state
23047 difference with __sync builtins, state C11/C++11 assumptions,
23048 weaken itemized descriptions, add explanation of memory model
23049 behaviour, expand description of compare-exchange, simplify text.
23050
23051 2015-05-05 Renlin Li <renlin.li@arm.com>
23052
23053 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23054
23055 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
23056
23057 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23058 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23059 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23060 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23061 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23062 * configure: Regenerate.
23063 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23064 * doc/install.texi (aarch64*-*-*): Document new
23065 --enable-fix-cortex-a53-843419 option.
23066 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23067 and -mno-fix-cortex-a53-843419 options.
23068
23069 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23070
23071 PR target/65871
23072 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23073
23074 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
23075
23076 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23077 fix overactive TYPE_MIN_VALUE check and add FIXME for type
23078 compatibility problems.
23079
23080 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23081
23082 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23083 constraints.
23084 (cbranchsi4_reg): New.
23085 * config/microblaze/microblaze.c
23086 (microblaze_expand_conditional_branch_reg): New.
23087 * config/microblaze/microblaze-protos.h
23088 (microblaze_expand_conditional_branch_reg): New prototype.
23089
23090 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23091
23092 * config/microblaze/microblaze.md (peephole2): New.
23093
23094 2015-05-04 Jeff Law <law@redhat.com>
23095
23096 Revert:
23097 2015-05-04 Jeff Law <law@redhat.com>
23098
23099 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23100 simplifier to narrow arithmetic.
23101 * generic-match-head.c: (types_match, single_use): New functions.
23102 * gimple-match-head.c: (types_match, single_use): New functions.
23103
23104 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23105
23106 PR target/65987
23107 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23108 (split_branches): Likewise.
23109
23110 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
23111
23112 * common.opt (fdelete-null-pointer-checks): Init to -1.
23113 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23114 override flag_delete_null_pointer_checks default.
23115 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23116 behavior re address zero. Better document target-specific behavior.
23117 (-fisolate-errneous-paths-dereference): Mention relationship to
23118 -fdelete-null-pointer-checks.
23119
23120 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23121
23122 PR tree-optimization/65984
23123 * ubsan.c: Include tree-cfg.h.
23124 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23125 stmt_could_throw_p test, rename can_throw variable to ends_bb.
23126
23127 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23128
23129 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23130 to CONST_DOUBLE_P predicate.
23131 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23132 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23133 allow only operands that satisfy standard_sse_constant_p predicate.
23134 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23135 to CONST_DOUBLE_P predicate.
23136
23137 2015-05-04 Jeff Law <law@redhat.com>
23138
23139 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23140 simplifier to narrow arithmetic.
23141 * generic-match-head.c: (types_match, single_use): New functions.
23142 * gimple-match-head.c: (types_match, single_use): New functions.
23143
23144 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
23145
23146 * config/arm/arm.c: Restore bootstrap.
23147
23148 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23149
23150 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23151 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23152 as CONST_WIDE_INT, not CONST_DOUBLE.
23153 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23154 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23155 (ix86_find_base_term): Do not check for CONST_DOUBLE.
23156 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23157 (ix86_build_signbit_mask): Rewrite using wide ints.
23158 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23159 (ix86_rtx_costs): Handle CONST_WIDE_INT.
23160 (find_constant): Ditto.
23161 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23162 using gen_int_mode.
23163 * config/i386/predicates.md (x86_64_immediate_operand)
23164 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23165 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23166 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23167 (const0_operand): Also match const_wide_int.
23168 (constm1_operand): Ditto.
23169 (const1_operand): Ditto.
23170
23171 2015-05-04 Richard Biener <rguenther@suse.de>
23172
23173 PR tree-optimization/65965
23174 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23175 store groups at gaps.
23176
23177 2015-05-04 Richard Biener <rguenther@suse.de>
23178
23179 PR tree-optimization/65935
23180 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23181 then make sure to apply that swapping to the IL.
23182
23183 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23184
23185 * Makefile.in (PATCHLEVEL_c): New variable.
23186 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23187 expand the same way as if DEVPHASE_c was non-empty.
23188
23189 2015-05-04 Kai Tietz <ktietz@redhat.com>
23190
23191 PR target/65559
23192 * lto-wrapper.c (run_gcc): Open filename
23193 in binary-mode.
23194
23195 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
23196
23197 * doc/extend.texi (Variable Attributes, Type Attributes): Move
23198 sections up in file, to immediately after the Function Attributes
23199 section.
23200
23201 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
23202
23203 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23204
23205 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23206
23207 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23208 (insert_partition_copy_on_edge): Adjust.
23209 (insert_rtx_to_part_on_edge): Likewise.
23210 (insert_part_to_rtx_on_edge): Likewise.
23211
23212 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23213
23214 * function.c (set_return_jump_label): Change type of argument to
23215 rtx_insn *.
23216 * function.h (set_return_jump_label): Adjust.
23217
23218 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23219
23220 * reload.h (struct reg_equivs_t): Change type of init to
23221 rtx_insn *.
23222 * ira.c (fix_reg_equiv_init): Adjust.
23223 * reload1.c (eliminate_regs_1): Likewise.
23224 (init_eliminable_invariants): Likewise.
23225
23226 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23227
23228 * cselib.c (fp_setter_insn): Take a rtx_insn *.
23229 * cselib.h (fp_setter_insn): Adjust.
23230
23231 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23232
23233 * recog.c (struct validate_replace_src_data): Change type of
23234 insn field to rtx_insn *.
23235 (validate_replace_src_group): Change type of argument to rtx_insn *.
23236 * recog.h (validate_replace_src_group): Adjust.
23237
23238 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23239
23240 * haifa-sched.c: Change the type of some variables to rtx_insn *.
23241 * sched-deps.c: Likewise.
23242 * sched-int.h: Likewise.
23243 * sched-rgn.c: Likewise.
23244 * sel-sched.c: Likewise.
23245
23246 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23247
23248 to rtx_insn *.
23249 * config/i386/i386.c: Change the type of some arguments to
23250 rtx_insn *.
23251 * config/arm/arm.c: Likewise.
23252
23253 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23254
23255 * lra-constraints.c: Change type of some arguments to rtx_insn *.
23256
23257 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23258
23259 * regcprop.c (kill_autoinc_value): Change type of argument to
23260 rtx_insn *.
23261
23262 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23263
23264 * genrecog.c (print_subroutine): Adjust.
23265 * recog.c (get_bool_attr_mask_uncached): Likewise.
23266 * recog.h (struct recog_data_d): Change the type of insn to
23267 rtx_insn *.
23268
23269 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23270
23271 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23272
23273 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23274
23275 * df-problems.c (df_set_note): Change type of argument to
23276 rtx_insn *.
23277
23278 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23279
23280 * builtins.c (expand_builtin_trap): Change type of local
23281 variable to rtx_insn *.
23282 (add_sched_insns_for_speculation): Likewise.
23283 (ix86_emit_save_regs): Likewise.
23284 (get_scratch_register_on_entry): Likewise.
23285 (ix86_emit_restore_reg_using_pop): Likewise.
23286 (ix86_emit_leave): Likewise.
23287 (ix86_emit_restore_regs_using_mov): Likewise.
23288 (ix86_expand_epilogue): Likewise.
23289 Likewise.
23290 (rl78_alloc_physical_registers_umul): Likewise.
23291 * cselib.c (discard_useless_locs): Likewise.
23292 (cselib_invalidate_regno): Likewise.
23293 (cselib_invalidate_mem): Likewise.
23294 * function.c (expand_function_start): Likewise.
23295 (emit_use_return_register_into_block): Likewise.
23296 * gcse.c: Likewise.
23297 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23298 * ifcvt.c (noce_get_alt_condition): Likewise.
23299 * loop-doloop.c (doloop_condition_get): Likewise.
23300 * lra-constraints.c (inherit_in_ebb): Likewise.
23301 * modulo-sched.c (sms_schedule_by_order): Likewise.
23302 * recog.c (next_insn_tests_no_inequality): Likewise.
23303 * reorg.c (emit_delay_sequence): Likewise.
23304 (update_reg_dead_notes): Likewise.
23305 (fix_reg_dead_note): Likewise.
23306 (fill_slots_from_thread): Likewise.
23307 (delete_computation): Likewise.
23308
23309 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
23310
23311 * doc/extend.texi (Variable Attributes): Add menu and proper
23312 @nodes to subsections. Move Microsoft Windows attributes to
23313 their own subsection.
23314 (Type Attributes): Reorganize introduction to remove duplicate
23315 list of attributes. Add menu and proper @nodes to subsections.
23316 Alphabetize the main table of common attributes.
23317
23318 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
23319
23320 * match.pd: New simplification patterns.
23321 (x + (x & 1)) -> ((x + 1) & ~1)
23322 (x & ~(x & y)) -> ((x & ~y))
23323 (x | ~(x | y)) -> ((x | ~y))
23324
23325 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23326
23327 * target.def (attribute_table): Mention that struct attribute_spec
23328 is defined in tree-core.h rather than tree.h
23329 * doc/tm.texi: Regenerate.
23330
23331 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
23332
23333 * genrecog.c (test): Rename to rtx_test. Update rest of file
23334 accordingly.
23335
23336 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
23337
23338 PR translation/65959
23339 * params.h (DEFPARAM): Rename msgid to nocmsgid.
23340
23341 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23342
23343 * gcc/config/aarch64/aarch64-protos.h (tune_params):
23344 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23345 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23346 Return value depending on target.
23347 (generic_tunings): Initialize new target settings.
23348 (cortexa53_tunings): Likewise.
23349 (cortexa57_tunings): Likewise.
23350 (thunderx_tunings): Likewise.
23351 (xgene1_tunings): Likewise.
23352
23353 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23354
23355 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23356 Make Cortex-A53 shift costs more accurate.
23357
23358 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23359
23360 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23361 UNSIGNED_FLOAT.
23362
23363 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23364
23365 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23366 Calculate cost of op0 and op1 in PLUS and MINUS cases.
23367
23368 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23369
23370 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23371 Add cost of op0 in the compare-with-fpzero case.
23372
23373 2015-04-30 David Malcolm <dmalcolm@redhat.com>
23374
23375 * builtins.c (fold_builtin_1): Remove spurious second
23376 semicolon.
23377 * cgraph.h (symtab_node::get_availability): Likewise.
23378 * opts.c (common_handle_option): Remove spurious second semicolon.
23379 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23380 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23381
23382 2015-04-30 Caroline Tice <cmtice@google.com>
23383
23384 PR gcov-profile/65929
23385 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23386 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23387 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23388 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23389 * doc/tm.texi: Regenerate.
23390 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
23391 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23392 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
23393 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23394
23395 2015-04-30 Marek Polacek <polacek@redhat.com>
23396
23397 * varasm.c (handle_cache_entry): Fix logic.
23398
23399 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23400
23401 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23402 (*extrsi5_insn_uxtw_alt): Likewise.
23403 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23404 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23405 operations.
23406
23407 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23408
23409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23410 fabd in ABS case.
23411
23412 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23413
23414 * config/aarch64/aarch64.md
23415 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23416 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23417 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23418 appropriately. Handle alternative EON form.
23419
23420 2015-04-30 Renlin Li <renlin.li@arm.com>
23421
23422 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23423 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23424
23425 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23426
23427 PR ipa/65873
23428 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23429 -fstrict-aliasing boundaries.
23430
23431 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23432
23433 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23434 and [SU]MNEGL patterns.
23435
23436 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23437
23438 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23439 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23440 combined arithmetic-shift ops. Properly handle all shift and extend
23441 operations that can occur in combination with PLUS/MINUS.
23442 Rename maybe_fma to compound_p.
23443 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23444 arithmetic and shift operations.
23445
23446 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23447
23448 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23449 rather than arith_shift cost when costing ADD/MINUS of an
23450 extended value.
23451
23452 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23453
23454 PR lto/65948
23455 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23456 to itself.
23457
23458 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
23459
23460 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23461 are for the same position.
23462
23463 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
23464
23465 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
23466 vectorize_loops.
23467 (vectorize_loops): Use it.
23468
23469 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23470
23471 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23472 for aggregate types.
23473 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23474 type to be non_ODR.
23475 * tree.c (need_assembler_name_p): Compute mangled name for
23476 non-fundamental types and integer types.
23477
23478 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
23479
23480 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23481 manual swaps.
23482 * expr.c (expand_expr_real_2): Likewise.
23483
23484 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23485
23486 * tree.c (build_common_builtin_nodes): Do not build
23487 __builtin_alloca_with_align as equivalent of library alloca.
23488
23489 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23490
23491 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23492 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23493 bugus variants.
23494 * tree.c: Include print-tree.h and ipa-utils.h
23495 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23496 (free_lang_data_in_cgraph): Call verify_type.
23497 (verify_type_variant): New function.
23498 (verify_type): New function.
23499 * tree.h (verify_type): Declare.
23500
23501 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
23502
23503 * config/mips/mips-cpus.def: (mips4): Change default processor
23504 from PROCESSOR_R8000 to PROCESSOR_R10000.
23505
23506 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
23507
23508 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23509 la/jalr instead of jal.
23510
23511 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
23512
23513 PR target/65871
23514 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23515 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23516 (setcc+movzbl peephole2): Check also clobbered reg.
23517 (setcc+andl peephole2): Ditto.
23518
23519 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23520
23521 PR libgomp/65099
23522 * config/nvptx/mkoffload.c (target_ilp32): New variable.
23523 (main): Set it depending on "-foffload-abi=[...]".
23524 (compile_native, main): Use it to pass "-m32" or "-m64" to the
23525 compiler.
23526
23527 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23528
23529 PR target/65770
23530 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23531 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23532 Flip lane index back at assembly time for bigendian.
23533
23534 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23535
23536 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23537 * gimplify.c (gimplify_omp_workshare): Use it.
23538
23539 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23540
23541 * Makefile.in (build/genrecog.o): Depend on inchash.h.
23542 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23543 build/inchash.o
23544 * genrecog.c: Rewrite most of the code except for the third page.
23545
23546 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23547
23548 * inchash.h, inchash.c: Include bconfig.h for build objects.
23549 * Makefile.in (build/inchash.o): New rule.
23550
23551 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
23552
23553 PR target/65924
23554 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23555 number in type attribute expression.
23556
23557 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23558
23559 * loop-iv.c (canon_condition): Generalize to all types of integer
23560 constant.
23561
23562 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
23563
23564 * gimple-walk.c: Prune duplicate or unneeded includes.
23565 (walk_gimple_asm): Only call parse_input_constraint or
23566 parse_output_constraint if their findings are used.
23567 Honour parse_input_constraint and parse_output_constraint
23568 result.
23569
23570 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23571
23572 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23573
23574 2015-04-29 Tom de Vries <tom@codesourcery.com>
23575
23576 PR tree-optimization/65893
23577 * passes.def (pass_all_optimizations): Move pass_stdarg to after
23578 pass_dce.
23579
23580 2015-04-29 Richard Biener <rguenther@suse.de>
23581
23582 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23583 compute GROUP_SIZE for basic-block SLP.
23584 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23585 take into account gaps.
23586 (vect_get_mask_element): Properly reject references to previous
23587 vectors.
23588 (vect_transform_slp_perm_load): Likewise.
23589
23590 2015-04-29 Christian Bruel <christian.bruel@st.com>
23591
23592 PR target/64835
23593 * config/i386/i386.c (ix86_default_align): New function.
23594 (ix86_override_options_after_change): Call ix86_default_align.
23595 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23596 (ix86_override_options_after_change): New function.
23597
23598 2015-04-28 Jeff Law <law@redhat.com>
23599
23600 * tree-ssa-dom.c (record_equality); Fix comment typos.
23601
23602 2015-04-28 Tom de Vries <tom@codesourcery.com>
23603
23604 PR tree-optimization/65887
23605 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23606
23607 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
23608
23609 * doc/extend.texi (Declaring Attributes of Functions): Split into
23610 subsections by target. Alphabetize the table of common attributes.
23611 Rewrite some of the introductory text to reflect the new structure.
23612 Update some cross-references to point to the new subsections.
23613 (Attribute Syntax): Put paragraph about "__" naming here. Remove
23614 duplicate copies in the discussion of function, label, and type
23615 attributes.
23616
23617 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
23618
23619 PR bootstrap/65910
23620 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23621
23622 2015-04-28 Jason Merrill <jason@redhat.com>
23623
23624 PR c++/65734
23625 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23626 (finalize_type_size): Respect TYPE_USER_ALIGN.
23627 (layout_type) [ARRAY_TYPE]: Likewise.
23628
23629 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
23630
23631 * config/arm/arm.md (*arm_movt): Fix type attribute.
23632 (*cmpsi_shiftsi): Likewise.
23633 (*cmpsi_shiftsi_swp): Likewise.
23634 (*movsicc_insn): Likewise.
23635 (*cond_move): Likewise.
23636 (*if_plus_move): Likewise.
23637 (*if_move_plus): Likewise.
23638 (*if_arith_move): Likewise.
23639 (*if_move_arith): Likewise.
23640 (*if_shift_move): Likewise.
23641 (*if_move_shift): Likewise.
23642 (*arm_movtas_ze): Likewise.
23643 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23644 redundancy and type attribute.
23645 (*thumb2_movsi_insn): Fix type attribute.
23646 (*thumb2_addsi_short): Likewise.
23647 (thumb2_addsi3_compare0): Likewise.
23648 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23649 attributes accordingly.
23650
23651 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23652
23653 PR other/65911
23654 * function.c (pad_to_arg_alignment): Add parentheses.
23655
23656 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
23657
23658 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23659 libgcc/config/frv/elf-lib.h.
23660
23661 2015-04-28 Tom de Vries <tom@codesourcery.com>
23662
23663 * tree-call-cdce.c: Fix example in header comment.
23664
23665 2015-04-28 Richard Biener <rguenther@suse.de>
23666
23667 PR tree-optimization/62283
23668 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23669 fails fatally and we are vectorizing a basic-block simply
23670 cause the child to be constructed piecewise.
23671 (vect_analyze_slp_cost_1): Adjust.
23672 (vect_detect_hybrid_slp_stmts): Likewise.
23673 (vect_bb_slp_scalar_cost): Likewise.
23674 (vect_get_constant_vectors): For piecewise constructed
23675 constants place them after the last def.
23676 (vect_get_slp_defs): Adjust.
23677 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23678 externals for basic-block vectorization.
23679
23680 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23681
23682 PR target/63503
23683 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23684 aarch64-*-*.
23685 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23686 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23687 (AARCH64_TUNE_FMA_STEERING): Likewise.
23688 * config/aarch64/aarch64-cores.def: Set
23689 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23690 FMUL/FMADD instructions.
23691 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23692 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
23693 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23694 * config/aarch64/cortex-a57-fma-steering.h: New file.
23695 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23696
23697 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
23698
23699 * gensupport.c (std_preds): Add missing codes to address_operand entry.
23700
23701 2015-04-28 Richard Biener <rguenther@suse.de>
23702
23703 PR tree-optimization/65851
23704 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23705 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
23706 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
23707 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23708 (ccp_visit_phi_node): Adjust.
23709 (evaluate_stmt): For simplifications to SSA names return its
23710 lattice value if that isn't VARYING. Return immediately when
23711 simplified to a constant.
23712 (visit_assignment): Adjust.
23713 (ccp_visit_stmt): Likewise.
23714
23715 2015-04-28 Tom de Vries <tom@codesourcery.com>
23716
23717 PR tree-optimization/65818
23718 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23719 evaluated.
23720
23721 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23722
23723 * calls.c (save_fixed_argument_area): Don't check
23724 ARGS_GROW_DOWNWARD with the preprocessor.
23725 (restore_fixed_argument_area): Likewise.
23726 (mem_overlaps_already_clobbered_arg_p): Likewise.
23727 (check_sibcall_argument_overlap): Likewise.
23728 (expand_call): Likewise.
23729 (emit_library_call_value_1): Likewise.
23730 (store_one_arg): Likewise.
23731 * function.c (assign_parms): Likewise.
23732 (locate_and_pad_parm): Likewise.
23733 (pad_to_arg_alignment): Likewise.
23734 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23735
23736 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23737
23738 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
23739 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
23740 * calls.c (save_fixed_argument_area): Don't chekc if
23741 ARGS_GROW_DOWNWARD is defined.
23742 (restore_fixed_argument_area): Likewise.
23743 (mem_overlaps_already_clobbered_arg_p): Likewise.
23744 (check_sibcall_argument_overlap): Likewise.
23745 (expand_call): Likewise.
23746 (emit_library_call_value_1): Likewise.
23747 (store_one_arg): Likewise.
23748 * function.c (assign_parms): Likewise.
23749 (locate_and_pad_parm): Likewise.
23750 (pad_to_arg_alignment): Likewise.
23751 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23752
23753 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23754
23755 * defaults.h (gen_epilogue): New function.
23756 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
23757 defined.
23758 * cfgrtl.c (cfg_layout_finalize): Likewise.
23759 * df-scan.c: Likewise.
23760 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23761 (reposition_prologue_and_epilogue_notes): Likewise.
23762 * reorg.c (find_end_label): Likewise.
23763 * toplev.c: Likewise.
23764
23765 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23766
23767 * bb-reorder.c (HAVE_return): Don't check if its undefined.
23768 * defaults.h (gen_simple_return): New function.
23769 (gen_simple_return): Likewise.
23770 (HAVE_return): Add default definition to false.
23771 (HAVE_simple_return): Likewise.
23772 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
23773 HAVE_return and HAVE_simple_return are defined.
23774 * function.c (gen_return_pattern): Likewise.
23775 (convert_jumps_to_returns): Likewise.
23776 (thread_prologue_and_epilogue_insns): Likewise.
23777 * reorg.c (find_end_label): Likewise.
23778 (dbr_schedule): Likewise.
23779 * shrink-wrap.c: Likewise.
23780 * shrink-wrap.h: Likewise.
23781
23782 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23783
23784 * defaults.h (EPILOGUE_USES): Add default definition of false.
23785 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
23786 * resource.c (init_resource_info): Likewise.
23787
23788 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23789
23790 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
23791 to false.
23792 * dwarf2out.c (field_byte_offset): REmove check if
23793 PCC_BITFIELD_TYPE_MATTERS is defined.
23794 * stor-layout.c (layout_decl): Likewise.
23795 (update_alignment_for_field): Likewise.
23796 (place_field): Likewise.
23797
23798 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23799
23800 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
23801 true.
23802 * regrename.c (check_new_reg_p): Remove check if
23803 HARD_REGNO_RENAME_OK is defined.
23804 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
23805
23806 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23807
23808 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
23809 * cse.c (fold_rtx): Likewise.
23810 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
23811 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
23812 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
23813 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
23814 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
23815 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
23816 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
23817 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
23818 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
23819 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
23820 * Likewise.
23821 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
23822 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
23823 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
23824 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
23825 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
23826 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
23827 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
23828 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
23829 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
23830 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
23831 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
23832 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
23833 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
23834 * doc/tm.texi: Regenerate.
23835 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
23836 either true or false.
23837
23838 2015-04-27 Jeff Law <law@redhat.com>
23839
23840 PR tree-optimization/65217
23841 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
23842 of them has a single use, make sure it is the LHS of the implied
23843 copy.
23844
23845 2015-04-28 Alan Modra <amodra@gmail.com>
23846
23847 PR target/65810
23848 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
23849 (offsettable_ok_by_alignment): Use minimum of decl and toc
23850 pointer alignment. Replace dead code with assertion.
23851 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
23852 case if size exceeds toc pointer alignment.
23853 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
23854 (rs6000_emit_move): Likewise.
23855 * configure.ac: Add linker toc pointer alignment check.
23856 * configure: Regenerate.
23857 * config.in: Regenerate.
23858
23859 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
23860
23861 * config.gcc: Add h8300-*-linux.
23862 * config/h8300/linux.h: New.
23863 * config/h8300/t-linux: New.
23864 * config/h8300/h8300.c (h8300_option_override): Normal mode
23865 is not supported for h8300-*-linux.
23866 (h8300_file_start): Target priority change.
23867 (get_shift_alg): Likewise.
23868 (h8300_shift_need_scratch_p): Likewise.
23869 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
23870 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
23871
23872 2015-04-27 Caroline Tice <cmtice@google.com>
23873
23874 * final.c (final_scan_insn): Output cold_function_name as function
23875 type.
23876 * varasm.c (cold_function_name): Make global.
23877 (assemble_start_function): Re-set cold_function_name.
23878 (assemble_end_function): Output cold partition size.
23879 * varasm.h (cold_function_name): Declare global.
23880
23881 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
23882
23883 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
23884 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
23885 constraint.
23886 (*movxi_internal_avx512f): Ditto.
23887 (define_split): Check for xmm16+, when splitting scalar float_extend.
23888 (*extendsfdf2_mixed): Use "v" constraint.
23889 (define_split): Check for xmm16+, when splitting scalar float_truncate.
23890 (*truncdfsf_fast_sse): Use "v" constraint.
23891 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
23892 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
23893 (define_peephole2): Check for xmm16+, when converting scalar
23894 float_truncate.
23895 (define_peephole2): Check for xmm16+, when converting scalar
23896 float_extend.
23897 (*fop_<mode>_comm_mixed): Use "v" constraint.
23898 (*fop_<mode>_comm_sse): Ditto.
23899 (*fop_<mode>_1_mixed): Ditto.
23900 (*sqrt<mode>2_sse): Ditto.
23901 (*ieee_s<ieee_maxmin><mode>3): Ditto.
23902
23903 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23904
23905 * combine.c (simplify_if_then_else): Use std::swap instead
23906 of manually swapping.
23907 (known_cond): Likewise.
23908 (simplify_comparison): Likewise.
23909
23910 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
23911
23912 PR target/64579
23913 * config/rs6000/htm.md: Remove all define_expands.
23914 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
23915 UNSPECV_HTM_TABORTWCI): Remove.
23916 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
23917 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
23918 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
23919 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
23920 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
23921 tabortwci_internal): Remove define_insns.
23922 (tabort<wd>c, tabort<wd>ci): New define_insns.
23923 (tabort): Use gpc_reg_operand.
23924 (tcheck): Remove operand.
23925 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
23926 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
23927 expected value.
23928 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
23929 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
23930 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
23931 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
23932 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
23933 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
23934 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
23935 (tcheck): Remove builtin argument.
23936 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
23937 not TARGET_64BIT.
23938 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
23939 tabortdc and tabortdci builtins when not in 64-bit mode.
23940 Modify code to handle the loss of the HTM define_expands.
23941 Emit code to copy the CR register to TARGET.
23942 (htm_init_builtins): Modify code to handle the loss of the HTM
23943 define_expands.
23944 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
23945 (RS6000_BTC_64BIT): Likewise.
23946 (RS6000_BTC_CR): New macro.
23947 * doc/extend.texi: Update documentation for htm builtins.
23948
23949 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23950
23951 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
23952 of manually swapping.
23953 (simplify_associative_operation): Likewise.
23954 (simplify_binary_operation): Likewise.
23955 (simplify_plus_minus): Likewise.
23956 (simplify_relational_operation): Likewise.
23957 (simplify_ternary_operation): Likewise.
23958
23959 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
23960
23961 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
23962 (xs_hi_nonmemory_operand): Remove error.
23963 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
23964 general_operand rather than xs_hi_general_operand.
23965
23966 2015-04-27 Richard Biener <rguenther@suse.de>
23967
23968 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
23969 (record_equivalences_from_stmt): Valueize rhs.
23970 (record_equality): Canonicalize x and y order via
23971 tree_swap_operands_p. Do not swap operands for same loop depth.
23972
23973 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
23974
23975 PR target/65296
23976 PR target/65895
23977 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
23978 Add hint how to use own spec file.
23979
23980 2015-04-27 Jakub Jelinek <jakub@redhat.com>
23981
23982 PR tree-optimization/65875
23983 * tree-vrp.c (update_value_range): If in is_new case setting
23984 old_vr to VR_VARYING, also set new_vr to it. Remove
23985 old_vr->type == VR_VARYING test.
23986 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
23987 SSA_PROP_INTERESTING if update_value_range returned true,
23988 but new range is VR_VARYING.
23989
23990 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
23991
23992 * combine.c (sign_extend_short_imm): New.
23993 (set_nonzero_bits_and_sign_copies): Use above new function for sign
23994 extension of src short immediate.
23995 (reg_nonzero_bits_for_combine): Likewise for tem.
23996
23997 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
23998
23999 * stor-layout.c (self_referential_component_ref_p): New predicate.
24000 (copy_self_referential_tree_r): Use it.
24001 (self_referential_size): Punt for simple operations directly involving
24002 self-referential component references.
24003 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24004
24005 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24006
24007 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24008
24009 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24010
24011 * vec.h (vec): Make splice arguments const. Update definitions
24012 accordingly.
24013
24014 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
24015
24016 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24017 alternatives.
24018
24019 2015-04-26 Tom de Vries <tom@codesourcery.com>
24020
24021 PR tree-optimization/65826
24022 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24023
24024 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
24025
24026 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24027 (*madd3<mode>): Ditto.
24028 (*msub4<mode>): Ditto.
24029 (*msub3<mode>): Ditto.
24030 (*nmadd4<mode>): Ditto.
24031 (*nmadd3<mode>): Ditto.
24032 (*nmadd4<mode>_fastmath): Ditto.
24033 (*nmadd3<mode>_fastmath): Ditto.
24034 (*nmsub4<mode>): Ditto.
24035 (*nmsub3<mode>): Ditto.
24036 (*nmsub4<mode>_fastmath): Ditto.
24037 (*nmsub3<mode>_fastmath): Ditto.
24038
24039 2015-04-24 Jason Merrill <jason@redhat.com>
24040
24041 PR c++/50800
24042 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24043 down when building TYPE_CANONICAL.
24044 (build_pointer_type_for_mode): Likewise.
24045
24046 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
24047
24048 * genrecog.c (validate_pattern): Check matching constraint refers
24049 to a lower numbered operand.
24050
24051 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24052
24053 PR target/65849
24054 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24055 save to independent variables use the Save attribute. This will
24056 allow these options to be modified with the #pragma/attribute
24057 target support.
24058 (-mallow-movmisalign): Likewise.
24059 (-mallow-df-permute): Likewise.
24060 (-msched-groups): Likewise.
24061 (-malways-hint): Likewise.
24062 (-malign-branch-targets): Likewise.
24063 (-mvectorize-builtins): Likewise.
24064 (-msave-toc-indirect): Likewise.
24065
24066 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24067 can be set via the #pragma/attribute target support.
24068 (rs6000_opt_vars): Likewise.
24069 (rs6000_inner_target_options): If VSX was set, also set
24070 -mno-avoid-indexed-addresses.
24071
24072 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24073
24074 * config/arm/iterators.md (shiftable_ops): Rename to...
24075 (SHIFTABLE_OPS): ... This. Update use in comments.
24076 (ior_xor): Rename to...
24077 (IOR_XOR): ... This.
24078 (vqh_ops): Rename to...
24079 (VQH_OPS): ... This.
24080 (vqhs_ops): Rename to...
24081 (VQHS_OPS): ... This.
24082 (rshifts): Rename to...
24083 (RSHIFTS): ... This.
24084 (returns): Rename to...
24085 (RETURNS): ... This.
24086 * config/arm/arm.md: Update uses of the above.
24087 * config/arm/neon.md: Likewise.
24088
24089 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24090
24091 * config.host (case ${host}): Add aarch64*-*-linux case.
24092 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24093 fields to all the cores.
24094 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24095 Add MCPU_MTUNE_NATIVE_SPECS.
24096 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24097 field to all extensions.
24098 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24099 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24100 Adjust definition of AARCH64_OPT_EXTENSION.
24101 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24102 (MCPU_MTUNE_NATIVE_SPECS): Define.
24103 * config/aarch64/driver-aarch64.c: New file.
24104 * config/aarch64/x-arch64: New file.
24105 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24106 -mtune and -march.
24107
24108 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24109 Wei Mi <wmi@google.com>
24110
24111 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24112 * config/i386/i386.c (extract_base_offset_in_addr): New function.
24113 (ix86_operands_ok_for_move_multiple): Ditto.
24114 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24115 (movlpd/movhpd to movupd peephole2): Ditto.
24116
24117 2015-04-24 Marek Polacek <polacek@redhat.com>
24118
24119 PR c/61534
24120 * input.h (from_macro_expansion_at): Define.
24121
24122 PR c/63357
24123 * doc/invoke.texi: Update description of -Wlogical-op.
24124
24125 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24126
24127 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24128 ternary operator in fprintf and harmonize spacing.
24129
24130 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24131
24132 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24133 Mark operand1 commutative.
24134
24135 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24136
24137 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24138 input operands in memory.
24139 (*vec_concatv2si_sse4_1): Ditto.
24140 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24141 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24142 register_operand.
24143 (vec_extract_hi_v32hi): Ditto.
24144 (vec_extract_hi_v64hi): Ditto.
24145 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24146
24147 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24148 Steven Bosscher <steven@gcc.gnu.org>
24149
24150 PR rtl-optimization/34503
24151 * cprop.c (cprop_reg_p): New.
24152 (hash_scan_set): Use above function to check if register can be
24153 propagated.
24154 (find_avail_set): Return up to two sets, one whose source is a
24155 register and one whose source is a constant. Sets are returned in an
24156 array passed as parameter rather than as a return value.
24157 (cprop_insn): Use a do while loop rather than a goto. Try each of the
24158 sets returned by find_avail_set, starting with the one whose source is
24159 a constant. Use cprop_reg_p to check if register can be propagated.
24160 (do_local_cprop): Use cprop_reg_p to check if register can be
24161 propagated.
24162 (implicit_set_cond_p): Likewise.
24163
24164 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24165
24166 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24167 (sem_function::equals): IGNORED_NODES parameter is now unused;
24168 update call of equals_private.
24169 (sem_function::equals_private): Do not call equals_wpa; skip
24170 gimple body matching if there is no body.
24171 (sem_function::init): Add logic to hash tthunk info.
24172 (sem_function::parse): Also parse thunks.
24173 * ipa-icf.h (equals_private): Update declaration.
24174
24175 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24176
24177 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24178 asterisk from name so this can be generated directly.
24179 (*altivec_stvx_<mode>_internal): Likewise.
24180 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24181 that this is never called during or after reload/lra.
24182 (rs6000_frame_related): Remove split_reg
24183 argument and logic that references it.
24184 (emit_frame_save): Remove last parameter from call to
24185 rs6000_frame_related.
24186 (rs6000_emit_prologue): Remove last parameter from eight calls to
24187 rs6000_frame_related. Force generation of stvx instruction for
24188 Altivec register saves. Remove split_reg handling, which is no
24189 longer needed.
24190 (rs6000_emit_epilogue): Force generation of lvx instruction for
24191 Altivec register restores.
24192
24193 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24194
24195 * config/rs6000/rs6000.opt (mcrypto): Change option description to
24196 match category changes in ISA 2.07B.
24197
24198 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24199
24200 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24201 iterators.
24202 (cmp_op, cmp_type): New code attributes.
24203 (NEON_VCMP, NEON_VACMP): New int iterators.
24204 (cmp_op_unsp): New int attribute.
24205 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24206 (neon_vceq<mode>): Delete.
24207 (neon_vc<cmp_op><mode>_insn): New pattern.
24208 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24209 (neon_vcgeu<mode>): Delete.
24210 (neon_vcle<mode>): Likewise.
24211 (neon_vclt<mode>: Likewise.
24212 (neon_vcage<mode>): Likewise.
24213 (neon_vcagt<mode>): Likewise.
24214 (neon_vca<cmp_op><mode>): New define_expand.
24215 (neon_vca<cmp_op><mode>_insn): New pattern.
24216 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24217
24218 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24219
24220 * tree.h (attribute_value_equal): Declare.
24221 * tree.c (attribute_value_equal): Export.
24222
24223 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24224
24225 * ipa-icf.c (sem_item::compare_attributes): New function.
24226 (sem_item::compare_referenced_symbol_properties): Compare variable
24227 attributes.
24228 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24229 (sem_function::param_used_p): New function.
24230 (sem_function::equals_wpa): Fix attribute comparsion; match
24231 parameter type codes; do not compare paremter flags when
24232 they are not used; compare edge flags; compare indirect calls.
24233 (sem_item::update_hash_by_addr_refs): Hash reference type.
24234 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24235 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24236 reference use type.
24237 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24238 * ipa-icf.h (compare_attributes, param_used_p): Declare.
24239
24240 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24241
24242 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24243 cleanup.
24244 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24245 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24246 (sem_item::compare_referenced_symbol_properties): New.
24247 (sem_item::hash_referenced_symbol_properties): New.
24248 (sem_item::compare_cgraph_references): Rename to ...
24249 (sem_item::compare_symbol_references): ... this one; use
24250 compare_referenced_symbol_properties.
24251 (sem_function::equals_wpa): Do not compare
24252 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24253 DECL_IS_OPERATOR_NEW; compare pointer sizes.
24254 (sem_item::update_hash_by_addr_refs): Call
24255 hash_referenced_symbol_properties.
24256 (sem_item::update_hash_by_local_refs): Cleanup.
24257 (sem_function::merge): Do not mix up symbol properties.
24258 (sem_variable::equals_wpa): Use compare_symbol_references.
24259 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24260 (sem_item::hash_referenced_symbol_properties): New.
24261 (sem_item::compare_symbol_references): New.
24262 (sem_item::compare_cgraph_references): Remove.
24263
24264 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
24265
24266 PR target/26702
24267 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24268 Emit size of local.
24269
24270 2015-04-23 Nick Clifton <nickc@redhat.com>
24271
24272 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24273 ATTRIBUTE_UNUSED to x parameter.
24274 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24275
24276 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24277
24278 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24279 TARGET_CRYPTO to TARGET_P8_VECTOR>
24280 (crypto_vpermxor_<mode>): Likewise.
24281 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24282 (BU_CRYPTO_3A): Likewise.
24283 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24284 (BU_CRYPTO_OVERLOAD_3A): New #define.
24285 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24286 (VPMSUMH): Likewise.
24287 (VPMSUMW): Likewise.
24288 (VPMSUMD): Likewise.
24289 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24290 (VPERMXOR_V4SI): Likewise.
24291 (VPERMXOR_V8HI): Likewise.
24292 (VPERMXOR_V16QI): Likewise.
24293 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24294 BU_CRYPTO_OVERLOAD_2A.
24295 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24296 BU_CRYPTO_OVERLOAD_3A.
24297 * config/rs6000/rs6000.opt (mcrypto): Change description of
24298 option.
24299
24300 2015-04-23 Richard Biener <rguenther@suse.de>
24301
24302 * passes.def: Remove copy propagation passes run directly after CCP.
24303 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24304 SSA names.
24305 (ccp_visit_phi_node): Rework to handle first executable edge
24306 specially.
24307
24308 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
24309
24310 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24311 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24312 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24313 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24314 (thumb_legimitimize_reload_address): Remove.
24315 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24316 Remove.
24317 (thumb_legimitimize_reload_address): Remove.
24318
24319 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24320
24321 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24322
24323 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24324
24325 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24326 MAX_LDM_STM_OPS.
24327 (store_multiple): Likewise.
24328
24329 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24330
24331 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24332 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24333 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24334 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24335 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24336 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24337 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24338 Specify issue_rate value.
24339 (arm_issue_rate): Look up issue rate from tuning structs. Remove
24340 large switch statement.
24341 (arm_marvell_pj4_tune): New struct.
24342 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24343 struct.
24344
24345 2015-04-23 Richard Biener <rguenther@suse.de>
24346
24347 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24348 (vect_find_last_store_in_slp_instance): Rename to ...
24349 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24350 (vect_analyze_slp_cost_1): Use vector_load for constant defs
24351 and vec_construct for external defs when estimating prologue cost.
24352 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24353 Compute costs here only when vectorizing loops.
24354 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24355 have been determined.
24356 (vect_schedule_slp_instance): Simplify vectorized code placement
24357 and prepare for in-BB external defs.
24358 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24359 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24360 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24361 guard.
24362 (vect_model_load_cost): Likewise.
24363 (vectorizable_store): Instead add it here.
24364 (vectorizable_load): Likewise.
24365 (vect_is_simple_use): Dump def type textually.
24366
24367 2015-04-23 Richard Biener <rguenther@suse.de>
24368
24369 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24370 * cfgloop.c (verify_loop_structure): Verify the root loop node.
24371 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24372 instead of get_eh_region_from_lp_number.
24373 * loop-init.c (fix_loop_structure): If we removed a loop, reset
24374 the SCEV cache.
24375
24376 2015-04-23 Anton Blanchard <anton@samba.org>
24377
24378 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24379 need for -mprofile-kernel to save LR to stack.
24380
24381 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24382
24383 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24384 adjustments.
24385 (insn_is_swappable_p): Return 1 for a convert from double to
24386 single precision when all of its uses are splats of BE element
24387 zero.
24388
24389 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24390
24391 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24392
24393 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24394
24395 PR target/65456
24396 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
24397 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24398 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24399 option.
24400 (rs6000_builtin_mask_for_load): Return 0 for targets with
24401 efficient unaligned VSX accesses so that the vectorizer will use
24402 direct unaligned loads.
24403 (rs6000_builtin_support_vector_misalignment): Always return true
24404 for targets with efficient unaligned VSX accesses.
24405 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24406 stores on targets with efficient unaligned VSX accesses is almost
24407 always the same as the cost of an aligned load or store, so model
24408 it that way.
24409 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24410 unaligned vectors if we have efficient unaligned VSX accesses.
24411 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24412 undocumented option.
24413
24414 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24415
24416 Revert:
24417 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24418
24419 * config.gcc (LIBC_MUSL): New tm_defines macro.
24420 * config/linux.h (OPTION_MUSL): Define.
24421 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24422 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24423 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24424
24425 * config/linux.opt (mmusl): New option.
24426 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24427 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24428
24429 * configure: Regenerate.
24430
24431 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24432
24433 * config.gcc (LIBC_MUSL): New tm_defines macro.
24434 * config/linux.h (OPTION_MUSL): Define.
24435 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24436 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24437 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24438
24439 * config/linux.opt (mmusl): New option.
24440 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24441 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24442
24443 * configure: Regenerate.
24444
24445 2015-04-22 Yury Gribov <y.gribov@samsung.com>
24446
24447 * doc/invoke.texi (-fsanitize-sections): Update description.
24448 * asan.c (set_sanitized_sections): Parse incoming arg.
24449 (section_sanitized_p): Support wildcards.
24450
24451 2015-04-22 Tom de Vries <tom@codesourcery.com>
24452
24453 PR tree-optimization/65823
24454 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24455 equality between ap_copy and ap.
24456
24457 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24458
24459 PR target/47098
24460 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24461
24462 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24463
24464 PR target/47122
24465 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24466
24467 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24468
24469 PR target/55144
24470 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24471 remove already contained t-files.
24472
24473 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24474
24475 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24476 Remove unneeded forward declarations.
24477 (suitable_for_tail_call_opt_p): Commentary typo fix.
24478
24479 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24480
24481 * varasm.c (emit_bss): Remove redundant guard.
24482
24483 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24484
24485 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24486
24487 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24488
24489 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24490
24491 2015-04-22 Hale Wang <hale.wang@arm.com>
24492 Terry Guo <terry.guo@arm.com>
24493
24494 PR rtl-optimization/64818
24495 * combine.c (can_combine_p): Don't combine user-specified
24496 register if it is in an asm input.
24497
24498 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
24499
24500 PR ipa/65076
24501 * passes.def (early_optimizations): Add pass_dse.
24502
24503 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24504
24505 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24506 * reorg.c (redundant_insn): Remove ifdef
24507 INSN_REFERENCES_ARE_DELAYED.
24508 * resource.c (mark_referenced_resources): Likewise.
24509
24510 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24511
24512 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24513 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24514 * resource.c (mark_set_resources): Likewise.
24515
24516 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24517
24518 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24519 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24520 (flow_find_head_matching_sequence): Likewise.
24521 (try_head_merge_bb): Likewise.
24522 * combine.c (can_combine_p): Likewise.
24523 (try_combine): Likewise.
24524 (distribute_notes): Likewise.
24525 * df-problems.c (can_move_insns_across): Likewise.
24526 * final.c (final): Likewise.
24527 * gcse.c (insert_insn_end_basic_block): Likewise.
24528 * ira.c (find_moveable_pseudos): Likewise.
24529 * reorg.c (try_merge_delay_insns): Likewise.
24530 (fill_simple_delay_slots): Likewise.
24531 (fill_slots_from_thread): Likewise.
24532 * sched-deps.c (sched_analyze_2): Likewise.
24533
24534 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24535
24536 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24537 PIC_OFFSET_TABLE_REGNUM.
24538
24539 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24540
24541 * alias.c (init_alias_target): Remove ifdef
24542 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24543 * df-scan.c (df_insn_refs_collect): Likewise.
24544 (df_get_regular_block_artificial_uses): Likewise.
24545 (df_get_eh_block_artificial_uses): Likewise.
24546 (df_get_entry_block_def_set): Likewise.
24547 (df_get_exit_block_use_set): Likewise.
24548 * emit-rtl.c (gen_rtx_REG): Likewise.
24549 * ira.c (ira_setup_eliminable_regset): Likewise.
24550 * reginfo.c (init_reg_sets_1): Likewise.
24551 * regrename.c (rename_chains): Likewise.
24552 * reload1.c (reload): Likewise.
24553 (eliminate_regs_in_insn): Likewise.
24554 * resource.c (mark_referenced_resources): Likewise.
24555 (init_resource_info): Likewise.
24556
24557 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24558
24559 * defaults.h (MASK_RETURN_ADDR): New definition.
24560 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24561 MASK_RETURN_ADDR.
24562
24563 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24564
24565 * defaults.h (RETURN_ADDR_OFFSET): New definition.
24566 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24567 RETURN_ADDR_OFFSET.
24568 (expand_builtin_frob_return_addr): Likewise.
24569
24570 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24571
24572 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24573 (try_redirect_by_replacing_jump): Likewise.
24574 (rtl_tidy_fallthru_edge): Likewise.
24575 * combine.c (insn_a_feeds_b): Likewise.
24576 (find_split_point): Likewise.
24577 (simplify_set): Likewise.
24578 * cprop.c (cprop_jump): Likewise.
24579 * cse.c (cse_extended_basic_block): Likewise.
24580 * df-problems.c (can_move_insns_across): Likewise.
24581 * function.c (emit_use_return_register_into_block): Likewise.
24582 * haifa-sched.c (sched_init): Likewise.
24583 * ira.c (find_moveable_pseudos): Likewise.
24584 * loop-invariant.c (find_invariant_insn): Likewise.
24585 * lra-constraints.c (curr_insn_transform): Likewise.
24586 * postreload.c (reload_combine_recognize_const_pattern):
24587 * Likewise.
24588 * reload.c (find_reloads): Likewise.
24589 * reorg.c (delete_scheduled_jump): Likewise.
24590 (steal_delay_list_from_target): Likewise.
24591 (steal_delay_list_from_fallthrough): Likewise.
24592 (redundant_insn): Likewise.
24593 (fill_simple_delay_slots): Likewise.
24594 (fill_slots_from_thread): Likewise.
24595 (delete_computation): Likewise.
24596 * sched-rgn.c (add_branch_dependences): Likewise.
24597
24598 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24599
24600 * genconfig.c (main): Always define HAVE_cc0.
24601 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24602 HAVE_cc0.
24603 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24604 (flow_find_head_matching_sequence): Likewise.
24605 (try_head_merge_bb): Likewise.
24606 * cfgrtl.c (rtl_merge_blocks): Likewise.
24607 (try_redirect_by_replacing_jump): Likewise.
24608 (rtl_tidy_fallthru_edge): Likewise.
24609 * combine.c (do_SUBST_MODE): Likewise.
24610 (insn_a_feeds_b): Likewise.
24611 (combine_instructions): Likewise.
24612 (can_combine_p): Likewise.
24613 (try_combine): Likewise.
24614 (find_split_point): Likewise.
24615 (subst): Likewise.
24616 (simplify_set): Likewise.
24617 (distribute_notes): Likewise.
24618 * cprop.c (cprop_jump): Likewise.
24619 * cse.c (cse_extended_basic_block): Likewise.
24620 * df-problems.c (can_move_insns_across): Likewise.
24621 * final.c (final): Likewise.
24622 (final_scan_insn): Likewise.
24623 * function.c (emit_use_return_register_into_block): Likewise.
24624 * gcse.c (insert_insn_end_basic_block): Likewise.
24625 * haifa-sched.c (sched_init): Likewise.
24626 * ira.c (find_moveable_pseudos): Likewise.
24627 * loop-invariant.c (find_invariant_insn): Likewise.
24628 * lra-constraints.c (curr_insn_transform): Likewise.
24629 * optabs.c (prepare_cmp_insn): Likewise.
24630 * postreload.c (reload_combine_recognize_const_pattern):
24631 * Likewise.
24632 * reload.c (find_reloads): Likewise.
24633 (find_reloads_address_1): Likewise.
24634 * reorg.c (delete_scheduled_jump): Likewise.
24635 (steal_delay_list_from_target): Likewise.
24636 (steal_delay_list_from_fallthrough): Likewise.
24637 (try_merge_delay_insns): Likewise.
24638 (redundant_insn): Likewise.
24639 (fill_simple_delay_slots): Likewise.
24640 (fill_slots_from_thread): Likewise.
24641 (delete_computation): Likewise.
24642 (relax_delay_slots): Likewise.
24643 * sched-deps.c (sched_analyze_2): Likewise.
24644 * sched-rgn.c (add_branch_dependences): Likewise.
24645
24646 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24647
24648 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24649 that is trivially ded on non cc0 targets.
24650 (simplify_set): Likewise.
24651 (mark_used_regs_combine): Likewise.
24652 * cse.c (new_basic_block): Likewise.
24653 (fold_rtx): Likewise.
24654 (cse_insn): Likewise.
24655 (cse_extended_basic_block): Likewise.
24656 (set_live_p): Likewise.
24657 * rtlanal.c (canonicalize_condition): Likewise.
24658 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24659
24660 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24661
24662 * conditions.h: Define macros even if HAVE_cc0 is undefined.
24663 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24664 * final.c: Likewise.
24665 * jump.c: Likewise.
24666 * recog.c: Likewise.
24667 * recog.h: Declare functions even when HAVE_cc0 is undefined.
24668 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24669
24670 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24671
24672 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24673 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24674 * builtins.c (expand_builtin): Remove check if
24675 EH_RETURN_DATA_REGNO is defined.
24676 * df-scan.c (df_bb_refs_collect): Likewise.
24677 (df_get_exit_block_use_set): Likewise.
24678 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24679 * ira-lives.c (process_bb_node_lives): Likewise.
24680 * lra-lives.c (process_bb_lives): Likewise.
24681
24682 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24683
24684 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24685 FIRST_PSEUDO_REG): New.
24686 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24687 (ARG_POINTER_REGNUM): Define to ARGP_REG.
24688 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24689 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24690 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24691 (FIRST_INT_REG): New.
24692 (LAST_INT_REG): New.
24693 (FIRST_*_REG): Define using *_REG.
24694 (LAST_*_REG): Ditto.
24695 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24696 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24697 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24698
24699 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24700
24701 * expmed.c: (synth_mult): Only assume overlapping
24702 shift with previous steps in alg_sub_t_m2 case.
24703
24704 2015-04-21 Richard Biener <rguenther@suse.de>
24705
24706 PR tree-optimization/65650
24707 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24708 transitions involving copies.
24709 (set_lattice_value): Adjust for copy lattice state.
24710 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24711 if that doesn't dominate the merge point.
24712 (bit_value_unop): Adjust what we treat as varying mask.
24713 (bit_value_binop): Likewise.
24714 (bit_value_assume_aligned): Likewise.
24715 (evaluate_stmt): When we simplified to a SSA name record a copy
24716 instead of dropping to varying.
24717 (visit_assignment): Simplify.
24718
24719 * gimple-match.h (gimple_simplify): Add another callback.
24720 * gimple-fold.c (fold_stmt_1): Adjust caller.
24721 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24722 for the 2nd callback.
24723 * gimple-match-head.c (gimple_simplify): Add a callback that is
24724 used to valueize the stmt operands and use it that way.
24725
24726 2015-04-21 Richard Biener <rguenther@suse.de>
24727
24728 PR tree-optimization/65788
24729 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24730
24731 2015-04-21 Richard Biener <rguenther@suse.de>
24732
24733 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24734 vec_construct cost by vec_stmt_cost.
24735
24736 2015-04-21 Richard Biener <rguenther@suse.de>
24737
24738 * cfghooks.h (create_basic_block): Replace with two overloads
24739 for RTL and GIMPLE.
24740 (split_block): Likewise.
24741 * cfghooks.c (split_block): Rename to ...
24742 (split_block_1): ... this.
24743 (split_block): Add two type-safe overloads for RTL and GIMPLE.
24744 (split_block_after_labels): Call split_block_1.
24745 (create_basic_block): Rename to ...
24746 (create_basic_block_1): ... this.
24747 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
24748 (create_empty_bb): Call create_basic_block_1.
24749 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
24750 split_block_after_labels.
24751 * omp-low.c (expand_parallel_call): Likewise.
24752 (expand_omp_target): Likewise.
24753 (simd_clone_adjust): Likewise.
24754 * tree-chkp.c (chkp_get_entry_block): Likewise.
24755 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
24756 create_basic_block overload.
24757 (cgraph_node::expand_thunk): Likewise.
24758 * tree-cfg.c (make_blocks): Likewise.
24759 (handle_abnormal_edges): Likewise.
24760 * tree-inline.c (copy_bb): Likewise.
24761
24762 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24763
24764 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
24765 New pattern.
24766 (*xor_one_cmplsidi3_ze): Likewise.
24767
24768 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
24769
24770 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
24771 use df_remove_problem rather than manually removing problems, leaving
24772 holes in df->problems_in_order[].
24773
24774 2015-04-21 Tom de Vries <tom@codesourcery.com>
24775
24776 PR tree-optimization/65802
24777 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
24778
24779 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24780
24781 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
24782 Increase to 128.
24783 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
24784 at '.'. Assert that there's enough space for everything.
24785
24786 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24787
24788 PR tree-optimization/64950
24789 Revert:
24790 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
24791
24792 PR target/41089
24793 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
24794 as volatile.
24795
24796 2015-04-20 Shiva Chen <shiva0217@gmail.com>
24797
24798 PR rtl-optimization/64916
24799 * cfgcleanup.c (values_equal_p): New function.
24800 (can_replace_by): Use it.
24801
24802 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
24803
24804 PR c++/65801
24805 * doc/invoke.texi ([-Wnarrowing]): Update.
24806
24807 2015-04-20 Jeff Law <law@redhat.com>
24808
24809 PR tree-optimization/65658
24810 * tree-ssa-threadupdate.c (redirection_block_p): Remove
24811 redundant test for GIMPLE_ASSIGN in last change.
24812
24813 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
24814
24815 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
24816 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
24817 (legitimize_tls_address): Ditto.
24818 (ix86_expand_move): Ditto.
24819 (ix86_expand_binary_operator): Remove reload_in_progress checks.
24820 (ix86_expand_unary_operator): Ditto.
24821 * config/i386/predicates.md (index_register_operand): Ditto.
24822
24823 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
24824
24825 * reorg.c (try_merge_delay_insns): Improve correctness checking
24826 for targets with multiple delay slots.
24827
24828 2015-04-20 Jeff Law <law@redhat.com>
24829
24830 PR tree-optimization/65658
24831 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
24832 statements too.
24833
24834 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24835
24836 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
24837 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
24838 Delete.
24839
24840 2015-04-20 Jakub Jelinek <jakub@redhat.com>
24841
24842 PR debug/65807
24843 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
24844
24845 2015-04-20 Richard Biener <rguenther@suse.de>
24846
24847 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
24848 * gimple-fold.c (gimple_build_valueize): New function.
24849 (gimple_build): Always use gimple_build_valueize as valueize hook.
24850
24851 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
24852
24853 PR target/64134
24854 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
24855 and overwrite variable parts if <= 1/2 the elements are variable.
24856
24857 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
24858
24859 PR rtl-optimization/65805
24860 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
24861 Don't use difference of offset and previous offset if
24862 update_sp_offset is non-zero.
24863 (eliminate_regs_in_insn): Ditto.
24864 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
24865 lra_eliminate_regs_1 call.
24866 * lra-constraints.c (get_equiv_with_elimination): Ditto.
24867
24868 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
24869
24870 * hash-table.h: Remove version of hash_table that stored value_type *.
24871 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
24872 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
24873 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
24874 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
24875 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
24876 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
24877 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
24878 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
24879 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
24880 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
24881 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
24882 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
24883 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
24884 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
24885 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
24886 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
24887
24888 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24889 Jakub Jelinek <jakub@redhat.com>
24890
24891 PR target/65787
24892 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
24893 subsequent SH_NONE operand does not overwrite an existing *special
24894 value.
24895 (adjust_extract): Handle case where a vec_extract operation is
24896 wrapped in a PARALLEL.
24897
24898 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24899
24900 PR target/65780
24901 * config/i386/i386.c (ix86_binds_local_p): Define only if
24902 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
24903
24904 2015-04-17 Jeff Law <law@redhat.com>
24905
24906 PR tree-optimization/47679
24907 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
24908 * tree-ssa-scopedtables.c: New file.
24909 * tree-ssa-scopedtables.h: New file.
24910 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
24911 (const_and_copies): Change name/type.
24912 (record_const_or_copy): Move into tree-ssa-scopedtables.c
24913 (record_const_or_copy_1): Similarly.
24914 (restore_vars_to_original_value): Similarly.
24915 (pass_dominator::execute): Create and destroy const_and_copies table.
24916 (thread_across_edge): Update passing of const_and_copies.
24917 (record_temporary_equivalence): Use method calls rather than
24918 manipulating const_and_copies directly.
24919 (record_equality, cprop_into_successor_phis): Similarly.
24920 (dom_opt_dom_walker::before_dom_children): Similarly.
24921 (dom_opt_dom_walker::after_dom_children): Similarly.
24922 (eliminate_redundant_computations): Similarly.
24923 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
24924 (record_temporary_equivalence): Likewise.
24925 (invalidate_equivalences): Likewise.
24926 (record_temporary_equivalences_from_phis): Update due to type
24927 change of const_and_copies. Use method calls rather than
24928 manipulating the stack directly.
24929 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
24930 (thread_through_normal_block, thread_across_edge): Likewise.
24931 (thread_across_edge): Likewise.
24932 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
24933 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
24934 of equiv_stack.
24935 (identify_jump_threads): Update due to type change of equiv_stack.
24936 (finalize_jump_threads): Delete the equiv_stack when complete.
24937
24938 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
24939
24940 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24941 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
24942 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
24943
24944 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
24945
24946 PR target/65535
24947 * config.gcc: Exit with a comment when we do not have a major version
24948 number for the FreeBSD target.
24949
24950 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24951
24952 PR target/65689
24953 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
24954 maybe_allows_mem bitfields.
24955 (maybe_allows_none_start, maybe_allows_none_end,
24956 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
24957 maybe_allows_mem_end): New variables.
24958 (compute_maybe_allows): New function.
24959 (add_constraint): Use it to initialize maybe_allows_reg and
24960 maybe_allows_mem fields.
24961 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
24962 is_address constraints such that those that allow neither mem nor
24963 reg come first, then those that only allow reg but not mem, then
24964 those that only allow mem but not reg, then the rest.
24965 (write_allows_reg_mem_function): New function.
24966 (write_tm_preds_h): Call it.
24967 * stmt.c (parse_output_constraint, parse_input_constraint): Use
24968 the generated insn_extra_constraint_allows_reg_mem function
24969 instead of always setting *allows_reg = true; *allows_mem = true;
24970 for unknown extra constraints.
24971
24972 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
24973
24974 PR target/65780
24975 * output.h (default_binds_local_p_3): New.
24976 * varasm.c (default_binds_local_p_3): Make it public. Take an
24977 argument to indicate if common symbol may be local. If common
24978 symbol may be local, treat non-external variable as defined
24979 locally.
24980 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
24981 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
24982 * config/i386/i386.c (ix86_binds_local_p): New.
24983 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
24984 ix86_binds_local_p.
24985
24986 2015-04-17 Jakub Jelinek <jakub@redhat.com>
24987
24988 PR debug/65771
24989 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
24990 trying mem_loc_descriptor on XEXP (rtl, 0).
24991
24992 2015-04-17 Martin Liska <mliska@suse.cz>
24993
24994 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24995 Release symbol_compare_collection.
24996 * ipa-reference.c: Add TODO that a vector should be released.
24997
24998 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
24999
25000 PR target/65296
25001 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25002 to new AVR-LibC file layout (bug #44574).
25003 (*avrlibc_devicelib): Same.
25004 * config/avr/avr-mcus.def: Adjust comments.
25005 * config/avr/avr.opt (nodevicelib): Adjust help.
25006
25007 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
25008
25009 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25010
25011 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
25012
25013 PR c++/64527
25014 * gimplify.c (gimplify_init_constructor): Always emit a
25015 side-effecting constructor.
25016
25017 2015-04-17 Tom de Vries <tom@codesourcery.com>
25018
25019 PR tree-optimization/64950
25020 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25021 in cfun->curr_properties.
25022 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25023 if we generate an IFN_VA_ARG.
25024 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25025 function if PROP_gimple_lva is not set in src function.
25026
25027 2015-04-17 Tom de Vries <tom@codesourcery.com>
25028 Michael Matz <matz@suse.de>
25029
25030 PR tree-optimization/64950
25031 * gimple-iterator.c (update_modified_stmts): Remove static.
25032 * gimple-iterator.h (update_modified_stmts): Declare.
25033 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25034 (gimplify_va_arg_internal): New function.
25035 (gimplify_va_arg_expr): Use IFN_VA_ARG.
25036 * gimplify.h (gimplify_va_arg_internal): Declare.
25037 * internal-fn.c (expand_VA_ARG): New unreachable function.
25038 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25039 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25040 (expand_ifn_va_arg): New function.
25041 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25042 (pass_stdarg::execute): Call expand_ifn_va_arg.
25043 (pass_data_lower_vaarg): New pass_data.
25044 (pass_lower_vaarg): New gimple_opt_pass.
25045 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25046 (make_pass_lower_vaarg): New function.
25047 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25048 properties_required field.
25049 * passes.def (all_passes): Add pass_lower_vaarg.
25050 * tree-pass.h (PROP_gimple_lva): Add define.
25051 (make_pass_lower_vaarg): Declare.
25052
25053 2015-04-17 Tom de Vries <tom@codesourcery.com>
25054
25055 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25056 * calls.c (call_expr_flags): Same.
25057
25058 2015-04-17 Tom de Vries <tom@codesourcery.com>
25059
25060 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25061 (pass_stdarg::execute): ... here.
25062
25063 2015-04-17 Tom de Vries <tom@codesourcery.com>
25064 Michael Matz <matz@suse.de>
25065
25066 * tree-cfg.c (make_blocks_1): Factor out of ...
25067 (make_blocks): ... here.
25068 (make_edges_bb): Factor out of ...
25069 (make_edges): ... here.
25070 (gimple_find_sub_bbs): New function.
25071 * tree-cfg.h (gimple_find_sub_bbs): Declare.
25072
25073 2015-04-17 Tom de Vries <tom@codesourcery.com>
25074
25075 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25076
25077 2015-04-17 Yury Gribov <y.gribov@samsung.com>
25078
25079 * asan.c (set_sanitized_sections): New function.
25080 (section_sanitized_p): Ditto.
25081 (asan_protect_global): Optionally sanitize user-defined
25082 sections.
25083 * asan.h (set_sanitized_sections): Declare new function.
25084 * common.opt (fsanitize-sections): New option.
25085 * doc/invoke.texi (-fsanitize-sections): Document new option.
25086 * opts-global.c (handle_common_deferred_options): Handle new
25087 option.
25088
25089 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25090
25091 PR debug/65771
25092 * dwarf2out.c (loc_list_from_tree): Return NULL
25093 for DEBUG_EXPR_DECL.
25094
25095 2015-04-17 Christian Bruel <christian.bruel@st.com>
25096
25097 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25098 same attributes.
25099
25100 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25101
25102 * ira-color.c (setup_left_conflict_sizes_p): Do not process
25103 node itself when computing left conflict subnode size.
25104
25105 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25106
25107 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25108 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25109 *fop_<mode>_1_sse using enabled attribute. Use
25110 register_mixssei387nonimm_operand operand 1 predicate. Change
25111 alternative 3 constraints from "x" to "v".
25112
25113 2015-04-16 Richard Biener <rguenther@suse.de>
25114
25115 PR tree-optimization/65774
25116 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25117 bit-value tracking on.
25118
25119 2015-04-16 Richard Biener <rguenther@suse.de>
25120
25121 PR tree-optimization/64277
25122 * tree-vrp.c (check_array_ref): Fix anti-range handling,
25123 simplify upper bound handling.
25124 (search_for_addr_array): Simplify.
25125 (check_array_bounds): Handle ADDR_EXPRs here.
25126 (check_all_array_refs): Simplify.
25127
25128 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25129
25130 * config/i386/i386.c (print_reg): Rewrite function.
25131
25132 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25133
25134 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25135 Invert the condition.
25136
25137 2015-04-16 Renlin Li <renlin.li@arm.com>
25138
25139 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25140 simplifications for UNSIGNED_FLOAT.
25141
25142 2015-04-16 Nick Clifton <nickc@redhat.com>
25143
25144 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25145 MUL_UNINIT.
25146 (enum rl78_cpu_type): New.
25147 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25148 (umulhi3_shift_virt): Remove m constraint from operand 1.
25149 (umulqihi3_virt): Likewise.
25150 * config/rl78/rl78.c (rl78_option_override): Add code to process
25151 -mcpu and -mmul options.
25152 (rl78_alloc_physical_registers): Add code to handle divhi and
25153 divsi valloc attributes.
25154 (set_origin): Likewise.
25155 * config/rl78/rl78.h (RL78_MUL_G14): Define.
25156 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25157 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25158 __RL78_Gxx__.
25159 (ASM_SPEC): Pass -mcpu on to assembler.
25160 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25161 (mulqi3_rl78): Likewise.
25162 (mulhi3_g13): Likewise.
25163 (mulhi3): Generate the G13 or G14 versions of the insn directly.
25164 (mulsi3): Likewise.
25165 (mulhi3_g14): Add clobbers of AX and BC.
25166 (mulsi3_g14): Likewise.
25167 (mulsi3_g13): Likewise.
25168 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25169 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25170 * config/rl78/rl78.opt (mmul): Initialise value to
25171 RL78_MUL_UNINIT.
25172 (mcpu): New option.
25173 (m13, m14, mrl78): New option aliases.
25174 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25175 (MULTILIB_DIRNAMES): Add g13 and g14.
25176 * doc/invoke.texi: Document -mcpu and -mmul options.
25177
25178 2015-04-16 Richard Biener <rguenther@suse.de>
25179
25180 * tree-ssa-ccp.c (likely_value): See if we have operands that
25181 are marked as never simulate again and return CONSTANT in this
25182 case.
25183 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25184 not have any operands that will be simulated again as
25185 not being simulated again.
25186
25187 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
25188
25189 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25190 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25191 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25192 attribute.
25193 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25194 enabled attribute.
25195 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25196 *float<SWI48:mode><MODEF:mode>2_sse.
25197 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25198 enabled attribute.
25199 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25200 enabled attribute.
25201
25202 2015-04-15 Tom de Vries <tom@codesourcery.com>
25203
25204 PR other/65487
25205 * function.c (push_dummy_function): New function.
25206 (init_dummy_function_start): Use push_dummy_function.
25207 (pop_dummy_function): New function. Factored out of ...
25208 (expand_dummy_function_end): ... here.
25209 * function.h (push_dummy_function, pop_dummy_function): Declare.
25210 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25211 pop_dummy_function.
25212 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25213
25214 2015-04-15 Jeff Law <law@redhat.com>
25215
25216 PR tree-optimization/47679
25217 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25218 need for forward declaration in upcoming changes.
25219 (record_conditions, record_edge_info): Likewise.
25220
25221 PR rtl-optimization/42522
25222 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25223 SIGN_EXTRACT as a whole object rather than simplifying
25224 its operand.
25225
25226 2015-04-15 Jakub Jelinek <jakub@redhat.com>
25227
25228 PR ipa/65765
25229 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25230 and GIMPLE_PREDICT use break instead of return true. For
25231 GIMPLE_EH_DISPATCH, compare dispatch region.
25232
25233 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
25234
25235 * doc/extend.texi (__sync Builtins): Simplify some text. Update
25236 details about the implementation. Make clear preference for
25237 __atomic builtins. Reduce possibility of future change.
25238
25239 2015-04-15 Nick Clifton <nickc@redhat.com>
25240
25241 * config/rx/rx.opt (mallow-string-insns): New option.
25242 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25243 builtin if string instructions are denied.
25244 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25245 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25246 appropriate.
25247 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25248 * config/rx/rx.md (movstr): Enable pattern only if string
25249 instructions are allowed.
25250 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25251 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25252 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25253 (MULTILIB_DIRNAMES): Add no-strings.
25254 * doc/invoke.texi: Document -mno-allow-string-insns.
25255
25256 2015-04-15 Alan Modra <amodra@gmail.com>
25257
25258 PR target/65408
25259 PR target/58744
25260 PR middle-end/36043
25261 * calls.c (load_register_parameters): Don't load past end of
25262 mem unless suitably aligned.
25263
25264 2015-04-15 Nick Clifton <nickc@redhat.com>
25265
25266 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25267 decrement instruction as being frame related.
25268 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25269 based addresses.
25270 If zero extending a function address enclose the operation in
25271 %code(...).
25272 (rl78_preferred_reload_class): New function.
25273 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25274 * config/rl78/rl78.md: Remove useless constraints in expanders.
25275 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25276 (mulhi3_rl78): Likewise.
25277 (mulhi3_g13): Likewise.
25278 (mulsi3_rl78): Likewise.
25279 (es_addr): Move to before the multiply patterns.
25280
25281 2015-04-15 Alan Modra <amodra@gmail.com>
25282
25283 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25284 and sequence_stack. Add seq.
25285 (seq_stack): Delete.
25286 * function.c (prepare_function_start): Don't access x_last_insn.
25287 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25288 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25289 * emit_rtl.c (start_sequence, push_topmost_sequence,
25290 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25291 sequence accessors.
25292 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25293 remove_insn): Likewise. Simplify.
25294 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25295 and pop_topmost_sequence.
25296 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
25297 debug insns.
25298 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25299
25300 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
25301
25302 PR target/65729
25303 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25304 the assertiion.
25305
25306 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25307
25308 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25309 (LEGACY_INT_REGNO_P): Ditto.
25310 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25311 (ANY_MASK_REG_P): Remove.
25312 (BND_REG_P): Rename from ANY_BND_REG_P.
25313 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25314 legacy integer registers. Do not handle MMX_REG_P in a special way.
25315 Merge 64byte and 32byte SSE handling.
25316
25317 2015-04-14 Nick Clifton <nickc@redhat.com>
25318
25319 * expr.c (expand_assignment): Force an address offset computation
25320 into a register before changing its mode.
25321 (expand_expr_real_1): Likewise.
25322
25323 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
25324
25325 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25326 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25327 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25328 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25329 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25330 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25331 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25332 and __aarch64_vget_lane_any.
25333
25334 2015-04-14 Jakub Jelinek <jakub@redhat.com>
25335
25336 PR rtl-optimization/65761
25337 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25338 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25339
25340 2015-04-14 Richard Biener <rguenther@suse.de>
25341
25342 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25343 (graphite_can_represent_scev): Use POINTER_TYPE_P.
25344
25345 2015-04-14 Richard Biener <rguenther@suse.de>
25346
25347 PR tree-optimization/65758
25348 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25349 against -1.
25350 (ccp_lattice_meet): Likewise.
25351 (bit_value_unop): Likewise.
25352 (bit_value_binop): Likewise.
25353 (bit_value_assume_aligned): Likewise.
25354
25355 2015-04-14 Christian Bruel <christian.bruel@st.com>
25356
25357 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25358 function.
25359
25360 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
25361
25362 PR tree-optimization/63387
25363 * match.pd ((x unord x) | (y unord y) -> (x unord y),
25364 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25365
25366 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25367
25368 * config/i386/predicates.md (any_QIreg_operand): Rename from
25369 q_regs_operand. Do not process subregs.
25370 (QIreg_operand): Use QI_REGNO_P predicate.
25371 (ext_QIreg_operand): Ditto.
25372 (ext_register_operand): Ditto.
25373 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25374 (AND splitters): Ditto.
25375 (AND with -65536 splitter): Add SWI48 mode for operand 0.
25376 (AND with -256 splitter): Use any_QIreg_operand predicate and
25377 SWI248 mode for operand 0.
25378 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25379 mode for operand 0.
25380 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25381
25382 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
25383
25384 * doc/plugins.texi: Rewrite first introductory paragraph.
25385
25386 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25387
25388 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25389 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25390
25391 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25392
25393 * ipa-profie.c (ipa_profile): Check number of parameters
25394 and possible polymorphic call targets before
25395 devirtualizing.
25396
25397 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
25398
25399 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25400 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25401
25402 2015-04-13 Richard Biener <rguenther@suse.de>
25403
25404 PR tree-optimization/65204
25405 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25406 takens for bit-CCP.
25407
25408 2015-04-13 Richard Biener <rguenther@suse.de>
25409
25410 PR target/65660
25411 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25412 and cond_not_taken_branch_cost to 4 and 2.
25413 (bdver2_cost): Likewise.
25414 (bdver3_cost): Likewise.
25415 (bdver4_cost): Likewise.
25416
25417 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25418
25419 * hash-table.h (hash_table constructor): Add mem stats.
25420 (alloc_entries): Likewise.
25421
25422 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25423
25424 * ipa-cp.c (ipcp_driver): Relase prev_edge.
25425 * passes.c (execute_one_pass): Only add transform if pass has one.
25426
25427 2015-04-12 Joseph Myers <joseph@codesourcery.com>
25428
25429 * config/i386/i386.c (ix86_option_override_internal): Don't set
25430 -fprefetch-loop-arrays if optimizing for size.
25431
25432 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25433 Gerald Pfeifer <gerald@pfeifer.com>
25434
25435 * doc/contrib.texi (Contributors): Add Martin Jambor and
25436 Michael Matz.
25437
25438 2015-04-12 Jakub Jelinek <jakub@redhat.com>
25439
25440 * BASE-VER: Set to 6.0.0.
25441
25442 PR tree-optimization/65747
25443 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25444 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25445
25446 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25447
25448 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25449 sentence. Improve grammar.
25450
25451 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25452
25453 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25454
25455 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25456
25457 PR ipa/65743
25458 * ipa-inline-transform.c (speculation_removed): Remove static var.
25459 (check_speculations): New function.
25460 (clone_inlined_nodes): Do not check spculations.
25461 (inline_call): Call check_speculations.
25462 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25463 consider non-invariants.
25464
25465 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25466 Martin Liska <mliska@suse.cz>
25467
25468 PR ipa/65722
25469 * ipa-icf.c (sem_item::compare_cgraph_references): function and
25470 variable can not match.
25471 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25472 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25473
25474 2015-04-11 Jakub Jelinek <jakub@redhat.com>
25475
25476 PR tree-optimization/65735
25477 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25478 Remove visited_phis argument, add visited_bbs, avoid recursing into the
25479 same bb rather than just into the same phi node.
25480 (thread_through_normal_block): Adjust caller.
25481
25482 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25483
25484 * doc/contrib.texi (Contributors): Add Ira Rosen.
25485
25486 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
25487
25488 * gcov.c (find_source): Fix miswording in error message.
25489 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25490 (ix86_expand_sse_comi_round): Fix typo in error message.
25491
25492 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25493
25494 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25495
25496 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
25497
25498 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25499
25500 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25501
25502 PR target/65710
25503 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25504 Print bad_spills_num and insn_pseudos_num.
25505
25506 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25507
25508 PR target/65694
25509 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25510 when creating +1 values for SImode.
25511
25512 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25513
25514 PR target/65729
25515 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25516 assert.
25517
25518 2015-04-10 Jakub Jelinek <jakub@redhat.com>
25519 Iain Sandoe <iain@codesourcery.com>
25520
25521 PR target/65351
25522 * configure: Regenerate.
25523
25524 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25525
25526 PR target/65671
25527 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25528
25529 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
25530
25531 * doc/contrib.texi (Contributors): Add John Marino.
25532
25533 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25534
25535 PR tree-optimization/65709
25536 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25537 TREE_TYPE (TREE_TYPE (t)).
25538
25539 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
25540
25541 PR target/65710
25542 * lra-int.h (lra_bad_spill_regno_start): New.
25543 * lra.c (lra_bad_spill_regno_start): New.
25544 (lra): Set up lra_bad_spill_regno_start. Set up
25545 lra_constraint_new_regno_start unconditionally.
25546 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25547 spill preferences.
25548
25549 2015-04-09 Marek Polacek <polacek@redhat.com>
25550 Jakub Jelinek <jakub@redhat.com>
25551
25552 PR middle-end/65554
25553 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25554 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25555 of STRIP_NOPS.
25556
25557 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
25558
25559 PR rtl-optimization/65693
25560 * combine.c (is_parallel_of_n_reg_sets): Move outside of
25561 #ifndef HAVE_cc0.
25562
25563 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
25564
25565 PR target/65296
25566 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25567 device specs file if "device-specs%s" didn't resolve to a path.
25568
25569 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25570
25571 PR target/65676
25572 * config/i386/i386.c (fixup_modeless_constant): New.
25573 (ix86_expand_args_builtin): Fixup modeless constant operand.
25574 (ix86_expand_round_builtin): Ditto.
25575 (ix86_expand_special_args_builtin): Ditto.
25576 (ix86_expand_builtin): Ditto.
25577
25578 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25579
25580 PR target/65693
25581 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25582 any pow2 integer in between 2 and 0x80000000U inclusive.
25583
25584 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
25585
25586 PR rtl-optimization/65693
25587 * combine.c (is_parallel_of_n_reg_sets): Change first argument
25588 from an rtx_insn * to an rtx.
25589 (try_combine): Adjust both callers. Use it once more.
25590
25591 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25592
25593 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25594 (chkp_make_static_const_bounds): Search existing
25595 symbol by assembler name. Use make_decl_one_only.
25596 (chkp_get_zero_bounds_var): Remove node search which
25597 is now performed in chkp_make_static_const_bounds.
25598 (chkp_get_none_bounds_var): Likewise.
25599
25600 2015-04-08 Michael Witten <mfwitten@gmail.com>
25601
25602 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25603 to an example.
25604
25605 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25606
25607 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25608
25609 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25610
25611 * doc/extend.texi (__sync Builtins): Fix grammar.
25612
25613 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25614
25615 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25616
25617 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25618
25619 * varasm.c (emit_local): Move definition of align.
25620
25621 2015-04-08 Julian Brown <julian@codesourcery.com>
25622
25623 * config/nvptx/mkoffload.c (process): Support variable mapping.
25624
25625 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
25626
25627 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25628 alpha_links **.
25629 (alpha_write_one_linkage): Correct typo.
25630
25631 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25632
25633 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25634
25635 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25636
25637 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25638
25639 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25640
25641 * tree-chkp.h (chkp_insert_retbnd_call): New.
25642 * tree-chkp.c (chkp_insert_retbnd_call): New.
25643 * ipa-split.c (insert_bndret_call_after): Remove.
25644 (split_function): Use chkp_insert_retbnd_call.
25645 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25646 bounds for instrumented functions.
25647
25648 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
25649
25650 PR ipa/65540
25651 * calls.c (initialize_argument_information): When producing tail
25652 call also turn SSA_NAMES passed by references to original PARM_DECLs
25653
25654 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
25655
25656 PR target/65648
25657 * lra-remat.c (do_remat): Process input and non-input insn
25658 registers separately.
25659
25660 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25661
25662 PR debug/65678
25663 * valtrack.c (debug_lowpart_subreg): New function.
25664 (dead_debug_insert_temp): Use it.
25665
25666 PR middle-end/65680
25667 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25668 into signed HOST_WIDE_INT the same as negative bit_offset.
25669
25670 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
25671
25672 * ipa-comdats.c (ipa_comdats): Visit all thunks
25673 to set proper comdat group.
25674
25675 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25676
25677 PR target/65489
25678 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25679 on constants for NEON VSTRUCT modes.
25680
25681 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25682 Iain Sandoe <iain@codesourcery.com>
25683
25684 PR target/65351
25685 * configure: Regenerate.
25686
25687 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25688
25689 PR target/65614
25690 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25691 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25692 that LFD is used to load double constants instead of LFS. Add
25693 defaults for all costs structures. Add comments for missing
25694 initialization fields.
25695 (size32_cost): Likewise.
25696 (size64_cost): Likewise.
25697 (rs64a_cost): Likewise.
25698 (mpccore_cost): Likewise.
25699 (ppc403_cost): Likewise.
25700 (ppc405_cost): Likewise.
25701 (ppc440_cost): Likewise.
25702 (ppc476_cost): Likewise.
25703 (ppc601_cost): Likewise.
25704 (ppc603_cost): Likewise.
25705 (ppc604_cost): Likewise.
25706 (ppc604e_cost): Likewise.
25707 (ppc620_cost): Likewise.
25708 (ppc630_cost): Likewise.
25709 (ppccell_cost): Likewise.
25710 (ppc750_cost): Likewise.
25711 (ppc7450_cost): Likewise.
25712 (ppc8540_cost): Likewise.
25713 (ppce300c2c3_cost): Likewise.
25714 (ppce500mc_cost): Likewise.
25715 (ppce500mc64_cost): Likewise.
25716 (ppce5500_cost): Likewise.
25717 (ppce6500_cost): Likewise.
25718 (titan_cost): Likewise.
25719 (power4_cost): Likewise.
25720 (power6_cost): Likewise.
25721 (power7_cost): Likewise.
25722 (power8_cost): Likewise.
25723 (ppca2_cost): Likewise.
25724 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25725
25726 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25727 instead of XXLOR to copy SFmode to clear out dirty bits created
25728 when SFmode denormals are generated.
25729 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25730 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25731
25732 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25733
25734 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25735 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25736 * config/aarch64/aarch64-tune.md: Regenerate.
25737
25738 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25739
25740 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
25741 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
25742 * config/arm/arm-cores.def (exynos-m1): New core.
25743 * config/arm/arm-tune.md: Regenerate.
25744 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
25745 * config/arm/bpabi.h: Likewise.
25746
25747 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25748
25749 * ipa-cp (set_single_call_flag): Remove too
25750 restrictive assert.
25751
25752 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
25753
25754 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
25755 GOMP_offload_unregister from the destructor.
25756
25757 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
25758
25759 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
25760 flags for instrumentation thunk.
25761 (chkp_produce_thunks): Likewise.
25762
25763 2015-04-05 Martin Liska <mliska@suse.cz>
25764
25765 PR ipa/65665
25766 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
25767 has computed data structure.
25768 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25769
25770 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
25771
25772 * invoke.texi (inline-unit-growth): Increase growth to 20%
25773 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
25774
25775 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
25776
25777 PR target/65647
25778 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
25779 value checking.
25780 (lra_rematerialization_iter): New.
25781 * lra.c (lra): Initialize lra_rematerialization_iter.
25782 Stop updating lra_constraint_new_regno_start after switching of
25783 inheritance and rematerialization.
25784 * lra-remat.c (lra_rematerialization_iter): New.
25785 (lra_remat): Add printing pass iteration. Do rematerialization
25786 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
25787
25788 2015-04-04 Richard Biener <rguenther@suse.de>
25789
25790 PR tree-optimization/64909
25791 PR tree-optimization/65660
25792 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
25793 to take a cost vector for scalar iteration cost.
25794 (vect_get_single_scalar_iteration_cost): Likewise.
25795 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
25796 Compute the scalar iteration cost into a cost vector.
25797 (vect_get_known_peeling_cost): Use the scalar cost vector to
25798 account for the cost of the peeled iterations.
25799 (vect_estimate_min_profitable_iters): Likewise.
25800 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25801 Likewise.
25802
25803 2015-04-04 Alan Modra <amodra@gmail.com>
25804
25805 PR target/65576
25806 PR target/65240
25807 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
25808 0.0 constant unless TARGET_VSX.
25809 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
25810 alternative.
25811
25812 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25813
25814 PR ipa/65654
25815 * ipa-inline-transform.c (inline_call): Skip sanity check to work
25816 around the ICE
25817
25818 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25819
25820 PR ipa/65655
25821 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
25822 speculative indirect edges to avoid ordering issue.
25823
25824 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
25825
25826 PR ipa/65076
25827 * ipa-inline.c (edge_badness): Add combined size to the denominator.
25828
25829 2015-04-03 Jakub Jelinek <jakub@redhat.com>
25830
25831 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
25832 TYPE_ARTIFICIAL on the .omp_data* types.
25833
25834 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25835
25836 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
25837 instrumentation thunks.
25838
25839 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25840
25841 * config/i386/i386.c (ix86_expand_call): Avoid nested
25842 PARALLEL in returned call value.
25843
25844 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25845
25846 * lto-cgraph.c (input_cgraph_1): Always link instrumented
25847 assembler name with original one.
25848
25849 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25850
25851 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
25852
25853 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25854
25855 Revert parts of r216820.
25856 * config/i386/i386.md (movqi_internal): Correct type calculation
25857 for alternatives 3 and 5.
25858
25859 2015-04-02 Jakub Jelinek <jakub@redhat.com>
25860
25861 PR preprocessor/61977
25862 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
25863 predefine __vector/__bool/__pixel macros nor context sensitive
25864 macros for CLK_ASM.
25865 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
25866
25867 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
25868
25869 * config/pa/pa.c (pa_output_move_double): Directly handle register
25870 indexed memory operand. Simplify handling of scaled register indexed
25871 memory operands.
25872
25873 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
25874
25875 PR driver/65444
25876 * config/i386/linux-common.h (MPX_SPEC): New.
25877 (CHKP_SPEC): Add MPX_SPEC.
25878 * doc/invoke.texi (-fcheck-pointer-boudns): Document
25879 possible issues with '-z bndplt' support in linker.
25880
25881 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
25882
25883 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
25884 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
25885 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
25886 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
25887 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
25888
25889 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
25890
25891 * config/i386/sync.md (UNSPEC_MOVA): Remove.
25892 (atomic_load<mode>): Change operand 0 predicate to
25893 nonimmediate_operand and fix up the destination when needed.
25894 Use UNSPEC_LDA.
25895 (atomic_loaddi_fpu): Use UNSPEC_LDA.
25896 (atomic_store<mode>): Change operand 1 predicate to
25897 nonimmendate_operand and move the source to register when needed.
25898 Use UNSPEC_STA.
25899 (atomic_store<mode>_1): Use UNSPEC_STA.
25900 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
25901 Fix moves from memory operand. Use UNSPEC_STA.
25902
25903 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25904
25905 * expmed.c (strict_volatile_bitfield_p): Check that the access will
25906 not cross a MODESIZE boundary.
25907 (store_bit_field, extract_bit_field): Added assertions in the
25908 strict volatile bitfields code path.
25909
25910 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
25911
25912 PR target/65624
25913 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
25914 Increase args array size by one to avoid buffer overflow.
25915
25916 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25917
25918 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25919 split_part.
25920 * ipa-inline.c (edge_badness): Add wrapper penalty.
25921 (sum_callers): Move up.
25922 (inline_small_functions): Set single_caller.
25923 * ipa-inline.h (inline_summary): Add single_caller.
25924 * ipa-split.c (split_function): Set split_part.
25925 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
25926 * cgraph.h (cgraph_node): Add split_part.
25927
25928 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
25929
25930 PR target/58945
25931 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
25932 Do not split operands 0 and operands 2 to halfmode.
25933 (atomic_compare_and_swap<mode>): Update for
25934 atomic_compare_and_swap<dwi>_doubleword changes.
25935
25936 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
25937
25938 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
25939 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
25940 no caching is done.
25941
25942 2015-03-31 Martin Liska <mliska@suse.cz>
25943
25944 PR ipa/65557
25945 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
25946 has already filled up function summary.
25947 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
25948
25949 2015-03-31 Richard Biener <rguenther@suse.de>
25950
25951 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
25952 of types.
25953
25954 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
25955
25956 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
25957 nested functions.
25958 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
25959 (s390_asm_output_function_label): Adapt to new signature of
25960 s390_function_num_hotpatch_hw
25961 Optimise the code generating assembler output.
25962 Add comments to assembler file.
25963
25964 2015-03-31 Richard Biener <rguenther@suse.de>
25965
25966 PR middle-end/65626
25967 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
25968 of the noreturn call so it is last and cleanup_control_flow_bb
25969 can do the CFG part.
25970
25971 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
25972
25973 PR target/65531
25974 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
25975 same_comdat_group for external symbols.
25976 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
25977 infinite same_comdat_group traversal loop.
25978
25979 2015-03-31 Jakub Jelinek <jakub@redhat.com>
25980
25981 PR plugins/61176
25982 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
25983 automatically to $headers.
25984
25985 2015-03-30 Jakub Jelinek <jakub@redhat.com>
25986
25987 PR ipa/65610
25988 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
25989 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
25990 function.
25991 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
25992 Use it.
25993 * ipa-prop.c (param_type_may_change_p): Likewise.
25994 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
25995 (remove_unused_scope_block_p): Add in_ctor_dtor_block
25996 argument. Before inlining, preserve
25997 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
25998 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
25999 recursive calls.
26000 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26001
26002 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26003
26004 PR ipa/65076
26005 * ipa-inline.c (edge_badness): Base denominator on callee's
26006 grwoth squared.
26007
26008 2015-03-27 Martin Jambor <mjambor@suse.cz>
26009
26010 PR ipa/65478
26011 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26012 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26013 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26014 node_calling_single_call.
26015 * ipa-cp.c (count_callers): New function.
26016 (set_single_call_flag): Likewise.
26017 (initialize_node_lattices): Count callers and set single_flag_call if
26018 necessary.
26019 (incorporate_penalties): New function.
26020 (good_cloning_opportunity_p): Use it, dump new flags.
26021 (propagate_constants_topo): Set node_within_scc flag if appropriate.
26022 * doc/invoke.texi (ipa-cp-recursion-penalty,
26023 ipa-cp-single-call-pentalty): Document.
26024
26025 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26026
26027 PR ipa/65588
26028 * symtab.c (symtab_node::get_partitioning_class): Register vars
26029 are duplicated.
26030 * varpool.c (symbol_table::output_variables) Do not assemble unefined
26031 decls for non-symbols.
26032
26033 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
26034
26035 PR target/65248
26036 * output.h (default_binds_local_p_2): New.
26037 * varasm.c (default_binds_local_p_2): Renamed to ...
26038 (default_binds_local_p_3): This. Don't return true on protected
26039 data symbol if protected data may be external.
26040 (default_binds_local_p): Use default_binds_local_p_3.
26041 (default_binds_local_p_1): Likewise.
26042 (default_binds_local_p_2): New.
26043 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26044 default_binds_local_p_2 if TARGET_MACHO is undefined.
26045
26046 2015-03-27 Jakub Jelinek <jakub@redhat.com>
26047
26048 PR target/65593
26049 * config/i386/i386.c (legitimize_pic_address): If base
26050 is SYMBOL_REF or LABEL_REF using %rip addressing, force
26051 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26052
26053 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26054
26055 PR target/65531
26056 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26057 comdat groups.
26058
26059 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26060
26061 PR ipa/65600
26062 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26063 of optimized out indirect call.
26064 (redirect_to_unreachable): Always build symbol table node for
26065 BUILT_IN_UNREACHABLE
26066
26067 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
26068
26069 PR target/65407
26070 * ira-costs.c (record_reg_classes): Process all constraint string
26071 containing 0-9.
26072
26073 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
26074
26075 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26076 memory_operand.
26077
26078 PR target/65052
26079 * config/c6x/constraints.md (S3): New constraint.
26080 * config/c6x/c6x.md (real_jump): Use it.
26081
26082 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26083
26084 PR middle-end/65595
26085 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26086 do redirection if the call is not optimized out.
26087
26088 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
26089
26090 PR target/65495
26091 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26092 (fchkp-check-incomplete-type): Add LTO.
26093 (fchkp-zero-input-bounds-for-main): Likewise.
26094 (fchkp-first-field-has-own-bounds): Likewise.
26095 (fchkp-narrow-bounds): Likewise.
26096 (fchkp-narrow-to-innermost-array): Likewise.
26097 (fchkp-use-static-bounds): Likewise.
26098 (fchkp-use-static-const-bounds): Likewise.
26099 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26100
26101 2015-03-27 Marek Polacek <polacek@redhat.com>
26102
26103 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26104
26105 2015-03-27 Marek Polacek <polacek@redhat.com>
26106
26107 PR sanitizer/65583
26108 * ubsan.c (ubsan_create_edge): New function.
26109 (instrument_bool_enum_load): Call it.
26110 (instrument_nonnull_arg): Likewise.
26111 (instrument_nonnull_return): Likewise.
26112 (instrument_object_size): Likewise.
26113
26114 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26115
26116 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26117 auto_vec.
26118
26119 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26120
26121 PR lto/65536
26122 * lto-streamer.h (class lto_location_cache): New.
26123 (struct data_in): Add location_cache.
26124 (lto_input_location): Update prototype.
26125 (stream_input_location_now): New.
26126 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26127 pointer to location.
26128 (stream_input_location): Update.
26129 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26130 (warn_odr): Apply location cache before warning.
26131 (lto_input_location): Update prototype.
26132 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26133 Use stream_input_location_now.
26134 * lto-streamer-in.c (lto_location_cache::current_cache): New static
26135 variable.
26136 (lto_location_cache::cmp_loc): New function.
26137 (lto_location_cache::apply_location_cache): New function.
26138 (lto_location_cache::accept_location_cache): New function.
26139 (lto_location_cache::revert_location_cache): New function.
26140 (lto_location_cache::input_location): New function.
26141 (lto_input_location): Do location caching.
26142 (stream_input_location_now): New function.
26143 (input_eh_region, input_struct_function_base): Use
26144 stream_input_location_now.
26145 (lto_data_in_create): use new.
26146 (lto_data_in_delete): Use delete.
26147 * tree-streamer-in.c (unpack_ts_block_value_fields,
26148 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26149 lto_input_ts_exp_tree_pointers): Update for cached location api.
26150
26151 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26152
26153 PR ipa/65076
26154 * passes.def: Add pass_nothrow.
26155 * ipa-pure-const.c: (pass_data_nothrow): New.
26156 (pass_nothrow): New.
26157 (pass_nothrow::execute): New.
26158 (make_pass_nothrow): New.
26159 * tree-pass.h (make_pass_nothrow): Declare.
26160
26161 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26162
26163 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26164 edge to change by speculation resolution or redirection.
26165 (edge_set_predicate): Likewise.
26166 (inline_summary_t::duplicate): Likewise.
26167 (remap_edge_summaries): Likewise.
26168
26169 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26170
26171 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26172 New macros.
26173 (can_inline_edge_p): Relax option matching for always inline functions.
26174
26175 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
26176
26177 PR target/65561
26178 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26179 Check operand 4 and operand 0 for equality.
26180 (avx512f_vextract<shuffletype>32x4_1_maskm):
26181 Check operand 6 and operand 0 for equality.
26182 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26183 for equality.
26184 (vec_extract_hi_<mode>_maskm): Ditto.
26185
26186 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26187
26188 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26189 dead calls back to live.
26190 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26191 cross check to ...
26192 (cgraph_node::verify_node): ... here; verify only callee edges,
26193 not caller.
26194 * cif-code.def (CILK_SPAWN): New code.
26195
26196 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26197
26198 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26199 (edge_set_predicate): Use it to mark unreachable edges.
26200 (inline_summary_t::duplicate): Remove unnecesary code.
26201 (remap_edge_summaries): Likewise.
26202 (dump_inline_summary): Report contains_cilk_spawn.
26203 (compute_inline_parameters): Compute contains_cilk_spawn.
26204 (inline_read_section, inline_write_summary): Stream
26205 contains_cilk_spawn.
26206 * ipa-inline.c (can_inline_edge_p): Do not touch
26207 DECL_STRUCT_FUNCTION that may not be available;
26208 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26209 remove check for callee_fun->can_throw_non_call_exceptions and
26210 replace it by optimization attribute check; check for flag_exceptions.
26211 * ipa-inline-transform.c (inline_call): Maintain
26212 DECL_FUNCTION_PERSONALITY
26213 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26214
26215 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26216
26217 PR tree-optimization/65551
26218 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26219 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26220
26221 2015-03-26 Richard Biener <rguenther@suse.de>
26222
26223 PR middle-end/65555
26224 * tree-cfg.c (verify_gimple_call): Do not require a call to
26225 have no LHS if it wasn't recognized as control altering yet.
26226
26227 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26228
26229 PR tree-optimization/64715
26230 * passes.def: Add another instance of pass_object_sizes before ccp1.
26231 * tree-object-size.c (pass_object_sizes::execute): In
26232 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26233 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26234 __bos result and the computed constant. Remove redundant
26235 checks, obsoleted by gimple_call_builtin_p test.
26236
26237 * var-tracking.c (variable_tracking_main_1): Don't track
26238 variables for targetm.no_register_allocation targets.
26239
26240 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
26241
26242 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26243 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26244
26245 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26246
26247 PR target/65569
26248 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26249 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
26250 0.0 is correctly setup.
26251 (extenddftf2_internal): Likewise.
26252
26253 2015-03-25 Sebastian Pop <s.pop@samsung.com>
26254
26255 PR tree-optimization/65177
26256 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26257 (bb_in_bbs): New.
26258 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
26259 edges not adjacent on the path to the original code.
26260
26261 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
26262
26263 PR bootstrap/65537
26264 * doc/install.texi (Building a native compiler): Document new
26265 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
26266 configuration assumes that the host supports the linker plugin.
26267
26268 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
26269
26270 PR target/65508
26271 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26272 chain for generated call.
26273
26274 2015-03-25 Richard Biener <rguenther@suse.de>
26275
26276 * passes.c (pass_manager::execute_early_local_passes): Guard
26277 execution of pass_chkp_instrumentation_passes with
26278 flag_check_pointer_bounds.
26279 (pass_chkp_instrumentation_passes::gate): Likewise.
26280
26281 2015-03-25 Martin Liska <mliska@suse.cz>
26282
26283 PR tree-optimization/65538
26284 * symbol-summary.h (function_summary::~function_summary):
26285 Relese memory for allocated summaries.
26286 (function_summary::release): New function.
26287
26288 2015-03-25 Jakub Jelinek <jakub@redhat.com>
26289
26290 PR lto/65515
26291 * lto-streamer-out.c (DFS::worklist): New struct.
26292 (DFS::worklist_vec): New data member.
26293 (DFS::next_dfs_num): Remove.
26294 (DFS::DFS): Rewritten using worklist instead of recursion,
26295 using most of code from DFS::DFS_write_tree.
26296 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26297 pass it to DFS_write_tree calls.
26298 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26299 quick initial checks push it into worklist_vec and return.
26300
26301 2015-03-25 Richard Biener <rguenther@suse.de>
26302
26303 PR middle-end/65519
26304 * genmatch.c (expr::gen_transform): Re-write to avoid
26305 using gimple_build.
26306
26307 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26308
26309 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26310
26311 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26312
26313 * config/arm/arm.opt (print_tune_info): New option.
26314 * config/arm/arm.c (arm_print_tune_info): New function.
26315 (arm_file_start): Call arm_print_tune_info.
26316 * config/arm/arm-protos.h (struct tune_params): Add comment.
26317 * doc/invoke.texi (@item -mprint-tune-info): New item.
26318 (-mtune): mention it in ARM Option Summary.
26319
26320 2015-03-25 DJ Delorie <dj@redhat.com>
26321
26322 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26323 correct clause.
26324
26325 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
26326 Martin Liska <mliska@suse.cz>
26327
26328 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26329 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26330 (sem_item::add_type): New function.
26331 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26332 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26333 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26334 (sem_function::equals_wpa): Fix typo.
26335 * ipa-icf.h (sem_item::add_type): New function.
26336 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26337 order.
26338
26339 2015-03-24 Jakub Jelinek <jakub@redhat.com>
26340
26341 PR tree-optimization/65533
26342 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26343 with swapped operands, call vect_free_slp_tree on
26344 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26345 vector.
26346
26347 2015-03-24 Richard Biener <rguenther@suse.de>
26348
26349 PR middle-end/65517
26350 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26351 for fixup if necessary.
26352
26353 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
26354
26355 * doc/extend.texi (Function Attributes): Add @cindex entries
26356 for all attributes and regularize their format. Delete text
26357 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
26358 information about "eightbit_data", "tiny_data", and "model"
26359 variable attributes to the Variable Attributes section. Fix
26360 some obvious typos and copy-editing issues.
26361 (Variable Attributes, Type Attributes): Likewise add/fix
26362 @cindex entries for all attributes.
26363
26364 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26365
26366 PR target/65523
26367 * tree-chkp.c (chkp_build_returned_bound): Ignore
26368 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26369
26370 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
26371
26372 PR target/65505
26373 * config/sh/predicates.md (simple_mem_operand,
26374 displacement_mem_operand): Add test for reg.
26375 (short_displacement_mem_operand): Test for displacement_mem_operand
26376 before invoking sh_disp_addr_displacement.
26377 * config/sh/constraints.md (Sdd, Sra): Simplify.
26378 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26379 Remove redundant displacement_mem_operand tests.
26380
26381 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
26382
26383 PR target/65296
26384 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26385 the same -mmcu=MCU more than once.
26386
26387 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26388
26389 PR bootstrap/65522
26390 * ipa-devirt.c: Remove duplicate demangle.h include.
26391
26392 PR target/65504
26393 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26394 on the pseudo.
26395 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26396 REG_POINTER on *destptr after adjusting it for prologue size.
26397
26398 PR ipa/65521
26399 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26400 ultimate_alias_target ()->order ints instead of
26401 ultimate_alias_target () pointers.
26402
26403 2015-03-23 Richard Biener <rguenther@suse.de>
26404
26405 PR tree-optimization/65518
26406 * tree-vect-stmts.c (vectorizable_load): Reject single-element
26407 interleaving cases we generate absymal code for.
26408
26409 2015-03-23 Richard Biener <rguenther@suse.de>
26410
26411 PR tree-optimization/65494
26412 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26413 matches here.
26414 (vect_analyze_slp_instance): But do that here, always and once.
26415
26416 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26417
26418 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26419 adding T or multiplying by T+1 and subracting T.
26420
26421 2015-03-22 Jeff Law <law@redhat.com>
26422
26423 PR rtl-optimization/64317
26424 * Makefile.in (OBJS): Add gcse-common.c
26425 * gcse.c: Include gcse-common.h
26426 (struct modify_pair_s): Move structure definition to gcse-common.h
26427 (compute_transp): Move function to gcse-common.c.
26428 (canon_list_insert): Similarly.
26429 (record_last_mem_set_info): Break out some code and put it into
26430 gcse-common.c. Call into the new common code.
26431 (compute_local_properties): Pass additional arguments to compute_transp.
26432 * postreload-gcse.c: Include gcse-common.h and df.h
26433 (modify_mem_list_set, blocks_with_calls): New variables.
26434 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26435 (get_bb_avail_insn): Pass in the expression index too.
26436 (alloc_mem): Allocate memory for the new bitmaps and lists.
26437 (free_mem): Free memory for the new bitmaps and lists.
26438 (insert_expr_in_table): Record a bitmap index for each entry we
26439 add to the table.
26440 (record_last_mem_set_info): Call into common code in gcse-common.c.
26441 (get_bb_avail_insn): If no available insn was found in the requested
26442 BB. If BB has a single predecessor, see if the expression is
26443 transparent in BB and available in that single predecessor.
26444 (compute_expr_transp): New wrapper for compute_transp.
26445 (eliminate_partially_redundant_load): Pass expression's bitmap_index
26446 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
26447 (gcse_after_reload_main): If there are elements in the hash table,
26448 then compute transparency for all the elements in the hash table.
26449 * gcse-common.h: New file.
26450 * gcse-common.c: New file.
26451
26452 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
26453
26454 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26455 as an adjective.
26456 (System Headers): Likewise.
26457 (Ifdef): Likewise.
26458 (Traditional macros): Likewise.
26459 (Invocation): Likewise.
26460 (Option Index): Likewise.
26461 * doc/cppopts.texi (-M): Likewise.
26462 (-finput-charset): Likewise.
26463 (--help): Likewise.
26464 * doc.invoke.texi (AVR Options): Likewise.
26465 (V850 Options): Likewise.
26466
26467 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
26468
26469 PR ipa/65475
26470 * ipa-devirt.c: Include demangle.h
26471 (odr_type_d): Add field rtti_broken.
26472 (odr_subtypes_equivalent_p): Do not require name to match.
26473 (compare_virtual_tables): Fix typo; if type already has ODR violation,
26474 bypass the tests; be ready for function referneces in vtables that are
26475 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26476 (warn_odr): Give up for nameless types.
26477 (warn_types_mismatch): Report mismatch in mangled names;
26478 report mismatch in anonymous namespaces; look into component types to
26479 give useful error; report when mismatch is dragged in from other ODR
26480 type.
26481 (odr_types_equivalent_p): Match types for being polymorphic; avoid
26482 duplicated diagnostics.
26483 (add_type_duplicate): Reorder checks so more informative ones come
26484 first; fix typo; do not output "the extra base is defined here" when
26485 we did not warn.
26486 (BINFO_N_BASE_BINFOS): Relax sanity check.
26487
26488 2015-03-22 Martin Liska <mliska@suse.cz>
26489 Jakub Jelinek <jakub@redhat.com>
26490
26491 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26492 masks that can potentially include a builtin.
26493 (ix86_add_new_builtins): Introduce fast filter for isa values
26494 that cannot trigger builtin inclusion.
26495
26496 2015-03-22 Martin Liska <mliska@suse.cz>
26497
26498 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26499 (sem_item::update_hash_by_local_refs): Likewise.
26500 (sem_variable::get_hash): Empty line is fixed.
26501 (sem_item_optimizer::execute): Include adding of hash references.
26502 (sem_item_optimizer::update_hash_by_addr_refs): New function.
26503 (sem_item_optimizer::build_hash_based_classes): Use local hash.
26504 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26505 (sem_item::update_hash_by_local_refs): Likewise.
26506
26507 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26508
26509 PR ipa/65502
26510 * ipa-comdats.c (enqueue_references): Walk through thunks.
26511 (ipa_comdats): Likewise.
26512 (set_comdat_group_1): New function.
26513
26514 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26515
26516 PR ipa/65475
26517 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26518 non-polymorphic
26519
26520 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
26521 Gerald Pfeifer <gerald@pfeifer.com>
26522
26523 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26524
26525 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
26526 Sandra Loosemore <sandra@codesourcery.com>
26527
26528 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26529 function parameter declaration.
26530 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26531 Update arguments to nios2_adjust_call_address().
26532 (sibcall_internal): Rename from *sibcall.
26533 (sibcall_value_internal): Rename from *sibcall_value.
26534 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26535 (nios2_large_got_address): Add target temp reg parameter.
26536 (nios2_got_address): Adjust call to nios2_large_got_address, add
26537 force_reg around it.
26538 (nios2_load_pic_address): Add target temp reg parameter, replace call
26539 to nios2_got_address with corresponding code.
26540 (nios2_legitimize_constant_address): Update call to
26541 nios2_load_pic_address.
26542 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26543 to use temp reg for PIC loading purposes.
26544 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26545 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26546 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26547
26548 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26549
26550 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26551 usage of "the @option{...}".
26552 (-Wopenmp-simd): Likewise.
26553 (-fsanitize-recover): Likewise.
26554 (-fsanitize-undefined-trap-on-error): Likewise.
26555 (-flto): Likewise.
26556 (tracer-dynamic-coverage-feedback): Likewise.
26557 (reorder-block-duplicate-feedback): Likewise.
26558 (loop-unroll-jam-size): Likewise.
26559 (-B): Likewise.
26560 (-I-): Likewise.
26561 (-mabs=legacy): Likewise.
26562 (-mupper-regs-df): Likewise.
26563 (-mupper-regs-sf): Likewise.
26564 (-mpointers-to-nested-functions): Likewise.
26565
26566 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26567
26568 * doc/extend.texi (Cilk Plus Builtins): Add markup.
26569
26570 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26571
26572 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26573 additional index entries and cross-references.
26574 (-fchkp-check-incomplete-type): Likewise.
26575 (-fchkp-first-field-has-own-bounds): Likewise.
26576 (-fchkp-narrow-to-innermost-array): Likewise.
26577 (-fchkp-use-fast-string-functions): Likewise.
26578 (-fchkp-use-nochk-string-functions): Likewise.
26579 (-fchkp-use-static-const-bounds): Likewise.
26580 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26581 (-fchkp-instrument-marked-only): Likewise.
26582 (-fchkp-use-wrappers): Likewise.
26583 (-static-libmpx): Likewise.
26584 (-static-libmpxwrappers): Likewise.
26585 * doc/extend.texi (bnd_legacy): Likewise.
26586 (bnd_instrument): Likewise.
26587 (bnd_variable_size): Likewise.
26588 (Pointer Bounds Checker builtins): Likewise.
26589
26590 2015-03-21 Tom de Vries <tom@codesourcery.com>
26591
26592 PR tree-optimization/65458
26593 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26594 * cgraph.h (cgraph_node): Add parallelized_function field.
26595 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26596 (input_overwrite_node): Read parallelized_function field.
26597 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26598 parallelized_function on cgraph_node for child_fn.
26599 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26600 Remove include of gt-tree-parloops.h.
26601 (parallelized_functions): Remove static variable.
26602 (parallelized_function_p): Rewrite using parallelized_function field of
26603 cgraph_node.
26604 (create_loop_fn): Remove adding to parallelized_functions.
26605 * Makefile.in (GTFILES): Remove tree-parloops.c
26606
26607 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
26608
26609 PR rtl-optimization/64366
26610 * lra.c (lra_update_insn_regno_info): Consider regs in
26611 CALL_INSN_FUNCTION_USAGE memory.
26612
26613 2015-03-20 Richard Biener <rguenther@suse.de>
26614
26615 PR middle-end/64715
26616 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26617 for type comparison and gcc_checking_assert.
26618 (chrec_fold_plus_poly_poly): Likewise.
26619 (chrec_fold_multiply_poly_poly): Likewise.
26620 (chrec_convert_1): Likewise.
26621 * gimplify.c (gimplify_expr): Remove premature folding of
26622 &X + CST to &MEM[&X, CST].
26623
26624 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26625
26626 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26627 already is final.
26628 (ipa_inline): Recompute inline_failed codes.
26629 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26630 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26631 CIF_FINAL_ERROR.
26632
26633 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
26634
26635 PR rtl-optimization/60851
26636 * recog.c (constrain_operands): Accept a pseudo register before reload
26637 for LRA enabled targets.
26638
26639 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
26640
26641 PR target/65240
26642 * config/rs6000/predicates.md (easy_fp_constant): Remove special
26643 -ffast-math handling that kept non-0 constants live in the RTL
26644 until reload. Remove logic testing the number of instructions it
26645 took to create a constant in a GPR that was never used, due to a
26646 test for soft-float earlier.
26647 (memory_fp_constant): Delete, no longer used.
26648
26649 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26650 alternatives for loading non-0 constants into GPRs for hard
26651 floating point that is no longer needed due to changes in
26652 easy_fp_constant. Add support for loading 0.0 into GPRs.
26653 (mov<mode>_hardfloat32): Likewise.
26654 (mov<mode>_hardfloat64): Likewise.
26655 (mov<mode>_64bit_dm): Likewise.
26656 (movtd_64bit_nodm): Likewise.
26657 (pre-reload move FP constant define_split): Delete define_split,
26658 since it is no longer used.
26659 (extenddftf2_internal): Remove GHF constraints that are not valid
26660 for extenddftf2.
26661
26662 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
26663
26664 PR rtl-optimization/63491
26665 * lra-constraints.c (check_and_process_move): Use src instead of
26666 sreg. Remove some dead code.
26667
26668 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
26669
26670 PR ipa/65380
26671 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26672 (sem_variable::merge): Likewise.
26673
26674 2015-03-19 Martin Liska <mliska@suse.cz>
26675
26676 PR ipa/65465
26677 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26678 all fields of cgraph_thunk_info.
26679
26680 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
26681
26682 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26683 clone instrumented thunks.
26684
26685 2015-03-19 Richard Biener <rguenther@suse.de>
26686
26687 Revert
26688 2015-03-10 Richard Biener <rguenther@suse.de>
26689
26690 PR middle-end/63155
26691 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26692 * tree-ssa-coalesce.c: Include timevar.h.
26693 (attempt_coalesce): Handle graph being NULL.
26694 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26695 Split out abnormal coalescing to ...
26696 (perform_abnormal_coalescing): ... this function.
26697 (coalesce_ssa_name): Perform abnormal coalescing without computing
26698 live/conflict.
26699 (verify_ssa_coalescing_worker): New function.
26700 (verify_ssa_coalescing): Likewise.
26701
26702 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26703 Jakub Jelinek <jakub@redhat.com>
26704
26705 PR sanitizer/65400
26706 * tsan.c (instrument_gimple): Clear tail call flag on
26707 calls.
26708
26709 2015-03-19 Jakub Jelinek <jakub@redhat.com>
26710
26711 PR sanitizer/65400
26712 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26713 call in the return bb.
26714 (find_split_points): Add RETURN_BB argument, don't call
26715 find_return_bb.
26716 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
26717 if true append TSAN_FUNC_EXIT internal call after the call to
26718 the split off function.
26719 (execute_split_functions): Call find_return_bb here.
26720 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26721 Adjust find_split_points and split_function calls.
26722
26723 2015-03-18 DJ Delorie <dj@redhat.com>
26724
26725 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26726 (iorqi3_virt): Likewise.
26727
26728 2015-03-18 Tom de Vries <tom@codesourcery.com>
26729
26730 * tree-parloops.c (parallelize_loops): Make static.
26731 * tree-parloops.h (parallelize_loops): Remove extern declaration.
26732
26733 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
26734
26735 PR middle-end/64491
26736 Revert:
26737 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
26738
26739 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
26740 condition would be removed due to undefined behaviour.
26741
26742 2015-03-18 Martin Liska <mliska@suse.cz>
26743
26744 PR ipa/65432
26745 * cgraph.c (cgraph_node::get_create): Remove unnecessary
26746 xstrdup_for_dump wrapper.
26747 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
26748 sem_item::name.
26749 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
26750 with xstrdup_for_dump.
26751 (sem_variable::equals): Likewise.
26752 (sem_item_optimizer::read_section): Use symtab_node::name instead of
26753 sem_item::name.
26754 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
26755 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
26756 symtab_node::asm_name with xstrdup_for_dump.
26757 (congruence_class::dump): Use symtab_node::name instead of
26758 sem_item::name.
26759 * ipa-icf.h (symtab_node::name): Remove.
26760 (symtab_node::asm_name): Likewise.
26761
26762 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26763
26764 PR tree-optimization/65450
26765 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
26766 function.
26767 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
26768 it instead of duplicate_ssa_name_ptr_info.
26769
26770 PR target/65222
26771 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
26772
26773 2015-03-18 Richard Biener <rguenther@suse.de>
26774
26775 * tree-data-ref.h (struct access_matrix): Remove.
26776 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
26777 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
26778 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
26779 (am_vector_index_for_loop): Likewise.
26780 (struct data_reference): Remove access_matrix member.
26781 (DR_ACCESS_MATRIX): Remove.
26782 (lambda_vector_new): Add comment.
26783 (lambda_matrix_new): Use XOBNEWVEC.
26784
26785 2015-03-18 Richard Biener <rguenther@suse.de>
26786
26787 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
26788 (pass_ch::execute): Cleanup the CFG only if we did sth.
26789 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
26790
26791 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26792
26793 * expmed.c (synth_mult): Use std::swap instead of manually
26794 swapping algorithms.
26795
26796 2015-03-18 Jakub Jelinek <jakub@redhat.com>
26797
26798 PR target/65078
26799 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
26800
26801 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
26802
26803 PR target/65296
26804 * config/avr/avr.opt (-nodevicelib): New option.
26805 * doc/invoke.texi (AVR Options): Document it.
26806 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
26807 libgcc.a, libc.a, libm.a.
26808 * config/avr/specs.h: Same.
26809 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
26810 which don't (directly) depend on the device. Print more help.
26811 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
26812 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
26813 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
26814 case of an error.
26815 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
26816 for specs file name.
26817 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
26818 * config/avr/avr-mcus.def: Adjust initializers and comments.
26819
26820 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
26821
26822 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
26823 DECL_ONE_ONLY to check if decl is one only.
26824 * ipa-split.c (consider_split): Limit splitt of one only functions.
26825
26826 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26827
26828 PR tree-optimization/65427
26829 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
26830 functions.
26831 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
26832
26833 2015-03-16 Marek Polacek <polacek@redhat.com>
26834
26835 * cgraph.h (add_new_static_var): Remove declaration.
26836 * varpool.c (add_new_static_var): Remove function.
26837
26838 2015-03-16 Jakub Jelinek <jakub@redhat.com>
26839
26840 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
26841 instead of vec<tree> * with vec_alloc and release for args.
26842 Adjust all users.
26843
26844 PR middle-end/65431
26845 * omp-low.c (delete_omp_context): Only splay_tree_delete
26846 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
26847 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
26848
26849 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
26850
26851 PR sanitizer/64820
26852 * cfgexpand.c (align_base): New function.
26853 (alloc_stack_frame_space): Call it.
26854 (expand_stack_vars): Align prev_frame to be sure
26855 data->asan_vec elements aligned properly.
26856
26857 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
26858
26859 PR middle-end/65409
26860 * expr.c (store_field): Do not do a direct block copy if the source is
26861 a PARALLEL with BLKmode.
26862
26863 2015-03-16 Tom de Vries <tom@codesourcery.com>
26864
26865 PR middle-end/65414
26866 Revert:
26867 2015-03-12 Tom de Vries <tom@codesourcery.com>
26868
26869 PR rtl-optimization/64895
26870 * lra-lives.c (check_pseudos_live_through_calls): Use
26871 actual_call_used_reg_set instead of call_used_reg_set, if available.
26872
26873 2015-03-16 Alan Modra <amodra@gmail.com>
26874
26875 PR target/63150
26876 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
26877 Modify Z->r bswapdi splitter to use dest in place of scratch.
26878 In r->Z and Z->r bswapdi splitter rename word_high, word_low
26879 to word1, word2 and rearrange logic to suit.
26880 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
26881 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
26882 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
26883 Add one '?' on r->r. Modify Z->r splitter to avoid need for
26884 early clobber.
26885
26886 2015-03-14 Jakub Jelinek <jakub@redhat.com>
26887
26888 PR tree-optimization/65369
26889 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
26890 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
26891 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
26892
26893 PR tree-optimization/65418
26894 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
26895 are casts in the first PLUS_EXPR operand, ensure tbias and
26896 *totallowp are in the inner type.
26897
26898 PR rtl-optimization/65401
26899 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
26900 argument. If true, adjust_address_nv of x with big-endian
26901 correction for the mode widening to GET_MODE (y).
26902 (make_field_assignment): Don't do MEM mode widening here.
26903 Use MEM_P instead of GET_CODE == MEM.
26904
26905 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
26906
26907 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
26908 the external decls.
26909
26910 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26911
26912 PR target/64600
26913 * config/arm/arm.c (arm_gen_constant, AND case): Use
26914 ARM_SIGN_EXTEND when constructing AND mask.
26915
26916 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26917
26918 * graph.c (print_graph_cfg): Make function names visible and append
26919 parenthesis to it. Also make groups of basic blocks belonging to the
26920 same function visible.
26921
26922 2015-03-12 Richard Biener <rguenther@suse.de>
26923
26924 PR middle-end/44563
26925 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
26926 to avoid quadratic behavior with inline expansion splitting blocks.
26927 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
26928 with the successor if the predecessor will be merged with it.
26929 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
26930 entry block with its successor.
26931
26932 2015-03-13 Richard Biener <rguenther@suse.de>
26933
26934 PR middle-end/44563
26935 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
26936 (cleanup_tree_cfg_1): Do not call it.
26937 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
26938 (fixup_noreturn_call): Mark the stmt as control altering.
26939 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
26940 here.
26941 (pass_data_fixup_cfg): Produce a dump file.
26942 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
26943 (need_noreturn_fixup): New global.
26944 (pass_dominator::execute): Fixup queued noreturn calls.
26945 (optimize_stmt): Queue calls that became noreturn for fixup.
26946 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
26947 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
26948 (el_to_fixup): New global.
26949 (eliminate_dom_walker::before_dom_childre): Queue calls that
26950 became noreturn for fixup.
26951 (eliminate): Fixup queued noreturn calls.
26952 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
26953 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
26954 (substitute_and_fold_dom_walker::before_dom_children): Queue
26955 alls that became noreturn for fixup.
26956 (substitute_and_fold): Fixup queued noreturn calls.
26957
26958 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
26959
26960 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
26961 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
26962 are building; for methods check ODR type of class they belong to if
26963 they may lead to a polymorphic call.
26964 (sem_function::compare_polymorphic_p): Be bit smarter about testing
26965 when function may lead to a polymorphic call.
26966 (sem_function::compare_type_list): Remove.
26967 (sem_variable::equals): Update use of compatible_types_p.
26968 (sem_variable::parse_tree_refs): Remove.
26969 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
26970 cdtor.
26971 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
26972 matching here.
26973 (func_checker::compatible_polymorphic_types_p): Break out from ...
26974 (unc_checker::compatible_types_p): ... here.
26975 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
26976 Declare.
26977 (unc_checker::compatible_types_p): Update.
26978 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
26979 Remove.
26980
26981 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26982
26983 PR rtl-optimization/65235
26984 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
26985 When first element of vec_concat is const_int, calculate its size
26986 using second element.
26987
26988 2015-03-12 Richard Biener <rguenther@suse.de>
26989
26990 PR middle-end/65270
26991 * fold-const.c (operand_equal_p): Fix ordering of resetting
26992 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
26993
26994 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26995
26996 * config/s390/s390.c (s390_reorg): Move code to output nops after label
26997 to s390_reorg ().
26998 (s390_asm_output_function_label): Likewise.
26999 * config/s390/s390.c (s390_asm_output_function_label):
27000 Fix function label alignment with -mhtopatch.
27001 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27002 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27003 ("nop_2_byte"): New define_insn.
27004 ("nop_4_byte"): Likewise.
27005 ("nop_6_byte"): Likewise.
27006 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27007 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27008
27009 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27010
27011 PR target/65103
27012 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27013 register.
27014
27015 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27016
27017 PR target/65044
27018 * toplev.c (process_options): Restrict Pointer Bounds Checker
27019 usage with Address Sanitizer.
27020
27021 2015-03-12 Richard Biener <rguenther@suse.de>
27022
27023 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27024 to split on.
27025 * omp-low.c (expand_omp_taskreg): Split block before removing
27026 the stmt.
27027 (expand_omp_target): Likewise.
27028 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27029 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27030 stmt to split_block.
27031
27032 2015-03-12 Tom de Vries <tom@codesourcery.com>
27033
27034 PR rtl-optimization/64895
27035 * lra-lives.c (check_pseudos_live_through_calls): Use
27036 actual_call_used_reg_set instead of call_used_reg_set, if available.
27037
27038 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27039
27040 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27041 (cgraph_node::remove): Likewise.
27042 (cgraph_node::get_untransformed_body): Likewise.
27043 * varpool.c (varpool_node::remove): Likewise.
27044 (varpool_node::get_constructor): Add sanity check.
27045
27046 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
27047
27048 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27049 old GCC versions.
27050 (-fabi-compat-version): Likewise.
27051 (-ffriend-injection): Likewise.
27052 (-Wdeclaration-after-statement): Likewise.
27053 (-fomit-frame-pointer): Likewise.
27054 (-ftree-coalesce-inlined-vars): Likewise.
27055 (-fvisibility=): Likewise.
27056 * doc/extend.texi (Typeof): Likewise.
27057 (Zero Length): Likewise.
27058 (Escaped Newlines): Likewise.
27059 (Compound Literals): Likewise.
27060 (Function Attributes): Likewise.
27061 (Label Attributes): Likewise.
27062 (Type Attributes): Likewise.
27063 (Function Names): Likewise.
27064 (Other Builtins): Likewise.
27065 (Function Specific Option Pragmas): Likewise.
27066 (C++ Interface): Likewise.
27067
27068 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
27069
27070 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27071
27072 2015-03-11 Marek Polacek <polacek@redhat.com>
27073
27074 PR tree-optimization/65388
27075 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27076
27077 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27078
27079 PR target/65296
27080 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27081 * configure: Regenerate.
27082 * config.in: Regenerate.
27083 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27084 [-mn-flash]: Document it.
27085 [__AVR_ARCH__]: Document avrtiny.
27086
27087 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27088 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27089 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27090
27091 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27092
27093 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27094
27095 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27096
27097 PR target/65242
27098 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27099 allow reloads of PLUS in floating point/VSX registers.
27100
27101 2015-03-11 Junmo Park <junmoz.park@samsung.com>
27102
27103 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27104 crypto_sha256_fast.
27105 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27106
27107 2015-03-11 Richard Biener <rguenther@suse.de>
27108
27109 PR tree-optimization/65310
27110 * tree-sra.c (build_ref_for_offset): Also preserve larger
27111 alignment.
27112
27113 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
27114
27115 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27116
27117 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27118
27119 PR target/65368
27120 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27121 new define_expand.
27122 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27123
27124 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27125
27126 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27127 (sem_function::equals_wpa): ... here.
27128
27129 2015-03-10 Marek Polacek <polacek@redhat.com>
27130 Jakub Jelinek <jakub@redhat.com>
27131
27132 PR sanitizer/65367
27133 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27134 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
27135 separately.
27136
27137 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27138
27139 PR target/65286
27140 * config/rs6000/t-linux: For powerpc64* target set
27141 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27142
27143 2015-03-10 Richard Biener <rguenther@suse.de>
27144
27145 PR middle-end/44563
27146 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27147 for redirect_all_calls.
27148
27149 2015-03-10 Marek Polacek <polacek@redhat.com>
27150
27151 * gdbinit.in (pcfun): Define and document.
27152
27153 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
27154
27155 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27156 of libgomp-plugin.h.
27157 (find_target_compiler): Support a case when the path to gcc is
27158 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27159 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27160 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27161 libgomp-plugin.h.
27162 (main): Use GCC_INSTALL_NAME as target_driver_name.
27163 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27164 define.
27165 (mkoffload.o): Remove obsolete include path and defines.
27166 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27167
27168 2015-03-10 Richard Biener <rguenther@suse.de>
27169
27170 PR middle-end/63155
27171 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27172 * tree-ssa-coalesce.c: Include timevar.h.
27173 (attempt_coalesce): Handle graph being NULL.
27174 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27175 Split out abnormal coalescing to ...
27176 (perform_abnormal_coalescing): ... this function.
27177 (coalesce_ssa_name): Perform abnormal coalescing without computing
27178 live/conflict.
27179 (verify_ssa_coalescing_worker): New function.
27180 (verify_ssa_coalescing): Likewise.
27181
27182 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27183
27184 PR target/65296
27185 * config.gcc (extra_options) [avr]: Remove.
27186 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27187 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27188 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27189
27190 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27191 (-mmcu=): Add Var and MissingArgError properties.
27192 (-march=): Remove.
27193 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27194 * config/avr/t-multilib: Regenerate.
27195 * config/avr/specs.h: New file.
27196 * config/avr/driver-avr.c: New file.
27197 * config/avr/genopt.sh: Remove file.
27198 * config/avr/avr-tables.opt: Remove file.
27199 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27200 * config/avr/avr-c.c: Same.
27201 * avr-arch.h: Same.
27202 (avr_current_device): Remove proto.
27203 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27204 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27205 (EXTRA_SPEC_FUNCTIONS): Define.
27206 (avr_devicespecs_file): New specs function proto.
27207 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27208 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27209 (avr_current_device): Remove definition and usage.
27210 (avr_set_core_architecture): New static function.
27211 (avr_option_override): Use it.
27212 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27213 (mcu_name): New static array.
27214 (comparator, avr_archs_str, avr_mcus_str): New static functions.
27215 (avr_inform_devices, avr_inform_core_architectures): New functions.
27216 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27217 (avrlibc.h) [WITH_AVRLIBC]: Include.
27218 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27219 (print_mcu): Rewrite from scratch.
27220 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27221 Forward to avr-specific specs defined in device-specs file.
27222 * config/avr/t-avr (driver-avr.o): New rule.
27223 (avr-devices.o): Depend on avr-arch.h.
27224 (avr-mcus): No more depend on avr-tables.opt.
27225 (avr-tables.opt): Remove rule.
27226 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27227
27228 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27229
27230 * c-family/c.opt (fchkp-use-wrappers): New.
27231 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27232 (chkp_wrap_function): New.
27233 (chkp_build_instrumented_fndecl): Support wrapped
27234 functions.
27235 * doc/invoke.texi (-fcheck-pointer-bounds): New.
27236 (-fchkp-check-incomplete-type): New.
27237 (-fchkp-first-field-has-own-bounds): New.
27238 (-fchkp-narrow-bounds): New.
27239 (-fchkp-narrow-to-innermost-array): New.
27240 (-fchkp-optimize): New.
27241 (-fchkp-use-fast-string-functions): New.
27242 (-fchkp-use-nochk-string-functions): New.
27243 (-fchkp-use-static-bounds): New.
27244 (-fchkp-use-static-const-bounds): New.
27245 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27246 (-fchkp-check-read): New.
27247 (-fchkp-check-write): New.
27248 (-fchkp-store-bounds): New.
27249 (-fchkp-instrument-calls): New.
27250 (-fchkp-instrument-marked-only): New.
27251 (-fchkp-use-wrappers): New.
27252 (-static-libmpx): New.
27253 (-static-libmpxwrappers): New.
27254
27255 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27256
27257 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27258 (CHKP_SPEC): Add wrappers library.
27259 * c-family/c.opt (static-libmpxwrappers): New.
27260
27261 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27262
27263 * config/i386/linux-common.h (LIBMPX_LIBS): New.
27264 (LIBMPX_SPEC): New.
27265 (CHKP_SPEC): New.
27266 * gcc.c (CHKP_SPEC): New.
27267 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27268 * c-family/c.opt (static-libmpx): New.
27269
27270 2015-03-10 Richard Biener <rguenther@suse.de>
27271
27272 PR middle-end/44563
27273 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27274 for compare_type.
27275 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27276 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27277 (cgraph_add_edge_to_call_site_hash): Likewise.
27278 (cgraph_node::get_edge): Likewise.
27279 (cgraph_edge::set_call_stmt): Likewise.
27280 (cgraph_edge::remove_caller): Likewise.
27281
27282 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
27283
27284 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27285 (callee_saved_gpr_regs_size): ... this.
27286 (callee_saved_regs_first_regno): Rename to ...
27287 (callee_saved_first_gpr_regno): ... this.
27288 (callee_saved_regs_last_regno) Rename to ...
27289 (callee_saved_last_gpr_regno): ... this.
27290 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27291 variables.
27292 (nds32_initial_elimination_offset): Likewise.
27293 (nds32_expand_prologue): Likewise.
27294 (nds32_expand_epilogue): Likewise.
27295 (nds32_expand_prologue_v3push): Likewise.
27296 (nds32_expand_epilogue_v3pop): Likewise.
27297 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27298 Adjust renamed variables.
27299 (nds32_output_stack_pop): Likewise.
27300
27301 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
27302
27303 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27304 code in comment.
27305
27306 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27307
27308 PR rtl-optimization/65321
27309 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27310 than shift mode.
27311 * var-tracking.c (use_narrower_mode): Likewise.
27312
27313 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27314
27315 PR tree-optimization/65355
27316 * varasm.c (notice_global_symbol): Do not produce RTL.
27317 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27318 anchor.
27319 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27320 check for section anchors.
27321
27322 2015-03-10 Alan Modra <amodra@gmail.com>
27323
27324 PR target/65286
27325 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27326 to be single-arch by default. Set cpu_is_64bit for powerpc64
27327 given --with-cpu=native.
27328 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27329 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27330 and powerpc64le.
27331 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27332 rs6000_isa_flags rather than TARGET_64BIT.
27333
27334 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
27335 Kaz Kojima <kkojima@gcc.gnu.org>
27336
27337 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27338
27339 2015-03-09 Jakub Jelinek <jakub@redhat.com>
27340
27341 PR lto/65361
27342 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27343 on a TREE_BINFO, instead use BINFO_TYPE.
27344
27345 2015-03-09 Richard Biener <rguenther@suse.de>
27346
27347 PR middle-end/65270
27348 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27349 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27350 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
27351 of that. When comparing dereferences compare alignment.
27352 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27353
27354 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27355
27356 * ipa-inline-analysis.c (check_callers): Check
27357 node->can_remove_if_no_direct_calls_and_refs_p.
27358 (growth_likely_positive): Reorganize to call
27359 can_remove_if_no_direct_calls_p later.
27360 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27361 will_be_removed_from_program_if_no_direct_calls_p): Add
27362 will_inline parameter.
27363 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27364 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27365 Handle inliner case correctly.
27366
27367 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27368
27369 PR tree-optimization/63743
27370 * cfgexpand.c (reorder_operands): Also reorder if only second operand
27371 had its definition forwarded by TER.
27372
27373 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27374
27375 PR lto/65316
27376 * ipa-utils.h (types_odr_comparable): Add strict argument.
27377 * ipa-devirt.c: Fix whitespace;
27378 (odr_hasher): Remove.
27379 (odr_name_hasher, odr_vtable_hasher): New hashers.
27380 (can_be_name_hashed_p): New predicate.
27381 (hash_type_name): remove.
27382 (hash_odr_name): New.
27383 (odr_name_hasher::hash): new.
27384 (can_be_vtable_hashed_p): New.
27385 (hash_odr_vtable): New.
27386 (odr_vtable_hasher::hash): New.
27387 (types_same_for_odr): Add strict parameter.
27388 (types_odr_comparable): Likewise.
27389 (odr_name_hasher::equal): New.
27390 (odr_vtable_hasher::equal): New.
27391 (odr_name_hasher::remove): New.
27392 (odr_hash_type): Change to hash_table<odr_name_hasher>.
27393 (odr_vtable_hash_type): New.
27394 (odr_vtable_hash): New.
27395 (odr_subtypes_equivalent_p): Do strict comparsion.
27396 (add_type_duplicate): Merge type names; cleanup; avoid type
27397 duplicates.
27398 (register_odr_type): Initialize vtable hash.
27399 (build_type_inheritance_graph): Likewise
27400 (get_odr_type): Reorg to use two hashes.
27401 (dump_possible_polymorphic_call_targets): Move sanity check after debug
27402 output.
27403 (ipa_devirt): Dump type_inheritance_graph.
27404 (types_same_for_odr): Add strict mode.
27405
27406 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27407
27408 PR ipa/65334
27409 * cgraph.h (symtab_node): Add definition_alignment,
27410 can_increase_alignment_p and increase_alignment.
27411 * symtab.c (symtab_node::can_increase_alignment_p,
27412 increase_alignment_1, symtab_node::increase_alignment,
27413 symtab_node::definition_alignment): New.
27414 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27415 can_increase_alignment_p.
27416 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27417 * tree-vect-stmts.c (ensure_base_align): Likewise.
27418 * varasm.c (function_section_1): Use definition_alignment.
27419 (assemble_start_function): Likewise.
27420 (emit_local): likewise.
27421 (build_constant_desc): Likewsie.
27422 (output_constant_def_contents): Likewise.
27423 (place_block_symbol): Likewise.
27424 (output_object_block): Likewise.
27425
27426 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27427
27428 PR ipa/65316
27429 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27430 when outputting debug.
27431
27432 2015-03-07 Marek Polacek <polacek@redhat.com>
27433 Martin Uecker <uecker@eecs.berkeley.edu>
27434
27435 PR sanitizer/65280
27436 * doc/invoke.texi: Update description of -fsanitize=bounds.
27437
27438 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
27439
27440 * tree-ssa-phiopt.c (neg_replacement): Remove.
27441 (tree_ssa_phiopt_worker): Remove negate optimization.
27442
27443 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27444
27445 PR ipa/65302
27446 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27447
27448 2015-03-06 Richard Biener <rguenther@suse.de>
27449
27450 PR middle-end/64928
27451 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27452 and liveout_obstack members.
27453 (calculate_live_on_exit): Remove.
27454 (calculate_live_ranges): Change declaration.
27455 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27456 (new_tree_live_info): Adjust.
27457 (calculate_live_ranges): Delete livein when not wanted.
27458 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27459 Deal with partly deleted live info.
27460 (loe_visit_block): Remove temporary bitmap by using
27461 bitmap_ior_and_compl_into.
27462 (live_worklist): Adjust accordingly.
27463 (calculate_live_on_exit): Make static.
27464 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27465 we do not need livein.
27466
27467 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
27468
27469 * real.c (real_from_string): Fix typo in assertion.
27470
27471 2015-03-06 Alex Velenko <alex.velenko@arm.com>
27472
27473 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27474 the patch.
27475
27476 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27477
27478 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27479
27480 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
27481
27482 PR target/64342
27483 * lra-assigns.c (find_hard_regno_for): Rename to
27484 find_hard_regno_for_1. Add a new parameter.
27485 (find_hard_regno_for): New function using find_hard_regno_for_1.
27486
27487 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27488
27489 PR rtl-optimization/65067
27490 * expmed.c (store_bit_field, extract_bit_field): Reworked the
27491 strict volatile bitfield handling.
27492
27493 2015-03-05 Martin Liska <mliska@suse.cz>
27494
27495 PR ipa/65318
27496 * ipa-icf.c (sem_variable::equals): Compare variables types.
27497
27498 2015-03-05 Richard Henderson <rth@redhat.com>
27499
27500 PR target/65121
27501 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27502 correctly check weak symbol binding.
27503
27504 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
27505
27506 PR middle-end/65315
27507 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27508 needed alignment.
27509
27510 2015-03-05 Martin Liska <mliska@suse.cz>
27511
27512 * ipa-inline.c (inline_small_functions): Set default value to
27513 prevent warning during bootstrap.
27514 * tree.h: Add pragma guard that ignores false positives during
27515 bootstrap.
27516
27517 2015-03-05 Richard Biener <rguenther@suse.de>
27518
27519 PR tree-optimization/65310
27520 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27521 Properly preserve alignment of the base of the access.
27522
27523 2015-03-05 Richard Biener <rguenther@suse.de>
27524
27525 PR ipa/65270
27526 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27527 Compare dependence info.
27528
27529 2015-03-05 Richard Biener <rguenther@suse.de>
27530
27531 PR middle-end/65233
27532 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27533 tree-into-ssa.h.
27534 (walk_ssa_copies): Revert last chage. Instead do not walk
27535 SSA names registered for SSA update.
27536
27537 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27538
27539 PR ipa/65270
27540 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27541 vtable references for their containing type.
27542 (sem_function::equals_wpa): Compare TYPE_RESTRICT
27543 and type attributes.
27544
27545 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
27546
27547 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27548 before negating it.
27549 * stor-layout.c (finalize_record_size): Revert latest change.
27550
27551 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
27552
27553 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27554
27555 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27556
27557 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27558 for correct comdat handling.
27559 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27560 Likewise.
27561 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27562 (used_from_object_file_p_worker): Remove.
27563 (cgraph_node::only_called_directly_or_alised): Add
27564 used_from_object_file_p.
27565 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27566 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27567 can_remove_if_no_direct_calls_and_refs_p.
27568
27569 2015-03-04 Nick Clifton <nickc@redhat.com>
27570
27571 * config/rl78/rl78.h (enum reg_class): Remove real registers from
27572 General register class.
27573 * config/rl78/rl78-real.md: Replace general register constraints
27574 with real+virtual register constraints.
27575
27576 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27577
27578 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27579 from checking for -mhtm option.
27580
27581 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27582
27583 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27584 (struct ipa_sra_check_caller_data): Add has_thunk field.
27585 (ipa_sra_check_caller): Check for thunk.
27586 (ipa_sra_preliminary_function_checks): Give up on function with
27587 thunks.
27588 (ipa_early_sra): Use call_for_symbol_and_aliases.
27589
27590 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27591
27592 PR target/65249
27593 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27594 called for __stack_chk_guard symbol.
27595
27596 2015-03-03 DJ Delorie <dj@redhat.com>
27597
27598 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27599 inc/dec.
27600 (*addhi3_real): Likewise.
27601 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27602 pattern to match incrementing memory.
27603 * config/rl78/predicates.md (rl78_1_2_operand): New.
27604 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27605 it's the same and only mem.
27606 (rl78_alloc_physical_registers_op2): If there's effectively only
27607 one MEM, transcode it into HL.
27608 (rl78_far_p): Reject addresses that aren't legitimate.
27609
27610 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27611
27612 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27613 negating it.
27614
27615 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27616
27617 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27618
27619 Implement call0 ABI for xtensa
27620 * config/xtensa/constraints.md ("a" constraint): Include stack
27621 pointer in case of call0 ABI.
27622 ("q" constraint): Make empty in case of call0 ABI.
27623 ("D" constraint): Include stack pointer in case of call0 ABI.
27624 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27625 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27626 prototypes.
27627 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27628 variable.
27629 (xtensa_regno_to_class): Make it a local variable in the
27630 function xtensa_regno_to_class.
27631 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27632 macro, function prototype and implementation.
27633 (reg_nonleaf_alloc_order): Make it a local variable in the
27634 function order_regs_for_local_alloc.
27635 (xtensa_conditional_register_usage): New function.
27636 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27637 (xtensa_valid_move): Allow direct moves to stack pointer
27638 register in call0 ABI.
27639 (xtensa_setup_frame_addresses): Only spill register windows in
27640 windowed ABI.
27641 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27642 call0 ABI respectively.
27643 (xtensa_function_arg_1): Only mark a7 register for copying in
27644 windowed ABI.
27645 (xtensa_call_save_reg): New function.
27646 (compute_frame_size): Add space for callee saved register
27647 storage to the frame size in call0 ABI.
27648 (xtensa_expand_prologue): Generate code to set up stack frame
27649 and save callee-saved registers in call0 ABI.
27650 (xtensa_expand_epilogue): New function.
27651 (xtensa_set_return_address): New function.
27652 (xtensa_return_addr): Calculate return address in call0 ABI.
27653 (xtensa_builtin_saveregs): Only mark a7 register for copying and
27654 emit copying code in windowed ABI.
27655 (order_regs_for_local_alloc): Add preferred register allocation
27656 order for non-leaf function in call0 ABI.
27657 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27658 (xtensa_asm_trampoline_template): Add trampoline generation for
27659 call0 ABI.
27660 (xtensa_trampoline_init): Add trampoline initialization for
27661 call0 ABI.
27662 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27663 functions.
27664 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27665 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27666 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27667 ABI call-used registers.
27668 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27669 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27670 call0 ABI.
27671 (REG_CLASS_CONTENTS): Include all registers into the preferred
27672 reload registers set, adjust the set in the
27673 xtensa_conditional_register_usage.
27674 (xtensa_regno_to_class): Drop variable declaration.
27675 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27676 function.
27677 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27678 respectively.
27679 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27680 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27681 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27682 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27683 location in call0 ABI.
27684 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27685 stack adjustment size when handling exception.
27686 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27687 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27688 definitions.
27689 ("return" pattern): Generate ret.n/ret in call0 ABI.
27690 ("epilogue" pattern): Expand epilogue.
27691 ("nonlocal_goto" pattern): Use default in call0 ABI.
27692 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27693 emit eh_set_a0_* depending on ABI.
27694 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27695 ("eh_set_a0_call0", "blockage"): New patterns.
27696
27697 2015-03-03 Martin Liska <mliska@suse.cz>
27698
27699 PR ipa/65287
27700 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27701
27702 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27703
27704 PR 65138/target
27705 * config/rs6000/rs6000-tables.opt: Regenerate table.
27706
27707 2015-03-03 Renlin Li <renlin.li@arm.com>
27708
27709 * doc/md.texi (@item ^): Change ? into ^.
27710
27711 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
27712
27713 * doc/tm.texi: Regenerated.
27714
27715 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27716
27717 * builtins.c (expand_builtin_return_addr): Add
27718 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27719 surrounding #ifdef.
27720 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27721 definition to 1.
27722 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27723 Likewise.
27724 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27725 undefined.
27726 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27727 paragraph.
27728
27729 2015-03-03 Martin Jambor <mjambor@suse.cz>
27730 Eric Botcazou <ebotcazou@adacore.com>
27731
27732 * tree-sra.c (ipa_sra_check_caller_data): New type.
27733 (has_caller_p): Removed.
27734 (ipa_sra_check_caller): New function.
27735 (ipa_sra_preliminary_function_checks): Use it.
27736
27737 2015-03-03 Martin Liska <mliska@suse.cz>
27738
27739 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
27740 instead of if branch.
27741
27742 2015-03-03 Martin Liska <mliska@suse.cz>
27743
27744 PR ipa/65282
27745 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
27746
27747 2015-03-23 Jeff Law <law@redhat.com>
27748
27749 PR tree-optimization/65241
27750 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
27751 hash table if INSERT is true.
27752
27753 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27754
27755 PR target/65296
27756 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
27757
27758 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27759
27760 PR target/64331
27761 * config/avr/avr.c (context.h, tree-pass.h): Include them.
27762 (avr_pass_data_recompute_notes): New static variable.
27763 (avr_pass_recompute_notes): New class.
27764 (avr_register_passes): New static function.
27765 (avr_option_override): Call it.
27766
27767 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
27768
27769 Fix various problems with specs file generation.
27770
27771 PR target/65296
27772 * config.gcc (extra_gcc_objs) [avr]: Remove.
27773 * config/avr/driver-avr.c: Remove file.
27774 * config/avr/t-avr (driver-avr.o): Remove rule.
27775 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
27776 INCLUDES to build. Depend on TM_H.
27777 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
27778 build warnings. Fix non-matching types and non-existing %-codes.
27779 (tm.h): Include.
27780 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
27781 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
27782 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
27783 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
27784 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
27785 (LIBGCC_SPEC): Remove definitions.
27786
27787 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27788
27789 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
27790 to create a register in testing mode.
27791
27792 2015-03-03 Martin Liska <mliska@suse.cz>
27793 Jan Hubicka <hubicka@ucw.cz>
27794
27795 PR ipa/65263
27796 * cgraph.c (cgraph_node::has_thunk_p): New function.
27797 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
27798 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
27799 (sem_function::merge): Assert is changed.
27800
27801 2015-03-03 Martin Liska <mliska@suse.cz>
27802 Martin Jambor <mjambor@suse.cz>
27803
27804 PR ipa/65087
27805 * ipa-icf.c (sem_item_optimizer::execute): Change function
27806 return value to boolean.
27807 (sem_item_optimizer::merge_classes): Likewise.
27808 (ipa_icf_driver): Return TODO_remove_functions in case there's
27809 a merge operation processed.
27810 * ipa-icf.h: Change function return value to boolean.
27811
27812 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27813
27814 PR 65138/target
27815 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
27816 processor type for 64-bit little endian PowerPC.
27817
27818 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
27819 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
27820 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
27821 printing built-in mask so it does not pass NULL pointers.
27822
27823 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
27824 -mcpu=powerpc64le.
27825
27826 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
27827
27828 PR target/58158
27829 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
27830 !ISA_HAS_FP_CONDMOVE.
27831
27832 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
27833
27834 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
27835 reload_completed.
27836
27837 2015-03-02 Ulrich Drepper <drepper@gmail.com>
27838
27839 * doc/invoke.texi (Options for Code Generation Conventions):
27840 Fix URL of DSO paper.
27841
27842 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27843
27844 PR ipa/65130
27845 * ipa-inline.c (check_callers): Looks for recursion.
27846 (inline_to_all_callers): Give up on uninlinable or recursive edges.
27847 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
27848 summary of inline clones.
27849 (do_estimate_growth_1): Fix recursion check.
27850
27851 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27852
27853 PR ipa/64988
27854 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
27855 comdat groups.
27856
27857 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
27858 Aldy Hernandez <aldyh@redhat.com>
27859
27860 PR lto/65276
27861 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
27862 when checking TYPE_BINFO.
27863
27864 2015-03-02 Richard Biener <rguenther@suse.de>
27865
27866 PR ipa/65270
27867 * ipa-icf-gimple.c: Include builtins.h.
27868 (func_checker::compare_memory_operand): Compare base alignment.
27869
27870 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27871
27872 PR target/65184
27873 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
27874 are never passed by reference.
27875
27876 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
27877
27878 PR target/65183
27879 * tree-chkp.c (chkp_check_lower): Don't check against
27880 zero bounds for already instrumented functions.
27881 (chkp_check_upper): Likewise.
27882 (chkp_fini): Clean pass local data to avoid wrong reusage.
27883
27884 2015-02-28 Martin Liska <mliska@suse.cz>
27885 Jan Hubicka <hubicka@ucw.cz>
27886
27887 * ipa-icf.c (sem_variable::equals): Improve debug output;
27888 get variable constructor.
27889 (sem_variable::parse): Do not filter out too early; give up on
27890 volatile and register vars.
27891 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
27892 variables.
27893 * ipa-icf.h (sem_variable::init): Do not set ctor.
27894 (sem_variable::ctor): Remove.
27895
27896 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
27897
27898 PR middle-end/65233
27899 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
27900
27901 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27902
27903 * ipa-icf.c: Include stor-layout.h
27904 (sem_function::compare_cgraph_references): Rename to ...
27905 (sem_item::compare_cgraph_references): ... this one.
27906 (sem_variable::equals_wpa): New function
27907 (sem_variable::equals): Do not check stuff already verified by
27908 equals_wpa.
27909 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
27910 * ipa-icf.h (sem_item): Add compare_cgraph_references.
27911 (sem_function): Remove compare_cgraph_references.
27912 (sem_variable): Turns equals_wpa into non-inline.
27913
27914 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27915
27916 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
27917 (sem_item::add_expr): New function.
27918 (sem_function::hash_stmt): Handle operands of most statements.
27919 (sem_variable::get_hash): Hash the actual constructor.
27920 * ipa-icf.h (sem_item): Add add_expr.
27921 (sem_function): Update prototype of hash_stmt
27922
27923 2015-02-28 Martin Liska <mliska@suse.cz>
27924 Jan Hubicka <hubicka@ucw.cz>
27925
27926 PR ipa/65245
27927 * ipa-icf-gimple.c (func_checker::compare_function_decl):
27928 Remove.
27929 (func_checker::compare_variable_decl): Skip symtab vars.
27930 (func_checker::compare_cst_or_decl): Update.
27931 * ipa-icf.c (sem_function::parse): Do not consider aliases.
27932 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
27933 use correct symtab predicates.
27934 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
27935 (sem_variable::parse): Update comment.
27936 (sem_item_optimizer::build_graph): Consider ultimate aliases
27937 for references.
27938
27939 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27940
27941 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
27942 of OBJ_TYPE_REF.
27943
27944 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27945
27946 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
27947 (sem_variable::merge) Likewise.
27948
27949 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27950
27951 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
27952 target; also match flag_ipa_devirt.
27953
27954 2015-03-01 Martin Liska <mliska@suse.cz>
27955 Jan Hubicka <hubicka@ucw.cz>
27956
27957 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
27958 Validate variable alignment.
27959 * ipa-icf.c (sem_function::equals_private): Be more precise
27960 about non-common function attributes.
27961 (sem_variable::equals): Likewise.
27962
27963 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27964
27965 PR ipa/65237
27966 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
27967 across COMDAT group boundary.
27968
27969 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27970
27971 PR ipa/65232
27972 * ipa-icf.c (clear_decl_rtl): New function.
27973 (sem_function::merge): Clear RTL before forming alias.
27974 (sem_variable::merge): Clear RTL before forming alias.
27975
27976 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
27977
27978 PR ipa/65236
27979 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
27980
27981 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
27982
27983 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
27984 to neon_to_gp<q>.
27985
27986 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27987
27988 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
27989 a typo in the description.
27990
27991 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
27992
27993 PR target/64317
27994 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27995 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
27996 * lra-constraints.c: Include "params.h".
27997 (EBB_PROBABILITY_CUTOFF): Use
27998 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
27999 (lra_inheritance): Use '<' instead of '<=' for
28000 EBB_PROBABILITY_CUTOFF.
28001 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28002 Document change.
28003
28004 2015-02-27 Martin Liska <mliska@suse.cz>
28005
28006 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28007 vector length condition.
28008
28009 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
28010
28011 * doc/extend.texi (x86 transactional memory intrinsics):
28012 Reorganize discussion of _xbegin. Clarify that the return
28013 value is a bit mask. Expand example and move to end of section.
28014
28015 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28016 Aldy Hernandez <aldyh@redhat.com>
28017
28018 PR rtl-optimization/65220
28019 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28020
28021 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28022
28023 PR target/65032
28024 * lra-remat.c (update_scratch_ops): New.
28025 (do_remat): Call it.
28026 * lra.c (lra_register_new_scratch_op): New. Take code from ...
28027 (remove_scratches): ... here.
28028 * lra-int.h (lra_register_new_scratch_op): New prototype.
28029
28030 2015-02-27 Marek Polacek <polacek@redhat.com>
28031
28032 PR c/65040
28033 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28034 -Wformat-signedness anymore.
28035
28036 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28037
28038 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28039 function.
28040 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28041
28042 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28043
28044 * config/s390/s390.c (enum s390_builtin):
28045 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28046 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28047 (s390_init_builtins): Generate new builtin functions.
28048 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28049 (s390_sfpc, s390_efpc): New pattern definitions.
28050
28051 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28052
28053 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28054 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28055 (s390_builtin_decls): New array.
28056 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28057 (s390_builtin_decl): New function.
28058 (TARGET_BUILTIN_DECL): Define macro.
28059
28060 2015-02-27 Richard Biener <rguenther@suse.de>
28061
28062 PR middle-end/63175
28063 * builtins.c (get_object_alignment_2): Make sure to re-apply
28064 the ANDed mask after recursing to its operand gets us a new
28065 misalignment bit position.
28066
28067 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
28068 Martin Liska <mliska@suse.cz>
28069
28070 PR bootstrap/65150
28071 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28072 Use address_matters_p.
28073 (redirect_all_callers, set_addressable): New functions.
28074 (sem_function::merge): Reorganize and fix merging issues.
28075 (sem_variable::merge): Likewise.
28076 (sem_variable::compare_sections): Remove.
28077 * common.opt (fmerge-all-constants, fmerge-constants): Remove
28078 Optimization flag.
28079 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28080 redirect them.
28081 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28082 decl is used.
28083 (address_matters_1): New function.
28084 (symtab_node::address_matters_p): New function.
28085 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28086 check for merged flag.
28087 * cgraph.h (address_matters_p): Declare.
28088 (symtab_node::address_taken_from_non_vtable_p): Remove.
28089 (symtab_node::address_can_be_compared_p): New method.
28090 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28091 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28092 Remove.
28093 (comdat_can_be_unshared_p_1) Use address_matters_p.
28094 (update_vtable_references): Fix formating.
28095 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28096 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28097 * cgraphclones.c: Preserve merged and icf_merged flags.
28098
28099 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
28100
28101 * doc/extend.texi (Function Attributes): Fix spelling and typos.
28102 (Label Attributes): Likewise.
28103 (Cilk Plus Builtins): Likewise.
28104 (ARC SIMD Built-in Functions): Likewise.
28105 (ARM C Language Extensions (ACLE)): Likewise.
28106 (PowerPC Built-in Functions): Likewise.
28107 (PowerPC Hardware Transactional Memory Built-in Functions):
28108 Likewise.
28109
28110 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28111
28112 PR tree-optimization/65216
28113 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28114 new stmt and new SSA_NAME for lhs whenever the arguments have
28115 changed and weren't just swapped. Fix comment typo.
28116
28117 PR tree-optimization/65215
28118 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28119 for PDP endian targets.
28120 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28121 Fix up formatting issues.
28122 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
28123 size is smaller than the original, adjust MEM_REF offset by the
28124 difference of sizes. Use is_gimple_mem_ref_addr instead of
28125 is_gimple_min_invariant test to avoid adding address temporaries.
28126
28127 2015-02-26 Martin Liska <mliska@suse.cz>
28128 Jan Hubicka <hubicka@ucw.cz>
28129
28130 PR ipa/64693
28131 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28132 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28133 (sem_item_optimizer::process_cong_reduction): Include division by
28134 sensitive references.
28135 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28136 * ipa-ref.c (ipa_ref::address_matters_p): New function.
28137 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28138
28139 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
28140
28141 PR target/65192
28142 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28143 Remove.
28144 * config/avr/avr.c: Same.
28145 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28146 Refuse any constant address not in 0..0xbf.
28147 * config/avr/avr.md (*mov<mode>, *movsf): Remove
28148 tiny_valid_direct_memory_access_range from insn conditions.
28149 (mov<mode>): Don't special-case expansion of avrtiny addresses.
28150
28151 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
28152
28153 PR target/61142
28154 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28155 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28156 * config/sh/predicates.md (const_logical_operand): New predicate.
28157 * config/sh/sh.md: Add new peephole2 patterns.
28158
28159 2015-02-26 Marek Polacek <polacek@redhat.com>
28160
28161 PR ipa/65008
28162 * ipa-inline.c (early_inliner): Recompute inline parameters.
28163
28164 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28165
28166 PR target/65171
28167 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28168 instructions with TImode operands are included in the analysis.
28169
28170 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28171
28172 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28173 of an EDGE_FSM_THREAD.
28174
28175 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
28176
28177 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28178
28179 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
28180
28181 PR debug/46102
28182 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28183
28184 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28185
28186 PR tree-optimization/65048
28187 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28188 (thread_through_all_blocks): Call valid_jump_thread_path.
28189 Remove invalid FSM jump-thread paths.
28190
28191 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28192
28193 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28194 (ipa_write_optimization_summaries): Likewise.
28195 * tree-streamer.h: Include data-streamer.h.
28196 (streamer_mode_table): Declare extern variable.
28197 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28198 * lto-streamer-out.c (lto_output_init_mode_table,
28199 lto_write_mode_table): New functions.
28200 (produce_asm_for_decls): Call lto_write_mode_table when streaming
28201 offloading LTO.
28202 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28203 (lto_create_simple_input_block): Add mode_table argument to the
28204 lto_input_block constructors.
28205 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28206 Likewise.
28207 * data-streamer-in.c (string_for_index): Likewise.
28208 * ipa-inline-analysis.c (inline_read_section): Likewise.
28209 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28210 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28211 * lto-streamer-in.c (lto_read_body_or_constructor,
28212 lto_input_toplevel_asms): Likewise.
28213 (lto_input_mode_table): New function.
28214 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28215 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28216 Use bp_pack_machine_mode.
28217 * real.h (struct real_format): Add name field.
28218 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28219 (class lto_input_block): Add mode_table member.
28220 (lto_input_block::lto_input_block): Add mode_table_ argument,
28221 initialize mode_table.
28222 (struct lto_file_decl_data): Add mode_table field.
28223 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28224 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28225 unpack_ts_decl_common_value_fields,
28226 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28227 * tree-streamer.c (streamer_mode_table): New variable.
28228 * real.c (ieee_single_format, mips_single_format,
28229 motorola_single_format, spu_single_format, ieee_double_format,
28230 mips_double_format, motorola_double_format,
28231 ieee_extended_motorola_format, ieee_extended_intel_96_format,
28232 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28233 ibm_extended_format, mips_extended_format, ieee_quad_format,
28234 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28235 decimal_single_format, decimal_double_format, decimal_quad_format,
28236 ieee_half_format, arm_half_format, real_internal_format): Add name
28237 field.
28238 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28239
28240 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
28241
28242 PR target/65161
28243 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28244 reordering for selective scheduling.
28245
28246 2015-02-26 Terry Guo <terry.guo@arm.com>
28247
28248 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28249 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28250 (arm_arch_no_volatile_ce): Declare new global variable.
28251 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28252 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28253 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28254 (TARGET_NO_VOLATILE_CE): New macro.
28255 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28256 volatile memory access in IT block
28257
28258 2015-02-25 Kai Tietz <ktietz@redhat.com>
28259
28260 PR tree-optimization/61917
28261 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28262 that reduc_def_stmt is null.
28263
28264 2015-02-25 Martin Liska <mliska@suse.cz>
28265
28266 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28267 hard register variables.
28268
28269 2015-02-25 Kai Tietz <ktietz@redhat.com>
28270
28271 PR target/64212
28272 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28273 (symtab::noninterposable_alias): Likewise.
28274
28275 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
28276
28277 PR target/65167
28278 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28279 bounds registers.
28280 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28281
28282 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
28283
28284 PR target/64997
28285 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28286 as split condition; force split via '#' in output pattern.
28287
28288 2015-02-25 Richard Biener <rguenther@suse.de>
28289 Kai Tietz <ktietz@redhat.com>
28290
28291 PR tree-optimization/61917
28292 * tree-vect-loop.c (vectorizable_reduction): Allow
28293 vect_internal_def without reduction to exit graceful.
28294
28295 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28296
28297 PR target/65196
28298 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28299 only with NONDEBUG_INSN_P.
28300
28301 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28302
28303 Use variadic macros with avr-log.c.
28304
28305 * config/avr/avr-protos.h (avr_vdump): New prototype.
28306 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28307 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28308 * config/avr/avr-log.c: Adjust comments.
28309 (avr_vdump): New function.
28310 (avr_vadump): Pass caller as 2nd argument instead of format string.
28311 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28312 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28313
28314 2015-02-25 Jakub Jelinek <jakub@redhat.com>
28315
28316 PR lto/64374
28317 * target.def (target_option_stream_in): New target hook.
28318 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28319 targetm.target_option.post_stream_in if non-NULL.
28320 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28321 * doc/tm.texi: Updated.
28322 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28323 function.
28324 (TARGET_OPTION_POST_STREAM_IN): Redefine.
28325
28326 2015-02-24 Jeff Law <law@redhat.com>
28327
28328 PR target/65117
28329 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28330 of operand 0 and operand 2.
28331 (zero_cost_loop_end, loop_end): Similarly.
28332
28333 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
28334
28335 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28336 CXX_MEM_STAT_INFO.
28337
28338 2015-02-24 DJ Delorie <dj@redhat.com>
28339
28340 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28341 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28342 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28343 instead of hardcoding SImode.
28344
28345 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
28346
28347 * omp-low.c (create_omp_child_function): Tag entrypoint
28348 functions with a special attribute.
28349
28350 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28351
28352 PR target/65058
28353 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28354
28355 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
28356
28357 PR rtl-optimization/65123
28358 * lra-remat.c (operand_to_remat): Check hard regs in insn
28359 definition too.
28360
28361 2015-02-24 Nick Clifton <nickc@redhat.com>
28362
28363 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28364 to the assembler.
28365
28366 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
28367
28368 PR libgomp/64625
28369 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28370 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28371 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28372 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28373 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28374 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28375 (BUILT_IN_GOACC_PARALLEL): Specify as
28376 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28377 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28378 * builtin-types.def
28379 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28380 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28381 Remove function types.
28382 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28383 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28384 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28385 New function types.
28386
28387 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
28388
28389 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28390
28391 2015-02-24 Jakub Jelinek <jakub@redhat.com>
28392
28393 PR tree-optimization/65170
28394 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28395 if val[1] < 0, clear also val[2] and return 3.
28396
28397 2015-02-24 Alan Modra <amodra@gmail.com>
28398
28399 PR target/65172
28400 * config/rs6000/rs6000.c (get_memref_parts): Only return true
28401 when *base is a reg. Handle nested plus addresses. Simplify
28402 pre_modify test.
28403
28404 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
28405
28406 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28407 use natural alignment when optimizing for size.
28408
28409 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
28410
28411 PR target/65153
28412 * config/sh/sh.md (movsicc_true+3): Remove peephole.
28413 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28414 * config/sh/sh.c (replace_n_hard_rtx): Remove.
28415
28416 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
28417
28418 PR fortran/63427
28419 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28420 too big for a wide_int. Implement missing wrapping operation.
28421
28422 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
28423
28424 PR target/65163
28425 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28426 instead of const_int 4294901760.
28427
28428 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
28429
28430 * config/avr/t-avr: Fix typo in comment.
28431
28432 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
28433
28434 * doc/rtl.texi (fma): Clarify documentation.
28435
28436 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
28437
28438 PR debug/58123
28439 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28440 over input_location.
28441
28442 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28443
28444 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28445 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28446 restrict alignments to absolute_biggest_alignment.
28447 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28448 Define.
28449 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28450 * doc/tm.texi: Regenerate.
28451 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28452
28453 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
28454
28455 PR target/64172
28456 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28457
28458 2015-02-20 Richard Biener <rguenther@suse.de>
28459
28460 PR tree-optimization/65136
28461 * tree-ssa-propagate.c: Include cfgloop.h.
28462 (replace_phi_args_in): Avoid replacing loop latch edge PHI
28463 arguments with constants.
28464
28465 2015-02-20 Jakub Jelinek <jakub@redhat.com>
28466 Martin Liska <mliska@suse.cz>
28467
28468 PR target/63892
28469 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28470 don't try to create_thunk if stdarg_p. If
28471 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28472 redirect_callers if possible.
28473 (sem_item_optimizer::execute): Call unregister_hooks here...
28474 (ipa_icf_driver): ... instead of here.
28475
28476 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28477
28478 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28479 Mark operand 0 as earlyclobber in 2nd alternative.
28480 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28481 Write negated shift amount into QI lowpart operand 0 and use it
28482 in the shift step.
28483 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28484
28485 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28486
28487 * cgraph.h (clone_function_name_1): Declare.
28488 * cgraphclones.c (clone_function_name_1): New function.
28489 (clone_function_name): Use it.
28490 * lto-partition.c: Include "stringpool.h".
28491 (must_not_rename, maybe_rewrite_identifier)
28492 (validize_symbol_for_target): New static functions.
28493 (privatize_symbol_name): Use must_not_rename.
28494 (promote_symbol): Call validize_symbol_for_target.
28495 (lto_promote_cross_file_statics): Likewise.
28496 (lto_promote_statics_nonwpa): Likewise.
28497
28498 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
28499
28500 PR target/64452
28501 * config/avr/avr.md (pushhi_insn): New insn.
28502 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28503
28504 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28505 Jakub Jelinek <jakub@redhat.com>
28506
28507 * tree-streamer.c (preload_common_nodes): Don't preload
28508 TI_VA_LIST* for offloading.
28509 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28510 in_lto_p.
28511
28512 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
28513
28514 * config/pa/pa.c (pa_emit_move_sequence): Always force
28515 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
28516 note on insn.
28517
28518 * config/pa/pa.c (pa_reloc_rw_mask): New function.
28519 (TARGET_ASM_RELOC_RW_MASK): Define.
28520 (pa_cannot_force_const_mem): Revert previous change.
28521
28522 2015-02-19 Martin Jambor <mjmabor@suse.cz>
28523 Jan Hubicka <hubicka@ucw.cz>
28524
28525 PR ipa/65028
28526 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28527 across jump functions.
28528
28529 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
28530
28531 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28532
28533 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
28534
28535 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28536
28537 2015-02-19 Richard Henderson <rth@redhat.com>
28538
28539 PR middle-end/65074
28540 * varasm.c (default_binds_local_p_2): Don't test node->definition;
28541 test DECL_EXTERNAL independent of symtab_node.
28542
28543 2015-02-19 Jakub Jelinek <jakub@redhat.com>
28544
28545 PR lto/65012
28546 * varpool.c (varpool_node::get_constructor): Return early
28547 if this->lto_file_data is NULL.
28548
28549 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28550
28551 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28552 (rank_for_schedule_debug): Update.
28553 (ready_sort): Make static. Move sorting logic to ...
28554 (ready_sort_debug, ready_sort_real): New static functions.
28555 (schedule_block): Sort both debug insns and real insns in preparation
28556 for ready list trimming. Improve debug output.
28557 * sched-int.h (ready_sort): Remove global declaration.
28558
28559 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
28560
28561 * ipa-icf.c (sem_function::equals_private): Adjust.
28562 (sem_function::bb_dict_test): Take a vec<int> * instead of
28563 auto_vec<int>.
28564 * ipa-icf.h (bb_dict_test): Likewise.
28565
28566 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28567
28568 PR gcov-profile/64634
28569 * tree-eh.c (frob_into_branch_around): Fix up typos
28570 in function comment.
28571 (lower_catch): Put eh_seq resulting from EH lowering of
28572 the cleanup sequence after the cleanup rather than before it.
28573
28574 2015-02-18 Tom de Vries <tom@codesourcery.com>
28575
28576 * common.opt (fstdarg-opt): New option.
28577 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28578 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28579 (@item -fstdarg-opt): New item.
28580
28581 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
28582
28583 PR target/65064
28584 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28585 for common symbols.
28586
28587 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28588
28589 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28590 insn-modes.h.
28591 (ALL_HOST_OBJS): Add mkoffload.o.
28592 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28593
28594 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
28595
28596 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28597 (compare_virtual_tables): Be smarter about skipping typeinfos;
28598 do sane output on virtual table table mismatch.
28599 (warn_odr): Be ready for forward declarations of enums;
28600 output sane info on base mismatch and virtual table mismatch.
28601 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28602 when only one type is polymorphic.
28603 (get_odr_type): Fix hashtable corruption.
28604 (dump_odr_type): Dump mangled names.
28605
28606 2015-02-18 Richard Biener <rguenther@suse.de>
28607
28608 PR tree-optimization/65063
28609 * tree-predcom.c (determine_unroll_factor): Return 1 if we
28610 have replaced looparound PHIs.
28611
28612 2015-02-18 Martin Liska <mliska@suse.cz>
28613
28614 * lto-streamer.c (lto_streamer_init): Encapsulate
28615 streamer_check_handled_ts_structures with checking macro.
28616
28617 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28618
28619 PR ipa/65087
28620 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28621 section if !implicit_section.
28622 (cgraph_node::create_version_clone_with_body): Likewise.
28623 * trans-mem.c (ipa_tm_create_version): Likewise.
28624
28625 2015-02-18 Richard Biener <rguenther@suse.de>
28626
28627 PR tree-optimization/62217
28628 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28629 into BIVs.
28630
28631 2015-02-18 Marek Polacek <polacek@redhat.com>
28632
28633 PR sanitizer/65081
28634 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28635 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28636 is in range [-16K, -1]. Don't issue run-time error if
28637 (ptr > ptr + offset).
28638
28639 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
28640
28641 * doc/install.texi (nvptx-*-none): New section.
28642 * doc/invoke.texi (Nvidia PTX Options): Likewise.
28643 * config/nvptx/nvptx.opt: Update.
28644
28645 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28646 (access_check): New functions, copied from
28647 config/i386/intelmic-mkoffload.c.
28648 (main): For non-installed testing, look in all COMPILER_PATHs for
28649 GCC_INSTALL_NAME.
28650
28651 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28652
28653 2015-02-18 Andrew Pinski <apinski@cavium.com>
28654 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28655
28656 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28657 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28658
28659 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28660
28661 * ipa-visibility.c (function_and_variable_visibility): Only
28662 check locality if node is not already local.
28663 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28664 call_for_symbol_and_aliases instead of
28665 call_for_symbol_thunks_and_aliases.
28666 (ipa_inline): Likewise.
28667 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28668 first walk aliases.
28669 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28670 call_for_symbol_and_aliases.
28671 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28672 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28673 (ipa_propagate_frequency): Update.
28674 (ipa_profile): Add opt_for_fn gueards.
28675
28676 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28677
28678 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28679 * doc/invoke.texi (SH options): Document it.
28680 * config/sh/sh.c (sh_insn_length_adjustment): Check
28681 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28682
28683 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
28684
28685 * common.opt (fipa-cp-alignment): New.
28686 * ipa-cp.c (ipcp_store_alignment_results): Check
28687 flag_ipa_cp_alignment.
28688 * opts.c (default_options_table): Enable -fipa-cp-alignment for
28689 -O2.
28690 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28691 * doc/invoke.texi: Document -fipa-cp-alignment.
28692
28693 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28694
28695 PR target/64793
28696 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28697 to nil. Adjust comments.
28698
28699 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28700
28701 * ipa-visibility.c (function_and_variable_visibility): Only
28702 check locality if node is not already local.
28703 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28704 call_for_symbol_and_aliases instead of
28705 call_for_symbol_thunks_and_aliases.
28706 (ipa_inline): Likewise.
28707 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28708 first walk aliases.
28709 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28710 call_for_symbol_and_aliases.
28711 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28712 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28713 (ipa_propagate_frequency): Update.
28714 (ipa_profile): Add opt_for_fn guards.
28715
28716 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
28717
28718 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28719 skipping of "strange" tokens.
28720
28721 2015-02-17 Jeff Law <law@redhat.com>
28722
28723 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
28724 obsolete comment.
28725
28726 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
28727
28728 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28729 as forcing a HARD_DEP between instructions, thereby
28730 disallowing rewriting to break dependencies.
28731
28732 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28733
28734 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28735 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28736 variables in boundary that have no inlitalizer encoded and are
28737 not aliases.
28738 * varasm.c (default_binds_local_p_2): External definitions do not
28739 count as definitions here.
28740
28741 2015-02-16 Jeff Law <law@redhat.com>
28742
28743 PR tree-optimization/64823
28744 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
28745 statements.
28746 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28747 threading through blocks with PHIs, but no statements.
28748 (thread_through_normal_block): Distinguish between blocks where
28749 we did not process all the statements and blocks with no statements.
28750
28751 2015-02-16 Jakub Jelinek <jakub@redhat.com>
28752 James Greenhalgh <james.greenhalgh@arm.com>
28753
28754 PR ipa/64963
28755 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
28756 section if not linkonce. Fix up formatting.
28757 (cgraph_node::create_version_clone_with_body): Copy section.
28758 * trans-mem.c (ipa_tm_create_version): Likewise.
28759
28760 2015-02-16 Richard Biener <rguenther@suse.de>
28761
28762 PR tree-optimization/65077
28763 * tree-ssa-structalias.c (get_constraint_for_1): Handle
28764 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
28765 (find_func_aliases): Allow float values to carry pointers again.
28766
28767 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28768
28769 * doc/install.texi (Specific): Reorder targets list to put
28770 aarch64 in alphabetical order. Add a link to aarch64*-*-*
28771 from the top menu.
28772
28773 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28774 David Edelsohn <dje.gcc@gmail.com>
28775
28776 PR target/65058
28777 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
28778 mapping class to external variable or function reference.
28779 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
28780 mapping class.
28781
28782 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
28783
28784 PR target/53348
28785 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
28786 ASM_WEAKEN_DECL if defined.
28787
28788 2015-02-16 Richard Biener <rguenther@suse.de>
28789
28790 PR lto/65015
28791 * varasm.c (default_file_start): For LTO produced units
28792 emit <artificial> as file directive.
28793
28794 2015-02-16 Richard Biener <rguenther@suse.de>
28795
28796 PR tree-optimization/63593
28797 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
28798 stmts and releasing SSA names until...
28799 (execute_pred_commoning): ... after processing all chains.
28800
28801 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28802
28803 PR ipa/65059
28804 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
28805 external functions.
28806
28807 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
28808
28809 * doc/bugreport.texi: Adjust section titles throughout the file
28810 to use "Title Case".
28811 * doc/extend.texi: Likewise.
28812 * doc/gcov.texi: Likewise.
28813 * doc/implement-c.texi: Likewise.
28814 * doc/implement-cxx.texi: Likewise.
28815 * doc/invoke.texi: Likewise.
28816 * doc/objc.texi: Likewise.
28817 * doc/standards.texi: Likewise.
28818 * doc/trouble.texi: Likewise.
28819
28820 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
28821
28822 * cgraph.h (symtab_node::has_aliases_p): Simplify.
28823 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
28824 * tree.c (lookup_binfo_at_offset): Make static.
28825 (get_binfo_at_offset): Do not shadow offset; add explanatory
28826 comment.
28827
28828 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
28829
28830 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
28831 for all floading point loads and stores except those using a register
28832 index address.
28833 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
28834 to a register.
28835
28836 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28837
28838 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
28839 (do_estimate_growth_1): Record if any uninlinable edge was seen.
28840 (estimate_growth): Handle uninlinable edges correctly.
28841 (check_callers): New.
28842 (growth_likely_positive): Handle aliases correctly.
28843
28844 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
28845
28846 * ipa-chkp.c: Use iterate_direct_aliases.
28847 * symtab.c (resolution_used_from_other_file_p): Move inline.
28848 (symtab_node::create_reference): Fix formating.
28849 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28850 (symtab_node::iterate_reference): Move inline.
28851 (symtab_node::iterate_referring): Move inline.
28852 (symtab_node::iterate_direct_aliases): Move inline.
28853 (symtab_node::used_from_object_file_p_worker): Inline into ...
28854 (symtab_node::used_from_object_file_p): ... this one; move inline.
28855 (symtab_node::call_for_symbol_and_aliases): Move inline;
28856 use iterate_direct_aliases.
28857 (symtab_node::call_for_symbol_and_aliases_1): New method.
28858 (cgraph_node::call_for_symbol_and_aliases): Move inline;
28859 use iterate_direct_aliases.
28860 (cgraph_node::call_for_symbol_and_aliases_1): New method.
28861 (varpool_node::call_for_node_and_aliases): Rename to ...
28862 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
28863 use iterate_direct_aliases.
28864 (varpool_node::call_for_symbol_and_aliases_1): New method.
28865 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
28866 (ipa_discover_readonly_nonaddressable_var): Update.
28867 * ipa-devirt.c: Fix formating.
28868 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
28869 Move inline.
28870 (cgraph_node::call_for_symbol_and_aliases): Move inline.
28871 (cgraph_node::call_for_symbol_and_aliases_1): New function..
28872 * cgraph.h (used_from_object_file_p_worker): Remove.
28873 (resolution_used_from_other_file_p): Move inline.
28874 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
28875 (symtab_node::iterate_reference): Move inline.
28876 (symtab_node::iterate_referring): Move inline.
28877 (symtab_node::iterate_direct_aliases): Move inline.
28878 (symtab_node::used_from_object_file_p_worker): Inline into ...
28879 (symtab_node::used_from_object_file_p): Move inline.
28880 * tree-emutls.c (ipa_lower_emutls): Update.
28881 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
28882 (varpool_node::call_for_node_and_aliases): Remove.
28883
28884 2015-02-14 Jakub Jelinek <jakub@redhat.com>
28885
28886 PR tree-optimization/62209
28887 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
28888 op == range->exp, insert seq and gimplified code after labels
28889 instead of after the phi.
28890
28891 2015-02-13 Jeff Law <law@redhat.com>
28892
28893 PR bootstrap/65060
28894 Revert my change for tree-optimization/64823.
28895
28896 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28897
28898 PR tree-optimization/65053
28899 * tree-ssa-phiopt.c (value_replacement): When moving assign before
28900 cond, either reset VR on lhs or set it to phi result VR.
28901
28902 2015-02-13 Jeff Law <law@redhat.com>
28903
28904 PR tree-optimization/64823
28905 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
28906 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
28907 threading through blocks with PHIs, but no statements.
28908 (thread_through_normal_block): Distinguish between blocks where
28909 we did not process all the statements and blocks with no statements.
28910
28911 PR rtl-optimization/47477
28912 * match.pd (convert (plus/minus (convert @0) (convert @1): New
28913 simplifier to narrow arithmetic.
28914
28915 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
28916
28917 PR ipa/65028
28918 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
28919 polymorphic call info when type is not known to be preserved.
28920
28921 2015-02-13 Maritn Jambor <mjambor@suse.cz>
28922
28923 PR ipa/65028
28924 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
28925 (inline_call): Use it.
28926
28927 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
28928
28929 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
28930 GOMP_DEVICE_NVIDIA_PTX.
28931
28932 2015-02-13 Jakub Jelinek <jakub@redhat.com>
28933
28934 PR ipa/65034
28935 * stmt.c (emit_case_nodes): Use void_type_node instead of
28936 NULL_TREE as LABEL_DECL type.
28937
28938 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
28939
28940 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
28941 constraints.
28942 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
28943 symbolic references to data to be forced to constant memory on the
28944 SOM target.
28945
28946 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
28947
28948 PR tree-optimization/65002
28949 * tree-cfg.c (pass_data_fixup_cfg): Don't update
28950 SSA on start.
28951 * tree-sra.c (some_callers_have_no_vuse_p): New.
28952 (ipa_early_sra): Reject functions whose callers
28953 assume function is read only.
28954
28955 2015-02-13 Richard Biener <rguenther@suse.de>
28956
28957 PR lto/65015
28958 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
28959 for LTO produced CUs.
28960
28961 2015-02-13 Bin Cheng <bin.cheng@arm.com>
28962
28963 PR tree-optimization/64705
28964 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
28965 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
28966 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
28967 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
28968 expand_simple_operations.
28969
28970 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
28971 Richard Henderson <rth@redhat.com>
28972
28973 PR rtl/32219
28974 * cgraphunit.c (cgraph_node::finalize_function): Set definition
28975 before notice_global_symbol.
28976 (varpool_node::finalize_decl): Likewise.
28977 * varasm.c (default_binds_local_p_2): Rename from
28978 default_binds_local_p_1, add weak_dominate argument. Use direct
28979 returns instead of assigning to local variable. Unify varpool and
28980 cgraph paths via symtab_node. Reject undef weak variables before
28981 testing visibility. Reorder tests for simplicity.
28982 (default_binds_local_p): Use default_binds_local_p_2.
28983 (default_binds_local_p_1): Likewise.
28984 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
28985 via symtab_node.
28986 (default_elf_asm_output_external): Emit visibility when specified.
28987
28988 2015-02-13 Alan Modra <amodra@gmail.com>
28989
28990 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
28991 code setting up r11 for out-of-line fp restore.
28992
28993 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
28994
28995 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
28996 (muser-mode): Likewise.
28997
28998 2015-02-13 Alan Modra <amodra@gmail.com>
28999
29000 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29001 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29002
29003 2015-02-12 David Howells <dhowells@redhat.com>
29004
29005 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29006 warning.
29007 * tree-ssa-uninit.c (dump_predicates): Likewise.
29008 * opts.c (print_filtered_help): Likewise.
29009
29010 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29011
29012 * dwarf2out.c (output_die): Use "%s", name instead of name to
29013 avoid -Wformat-security warning.
29014
29015 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29016 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29017 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29018 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29019
29020 2015-02-12 Jason Merrill <jason@redhat.com>
29021
29022 * common.opt (-flifetime-dse): New.
29023
29024 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29025
29026 PR sanitizer/65019
29027 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29028
29029 PR tree-optimization/65014
29030 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29031 use original second operand of arg0 or arg1 instead of
29032 that adjusted by STRIP_NOPS.
29033
29034 2015-02-11 Jeff Law <law@redhat.com>
29035
29036 PR target/63347
29037 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29038 that needs to be queued, just queue it for a single cycle.
29039
29040 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
29041
29042 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29043 bodies of thunks; comment on why.
29044 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29045 symbols are extern.
29046
29047 2015-02-11 Richard Henderson <rth@redhat.com>
29048
29049 PR sanitize/65000
29050 * tree-eh.c (mark_reachable_handlers): Mark source and destination
29051 regions of __builtin_eh_copy_values.
29052
29053 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29054
29055 PR middle-end/65003
29056 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29057 ultimate alias is MEM with SYMBOL_REF satisfying
29058 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
29059 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29060
29061 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
29062
29063 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29064 "diagnostic-core.h".
29065 (main): Initialize progname, and call diagnostic_initialize.
29066
29067 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29068 instead of __OPENMP_TARGET__.
29069
29070 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29071 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29072 hard-coding PTX_ID.
29073
29074 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
29075
29076 * doc/sourcebuild.texi (pie_enabled): Document.
29077
29078 2015-02-11 Martin Liska <mliska@suse.cz>
29079
29080 PR ipa/64813
29081 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29082 a return value for call to a function that is noreturn.
29083
29084 2015-02-11 Richard Biener <rguenther@suse.de>
29085
29086 PR lto/65015
29087 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29088 and -fresolution.
29089
29090 2015-02-11 Andrew Pinski <apinski@cavium.com>
29091
29092 PR target/64893
29093 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29094 Change the first argument type to size_type_node and add another
29095 size_type_node.
29096 (aarch64_simd_expand_builtin): Handle the new argument to
29097 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29098 print an out when the first two arguments are not
29099 nonzero integer constants.
29100 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29101 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29102
29103 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29104
29105 PR target/61925
29106 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29107 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29108 (ix86_set_current_function): Rewritten.
29109 (ix86_add_new_builtins): Temporarily clear current_target_pragma
29110 when creating builtin fndecls.
29111
29112 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29113
29114 PR ipa/65005
29115 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29116 function.
29117 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29118 have no comdat group.
29119 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29120 (lto_output_varpool_node): Always output alias info.
29121 (output_refs): Output refs of boundary aliases, too.
29122 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29123 (output_symtab): Output call eges in thunks in boundary.
29124 (get_alias_symbol): Remove.
29125 (input_node, input_varpool_node): Do not special case weakrefs.
29126 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29127 alias and thunks targets in the boundary; do not take removed symbols
29128 from their comdat groups.
29129 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29130 (cgraph_node::global_info): Remove.
29131 (cgraph_node::rtl_info): Look through aliases and thunks.
29132 * cgrpah.h (global_info): Remove.
29133 (non_local_p): Remove.
29134
29135 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29136 Sandra Loosemore <sandra@codesourcery.com>
29137
29138 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29139 to inline asm. List dialects in proper order.
29140
29141 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29142 Sandra Loosemore <sandra@codesourcery.com>
29143
29144 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29145
29146 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29147
29148 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29149 modified) reference to Solaris.
29150
29151 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
29152
29153 * doc/extend.texi (Extended Asm): Fix typos.
29154
29155 2015-02-10 Jakub Jelinek <jakub@redhat.com>
29156
29157 PR sanitizer/65004
29158 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29159
29160 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
29161
29162 PR target/64661
29163 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29164 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29165 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29166 * config/sh/constraints.md (Ara, Add): New constraints.
29167 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29168 predicates.
29169 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29170 atomic_mem_operand_0. Don't use force_reg on the memory address.
29171 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29172 Sra constraint. Convert to insn_and_split. Add workaround for
29173 PR 64974.
29174 (atomic_compare_and_swap<mode>_hard): Copy to
29175 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
29176 Use atomic_mem_operand_0 predicate.
29177 (atomic_compare_and_swap<mode>_soft_gusa,
29178 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29179 AraAdd constraints.
29180 (atomic_compare_and_swap<mode>_soft_tcb,
29181 atomic_compare_and_swap<mode>_soft_imask,
29182 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29183 atomic_mem_operand_0 predicate and SraSdd constraints.
29184 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29185 constraint.
29186 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29187 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
29188 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29189 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
29190 force_reg on the memory address.
29191 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29192 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29193 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29194 atomic_mem_operand_1 predicate and Sra constraint.
29195 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29196 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29197 Use atomic_mem_operand_1 predicate.
29198 (atomic_<fetchop_name><mode>_hard): Copy to
29199 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29200 Use atomic_mem_operand_1 predicate.
29201 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29202 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29203 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
29204 insn_and_split. Use atomic_mem_operand_1 predicate.
29205 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29206 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
29207 Use atomic_mem_operand_1 predicate.
29208 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29209 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29210 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29211 in generated insn with original mem operand before emitting the insn.
29212 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29213 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29214 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29215 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29216 Use atomic_mem_operand_1 predicate and AraAdd constraints.
29217 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29218 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29219 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29220 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29221 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29222 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29223 atomic_not_fetch<mode>_soft_tcb,
29224 atomic_<fetchop_name>_fetch<mode>_soft_imask,
29225 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29226 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29227 Use atomic_mem_operand_1 predicate and SraSdd constraints.
29228
29229 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
29230
29231 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29232 and 3 earlyclobber operands.
29233
29234 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29235
29236 * common.opt (fstack-reuse): Mark as optimization.
29237
29238 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29239
29240 PR ipa/64982
29241 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29242
29243 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
29244
29245 PR tree-optimization/64326
29246 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29247
29248 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
29249
29250 PR gcov-profile/61889
29251 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29252
29253 2015-02-10 Richard Biener <rguenther@suse.de>
29254
29255 PR tree-optimization/64995
29256 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29257 value we use is final.
29258 (visit_reference_op_store): Always valueize op.
29259 (visit_use): Properly valueize vuses.
29260
29261 2015-02-10 Richard Biener <rguenther@suse.de>
29262
29263 PR tree-optimization/64909
29264 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29265 pass a scalar-stmt count estimate to the cost model.
29266 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29267
29268 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
29269
29270 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29271 enabled by default together with var-tracking.
29272
29273 2015-02-10 Nick Clifton <nickc@redhat.com>
29274
29275 * config/rl78/rl78.c: Remove DIV attribute code accidentally
29276 included in previous rl78 commit.
29277
29278 2015-02-10 Richard Biener <rguenther@suse.de>
29279
29280 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29281 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29282 return the bitpack.
29283
29284 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29285
29286 PR gcov-profile/61889
29287 * config.in: regenerate.
29288 * configure.in: Likewise.
29289 * configure.ac: Check for ftw.h.
29290 * gcov-tool.c: Check for ftw.h before using nftw.
29291
29292 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29293
29294 PR lto/64076
29295 * ipa-visibility.c (update_visibility_by_resolution_info): Only
29296 assert when not in lto mode.
29297
29298 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29299
29300 * ira-color.c (setup_left_conflict_sizes_p): Simplify
29301 initialization/assignment of conflict_size.
29302
29303 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
29304
29305 PR ipa/64978
29306 * ipa-cp.c (gather_caller_stats): Skip thunks.
29307 (propagate_constants_topo): Skip aliases.
29308
29309 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
29310
29311 PR target/64761
29312 * config/sh/sh.c (sh_option_override): Don't change
29313 -freorder-blocks-and-partition to -freorder-blocks even when
29314 unwinding is enabled.
29315 (sh_can_follow_jump): Return false if the followee jump is
29316 a crossing jump when -freorder-blocks-and-partition is specified.
29317 * config/sh/sh.md (*jump_compact_crossing): New insn.
29318
29319 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
29320 Kaz Kojima <kkojima@gcc.gnu.org>
29321
29322 PR target/64761
29323 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29324 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29325 (sh_can_redirect_branch): Rename to ...
29326 (sh_can_follow_jump): ... this. Constify argument types.
29327 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29328 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29329 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29330 * doc/tm.texi: Regenerate.
29331
29332 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29333
29334 PR sanitizer/64981
29335 * builtins.c (expand_builtin): Call targetm.expand_builtin
29336 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29337
29338 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29339
29340 PR ipa/61548
29341 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29342
29343 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29344
29345 PR ipa/63566
29346 * ipa-icf.c (set_local): New function.
29347 (sem_function::merge): Use it.
29348
29349 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29350
29351 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29352 (add_type_duplicate): Fix comparison of BINFOs.
29353
29354 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29355
29356 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29357 on getting VOID pointer.
29358
29359 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29360
29361 PR target/64979
29362 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29363 va_list escapes.
29364
29365 2015-02-09 Richard Biener <rguenther@suse.de>
29366
29367 * genmatch.c (replace_id): Copy expr_type.
29368
29369 2015-02-09 Richard Biener <rguenther@suse.de>
29370
29371 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29372 (streamer_write_tree_bitfields): Declare.
29373 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29374 properly unpack padding.
29375 (unpack_value_fields): Inline ...
29376 (streamer_read_tree_bitfields): ... here.
29377 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29378 and properly add padding bits.
29379 (streamer_pack_tree_bitfields): Fold into ...
29380 (streamer_write_tree_bitfields): ... this new function,
29381 exposing the bitpack object.
29382 * lto-streamer-out.c (lto_write_tree_1): Call
29383 streamer_write_tree_bitfields.
29384
29385 2015-02-09 Richard Biener <rguenther@suse.de>
29386
29387 PR tree-optimization/54000
29388 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29389 (struct ivopts_data): Add loop_loc member.
29390 (tree_ssa_iv_optimize_loop): Dump loop location.
29391 (create_new_ivs): Likewise, also dump number of IVs generated.
29392
29393 2015-02-09 Martin Liska <mliska@suse.cz>
29394
29395 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29396 just if not yet registered.
29397 (ipa_icf_generate_summary): Register callgraph hooks.
29398
29399 2015-02-08 Andrew Pinski <apinski@cavium.com>
29400
29401 * config/aarch64/aarch64.c (gty_dummy): Delete.
29402
29403 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29404
29405 PR ipa/63566
29406 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29407 (cgraph_node::local_p): Remove thunk related FIXME.
29408
29409 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29410
29411 PR ipa/63566
29412 * i386.c (ix86_function_regparm): Look through aliases to see if callee
29413 is local and optimized.
29414 (ix86_function_sseregparm): Likewise; also use target's SSE math
29415 settings; error out instead of silently generating wrong code
29416 on mismatches.
29417 (init_cumulative_args): Look through aliases.
29418
29419 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29420
29421 PR ipa/63566
29422 * ipa-split.c (execute_split_functions): Split if function has aliases.
29423
29424 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29425
29426 PR ipa/63566
29427 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29428 aliases before trying to expand it.
29429 (cgraph_node::expand_thunk): Fix formating.
29430
29431 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
29432
29433 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29434 (Using Assembly Language with C): Expand introduction.
29435 (Basic Asm): Copy-edit. Add more information about uses of
29436 basic asm.
29437 (Extended Asm): Copy-edit. Document new escape syntax and
29438 %l[label] syntax.
29439 (Global Reg Vars): Copy-edit.
29440 (Local Reg Vars): Likewise.
29441
29442 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
29443
29444 PR debug/2714
29445 PR bootstrap/64256
29446 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29447 (DBX_CONTIN_CHAR): Define.
29448
29449 2015-02-06 Sebastian Pop <s.pop@samsung.com>
29450 Brian Rzycki <b.rzycki@samsung.com>
29451
29452 PR tree-optimization/64878
29453 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29454 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29455 Stop recursion at loop phi nodes after having visited a loop phi node.
29456
29457 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29458
29459 * toplev.c (process_options): Change flag_ipa_ra before creating
29460 optimization_{default,current}_node.
29461
29462 PR ipa/64896
29463 * cgraphunit.c (cgraph_node::expand_thunk): If
29464 restype is not is_gimple_reg_type nor the thunk_fndecl
29465 returns aggregate_value_p, set restmp to a temporary variable
29466 instead of resdecl.
29467
29468 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
29469
29470 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29471
29472 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29473
29474 PR target/64205
29475 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29476 add a general secondary reload handler for SDmode, unless we have
29477 both read/write support for SDmode.
29478
29479 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29480
29481 PR middle-end/64937
29482 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29483 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29484 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29485 1 before, push it to abstract_vec.
29486 (dwarf2out_abstract_function): Adjust caller. Don't call
29487 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29488 DECL_ABSTRACT_P flags for all abstract_vec elts.
29489
29490 2015-02-06 Renlin Li <renlin.li@arm.com>
29491
29492 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29493 complex gimple.
29494 * tree-ssa.c (execute_update_addresses_taken): Likewise.
29495
29496 2015-02-06 Jeff Law <law@redhat.com>
29497
29498 PR target/64889
29499 * config/h8300/h8300.c (push): New argument "in_prologue".
29500 Pass "in_prologue" along to "F".
29501 (h8300_push_pop): Corresponding changes.
29502 (h8300_expand_prologue): Likewise.
29503 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
29504
29505 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29506
29507 PR rtl-optimization/64957
29508 PR debug/64817
29509 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29510 IOR rather than for AND.
29511
29512 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
29513
29514 PR target/62631
29515 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29516 of shift-add and (add + shift) operations. Rename local variable.
29517
29518 2015-02-05 Jeff Law <law@redhat.com>
29519
29520 PR target/17306
29521 * config/h8300/constraints.md (U): Correctly dectect
29522 "eightbit_data" memory addresses.
29523 * config/h8300/h8300.c (eightbit_constant_address_p): Also
29524 handle (const (plus (symbol_ref (x)))) where x is declared
29525 as an 8-bit data memory address.
29526 * config/h8300/h8300.md (call, call_value): Correctly detect
29527 "funcvec" functions.
29528
29529 PR target/43264
29530 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29531 24 to 28 bits for the H8/300.
29532
29533 2015-02-06 Alan Modra <amodra@gmail.com>
29534
29535 PR target/64876
29536 * config/rs6000/rs6000.c (chain_already_loaded): New function.
29537 (rs6000_call_aix): Use it.
29538
29539 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
29540
29541 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29542 check.
29543
29544 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
29545
29546 * config/h8300/constraints.md ("U" constraint): Use strict
29547 variant of REG_OK_FOR_BASE_P after reload has started.
29548
29549 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
29550
29551 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29552 define to zero if !TARGET_NEON.
29553 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29554
29555 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29556 Trevor Saunders <tsaunders@mozilla.com>
29557
29558 PR ipa/61548
29559 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29560
29561 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29562
29563 PR ipa/61548
29564 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29565 when removing varpool nodes.
29566
29567 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29568
29569 PR ipa/61548
29570 * varpool.c (varpool_node::remove): Fix order of variables.
29571
29572 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29573
29574 PR ipa/64686
29575 * ipa-inline.c (inline_small_functions): Fix ordering issue between
29576 speculation resolution and key updates.
29577
29578 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29579
29580 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29581 about not letting any speculative edges unupdated.
29582
29583 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29584
29585 PR gcov/64123
29586 * gcov-io.c (gcov_var): Export.
29587
29588 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29589
29590 PR middle-end/64922
29591 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29592 edges that become speculative.
29593
29594 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29595
29596 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29597 or DW_LANG_Fortran08.
29598 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29599 DW_LANG_Fortran08.
29600 (gen_compile_unit_die): Handle "GNU Fortran2003" and
29601 "GNU Fortran2008" language strings.
29602 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29603 * langhooks.h (lang_GNU_Fortran): New prototype.
29604 * langhooks.c (lang_GNU_Fortran): New function.
29605 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29606 lang_GNU_Fortran.
29607
29608 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29609
29610 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29611 (RTX_OK_FOR_OLO10_P): Likewise.
29612
29613 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29614
29615 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29616
29617 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29618
29619 PR middle-end/64922
29620 * gimple.c: Include gimple-ssa.h.
29621 (maybe_remove_unused_call_args): New function.
29622 * gimple.h (maybe_remove_unused_call_args): Declare.
29623 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29624 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29625 * gimple-fold.c (gimple_fold_call): Likewise.
29626
29627 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
29628
29629 PR rtl-optimization/64905
29630 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29631 pointer alignment if it isn't needed.
29632
29633 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29634
29635 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29636 cortex-a72.cortex-a53.
29637 * config/aarch64/aarch64-tune.md: Regenerate.
29638 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29639
29640 2015-02-04 Nick Clifton <nickc@redhat.com>
29641
29642 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29643 inside a MEM.
29644
29645 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29646
29647 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29648 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29649 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29650 of DEF_BUILTIN.
29651 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29652 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29653 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29654 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29655 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29656 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29657 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29658 * tree-core.h (enum built_in_function): In between
29659 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29660 for builtins that use DEF_BUILTIN_CHKP macro.
29661
29662 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
29663
29664 PR debug/64817
29665 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29666 operands for tcc_comparison exprs. Fix typos.
29667
29668 PR debug/64817
29669 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29670 of two XORs that have an intervening AND or IOR.
29671
29672 PR debug/64817
29673 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29674 simplification of XOR of AND to not allocate new rtx before
29675 committing to a simplification.
29676
29677 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29678
29679 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29680 manual swaps in all peepholes.
29681
29682 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29683
29684 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29685 of manual swapping implementation.
29686 (aarch64_expand_vec_perm_const_1): Likewise.
29687
29688 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
29689
29690 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29691 (generic_addrcost_table): Remove NAMED_PARAM.
29692 (cortexa57_addrcost_table): Likewise.
29693 (xgene1_addrcost_table): Likewise.
29694 (generic_regmove_table): Likewise.
29695 (cortexa53_regmove_table): Likewise.
29696 (xgene1_regmove_table): Likewise.
29697 (generic_vector_table): Likewise.
29698 (cortexa57_vector_table): Likewise.
29699 (xgene1_vector_table): Likewise.
29700 (generic_tunings): Likewise.
29701 (cortexa53_tunings): Likewise.
29702 (cortexa57_tunings): Likewise.
29703 (xgene1_tunings): Likewise.
29704
29705 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29706
29707 * config/arm/arm-cores.def: Add cortex-a72 and
29708 cortex-a72.cortex-a53.
29709 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29710 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29711 * config/arm/arm-tune.md: Regenerate.
29712 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29713 "cortex-a72.cortex-a53".
29714 * doc/invoke.texi (ARM Options/-mtune): Likewise.
29715
29716 2015-02-04 Nick Clifton <nickc@redhat.com>
29717
29718 PR target/64408
29719 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29720 of accepted codes.
29721 (nonimmediate_di_operand): Likewise.
29722
29723 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29724 prefixes of known F5 using MSP430 MCUs.
29725
29726 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29727
29728 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29729 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29730 instead of __builtin_sqrt.
29731
29732 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
29733
29734 * varasm.c (do_assemble_alias): Follow transparent alias
29735 chain for target.
29736 (default_assemble_visibility): Follow transparent alias
29737 chain for decl name.
29738
29739 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
29740
29741 PR middle-end/62103
29742 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
29743 to compute size of referenced value in the constant case.
29744
29745 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29746
29747 PR rtl-optimization/64756
29748 * cse.c (invalidate_dest): New function.
29749 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
29750 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
29751 invalidate and do not record it.
29752
29753 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
29754
29755 PR target/64660
29756 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
29757 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
29758 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
29759 atomic_nand<mode>_soft_tcb): New insns.
29760 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
29761 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
29762 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
29763 Split into atomic_not_fetchsi_hard if operands[0] is unused.
29764 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
29765 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29766 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
29767 atomic_not<mode>_hard if operands[0] is unused.
29768 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
29769 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
29770 if operands[0] is unused.
29771 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
29772 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
29773 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
29774 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29775 unused.
29776 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
29777 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29778 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
29779 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
29780 if operands[0] is unused.
29781 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
29782 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
29783 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
29784 atomic_nand_fetchsi_hard if operands[0] is unused.
29785 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
29786 atomic_nand<mode>_hard if operands[0] is unused.
29787 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
29788 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
29789 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
29790 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29791 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
29792 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
29793 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
29794 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
29795 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
29796 atomic_not<mode>_hard if operands[0] is unused.
29797 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
29798 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
29799 unused.
29800 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29801 into atomic_not<mode>_soft_tcb if operands[0] is unused.
29802 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
29803 atomic_nand<mode>_hard if operands[0] is unused.
29804 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
29805 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
29806
29807 2015-02-03 David Malcolm <dmalcolm@redhat.com>
29808
29809 PR jit/64810
29810 * Makefile.in (GCC_OBJS): Add gcc-main.o.
29811 * gcc-main.c: New file, containing "main" taken from gcc.c.
29812 * gcc.c (do_self_spec): Free decoded_options.
29813 (class driver): Move declaration to gcc.h.
29814 (main): Move declaration and implementation to new file
29815 gcc-main.c.
29816 (driver_get_configure_time_options): New function.
29817 * gcc.h (class driver): Move this declaration here, from
29818 gcc.c.
29819 (driver_get_configure_time_options): New declaration.
29820
29821 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
29822
29823 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
29824 cross-module inlining.
29825 * cgraph.h (cgraph_node): Add flag merged.
29826 * ipa-icf.c (sem_function::merge): Maintain it.
29827
29828 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
29829
29830 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
29831 instead of OBJECT_P.
29832
29833 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
29834
29835 PR target/62631
29836 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
29837 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
29838 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
29839 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
29840
29841 2015-02-03 Jakub Jelinek <jakub@redhat.com>
29842
29843 PR other/63504
29844 * combine.c (reg_n_sets_max): New variable.
29845 (can_change_dest_mode, reg_nonzero_bits_for_combine,
29846 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
29847 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
29848 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
29849 (rest_of_handle_combine): Initialize reg_n_sets_max.
29850
29851 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
29852
29853 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
29854 if some always_inline was inlined, apply changes before inlining
29855 heuristically.
29856
29857 2015-02-02 David Malcolm <dmalcolm@redhat.com>
29858
29859 PR jit/64810
29860 * config/arm/arm.c (arm_option_override): Set
29861 arm_selected_arch/cpu/tune to NULL on entry.
29862
29863 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
29864 Andrew Pinski <pinskia@gcc.gnu.org>
29865 Jakub Jelinek <jakub@gcc.gnu.org>
29866
29867 PR target/64231
29868 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
29869 integer typing for small model. Use IN_RANGE.
29870
29871 2015-02-02 Richard Biener <rguenther@suse.de>
29872
29873 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
29874 * tree-vrp.c (vrp_valueize_1): Likewise.
29875
29876 2015-02-02 Alan Modra <amodra@gmail.com>
29877
29878 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
29879 than mem for toc_restore.
29880 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
29881 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
29882 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
29883
29884 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
29885
29886 PR target/64047
29887 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
29888 explicit default options.
29889
29890 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
29891
29892 PR ipa/64872
29893 * ipa-utils.c (ipa_merge_profiles): Add release argument.
29894 * ipa-icf.c (sem_function::merge): Do not release body when merging.
29895 * ipa-utils.h (ipa_merge_profiles): Update prototype.
29896
29897 2015-02-01 Jakub Jelinek <jakub@redhat.com>
29898
29899 PR debug/64817
29900 * cfgexpand.c (deep_ter_debug_map): New variable.
29901 (avoid_deep_ter_for_debug): New function.
29902 (expand_debug_expr): If TERed SSA_NAME is in
29903 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
29904 instead of trying to expand SSA_NAME's def stmt.
29905 (expand_debug_locations): When expanding debug bind
29906 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
29907 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
29908 value.
29909 (pass_expand::execute): Call avoid_deep_ter_for_debug on
29910 all debug bind stmts. Delete deep_ter_debug_map after
29911 expand_debug_location if non-NULL and clear it.
29912
29913 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
29914
29915 PR target/64851
29916 * config/sh/sync.md (atomic_fetch_notsi_hard,
29917 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
29918 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
29919 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
29920 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
29921 atomic_not_fetch<mode>_soft_imask): New insns.
29922
29923 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29924
29925 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
29926 (rank_for_schedule_debug): Split from ...
29927 (rank_for_schedule): ... this.
29928 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
29929 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
29930
29931 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29932
29933 * doc/md.texi (Machine Constraints): Alphabetize table by target.
29934 * doc/extend.texi (x86 Variable Attributes): Move section to
29935 correct alphabetization after renaming.
29936 (x86 Type Attributes): Likewise.
29937 (Target Builtins): Re-alphabetize menu.
29938 (x86 Built-in Functions): Move section to correct alphabetization
29939 after renaming.
29940 (x86 transactional memory intrinsics): Likewise.
29941 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
29942 and x86 Windows Options in table and menu.
29943 (x86 Options): Move section to correct alphabetization after
29944 renaming.
29945 (x86 Windows Options): Likewise.
29946
29947 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
29948
29949 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
29950 preferred names of the architecture and its 32- and 64-bit
29951 variants.
29952 * doc/invoke.texi: Likewise.
29953 * doc/md.texi: Likewise.
29954
29955 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29956
29957 PR target/64882
29958 * config/i386/predicates.md (address_no_seg_operand): Reject
29959 non-CONST_INT_P operands in invalid mode.
29960
29961 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
29962
29963 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
29964 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
29965 * config/i386/predicates.md (address_no_seg_operand): Call
29966 address_operand with VOIDmode.
29967 (vsib_address_operand): Ditto.
29968 (address_mpx_no_base_operand): Ditto.
29969 (address_mpx_no_index_operand): Ditto.
29970
29971 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29972
29973 PR target/64688
29974 * lra-constraints.c (original_subreg_reg_mode): New.
29975 (simplify_operand_subreg): Try to simplify subreg of const. Use
29976 original_subreg_reg_mode for it.
29977 (swap_operands): Update original_subreg_reg_mode.
29978 (curr_insn_transform): Set up original_subreg_reg_mode.
29979
29980 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
29981
29982 PR target/64617
29983 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
29984 function.
29985 (process_alt_operands): Use it.
29986 (curr_insn_transform): Check the optional reload pseudo class is
29987 ok for the mode.
29988
29989 2015-01-30 Joseph Myers <joseph@codesourcery.com>
29990
29991 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
29992 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
29993 prototype.
29994 * toplev.h (init_asm_output): Update comment on use of
29995 UNKNOWN_LOCATION with fatal_error.
29996 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
29997 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
29998 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
29999 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30000 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30001 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30002 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30003 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30004 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30005 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30006 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30007 fatal_error changed to pass input_location as first argument.
30008
30009 2015-01-30 Martin Liska <mliska@suse.cz>
30010
30011 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30012 in #pragma GCC diagnostic guards.
30013
30014 2015-01-30 Richard Biener <rguenther@suse.de>
30015
30016 PR tree-optimization/64829
30017 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30018 not add a widening conversion pattern but hand off extra
30019 widenings to callers.
30020 (vect_recog_widen_mult_pattern): Handle extra widening produced
30021 by vect_handle_widen_op_by_const.
30022 (vect_recog_widen_shift_pattern): Likewise.
30023 (vect_pattern_recog_1): Remove excess vertical space in dumping.
30024 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30025 (vect_init_vector_1): Likewise.
30026 (vect_get_vec_def_for_operand): Likewise.
30027 (vect_finish_stmt_generation): Likewise.
30028 (vectorizable_load): Likewise.
30029 (vect_analyze_stmt): Likewise.
30030 (vect_is_simple_use): Likewise.
30031
30032 2015-01-29 Jeff Law <law@redhat.com>
30033
30034 * combine.c (try_combine): Fix typo in comment.
30035
30036 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
30037
30038 PR target/64580
30039 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30040 (rs6000_stack_info): Add assert.
30041 (rs6000_output_savres_externs): New function, split off from...
30042 (rs6000_output_function_prologue): ... here. Do not call it for
30043 thunks.
30044
30045 2015-01-29 Jeff Law <law@redhat.com>
30046
30047 PR target/15184
30048 * combine.c (try_combine): If I0 is a memory load and I3 a store
30049 to a related address, increase the "goodness" of doing a 4-insn
30050 combination with I0-I3.
30051 (make_field_assignment): Handle SUBREGs in the ior+and case.
30052
30053 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
30054
30055 PR tree-optimization/64746
30056 * tree-if-conv.c (mask_exists): New function.
30057 (predicate_mem_writes): Save created mask with given size for further
30058 use.
30059 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30060 (ifcvt_repair_bool_pattern): Collect all statements that are root
30061 of bool pattern and use iterative algorithm to remove multiple uses
30062 of predicates, display number of required iterations.
30063
30064 2015-01-29 Richard Biener <rguenther@suse.de>
30065
30066 PR tree-optimization/64853
30067 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30068 stmt will get simulated again.
30069 * tree-ssa-ccp.c (valueize_op_1): Likewise.
30070
30071 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30072
30073 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30074 return_in_pc. Remove redundant assignments.
30075 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30076 (arm_expand_epilogue): Don't compare boolean with true in if condition.
30077
30078 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
30079
30080 * config/i386/i386.c (ix86_mode_after): Make static.
30081
30082 2015-01-29 Richard Biener <rguenther@suse.de>
30083
30084 PR tree-optimization/64844
30085 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30086 dump cost model analysis.
30087 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30088 Do not register adjusted load/store costs here.
30089
30090 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30091 Uros Bizjak <ubizjak@gmail.com>
30092
30093 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30094 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30095 using x86_use_pseudo_pic_reg.
30096 * config/i386/i386.c (ix86_conditional_register_usage): Remove
30097 support for fixed PIC register.
30098 (ix86_use_pseudo_pic_reg): Not static any more.
30099
30100 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30101
30102 PR middle-end/64805
30103 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30104 to avoid error in cgraph node verification.
30105
30106 2015-01-29 Marek Polacek <polacek@redhat.com>
30107
30108 * doc/standards.texi: Reflect that the default for C is gnu11.
30109
30110 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
30111
30112 PR target/64761
30113 * reorg.c (switch_text_sections_between_p): New function.
30114 (relax_delay_slots): Call it when testing if the jump insn
30115 is removable. Use targetm.can_follow_jump when testing if
30116 the conditional branch can follow an unconditional jump.
30117
30118 2015-01-27 Caroline Tice <cmtice@google.com>
30119
30120 Committing VTV Cywin/Ming patch for Patrick Wollgast
30121 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30122 if -fvtable-verify=preinit/std is used.
30123 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30124 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30125 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30126 if -fvtable-verify=preinit/std is used.
30127 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30128 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30129 if -fvtable-verify=preinit/std is used.
30130 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30131 * config/i386/mingw32.h (LIB_SPEC): Likewise.
30132 * varasm.c (assemble_variable): Add code to properly set the comdat
30133 section and name for the .vtable_map_vars section in case the
30134 target is PE or COFF.
30135
30136 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30137
30138 PR ipa/64801
30139 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30140 make sane BB profile.
30141 (cgraph_node::expand_thunk): Make sane BB profile.
30142 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30143 * cgraph.h (init_lowered_empty_function): Update prototype.
30144 * config/i386/i386.c (make_resolver_func): Update call.
30145 * predict.c (gate): Disable branch prediction pass if
30146 profile is already there.
30147
30148 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30149
30150 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30151 * opth-gen.awk: Likewise.
30152 * common.opt: Mark flag_fp_contract_mode as Optimization.
30153
30154 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
30155
30156 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30157 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30158
30159 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
30160
30161 PR target/64659
30162 * config/sh/predicates.md (atomic_arith_operand,
30163 atomic_logical_operand): Remove.
30164 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30165 (atomic_arith_operand_0): New predicate.
30166 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30167 Use atomic_arith_operand_0 for input values.
30168 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30169 atomic_compare_and_swap<mode>_soft_gusa,
30170 atomic_compare_and_swap<mode>_soft_tcb,
30171 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30172 arith_reg_operand instead of register_operand.
30173 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
30174 atomic_arith_operand_0 for newval input.
30175 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30176 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30177 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30178 arith_reg_operand instead of register_operand.
30179 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30180 fetchop_predicate_1, fetchop_constraint_1_llcs,
30181 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30182 fetchop_constraint_1_imask): New code iterator attributes.
30183 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30184 register_operand. Use fetchop_predicate_1.
30185 (atomic_fetch_<fetchop_name>si_hard,
30186 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30187 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30188 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30189 and arith_reg_operand instead of register_operand. Use
30190 fetchop_predicate_1, fetchop_constraint_1_gusa.
30191 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30192 and arith_reg_operand instead of register_operand. Use
30193 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
30194 to allow R0 usage.
30195 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30196 and arith_reg_operand instead of register_operand. Use
30197 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
30198 to allow R0 usage.
30199 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30200 register_operand. Use atomic_logical_operand_1.
30201 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30202 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30203 arith_reg_operand instead of register_operand.
30204 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30205 Use arith_reg_dest and arith_reg_operand instead of register_operand.
30206 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
30207 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30208 register_operand. Use fetchop_predicate_1.
30209 (atomic_<fetchop_name>_fetchsi_hard,
30210 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30211 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30212 fetchop_constraint_1_llcs.
30213 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30214 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30215 fetchop_constraint_1_gusa.
30216 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30217 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30218 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
30219 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30220 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30221 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
30222 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30223 register_operand. Use atomic_logical_operand_1.
30224 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30225 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30226 arith_reg_operand instead of register_operand.
30227 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30228 arith_reg_operand instead of register_operand. Use logical_operand
30229 and K08. Adjust asm sequence to allow R0 usage.
30230 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30231 arith_reg_operand instead of register_operand. Use logical_operand
30232 and K08.
30233
30234 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30235
30236 PR other/63504
30237 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30238 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30239 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30240 only get_full_len HOST_WIDE_INTs from get_val () array rather than
30241 all bits in *val_wide.
30242
30243 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
30244
30245 * varpool.c (tls_model_names): Fix names.
30246 (varpool_node::dump): Dump tls- prefix for tls models.
30247
30248 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
30249 Bernd Schmidt <bernds@codesourcery.com>
30250 Nathan Sidwell <nathan@codesourcery.com>
30251
30252 * config/nvptx/mkoffload.c: New file.
30253 * config/nvptx/t-nvptx: Add build rules for it.
30254 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30255 (extra_programs): Add mkoffload.
30256 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30257 function.
30258 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30259
30260 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
30261
30262 PR middle-end/64809
30263 * cfgexpand.c (reorder_operands): Skip debug gimples.
30264
30265 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
30266
30267 PR tree-optimization/64277
30268 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30269 range info when possible to refine estimation.
30270
30271 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30272
30273 PR tree-optimization/64718
30274 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30275 be a 16bit unsigned integer when n->range is 16.
30276 (bswap_replace): Convert src to that type if necessary for all bswap
30277 sizes. Fix rotation right notation in nearby comment. Use bswap_type
30278 set in pass_optimize_bswap::execute ().
30279
30280 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
30281
30282 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30283 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30284 integer and floating point variants.
30285 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30286
30287 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
30288
30289 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30290 for all vector modes.
30291
30292 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30293
30294 PR bootstrap/64612
30295 * doc/sourcebuild.texi (comdat_group): Document.
30296
30297 2015-01-28 Terry Guo <terry.guo@arm.com>
30298
30299 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30300
30301 2015-01-27 David Malcolm <dmalcolm@redhat.com>
30302
30303 * toplev.c (print_version): Add param "show_global_state", and
30304 only print GGC and plugin information if it is true.
30305 (init_asm_output): Pass in "true" for the new param when calling
30306 print_version.
30307 (process_options): Likewise.
30308 (toplev::main): Likewise.
30309 * toplev.h (print_version): Add new param to decl.
30310
30311 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30312
30313 PR ipa/60871
30314 PR ipa/64139
30315 * tree.c (lookup_binfo_at_offset): New function.
30316 (get_binfo_at_offset): Use it.
30317
30318 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30319
30320 PR ipa/64282
30321 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30322 on vtable being vtable.
30323
30324 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
30325
30326 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30327 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30328 -mhotpatch= option.
30329 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30330 -mno-hotpatch options. Change syntax of -mhotpatch= option.
30331 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30332 Renamed.
30333 (s390_hotpatch_trampoline_halfwords_max): Renamed.
30334 (s390_hotpatch_hw_max): New name.
30335 (s390_hotpatch_trampoline_halfwords): Renamed.
30336 (s390_hotpatch_hw_before_label): New name.
30337 (get_hotpatch_attribute): Removed.
30338 (s390_hotpatch_hw_after_label): New name.
30339 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30340 attribute.
30341 (s390_attribute_table): Ditto.
30342 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30343 (s390_function_num_hotpatch_hw): New name.
30344 Remove special handling of inline functions and hotpatching.
30345 Return number of nops before and after the function label.
30346 (s390_can_inline_p): Removed.
30347 (s390_asm_output_function_label): Emit a configurable number of nops
30348 after the function label.
30349 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30350 (TARGET_CAN_INLINE_P) Removed.
30351 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30352
30353 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30354 Jiong Wang <jiong.wang@arm.com>
30355
30356 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30357 of scratch reg.
30358 (cb<optab><mode>1): Likewise.
30359 * config/aarch64/iterators.md (bcond): New define_code_attr.
30360
30361 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30362
30363 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30364 memory accesses.
30365
30366 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30367
30368 * config/s390/s390.c (s390_register_move_cost): Increase costs for
30369 FPR->GPR moves.
30370
30371 2015-01-27 Richard Biener <rguenther@suse.de>
30372
30373 * tree-vrp.c (update_value_range): Intersect the range with
30374 old recorded SSA name range information.
30375
30376 2015-01-27 Nick Clifton <nickc@redhat.com>
30377
30378 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30379 BC, DE and HL registers directly, not via AX.
30380 When decrementing the stack pointer by a large amount, transfer SP
30381 into AX and perform the subtraction there.
30382 (rl78_expand_epilogue): Perform the inverse of the above
30383 enhancements.
30384
30385 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30386
30387 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30388
30389 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30390 Yury Gribov <y.gribov@samsung.com>
30391
30392 PR ubsan/64741
30393 * ubsan.c (ubsan_source_location): Refactor code.
30394 (ubsan_type_descriptor): Update type size. Refactor code.
30395
30396 2015-01-27 Richard Biener <rguenther@suse.de>
30397
30398 PR tree-optimization/56273
30399 PR tree-optimization/59124
30400 PR tree-optimization/64277
30401 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30402 from the first VRP pass.
30403
30404 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30405
30406 PR ipa/64776
30407 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30408 handle the first argument in the same loop as all the other arguments.
30409
30410 PR rtl-optimization/61058
30411 * jump.c (cleanup_barriers): Update basic block boundaries
30412 if BLOCK_FOR_INSN is non-NULL on PREV.
30413
30414 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
30415
30416 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30417 bounds narrowing, already instrumented calls and calls to
30418 not instrumentable functions.
30419
30420 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30421
30422 PR tree-optimization/64807
30423 * wide-int.cc (wi::divmod_internal): Clear
30424 b_dividend[dividend_blocks_needed].
30425
30426 2015-01-26 DJ Delorie <dj@redhat.com>
30427
30428 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30429 volatile memory references.
30430
30431 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
30432
30433 PR target/49263
30434 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30435 remove_insn.
30436 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30437 shifts if it already fits into K08.
30438
30439 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30440
30441 PR ipa/64730
30442 * ipa-inline.c (inline_small_functions): Print "unknown" even
30443 if edge->call_stmt is non-NULL, but has builtins or unknown
30444 location.
30445
30446 PR middle-end/64421
30447 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30448 with asterisk, skip the first character.
30449
30450 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30451
30452 PR target/64806
30453 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30454 order change.
30455
30456 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
30457
30458 PR target/64795
30459 * config/i386/i386.md (*movdi_internal): Also check operand 0
30460 to determine TYPE_LEA operand.
30461 (*movsi_internal): Ditto.
30462
30463 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30464
30465 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30466 OPTION_MASK_QUAD_MEMORY_ATOMIC.
30467
30468 2015-01-26 Renlin Li <renlin.li@arm.com>
30469
30470 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30471 the comment.
30472 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30473 for higher part.
30474
30475 2015-01-26 Richard Biener <rguenther@suse.de>
30476
30477 PR middle-end/64764
30478 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30479 combining two BIT_AND_EXPR predicates.
30480
30481 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30482
30483 PR bootstrap/64754
30484 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30485
30486 2015-01-26 Terry Guo <terry.guo@arm.com>
30487
30488 * config/arm/arm.c (arm_file_start): Update the assignment of
30489 Tag_ABI_HardFP_use.
30490
30491 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
30492
30493 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30494 pipeline model.
30495 config/arm/arm.md: Include the new Cortex-A57 model.
30496 (generic_sched): Don't use generic_sched when tuning for
30497 Cortex-A57.
30498
30499 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
30500 Uros Bizjak <ubizjak@gmail.com>
30501
30502 * config/i386/i386.c (get_builtin_code_for_version): Add
30503 support for BMI and BMI2 multiversion functions.
30504
30505 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30506
30507 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30508 (extract_bit_field): Likewise.
30509 (extract_low_bits): Likewise.
30510 (expand_mult): Likewise.
30511 (expand_mult_highpart_adjust): Likewise.
30512
30513 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
30514
30515 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30516 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30517 * config/i386/i386.c (processor_model): Add
30518 M_INTEL_COREI7_BROADWELL.
30519 (arch_names_table): Add "broadwell".
30520
30521 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
30522
30523 PR target/49263
30524 PR target/53987
30525 PR target/64345
30526 PR target/59533
30527 PR target/52933
30528 PR target/54236
30529 PR target/51244
30530 * config/sh/sh-protos.h
30531 (sh_extending_set_of_reg::can_use_as_unextended_reg,
30532 sh_extending_set_of_reg::use_as_unextended_reg,
30533 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30534 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30535 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30536 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30537 (sh_treg_insns): New class.
30538 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30539 (scope_counter): New class.
30540 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30541 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30542 sh_extending_set_of_reg::can_use_as_unextended_reg,
30543 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30544 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30545 sh_split_treg_set_expr): New functions.
30546 (addsubcosts): Handle treg_set_expr.
30547 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30548 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30549 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30550 (sh_insn_operands_modified_between_p): Make non-static.
30551 * config/sh/predicates.md (zero_extend_movu_operand): Allow
30552 simple_mem_operand in addition to displacement_mem_operand.
30553 (zero_extend_operand): Don't allow zero_extend_movu_operand.
30554 (treg_set_expr, treg_set_expr_not_const01,
30555 arith_reg_or_treg_set_expr): New predicates.
30556 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30557 arith_or_int_operand instead of logical_operand. Convert to
30558 insn_and_split. Try to optimize constant operand in splitter.
30559 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
30560 (*tstqi_t_zero): Delete.
30561 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30562 (tstsi_t_and_not): Delete.
30563 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30564 Convert to insn_and_split.
30565 (unnamed split, tstsi_t_zero_extract_xor,
30566 tstsi_t_zero_extract_subreg_xor_little,
30567 tstsi_t_zero_extract_subreg_xor_big): Delete.
30568 (*tstsi_t_shift_mask): New insn_and_split.
30569 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30570 to recombine with surrounding insns when splitting.
30571 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30572 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30573 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30574 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30575 (*cbranch_div0s: Delete.
30576 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30577 Try to recombine with surrounding insns when splitting. Add operand
30578 order variants.
30579 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30580 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30581 *addc_r_r_msb, *addc_2r_msb): Delete.
30582 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
30583 order variant.
30584 (*addc_negreg_t): New insn_and_split.
30585 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30586 Try to recombine with surrounding insns when splitting.
30587 Add operand order variants.
30588 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30589 insn_and_split patterns.
30590 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
30591 surrounding insns when splitting.
30592 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30593 (*rotcl): Likewise. Add zero_extract variant.
30594 (*ashrsi2_31): New insn_and_split.
30595 (*negc): Convert to insn_and_split. Use treg_set_expr.
30596 (*zero_extend<mode>si2_disp_mem): Update comment.
30597 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30598 condition.
30599 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
30600 with surrounding insns when splitting.
30601 (any_treg_expr_to_reg): New insn_and_split.
30602 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30603 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30604 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30605 *zero_extract_2): New single bit zero extract patterns.
30606 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30607 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30608 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30609 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30610 set destination.
30611 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30612 register_operand for set source.
30613
30614 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
30615
30616 * i386.opt (prefetch_sse): New targetsave.
30617 * i386.c (ix86_function_specific_save): Save prefetch_sse.
30618 (ix86_function_specific_restore): Restore prefetch_sse and initialize
30619 ix86_cost/ix86_tune_cost.
30620
30621 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30622
30623 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30624 Support the JIT by using 0 as the language type.
30625
30626 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
30627
30628 PR target/64317
30629 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
30630 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30631 (mark_regno_live, process_bb_lives): Pass new parameter value to
30632 make_hard_regno_born.
30633
30634 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30635
30636 PR rtl-optimization/63637
30637 PR rtl-optimization/60663
30638 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30639 if elt->cost is MAX_COST for ASM_OPERANDS.
30640 (find_sets_in_insn): Fix up comment typo.
30641 (cse_insn): Don't set src_volatile for all non-volatile
30642 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30643 or with "memory" clobber. Set elt->cost to MAX_COST
30644 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
30645 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30646
30647 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30648
30649 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30650 alternative 1.
30651
30652 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30653
30654 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30655 libgcc/config/i386/elf-lib.h.
30656
30657 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30658
30659 PR driver/64737
30660 * gcc.c (print_configuration): Don't print a blank line at the end
30661 here...
30662 (run_attempt): ... but here unstead.
30663
30664 PR middle-end/64734
30665 * omp-low.c (scan_sharing_clauses): Don't ignore
30666 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30667 on target data/update constructs.
30668
30669 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
30670
30671 PR target/50928
30672 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30673 (DEBUG_RELOAD): Removed define.
30674 (m32c_limit_reload_class): Enable traces with if DEBUG0.
30675 (m32c_function_arg): Added a type cast.
30676 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30677 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30678 * config/m32c/bitops.md (andqi3_16): Likewise.
30679 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30680 (push_a01_l): Likewise.
30681
30682 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30683
30684 PR jit/64721
30685 * main.c (main): Construct toplev instances with init_signals=true.
30686 * toplev.c (general_init): Add param "init_signals", and use it to
30687 conditionalize the calls to signal and host_hooks.extra_signals.
30688 (toplev::toplev): Add param "init_signals".
30689 (toplev::main): When invoking general_init, pass m_init_signals
30690 to control whether signal-handlers are installed.
30691 * toplev.h (toplev::toplev): Add param "init_signals".
30692 (toplev::m_init_signals): New field.
30693
30694 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30695
30696 PR jit/64722
30697 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30698 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30699 latter may be affected by the former (e.g. on i686).
30700
30701 2015-01-23 Martin Liska <mliska@suse.cz>
30702
30703 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30704 false positive during profiledbootstrap.
30705
30706 2015-01-23 Tom de Vries <tom@codesourcery.com>
30707
30708 PR libgomp/64672
30709 * lto-opts.c (lto_write_options): Output non-explicit conservative
30710 -fno-openacc.
30711 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30712 (append_compiler_options): Pass -fopenacc through.
30713
30714 2015-01-23 Tom de Vries <tom@codesourcery.com>
30715
30716 PR libgomp/64707
30717 * lto-opts.c (lto_write_options): Output non-explicit conservative
30718 -fno-openmp.
30719 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30720 (append_compiler_options): Pass -fopenmp through.
30721
30722 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30723
30724 PR debug/64511
30725 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30726 GTY markup.
30727
30728 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30729 * diagnostic.def (DK_ICE_NOBT): New kind.
30730 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30731 like DK_ICE, but never print backtrace.
30732 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30733 (internal_error_no_backtrace): New function.
30734 * gcc.c (execute): Use internal_error_no_backtrace instead of
30735 internal_error.
30736
30737 2015-01-22 Jeff Law <law@redhat.com>
30738
30739 PR target/52076
30740 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
30741 improve code density for small immediate to memory case.
30742 (insv): Better handle bitfield assignments when the field is
30743 being set to all ones.
30744 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
30745 operand predicate.
30746
30747 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30748 Jakub Jelinek <jakub@redhat.com>
30749
30750 PR middle-end/64729
30751 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
30752 for !TARGET_LIBC_PROVIDES_SSP version and
30753 -fstack-protector-{all,strong,explicit} otherwise.
30754 * config/freebsd.h (LINK_SSP_SPEC): Handle
30755 -fstack-protector-{strong,explicit}.
30756
30757 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
30758 H.J. Lu <hongjiu.lu@intel.com>
30759
30760 PR ipa/64694
30761 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
30762 heap.
30763
30764 2015-01-22 Wei Mi <wmi@google.com>
30765
30766 PR rtl-optimization/64557
30767 * dse.c (record_store): Call get_addr for mem_addr.
30768 (check_mem_read_rtx): Likewise.
30769
30770 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
30771
30772 * fold-const.c (const_binop): Add early return for non-tcc_binary.
30773
30774 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
30775
30776 * toplev.c (init_local_tick): Process the failure when read
30777 fails for random_seed.
30778
30779 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
30780 'pretty_name' to avoid memory overflow.
30781
30782 2015-01-22 Richard Biener <rguenther@suse.de>
30783
30784 PR middle-end/64728
30785 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
30786 abnormal coalescing on undefined SSA names.
30787
30788 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
30789
30790 PR target/64688
30791 PR target/64477
30792 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
30793 for alternative 3.
30794 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
30795
30796 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
30797
30798 PR middle-end/63325
30799 * fold-const.c (fold_checksum_tree): Don't include value of
30800 expr->decl_with_vis.symtab_node in the checksum.
30801
30802 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30803
30804 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
30805
30806 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
30807
30808 PR driver/64690
30809 * gcc.c (insert_comments): New function.
30810 (try_generate_repro): Call it.
30811 (append_text): Removed.
30812
30813 2015-01-22 Richard Biener <rguenther@suse.de>
30814
30815 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
30816 with IL incompatible options. Properly honor user optimize
30817 attributes.
30818
30819 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
30820
30821 PR rtl-optimization/64682
30822 * combine.c (distribute_notes): When moving a death note for
30823 a register that is set in the new I2, make sure to put it
30824 before that new I2.
30825
30826 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
30827
30828 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
30829 not TARGET_DEFAULT.
30830
30831 2015-01-21 Jakub Jelinek <jakub@redhat.com>
30832
30833 PR debug/64511
30834 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
30835 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
30836 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
30837
30838 PR sanitizer/64706
30839 * doc/invoke.texi (-fsanitize=vptr): Document.
30840
30841 PR rtl-optimization/62078
30842 * dse.c: Include cfgcleanup.h.
30843 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
30844 anything call purge_all_dead_edges and cleanup_cfg at the end
30845 of the pass.
30846
30847 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
30848
30849 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
30850 edges.
30851
30852 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30853
30854 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
30855 decl attribute.
30856
30857 2015-01-21 David Sherwood <david.sherwood@arm.com>
30858 Tejas Belagod <Tejas.Belagod@arm.com>
30859
30860 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
30861 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
30862 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
30863 Removed.
30864
30865 2015-01-21 David Sherwood <david.sherwood@arm.com>
30866 Tejas Belagod <Tejas.Belagod@arm.com>
30867
30868 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
30869 (aarch64_reverse_mask): New decls.
30870 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
30871 (insn_count): New mode_attr.
30872 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
30873 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
30874 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
30875 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
30876 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
30877 (aarch64_simd_st4): New patterns.
30878 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
30879 (aarch64_reverse_mask): New functions.
30880
30881 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
30882
30883 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
30884 Declare.
30885 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
30886 addressing modes for BE.
30887 (aarch64_print_operand): Add 'R' specifier.
30888 (aarch64_simd_disambiguate_copy): Delete.
30889 (aarch64_simd_emit_reg_reg_move): New function.
30890 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
30891 in define_splits for structural moves.
30892 (mov<mode>): Use less restrictive predicates.
30893 (*aarch64_mov<mode>): Simplify and only allow for LE.
30894 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
30895
30896 2015-01-21 Alan Hayward <alan.hayward@arm.com>
30897
30898 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
30899
30900 2015-01-21 Richard Henderson <rth@redhat.com>
30901
30902 PR target/64669
30903 * ccmp.c (used_in_cond_stmt_p): Remove.
30904 (expand_ccmp_expr): Don't use it.
30905
30906 2015-01-21 Nick Clifton <nickc@redhat.com>
30907
30908 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
30909 PARALLELs.
30910
30911 2015-01-21 Richard Biener <rguenther@suse.de>
30912
30913 PR middle-end/64313
30914 * tree-core.h (builtin_info, builtin_info_type): Turn from
30915 an object with two arrays into an array of an object with
30916 decl and two flags, implicit_p and declared_p.
30917 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
30918 set_builtin_decl, set_builtin_decl_implicit_p,
30919 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
30920 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
30921 * builtins.c (builtin_info): Adjust.
30922 * gimplify.c (gimplify_addr_expr): References to builtins
30923 that have been declared by the user makes them eligible for
30924 use by the compiler. Call set_builtin_decl_implicit_p on them.
30925
30926 2015-01-20 Jeff Law <law@redhat.com>
30927
30928 PR target/59946
30929 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
30930 allow pc-relative addresses in operand predicates or constraints.
30931
30932 2015-01-21 Bin Cheng <bin.cheng@arm.com>
30933
30934 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
30935 neon on aarch32 processors for stringops.
30936
30937 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30938
30939 PR ipa/63576
30940 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
30941
30942 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
30943
30944 PR lto/45375
30945 * ipa-inline.c: Include lto-streamer.h
30946 (report_inline_failed_reason): Output source file differences and
30947 flags on optimization/target node mismatch.
30948 (can_inline_edge_p): Consider caller to be the outer inline function;
30949 be less restrictive about matching opimize and optimize_size attributes.
30950 (inline_account_function_p): Break out from ...
30951 (inline_small_functions): ... here.
30952 * ipa-inline-transform.c (clone_inlined_nodes): Use
30953 inline_account_function_p.
30954 (inline_call): Use optimize attribution; use inline_account_function_p.
30955 (inline_transform): Use opt_for_fn.
30956 * ipa-inline.h (inline_account_function_p): Declare.
30957
30958 2015-01-20 Jakub Jelinek <jakub@redhat.com>
30959
30960 PR debug/64663
30961 * dwarf2out.c (decl_piece_node): Don't put bitsize into
30962 mode if bitsize <= 0.
30963 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
30964 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
30965 sizes and positions.
30966
30967 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
30968
30969 * config/nios2/nios2.c (nios2_asm_file_end): Implement
30970 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
30971 needed.
30972 (TARGET_ASM_FILE_END): Define.
30973
30974 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30975
30976 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
30977 (struct tune_params): Use the enum.
30978 * arm.c (arm_*_tune): Update.
30979 (arm_option_override): Update.
30980
30981 2015-01-20 Richard Biener <rguenther@suse.de>
30982
30983 PR ipa/64684
30984 * ipa-reference.c (add_static_var): Inline ...
30985 (analyze_function): ... here after splitting out from ...
30986 (is_proper_for_analysis): ... this.
30987
30988 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
30989
30990 PR target/64149
30991 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
30992 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
30993 replace the conditional with it's true branch.
30994 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
30995 (arm_lra_p): Remove.
30996
30997 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
30998
30999 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31000
31001 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31002
31003 * config/tilegx/mul-tables.c: Move symtab.h include after
31004 coretypes.h include.
31005 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31006 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31007 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31008 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31009 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31010
31011 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
31012
31013 PR bootstrap/64676
31014 Revert:
31015 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31016
31017 PR rtl-optimization/64081
31018 * loop-iv.c (def_pred_latch_p): New function.
31019 (latch_dominating_def): Allow specific cases with non-single
31020 definitions.
31021 (iv_get_reaching_def): Likewise.
31022 (check_complex_exit_p): New function.
31023 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31024 with exits not executing on any iteration.
31025
31026 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31027
31028 PR lto/45375
31029 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31030 to set branch cost.
31031
31032 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31033
31034 PR lto/45375
31035 * i386.c (gate): Check flag_expensive_optimizations and
31036 optimize_size.
31037 (ix86_option_override_internal): Drop optimize_size condition
31038 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31039 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31040 MASK_PREFER_AVX128.
31041 (ix86_avx256_split_vector_move_misalign,
31042 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31043 * sse.md (all uses of TARGET_PREFER_AVX128): Add
31044 optimize_insn_for_speed_p check.
31045
31046 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
31047
31048 * config/mips/mips.h (FP_ASM_SPEC): New define.
31049 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31050 instead.
31051
31052 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
31053
31054 PR target/53988
31055 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31056 nullptr for insn when reaching the first insn.
31057 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31058 (sh_insn_operands_modified_between_p): Add nullptr check.
31059 (sh_find_extending_set_of_reg): Fix log message. Don't accept
31060 sign extending mem load if the insn contains any UNSPEC or
31061 UNSPEC_VOLATILE.
31062
31063 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31064
31065 * params.def (inline-unit-growth): Drop to 15%.
31066 * invoke.texi (inline-unit-growth): Document change.
31067
31068 2015-01-19 Martin Liska <mliska@suse.cz>
31069
31070 PR ipa/64668
31071 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31072 function for second argument of OBJ_TYPE_REF.
31073
31074 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31075
31076 PR ipa/64218
31077 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31078 whether function is an alias.
31079
31080 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31081
31082 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31083 cases.
31084
31085 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
31086
31087 PR rtl-optimization/64671
31088 * lra-remat.c (operand_to_remat): Don't consider jump and call
31089 insns.
31090
31091 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
31092
31093 PR target/59828
31094 * config/rs6000/default64.h: Include rs6000-cpus.def.
31095 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31096 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31097 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31098 and POWER8.
31099 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31100 POWER8.
31101 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31102 pseudo-op to specify assembler dialect.
31103
31104 2015-01-19 Martin Liska <mliska@suse.cz>
31105
31106 PR ipa/64664
31107 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31108 Handle safe potentially removed nodes during filtering.
31109
31110 2015-01-19 Martin Liska <mliska@suse.cz>
31111
31112 * doc/extend.texi (no_icf): Add new attribute description.
31113 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31114 where the pass attempts to merge a function with no_icf attribute.
31115
31116 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31117
31118 PR target/64532
31119 * doc/md.texi (ARM Options): Document register constraints.
31120
31121 2015-01-19 Jiong Wang <jiong.wang@arm.com>
31122 Andrew Pinski <apinski@cavium.com>
31123
31124 PR target/64304
31125 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31126 (ashl<mode>3): Don't expand if operands[2] is not constant.
31127
31128 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31129
31130 PR target/64448
31131 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31132 Match xor-and-xor RTL pattern.
31133
31134 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31135
31136 PR rtl-optimization/64081
31137 * loop-iv.c (def_pred_latch_p): New function.
31138 (latch_dominating_def): Allow specific cases with non-single
31139 definitions.
31140 (iv_get_reaching_def): Likewise.
31141 (check_complex_exit_p): New function.
31142 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31143 with exits not executing on any iteration.
31144
31145 2015-01-19 Jakub Jelinek <jakub@redhat.com>
31146
31147 * common.opt (fgraphite): Fix a typo.
31148
31149 2015-01-19 Felix Yang <felix.yang@huawei.com>
31150
31151 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31152 pattern.
31153 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31154 uminp, smax_nanp, smin_nanp): New builtins.
31155 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31156 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31157 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31158 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31159 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31160 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31161 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31162 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31163 vpminnms_f32): Rewrite using builtin functions.
31164
31165 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
31166
31167 PR libgomp/64625
31168 * omp-low.c (offload_symbol_decl): Remove variable.
31169 (get_offload_symbol_decl): Remove function.
31170 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31171 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31172 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31173 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31174 BUILT_IN_GOACC_UPDATE don't pass it at all.
31175
31176 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31177
31178 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31179 callers.
31180
31181 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31182
31183 * ipa-chkp.c (chkp_produce_thunks): Add early param
31184 to split thunks production into two passes. Keep
31185 'always_inline' function bodies after the first pass.
31186 (pass_data_ipa_chkp_early_produce_thunks): New.
31187 (pass_ipa_chkp_early_produce_thunks): New.
31188 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31189 chkp_produce_thunks signature.
31190 (make_pass_ipa_chkp_early_produce_thunks): New.
31191 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31192 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31193 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31194
31195 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31196
31197 * cgraph.c (cgraph_node::dump): Dump profile flags.
31198
31199 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
31200
31201 PR target/64652
31202 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31203 reg appear first in the parallel.
31204
31205 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31206
31207 * ipa-reference.c (set_reference_optimization_summary,
31208 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31209 disabled.
31210 (ignore_module_statics): New static var.
31211 (propagate_bits): If ipa-reference is disabled, do not look into local
31212 properties.
31213 (analyze_function): Disable analysis when ipa_reference is disabled.
31214 (generate_summary): Do not dump when reference is disabled;
31215 collect vars accessed from functions with ipa-reference disabled.
31216 (get_read_write_all_from_node): When ipa-reference is disabled, use the
31217 node flags.
31218 (gate): Enable for LTO.
31219 (ignore_edge_p): New function.
31220 (propagate): Skip functions w/o ipa-reference analysis.
31221 * optc-save-gen.awk: Handle optimize_debug correctly.
31222 * opth-gen.awk: Likewise.
31223 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31224 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31225 fira-share-save-slots, fira-share-spill-slots,
31226 fmodulo-sched-allow-regmoves, fpartial-inlining,
31227 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31228 ftracer, ftree-parallelize-loops, fassociative-math,
31229 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31230 Optimization
31231 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31232 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31233 Optimization.
31234 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31235 Fix for IPA.
31236
31237 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31238
31239 PR ipa/64378
31240 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31241 flag correctly.
31242 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31243
31244 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
31245
31246 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31247 Remove duplicate option listings.
31248
31249 2015-01-18 Felix Yang <felix.yang@huawei.com>
31250
31251 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31252 (autofdo_source_profile::get_callsite_total_count,
31253 function_instance::get_function_instance_by_decl,
31254 string_table::get_index, string_table::get_index_by_decl,
31255 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31256 Fix comment typos. Reformatting and minor code rearrangement.
31257
31258 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31259
31260 * config/rs6000/rs6000.md (probe_stack): Delete.
31261 (probe_stack_address): New.
31262
31263 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31264
31265 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31266 to test for 32-bit ABIs, not !TARGET_POWERPC64.
31267
31268 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31269
31270 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31271 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
31272 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
31273 snafu.
31274 (rs6000_libcall_value): Use the new function.
31275
31276 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
31277
31278 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31279
31280 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
31281
31282 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31283 implement a more precise life analysis for it during backward scan.
31284
31285 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
31286
31287 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31288
31289 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
31290
31291 PR rtl-optimization/52773
31292 * calls.c (emit_library_call_value): When pushing arguments use
31293 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31294 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
31295 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31296
31297 2015-01-17 Jeff Law <law@redhat.com>
31298
31299 PR rtl-optimization/32790
31300 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31301 not ZERO_EXTEND in SET_DESTs.
31302
31303 2015-01-17 Alan Modra <amodra@gmail.com>
31304
31305 * cprop.c (do_local_cprop): Revert last change.
31306
31307 2015-01-16 DJ Delorie <dj@redhat.com>
31308 Nick Clifton <nickc@redhat.com>
31309
31310 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31311 (addhi3_real): Likewise. Fix [HL+0] syntax.
31312 (subqi3_real): Likewise.
31313 (subhi3_real): Likewise.
31314 (cbranchqi4_real): Likewise. Allow saddr,#imm.
31315 (cbranchhi4_real): Likewise.
31316 (cbranchhi4_real_inverted): Likewise.
31317 (cbranchsi4_real_lt): Likewise.
31318 (cbranchsi4_real_ge): Likewise.
31319 (cbranchsi4_real_ge): Likewise.
31320 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31321 (sub<mode>3_virt): Likewise.
31322 (cbranchqi4_virt): Likewise.
31323 (cbranchhi4_virt): Likewise.
31324 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31325 always use '[reg+imm]' even when imm is zero.
31326 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31327 (rl78_general_operand): New.
31328 (rl78_nonimmediate_operand): New.
31329 (rl78_nonfar_operand): Use them.
31330 (rl78_nonfar_nonimm_operand): Likewise.
31331 (rl78_stack_based_mem): Fix.
31332 * config/rl78/constraints.md (Ibqi): New.
31333 (IBqi): New.
31334 (Wsa): New.
31335 (Wsf): New.
31336 (Cs1): Fix.
31337 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31338 (iorqi3): Likewise.
31339 (xorqi3): Likewise.
31340 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31341
31342 * config/rl78/constrains (Qs8): New constraint.
31343 * config/rl78/rl78.c (rl78_flags_already_set): New function.
31344 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31345 * config/rl78/rl78-real.md (update_Z): New attribute.
31346 Update patterns to set it.
31347 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31348 shorter compare and branch sequence can be used.
31349 (cbranchhi4_real): Likewise.
31350 (cbranchhi4_real_inverted): Likewise.
31351
31352 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31353 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31354 address space.
31355 * config/rl78/rl78.c (rl78_get_name_encoding): New.
31356 (rl78_option_override): Allow -mes0 only if C.
31357 (characterize_address): Support subregs of symbol_refs.
31358 (rl78_addr_space_address_mode): Move. Add __near.
31359 (rl78_far_p): Likewise.
31360 (rl78_addr_space_pointer_mode): Likewise.
31361 (rl78_as_legitimate_address): Likewise.
31362 (rl78_addr_space_subset_p): Likewise.
31363 (rl78_addr_space_convert): Likewise.
31364 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31365 symbols with -mes0.
31366 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
31367 addressing.
31368 (rl78_alloc_physical_registers_op1): Change logic to prefer
31369 symbol[BC] addressing.
31370 (frodata_section): New.
31371 (rl78_asm_init_sections): Initialize it.
31372 (rl78_select_section): Put __far readonly symbols in .frodata.
31373 (rl78_make_type_far): New.
31374 (rl78_insert_attributes): Force all readonly symbols to be
31375 __far when -mes0.
31376 (rl78_asm_out_integer): New.
31377 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31378 * config/rl78/rl78.opt (-mes0): New.
31379
31380 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31381 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31382 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31383 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31384 (rl78_saddr_p): New.
31385 (rl78_output_aligned_common): New.
31386 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31387 (rl78_handle_saddr_attribute): New.
31388 (rl78_handle_naked_attribute): New.
31389 (rl78_attribute_table): Add saddr.
31390 (rl78_print_operand_1): Don't print '!' on saddr operands.
31391 (rl78_print_operand_1): Strip encodings.
31392 (rl78_sfr_p): New.
31393 (rl78_strip_name_encoding): New.
31394 (rl78_attrlist_to_encoding): New.
31395 (rl78_encode_section_info): New.
31396 (rl78_asm_init_sections): New.
31397 (rl78_select_section): New.
31398 (rl78_output_labelref): New.
31399 (rl78_output_aligned_common): New.
31400 (rl78_asm_out_integer): New.
31401 (rl78_asm_ctor_dtor): New.
31402 (rl78_asm_constructor): New.
31403 (rl78_asm_destructor): New.
31404
31405 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31406 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31407 (transcode_memory_rtx): Update.
31408 (rl78_expand_epilogue): Use A_REG instead of 0.
31409
31410 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31411
31412 * config/arm/arm-protos.h (struct tune_params): New field
31413 sched_autopref_queue_depth.
31414 * config/arm/arm.c (sched-int.h): Include header.
31415 (arm_first_cycle_multipass_dfa_lookahead_guard,)
31416 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31417 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31418 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31419 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31420 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31421 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31422 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31423 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
31424 * config/arm/t-arm (arm.o): Update.
31425 * haifa-sched.c (update_insn_after_change): Update.
31426 (rank_for_schedule): Use auto-prefetcher model, if requested.
31427 (autopref_multipass_init): New static function.
31428 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31429 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31430 variable for debug dumps.
31431 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31432 (autopref_multipass_dfa_lookahead_guard): New global function that
31433 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31434 (init_h_i_d): Update.
31435 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31436 * sched-int.h (enum autopref_multipass_data_status): New const enum.
31437 (autopref_multipass_data_): Structure for auto-prefetcher data.
31438 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31439 (struct _haifa_insn_data:autopref_multipass_data): New field.
31440 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31441 (autopref_multipass_dfa_lookahead_guard): Declare.
31442
31443 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31444
31445 * rtlanal.c (get_base_term): Handle SCRATCH.
31446
31447 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31448
31449 * config/aarch64/aarch64.c
31450 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31451 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31452 * config/arm/arm.c
31453 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31454 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31455
31456 2015-01-17 Alan Modra <amodra@gmail.com>
31457
31458 * cprop.c (do_local_cprop): Disallow replacement of fixed
31459 hard registers.
31460
31461 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31462
31463 PR target/62066
31464 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31465 early return 0.
31466
31467 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
31468
31469 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31470 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31471
31472 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31473
31474 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31475 * config/arm/thumb1.md: ... Here.
31476
31477 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31478
31479 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31480 TImode for TARGET_32BIT.
31481
31482 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31483
31484 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31485 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31486 as ...
31487 (rs6000_abi_word_mode): New function.
31488
31489 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31490
31491 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31492 instead of UNITS_PER_WORD to describe the size of stack slots.
31493
31494 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31495
31496 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31497 as rs6000_promote_function_mode. Move comment to there.
31498 (rs6000_promote_function_mode): New function.
31499
31500 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31501
31502 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31503 -mpowerpc64 is active.
31504
31505 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31506
31507 PR middle-end/64353
31508 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31509 virtuals on start.
31510
31511 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31512
31513 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31514 introduced in revision 219724.
31515
31516 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31517 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31518
31519 PR target/64263
31520 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31521 destination is not a GP reg.
31522 (*movdi_aarch64): Likewise.
31523
31524 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
31525
31526 PR target/64623
31527 * config/rs6000/default64.h: Revert ISA change.
31528
31529 2015-01-16 Richard Biener <rguenther@suse.de>
31530
31531 PR middle-end/64614
31532 * tree-ssa-uninit.c: Include tree-cfg.h.
31533 (MAX_SWITCH_CASES): New define.
31534 (convert_control_dep_chain_into_preds): Handle switch statements.
31535 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31536 (normalize_one_pred_1): Do not split bit-manipulations.
31537 Record (x & CST).
31538
31539 2015-01-16 Richard Biener <rguenther@suse.de>
31540
31541 PR tree-optimization/64568
31542 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31543 complex load rewriting for TARGET_MEM_REFs.
31544
31545 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
31546
31547 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31548
31549 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
31550
31551 PR target/64149
31552 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31553 variable.
31554 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31555 (aarch64_lra_p): Remove.
31556
31557 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31558
31559 PR target/64363
31560 * ipa-chkp.h (chkp_instrumentable_p): New.
31561 * ipa-chkp.c: Include tree-inline.h.
31562 (chkp_instrumentable_p): New.
31563 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31564 Fix processing of not instrumentable functions.
31565 (chkp_versioning): Use chkp_instrumentable_p. Warn about
31566 not instrumentable functions.
31567 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31568 chkp_instrumentable_p.
31569 * tree-inline.h (copy_forbidden): New.
31570 * tree-inline.c (copy_forbidden): Not static anymore.
31571
31572 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31573
31574 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31575 ptr1, ptr2 unused.
31576
31577 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31578
31579 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31580 type OP_OUT to OP_INOUT.
31581
31582 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31583
31584 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31585 (high x) y) to y if x and y have the same base.
31586
31587 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31588
31589 * config/arm/cortex-a57.md: New.
31590 * config/aarch64/aarch64.md: Include it.
31591 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31592 * config/aarch64/aarch64-tune.md: Regenerate.
31593
31594 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
31595
31596 PR target/64015
31597 * ccmp.c (expand_ccmp_next): New function.
31598 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31599 and compare insn sequence.
31600 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31601 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31602 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31603 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31604 (*ccmp_ior): Changed to ccmp_ior<mode>.
31605 (cmp<mode>): New pattern.
31606 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31607 parameters.
31608 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31609
31610 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
31611
31612 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31613 _mm256_bsrli_epi128): New.
31614 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31615
31616 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31617
31618 * expmed.c (store_bit_field_using_insv): Improve warning message.
31619 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31620
31621 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31622
31623 PR rtl-optimization/64011
31624 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31625 there is partial overflow.
31626
31627 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31628
31629 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31630 prototype.
31631 (nds32_expand_epilogue_v3pop): Likewise.
31632 * config/nds32/nds32.md (sibcall): Define this for sibling call
31633 optimization.
31634 (sibcall_register): Likewise.
31635 (sibcall_immediate): Likewise.
31636 (sibcall_value): Likewise.
31637 (sibcall_value_register): Likewise.
31638 (sibcall_value_immediate): Likewise.
31639 (sibcall_epilogue): Likewise.
31640 (epilogue): Pass false to indicate this is not a sibcall epilogue.
31641 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31642 (nds32_expand_epilogue_v3pop): Likewise.
31643
31644 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31645
31646 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31647 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31648 (return_internal): New.
31649 (return): Define this named pattern.
31650 (simple_return): Define this named pattern.
31651 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31652 pattern instead of unspec_volatile_func_return.
31653 (nds32_expand_epilogue_v3pop): Likewise.
31654 (nds32_can_use_return_insn): New function.
31655
31656 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31657
31658 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31659 * config/nds32/nds32.md (pop25return): New.
31660 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31661 pop25return pattern.
31662
31663 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31664
31665 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31666 -mforbid-fp-as-gp, and -mex9 options.
31667
31668 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31669
31670 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31671 remove -mgp-direct option.
31672
31673 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31674
31675 * doc/invoke.texi (--param early-inlining-insns): Update default value.
31676 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31677
31678 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31679
31680 * ipa-inline.c (inline_small_functions): Work around hints
31681 cache issue.
31682
31683 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
31684
31685 PR target/59710
31686 * doc/invoke.texi (Option Summary): Document new Nios II
31687 -mgpopt= syntax.
31688 (Nios II Options): Likewise.
31689 * config/nios2/nios2.opt: Add -mgpopt= option support.
31690 Modify existing -mgpopt and -mno-gpopt options to be aliases.
31691 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31692 * config/nios2/nios2.c (nios2_option_override): Adjust
31693 -mgpopt defaulting.
31694 (nios2_in_small_data_p): Return true for explicit small data
31695 sections even with -G0.
31696 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31697 option choices.
31698
31699 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31700
31701 PR ipa/64612
31702 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31703 of comdat locals.
31704 (inline_call): Fix removal of aliases.
31705
31706 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31707
31708 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31709 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31710 * opts.c (common_handle_option): Add -fsanitize=vptr.
31711 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31712 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31713 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31714 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31715 (ubsan_expand_vptr_ifn): New prototype.
31716 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31717 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31718 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31719 expand_LOOP_VECTORIZED): Make argument nameless, remove
31720 ATTRIBUTE_UNUSED.
31721 (expand_UBSAN_VPTR): New function.
31722 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31723 in fn spec.
31724 (UBSAN_VPTR): New internal function.
31725 * sanopt.c (tree_map_traits): Renamed to ...
31726 (sanopt_tree_map_traits): ... this.
31727 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31728 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31729 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
31730 (maybe_optimize_ubsan_vptr_ifn): New function.
31731 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31732 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
31733 -fsanitize=vptr.
31734 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31735 internal calls like pure functions for aliasing, even when they
31736 have other side-effects that prevent making them ECF_PURE.
31737 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
31738 (ubsan_expand_vptr_ifn): New function.
31739
31740 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
31741
31742 PR rtl-optimization/64110
31743 * stmt.c (parse_output_constraint): Process '^' and '$'.
31744 (parse_input_constraint): Ditto.
31745 * lra-constraints.c (process_alt_operands): Process the new
31746 constraints.
31747 * ira-costs.c (record_reg_classes): Process the new constraint
31748 '^'.
31749 * genoutput.c (indep_constraints): Add '^' and '$'.
31750 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
31751 * doc/md.texi: Add description of the new constraints.
31752
31753 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
31754 Bernd Schmidt <bernds@codesourcery.com>
31755 Cesar Philippidis <cesar@codesourcery.com>
31756 James Norris <jnorris@codesourcery.com>
31757 Tom de Vries <tom@codesourcery.com>
31758 Ilmir Usmanov <i.usmanov@samsung.com>
31759 Dmitry Bocharnikov <dmitry.b@samsung.com>
31760 Evgeny Gavrin <e.gavrin@samsung.com>
31761 Jakub Jelinek <jakub@redhat.com>
31762
31763 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
31764 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
31765 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
31766 New function types.
31767 * builtins.c: Include "gomp-constants.h".
31768 (expand_builtin_acc_on_device): New function.
31769 (expand_builtin, is_inexpensive_builtin): Handle
31770 BUILT_IN_ACC_ON_DEVICE.
31771 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
31772 New macros.
31773 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
31774 flag_openmp.
31775 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
31776 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
31777 i386/intelmic-offload.h.
31778 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
31779 to libgomp and its dependencies.
31780 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
31781 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
31782 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
31783 * config/ia64/hpux.h (LIB_SPEC): Likewise.
31784 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
31785 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
31786 * doc/generic.texi: Update for OpenACC changes.
31787 * doc/gimple.texi: Likewise.
31788 * doc/invoke.texi: Likewise.
31789 * doc/sourcebuild.texi: Likewise.
31790 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
31791 GF_OMP_FOR_KIND_OACC_LOOP.
31792 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
31793 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
31794 GF_OMP_TARGET_KIND_OACC_UPDATE,
31795 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31796 Dump more data.
31797 * gimple.c: Update comments for OpenACC changes.
31798 * gimple.def: Likewise.
31799 * gimple.h: Likewise.
31800 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
31801 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31802 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
31803 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
31804 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
31805 appropriate place.
31806 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
31807 * gimplify.c: Include "gomp-constants.h".
31808 Update comments for OpenACC changes.
31809 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
31810 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
31811 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31812 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
31813 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31814 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31815 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
31816 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31817 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
31818 OMP_CLAUSE_SEQ.
31819 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
31820 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31821 OMP_CLAUSE_SET_MAP_KIND.
31822 (gimplify_oacc_cache): New function.
31823 (gimplify_omp_for): Handle OACC_LOOP.
31824 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
31825 OACC_DATA.
31826 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
31827 OACC_EXIT_DATA, OACC_UPDATE.
31828 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
31829 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
31830 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
31831 (gimplify_body): Consider flag_openacc next to flag_openmp.
31832 * lto-streamer-out.c: Include "gomp-constants.h".
31833 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
31834 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
31835 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
31836 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
31837 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
31838 (BUILT_IN_ACC_ON_DEVICE): New builtins.
31839 * omp-low.c: Include "gomp-constants.h".
31840 Update comments for OpenACC changes.
31841 (struct omp_context): Add reduction_map, gwv_below, gwv_this
31842 members.
31843 (extract_omp_for_data, use_pointer_for_field, install_var_field)
31844 (new_omp_context, delete_omp_context, scan_sharing_clauses)
31845 (create_omp_child_function, scan_omp_for, scan_omp_target)
31846 (check_omp_nesting_restrictions, lower_reduction_clauses)
31847 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
31848 Update for OpenACC changes.
31849 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
31850 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
31851 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
31852 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
31853 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
31854 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
31855 OMP_CLAUSE_MAP_*.
31856 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
31857 Handle GF_OMP_FOR_KIND_OACC_LOOP.
31858 (expand_omp_target, lower_omp_target): Handle
31859 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
31860 GF_OMP_TARGET_KIND_OACC_UPDATE,
31861 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
31862 GF_OMP_TARGET_KIND_OACC_DATA.
31863 (pass_expand_omp::execute, execute_lower_omp)
31864 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
31865 flag_openmp.
31866 (offload_symbol_decl): New variable.
31867 (oacc_get_reduction_array_id, oacc_max_threads)
31868 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
31869 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
31870 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
31871 (oacc_gimple_assign, oacc_initialize_reduction_data)
31872 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
31873 functions.
31874 (is_targetreg_ctx): Remove function.
31875 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
31876 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
31877 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
31878 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
31879 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
31880 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
31881 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
31882 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
31883 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
31884 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
31885 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
31886 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
31887 * tree-core.h: Update comments for OpenACC changes.
31888 (enum omp_clause_map_kind): Remove.
31889 (struct tree_omp_clause): Change type of map_kind member from enum
31890 omp_clause_map_kind to unsigned char.
31891 * tree-inline.c: Update comments for OpenACC changes.
31892 * tree-nested.c: Likewise. Include "gomp-constants.h".
31893 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
31894 (convert_tramp_reference_stmt, convert_gimple_call): Update for
31895 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
31896 OMP_CLAUSE_SET_MAP_KIND.
31897 * tree-pretty-print.c: Include "gomp-constants.h".
31898 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
31899 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
31900 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
31901 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
31902 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
31903 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
31904 instead of OMP_CLAUSE_MAP_*.
31905 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
31906 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
31907 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
31908 * tree-streamer-in.c: Include "gomp-constants.h".
31909 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
31910 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
31911 * tree-streamer-out.c: Include "gomp-constants.h".
31912 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
31913 OMP_CLAUSE_MAP_*.
31914 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
31915 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
31916 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
31917 * tree.c (omp_clause_num_ops): Update accordingly.
31918 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
31919 Likewise.
31920 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
31921 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
31922 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
31923 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
31924 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
31925 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
31926 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
31927 (OMP_CLAUSE_SET_MAP_KIND): New macro.
31928 * varpool.c (varpool_node::get_create): Consider flag_openacc next
31929 to flag_openmp.
31930 * config/i386/intelmic-offload.h: New file.
31931 * config/nvptx/offload.h: Likewise.
31932
31933 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31934
31935 * explow.h: Remove duplicate contents.
31936 * dojump.h: Likewise.
31937
31938 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
31939
31940 * arm.c (arm_xgene_tune): Add default initializer for instruction
31941 fusion.
31942
31943 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31944
31945 PR ipa/64068
31946 PR ipa/64559
31947 * ipa.c (symbol_table::remove_unreachable_nodes):
31948 Do not put abstract origins into boundary.
31949
31950 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
31951
31952 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
31953 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
31954
31955 2015-01-15 Steve Ellcey <sellcey@mips.com>
31956
31957 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
31958 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
31959 builtins.def, and chkp-builtins.def.
31960
31961 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
31962
31963 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
31964 ISA 2.7 (POWER8).
31965
31966 2015-01-15 Richard Biener <rguenther@suse.de>
31967
31968 PR tree-optimization/61743
31969 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
31970 information on PHIs for some simple cases.
31971
31972 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
31973
31974 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
31975 Include xgene1.md.
31976 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
31977 * config/arm/arm-cores.def (xgene1): New entry.
31978 * config/arm/arm-tables.opt: Regenerate.
31979 * config/arm/arm-tune.md: Regenerate.
31980 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
31981
31982 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
31983
31984 * tree-if-conv.c: Include hash-map.h.
31985 (aggressive_if_conv): New variable.
31986 (fold_build_cond_expr): Add simplification of non-zero condition.
31987 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
31988 destination block is not always executed.
31989 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
31990 than two predecessors if AGGRESSIVE_IF_CONV is true.
31991 (if_convertible_stmt_p): Fix commentary.
31992 (all_preds_critical_p): New function.
31993 (has_pred_critical_p): New function.
31994 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
31995 BB can have more than two predecessors and all incoming edges can be
31996 critical.
31997 (predicate_bbs): Skip predication for loop exit block, use build2_loc
31998 to compute predicate for true edge.
31999 (find_phi_replacement_condition): Delete this function.
32000 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32001 Allow interchange PHI arguments if EXTENDED is false.
32002 Change check that block containing reduction statement candidate
32003 is predecessor of phi-block since phi may have more than two arguments.
32004 (phi_args_hash_traits): New helper structure.
32005 (struct phi_args_hash_traits): New type.
32006 (phi_args_hash_traits::hash): New function.
32007 (phi_args_hash_traits::equal_keys): New function.
32008 (gen_phi_arg_condition): New function.
32009 (predicate_scalar_phi): Add handling of phi nodes with more than two
32010 arguments, delete COND and TRUE_BB arguments, insert body of
32011 find_phi_replacement_condition to predicate ordinary phi nodes.
32012 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32013 delete call of find_phi_replacement_condition and invoke
32014 predicate_scalar_phi with two arguments.
32015 (insert_gimplified_predicates): Add assert that non-predicated block
32016 don't have statements to insert.
32017 (ifcvt_split_critical_edges): New function.
32018 (ifcvt_split_def_stmt): Likewise.
32019 (ifcvt_walk_pattern_tree): Likewise.
32020 (stmt_is_root_of_bool_pattern): Likewise.
32021 (ifcvt_repair_bool_pattern): Likewise.
32022 (ifcvt_local_dce): Likewise.
32023 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32024 is copy of inner or outer loop force_vectorize field, invoke
32025 ifcvt_split_critical_edges, ifcvt_local_dce and
32026 ifcvt_repair_bool_pattern for aggressive if-conversion.
32027
32028 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
32029
32030 * config/aarch64/aarch64.md: Include xgene1.md.
32031 * config/aarch64/xgene1.md: New file.
32032
32033 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32034
32035 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32036 xgene1 (APM XGene-1) core definition.
32037 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32038 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32039 * doc/invoke.texi: Document -mcpu=xgene1.
32040
32041 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32042
32043 * dojump.h: New header file.
32044 * explow.h: Likewise.
32045 * expr.h: Remove includes.
32046 Move expmed.c prototypes to expmed.h.
32047 Move dojump.c prototypes to dojump.h.
32048 Move alias.c prototypes to alias.h.
32049 Move explow.c prototypes to explow.h.
32050 Move calls.c prototypes to calls.h.
32051 Move emit-rtl.c prototypes to emit-rtl.h.
32052 Move varasm.c prototypes to varasm.h.
32053 Move stmt.c prototypes to stmt.h.
32054 (saved_pending_stack_adjust): Move to dojump.h.
32055 (adjust_address): Move to explow.h.
32056 (adjust_address_nv): Move to emit-rtl.h.
32057 (adjust_bitfield_address): Likewise.
32058 (adjust_bitfield_address_size): Likewise.
32059 (adjust_bitfield_address_nv): Likewise.
32060 (adjust_automodify_address_nv): Likewise.
32061 * explow.c (expr_size): Move to expr.c.
32062 (int_expr_size): Likewise.
32063 (tree_expr_size): Likewise.
32064 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32065 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32066 * genemit.c (main): Generate includes statistics.h, real.h,
32067 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32068 stmt.h.
32069 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32070 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32071 explow.h, emit-rtl.h, stmt.h.
32072 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32073 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32074 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32075 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32076 emit-rtl.h, varasm.h, stmt.h.
32077 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32078 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32079 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32080 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32081 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32082 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32083 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32084 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32085 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32086 tm.h tree.h varasm.h vec.h wide-int.h.
32087 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32088 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32089 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32090 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32091 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32092 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32093 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32094 * loop-iv.c: Likewise.
32095 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32096 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32097 statistics.h stmt.h tree.h varasm.h wide-int.h.
32098 * lra-constraints.c: Likewise.
32099 * lra-eliminations.c: Likewise.
32100 * lra-lives.c: Likewise.
32101 * lra-remat.c: Likewise.
32102 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32103 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32104 statistics.h stmt.h tree.h varasm.h wide-int.h.
32105 * hw-doloop.c: Likewise.
32106 * ira-color.c: Likewise.
32107 * ira-emit.c: Likewise.
32108 * loop-doloop.c: Likewise.
32109 * loop-invariant.c: Likewise.
32110 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32111 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32112 statistics.h stmt.h tree.h varasm.h wide-int.h.
32113 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32114 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32115 statistics.h stmt.h tree.h varasm.h wide-int.h.
32116 * combine-stack-adj.c: Likewise.
32117 * cse.c: Likewise.
32118 * ddg.c: Likewise.
32119 * ifcvt.c: Likewise.
32120 * ira-costs.c: Likewise.
32121 * jump.c: Likewise.
32122 * lra-coalesce.c: Likewise.
32123 * lra-spills.c: Likewise.
32124 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32125 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32126 stmt.h varasm.h wide-int.h.
32127 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32128 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32129 varasm.h.
32130 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32131 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32132 statistics.h stmt.h varasm.h wide-int.h.
32133 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32134 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32135 varasm.h wide-int.h.
32136 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32137 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32138 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32139 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32140 statistics.h stmt.h.
32141 * config/tilepro/tilepro.c: Likewise.
32142 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32143 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32144 * config/pdp11/pdp11.c: Likewise.
32145 * config/xtensa/xtensa.c: Likewise.
32146 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32147 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32148 varasm.h.
32149 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32150 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32151 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32152 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32153 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32154 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32155 * rtl-chkp.c: Likewise.
32156 * tree-chkp-opt.c: Likewise.
32157 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32158 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32159 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32160 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32161 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32162 statistics.h stmt.h.
32163 * tree-vect-data-refs.c: Likewise.
32164 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32165 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32166 rtl.h statistics.h stmt.h varasm.h.
32167 * internal-fn.c: Likewise.
32168 * ipa-icf-gimple.c: Likewise.
32169 * lto-section-out.c: Likewise.
32170 * tree-data-ref.c: Likewise.
32171 * tree-nested.c: Likewise.
32172 * tree-outof-ssa.c: Likewise.
32173 * tree-predcom.c: Likewise.
32174 * tree-pretty-print.c: Likewise.
32175 * tree-scalar-evolution.c: Likewise.
32176 * tree-ssa-strlen.c: Likewise.
32177 * tree-vect-loop.c: Likewise.
32178 * tree-vect-patterns.c: Likewise.
32179 * tree-vect-slp.c: Likewise.
32180 * tree-vect-stmts.c: Likewise.
32181 * tsan.c: Likewise.
32182 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32183 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32184 stmt.h.
32185 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32186 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32187 statistics.h stmt.h varasm.h.
32188 * loop-unroll.c: Likewise.
32189 * ubsan.c: Likewise.
32190 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32191 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32192 stmt.h varasm.h.
32193 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32194 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32195 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32196 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32197 statistics.h stmt.h.
32198 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32199 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32200 statistics.h stmt.h varasm.h.
32201 * gimple-match-head.c: Likewise.
32202 * lto-cgraph.c: Likewise.
32203 * lto-section-in.c: Likewise.
32204 * lto-streamer-in.c: Likewise.
32205 * lto-streamer-out.c: Likewise.
32206 * tree-affine.c: Likewise.
32207 * tree-cfg.c: Likewise.
32208 * tree-cfgcleanup.c: Likewise.
32209 * tree-if-conv.c: Likewise.
32210 * tree-into-ssa.c: Likewise.
32211 * tree-ssa-alias.c: Likewise.
32212 * tree-ssa-copyrename.c: Likewise.
32213 * tree-ssa-dse.c: Likewise.
32214 * tree-ssa-forwprop.c: Likewise.
32215 * tree-ssa-live.c: Likewise.
32216 * tree-ssa-math-opts.c: Likewise.
32217 * tree-ssa-pre.c: Likewise.
32218 * tree-ssa-sccvn.c: Likewise.
32219 * tree-tailcall.c: Likewise.
32220 * tree-vect-generic.c: Likewise.
32221 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32222 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32223 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32224 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32225 * varasm.c: Likewise.
32226 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32227 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32228 varasm.h.
32229 * init-regs.c: Likewise.
32230 * ira.c: Likewise.
32231 * omp-low.c: Likewise.
32232 * stack-ptr-mod.c: Likewise.
32233 * tree-ssa-reassoc.c: Likewise.
32234 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32235 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32236 varasm.h.
32237 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32238 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32239 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32240 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32241 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32242 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32243 * tree-ssa-phiopt.c: Likewise.
32244 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32245 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32246 * config/fr30/fr30.c: Likewise.
32247 * config/frv/frv.c: Likewise.
32248 * expr.c: Likewise.
32249 * final.c: Likewise.
32250 * optabs.c: Likewise.
32251 * passes.c: Likewise.
32252 * simplify-rtx.c: Likewise.
32253 * stmt.c: Likewise.
32254 * toplev.c: Likewise.
32255 * var-tracking.c: Likewise.
32256 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32257 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32258 * lower-subreg.c: Likewise.
32259 * postreload-gcse.c: Likewise.
32260 * ree.c: Likewise.
32261 * reginfo.c: Likewise.
32262 * store-motion.c: Likewise.
32263 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32264 fixed-value.h hashtab.h real.h stmt.h varasm.h.
32265 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32266 fixed-value.h hashtab.h statistics.h stmt.h.
32267 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32268 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32269 * except.c: Likewise.
32270 * explow.c: Likewise.
32271 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32272 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32273 varasm.h.
32274 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32275 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32276 * tree-ssa-structalias.c: Likewise.
32277 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32278 fixed-value.h insn-config.h real.h statistics.h.
32279 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32280 fixed-value.h insn-config.h real.h statistics.h stmt.h.
32281 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32282 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32283 * cfgbuild.c: Likewise.
32284 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32285 fixed-value.h real.h rtl.h statistics.h stmt.h.
32286 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32287 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32288 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32289 fixed-value.h real.h statistics.h stmt.h.
32290 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32291 fixed-value.h real.h statistics.h stmt.h varasm.h.
32292 * cprop.c: Likewise.
32293 * modulo-sched.c: Likewise.
32294 * postreload.c: Likewise.
32295 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32296 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32297 statistics.h stmt.h varasm.h.
32298 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32299 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32300 rtl.h statistics.h stmt.h varasm.h.
32301 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32302 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32303 varasm.h.
32304 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32305 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32306 varasm.h.
32307 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32308 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32309 varasm.h.
32310 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32311 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32312 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32313 function.h real.h statistics.h stmt.h varasm.h.
32314 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32315 insn-config.h real.h statistics.h stmt.h.
32316 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32317 statistics.h stmt.h.
32318 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32319 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32320 statistics.h stmt.h varasm.h.
32321 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32322 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32323 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32324 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32325 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32326 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32327 statistics.h stmt.h varasm.h.
32328 * ipa-polymorphic-call.c: Likewise.
32329 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32330 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32331 statistics.h stmt.h.
32332 * config/c6x/c6x.c: Likewise.
32333 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32334 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32335 statistics.h stmt.h varasm.h.
32336 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32337 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32338 stmt.h varasm.h.
32339 * ipa-split.c: Likewise.
32340 * tree-eh.c: Likewise.
32341 * tree-ssa-dce.c: Likewise.
32342 * tree-ssa-loop-niter.c: Likewise.
32343 * tree-vrp.c: Likewise.
32344 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32345 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32346 stmt.h.
32347 * config/nds32/nds32-fp-as-gp.c: Likewise.
32348 * config/nds32/nds32-intrinsic.c: Likewise.
32349 * config/nds32/nds32-isr.c: Likewise.
32350 * config/nds32/nds32-md-auxiliary.c: Likewise.
32351 * config/nds32/nds32-memory-manipulation.c: Likewise.
32352 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32353 * config/nds32/nds32-predicates.c: Likewise.
32354 * config/nds32/nds32.c: Likewise.
32355 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32356 fixed-value.h hashtab.h real.h statistics.h.
32357 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32358 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32359 * config/arm/arm.c: Likewise.
32360 * config/avr/avr.c: Likewise.
32361 * config/bfin/bfin.c: Likewise.
32362 * config/h8300/h8300.c: Likewise.
32363 * config/i386/i386.c: Likewise.
32364 * config/ia64/ia64.c: Likewise.
32365 * config/iq2000/iq2000.c: Likewise.
32366 * config/m32c/m32c.c: Likewise.
32367 * config/m32r/m32r.c: Likewise.
32368 * config/m68k/m68k.c: Likewise.
32369 * config/mcore/mcore.c: Likewise.
32370 * config/mep/mep.c: Likewise.
32371 * config/mips/mips.c: Likewise.
32372 * config/mn10300/mn10300.c: Likewise.
32373 * config/moxie/moxie.c: Likewise.
32374 * config/pa/pa.c: Likewise.
32375 * config/rl78/rl78.c: Likewise.
32376 * config/rx/rx.c: Likewise.
32377 * config/s390/s390.c: Likewise.
32378 * config/sh/sh.c: Likewise.
32379 * config/sparc/sparc.c: Likewise.
32380 * config/spu/spu.c: Likewise.
32381 * config/stormy16/stormy16.c: Likewise.
32382 * config/v850/v850.c: Likewise.
32383 * config/vax/vax.c: Likewise.
32384 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32385 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32386 * config/msp430/msp430.c: Likewise.
32387 * predict.c: Likewise.
32388 * value-prof.c: Likewise.
32389 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32390 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32391 * config/microblaze/microblaze.c: Likewise.
32392 * config/nios2/nios2.c: Likewise.
32393 * config/rs6000/rs6000.c: Likewise.
32394 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32395 insn-config.h real.h rtl.h statistics.h stmt.h.
32396 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32397 insn-config.h real.h statistics.h stmt.h.
32398 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32399 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32400 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32401 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32402 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32403 fixed-value.h real.h statistics.h stmt.h.
32404 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32405 fixed-value.h statistics.h stmt.h.
32406 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32407 stmt.h.
32408
32409 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32410
32411 * gengtype.c (create_user_defined_type): Workaround
32412 -Wmaybe-uninitialized false positives.
32413 * cse.c (fold_rtx): Likewise.
32414 * loop-invariant.c (gain_for_invariant): Likewise.
32415
32416 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
32417
32418 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32419 set the memory attributes in all cases but clear MEM_EXPR if need be.
32420
32421 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32422
32423 PR tree-optimization/64434
32424 * cfgexpand.c (reorder_operands): New function.
32425 (expand_gimple_basic_block): Insert call of reorder_operands if
32426 optimized is true.
32427
32428 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
32429
32430 * config/mips/micromips.md (*swp): Remove explicit parallel.
32431 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32432 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32433 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32434 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32435 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32436 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32437 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32438 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32439 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32440 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32441 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32442 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32443 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32444 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32445 (mips_wrdsp): Likewise.
32446 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32447 parallel.
32448 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32449 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32450 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32451 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32452 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32453 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32454 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32455 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32456 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32457
32458 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32459
32460 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32461 (mips_print_operand): Support 'y' to print exact log2 in decimal
32462 of a const_int.
32463 * config/mips/mips.h (ISA_HAS_LSA): New define.
32464 (ISA_HAS_DLSA): Likewise.
32465 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32466 * config/mips/predicates.md (const_immlsa_operand): New predicate.
32467
32468 2015-01-15 Martin Liska <mliska@suse.cz>
32469
32470 PR target/64377
32471 * optc-save-gen.awk: Add support for array types.
32472
32473 2015-01-15 Richard Biener <rguenther@suse.de>
32474
32475 PR middle-end/64365
32476 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32477 for MEM_REF access functions with the same base can never partially
32478 overlap.
32479
32480 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
32481
32482 * common.opt: New option -fstack-protector-explicit.
32483 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32484 (stack_protect_decl_phase): Handle stack_protect attribute for
32485 explicit stack protection requests.
32486 (expand_used_vars): Similarly.
32487 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32488 * doc/extend.texi: Add documentation for "stack_protect" attribute.
32489 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32490
32491 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
32492
32493 PR target/53988
32494 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32495 reg-reg copies.
32496 (sh_extending_set_of_reg): New struct.
32497 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32498 sh_remove_reg_dead_or_unused_notes): New Declarations.
32499 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32500 sh_find_extending_set_of_reg, sh_split_tst_subregs,
32501 sh_extending_set_of_reg::use_as_extended_reg): New functions.
32502 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32503 convert to insn_and_split and use new function sh_split_tst_subregs.
32504
32505 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
32506
32507 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32508 option.
32509 (Optimization Options): Move -fuse-ld documentation to...
32510 (Link Options): ...here.
32511
32512 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32513
32514 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32515 offsets.
32516 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32517 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32518 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32519 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32520 instead of ZR for the memory operand of LL/SC.
32521 (compare_and_swap_12, sync_add<mode>): Likewise.
32522 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32523 (sync_new_<optab>_12, sync_nand_12): Likewise.
32524 (sync_old_nand_12, sync_new_nand_12): Likewise.
32525 (sync_sub<mode>, sync_old_add<mode>): Likewise.
32526 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32527 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32528 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32529 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32530 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32531 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32532 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32533 * doc/md.texi (ZC): Update description.
32534
32535 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32536
32537 * builtins.c (expand_builtin_atomic_exchange): Remove error when
32538 memory model is CONSUME.
32539 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32540 expand_builtin_atomic_store): Change invalid memory model errors to
32541 warnings.
32542 (expand_builtin_atomic_clear): Change invalid model errors to warnings
32543 and issue warning for CONSUME.
32544
32545 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
32546
32547 * lto-cgraph: Update function comments for
32548 lto_symtab_encoder_encode_*.
32549
32550 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32551
32552 * Makefile.in (site.exp): Do not set ENABLE_LTO.
32553
32554 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32555
32556 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32557 * lto-cgraph.c (select_what_to_stream): Remove argument, use
32558 lto_stream_offload_p instead.
32559 * lto-streamer.h (select_what_to_stream): Remove argument.
32560 * passes.c (ipa_write_summaries): Likewise.
32561 * tree-pass.h (ipa_write_summaries): Likewise.
32562
32563 2015-01-14 Richard Biener <rguenther@suse.de>
32564
32565 PR tree-optimization/59354
32566 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32567 groups larger than the slp group size as having gaps.
32568
32569 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32570
32571 PR middle-end/59448
32572 * builtins.c (get_memmodel): Promote consume to acquire always.
32573
32574 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32575
32576 PR target/64386
32577 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32578 V32HImode.
32579
32580 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32581
32582 PR target/64393
32583 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32584 Enable AVX512BW.
32585 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32586 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32587 AVX512VBMI, as it implies AVX512BW.
32588
32589 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32590
32591 PR target/64387
32592 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32593 (vec_unpacks_hi_v16sf): Ditto.
32594
32595 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32596
32597 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32598 is not available.
32599
32600 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32601
32602 * doc/invoke.texi (mapcs): Mention deprecation.
32603 (mapcs-frame): Likewise.
32604
32605 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
32606
32607 PR target/64453
32608 * config/arm/arm.c (callee_saved_reg_p): Define.
32609 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32610 register is callee saved instead of !call_used_regs[reg].
32611 (thumb1_compute_save_reg_mask): Likewise.
32612
32613 2015-01-14 Hale Wang <hale.wang@arm.com>
32614
32615 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32616 Cortex-M7.
32617
32618 2015-01-14 Richard Biener <rguenther@suse.de>
32619
32620 PR lto/64415
32621 * tree-inline.c (insert_debug_decl_map): Check destination
32622 function MAY_HAVE_DEBUG_STMTS.
32623 (insert_init_debug_bind): Likewise.
32624 (insert_init_stmt): Remove redundant check.
32625 (remap_gimple_stmt): Drop debug stmts if the destination
32626 function has var-tracking assignments disabled.
32627
32628 2015-01-14 Martin Liska <mliska@suse.cz>
32629
32630 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32631 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32632
32633 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32634
32635 PR target/64460
32636 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32637 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32638
32639 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32640
32641 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32642 level from an ARCH; do not inject the default.
32643 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32644 MIPS_ISA_LEVEL_SPEC.
32645 (MIPS_ISA_NAN2008_SPEC): Update comment.
32646 (BASE_DRIVER_SELF_SPECS): Likewise.
32647 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32648 MIPS_DEFAULT_ISA_LEVEL_SPEC.
32649 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32650 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32651 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32652
32653 2015-01-14 Richard Biener <rguenther@suse.de>
32654
32655 PR tree-optimization/64493
32656 PR tree-optimization/64495
32657 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32658 assign the proper vectorized PHI to the inner loop exit PHIs.
32659
32660 2015-01-14 Joey Ye <joey.ye@arm.com>
32661
32662 * config/arm/arm.c (arm_compute_save_reg_mask):
32663 Do not save lr in case of tail call.
32664 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32665
32666 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
32667
32668 * tree-vrp.c (check_array_ref): Emit more warnings
32669 for warn_array_bounds >= 2.
32670 * common.opt: New option -Warray-bounds=.
32671 * doc/invoke.texi: Document -Warray-bounds=.
32672
32673 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
32674
32675 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32676 (mforbid-fp-as-gp): Remove.
32677 (mex9): Remove.
32678 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32679 (nds32_symbol_load_store_p): Remove.
32680 (nds32_fp_as_gp_check_available): Clean up implementation.
32681 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32682 cases.
32683 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32684 fp-as-gp and ex9 cases.
32685
32686 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32687
32688 * tree-profile.c (init_ic_make_global_vars): Drop workaround
32689 for bintuils bug 14342.
32690 (init_ic_make_global_vars): Likewise.
32691 (gimple_init_edge_profiler): Likewise.
32692 (gimple_gen_ic_func_profiler): Likewise.
32693
32694 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32695
32696 * ipa-inline.c (inline_small_functions): Swap the operands in
32697 enum.
32698
32699 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32700
32701 PR ipa/64481
32702 * ipa-inline-analysis.c (node_growth_cache): Remove.
32703 (initialize_growth_caches): Do not initialize it.
32704 (free_growth_caches): Do not free it.
32705 (do_estimate_growth): Rename to ...
32706 (estimate_growth): ... this one; drop growth cache code.
32707 (growth_likely_positive): Always go the heuristics way.
32708 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32709 (reset_edge_caches): Do not reset node growth.
32710 (heap_edge_removal_hook): Do not maintain cache.
32711 (inline_small_functions): Likewise; strenghten sanity check.
32712 (ipa_inline): Do not maintain caches.
32713 * ipa-inline.h (node_growth_cache): Remove.
32714 (do_estimate_growth): Remove to ...
32715 (estimate_growth): this one; remove inline version.
32716 (reset_node_growth_cache): Remove.
32717
32718 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32719
32720 PR ipa/64565
32721 * ipa-inline.c (inline_small_functions): Update callee keys after
32722 resolving speculation
32723 (inline_small_functions): Always check monotonicity of the queue.
32724
32725 2015-01-13 Marek Polacek <polacek@redhat.com>
32726
32727 PR middle-end/64391
32728 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32729
32730 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32731
32732 PR rtl-optimization/64286
32733 * ree.c (combine_reaching_defs): Move part of comment earlier,
32734 remove !SCALAR_INT_MODE_P check.
32735 (add_removable_extension): Don't add vector mode
32736 extensions if all uses of the source register aren't the same
32737 vector extensions.
32738
32739 2015-01-13 Renlin Li <renlin.li@arm.com>
32740
32741 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
32742 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
32743
32744 2015-01-13 Martin Liska <mliska@suse.cz>
32745
32746 * ipa-icf.c (sem_function::equals_private): Call new functions
32747 cl_target_option_print_diff and cl_optimization_print_diff.
32748 * optc-save-gen.awk (cl_target_option_print_diff): New function.
32749 (cl_optimization_print_diff): Likewise.
32750 * opth-gen.awk: Likewise.
32751
32752 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
32753
32754 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
32755 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
32756 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
32757 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
32758 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
32759 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
32760
32761 2015-01-13 Andrew Pinski <apinski@cavium.com>
32762
32763 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
32764 instead of src mode.
32765
32766 2015-01-13 Richard Biener <rguenther@suse.de>
32767
32768 PR lto/64373
32769 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
32770 DECL_CONTEXT.
32771
32772 2015-01-13 Andrew Pinski <apinski@cavium.com>
32773
32774 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
32775 volatile mems.
32776 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
32777
32778 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32779
32780 PR middle-end/63974
32781 * cfgexpand.c (expand_computed_goto): Don't call
32782 convert_memory_address here.
32783
32784 2015-01-13 Richard Biener <rguenther@suse.de>
32785
32786 PR tree-optimization/64406
32787 * tree-loop-distibution.c (pass_loop_distribution::execute):
32788 Reset the SCEV hashtable if we distributed anything.
32789
32790 2015-01-13 Richard Biener <rguenther@suse.de>
32791
32792 PR tree-optimization/64404
32793 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
32794 SLP types for CSEd loads.
32795
32796 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32797
32798 PR tree-optimization/64436
32799 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
32800 merge of two symbolic numbers for a bitwise OR to ...
32801 (perform_symbolic_merge): This. Also fix computation of the range and
32802 end of the symbolic number corresponding to the result of a bitwise OR.
32803
32804 2015-01-13 Richard Biener <rguenther@suse.de>
32805
32806 PR tree-optimization/64568
32807 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
32808 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
32809
32810 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32811
32812 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
32813 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
32814
32815 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32816
32817 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
32818 target-specific symbol_ref flag.
32819 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
32820 resides in rodata section.
32821 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
32822 (nds32_encode_section_info): New function.
32823
32824 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32825
32826 * config/nds32/nds32.md (call): Use pseudo instruction bal which
32827 clobbers TA_REGNUM if large code model is specified.
32828 (call_register): Likewise.
32829 (call_immediate): Likewise.
32830 (call_value): Likewise.
32831 (call_value_register): Likewise.
32832 (call_value_immediate): Likewise.
32833
32834 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32835
32836 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
32837 (TARGET_CMODEL_MEDIUM): New macro.
32838 (TARGET_CMODEL_LARGE): New macro.
32839 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
32840 code model setting in assembly code.
32841
32842 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32843
32844 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32845 Remove MASK_GP_DIRECT flag.
32846 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
32847 one of the multilib default options.
32848 * config/nds32/nds32.opt (mgp-direct): Remove.
32849 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
32850 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
32851
32852 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
32853
32854 * config/nds32/nds32.opt (mcmodel): Add new option.
32855 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
32856 to describe code model.
32857
32858 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
32859
32860 PR target/64479
32861 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
32862
32863 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
32864
32865 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
32866 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32867 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
32868 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
32869 __builtin_sh_set_fpscr.
32870
32871 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32872
32873 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
32874 after a funtion name just to indicate it is a function.
32875 ([-fsanitize-undefined-trap-on-error]): Likewise.
32876 ([-fdbg-cnt=]): Likewise.
32877 ([-mmemcpy]): Likewise.
32878 ([-mflush-func]): Likewise.
32879 ([-msynci]): Likewise.
32880
32881 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
32882
32883 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
32884 example.
32885
32886 2015-01-12 Jakub Jelinek <jakub@redhat.com>
32887
32888 PR tree-optimization/64563
32889 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
32890 instead of != VR_VARYING.
32891
32892 PR target/64513
32893 * config/i386/i386.c (ix86_expand_prologue): Add
32894 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
32895
32896 PR tree-optimization/64454
32897 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
32898 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
32899 for signed or [0, op1 - 1] for unsigned modulo.
32900 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
32901 even if op1 does not satisfy integer_pow2p.
32902
32903 PR other/64370
32904 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
32905
32906 2015-01-12 Jeff Law <law@redhat.com>
32907
32908 PR target/64461
32909 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
32910 (trunchiqi2, truncsihi2): Similarly.
32911
32912 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
32913 rather than calling F.
32914
32915 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
32916
32917 * tsan.c (instrument_expr): Use force_gimple_operand.
32918 Use may_be_nonaddressable_p instead of is_gimple_addressable.
32919
32920 2015-01-12 Richard Biener <rguenther@suse.de>
32921
32922 PR tree-optimization/64530
32923 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
32924 back dr1.
32925
32926 2015-01-12 Richard Biener <rguenther@suse.de>
32927
32928 PR middle-end/64357
32929 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
32930 latches properly.
32931
32932 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32933
32934 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
32935 Cortex-A17 tuning parameters.
32936 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
32937
32938 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32939
32940 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
32941 * config/arm/arm.c (arm_macro_fusion_p): New function.
32942 (arm_macro_fusion_pair_p): Likewise.
32943 (TARGET_SCHED_MACRO_FUSION_P): Define.
32944 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
32945 (ARM_FUSE_NOTHING): Likewise.
32946 (ARM_FUSE_MOVW_MOVT): Likewise.
32947 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
32948 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
32949 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
32950 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
32951 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
32952 arm_cortex_a5_tune): Specify fuseable_ops value.
32953
32954 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
32955
32956 PR bootstrap/64561
32957 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
32958 test for PIE with copy reloc.
32959 * configure: Regenerated.
32960
32961 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32962
32963 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
32964 in gen_rtx_REG.
32965 (arm_tls_descseq_addr): Likewise.
32966 (arm_gen_movmemqi): Likewise.
32967 (arm_expand_epilogue_apcs_frame): Likewise.
32968 (arm_expand_epilogue): Likewise.
32969 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
32970 in gen_rtx_REG.
32971
32972 2015-01-12 Martin Liska <mliska@suse.cz>
32973
32974 PR ipa/64550
32975 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
32976 volatility for correct operands.
32977
32978 2015-01-12 Martin Liska <mliska@suse.cz>
32979
32980 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
32981 indication that a function is not leaf.
32982 (sem_function::compare_polymorphic_p): Likewise.
32983
32984 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32985
32986 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
32987 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
32988 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
32989 fold-const.h, tree-check.h.
32990
32991 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
32992
32993 PR ipa/63967
32994 PR ipa/64425
32995 * ipa-inline.c (compute_uninlined_call_time,
32996 compute_inlined_call_time): Use counts for extra precision when
32997 needed possible.
32998 (big_speedup_p): Fix formating.
32999 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33000 (relative_time_benefit): Remove.
33001 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33002 merge guessed and read profile paths.
33003 (inline_small_functions): Count only !optimize_size functions into
33004 initial size; be more lax about sanity check when profile is used;
33005 be sure to update inlined function profile when profile is read.
33006
33007 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33008
33009 PR ipa/63470
33010 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33011 cost when edge becomes direct.
33012 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33013 is resolved or when introducing new speculation.
33014
33015 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
33016
33017 PR ipa/64551
33018 PR ipa/64552
33019 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33020 '||' to fix typo issue.
33021
33022 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33023 accept and return NULL.
33024
33025 2015-01-12 Martin Liska <mliska@suse.cz>
33026
33027 * cgraph.c (cgraph_edge::remove_callee): Move function to header
33028 file for being inlined.
33029 (cgraph_set_edge_callee): Delete.
33030 (cgraph_edge::redirect_callee): Move function to header file
33031 for being inlined.
33032 (cgraph_edge::make_direct): Use new function.
33033 (cgraph_edge::dump_edge_flags): New function created from
33034 static dump_edge_flags function.
33035 (cgraph_node::dump): Use new function.
33036 (cgraph_edge::verify_count_and_frequency): New function created
33037 from verify_edge_count_and_frequency.
33038 (cgraph_edge::verify_corresponds_to_fndecl): New function created
33039 from verify_edge_corresponds_to_fndecl.
33040 (verify_edge_corresponds_to_fndecl): Delete.
33041 (cgraph_node::verify_node): Use new function.
33042 * cgraph.h (cgraph_edge::set_callee): New function.
33043 (cgraph_edge::dump_edge_flags): Likewise.
33044 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33045
33046 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
33047
33048 * ipa-utils.c (estimate_function_body_sizes): Do not
33049 free node params when called late with early=true.
33050
33051 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
33052
33053 * doc/md.texi (Instruction Patterns): Rewrite text for
33054 clarity.
33055 (Example): Likewise.
33056
33057 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
33058
33059 * doc/invoke.texi (Option Summary): Break long lines.
33060 [(-fdiagnostics-color)]: Put long literal in @smallexample
33061 instead of inline.
33062 [(-fsanitize-recover)]: Likewise.
33063 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33064 [(-ffast-math)]: Likewise.
33065 [(--param max-inline-insns-recursive)]: Likewise.
33066 [(--param max-inline-recursive-depth)]: Likewise.
33067 [(-mno-text-section-literals)]: Likewise.
33068
33069 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
33070
33071 * doc/install.texi: Update for libgomp being renamed from "GNU
33072 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33073 Runtime Library".
33074 * doc/sourcebuild.texi: Likewise.
33075
33076 2015-01-10 Anthony Green <green@moxielogic.com>
33077
33078 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33079 mul.x availability for moxiebox configuration.
33080
33081 2015-01-09 Anthony Green <green@moxielogic.com>
33082
33083 * config/moxie/moxie.md: Tabify assembly output.
33084
33085 2015-01-09 Anthony Green <green@moxielogic.com>
33086
33087 * config/moxie/moxie.md (CC_REG): Correct register definition.
33088
33089 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
33090
33091 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33092 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
33093 of log files.
33094
33095 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33096
33097 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33098
33099 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
33100 Jakub Jelinek <jakub@redhat.com>
33101
33102 PR middle-end/64412
33103 * lto-streamer.h (lto_stream_offload_p): New declaration.
33104 * lto-streamer.c (lto_stream_offload_p): New variable.
33105 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33106 at the same time as section_name_prefix.
33107 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33108 if lto_stream_offload_p.
33109 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33110 stream TREE_TARGET_OPTION if lto_stream_offload_p.
33111 (write_ts_function_decl_tree_pointers): Don't
33112 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33113 * tree-streamer-in.c (unpack_value_fields): Don't stream
33114 TREE_TARGET_OPTION in if ACCEL_COMPILER.
33115 (lto_input_ts_function_decl_tree_pointers): Don't stream
33116 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33117 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33118 instead of section_name_prefix string comparisons.
33119
33120 2015-01-09 Jakub Jelinek <jakub@redhat.com>
33121
33122 PR rtl-optimization/64536
33123 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33124 tablejumps.
33125
33126 2015-01-09 Michael Collison <michael.collison@linaro.org>
33127
33128 PR tree-optimization/64322
33129 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33130 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33131
33132 2015-01-09 Tom de Vries <tom@codesourcery.com>
33133
33134 PR rtl-optimization/64539
33135 * regcprop.c (kill_clobbered_values): Factor out of ...
33136 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
33137 instead of note_stores with kill_clobbered_value.
33138
33139 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33140
33141 * ginclude/unwind-arm-common.h: Revert previous commit.
33142
33143 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33144
33145 * config.gcc (arm*-*-freebsd*): New configuration.
33146 * config/arm/freebsd.h: New file.
33147 * config.host: Add extra components for arm*-*-freebsd*.
33148 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33149 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33150
33151 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33152
33153 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33154 for -mcpu=e6500.
33155 * config/rs6000/t-rtems: Add e6500 multilibs.
33156
33157 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33158
33159 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33160 MPC8540.
33161
33162 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33163
33164 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33165 MULTILIB_EXCEPTIONS.
33166
33167 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33168
33169 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33170 MULTILIB_EXCEPTIONS.
33171
33172 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33173
33174 * config/arm/t-rtems-eabi: Rename to...
33175 * config/arm/t-rtems: ...this.
33176 * config/arm/rtems-eabi.h: Rename to...
33177 * config/arm/rtems.h: ...this.
33178 * config.gcc (arm*-*-rtems*): Reflect changes above.
33179
33180 2015-01-09 Richard Biener <rguenther@suse.de>
33181
33182 PR tree-optimization/64410
33183 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33184 on the LHS.
33185 (execute_update_addresses_taken): Deal with that.
33186 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33187 loads/stores for complex variables.
33188
33189 2015-01-09 Martin Liska <mliska@suse.cz>
33190
33191 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33192 name comparison.
33193 (func_checker::compare_memory_operand): New function.
33194 (func_checker::compare_operand): Split case to newly
33195 added functions.
33196 (func_checker::compare_cst_or_decl): New function.
33197 (func_checker::compare_gimple_call): Identify
33198 memory operands.
33199 (func_checker::compare_gimple_assign): Likewise.
33200 * ipa-icf-gimple.h: New function.
33201
33202 2015-01-09 Martin Liska <mliska@suse.cz>
33203
33204 PR ipa/64503
33205 * sreal.c (sreal::dump): Change unsigned format to signed for
33206 m_exp value.
33207 (sreal::to_double): Replace exp2 with scalbln.
33208
33209 2015-01-09 Martin Liska <mliska@suse.cz>
33210
33211 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33212 * ipa-icf.c (sem_function::equals_private): Add support for target and
33213 (sem_item_optimizer::merge_classes): Remove redundant function
33214 optimization flags comparison.
33215 * tree.h (target_opts_for_fn): New function.
33216
33217 2015-01-09 Tom de Vries <tom@codesourcery.com>
33218
33219 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33220
33221 2015-01-09 Kito Cheng <kito@0xlab.org>
33222
33223 PR rtl-optimization/64348
33224 * lra-constraints.c (split_reg): Fix caller-save store/restore
33225 instruction generation.
33226
33227 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
33228
33229 PR gcov-profile/61790
33230 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33231 long long. Fallback to int64_t if host doesn't have long long and
33232 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
33233
33234 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33235
33236 PR tree-optimization/63989
33237 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33238 from 1000 to 10000.
33239 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33240 (get_stridx): If we don't have a record for certain SSA_NAME,
33241 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33242 constant offset, call get_stridx_plus_constant.
33243 (get_stridx_plus_constant): New function.
33244 (zero_length_string): Don't use get_stridx here.
33245
33246 PR target/55023
33247 PR middle-end/64388
33248 * dse.c (struct insn_info): Mention frame_read set also
33249 before reload for tail calls on some targets.
33250 (scan_insn): Revert 2014-12-22 change. Set frame_read
33251 also before reload for tail calls if
33252 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
33253 instead of add_non_frame_wild_read for non-const/memset
33254 tail calls after reload.
33255
33256 2015-01-08 Jason Merrill <jason@redhat.com>
33257
33258 * ubsan.c (do_ubsan_in_current_function): New.
33259 (pass_ubsan::gate): Use it.
33260 * ubsan.h: Declare it.
33261 * convert.c (convert_to_integer): Use it.
33262
33263 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33264
33265 PR target/64338
33266 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33267 compare_code when it is unconditionally overwritten afterwards.
33268 Use ix86_reverse_condition instead of reverse_condition. Don't
33269 change code if *reverse_condition* returned UNKNOWN and don't
33270 swap ct/cf and negate diff in that case.
33271
33272 2015-01-08 Mike Stump <mikestump@comcast.net>
33273
33274 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33275 (pass_tsan_O0::gate): Likewise.
33276 * extend.texi (Function Attributes): Add no_sanitize_thread
33277 documentation.
33278
33279 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
33280
33281 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33282 for registering builtins.
33283 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33284 add -fopenmp to the argv_obstack used when invoking
33285 compile_for_target.
33286
33287 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33288 add "-m32" or "-m64" to argv_obstack.
33289 (generate_host_descr_file): Likewise, when invoking host_compiler.
33290 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33291 ld.
33292
33293 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33294
33295 * config/sh/sh-mem.cc: Use constant as second operand when emitting
33296 tstsi_t insns.
33297
33298 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33299
33300 PR target/55212
33301 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33302 constant load if constant operand fits into I08.
33303
33304 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33305
33306 PR sanitizer/64336
33307 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33308 and TREE_THIS_VOLATILE for MEM_REFs.
33309 (build5_stat): Fix up initialization of TREE_READONLY and
33310 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33311
33312 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
33313
33314 PR target/64533
33315 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33316 of r for the second alternative of the destination operand.
33317
33318 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
33319
33320 PR target/36557
33321 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33322
33323 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33324
33325 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33326 keywords.
33327 ([-fivar-visibility], [-fvisibility]): Likewise.
33328
33329 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33330
33331 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33332 the file where @code, @command, etc is more appropriate.
33333
33334 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
33335
33336 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33337 of -mrecip= documentation.
33338
33339 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33340
33341 PR target/64505
33342 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33343 correct reload handler if -m32 -mpowerpc64 is used.
33344
33345 2015-01-06 Tom de Vries <tom@codesourcery.com>
33346
33347 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33348
33349 2015-01-08 Christian Bruel <christian.bruel@st.com>
33350
33351 PR target/64507
33352 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33353
33354 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
33355
33356 PR tree-optimization/63259
33357 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33358 if optab exists for 16bit byteswap.
33359
33360 2015-01-06 Jakub Jelinek <jakub@redhat.com>
33361
33362 * opts.c (common_handle_option): Add support for
33363 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33364 * doc/invoke.texi: Document -fno-sanitize=all,
33365 -f{,no-}sanitize-recover=all. Document that
33366 -fsanitize=float-cast-overflow is not enabled
33367 by -fsanitize=undefined. Fix up documentation
33368 of -f{,no-}sanitize-recover.
33369
33370 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
33371
33372 * config.gcc: Add Visium support.
33373 * configure.ac: Likewise.
33374 * configure: Regenerate.
33375 * doc/extend.texi (interrupt attribute): Add Visium.
33376 * doc/invoke.texi: Document Visium options.
33377 * doc/install.texi: Document Visium target.
33378 * doc/md.texi: Document Visium constraints.
33379 * common/config/visium: New directory.
33380 * config/visium: Likewise.
33381
33382 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33383
33384 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33385 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33386
33387 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33388
33389 * combine.c (combine_validate_cost): Do not count the cost of a
33390 split I2 twice. Do not display it twice in the dump, either.
33391
33392 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33393
33394 Revert parts of r219199.
33395 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33396 <inttypes.h>.
33397 ([-Wtraditional]): Restore markup on <limits.h>.
33398
33399 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
33400
33401 PR c++/31397
33402 * doc/invoke.texi: Document -Wsuggest-override.
33403
33404 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
33405
33406 PR rtl-optimization/64287
33407 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33408 (process_options): Disable flag_ipa_ra if profiling.
33409
33410 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
33411
33412 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33413
33414 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
33415
33416 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33417 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33418 put under #if TARGET_LOOPS guard.
33419
33420 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
33421
33422 * config/i386/i386.c (output_387_binary_op): Use std::swap.
33423
33424 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
33425
33426 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33427 * rtl.h (refers_to_regno_p): Add overload.
33428 * cse.c: Use it.
33429 * bt-load.c: Likewise.
33430 * combine.c: Likewise.
33431 * df-scan.c: Likewise.
33432 * sched-deps.c: Likewise.
33433 * config/s390/s390.c: Likewise.
33434 * config/m32r/m32r.c: Likewise.
33435 * config/rs6000/spe.md: Likewise.
33436 * config/rs6000/rs6000.c: Likewise.
33437 * config/pa/pa.c: Likewise.
33438 * config/stormy16/stormy16.c: Likewise.
33439 * config/cris/cris.c: Likewise.
33440 * config/arc/arc.md: Likewise.
33441 * config/arc/arc.c: Likewise.
33442 * config/sh/sh.md: Likewise.
33443 * config/sh/sh.c: Likewise.
33444 * config/frv/frv.c: Likewise.
33445
33446 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33447
33448 PR sanitizer/64265
33449 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33450 call as cleanup of the whole body.
33451 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33452 * tsan.c (replace_func_exit): New function.
33453 (instrument_func_exit): Moved earlier.
33454 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33455 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33456 been found.
33457 (tsan_pass): Don't call instrument_func_exit.
33458 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33459 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33460 inlining.
33461
33462 PR sanitizer/64344
33463 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33464 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33465 it to libubsan handler instead of EXPR. Fold comparisons earlier,
33466 if the result is integer_zerop, return NULL_TREE.
33467 * convert.c (convert_to_integer): Pass expr as ARG.
33468
33469 PR tree-optimization/64465
33470 * tree-inline.c (redirect_all_calls): During inlining
33471 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33472 changed the stmt to a non-throwing call.
33473
33474 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33475
33476 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33477 etc markup throughout the file.
33478
33479 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33480
33481 Enable experimental TSAN support for Ada.
33482 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33483
33484 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33485
33486 PR tree-optimization/64494
33487 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33488 clear SSA_NAME_ANTI_RANGE_P flag.
33489
33490 2015-01-05 Marek Polacek <polacek@redhat.com>
33491
33492 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33493
33494 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33495
33496 Update copyright years.
33497
33498 * gcc.c (process_command): Update copyright notice dates.
33499 * gcov-dump.c: Ditto.
33500 * gcov.c: Ditto.
33501 * doc/cpp.texi: Bump @copying's copyright year.
33502 * doc/cppinternals.texi: Ditto.
33503 * doc/gcc.texi: Ditto.
33504 * doc/gccint.texi: Ditto.
33505 * doc/gcov.texi: Ditto.
33506 * doc/install.texi: Ditto.
33507 * doc/invoke.texi: Ditto.
33508
33509 * auto-profile.c, auto-profile.h: Fix up Copyright line.
33510
33511 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
33512
33513 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33514 verb tense, etc.
33515 ([-fvtable-verify], [-fvtv-debug]): Likewise.
33516 ([-Wabi]): Likewise.
33517 ([-fmessage-length]): Likewise.
33518 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33519 ([-Wno-discarded-qualifiers]): Likewise.
33520 ([-Wnodiscarded-array-qualifiers]): Likewise.
33521 ([-Wno-virtual-move-assign]): Likewise.
33522 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33523 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33524 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33525 ([-fsanitize-undefined-trap-on-error]): Likewise.
33526 ([-floop-interchange]): Likewise.
33527 ([-ftree-coalesce-inlined-vars]): Likewise.
33528 ([-fvect-cost-model]): Likewise.
33529 ([-flto]): Likewise.
33530 ([--param]): Likewise.
33531 (Spec Files): Likewise.
33532 ([-mstrict-align]): Likewise.
33533 ([-mfix-cortex-a53-835769]): Likewise.
33534 ([-march], [-mtune]): Likewise.
33535 ([-mpic-register]): Likewise.
33536 ([-munaligned-access]): Likewise.
33537 ([-msp8]): Likewise.
33538 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33539 (AVR Built-in Macros): Likewise.
33540 ([-mpreferred-stack-boundary]): Likewise.
33541 ([-mtune-crtl]): Likewise.
33542 ([-mashf]): Likewise.
33543 ([-mmcu=]): Likewise.
33544 ([-minrt]): Likewise.
33545 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33546 ([-mupper-regs]): Likewise.
33547 ([-matomic-model]): Likewise.
33548 ([-mdiv]): Likewise.
33549 ([-mzdcbranch]): Likewise.
33550 ([-mdisable-callt]): Likewise.
33551 ([-msoft-float]): Likewise.
33552 ([-m8byte-align]): Likewise.
33553 ([-fstack-reuse]): Likewise.
33554
33555 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33556
33557 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33558 Fix markup, light copy-editing.
33559 ([-fauto-profile]): Rewrite to fix formatting and content
33560 problems.
33561
33562 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33563
33564 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33565 Copy-edit description.
33566 ([-fisolate-erroneous-paths-attribute]): Likewise.
33567 * common.opt (fisolate-erroneous-paths-dereference):
33568 Copy-edit description.
33569 (fisolate-erroneous-paths-attribute): Likewise.
33570
33571 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33572
33573 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33574 tidy grammar.
33575
33576 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33577
33578 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33579 ([-fvtv-debug]): Likewise.
33580 ([-Wc++-compat]): Likewise.
33581 ([-Wc++11-compat]): Likewise.
33582 ([-Wc++14-compat]): Likewise.
33583 ([-Wno-sized-deallocation]): Likewise.
33584 ([-femit-class-debug-always]): Likewise.
33585 ([-femit-struct-debug-detailed]): Likewise.
33586 ([-fno-keep-inline-dllexport]): Likewise.
33587 ([-fira-algorithm]): Likewise.
33588 ([-fira-region]): Likewise.
33589 ([-flra-remat]): Likewise.
33590 ([-fipa-ra]): Likewise.
33591 ([-fhoist-adjacent-loads]): Likewise.
33592 ([-fisolate-erroneous-paths-dereference]): Likewise.
33593 ([-fisolate-erroneous-paths-attribute]): Likewise.
33594 ([-ftree-switch-conversion]): Likewise.
33595 ([-ftree-tail-merge]): Likewise.
33596 ([-ftree-loop-if-convert]): Likewise.
33597 ([-ftree-loop-if-convert-stores]): Likewise.
33598 ([-ftree-loop-distribution]): Likewise.
33599 ([-ftree-loop-distribute-patterns]): Likewise.
33600 ([-flto-compression-level]): Likewise.
33601 ([-flto-report]): Likewise.
33602 ([-flto-report-wpa]): Likewise.
33603 ([-fuse-linker-plugin]): Likewise.
33604 ([-mfix-cortex-a53-835769]): Likewise.
33605 ([-mno-fix-cortex-a53-835769]): Likewise.
33606 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33607 explicit listing; add a note to the discussion indicating they
33608 exist. Reorder table to group similar options. Add missing
33609 @opindex entries. Add @need commands throughout the table to
33610 allow it to be split across multiple pages.
33611 ([-m8bit-idiv]): Fix @opindex.
33612 ([-mavx256-split-unaligned-load]): Likewise.
33613 ([-mavx256-split-unaligned-store]): Likewise.
33614 ([-mstack-protector-guard]): Likewise.
33615 ([-mcpu=]): Likewise.
33616 ([-mcpu]): Likewise.
33617 ([-mpointer-size=]): Likewise.
33618
33619 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
33620
33621 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33622 instead of `m' constraint. Likewise for unnamed movb comparison
33623 patterns using reg_before_reload_operand predicate.
33624 * config/pa/predicates.md (reg_before_reload_operand): Tighten
33625 predicate to reject register index and LO_SUM DLT memory forms
33626 after reload.
33627
33628 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33629
33630 * doc/invoke.texi (Option Summary): Fix spelling of
33631 -fdevirtualize-at-ltrans.
33632 ([-fdevirtualize]): Fix markup.
33633 ([-fdevirtualize-speculatively]): Fix typo.
33634 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
33635 implementor-speaky.
33636 * common.opt (fdevirtualize-at-ltrans): Likewise.
33637 * ipa-devirt.c: Fix typos in comments throughout the file.
33638 (ipa_devirt): Fix typos in format strings for dump output.
33639
33640 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33641
33642 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33643 discussion of defaults, light copy-editing.
33644
33645 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33646
33647 * tsan.c (instrument_expr): corrected previous checkin.
33648
33649 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33650
33651 Instrument bit field and unaligned accesses for TSAN.
33652 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33653 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33654 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33655 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33656 unaligned memory regions.
33657
33658 2015-01-01 Anthony Green <green@moxielogic.com>
33659
33660 * config/moxie/predicates.md (moxie_general_movsrc_operand):
33661 Restrict move source register offsets to 16 bits.
33662 \f
33663 Copyright (C) 2015 Free Software Foundation, Inc.
33664
33665 Copying and distribution of this file, with or without modification,
33666 are permitted in any medium without royalty provided the copyright
33667 notice and this notice are preserved.